diff --git a/pr-preview/pr-17/assets/DashboardLayout-1feu1wms.css b/pr-preview/pr-17/assets/DashboardLayout-1feu1wms.css deleted file mode 100644 index 0c89569..0000000 --- a/pr-preview/pr-17/assets/DashboardLayout-1feu1wms.css +++ /dev/null @@ -1 +0,0 @@ -.panel[data-v-a859692c]{position:relative;overflow:visible;z-index:1;border-radius:0}.bg-panel[data-v-a859692c]{z-index:0}.fade-enter-active[data-v-a859692c],.fade-leave-active[data-v-a859692c]{transition:opacity .25s ease}.fade-enter-from[data-v-a859692c],.fade-leave-to[data-v-a859692c]{opacity:0} diff --git a/pr-preview/pr-17/assets/DashboardLayout-Bklr6-8p.js b/pr-preview/pr-17/assets/DashboardLayout-Bklr6-8p.js deleted file mode 100644 index 418dcc2..0000000 --- a/pr-preview/pr-17/assets/DashboardLayout-Bklr6-8p.js +++ /dev/null @@ -1,29 +0,0 @@ -import{_ as m,x as y,W as x,X as d,$ as t,a0 as r,a1 as l,a9 as _,a3 as n,a6 as u,a2 as c,a4 as p,d as h,a5 as g,F as f,a7 as v,ab as w}from"./index-Dvu417lt.js";import{V as k}from"./VMain-CoSaaYTf.js";import"./ssrBoot-Uu_-yAhn.js";class A extends HTMLElement{static get observedAttributes(){return["gap"]}constructor(){super(),this.attachShadow({mode:"open"}),this.render()}render(){this.shadowRoot.innerHTML=` - - - `}attributeChangedCallback(a,s,o){s!==o&&(this[a]=o),this.render()}}class C extends HTMLElement{static get observedAttributes(){return["x","y","w","h"]}constructor(){super(),this.attachShadow({mode:"open"}),this.render()}render(){this.shadowRoot.innerHTML=` - - - `}attributeChangedCallback(a,s,o){s!==o&&(this[a]=o),this.render()}}customElements.define("eox-layout",A);customElements.define("eox-layout-item",C);const L=["gap"],$={key:0,class:"bg-panel",x:"0",y:"0",h:"12",w:"12"},E=["h","w","x","y"],M={__name:"DashboardLayout",setup(i){const a=y(x),[s]=d([a.template?.background]),o=d(a.template?.widgets);return(T,B)=>(t(),r(k,null,{default:l(()=>[_("eox-layout",{gap:n(a).template.gap??2},[n(s).component?(t(),u("eox-layout-item",$,[(t(),r(c,{suspensible:""},{default:l(()=>[(t(),r(p(n(s).component),h({id:"bg-widget"},n(s).props),null,16))]),_:1}))])):g("v-if",!0),(t(!0),u(f,null,v(n(o),(e,b)=>(t(),r(w,{key:b,name:"fade"},{default:l(()=>[e.value.component?(t(),u("eox-layout-item",{key:e.value.id,class:"panel bg-surface",h:e.value.layout.h,w:e.value.layout.w,x:e.value.layout.x,y:e.value.layout.y},[(t(),r(c,{suspensible:""},{default:l(()=>[(t(),r(p(e.value.component),h({key:e.value.id,ref_for:!0},e.value.props),null,16))]),_:2},1024))],8,E)):g("v-if",!0)]),_:2},1024))),128))],8,L)]),_:1}))}},I=m(M,[["__scopeId","data-v-a859692c"]]);export{I as default}; diff --git a/pr-preview/pr-17/assets/DynamicWebComponent-DPZoYKb-.js b/pr-preview/pr-17/assets/DynamicWebComponent-DPZoYKb-.js deleted file mode 100644 index 7a99c11..0000000 --- a/pr-preview/pr-17/assets/DynamicWebComponent-DPZoYKb-.js +++ /dev/null @@ -1 +0,0 @@ -import{bF as i,aC as m,r as p,Z as d,aO as f,$ as c,a6 as g,a0 as y,d as _,a4 as k}from"./index-Dvu417lt.js";const h={class:"d-flex flex-column fill-height overflow-auto"},N={__name:"DynamicWebComponent",props:{link:{type:[String,Function],required:!0},constructorProp:String,tagName:{type:String,required:!0},properties:{type:Object,default:()=>({})},onMounted:Function,onUnmounted:Function},async setup(o){let t,a;const e=o,u=async()=>typeof e.link=="string"?await import(e.link):await e.link(),l=customElements.get(e.tagName)?null:([t,a]=i(()=>u().catch(n=>{console.error(n)})),t=await t,a(),t);if(!customElements.get(e.tagName)&&e.constructorProp){const n=l[e.constructorProp];customElements.define(e.tagName,n)}const s=m(),r=p(null);return d(()=>{e.onMounted?.(r.value,s)}),f(()=>{e.onUnmounted?.(r.value,s)}),(n,w)=>(c(),g("span",h,[(c(),y(k(o.tagName),_(o.properties,{ref_key:"elementRef",ref:r}),null,16))]))}};export{N as default}; diff --git a/pr-preview/pr-17/assets/EodashDatePicker-ClB_nEyz.css b/pr-preview/pr-17/assets/EodashDatePicker-ClB_nEyz.css deleted file mode 100644 index 652f936..0000000 --- a/pr-preview/pr-17/assets/EodashDatePicker-ClB_nEyz.css +++ /dev/null @@ -1 +0,0 @@ -.vc-popover-content-wrapper{--popover-horizontal-content-offset: 8px;--popover-vertical-content-offset: 10px;--popover-caret-horizontal-offset: 18px;--popover-caret-vertical-offset: 8px;position:absolute;display:block;outline:none;z-index:10}.vc-popover-content-wrapper:not(.is-interactive){pointer-events:none}.vc-popover-content{position:relative;color:var(--vc-popover-content-color);font-weight:var(--vc-font-medium);background-color:var(--vc-popover-content-bg);border:1px solid;border-color:var(--vc-popover-content-border);border-radius:var(--vc-rounded-lg);padding:4px;outline:none;z-index:10;box-shadow:var(--vc-shadow-lg)}.vc-popover-content.direction-bottom{margin-top:var(--popover-vertical-content-offset)}.vc-popover-content.direction-top{margin-bottom:var(--popover-vertical-content-offset)}.vc-popover-content.direction-left{margin-right:var(--popover-horizontal-content-offset)}.vc-popover-content.direction-right{margin-left:var(--popover-horizontal-content-offset)}.vc-popover-caret{content:"";position:absolute;display:block;width:12px;height:12px;border-top:inherit;border-left:inherit;background-color:inherit;z-index:-1}.vc-popover-caret.direction-bottom{top:0}.vc-popover-caret.direction-bottom.align-left{-webkit-transform:translateY(-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}.vc-popover-caret.direction-bottom.align-center{-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translate(-50%) translateY(-50%) rotate(45deg)}.vc-popover-caret.direction-bottom.align-right{-webkit-transform:translateY(-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}.vc-popover-caret.direction-top{top:100%}.vc-popover-caret.direction-top.align-left{-webkit-transform:translateY(-50%) rotate(-135deg);transform:translateY(-50%) rotate(-135deg)}.vc-popover-caret.direction-top.align-center{-webkit-transform:translateX(-50%) translateY(-50%) rotate(-135deg);transform:translate(-50%) translateY(-50%) rotate(-135deg)}.vc-popover-caret.direction-top.align-right{-webkit-transform:translateY(-50%) rotate(-135deg);transform:translateY(-50%) rotate(-135deg)}.vc-popover-caret.direction-left{left:100%}.vc-popover-caret.direction-left.align-top{-webkit-transform:translateX(-50%) rotate(135deg);transform:translate(-50%) rotate(135deg)}.vc-popover-caret.direction-left.align-middle{-webkit-transform:translateY(-50%) translateX(-50%) rotate(135deg);transform:translateY(-50%) translate(-50%) rotate(135deg)}.vc-popover-caret.direction-left.align-bottom{-webkit-transform:translateX(-50%) rotate(135deg);transform:translate(-50%) rotate(135deg)}.vc-popover-caret.direction-right{left:0}.vc-popover-caret.direction-right.align-top{-webkit-transform:translateX(-50%) rotate(-45deg);transform:translate(-50%) rotate(-45deg)}.vc-popover-caret.direction-right.align-middle{-webkit-transform:translateY(-50%) translateX(-50%) rotate(-45deg);transform:translateY(-50%) translate(-50%) rotate(-45deg)}.vc-popover-caret.direction-right.align-bottom{-webkit-transform:translateX(-50%) rotate(-45deg);transform:translate(-50%) rotate(-45deg)}.vc-popover-caret.align-left{left:var(--popover-caret-horizontal-offset)}.vc-popover-caret.align-center{left:50%}.vc-popover-caret.align-right{right:var(--popover-caret-horizontal-offset)}.vc-popover-caret.align-top{top:var(--popover-caret-vertical-offset)}.vc-popover-caret.align-middle{top:50%}.vc-popover-caret.align-bottom{bottom:var(--popover-caret-vertical-offset)}.vc-day-popover-row{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;transition:var(--vc-day-content-transition)}.vc-day-popover-row-indicator{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;width:15px}.vc-day-popover-row-indicator span{transition:var(--vc-day-content-transition)}.vc-day-popover-row-label{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-flex-wrap:none;-ms-flex-wrap:none;flex-wrap:none;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;width:-webkit-max-content;width:max-content;margin-left:4px;margin-right:4px;font-size:var(--vc-text-xs);line-height:var(--vc-leading-normal)}.vc-day-popover-row-highlight{width:8px;height:5px;border-radius:3px}.vc-day-popover-row-bar{width:10px;height:3px}.vc-base-icon{display:inline-block;stroke:currentColor;stroke-width:2;fill:none}.vc-header{display:grid;grid-gap:4px;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:30px;margin-top:10px;padding-left:10px;padding-right:10px}.vc-header.is-lg{font-size:var(--vc-text-lg)}.vc-header.is-xl{font-size:var(--vc-text-xl)}.vc-header.is-2xl{font-size:var(--vc-text-2xl)}.vc-header .vc-title-wrapper{grid-row:1;grid-column:title}.vc-header .vc-prev{grid-row:1;grid-column:prev}.vc-header .vc-next{grid-row:1;grid-column:next}.vc-header .vc-title,.vc-header .vc-prev,.vc-header .vc-next{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border:0;border-radius:var(--vc-rounded);pointer-events:auto;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vc-header .vc-title{color:var(--vc-header-title-color);font-weight:var(--vc-font-semibold);white-space:nowrap;padding:0 8px;margin:0;line-height:30px}.vc-header .vc-title:hover{opacity:.75}.vc-header .vc-arrow{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:var(--vc-header-arrow-color);width:28px;height:30px;margin:0;padding:0}.vc-header .vc-arrow:hover{background:var(--vc-header-arrow-hover-bg)}.vc-header .vc-arrow:disabled{opacity:.25;pointer-events:none}.vc-nav-header{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.vc-nav-title,.vc-nav-arrow,.vc-nav-item{font-size:var(--vc-text-sm);margin:0;cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;border:0;border-radius:var(--vc-rounded);white-space:nowrap}.vc-nav-title:hover,.vc-nav-arrow:hover,.vc-nav-item:hover{background-color:var(--vc-nav-hover-bg)}.vc-nav-title:disabled,.vc-nav-arrow:disabled,.vc-nav-item:disabled{opacity:.25;pointer-events:none}.vc-nav-title{color:var(--vc-nav-title-color);font-weight:var(--vc-font-bold);line-height:var(--vc-leading-snug);height:30px;padding:0 6px}.vc-nav-arrow{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:var(--vc-header-arrow-color);width:26px;height:30px;padding:0}.vc-nav-items{display:grid;grid-template-columns:repeat(3,1fr);grid-row-gap:2px;grid-column-gap:5px;margin-top:2px}.vc-nav-item{width:48px;text-align:center;font-weight:var(--vc-font-semibold);line-height:var(--vc-leading-snug);padding:6px 0}.vc-nav-item.is-active{color:var(--vc-nav-item-active-color);background-color:var(--vc-nav-item-active-bg);font-weight:var(--vc-font-bold)}.vc-nav-item.is-active:not(:focus){box-shadow:var(--vc-nav-item-active-box-shadow)}.vc-nav-item.is-current{color:var(--vc-nav-item-current-color)}.vc-day{position:relative;min-height:32px;z-index:1}.vc-monthly .is-not-in-month *{opacity:0;pointer-events:none}.vc-day-layer{position:absolute;inset:0;pointer-events:none}.vc-day-box-center-center{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.vc-day-box-left-center{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-transform-origin:0% 50%;transform-origin:0% 50%}.vc-day-box-right-center{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.vc-day-box-center-bottom{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}.vc-day-content{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:var(--vc-text-sm);font-weight:var(--vc-font-medium);width:28px;height:28px;line-height:28px;border-radius:var(--vc-rounded-full);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vc-day-content:hover{background-color:var(--vc-day-content-hover-bg)}.vc-day-content.vc-disabled{color:var(--vc-day-content-disabled-color)}.vc-content:not(.vc-base){font-weight:var(--vc-font-bold);color:var(--vc-content-color)}.vc-highlights{overflow:hidden;pointer-events:none;z-index:-1}.vc-highlight{width:28px;height:28px}.vc-highlight.vc-highlight-base-start{width:50%!important;border-radius:0!important;border-right-width:0!important}.vc-highlight.vc-highlight-base-end{width:50%!important;border-radius:0!important;border-left-width:0!important}.vc-highlight.vc-highlight-base-middle{width:100%;border-radius:0!important;border-left-width:0!important;border-right-width:0!important;margin:0 -1px}.vc-highlight-bg-outline,.vc-highlight-bg-none{background-color:var(--vc-highlight-outline-bg);border:2px solid;border-color:var(--vc-highlight-outline-border);border-radius:var(--vc-rounded-full)}.vc-highlight-bg-light{background-color:var(--vc-highlight-light-bg);border-radius:var(--vc-rounded-full)}.vc-highlight-bg-solid{background-color:var(--vc-highlight-solid-bg);border-radius:var(--vc-rounded-full)}.vc-highlight-content-outline,.vc-highlight-content-none{font-weight:var(--vc-font-bold);color:var(--vc-highlight-outline-content-color)}.vc-highlight-content-light{font-weight:var(--vc-font-bold);color:var(--vc-highlight-light-content-color)}.vc-highlight-content-solid{font-weight:var(--vc-font-bold);color:var(--vc-highlight-solid-content-color)}.vc-dots{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.vc-dot{width:5px;height:5px;border-radius:9999px;transition:var(--vc-day-content-transition)}.vc-dot:not(:last-child){margin-right:3px}.vc-bars{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:75%}.vc-bar{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;height:3px;transition:var(--vc-day-content-transition)}.vc-dot{background-color:var(--vc-dot-bg)}.vc-bar{background-color:var(--vc-bar-bg)}.vc-pane{min-width:250px}.vc-weeknumber{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:absolute}.vc-weeknumber.is-left{left:calc(var(--vc-weeknumber-offset-inside) * -1)}.vc-weeknumber.is-right{right:calc(var(--vc-weeknumber-offset-inside) * -1)}.vc-weeknumber.is-left-outside{left:calc(var(--vc-weeknumber-offset-outside) * -1)}.vc-weeknumber.is-right-outside{right:calc(var(--vc-weeknumber-offset-outside) * -1)}.vc-weeknumber-content{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:var(--vc-text-xs);font-weight:var(--vc-font-medium);font-style:italic;width:28px;height:28px;margin-top:2px;color:var(--vc-weeknumber-color);-webkit-user-select:none;-ms-user-select:none;user-select:none}.vc-weeks{position:relative;-webkit-overflow-scrolling:touch;padding:6px;min-width:232px}.vc-weeks.vc-show-weeknumbers-left{margin-left:var(--vc-weeknumber-offset-inside)}.vc-weeks.vc-show-weeknumbers-right{margin-right:var(--vc-weeknumber-offset-inside)}.vc-weekday{text-align:center;color:var(--vc-weekday-color);font-size:var(--vc-text-sm);font-weight:var(--vc-font-bold);line-height:14px;padding-top:4px;padding-bottom:8px;cursor:default;-webkit-user-select:none;-ms-user-select:none;user-select:none}.vc-week,.vc-weekdays{display:grid;grid-template-columns:repeat(7,1fr);position:relative}.vc-pane-container{width:100%;position:relative}.vc-pane-container.in-transition{overflow:hidden}.vc-pane-layout{display:grid}.vc-pane-header-wrapper{position:absolute;top:0;width:100%;pointer-events:none}.vc-day-popover-container{font-size:var(--vc-text-xs);font-weight:var(--vc-font-medium)}.vc-day-popover-header{font-size:var(--vc-text-xs);color:var(--vc-day-popover-header-color);font-weight:var(--vc-font-semibold);text-align:center}.vc-base-select{position:relative;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:30px;font-size:var(--vc-text-base);font-weight:var(--vc-font-medium)}.vc-base-select.vc-has-icon select{padding:0 27px 0 9px}.vc-base-select.vc-has-icon .vc-base-sizer{padding:0 28px 0 10px}.vc-base-select.vc-fit-content select{position:absolute;top:0;left:0;width:100%}.vc-base-select .vc-base-icon{position:absolute;top:6px;right:4px;opacity:.6;pointer-events:none}.vc-base-select .vc-base-sizer{font-size:var(--vc-text-base);font-weight:var(--vc-font-medium);color:transparent;padding:0 8px;margin:0}.vc-base-select select{display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:var(--vc-select-color);display:block;-webkit-appearance:none;appearance:none;background-color:var(--vc-select-bg);border-radius:var(--vc-rounded);height:30px;width:-webkit-max-content;width:max-content;padding:0 7px;margin:0;line-height:var(--leading-none);text-indent:0px;background-image:none;cursor:pointer;text-align:center}.vc-base-select select:hover{background-color:var(--vc-select-hover-bg)}.vc-base-select select.vc-align-left{text-align:left}.vc-base-select select.vc-align-right{text-align:right}.vc-time-picker{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:8px 4px}.vc-time-picker.vc-invalid{pointer-events:none;opacity:.5}.vc-time-picker.vc-attached{border-top:1px solid var(--vc-time-picker-border)}.vc-time-picker>*+*{margin-top:4px}.vc-time-header{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:var(--vc-text-sm);font-weight:var(--vc-font-semibold);text-transform:uppercase;margin-top:-4px;padding-left:4px;padding-right:4px;line-height:21px}.vc-time-select-group{display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 4px;background:var(--vc-time-select-group-bg);border-radius:var(--vc-rounded-md);border:1px solid var(--vc-time-select-group-border)}.vc-time-select-group .vc-base-icon{margin-right:4px;color:var(--vc-time-select-group-icon-color)}.vc-time-select-group select{background:transparent;padding:0 4px}.vc-time-weekday{color:var(--vc-time-weekday-color);letter-spacing:var(--tracking-wide)}.vc-time-month{color:var(--vc-time-month-color);margin-left:8px}.vc-time-day{color:var(--vc-time-day-color);margin-left:4px}.vc-time-year{color:var(--vc-time-year-color);margin-left:8px}.vc-time-colon{margin:0 1px 2px 2px}.vc-time-decimal{margin:0 0 0 1px}.vc-none-enter-active,.vc-none-leave-active{transition-duration:0s}.vc-fade-enter-active,.vc-fade-leave-active,.vc-slide-left-enter-active,.vc-slide-left-leave-active,.vc-slide-right-enter-active,.vc-slide-right-leave-active,.vc-slide-up-enter-active,.vc-slide-up-leave-active,.vc-slide-down-enter-active,.vc-slide-down-leave-active,.vc-slide-fade-enter-active,.vc-slide-fade-leave-active{transition:opacity var(--vc-slide-duration) var(--vc-slide-timing),-webkit-transform var(--vc-slide-duration) var(--vc-slide-timing);transition:transform var(--vc-slide-duration) var(--vc-slide-timing),opacity var(--vc-slide-duration) var(--vc-slide-timing);transition:transform var(--vc-slide-duration) var(--vc-slide-timing),opacity var(--vc-slide-duration) var(--vc-slide-timing),-webkit-transform var(--vc-slide-duration) var(--vc-slide-timing);-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:none}.vc-none-leave-active,.vc-fade-leave-active,.vc-slide-left-leave-active,.vc-slide-right-leave-active,.vc-slide-up-leave-active,.vc-slide-down-leave-active{position:absolute!important;width:100%}.vc-none-enter-from,.vc-none-leave-to,.vc-fade-enter-from,.vc-fade-leave-to,.vc-slide-left-enter-from,.vc-slide-left-leave-to,.vc-slide-right-enter-from,.vc-slide-right-leave-to,.vc-slide-up-enter-from,.vc-slide-up-leave-to,.vc-slide-down-enter-from,.vc-slide-down-leave-to,.vc-slide-fade-enter-from,.vc-slide-fade-leave-to{opacity:0}.vc-slide-left-enter-from,.vc-slide-right-leave-to,.vc-slide-fade-enter-from.direction-left,.vc-slide-fade-leave-to.direction-left{-webkit-transform:translateX(var(--vc-slide-translate));transform:translate(var(--vc-slide-translate))}.vc-slide-right-enter-from,.vc-slide-left-leave-to,.vc-slide-fade-enter-from.direction-right,.vc-slide-fade-leave-to.direction-right{-webkit-transform:translateX(calc(-1 * var(--vc-slide-translate)));transform:translate(calc(-1 * var(--vc-slide-translate)))}.vc-slide-up-enter-from,.vc-slide-down-leave-to,.vc-slide-fade-enter-from.direction-top,.vc-slide-fade-leave-to.direction-top{-webkit-transform:translateY(var(--vc-slide-translate));transform:translateY(var(--vc-slide-translate))}.vc-slide-down-enter-from,.vc-slide-up-leave-to,.vc-slide-fade-enter-from.direction-bottom,.vc-slide-fade-leave-to.direction-bottom{-webkit-transform:translateY(calc(-1 * var(--vc-slide-translate)));transform:translateY(calc(-1 * var(--vc-slide-translate)))}:root{--vc-white: #ffffff;--vc-black: #000000;--vc-gray-50: #f8fafc;--vc-gray-100: #f1f5f9;--vc-gray-200: #e2e8f0;--vc-gray-300: #cbd5e1;--vc-gray-400: #94a3b8;--vc-gray-500: #64748b;--vc-gray-600: #475569;--vc-gray-700: #334155;--vc-gray-800: #1e293b;--vc-gray-900: #0f172a;--vc-font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;--vc-font-normal: 400;--vc-font-medium: 500;--vc-font-semibold: 600;--vc-font-bold: 700;--vc-text-2xs: 10px;--vc-text-xs: 12px;--vc-text-sm: 14px;--vc-text-base: 16px;--vc-text-lg: 18px;--vc-text-xl: 20px;--vc-text-2xl: 24px;--vc-leading-none: 1;--vc-leading-tight: 1.25;--vc-leading-snug: 1.375;--vc-leading-normal: 1.5;--vc-rounded: .25rem;--vc-rounded-md: .375rem;--vc-rounded-lg: .5rem;--vc-rounded-full: 9999px;--vc-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);--vc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--vc-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, .06);--vc-slide-translate: 22px;--vc-slide-duration: .15s;--vc-slide-timing: ease;--vc-day-content-transition: all .13s ease-in;--vc-weeknumber-offset-inside: 26px;--vc-weeknumber-offset-outside: 34px}.vc-gray{--vc-accent-50: var(--vc-gray-50);--vc-accent-100: var(--vc-gray-100);--vc-accent-200: var(--vc-gray-200);--vc-accent-300: var(--vc-gray-300);--vc-accent-400: var(--vc-gray-400);--vc-accent-500: var(--vc-gray-500);--vc-accent-600: var(--vc-gray-600);--vc-accent-700: var(--vc-gray-700);--vc-accent-800: var(--vc-gray-800);--vc-accent-900: var(--vc-gray-900)}.vc-red{--vc-accent-50: #fef2f2;--vc-accent-100: #fee2e2;--vc-accent-200: #fecaca;--vc-accent-300: #fca5a5;--vc-accent-400: #f87171;--vc-accent-500: #ef4444;--vc-accent-600: #dc2626;--vc-accent-700: #b91c1c;--vc-accent-800: #991b1b;--vc-accent-900: #7f1d1d}.vc-orange{--vc-accent-50: #fff7ed;--vc-accent-100: #ffedd5;--vc-accent-200: #fed7aa;--vc-accent-300: #fdba74;--vc-accent-400: #fb923c;--vc-accent-500: #f97316;--vc-accent-600: #ea580c;--vc-accent-700: #c2410c;--vc-accent-800: #9a3412;--vc-accent-900: #7c2d12}.vc-yellow{--vc-accent-50: #fefce8;--vc-accent-100: #fef9c3;--vc-accent-200: #fef08a;--vc-accent-300: #fde047;--vc-accent-400: #facc15;--vc-accent-500: #eab308;--vc-accent-600: #ca8a04;--vc-accent-700: #a16207;--vc-accent-800: #854d0e;--vc-accent-900: #713f12}.vc-green{--vc-accent-50: #f0fdf4;--vc-accent-100: #dcfce7;--vc-accent-200: #bbf7d0;--vc-accent-300: #86efac;--vc-accent-400: #4ade80;--vc-accent-500: #22c55e;--vc-accent-600: #16a34a;--vc-accent-700: #15803d;--vc-accent-800: #166534;--vc-accent-900: #14532d}.vc-teal{--vc-accent-50: #f0fdfa;--vc-accent-100: #ccfbf1;--vc-accent-200: #99f6e4;--vc-accent-300: #5eead4;--vc-accent-400: #2dd4bf;--vc-accent-500: #14b8a6;--vc-accent-600: #0d9488;--vc-accent-700: #0f766e;--vc-accent-800: #115e59;--vc-accent-900: #134e4a}.vc-blue{--vc-accent-50: #eff6ff;--vc-accent-100: #dbeafe;--vc-accent-200: #bfdbfe;--vc-accent-300: #93c5fd;--vc-accent-400: #60a5fa;--vc-accent-500: #3b82f6;--vc-accent-600: #2563eb;--vc-accent-700: #1d4ed8;--vc-accent-800: #1e40af;--vc-accent-900: #1e3a8a}.vc-indigo{--vc-accent-50: #eef2ff;--vc-accent-100: #e0e7ff;--vc-accent-200: #c7d2fe;--vc-accent-300: #a5b4fc;--vc-accent-400: #818cf8;--vc-accent-500: #6366f1;--vc-accent-600: #4f46e5;--vc-accent-700: #4338ca;--vc-accent-800: #3730a3;--vc-accent-900: #312e81}.vc-purple{--vc-accent-50: #faf5ff;--vc-accent-100: #f3e8ff;--vc-accent-200: #e9d5ff;--vc-accent-300: #d8b4fe;--vc-accent-400: #c084fc;--vc-accent-500: #a855f7;--vc-accent-600: #9333ea;--vc-accent-700: #7e22ce;--vc-accent-800: #6b21a8;--vc-accent-900: #581c87}.vc-pink{--vc-accent-50: #fdf2f8;--vc-accent-100: #fce7f3;--vc-accent-200: #fbcfe8;--vc-accent-300: #f9a8d4;--vc-accent-400: #f472b6;--vc-accent-500: #ec4899;--vc-accent-600: #db2777;--vc-accent-700: #be185d;--vc-accent-800: #9d174d;--vc-accent-900: #831843}.vc-focus:focus-within{outline:0;box-shadow:var(--vc-focus-ring)}.vc-light{--vc-color: var(--vc-gray-900);--vc-bg: var(--vc-white);--vc-border: var(--vc-gray-300);--vc-hover-bg: hsla(211, 25%, 84%, .3);--vc-focus-ring: 0 0 0 2px rgb(59, 131, 246, .4);--vc-header-arrow-color: var(--vc-gray-500);--vc-header-arrow-hover-bg: var(--vc-gray-200);--vc-header-title-color: var(--vc-gray-900);--vc-weekday-color: var(--vc-gray-500);--vc-weeknumber-color: var(--vc-gray-400);--vc-nav-hover-bg: var(--vc-gray-200);--vc-nav-title-color: var(--vc-gray-900);--vc-nav-item-hover-box-shadow: none;--vc-nav-item-active-color: var(--vc-white);--vc-nav-item-active-bg: var(--vc-accent-500);--vc-nav-item-active-box-shadow: var(--vc-shadow);--vc-nav-item-current-color: var(--vc-accent-600);--vc-day-popover-container-color: var(--vc-white);--vc-day-popover-container-bg: var(--vc-gray-800);--vc-day-popover-container-border: var(--vc-gray-700);--vc-day-popover-header-color: var(--vc-gray-700);--vc-popover-content-color: var(--vc-gray-900);--vc-popover-content-bg: var(--vc-gray-50);--vc-popover-content-border: var(--vc-gray-300);--vc-time-picker-border: var(--vc-gray-300);--vc-time-weekday-color: var(--vc-gray-700);--vc-time-month-color: var(--vc-accent-600);--vc-time-day-color: var(--vc-accent-600);--vc-time-year-color: var(--vc-gray-500);--vc-time-select-group-bg: var(--vc-gray-50);--vc-time-select-group-border: var(--vc-gray-300);--vc-time-select-group-icon-color: var(--vc-accent-500);--vc-select-color: var(--vc-gray-900);--vc-select-bg: var(--vc-gray-100);--vc-select-hover-bg: var(--vc-gray-200);--vc-day-content-hover-bg: var(--vc-hover-bg);--vc-day-content-disabled-color: var(--vc-gray-400)}.vc-light.vc-attr,.vc-light .vc-attr{--vc-content-color: var(--vc-accent-600);--vc-highlight-outline-bg: var(--vc-white);--vc-highlight-outline-border: var(--vc-accent-600);--vc-highlight-outline-content-color: var(--vc-accent-700);--vc-highlight-light-bg: var(--vc-accent-200);--vc-highlight-light-content-color: var(--vc-accent-900);--vc-highlight-solid-bg: var(--vc-accent-600);--vc-highlight-solid-content-color: var(--vc-white);--vc-dot-bg: var(--vc-accent-600);--vc-bar-bg: var(--vc-accent-600)}.vc-dark{--vc-color: var(--vc-white);--vc-bg: var(--vc-gray-900);--vc-border: var(--vc-gray-700);--vc-hover-bg: hsla(216, 15%, 52%, .3);--vc-focus-ring: 0 0 0 2px rgb(59 130 246 / .7);--vc-header-arrow-color: var(--vc-gray-300);--vc-header-arrow-hover-bg: var(--vc-gray-800);--vc-header-title-color: var(--vc-gray-100);--vc-weekday-color: var(--vc-accent-200);--vc-weeknumber-color: var(--vc-gray-500);--vc-nav-hover-bg: var(--vc-gray-700);--vc-nav-title-color: var(--vc-gray-100);--vc-nav-item-hover-box-shadow: none;--vc-nav-item-active-color: var(--vc-white);--vc-nav-item-active-bg: var(--vc-accent-500);--vc-nav-item-active-box-shadow: none;--vc-nav-item-current-color: var(--vc-accent-400);--vc-day-popover-container-color: var(--vc-gray-800);--vc-day-popover-container-bg: var(--vc-white);--vc-day-popover-container-border: var(--vc-gray-100);--vc-day-popover-header-color: var(--vc-gray-300);--vc-popover-content-color: var(--vc-white);--vc-popover-content-bg: var(--vc-gray-800);--vc-popover-content-border: var(--vc-gray-700);--vc-time-picker-border: var(--vc-gray-700);--vc-time-weekday-color: var(--vc-gray-400);--vc-time-month-color: var(--vc-accent-400);--vc-time-day-color: var(--vc-accent-400);--vc-time-year-color: var(--vc-gray-500);--vc-time-select-group-bg: var(--vc-gray-700);--vc-time-select-group-border: var(--vc-gray-500);--vc-time-select-group-icon-color: var(--vc-accent-400);--vc-select-color: var(--vc-gray-200);--vc-select-bg: var(--vc-gray-700);--vc-select-hover-bg: var(--vc-gray-600);--vc-day-content-hover-bg: var(--vc-hover-bg);--vc-day-content-disabled-color: var(--vc-gray-600)}.vc-dark.vc-attr,.vc-dark .vc-attr{--vc-content-color: var(--vc-accent-500);--vc-highlight-outline-bg: var(--vc-gray-900);--vc-highlight-outline-border: var(--vc-accent-300);--vc-highlight-outline-content-color: var(--vc-accent-200);--vc-highlight-light-bg: var(--vc-accent-800);--vc-highlight-light-content-color: var(--vc-accent-100);--vc-highlight-solid-bg: var(--vc-accent-500);--vc-highlight-solid-content-color: var(--vc-white);--vc-dot-bg: var(--vc-accent-500);--vc-bar-bg: var(--vc-accent-500)}.vc-container{position:relative;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:-webkit-max-content;width:max-content;height:-webkit-max-content;height:max-content;font-family:var(--vc-font-family);color:var(--vc-color);background-color:var(--vc-bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}.vc-container,.vc-container *{box-sizing:border-box}.vc-container:focus,.vc-container *:focus{outline:none}.vc-container .vc-container{border:none}.vc-bordered{border:1px solid;border-color:var(--vc-border);border-radius:var(--vc-rounded-lg)}.vc-expanded{min-width:100%}.vc-transparent{background-color:transparent}.vc-date-picker-content{padding:0;background-color:var(--vc-bg)}.vc-date-picker-content .vc-container{border:0}.v-tooltip>.v-overlay__content{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform;overflow-wrap:break-word}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms} diff --git a/pr-preview/pr-17/assets/EodashDatePicker-g0QWHEy-.js b/pr-preview/pr-17/assets/EodashDatePicker-g0QWHEy-.js deleted file mode 100644 index 540dca7..0000000 --- a/pr-preview/pr-17/assets/EodashDatePicker-g0QWHEy-.js +++ /dev/null @@ -1 +0,0 @@ -import{p as B,o as $,g as I,y as _,ax as j,c as v,r as V,d as h,a as M,b as p,ay as R,az as O,T as U,aA as F,x as H,Z as N,aB as Y,aC as z,w as G,$ as w,a6 as W,a1 as y,a3 as C,aD as J,F as K,W as L,a9 as k,aE as Z,aF as q,t as S,a0 as T,M as D,aG as Q,V as P,aH as X,aI as x,aJ as tt}from"./index-Dvu417lt.js";import{t as et,e as at}from"./helpers-CkhK5_6d.js";import{m as ot,V as E}from"./VOverlay-DGc1wXYF.js";import{b as nt,f as st}from"./forwardRefs-DzUtZcD3.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./transition-BKtsYhmO.js";const rt=B({id:String,text:String,...$(ot({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),it=I()({name:"VTooltip",props:rt(),emits:{"update:modelValue":t=>!0},setup(t,r){let{slots:i}=r;const o=_(t,"modelValue"),{scopeId:n}=nt(),l=j(),e=v(()=>t.id||`v-tooltip-${l}`),a=V(),s=v(()=>t.location.split(" ").length>1?t.location:t.location+" center"),c=v(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),d=v(()=>t.transition?t.transition:o.value?"scale-transition":"fade-transition"),f=v(()=>h({"aria-describedby":e.value},t.activatorProps));return M(()=>{const b=E.filterProps(t);return p(E,h({ref:a,class:["v-tooltip",t.class],style:t.style,id:e.value},b,{modelValue:o.value,"onUpdate:modelValue":m=>o.value=m,transition:d.value,absolute:!0,location:s.value,origin:c.value,persistent:!0,role:"tooltip",activatorProps:f.value,_disableGlobalStack:!0},n),{activator:i.activator,default:function(){for(var m=arguments.length,u=new Array(m),g=0;ge??i.innerHTML,c=(n.ctx===o.instance.$?ut(n,o.instance.$)?.provides:n.ctx?.provides)??o.instance.$.provides,d=F(t,h(l,a),s);d.appContext=Object.assign(Object.create(null),o.instance.$.appContext,{provides:c}),O(d,i)}}function ut(t,r){const i=new Set,o=l=>{for(const e of l){if(!e)continue;if(e===t)return!0;i.add(e);let a;if(e.suspense?a=o([e.ssContent]):Array.isArray(e.children)?a=o(e.children):e.component?.vnode&&(a=o([e.component?.subTree])),a)return a;i.delete(e)}return!1};if(!o([r.subTree]))throw new Error("Could not find original vnode");const n=Array.from(i).reverse();for(const l of n)if(l.component)return l.component;return r}const A=lt(it,t=>({activator:"parent",location:t.arg?.replace("-"," ")??"top",text:typeof t.value=="boolean"?void 0:t.value})),dt={class:"flex rounded-lg border border-gray-300 dark:border-gray-600",style:{margin:"2px"}},ft=["value"],ht={__name:"EodashDatePicker",setup(t){function r(e){if(n.value&&n.value.length>0){let a=e?1/0:-1/0;n.value.forEach(s=>{s?.dates&&s.dates.forEach(c=>{c instanceof Date&&(!e&&c.getTime()>a||e&&c.getTime(){const{selectedStac:e}=Y(z());G([e],async([a])=>{if(a){const s=et(`./${a.id}/collection.json`,i.stacEndpoint),c=at(e.value,s),d=["#009E73","#0072B2","#E69F00","#CC79A7","#56B4E9","#D55E00"];for(let f=0;fu.data)).links.filter(u=>u.rel==="item"&&"datetime"in u).map(u=>new Date(u.datetime));n.value=[{bar:{style:{backgroundColor:d[f%d.length]}},dates:m}]}}},{immediate:!0})}),(e,a)=>(w(),W(K,null,[p(C(q),{modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=s=>l.value=s),masks:o.value,attributes:n.value},{default:y(({inputValue:s,inputEvents:c})=>[k("div",dt,[k("input",h({value:s},Z(c,!0),{style:{margin:"1px"},class:"flex-grow px-1 py-1 bg-white dark:bg-gray-700"}),null,16,ft)])]),_:1},8,["modelValue","masks","attributes"]),p(J,{align:"center",justify:"center",style:{"margin-top":"6px"}},{default:y(()=>[S((w(),T(P,{style:{padding:"0px","margin-right":"4px"},density:"compact",onClick:a[1]||(a[1]=s=>r(!0))},{default:y(()=>[p(D,{icon:[C(Q)]},null,8,["icon"])]),_:1})),[[A,"Set date to oldest available dataset","bottom"]]),S((w(),T(P,{style:{padding:"0px","margin-left":"4px"},density:"compact",onClick:a[2]||(a[2]=s=>r(!1))},{default:y(()=>[p(D,{icon:[C(X)]},null,8,["icon"])]),_:1})),[[A,"Set date to latest available dataset","bottom"]])]),_:1})],64))}};export{ht as default}; diff --git a/pr-preview/pr-17/assets/EodashItemFilter-BTypMvp7.js b/pr-preview/pr-17/assets/EodashItemFilter-BTypMvp7.js deleted file mode 100644 index b4ad787..0000000 --- a/pr-preview/pr-17/assets/EodashItemFilter-BTypMvp7.js +++ /dev/null @@ -1,873 +0,0 @@ -import{r as Jh,aC as Xh,Z as Kh,$ as Qh,a6 as tf,a9 as tl,aa as el,d as ef}from"./index-Dvu417lt.js";var rf=Object.defineProperty,ru=t=>{throw TypeError(t)},nf=(t,e,r)=>e in t?rf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ho=(t,e,r)=>nf(t,typeof e!="symbol"?e+"":e,r),ya=(t,e,r)=>e.has(t)||ru("Cannot "+r),le=(t,e,r)=>(ya(t,e,"read from private field"),r?r.call(t):e.get(t)),ne=(t,e,r)=>e.has(t)?ru("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Jo=(t,e,r,n)=>(ya(t,e,"write to private field"),e.set(t,r),r),pt=(t,e,r)=>(ya(t,e,"access private method"),r);/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Li=globalThis,ma=Li.ShadowRoot&&(Li.ShadyCSS===void 0||Li.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nu=Symbol(),rl=new WeakMap;let of=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==nu)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ma&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=rl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&rl.set(e,t))}return t}toString(){return this.cssText}};const sf=t=>new of(typeof t=="string"?t:t+"",void 0,nu),af=(t,e)=>{if(ma)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const n=document.createElement("style"),i=Li.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},nl=ma?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return sf(r)})(t):t;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{is:lf,defineProperty:cf,getOwnPropertyDescriptor:uf,getOwnPropertyNames:pf,getOwnPropertySymbols:hf,getPrototypeOf:ff}=Object,Xr=globalThis,il=Xr.trustedTypes,df=il?il.emptyScript:"",ol=Xr.reactiveElementPolyfillSupport,Bn=(t,e)=>t,As={toAttribute(t,e){switch(e){case Boolean:t=t?df:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},iu=(t,e)=>!lf(t,e),sl={attribute:!0,type:String,converter:As,reflect:!1,hasChanged:iu};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Xr.litPropertyMetadata??(Xr.litPropertyMetadata=new WeakMap);class zr extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=sl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&cf(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){const{get:i,set:o}=uf(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){const l=i?.call(this);o.call(this,s),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??sl}static _$Ei(){if(this.hasOwnProperty(Bn("elementProperties")))return;const e=ff(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Bn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bn("properties"))){const r=this.properties,n=[...pf(r),...hf(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(nl(i))}else e!==void 0&&r.push(nl(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return af(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EC(e,r){var n;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const s=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:As).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,r){var n;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const s=i.getPropertyOptions(o),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:As;this._$Em=o,this[o]=l.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??(n=this.constructor.getPropertyOptions(e)),!(n.hasChanged??iu)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,s]of i)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let r=!1;const n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$EO)==null||e.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(n)):this._$EU()}catch(i){throw r=!1,this._$EU(),i}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(e){}firstUpdated(e){}}zr.elementStyles=[],zr.shadowRootOptions={mode:"open"},zr[Bn("elementProperties")]=new Map,zr[Bn("finalized")]=new Map,ol?.({ReactiveElement:zr}),(Xr.reactiveElementVersions??(Xr.reactiveElementVersions=[])).push("2.0.4");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const zi=globalThis,Gi=zi.trustedTypes,al=Gi?Gi.createPolicy("lit-html",{createHTML:t=>t}):void 0,ba="$lit$",De=`lit$${Math.random().toFixed(9).slice(2)}$`,va="?"+De,gf=`<${va}>`,vr=document,Wn=()=>vr.createComment(""),qn=t=>t===null||typeof t!="object"&&typeof t!="function",ou=Array.isArray,su=t=>ou(t)||typeof t?.[Symbol.iterator]=="function",Xo=`[ -\f\r]`,jn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ll=/-->/g,cl=/>/g,fr=RegExp(`>|${Xo}(?:([^\\s"'>=/]+)(${Xo}*=${Xo}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),ul=/'/g,pl=/"/g,au=/^(?:script|style|textarea|title)$/i,yf=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Q=yf(1),Ve=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),hl=new WeakMap,yr=vr.createTreeWalker(vr,129);function lu(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return al!==void 0?al.createHTML(e):e}const cu=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"":"",s=jn;for(let l=0;l"?(s=i??jn,d=-1):h[1]===void 0?d=-2:(d=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?fr:h[3]==='"'?pl:ul):s===pl||s===ul?s=fr:s===ll||s===cl?s=jn:(s=fr,i=void 0);const b=s===fr&&t[l+1].startsWith("/>")?" ":"";o+=s===jn?a+gf:d>=0?(n.push(u),a.slice(0,d)+ba+a.slice(d)+De+b):a+De+(d===-2?l:b)}return[lu(t,o+(t[r]||"")+(e===2?"":"")),n]};class zn{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0;const l=e.length-1,a=this.parts,[u,h]=cu(e,r);if(this.el=zn.createElement(u,n),yr.currentNode=this.el.content,r===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=yr.nextNode())!==null&&a.length0){i.textContent=Gi?Gi.emptyScript:"";for(let b=0;b2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=vt}_$AI(e,r=this,n,i){const o=this.strings;let s=!1;if(o===void 0)e=wr(this,e,r,0),s=!qn(e)||e!==this._$AH&&e!==Ve,s&&(this._$AH=e);else{const l=e;let a,u;for(e=o[0],a=0;a{const n=r?.renderBefore??e;let i=n._$litPart$;if(i===void 0){const o=r?.renderBefore??null;n._$litPart$=i=new nn(e.insertBefore(Wn(),o),o,void 0,r??{})}return i._$AI(t),i};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */let ie=class extends zr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=bf(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Ve}};var dl;ie._$litElement$=!0,ie.finalized=!0,(dl=globalThis.litElementHydrateSupport)==null||dl.call(globalThis,{LitElement:ie});const gl=globalThis.litElementPolyfillSupport;gl?.({LitElement:ie});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function*fo(t,e){if(t!==void 0){let r=0;for(const n of t)yield e(n,r++)}}/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function Jt(t,e,r){return t?e(t):r?.(t)}const vf=` -:host { - display: flex; - box-sizing: border-box; - height: 100%; - line-height: 1; -} -*, -*:before, -*:after { - box-sizing: inherit; -} -form#itemfilter { - height: 100%; - width: 100%; - max-width: 100%; - display: flex; - flex-direction: column; -} -form#itemfilter:not(.inline) { - overflow-y: auto; -} -details { - width: 100%; -} -`,Qn=` -:host, :root { - --item-color: color-mix( - in srgb, - var(--primary-color) 10%, - transparent - ); - --item-hover-color: color-mix( - in srgb, - var(--secondary-color) 30%, - transparent - ); - --inline-bg-color: color-mix( - in srgb, - var(--secondary-color) 10%, - transparent - ); - --border-color: color-mix( - in srgb, - #000000 20%, - transparent - ); - --background-color: #fff; -} -* { - font-family: Roboto, sans-serif; -} -ul { - padding-left: 0; - margin-top: 0; -} -li { - list-style: none; -} -li span { - text-overflow: ellipsis; - white-space: nowrap; -} -li label { - display: flex; - align-items: center; -} -details summary > * { - display: inline; -} -details summary { - display: flex; - align-items: center; - border-bottom: 1px solid #0002; - padding: .5rem 0; -} - -details > summary::-webkit-details-marker { - display: none; -} - -.title { - font-size: 13px; - align-items: center; - text-transform: capitalize; -} -.subtitle { - font-size: 11px; - opacity: .7; - margin-top: 6px; -} -.title-container { - display: flex; - flex-direction: column; -} -h6.main-heading { - font-size: 1rem; - margin-block-start: 1.33em; - margin-block-end: 1.33em; - margin-top: 8px; -} -details summary .title { - display: flex; - font-weight: 500; -} -details.details-filter summary::after, -details.details-results summary::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230009' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E"); - height: 24px; - width: 24px; -} -details.details-filter summary::after { - position: absolute; - right: 8px; - transform: rotate(90deg); -} -details[open] summary::before { - transform: rotate(90deg); -} -details[open] summary::after { - transform: rotate(270deg); -} -eox-itemfilter-expandcontainer { - max-height: 200px; -} -eox-itemfilter-expandcontainer > [data-type=filter] { - display: block; - height: calc(100% - 32px); - overflow-y: auto; -} -[data-type=filter] .title, -details summary { - text-transform: capitalize; -} -li, -label, -details, -input[type="checkbox"], -input[type="radio"] { - cursor: pointer; -} -input[type="checkbox"], -input[type="radio"] { - margin: 0; -} -input[type="text"] { - box-sizing: border-box; - width: 100%; - margin-top: 0.5rem; - margin-bottom: 0.5rem; - padding: 5px 7px; - border-radius: 4px; - border: 1px solid var(--border-color); -} -section:not(section:last-of-type) { - margin-bottom: 1rem; -} -#section-results { - overflow: hidden; - flex: 1; - display: flex; - flex-direction: column; -} -ul:not(#filters) > li { - padding: 5px 10px; -} -section { - position: relative; - background-color: var(--background-color); -} -button#filter-reset { - position: absolute; - top: 4px; - right: 4px; - padding: 2px 10px; -} -.count { - display: flex; - justify-content: center; - align-items: center; - background: var(--secondary-color); - padding: 0 12px; - height: 20px; - border-radius: 10px; - color: var(--primary-color); - font-weight: 500; - margin-left: 9px; -} -eox-itemfilter-range, -tc-range-slider { - align-items: center; - display: block; - padding-left: 0.6rem; -} -.range-before, -.range-after { - font-size: small; -} -.range-before, -.range-after { - margin: 1rem 0px; -} - -button.reset-icon:before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E"); -} -eox-itemfilter-expandcontainer button.reset-icon { - margin-left: 4px; - margin-top: -5px; - height: 14px; - width: 14px; -} -eox-itemfilter-expandcontainer button.reset-icon:before { - height: 14px; - width: 14px; -} -.inline-content { - border: 1.5px solid var(--secondary-color); - border-radius: 4px; - max-height: 300px; - overflow-y: auto; - background: var(--inline-bg-color); - margin-top: 4px; - padding: 8px; -} -.inline-container { - position: relative; - align-items: center; -} -.inline-container-wrapper { - width: 100%; - position: relative; -} -.inline-container { - position: relative; - border: 1px solid var(--border-color); - border-radius: 4px; - height: 24px; - padding: 8px; - flex: 1; - justify-content: space-between; - cursor: text; - transition: all 0.2s ease-in-out; - display: flex; -} -.inline-container:hover { - border: 1px solid var(--primary-color); -} -[popover] { - position: fixed; - top: 0; - left: 0; - margin: 0; - padding: 0; - background-color: var(--background-color); - border: none; -} -.input-container { - display: flex; - flex: 1; - align-items: center; -} -.input-container input, -.input-container input:focus { - height: 100%; - border: none; - outline: none; - border: 0; - min-width: 25%; -} -.button-container { - display: flex; - align-items: center; - justify-content: center; - position: absolute; - right: 1px; - top: 5px; - height: calc(100% - 10px); - width: 34px; - background: white; -} -button.icon { - color: #004170; - height: 24px; - font-size: large; - width: unset; -} -.inline-container::-webkit-scrollbar { - height: 2px; -} -.inline-container::-webkit-scrollbar-thumb { - background: lightgrey; - border-radius: 2px; -} -.hidden { - height: 0; - padding: 0; - border: none; -} -.hidden:hover { - border: none; -} -.chip-title { - pointer-events: none; - text-transform: capitalize; -} -.chip { - display: flex; - align-items: center; - background: var(--item-color); - border-radius: 30px; - margin-right: 4px; - padding: 5px 10px; - font-size: small; - cursor: default; - white-space: nowrap; -} -.chip.highlighted { - background: var(--primary-color); - color: white; -} -.chip-close { - cursor: pointer; - font-weight: 600; - position: absolute; - right: -25px; - background: white; - top: 0; - height: 100%; - display: flex; - align-items: center; - height: 24px; - width: 24px; -} -.chip-close:before { - position: absolute; - text-indent: 0; - line-height: initial; - height: 24px; - width: 24px; - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E"); -} -.chip-container { - position: relative; - max-width: 75%; -} -.autocomplete-container, -.text-container { - position: relative; - align-items: center; - width: 100%; - box-sizing: border-box; - border: 1px solid var(--border-color); - border-radius: 4px; - justify-content: space-between; - cursor: text; - margin-top: 0.5rem; - margin-bottom: 0.5rem; - background: white; -} -.autocomplete-container:hover, -.text-container:hover { - border: 1px solid var(--primary-color); -} -.autocomplete-container-wrapper, -.text-container-wrapper { - padding: 6px; - position: relative; - display: flex; - align-items: center; - flex: 1; - overflow-x: auto; - -ms-overflow-style: none; - scrollbar-width: none; -} -.autocomplete-container-wrapper::-webkit-scrollbar { - display: none; -} -.chip-wrapper { - -ms-overflow-style: none; - scrollbar-width: none; -} -.chip-wrapper::-webkit-scrollbar { - display: none; - width: 0; - background: transparent; -} -.autocomplete-input, -.text-input { - flex: 1; - border: none !important; - outline: none; - box-sizing: border-box; - margin-top: 0 !important; - margin-bottom: 0 !important; - padding: 3px 0px !important; - min-width: 150px; - border-radius: 4px; -} -.selected-items { - display: flex; - flex-wrap: nowrap; - gap: 4px; -} -li.highlighted, -.select-container li:hover, -.highlight-item { - background: var(--item-hover-color); -} -.selected-item span { - margin-right: 8px; -} -.selected-item button { - background: none; - border: none; - color: #fff; - cursor: pointer; - font-size: 16px; - line-height: 1; -} -.multiselect-container, -.select-container { - display: flex; - flex-direction: column; - gap: 4px; -} -.multiselect-container label, -.select-container label { - display: flex; - align-items: center; - cursor: pointer; -} -.multiselect-container input, -.select-container input { - margin-right: 8px; -} -.select-overflow { - max-height: 185px; - overflow-y: auto; -} -.chip-title strong { - font-weight: 500; -} -.chip-wrapper { - max-width: 100%; - overflow-x: scroll; -} -.chip-container { - display: flex; - flex: 0; -} -.input-container.dirty-filter-input { - margin-left: 25px; -} -`,wf=`:root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}input[type="range"] { -webkit-appearance: none; width: 90%; margin-left: 5%; height: 6px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0;}input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}.range-slider { margin: 60px 0 0 0;}.range-slider { width: 100%;}input[type="range"]::-webkit-slider-thumb:hover { background: #00416f;}input[type="range"]:active::-webkit-slider-thumb { background: #00416f;}input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}input[type="range"]::-moz-range-thumb:hover { background: #00416f;}input[type="range"]:active::-moz-range-thumb { background: #00416f;}input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416f00;}.range-slider__value { display: inline-block; position: relative; width: 60px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px;}.range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "";}input::-moz-focus-inner,input::-moz-focus-outer { border: 0;}`;var _s,gu;class xf extends ie{constructor(){super(),ne(this,_s),this.filterObject={},this.unstyled=!1}static get properties(){return{filterObject:{attribute:!1,type:Object},unstyled:{type:Boolean}}}render(){return Q` - - - ${Jt(this.filterObject.featured,()=>Q``,()=>Q`
- - - ${this.filterObject.title||this.filterObject.key||"Filter"} - - - -
- -
-
`)} - `}}_s=new WeakSet,gu=function(t){this.dispatchEvent(new CustomEvent("details-toggled",{detail:t,bubbles:!0,composed:!0}))};customElements.define("eox-itemfilter-expandcontainer",xf);function Fe(t){return Array.isArray?Array.isArray(t):bu(t)==="[object Array]"}const Sf=1/0;function $f(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Sf?"-0":e}function Af(t){return t==null?"":$f(t)}function _e(t){return typeof t=="string"}function yu(t){return typeof t=="number"}function _f(t){return t===!0||t===!1||Ef(t)&&bu(t)=="[object Boolean]"}function mu(t){return typeof t=="object"}function Ef(t){return mu(t)&&t!==null}function re(t){return t!=null}function Ko(t){return!t.trim().length}function bu(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Of="Incorrect 'index' type",jf=t=>`Invalid value for key ${t}`,Mf=t=>`Pattern length exceeds max of ${t}.`,kf=t=>`Missing ${t} property in key`,Pf=t=>`Property 'weight' in key '${t}' must be a positive integer`,yl=Object.prototype.hasOwnProperty;class Cf{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(n=>{let i=vu(n);this._keys.push(i),this._keyMap[i.id]=i,r+=i.weight}),this._keys.forEach(n=>{n.weight/=r})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function vu(t){let e=null,r=null,n=null,i=1,o=null;if(_e(t)||Fe(t))n=t,e=ml(t),r=Es(t);else{if(!yl.call(t,"name"))throw new Error(kf("name"));const s=t.name;if(n=s,yl.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Pf(s));e=ml(s),r=Es(s),o=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:o}}function ml(t){return Fe(t)?t:t.split(".")}function Es(t){return Fe(t)?t.join("."):t}function Lf(t,e){let r=[],n=!1;const i=(o,s,l)=>{if(re(o))if(!s[l])r.push(o);else{let a=s[l];const u=o[a];if(!re(u))return;if(l===s.length-1&&(_e(u)||yu(u)||_f(u)))r.push(Af(u));else if(Fe(u)){n=!0;for(let h=0,d=u.length;ht.score===e.score?t.idx{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,_e(this.docs[0])?this.docs.forEach((e,r)=>{this._addString(e,r)}):this.docs.forEach((e,r)=>{this._addObject(e,r)}),this.norm.clear())}add(e){const r=this.size();_e(e)?this._addString(e,r):this._addObject(e,r)}removeAt(e){this.records.splice(e,1);for(let r=e,n=this.size();r{let s=i.getFn?i.getFn(e):this.getFn(e,i.path);if(re(s)){if(Fe(s)){let l=[];const a=[{nestedArrIndex:-1,value:s}];for(;a.length;){const{nestedArrIndex:u,value:h}=a.pop();if(re(h))if(_e(h)&&!Ko(h)){let d={v:h,i:u,n:this.norm.get(h)};l.push(d)}else Fe(h)&&h.forEach((d,m)=>{a.push({nestedArrIndex:m,value:d})})}n.$[o]=l}else if(_e(s)&&!Ko(s)){let l={v:s,n:this.norm.get(s)};n.$[o]=l}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function wu(t,e,{getFn:r=X.getFn,fieldNormWeight:n=X.fieldNormWeight}={}){const i=new wa({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(vu)),i.setSources(e),i.create(),i}function Nf(t,{getFn:e=X.getFn,fieldNormWeight:r=X.fieldNormWeight}={}){const{keys:n,records:i}=t,o=new wa({getFn:e,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(i),o}function _i(t,{errors:e=0,currentLocation:r=0,expectedLocation:n=0,distance:i=X.distance,ignoreLocation:o=X.ignoreLocation}={}){const s=e/t.length;if(o)return s;const l=Math.abs(n-r);return i?s+l/i:l?1:s}function Uf(t=[],e=X.minMatchCharLength){let r=[],n=-1,i=-1,o=0;for(let s=t.length;o=e&&r.push([n,i]),n=-1)}return t[o-1]&&o-n>=e&&r.push([n,o-1]),r}const gr=32;function Hf(t,e,r,{location:n=X.location,distance:i=X.distance,threshold:o=X.threshold,findAllMatches:s=X.findAllMatches,minMatchCharLength:l=X.minMatchCharLength,includeMatches:a=X.includeMatches,ignoreLocation:u=X.ignoreLocation}={}){if(e.length>gr)throw new Error(Mf(gr));const h=e.length,d=t.length,m=Math.max(0,Math.min(n,d));let b=o,x=m;const _=l>1||a,I=_?Array(d):[];let C;for(;(C=t.indexOf(e,x))>-1;){let K=_i(e,{currentLocation:C,expectedLocation:m,distance:i,ignoreLocation:u});if(b=Math.min(K,b),x=C+h,_){let ht=0;for(;ht=ft;_t-=1){let D=_t-1,O=r[t.charAt(D)];if(_&&(I[D]=+!!O),Rt[_t]=(Rt[_t+1]<<1|1)&O,K&&(Rt[_t]|=(W[_t+1]|W[_t])<<1|1|W[_t+1]),Rt[_t]&H&&(U=_i(e,{errors:K,currentLocation:D,expectedLocation:m,distance:i,ignoreLocation:u}),U<=b)){if(b=U,x=D,x<=m)break;ft=Math.max(1,2*m-x)}}if(_i(e,{errors:K+1,currentLocation:m,expectedLocation:m,distance:i,ignoreLocation:u})>b)break;W=Rt}const G={isMatch:x>=0,score:Math.max(.001,U)};if(_){const K=Uf(I,l);K.length?a&&(G.indices=K):G.isMatch=!1}return G}function Wf(t){let e={};for(let r=0,n=t.length;r{this.chunks.push({pattern:m,alphabet:Wf(m),startIndex:b})},d=this.pattern.length;if(d>gr){let m=0;const b=d%gr,x=d-b;for(;m{const{isMatch:C,score:W,indices:U}=Hf(e,x,_,{location:i+I,distance:o,threshold:s,findAllMatches:l,minMatchCharLength:a,includeMatches:n,ignoreLocation:u});C&&(m=!0),d+=W,C&&U&&(h=[...h,...U])});let b={isMatch:m,score:m?d/this.chunks.length:1};return m&&n&&(b.indices=h),b}}class Xe{constructor(e){this.pattern=e}static isMultiMatch(e){return bl(e,this.multiRegex)}static isSingleMatch(e){return bl(e,this.singleRegex)}search(){}}function bl(t,e){const r=t.match(e);return r?r[1]:null}class qf extends Xe{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const r=e===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class zf extends Xe{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Gf extends Xe{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const r=e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Vf extends Xe{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const r=!e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Yf extends Xe{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const r=e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Zf extends Xe{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const r=!e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Su extends Xe{constructor(e,{location:r=X.location,threshold:n=X.threshold,distance:i=X.distance,includeMatches:o=X.includeMatches,findAllMatches:s=X.findAllMatches,minMatchCharLength:l=X.minMatchCharLength,isCaseSensitive:a=X.isCaseSensitive,ignoreLocation:u=X.ignoreLocation}={}){super(e),this._bitapSearch=new xu(e,{location:r,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class $u extends Xe{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let r=0,n;const i=[],o=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+o,i.push([n,r-1]);const s=!!i.length;return{isMatch:s,score:s?0:1,indices:i}}}const Os=[qf,$u,Gf,Vf,Zf,Yf,zf,Su],vl=Os.length,Jf=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Xf="|";function Kf(t,e={}){return t.split(Xf).map(r=>{let n=r.trim().split(Jf).filter(o=>o&&!!o.trim()),i=[];for(let o=0,s=n.length;o!!(t[Vi.AND]||t[Vi.OR]),rd=t=>!!t[ks.PATH],nd=t=>!Fe(t)&&mu(t)&&!Ps(t),wl=t=>({[Vi.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Au(t,e,{auto:r=!0}={}){const n=i=>{let o=Object.keys(i);const s=rd(i);if(!s&&o.length>1&&!Ps(i))return n(wl(i));if(nd(i)){const a=s?i[ks.PATH]:o[0],u=s?i[ks.PATTERN]:i[a];if(!_e(u))throw new Error(jf(a));const h={keyId:Es(a),pattern:u};return r&&(h.searcher=Ms(u,e)),h}let l={children:[],operator:o[0]};return o.forEach(a=>{const u=i[a];Fe(u)&&u.forEach(h=>{l.children.push(n(h))})}),l};return Ps(t)||(t=wl(t)),n(t)}function id(t,{ignoreFieldNorm:e=X.ignoreFieldNorm}){t.forEach(r=>{let n=1;r.matches.forEach(({key:i,norm:o,score:s})=>{const l=i?i.weight:null;n*=Math.pow(s===0&&l?Number.EPSILON:s,(l||1)*(e?1:o))}),r.score=n})}function od(t,e){const r=t.matches;e.matches=[],re(r)&&r.forEach(n=>{if(!re(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let s={indices:i,value:o};n.key&&(s.key=n.key.src),n.idx>-1&&(s.refIndex=n.idx),e.matches.push(s)})}function sd(t,e){e.score=t.score}function ad(t,e,{includeMatches:r=X.includeMatches,includeScore:n=X.includeScore}={}){const i=[];return r&&i.push(od),n&&i.push(sd),t.map(o=>{const{idx:s}=o,l={item:e[s],refIndex:s};return i.length&&i.forEach(a=>{a(o,l)}),l})}class Ke{constructor(e,r={},n){this.options={...X,...r},this.options.useExtendedSearch,this._keyStore=new Cf(this.options.keys),this.setCollection(e,n)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof wa))throw new Error(Of);this._myIndex=r||wu(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){re(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const r=[];for(let n=0,i=this._docs.length;n-1&&(a=a.slice(0,r)),ad(a,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=Ms(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:s,n:l})=>{if(!re(o))return;const{isMatch:a,score:u,indices:h}=r.searchIn(o);a&&i.push({item:o,idx:s,matches:[{score:u,value:o,norm:l,indices:h}]})}),i}_searchLogical(e){const r=Au(e,this.options),n=(l,a,u)=>{if(!l.children){const{keyId:d,searcher:m}=l,b=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(a,d),searcher:m});return b&&b.length?[{idx:u,item:a,matches:b}]:[]}const h=[];for(let d=0,m=l.children.length;d{if(re(l)){let u=n(r,l,a);u.length&&(o[a]||(o[a]={idx:a,item:l,matches:[]},s.push(o[a])),u.forEach(({matches:h})=>{o[a].matches.push(...h)}))}}),s}_searchObjectList(e){const r=Ms(e,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:s,i:l})=>{if(!re(s))return;let a=[];n.forEach((u,h)=>{a.push(...this._findMatches({key:u,value:s[h],searcher:r}))}),a.length&&o.push({idx:l,item:s,matches:a})}),o}_findMatches({key:e,value:r,searcher:n}){if(!re(r))return[];let i=[];if(Fe(r))r.forEach(({v:o,i:s,n:l})=>{if(!re(o))return;const{isMatch:a,score:u,indices:h}=n.searchIn(o);a&&i.push({score:u,key:e,value:o,idx:s,norm:l,indices:h})});else{const{v:o,n:s}=r,{isMatch:l,score:a,indices:u}=n.searchIn(o);l&&i.push({score:a,key:e,value:o,norm:s,indices:u})}return i}}Ke.version="7.0.0";Ke.createIndex=wu;Ke.parseIndex=Nf;Ke.config=X;Ke.parseQuery=Au;ed(td);function _u(t,e){const r=new Ke(e.filterProperties,{keys:["title"]}),n=t.target.value,i=r.search(n).map(o=>o.item.key||o.item.keys.join("|"));Object.keys(e.filters).forEach(o=>{e.querySelector(`[data-details="${o}"]`).parentElement.style.display=i.includes(o)||!n?"":"none"})}function ld(t,e){const r=t.target.getAttribute("data-close").replace("|","-");e.querySelector(`#filter-${r}`).reset(),e.dispatchEvent(new CustomEvent("filter")),e.requestUpdate()}const Cs=Math.min,Yr=Math.max,Yi=Math.round,Ei=Math.floor,Ye=t=>({x:t,y:t});function Eu(t){return t.split("-")[0]}function cd(t){return t.split("-")[1]}function ud(t){return t==="x"?"y":"x"}function pd(t){return t==="y"?"height":"width"}function Ou(t){return["top","bottom"].includes(Eu(t))?"y":"x"}function hd(t){return ud(Ou(t))}function ju(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function xl(t,e,r){let{reference:n,floating:i}=t;const o=Ou(e),s=hd(e),l=pd(s),a=Eu(e),u=o==="y",h=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2;let b;switch(a){case"top":b={x:h,y:n.y-i.height};break;case"bottom":b={x:h,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:d};break;case"left":b={x:n.x-i.width,y:d};break;default:b={x:n.x,y:n.y}}switch(cd(e)){case"start":b[s]-=m*(r&&u?-1:1);break;case"end":b[s]+=m*(r&&u?-1:1);break}return b}const fd=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:d}=xl(u,n,a),m=n,b={},x=0;for(let _=0;_"u"?!1:t instanceof ShadowRoot||t instanceof oe(t).ShadowRoot}function ti(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=me(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function dd(t){return["table","td","th"].includes(on(t))}function go(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function xa(t){const e=Sa(),r=ye(t)?me(t):t;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function gd(t){let e=Ze(t);for(;Oe(e)&&!Kr(e);){if(xa(e))return e;if(go(e))return null;e=Ze(e)}return null}function Sa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Kr(t){return["html","body","#document"].includes(on(t))}function me(t){return oe(t).getComputedStyle(t)}function yo(t){return ye(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ze(t){if(on(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sl(t)&&t.host||Be(t);return Sl(e)?e.host:e}function ku(t){const e=Ze(t);return Kr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Oe(e)&&ti(e)?e:ku(e)}function Gn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=ku(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=oe(i);return o?e.concat(s,s.visualViewport||[],ti(i)?i:[],s.frameElement&&r?Gn(s.frameElement):[]):e.concat(i,Gn(i,[],r))}function Pu(t){const e=me(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=Oe(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=Yi(r)!==o||Yi(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function $a(t){return ye(t)?t:t.contextElement}function Zr(t){const e=$a(t);if(!Oe(e))return Ye(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:o}=Pu(e);let s=(o?Yi(r.width):r.width)/n,l=(o?Yi(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const yd=Ye(0);function Cu(t){const e=oe(t);return!Sa()||!e.visualViewport?yd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function md(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==oe(t)?!1:e}function xr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),o=$a(t);let s=Ye(1);e&&(n?ye(n)&&(s=Zr(n)):s=Zr(t));const l=md(o,r,n)?Cu(o):Ye(0);let a=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,h=i.width/s.x,d=i.height/s.y;if(o){const m=oe(o),b=n&&ye(n)?oe(n):n;let x=m,_=x.frameElement;for(;_&&n&&b!==x;){const I=Zr(_),C=_.getBoundingClientRect(),W=me(_),U=C.left+(_.clientLeft+parseFloat(W.paddingLeft))*I.x,tt=C.top+(_.clientTop+parseFloat(W.paddingTop))*I.y;a*=I.x,u*=I.y,h*=I.x,d*=I.y,a+=U,u+=tt,x=oe(_),_=x.frameElement}}return ju({width:h,height:d,x:a,y:u})}function bd(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const o=i==="fixed",s=Be(n),l=e?go(e.floating):!1;if(n===s||l&&o)return r;let a={scrollLeft:0,scrollTop:0},u=Ye(1);const h=Ye(0),d=Oe(n);if((d||!d&&!o)&&((on(n)!=="body"||ti(s))&&(a=yo(n)),Oe(n))){const m=xr(n);u=Zr(n),h.x=m.x+n.clientLeft,h.y=m.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-a.scrollLeft*u.x+h.x,y:r.y*u.y-a.scrollTop*u.y+h.y}}function vd(t){return Array.from(t.getClientRects())}function Lu(t){return xr(Be(t)).left+yo(t).scrollLeft}function wd(t){const e=Be(t),r=yo(t),n=t.ownerDocument.body,i=Yr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Yr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Lu(t);const l=-r.scrollTop;return me(n).direction==="rtl"&&(s+=Yr(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}}function xd(t,e){const r=oe(t),n=Be(t),i=r.visualViewport;let o=n.clientWidth,s=n.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const u=Sa();(!u||u&&e==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function Sd(t,e){const r=xr(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=Oe(t)?Zr(t):Ye(1),s=t.clientWidth*o.x,l=t.clientHeight*o.y,a=i*o.x,u=n*o.y;return{width:s,height:l,x:a,y:u}}function $l(t,e,r){let n;if(e==="viewport")n=xd(t,r);else if(e==="document")n=wd(Be(t));else if(ye(e))n=Sd(e,r);else{const i=Cu(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return ju(n)}function Ru(t,e){const r=Ze(t);return r===e||!ye(r)||Kr(r)?!1:me(r).position==="fixed"||Ru(r,e)}function $d(t,e){const r=e.get(t);if(r)return r;let n=Gn(t,[],!1).filter(l=>ye(l)&&on(l)!=="body"),i=null;const o=me(t).position==="fixed";let s=o?Ze(t):t;for(;ye(s)&&!Kr(s);){const l=me(s),a=xa(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&i&&["absolute","fixed"].includes(i.position)||ti(s)&&!a&&Ru(t,s))?n=n.filter(u=>u!==s):i=l,s=Ze(s)}return e.set(t,n),n}function Ad(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?go(e)?[]:$d(e,this._c):[].concat(r),n],s=o[0],l=o.reduce((a,u)=>{const h=$l(e,u,i);return a.top=Yr(h.top,a.top),a.right=Cs(h.right,a.right),a.bottom=Cs(h.bottom,a.bottom),a.left=Yr(h.left,a.left),a},$l(e,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _d(t){const{width:e,height:r}=Pu(t);return{width:e,height:r}}function Ed(t,e,r){const n=Oe(e),i=Be(e),o=r==="fixed",s=xr(t,!0,o,e);let l={scrollLeft:0,scrollTop:0};const a=Ye(0);if(n||!n&&!o)if((on(e)!=="body"||ti(i))&&(l=yo(e)),n){const d=xr(e,!0,o,e);a.x=d.x+e.clientLeft,a.y=d.y+e.clientTop}else i&&(a.x=Lu(i));const u=s.left+l.scrollLeft-a.x,h=s.top+l.scrollTop-a.y;return{x:u,y:h,width:s.width,height:s.height}}function Qo(t){return me(t).position==="static"}function Al(t,e){return!Oe(t)||me(t).position==="fixed"?null:e?e(t):t.offsetParent}function Iu(t,e){const r=oe(t);if(go(t))return r;if(!Oe(t)){let i=Ze(t);for(;i&&!Kr(i);){if(ye(i)&&!Qo(i))return i;i=Ze(i)}return r}let n=Al(t,e);for(;n&&dd(n)&&Qo(n);)n=Al(n,e);return n&&Kr(n)&&Qo(n)&&!xa(n)?r:n||gd(t)||r}const Od=async function(t){const e=this.getOffsetParent||Iu,r=this.getDimensions,n=await r(t.floating);return{reference:Ed(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function jd(t){return me(t).direction==="rtl"}const Md={convertOffsetParentRelativeRectToViewportRelativeRect:bd,getDocumentElement:Be,getClippingRect:Ad,getOffsetParent:Iu,getElementRects:Od,getClientRects:vd,getDimensions:_d,getScale:Zr,isElement:ye,isRTL:jd};function kd(t,e){let r=null,n;const i=Be(t);function o(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:u,top:h,width:d,height:m}=t.getBoundingClientRect();if(l||e(),!d||!m)return;const b=Ei(h),x=Ei(i.clientWidth-(u+d)),_=Ei(i.clientHeight-(h+m)),I=Ei(u),C={rootMargin:-b+"px "+-x+"px "+-_+"px "+-I+"px",threshold:Yr(0,Cs(1,a))||1};let W=!0;function U(tt){const H=tt[0].intersectionRatio;if(H!==a){if(!W)return s();H?s(!1,H):n=setTimeout(()=>{s(!1,1e-7)},1e3)}W=!1}try{r=new IntersectionObserver(U,{...C,root:i.ownerDocument})}catch{r=new IntersectionObserver(U,C)}r.observe(t)}return s(!0),o}function Pd(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,u=$a(t),h=i||o?[...u?Gn(u):[],...Gn(e)]:[];h.forEach(C=>{i&&C.addEventListener("scroll",r,{passive:!0}),o&&C.addEventListener("resize",r)});const d=u&&l?kd(u,r):null;let m=-1,b=null;s&&(b=new ResizeObserver(C=>{let[W]=C;W&&W.target===u&&b&&(b.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var U;(U=b)==null||U.observe(e)})),r()}),u&&!a&&b.observe(u),b.observe(e));let x,_=a?xr(t):null;a&&I();function I(){const C=xr(t);_&&(C.x!==_.x||C.y!==_.y||C.width!==_.width||C.height!==_.height)&&r(),_=C,x=requestAnimationFrame(I)}return r(),()=>{var C;h.forEach(W=>{i&&W.removeEventListener("scroll",r),o&&W.removeEventListener("resize",r)}),d?.(),(C=b)==null||C.disconnect(),b=null,a&&cancelAnimationFrame(x)}}const Cd=(t,e,r)=>{const n=new Map,i={platform:Md,...r},o={...i.platform,_c:n};return fd(t,e,{...i,platform:o})};function Ld(t){const e=t.renderRoot.querySelector(".inline-container-wrapper"),r=t.renderRoot.querySelector("[popover]");return Pd(e,r,()=>{r.matches(":popover-open")&&Cd(e,r,{strategy:"fixed"}).then(({x:n,y:i})=>{Object.assign(r.style,{left:`${n}px`,top:`${i}px`,width:`${e.getBoundingClientRect().width}px`})})},{animationFrame:!0})}function Tu(t){t.renderRoot.querySelector("#eox-itemfilter-input-search").value="",_u({target:{value:""}},t)}function Rd(t,e){e.inlineMode&&t.stopPropagation()}function Id(t){t.inlineMode&&(t.showDropdown=!0)}function Td(t,e){e.inlineMode&&(t.stopPropagation(),e.showDropdown=!0)}function Dd(t,e){e.inlineMode&&t.key==="Escape"&&e.showDropdown&&(Tu(e),e.showDropdown=!1)}function Fd(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&(Tu(e),e.showDropdown=!1)}function Bd(t,e){var r=0,n=0,i=0,o=0,s=0,l=0,a=0,u=0,h=null,d=null,m=t[0],b=t[1],x=e.length;for(r;r0&&u>0){h=d,l=u,s=h[0]-m;continue}if(a=d[0]-t[0],u>0&&l<=0){if(o=s*u-a*l,o>0)i=i+1;else if(o===0)return 0}else if(l>0&&u<=0){if(o=s*u-a*l,o<0)i=i+1;else if(o===0)return 0}else if(u===0&&l<0){if(o=s*u-a*l,o===0)return 0}else if(l===0&&u<0){if(o=s*u-a*l,o===0)return 0}else if(l===0&&u===0&&(a<=0&&s>=0||s<=0&&a>=0))return 0;h=d,l=u,s=a}}return i%2!==0}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Nd(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var _l=Object.prototype.toString,Du=function(t){var e=_l.call(t),r=e==="[object Arguments]";return r||(r=e!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&_l.call(t.callee)==="[object Function]"),r},ts,El;function Ud(){if(El)return ts;El=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Du,i=Object.prototype.propertyIsEnumerable,o=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(m){var b=m.constructor;return b&&b.prototype===m},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!u["$"+m]&&e.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{a(window[m])}catch{return!0}}catch{return!0}return!1}(),d=function(m){if(typeof window>"u"||!h)return a(m);try{return a(m)}catch{return!1}};t=function(m){var b=m!==null&&typeof m=="object",x=r.call(m)==="[object Function]",_=n(m),I=b&&r.call(m)==="[object String]",C=[];if(!b&&!x&&!_)throw new TypeError("Object.keys called on a non-object");var W=s&&x;if(I&&m.length>0&&!e.call(m,0))for(var U=0;U0)for(var tt=0;tt"u"||!Ft?ct:Ft(Uint8Array),br={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ct:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ct:ArrayBuffer,"%ArrayIteratorPrototype%":Wr&&Ft?Ft([][Symbol.iterator]()):ct,"%AsyncFromSyncIteratorPrototype%":ct,"%AsyncFunction%":Gr,"%AsyncGenerator%":Gr,"%AsyncGeneratorFunction%":Gr,"%AsyncIteratorPrototype%":Gr,"%Atomics%":typeof Atomics>"u"?ct:Atomics,"%BigInt%":typeof BigInt>"u"?ct:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ct:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ct:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ct:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":cg,"%eval%":eval,"%EvalError%":ug,"%Float32Array%":typeof Float32Array>"u"?ct:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ct:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ct:FinalizationRegistry,"%Function%":Nu,"%GeneratorFunction%":Gr,"%Int8Array%":typeof Int8Array>"u"?ct:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ct:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ct:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Wr&&Ft?Ft(Ft([][Symbol.iterator]())):ct,"%JSON%":typeof JSON=="object"?JSON:ct,"%Map%":typeof Map>"u"?ct:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Wr||!Ft?ct:Ft(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ct:Promise,"%Proxy%":typeof Proxy>"u"?ct:Proxy,"%RangeError%":pg,"%ReferenceError%":hg,"%Reflect%":typeof Reflect>"u"?ct:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ct:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Wr||!Ft?ct:Ft(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ct:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Wr&&Ft?Ft(""[Symbol.iterator]()):ct,"%Symbol%":Wr?Symbol:ct,"%SyntaxError%":Qr,"%ThrowTypeError%":dg,"%TypedArray%":yg,"%TypeError%":Jr,"%Uint8Array%":typeof Uint8Array>"u"?ct:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ct:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ct:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ct:Uint32Array,"%URIError%":fg,"%WeakMap%":typeof WeakMap>"u"?ct:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ct:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ct:WeakSet};if(Ft)try{null.error}catch(t){var mg=Ft(Ft(t));br["%Error.prototype%"]=mg}var bg=function t(e){var r;if(e==="%AsyncFunction%")r=rs("async function () {}");else if(e==="%GeneratorFunction%")r=rs("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=rs("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Ft&&(r=Ft(i.prototype))}return br[e]=r,r},Pl={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ri=Ea,Zi=Bu,vg=ri.call(Function.call,Array.prototype.concat),wg=ri.call(Function.apply,Array.prototype.splice),Cl=ri.call(Function.call,String.prototype.replace),Ji=ri.call(Function.call,String.prototype.slice),xg=ri.call(Function.call,RegExp.prototype.exec),Sg=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$g=/\\(\\)?/g,Ag=function(t){var e=Ji(t,0,1),r=Ji(t,-1);if(e==="%"&&r!=="%")throw new Qr("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&e!=="%")throw new Qr("invalid intrinsic syntax, expected opening `%`");var n=[];return Cl(t,Sg,function(i,o,s,l){n[n.length]=s?Cl(l,$g,"$1"):o||i}),n},_g=function(t,e){var r=t,n;if(Zi(Pl,r)&&(n=Pl[r],r="%"+n[0]+"%"),Zi(br,r)){var i=br[r];if(i===Gr&&(i=bg(r)),typeof i>"u"&&!e)throw new Jr("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new Qr("intrinsic "+t+" does not exist!")},je=function(t,e){if(typeof t!="string"||t.length===0)throw new Jr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new Jr('"allowMissing" argument must be a boolean');if(xg(/^%?[^%]*%?$/,t)===null)throw new Qr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ag(t),n=r.length>0?r[0]:"",i=_g("%"+n+"%",e),o=i.name,s=i.value,l=!1,a=i.alias;a&&(n=a[0],wg(r,vg([0,1],a)));for(var u=1,h=!0;u=r.length){var x=mr(s,d);h=!!x,h&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[d]}else h=Zi(s,d),s=s[d];h&&!l&&(br[o]=s)}}return s},Eg=je,Ii=Eg("%Object.defineProperty%",!0)||!1;if(Ii)try{Ii({},"a",{value:1})}catch{Ii=!1}var Oa=Ii,Og=je,Ti=Og("%Object.getOwnPropertyDescriptor%",!0);if(Ti)try{Ti([],"length")}catch{Ti=null}var ja=Ti,Ll=Oa,jg=Fu,qr=Qe,Rl=ja,Ma=function(t,e,r){if(!t||typeof t!="object"&&typeof t!="function")throw new qr("`obj` must be an object or a function`");if(typeof e!="string"&&typeof e!="symbol")throw new qr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new qr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new qr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new qr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new qr("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!Rl&&Rl(t,e);if(Ll)Ll(t,e,{configurable:o===null&&l?l.configurable:!o,enumerable:n===null&&l?l.enumerable:!n,value:r,writable:i===null&&l?l.writable:!i});else if(s||!n&&!i&&!o)t[e]=r;else throw new jg("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ls=Oa,Uu=function(){return!!Ls};Uu.hasArrayLengthDefineBug=function(){if(!Ls)return null;try{return Ls([],"length",{value:1}).length!==1}catch{return!0}};var ka=Uu,Mg=Aa,kg=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Pg=Object.prototype.toString,Cg=Array.prototype.concat,Il=Ma,Lg=function(t){return typeof t=="function"&&Pg.call(t)==="[object Function]"},Hu=ka(),Rg=function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!Lg(n)||!n())return}Hu?Il(t,e,r,!0):Il(t,e,r)},Wu=function(t,e){var r=arguments.length>2?arguments[2]:{},n=Mg(e);kg&&(n=Cg.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i4294967295||Dg(e)!==e)throw new Fl("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in t&&Dl){var o=Dl(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!r)&&(Tg?Tl(t,"length",e,!0,!0):Tl(t,"length",e)),t};(function(t){var e=Ea,r=je,n=Fg,i=Qe,o=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||e.call(s,o),a=Oa,u=r("%Math.max%");t.exports=function(d){if(typeof d!="function")throw new i("a function is required");var m=l(e,s,arguments);return n(m,1+u(0,d.length-(arguments.length-1)),!0)};var h=function(){return l(e,o,arguments)};a?a(t.exports,"apply",{value:h}):t.exports.apply=h})(qu);var sn=qu.exports,zu=je,Gu=sn,Bg=Gu(zu("String.prototype.indexOf")),ue=function(t,e){var r=zu(t,!!e);return typeof r=="function"&&Bg(t,".prototype.")>-1?Gu(r):r},Ng=Aa,Vu=mo(),Yu=ue,Bl=Object,Ug=Yu("Array.prototype.push"),Nl=Yu("Object.prototype.propertyIsEnumerable"),Hg=Vu?Object.getOwnPropertySymbols:null,Zu=function(t,e){if(t==null)throw new TypeError("target must be an object");var r=Bl(t);if(arguments.length===1)return r;for(var n=1;n2&&!!arguments[2];return(!r||iy)&&(ny?Ul(t,"name",e,!0,!0):Ul(t,"name",e)),t},ay=sy,ly=Qe,cy=Object,Qu=ay(function(){if(this==null||this!==cy(this))throw new ly("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),uy=Qu,py=_r.supportsDescriptors,hy=Object.getOwnPropertyDescriptor,tp=function(){if(py&&/a/mig.flags==="gim"){var t=hy(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var e="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){e+="d"}}),Object.defineProperty(r,"sticky",{get:function(){e+="y"}}),e==="dy")return t.get}}return uy},fy=_r.supportsDescriptors,dy=tp,gy=Object.getOwnPropertyDescriptor,yy=Object.defineProperty,my=TypeError,Hl=Object.getPrototypeOf,by=/a/,vy=function(){if(!fy||!Hl)throw new my("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=dy(),e=Hl(by),r=gy(e,"flags");return(!r||r.get!==t)&&yy(e,"flags",{configurable:!0,enumerable:!1,get:t}),t},wy=_r,xy=sn,Sy=Qu,ep=tp,$y=vy,rp=xy(ep());wy(rp,{getPolyfill:ep,implementation:Sy,shim:$y});var Ay=rp,Di={exports:{}},_y=mo,Er=function(){return _y()&&!!Symbol.toStringTag},Ey=Er(),Oy=ue,Rs=Oy("Object.prototype.toString"),bo=function(t){return Ey&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Rs(t)==="[object Arguments]"},np=function(t){return bo(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Rs(t)!=="[object Array]"&&Rs(t.callee)==="[object Function]"},jy=function(){return bo(arguments)}();bo.isLegacyArguments=np;var ip=jy?bo:np;const My={},ky=Object.freeze(Object.defineProperty({__proto__:null,default:My},Symbol.toStringTag,{value:"Module"})),Py=Nd(ky);var Pa=typeof Map=="function"&&Map.prototype,is=Object.getOwnPropertyDescriptor&&Pa?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xi=Pa&&is&&typeof is.get=="function"?is.get:null,Wl=Pa&&Map.prototype.forEach,Ca=typeof Set=="function"&&Set.prototype,os=Object.getOwnPropertyDescriptor&&Ca?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ki=Ca&&os&&typeof os.get=="function"?os.get:null,ql=Ca&&Set.prototype.forEach,Cy=typeof WeakMap=="function"&&WeakMap.prototype,Un=Cy?WeakMap.prototype.has:null,Ly=typeof WeakSet=="function"&&WeakSet.prototype,Hn=Ly?WeakSet.prototype.has:null,Ry=typeof WeakRef=="function"&&WeakRef.prototype,zl=Ry?WeakRef.prototype.deref:null,Iy=Boolean.prototype.valueOf,Ty=Object.prototype.toString,Dy=Function.prototype.toString,Fy=String.prototype.match,La=String.prototype.slice,Ge=String.prototype.replace,By=String.prototype.toUpperCase,Gl=String.prototype.toLowerCase,op=RegExp.prototype.test,Vl=Array.prototype.concat,$e=Array.prototype.join,Ny=Array.prototype.slice,Yl=Math.floor,Is=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ss=Object.getOwnPropertySymbols,Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,tn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Xt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===tn||!0)?Symbol.toStringTag:null,sp=Object.prototype.propertyIsEnumerable,Zl=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Jl(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||op.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Yl(-t):Yl(t);if(n!==t){var i=String(n),o=La.call(e,i.length+1);return Ge.call(i,r,"$&_")+"."+Ge.call(Ge.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ge.call(e,r,"$&_")}var Ds=Py,Xl=Ds.custom,Kl=lp(Xl)?Xl:null,Uy=function t(e,r,n,i){var o=r||{};if(ze(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ze(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ze(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ze(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ze(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return up(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var a=String(e);return l?Jl(e,a):a}if(typeof e=="bigint"){var u=String(e)+"n";return l?Jl(e,u):u}var h=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=h&&h>0&&typeof e=="object")return Fs(e)?"[Array]":"[Object]";var d=o0(o,n);if(typeof i>"u")i=[];else if(cp(i,e)>=0)return"[Circular]";function m(_t,D,O){if(D&&(i=Ny.call(i),i.push(D)),O){var E={depth:o.depth};return ze(o,"quoteStyle")&&(E.quoteStyle=o.quoteStyle),t(_t,E,n+1,i)}return t(_t,o,n+1,i)}if(typeof e=="function"&&!Ql(e)){var b=Jy(e),x=Oi(e,m);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(x.length>0?" { "+$e.call(x,", ")+" }":"")}if(lp(e)){var _=tn?Ge.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ts.call(e);return typeof e=="object"&&!tn?Mn(_):_}if(r0(e)){for(var I="<"+Gl.call(String(e.nodeName)),C=e.attributes||[],W=0;W",I}if(Fs(e)){if(e.length===0)return"[]";var U=Oi(e,m);return d&&!i0(U)?"["+Bs(U,d)+"]":"[ "+$e.call(U,", ")+" ]"}if(qy(e)){var tt=Oi(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!sp.call(e,"cause")?"{ ["+String(e)+"] "+$e.call(Vl.call("[cause]: "+m(e.cause),tt),", ")+" }":tt.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$e.call(tt,", ")+" }"}if(typeof e=="object"&&s){if(Kl&&typeof e[Kl]=="function"&&Ds)return Ds(e,{depth:h-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Xy(e)){var H=[];return Wl&&Wl.call(e,function(_t,D){H.push(m(D,e,!0)+" => "+m(_t,e))}),tc("Map",Xi.call(e),H,d)}if(t0(e)){var G=[];return ql&&ql.call(e,function(_t){G.push(m(_t,e))}),tc("Set",Ki.call(e),G,d)}if(Ky(e))return as("WeakMap");if(e0(e))return as("WeakSet");if(Qy(e))return as("WeakRef");if(Gy(e))return Mn(m(Number(e)));if(Yy(e))return Mn(m(Is.call(e)));if(Vy(e))return Mn(Iy.call(e));if(zy(e))return Mn(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof Ut<"u"&&e===Ut)return"{ [object globalThis] }";if(!Wy(e)&&!Ql(e)){var K=Oi(e,m),ht=Zl?Zl(e)===Object.prototype:e instanceof Object||e.constructor===Object,mt=e instanceof Object?"":"null prototype",ft=!ht&&Xt&&Object(e)===e&&Xt in e?La.call(tr(e),8,-1):mt?"Object":"",nt=ht||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Rt=nt+(ft||mt?"["+$e.call(Vl.call([],ft||[],mt||[]),": ")+"] ":"");return K.length===0?Rt+"{}":d?Rt+"{"+Bs(K,d)+"}":Rt+"{ "+$e.call(K,", ")+" }"}return String(e)};function ap(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Hy(t){return Ge.call(String(t),/"/g,""")}function Fs(t){return tr(t)==="[object Array]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function Wy(t){return tr(t)==="[object Date]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function Ql(t){return tr(t)==="[object RegExp]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function qy(t){return tr(t)==="[object Error]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function zy(t){return tr(t)==="[object String]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function Gy(t){return tr(t)==="[object Number]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function Vy(t){return tr(t)==="[object Boolean]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function lp(t){if(tn)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ts)return!1;try{return Ts.call(t),!0}catch{}return!1}function Yy(t){if(!t||typeof t!="object"||!Is)return!1;try{return Is.call(t),!0}catch{}return!1}var Zy=Object.prototype.hasOwnProperty||function(t){return t in this};function ze(t,e){return Zy.call(t,e)}function tr(t){return Ty.call(t)}function Jy(t){if(t.name)return t.name;var e=Fy.call(Dy.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function cp(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return up(La.call(t,0,e.maxStringLength),e)+n}var i=Ge.call(Ge.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,n0);return ap(i,"single",e)}function n0(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+By.call(e.toString(16))}function Mn(t){return"Object("+t+")"}function as(t){return t+" { ? }"}function tc(t,e,r,n){var i=n?Bs(r,n):$e.call(r,", ");return t+" ("+e+") {"+i+"}"}function i0(t){for(var e=0;e=0)return!1;return!0}function o0(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=$e.call(Array(t.indent+1)," ");else return null;return{base:r,prev:$e.call(Array(e+1),r)}}function Bs(t,e){if(t.length===0)return"";var r=` -`+e.prev+e.base;return r+$e.call(t,","+r)+` -`+e.prev}function Oi(t,e){var r=Fs(t),n=[];if(r){n.length=t.length;for(var i=0;i=r)return e+1;var n=lc(t,e);if(n<55296||n>56319)return e+1;var i=lc(t,e+1);return i<56320||i>57343?e+1:e+2},cs=function(t){var e=0;return{next:function(){var r=e>=t.length,n;return r||(n=t[e],e+=1),{done:r,value:n}}}},cc=function(t,e){if(M0(t)||ic(t))return cs(t);if(k0(t)){var r=0;return{next:function(){var n=R0(t,r),i=L0(t,r,n);return r=n,{done:n>t.length,value:i}}}}if(e&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!P0&&!C0)Di.exports=function(t){if(t!=null)return cc(t,!0)};else{var I0=yp,T0=bp,uc=fe("Map.prototype.forEach",!0),pc=fe("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var hc=fe("Map.prototype.iterator",!0),fc=fe("Set.prototype.iterator",!0);var dc=fe("Map.prototype.@@iterator",!0)||fe("Map.prototype._es6-shim iterator_",!0),gc=fe("Set.prototype.@@iterator",!0)||fe("Set.prototype._es6-shim iterator_",!0),D0=function(t){if(I0(t)){if(hc)return oc(hc(t));if(dc)return dc(t);if(uc){var e=[];return uc(t,function(n,i){ac(e,[i,n])}),cs(e)}}if(T0(t)){if(fc)return oc(fc(t));if(gc)return gc(t);if(pc){var r=[];return pc(t,function(n){ac(r,n)}),cs(r)}}};Di.exports=function(t){return D0(t)||cc(t)}}}var F0=Di.exports,yc=function(t){return t!==t},vp=function(t,e){return t===0&&e===0?1/t===1/e:!!(t===e||yc(t)&&yc(e))},B0=vp,wp=function(){return typeof Object.is=="function"?Object.is:B0},N0=wp,U0=_r,H0=function(){var t=N0();return U0(Object,{is:t},{is:function(){return Object.is!==t}}),t},W0=_r,q0=sn,z0=vp,xp=wp,G0=H0,Sp=q0(xp(),Object);W0(Sp,{getPolyfill:xp,implementation:z0,shim:G0});var V0=Sp,Y0=sn,$p=ue,Z0=je,Ns=Z0("%ArrayBuffer%",!0),Fi=$p("ArrayBuffer.prototype.byteLength",!0),J0=$p("Object.prototype.toString"),mc=!!Ns&&!Fi&&new Ns(0).slice,bc=!!mc&&Y0(mc),Ap=Fi||bc?function(t){if(!t||typeof t!="object")return!1;try{return Fi?Fi(t):bc(t,0),!0}catch{return!1}}:Ns?function(t){return J0(t)==="[object ArrayBuffer]"}:function(t){return!1},X0=Date.prototype.getDay,K0=function(t){try{return X0.call(t),!0}catch{return!1}},Q0=Object.prototype.toString,tm="[object Date]",em=Er(),rm=function(t){return typeof t!="object"||t===null?!1:em?K0(t):Q0.call(t)===tm},Us=ue,_p=Er(),Ep,Op,Hs,Ws;if(_p){Ep=Us("Object.prototype.hasOwnProperty"),Op=Us("RegExp.prototype.exec"),Hs={};var us=function(){throw Hs};Ws={toString:us,valueOf:us},typeof Symbol.toPrimitive=="symbol"&&(Ws[Symbol.toPrimitive]=us)}var nm=Us("Object.prototype.toString"),im=Object.getOwnPropertyDescriptor,om="[object RegExp]",sm=_p?function(t){if(!t||typeof t!="object")return!1;var e=im(t,"lastIndex"),r=e&&Ep(e,"value");if(!r)return!1;try{Op(t,Ws)}catch(n){return n===Hs}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:nm(t)===om},am=ue,vc=am("SharedArrayBuffer.prototype.byteLength",!0),lm=vc?function(t){if(!t||typeof t!="object")return!1;try{return vc(t),!0}catch{return!1}}:function(t){return!1},cm=Number.prototype.toString,um=function(t){try{return cm.call(t),!0}catch{return!1}},pm=Object.prototype.toString,hm="[object Number]",fm=Er(),dm=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:fm?um(t):pm.call(t)===hm},jp=ue,gm=jp("Boolean.prototype.toString"),ym=jp("Object.prototype.toString"),mm=function(t){try{return gm(t),!0}catch{return!1}},bm="[object Boolean]",vm=Er(),wm=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:vm&&Symbol.toStringTag in t?mm(t):ym(t)===bm},qs={exports:{}},xm=Object.prototype.toString,Sm=_a();if(Sm){var $m=Symbol.prototype.toString,Am=/^Symbol\(.*\)$/,_m=function(t){return typeof t.valueOf()!="symbol"?!1:Am.test($m.call(t))};qs.exports=function(t){if(typeof t=="symbol")return!0;if(xm.call(t)!=="[object Symbol]")return!1;try{return _m(t)}catch{return!1}}}else qs.exports=function(t){return!1};var Em=qs.exports,zs={exports:{}},wc=typeof BigInt<"u"&&BigInt,Om=function(){return typeof wc=="function"&&typeof BigInt=="function"&&typeof wc(42)=="bigint"&&typeof BigInt(42)=="bigint"},jm=Om();if(jm){var Mm=BigInt.prototype.valueOf,km=function(t){try{return Mm.call(t),!0}catch{}return!1};zs.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:km(t)}}else zs.exports=function(t){return!1};var Pm=zs.exports,Cm=dp,Lm=dm,Rm=wm,Im=Em,Tm=Pm,Dm=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(Cm(t))return"String";if(Lm(t))return"Number";if(Rm(t))return"Boolean";if(Im(t))return"Symbol";if(Tm(t))return"BigInt"},eo=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,xc=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,ro;eo||(ro=function(t){return!1});var Gs=eo?eo.prototype.has:null,ps=xc?xc.prototype.has:null;!ro&&!Gs&&(ro=function(t){return!1});var Fm=ro||function(t){if(!t||typeof t!="object")return!1;try{if(Gs.call(t,Gs),ps)try{ps.call(t,ps)}catch{return!0}return t instanceof eo}catch{}return!1},Vs={exports:{}},Bm=je,Mp=ue,Nm=Bm("%WeakSet%",!0),hs=Mp("WeakSet.prototype.has",!0);if(hs){var fs=Mp("WeakMap.prototype.has",!0);Vs.exports=function(t){if(!t||typeof t!="object")return!1;try{if(hs(t,hs),fs)try{fs(t,fs)}catch{return!0}return t instanceof Nm}catch{}return!1}}else Vs.exports=function(t){return!1};var Um=Vs.exports,Hm=yp,Wm=bp,qm=Fm,zm=Um,Gm=function(t){if(t&&typeof t=="object"){if(Hm(t))return"Map";if(Wm(t))return"Set";if(qm(t))return"WeakMap";if(zm(t))return"WeakSet"}return!1},kp=Function.prototype.toString,Vr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Ys,Bi;if(typeof Vr=="function"&&typeof Object.defineProperty=="function")try{Ys=Object.defineProperty({},"length",{get:function(){throw Bi}}),Bi={},Vr(function(){throw 42},null,Ys)}catch(t){t!==Bi&&(Vr=null)}else Vr=null;var Vm=/^\s*class\b/,Zs=function(t){try{var e=kp.call(t);return Vm.test(e)}catch{return!1}},ds=function(t){try{return Zs(t)?!1:(kp.call(t),!0)}catch{return!1}},Ni=Object.prototype.toString,Ym="[object Object]",Zm="[object Function]",Jm="[object GeneratorFunction]",Xm="[object HTMLAllCollection]",Km="[object HTML document.all class]",Qm="[object HTMLCollection]",tb=typeof Symbol=="function"&&!!Symbol.toStringTag,eb=!(0 in[,]),Js=function(){return!1};if(typeof document=="object"){var rb=document.all;Ni.call(rb)===Ni.call(document.all)&&(Js=function(t){if((eb||!t)&&(typeof t>"u"||typeof t=="object"))try{var e=Ni.call(t);return(e===Xm||e===Km||e===Qm||e===Ym)&&t("")==null}catch{}return!1})}var nb=Vr?function(t){if(Js(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Vr(t,null,Ys)}catch(e){if(e!==Bi)return!1}return!Zs(t)&&ds(t)}:function(t){if(Js(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(tb)return ds(t);if(Zs(t))return!1;var e=Ni.call(t);return e!==Zm&&e!==Jm&&!/^\[object HTML/.test(e)?!1:ds(t)},ib=nb,ob=Object.prototype.toString,Pp=Object.prototype.hasOwnProperty,sb=function(t,e,r){for(var n=0,i=t.length;n=3&&(n=r),ob.call(t)==="[object Array]"?sb(t,e,n):typeof t=="string"?ab(t,e,n):lb(t,e,n)},ub=cb,pb=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],gs=pb,hb=typeof globalThis>"u"?Ut:globalThis,fb=function(){for(var t=[],e=0;e"u"?Ut:globalThis,Xs=db(),Ba=Fa("String.prototype.slice"),ys=Object.getPrototypeOf,yb=Fa("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:e!=="Object"?!1:bb(t)}return Ui?mb(t):null},wb=ue,Ac=wb("ArrayBuffer.prototype.byteLength",!0),xb=Ap,Sb=function(t){return xb(t)?Ac?Ac(t):t.byteLength:NaN},Lp=ty,Me=ue,_c=Ay,$b=je,en=F0,Ab=hp,Ec=V0,Oc=ip,jc=fp,Mc=Ap,kc=rm,Pc=sm,Cc=lm,Lc=Aa,Rc=Dm,Ic=Gm,Tc=vb,Dc=Sb,Fc=Me("SharedArrayBuffer.prototype.byteLength",!0),Bc=Me("Date.prototype.getTime"),ms=Object.getPrototypeOf,Nc=Me("Object.prototype.toString"),oo=$b("%Set%",!0),Ks=Me("Map.prototype.has",!0),so=Me("Map.prototype.get",!0),Uc=Me("Map.prototype.size",!0),ao=Me("Set.prototype.add",!0),Rp=Me("Set.prototype.delete",!0),lo=Me("Set.prototype.has",!0),Hi=Me("Set.prototype.size",!0);function Hc(t,e,r,n){for(var i=en(t),o;(o=i.next())&&!o.done;)if(ge(e,o.value,r,n))return Rp(t,o.value),!0;return!1}function Ip(t){if(typeof t>"u")return null;if(typeof t!="object")return typeof t=="symbol"?!1:typeof t=="string"||typeof t=="number"?+t==+t:!0}function _b(t,e,r,n,i,o){var s=Ip(r);if(s!=null)return s;var l=so(e,s),a=Lp({},i,{strict:!1});return typeof l>"u"&&!Ks(e,s)||!ge(n,l,a,o)?!1:!Ks(t,s)&&ge(n,l,a,o)}function Eb(t,e,r){var n=Ip(r);return n??(lo(e,n)&&!lo(t,n))}function Wc(t,e,r,n,i,o){for(var s=en(t),l,a;(l=s.next())&&!l.done;)if(a=l.value,ge(r,a,i,o)&&ge(n,so(e,a),i,o))return Rp(t,a),!0;return!1}function ge(t,e,r,n){var i=r||{};if(i.strict?Ec(t,e):t===e)return!0;var o=Rc(t),s=Rc(e);if(o!==s)return!1;if(!t||!e||typeof t!="object"&&typeof e!="object")return i.strict?Ec(t,e):t==e;var l=n.has(t),a=n.has(e),u;if(l&&a){if(n.get(t)===n.get(e))return!0}else u={};return l||n.set(t,u),a||n.set(e,u),Mb(t,e,i,n)}function qc(t){return!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}function Ob(t,e,r,n){if(Hi(t)!==Hi(e))return!1;for(var i=en(t),o=en(e),s,l,a;(s=i.next())&&!s.done;)if(s.value&&typeof s.value=="object")a||(a=new oo),ao(a,s.value);else if(!lo(e,s.value)){if(r.strict||!Eb(t,e,s.value))return!1;a||(a=new oo),ao(a,s.value)}if(a){for(;(l=o.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!Hc(a,l.value,r.strict,n))return!1}else if(!r.strict&&!lo(t,l.value)&&!Hc(a,l.value,r.strict,n))return!1;return Hi(a)===0}return!0}function jb(t,e,r,n){if(Uc(t)!==Uc(e))return!1;for(var i=en(t),o=en(e),s,l,a,u,h,d;(s=i.next())&&!s.done;)if(u=s.value[0],h=s.value[1],u&&typeof u=="object")a||(a=new oo),ao(a,u);else if(d=so(e,u),typeof d>"u"&&!Ks(e,u)||!ge(h,d,r,n)){if(r.strict||!_b(t,e,u,h,r,n))return!1;a||(a=new oo),ao(a,u)}if(a){for(;(l=o.next())&&!l.done;)if(u=l.value[0],d=l.value[1],u&&typeof u=="object"){if(!Wc(a,t,u,d,r,n))return!1}else if(!r.strict&&(!t.has(u)||!ge(so(t,u),d,r,n))&&!Wc(a,t,u,d,Lp({},r,{strict:!1}),n))return!1;return Hi(a)===0}return!0}function Mb(t,e,r,n){var i,o;if(typeof t!=typeof e||t==null||e==null||Nc(t)!==Nc(e)||Oc(t)!==Oc(e))return!1;var s=jc(t),l=jc(e);if(s!==l)return!1;var a=t instanceof Error,u=e instanceof Error;if(a!==u||(a||u)&&(t.name!==e.name||t.message!==e.message))return!1;var h=Pc(t),d=Pc(e);if(h!==d||(h||d)&&(t.source!==e.source||_c(t)!==_c(e)))return!1;var m=kc(t),b=kc(e);if(m!==b||(m||b)&&Bc(t)!==Bc(e)||r.strict&&ms&&ms(t)!==ms(e))return!1;var x=Tc(t),_=Tc(e);if(x!==_)return!1;if(x||_){if(t.length!==e.length)return!1;for(i=0;i=0;i--)if(G[i]!=K[i])return!1;for(i=G.length-1;i>=0;i--)if(o=G[i],!ge(t[o],e[o],r,n))return!1;var ht=Ic(t),mt=Ic(e);return ht!==mt?!1:ht==="Set"||mt==="Set"?Ob(t,e,r,n):ht==="Map"?jb(t,e,r,n):!0}var kb=function(t,e,r){return ge(t,e,r,Ab())};const Pb=ei(kb);var Cb=Object.defineProperty,yt=(t,e)=>Cb(t,"name",{value:e,configurable:!0}),Lb=class{constructor(t){this.direction=!1,this.compareProperties=!0;var e,r,n;this.precision=10**-((e=t?.precision)!=null?e:17),this.direction=(r=t?.direction)!=null?r:!1,this.compareProperties=(n=t?.compareProperties)!=null?n:!0}compare(t,e){if(t.type!==e.type||!Ln(t,e))return!1;switch(t.type){case"Point":return this.compareCoord(t.coordinates,e.coordinates);case"LineString":return this.compareLine(t.coordinates,e.coordinates);case"Polygon":return this.comparePolygon(t,e);case"GeometryCollection":return this.compareGeometryCollection(t,e);case"Feature":return this.compareFeature(t,e);case"FeatureCollection":return this.compareFeatureCollection(t,e);default:if(t.type.startsWith("Multi")){const r=Qs(t),n=Qs(e);return r.every(i=>n.some(o=>this.compare(i,o)))}}return!1}compareCoord(t,e){return t.length===e.length&&t.every((r,n)=>Math.abs(r-e[n])=0&&(r=[].concat(t.slice(n,t.length),t.slice(1,n+1))),r}comparePath(t,e){return t.every((r,n)=>this.compareCoord(r,e[n]))}comparePolygon(t,e){if(this.compareLine(t.coordinates[0],e.coordinates[0],1,!0)){const r=t.coordinates.slice(1,t.coordinates.length),n=e.coordinates.slice(1,e.coordinates.length);return r.every(i=>n.some(o=>this.compareLine(i,o,1,!0)))}return!1}compareGeometryCollection(t,e){return Ln(t.geometries,e.geometries)&&this.compareBBox(t,e)&&t.geometries.every((r,n)=>this.compare(r,e.geometries[n]))}compareFeature(t,e){return t.id===e.id&&(this.compareProperties?Pb(t.properties,e.properties):!0)&&this.compareBBox(t,e)&&this.compare(t.geometry,e.geometry)}compareFeatureCollection(t,e){return Ln(t.features,e.features)&&this.compareBBox(t,e)&&t.features.every((r,n)=>this.compare(r,e.features[n]))}compareBBox(t,e){return!t.bbox&&!e.bbox||(t.bbox&&e.bbox?this.compareCoord(t.bbox,e.bbox):!1)}};yt(Lb,"GeojsonEquality");function Ln(t,e){return t.coordinates?t.coordinates.length===e.coordinates.length:t.length===e.length}yt(Ln,"sameLength");function Qs(t){return t.coordinates.map(e=>({type:t.type.replace("Multi",""),coordinates:e}))}yt(Qs,"explode");var ee=63710088e-1,Tp={centimeters:ee*100,centimetres:ee*100,degrees:360/(2*Math.PI),feet:ee*3.28084,inches:ee*39.37,kilometers:ee/1e3,kilometres:ee/1e3,meters:ee,metres:ee,miles:ee/1609.344,millimeters:ee*1e3,millimetres:ee*1e3,nauticalmiles:ee/1852,radians:1,yards:ee*1.0936},zc={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ce(t,e,r={}){const n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}yt(ce,"feature");function Rb(t,e,r={}){switch(t){case"Point":return Ae(e).geometry;case"LineString":return Ee(e).geometry;case"Polygon":return Na(e).geometry;case"MultiPoint":return Dp(e).geometry;case"MultiLineString":return Ua(e).geometry;case"MultiPolygon":return Fp(e).geometry;default:throw new Error(t+" is invalid")}}yt(Rb,"geometry");function Ae(t,e,r={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!rn(t[0])||!rn(t[1]))throw new Error("coordinates must contain numbers");return ce({type:"Point",coordinates:t},e,r)}yt(Ae,"point");function Ib(t,e,r={}){return Sr(t.map(n=>Ae(n,e)),r)}yt(Ib,"points");function Na(t,e,r={}){for(const n of t){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;iNa(n,e)),r)}yt(Tb,"polygons");function Ee(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return ce({type:"LineString",coordinates:t},e,r)}yt(Ee,"lineString");function Db(t,e,r={}){return Sr(t.map(n=>Ee(n,e)),r)}yt(Db,"lineStrings");function Sr(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}yt(Sr,"featureCollection");function Ua(t,e,r={}){return ce({type:"MultiLineString",coordinates:t},e,r)}yt(Ua,"multiLineString");function Dp(t,e,r={}){return ce({type:"MultiPoint",coordinates:t},e,r)}yt(Dp,"multiPoint");function Fp(t,e,r={}){return ce({type:"MultiPolygon",coordinates:t},e,r)}yt(Fp,"multiPolygon");function Fb(t,e,r={}){return ce({type:"GeometryCollection",geometries:t},e,r)}yt(Fb,"geometryCollection");function Bb(t,e=0){if(e&&!(e>=0))throw new Error("precision must be a positive number");const r=Math.pow(10,e||0);return Math.round(t*r)/r}yt(Bb,"round");function Bp(t,e="kilometers"){const r=Tp[e];if(!r)throw new Error(e+" units is invalid");return t*r}yt(Bp,"radiansToLength");function Ha(t,e="kilometers"){const r=Tp[e];if(!r)throw new Error(e+" units is invalid");return t/r}yt(Ha,"lengthToRadians");function Nb(t,e){return Np(Ha(t,e))}yt(Nb,"lengthToDegrees");function Ub(t){let e=t%360;return e<0&&(e+=360),e}yt(Ub,"bearingToAzimuth");function Np(t){return t%(2*Math.PI)*180/Math.PI}yt(Np,"radiansToDegrees");function Hb(t){return t%360*Math.PI/180}yt(Hb,"degreesToRadians");function Wb(t,e="kilometers",r="kilometers"){if(!(t>=0))throw new Error("length must be a positive number");return Bp(Ha(t,e),r)}yt(Wb,"convertLength");function qb(t,e="meters",r="kilometers"){if(!(t>=0))throw new Error("area must be a positive number");const n=zc[e];if(!n)throw new Error("invalid original units");const i=zc[r];if(!i)throw new Error("invalid final units");return t/n*i}yt(qb,"convertArea");function rn(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}yt(rn,"isNumber");function Wa(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}yt(Wa,"isObject");function zb(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(t.length!==4&&t.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(e=>{if(!rn(e))throw new Error("bbox must only contain numbers")})}yt(zb,"validateBBox");function Gb(t){if(!t)throw new Error("id is required");if(["string","number"].indexOf(typeof t)===-1)throw new Error("id must be a number or a string")}yt(Gb,"validateId");var Vb=Object.defineProperty,er=(t,e)=>Vb(t,"name",{value:e,configurable:!0});function qa(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return[...t.geometry.coordinates];if(t.type==="Point")return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}er(qa,"getCoord");function Up(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}er(Up,"getCoords");function Hp(t){if(t.length>1&&rn(t[0])&&rn(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return Hp(t[0]);throw new Error("coordinates must only contain numbers")}er(Hp,"containsNumber");function Yb(t,e,r){if(!e||!r)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.type)}er(Yb,"geojsonType");function Zb(t,e,r){if(!t)throw new Error("No feature passed");if(!r)throw new Error(".featureOf() requires a name");if(!t||t.type!=="Feature"||!t.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.geometry.type)}er(Zb,"featureOf");function Jb(t,e,r){if(!t)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!t||t.type!=="FeatureCollection")throw new Error("Invalid input to "+r+", FeatureCollection required");for(const n of t.features){if(!n||n.type!=="Feature"||!n.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!n.geometry||n.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+n.geometry.type)}}er(Jb,"collectionOf");function $r(t){return t.type==="Feature"?t.geometry:t}er($r,"getGeom");function Xb(t,e){return t.type==="FeatureCollection"?"FeatureCollection":t.type==="GeometryCollection"?"GeometryCollection":t.type==="Feature"&&t.geometry!==null?t.geometry.type:t.type}er(Xb,"getType");var Kb=Object.defineProperty,Wp=(t,e)=>Kb(t,"name",{value:e,configurable:!0});function se(t,e,r={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=qa(t),i=$r(e),o=i.type,s=e.bbox;let l=i.coordinates;if(s&&qp(n,s)===!1)return!1;o==="Polygon"&&(l=[l]);let a=!1;for(var u=0;u=t[0]&&e[3]>=t[1]}Wp(qp,"inBBox");class zp{constructor(e=[],r=Qb){if(this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:r,compare:n}=this,i=r[e];for(;e>0;){const o=e-1>>1,s=r[o];if(n(i,s)>=0)break;r[e]=s,e=o}r[e]=i}_down(e){const{data:r,compare:n}=this,i=this.length>>1,o=r[e];for(;e=0)break;r[e]=l,e=s}r[e]=o}}function Qb(t,e){return te?1:0}function Gp(t,e){return t.p.x>e.p.x?1:t.p.xe.p.y?1:-1:1}function tv(t,e){return t.rightSweepEvent.p.x>e.rightSweepEvent.p.x?1:t.rightSweepEvent.p.x0?(h.isLeftEndpoint=!0,u.isLeftEndpoint=!1):(u.isLeftEndpoint=!0,h.isLeftEndpoint=!1),e.push(u),e.push(h),s=l,Ci=Ci+1}}ki=ki+1}class rv{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}}function nv(t,e){if(t===null||e===null||t.leftSweepEvent.ringId===e.leftSweepEvent.ringId&&(t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.rightSweepEvent)||t.leftSweepEvent.isSamePoint(e.leftSweepEvent)||t.leftSweepEvent.isSamePoint(e.rightSweepEvent)))return!1;const r=t.leftSweepEvent.p.x,n=t.leftSweepEvent.p.y,i=t.rightSweepEvent.p.x,o=t.rightSweepEvent.p.y,s=e.leftSweepEvent.p.x,l=e.leftSweepEvent.p.y,a=e.rightSweepEvent.p.x,u=e.rightSweepEvent.p.y,h=(u-l)*(i-r)-(a-s)*(o-n),d=(a-s)*(n-l)-(u-l)*(r-s),m=(i-r)*(n-l)-(o-n)*(r-s);if(h===0)return!1;const b=d/h,x=m/h;if(b>=0&&b<=1&&x>=0&&x<=1){const _=r+b*(i-r),I=n+b*(o-n);return[_,I]}return!1}function iv(t,e){e=e||!1;const r=[],n=new zp([],tv);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const o=new rv(i);for(let s=0;ssv(t,"name",{value:e,configurable:!0}),lv=ov;function vo(t,e,r={}){const{removeDuplicates:n=!0,ignoreSelfIntersections:i=!1}=r;let o=[];t.type==="FeatureCollection"?o=o.concat(t.features):t.type==="Feature"?o.push(t):(t.type==="LineString"||t.type==="Polygon"||t.type==="MultiLineString"||t.type==="MultiPolygon")&&o.push(ce(t)),e.type==="FeatureCollection"?o=o.concat(e.features):e.type==="Feature"?o.push(e):(e.type==="LineString"||e.type==="Polygon"||e.type==="MultiLineString"||e.type==="MultiPolygon")&&o.push(ce(e));const s=lv(Sr(o),i);let l=[];if(n){const a={};s.forEach(u=>{const h=u.join(",");a[h]||(a[h]=!0,l.push(u))})}else l=s;return Sr(l.map(a=>Ae(a)))}av(vo,"lineIntersect");var cv=Object.defineProperty,Ht=(t,e)=>cv(t,"name",{value:e,configurable:!0});function ln(t,e,r){if(t!==null)for(var n,i,o,s,l,a,u,h=0,d=0,m,b=t.type,x=b==="FeatureCollection",_=b==="Feature",I=x?t.features.length:1,C=0;Ca||x>u||_>h){l=d,a=n,u=x,h=_,o=0;return}var I=Ee([l,d],r.properties);if(e(I,n,i,_,o)===!1)return!1;o++,l=d})===!1)return!1}}})}Ht(Zp,"segmentEach");function yv(t,e,r){var n=r,i=!1;return Zp(t,function(o,s,l,a,u){i===!1&&r===void 0?n=o:n=e(n,o,s,l,a,u),i=!0}),n}Ht(yv,"segmentReduce");function Jp(t,e){if(!t)throw new Error("geojson is required");Je(t,function(r,n,i){if(r.geometry!==null){var o=r.geometry.type,s=r.geometry.coordinates;switch(o){case"LineString":if(e(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var l=0;lwv(t,"name",{value:e,configurable:!0});function co(t,e={}){const r=$r(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return Xp(r,e);case"MultiPolygon":return Kp(r,e);default:throw new Error("invalid poly")}}wo(co,"polygonToLine");function Xp(t,e={}){const r=$r(t).coordinates,n=e.properties?e.properties:t.type==="Feature"?t.properties:{};return Ga(r,n)}wo(Xp,"singlePolygonToLine");function Kp(t,e={}){const r=$r(t).coordinates,n=e.properties?e.properties:t.type==="Feature"?t.properties:{},i=[];return r.forEach(o=>{i.push(Ga(o,n))}),Sr(i)}wo(Kp,"multiPolygonToLine");function Ga(t,e){return t.length>1?Ua(t,e):Ee(t[0],e)}wo(Ga,"coordsToLine");var xv=Object.defineProperty,rr=(t,e)=>xv(t,"name",{value:e,configurable:!0});function Qp(t,e){let r=!0;return Je(t,n=>{Je(e,i=>{if(r===!1)return!1;r=th(n.geometry,i.geometry)})}),r}rr(Qp,"booleanDisjoint");function th(t,e){switch(t.type){case"Point":switch(e.type){case"Point":return!ih(t.coordinates,e.coordinates);case"LineString":return!ta(e,t);case"Polygon":return!se(t,e)}break;case"LineString":switch(e.type){case"Point":return!ta(t,e);case"LineString":return!eh(t,e);case"Polygon":return!ea(e,t)}break;case"Polygon":switch(e.type){case"Point":return!se(e,t);case"LineString":return!ea(t,e);case"Polygon":return!rh(e,t)}}return!1}rr(th,"disjoint");function ta(t,e){for(let r=0;r0}rr(eh,"isLineOnLine");function ea(t,e){for(const r of e.coordinates)if(se(r,t))return!0;return vo(e,co(t)).features.length>0}rr(ea,"isLineInPoly");function rh(t,e){for(const r of t.coordinates[0])if(se(r,e))return!0;for(const r of e.coordinates[0])if(se(r,t))return!0;return vo(co(t),co(e)).features.length>0}rr(rh,"isPolyInPoly");function nh(t,e,r){const n=r[0]-t[0],i=r[1]-t[1],o=e[0]-t[0],s=e[1]-t[1];return n*s-i*o!==0?!1:Math.abs(o)>=Math.abs(s)?o>0?t[0]<=r[0]&&r[0]<=e[0]:e[0]<=r[0]&&r[0]<=t[0]:s>0?t[1]<=r[1]&&r[1]<=e[1]:e[1]<=r[1]&&r[1]<=t[1]}rr(nh,"isPointOnLineSegment");function ih(t,e){return t[0]===e[0]&&t[1]===e[1]}rr(ih,"compareCoords");var Sv=Object.defineProperty,$v=(t,e)=>Sv(t,"name",{value:e,configurable:!0});function oh(t,e){let r=!1;return Je(t,n=>{Je(e,i=>{if(r===!0)return!0;r=!Qp(n.geometry,i.geometry)})}),r}$v(oh,"booleanIntersects");var Av=oh,_v=Object.defineProperty,Ev=(t,e)=>_v(t,"name",{value:e,configurable:!0});function Yn(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return ln(t,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]Ov(t,"name",{value:e,configurable:!0});function Zn(t,e,r={}){const n=qa(t),i=Up(e);for(let o=0;o"u"?null:r.epsilon))return!0}return!1}sh(Zn,"booleanPointOnLine");function ah(t,e,r,n,i){const o=r[0],s=r[1],l=t[0],a=t[1],u=e[0],h=e[1],d=r[0]-l,m=r[1]-a,b=u-l,x=h-a,_=d*x-m*b;if(i!==null){if(Math.abs(_)>i)return!1}else if(_!==0)return!1;if(n){if(n==="start")return Math.abs(b)>=Math.abs(x)?b>0?l0?a=Math.abs(x)?b>0?l<=o&&o0?a<=s&&s=Math.abs(x)?b>0?l0?a=Math.abs(x)?b>0?l<=o&&o<=u:u<=o&&o<=l:x>0?a<=s&&s<=h:h<=s&&s<=a;return!1}sh(ah,"isPointOnLineSegment");var jv=Object.defineProperty,be=(t,e)=>jv(t,"name",{value:e,configurable:!0});function lh(t,e){var r=$r(t),n=$r(e),i=r.type,o=n.type;switch(i){case"Point":switch(o){case"MultiPoint":return ch(r,n);case"LineString":return Zn(r,n,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return se(r,n,{ignoreBoundary:!0});default:throw new Error("feature2 "+o+" geometry not supported")}case"MultiPoint":switch(o){case"MultiPoint":return uh(r,n);case"LineString":return ph(r,n);case"Polygon":case"MultiPolygon":return hh(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"LineString":return fh(r,n);case"Polygon":case"MultiPolygon":return dh(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Polygon":case"MultiPolygon":return gh(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}be(lh,"booleanWithin");function ch(t,e){var r,n=!1;for(r=0;re[0]||t[2]e[1]||t[3]e?Av(t,e):!0,Pv=(t,e)=>e?Mv(t,e):!0;function Cv(t,e="highlight",r="title"){const n=(o,s,l)=>{const a=s.split(".");let u;for(u=0;u{let l="",a=0;return s.forEach(u=>{const h=u[1]+1;l+=[o.substring(a,u[0]),``,o.substring(u[0],h),""].join(""),a=h}),l+=o.substring(a),l};return t.filter(({matches:o})=>o&&o.length).map(({item:o,matches:s})=>{const l={...o};return s.forEach(a=>{a.key===r&&n(l,a.key,i(a.value,a.indices))}),l})}var mh={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Ut,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",l="minute",a="hour",u="day",h="week",d="month",m="quarter",b="year",x="date",_="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,W={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var O=["th","st","nd","rd"],E=D%100;return"["+D+(O[(E-20)%10]||O[E]||O[0])+"]"}},U=function(D,O,E){var F=String(D);return!F||F.length>=O?D:""+Array(O+1-F.length).join(E)+D},tt={s:U,z:function(D){var O=-D.utcOffset(),E=Math.abs(O),F=Math.floor(E/60),M=E%60;return(O<=0?"+":"-")+U(F,2,"0")+":"+U(M,2,"0")},m:function D(O,E){if(O.date()1)return D(J[0])}else{var dt=O.name;G[dt]=O,M=dt}return!F&&M&&(H=M),M||!F&&H},ft=function(D,O){if(ht(D))return D.clone();var E=typeof O=="object"?O:{};return E.date=D,E.args=arguments,new Rt(E)},nt=tt;nt.l=mt,nt.i=ht,nt.w=function(D,O){return ft(D,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var Rt=function(){function D(E){this.$L=mt(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[K]=!0}var O=D.prototype;return O.parse=function(E){this.$d=function(F){var M=F.date,Z=F.utc;if(M===null)return new Date(NaN);if(nt.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var J=M.match(I);if(J){var dt=J[2]-1||0,$t=(J[7]||"0").substring(0,3);return Z?new Date(Date.UTC(J[1],dt,J[3]||1,J[4]||0,J[5]||0,J[6]||0,$t)):new Date(J[1],dt,J[3]||1,J[4]||0,J[5]||0,J[6]||0,$t)}}return new Date(M)}(E),this.init()},O.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},O.$utils=function(){return nt},O.isValid=function(){return this.$d.toString()!==_},O.isSame=function(E,F){var M=ft(E);return this.startOf(F)<=M&&M<=this.endOf(F)},O.isAfter=function(E,F){return ft(E){bh=new Ke(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},Iv=async(t,e,r)=>{const n=Object.entries(e).filter(([,l])=>l.type==="text"||l.type==="select"||l.type==="multiselect").reduce((l,[a,u])=>{const h="$or",d=[],m=(b,x)=>{const _={};u.type==="text"?_[b]=`${x}`:_[a]=`="${b}"`,d.push(_)};return Object.entries(u.state).filter(([,b])=>b).forEach(([b,x])=>m(b,x)),d.length>0&&l.push({[h]:d}),l},[]);let i;if(!(n.length>0)&&r.matchAllWhenEmpty!==!1)i=t;else{const l={$and:[...n]},a=bh.search(l);i=r.enableHighlighting?Cv(a,"highlight",r.titleProperty):a.map(u=>u.item)}const o=Object.entries(e).filter(([,l])=>l.type==="range").reduce((l,[a,u])=>(l[a]={min:u.state.min,max:u.state.max,format:u.format},l),{});if(Object.keys(o).length>0){const l=[];for(let a=0;ad.format==="date"?Jn(b).unix():b;Object.prototype.hasOwnProperty.call(i[a],h)?Array.isArray(i[a][h])?u[h]=o[h].min<=m(i[a][h][1])&&m(i[a][h][0])<=o[h].max:m(i[a][h])>=o[h].min&&m(i[a][h])<=o[h].max?u[h]=!0:u[h]=!1:u[h]=!0}Object.values(u).every(h=>!!h)&&l.push(i[a])}i=[...l]}const s=Object.entries(e).filter(([,l])=>l.type==="spatial").reduce((l,[a,u])=>(l[a]={geometry:u.state.geometry,mode:u.state.mode},l),{});if(Object.values(s).map(l=>l.geometry).filter(l=>!!l).length>0){const l=[];for(let a=0;a!!h)&&l.push(i[a])}i=[...l]}return i};function Tv(t,e){return[{type:"Vector",properties:{id:"draw"},source:{type:"Vector",...t&&{format:"GeoJSON"},...t&&{url:e}},zIndex:1,interactions:[{type:"draw",options:{id:"drawInteraction",type:"Box",modify:!0}}]},{type:"Tile",source:{type:"XYZ",url:"https://s2maps-tiles.eu/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpg",attribution:"{ OSM: Data © OpenStreetMap contributors and others, Rendering © EOX }"}}]}function xo(t){if(!t.dirty)return null;switch(t.type){case"multiselect":for(const e in t.state)t.state.hasOwnProperty(e)&&(t.state[e]=!1);break;case"range":t.state.min=t.min,t.state.max=t.max;break;case"select":for(const e in t.state)t.state.hasOwnProperty(e)&&(t.state[e]=!1);break;case"spatial":t.state.geometry=void 0;break;case"text":t.keys.forEach(e=>{t.state[e]=void 0});break}return delete t.stringifiedState,delete t.dirty,t}function Yc(t,e){return t*2+e}function Dv(t){return Object.keys(t).map(e=>({title:Q`${t[e].title}: - ${t[e].stringifiedState}`,key:e})).filter(e=>t[e.key].dirty)}function ra(t){return Object.values(t).map(e=>e.dirty).filter(e=>e).length>0}async function Fv(t,e,r){return await(await fetch(`${r.externalFilter(t,e)}`)).json()}function vh(t,e,r){let n;if(t.detail?n=t.detail.target:n=t.target,n!=null&&n.classList.contains("details-filter")){if(!n.open||e!=null&&e.expandMultipleFilters)return;r.shadowRoot.querySelectorAll("eox-itemfilter-expandcontainer").forEach(i=>{const o=i.shadowRoot.querySelector(".details-filter");o&&o!==n&&o.removeAttribute("open")})}else{if(!(n!=null&&n.open)||e!=null&&e.expandMultipleResults)return;r.querySelectorAll("details").forEach(i=>{i!==n&&i.removeAttribute("open")})}}var Nt,Zc,na,ia,wh,oa,sa,xh,aa,Sh,$h;class Bv extends ie{constructor(){super(),ne(this,Nt),this.filterProperties={},this.unstyled=!1,this.inlineMode=!1,this.filters={},this._handleClickOutside=pt(this,Nt,wh).bind(this),this._handleKeyDown=pt(this,Nt,oa).bind(this)}static get properties(){return{filterProperties:{attribute:!1,type:Object},inlineMode:{attribute:"inline-mode",type:Boolean},unstyled:{type:Boolean},filters:{state:!0,type:Object}}}set showDropdown(e){this.renderRoot.querySelector("[popover]").togglePopover(e)}get showDropdown(){var e;return(e=this.renderRoot.querySelector("[popover]"))==null?void 0:e.matches(":popover-open")}connectedCallback(){super.connectedCallback(),this.inlineMode&&pt(this,Nt,na).call(this)}disconnectedCallback(){this.inlineMode&&pt(this,Nt,ia).call(this),super.disconnectedCallback()}_overlayCleanup(){}updateInline(){this.inlineMode&&this.requestUpdate()}updated(e){e.has("inlineMode")&&(this.inlineMode?pt(this,Nt,na).call(this):pt(this,Nt,ia).call(this))}render(){return Q` - - ${this.inlineMode?Q` -
-
-
-
- pt(this,Nt,Sh).call(this,e)}} - > - -
- - ${Jt(ra(this.filters),()=>Q` - this.dispatchEvent(new CustomEvent("reset"))} - > - `)} -
-
- -
-
-
-
- -
-
-
- `:Q``} - `}}Nt=new WeakSet,Zc=function(){setTimeout(()=>this._overlayCleanup=Ld(this))},na=function(){document.addEventListener("click",this._handleClickOutside),document.addEventListener("focusout",this._handleClickOutside),document.addEventListener("keydown",this._handleKeyDown),pt(this,Nt,Zc).call(this)},ia=function(){document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("focusout",this._handleClickOutside),document.removeEventListener("keydown",this._handleKeyDown),this._overlayCleanup()},wh=function(t){Fd(t,this)},oa=function(t){Dd(t,this)},sa=function(t){Td(t,this)},xh=function(){Id(this)},aa=function(t){Rd(t,this)},Sh=function(t){ld(t,this)},$h=function(t){_u(t,this)};customElements.define("eox-itemfilter-container",Bv);var Nv="Expected a function",Jc=NaN,Uv="[object Symbol]",Hv=/^\s+|\s+$/g,Wv=/^[-+]0x[0-9a-f]+$/i,qv=/^0b[01]+$/i,zv=/^0o[0-7]+$/i,Gv=parseInt,Vv=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,Yv=typeof self=="object"&&self&&self.Object===Object&&self,Zv=Vv||Yv||Function("return this")(),Jv=Object.prototype,Xv=Jv.toString,Kv=Math.max,Qv=Math.min,bs=function(){return Zv.Date.now()};function t1(t,e,r){var n,i,o,s,l,a,u=0,h=!1,d=!1,m=!0;if(typeof t!="function")throw new TypeError(Nv);e=Xc(e)||0,la(r)&&(h=!!r.leading,d="maxWait"in r,o=d?Kv(Xc(r.maxWait)||0,e):o,m="trailing"in r?!!r.trailing:m);function b(G){var K=n,ht=i;return n=i=void 0,u=G,s=t.apply(ht,K),s}function x(G){return u=G,l=setTimeout(C,e),h?b(G):s}function _(G){var K=G-a,ht=G-u,mt=e-K;return d?Qv(mt,o-ht):mt}function I(G){var K=G-a,ht=G-u;return a===void 0||K>=e||K<0||d&&ht>=o}function C(){var G=bs();if(I(G))return W(G);l=setTimeout(C,_(G))}function W(G){return l=void 0,m&&n?b(G):(n=i=void 0,s)}function U(){l!==void 0&&clearTimeout(l),u=0,n=a=i=l=void 0}function tt(){return l===void 0?s:W(bs())}function H(){var G=bs(),K=I(G);if(n=arguments,i=this,a=G,K){if(l===void 0)return x(a);if(d)return l=setTimeout(C,e),b(a)}return l===void 0&&(l=setTimeout(C,e)),s}return H.cancel=U,H.flush=tt,H}function la(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function e1(t){return!!t&&typeof t=="object"}function r1(t){return typeof t=="symbol"||e1(t)&&Xv.call(t)==Uv}function Xc(t){if(typeof t=="number")return t;if(r1(t))return Jc;if(la(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=la(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Hv,"");var r=qv.test(t);return r||zv.test(t)?Gv(t.slice(2),r?2:8):Wv.test(t)?Jc:+t}var n1=t1;const So=ei(n1);function i1(t){const e=t.renderRoot.querySelector("input[type='text']");e.value="",xo(t.filterObject),t.requestUpdate()}function o1(t){const e=t.renderRoot.querySelector("input[type='text']");t.filterObject.keys.forEach(r=>{t.filterObject.state[r]=e.value}),t.filterObject.dirty=!0,t.filterObject.stringifiedState=e.value,t.dispatchEvent(new CustomEvent("filter")),e.value===""&&t.reset()}function s1(t){xo(t.filterObject),t.requestUpdate()}function a1(t,e){const[r,n]=t.detail.values;(r!==e.filterObject.state.min||n!==e.filterObject.state.max)&&([e.filterObject.state.min,e.filterObject.state.max]=[r,n],e.filterObject.dirty=!0),e.filterObject.dirty&&(e.filterObject.stringifiedState=e.filterObject.format==="date"?`${Jn(r)} - ${Jn(n)}`:`${r} - ${n}`),e.dispatchEvent(new CustomEvent("filter")),r===e.filterObject.min&&n===e.filterObject.max?e.reset():e.requestUpdate()}function l1(t,e,r){const n=r.filterObject.format==="date",i=r.filterObject.state[t],o=n?Jn.unix(i):i;return Q`
${o}
`}function c1(t){u1(-1,t),xo(t.filterObject),t.requestUpdate()}function u1(t,e){e.selectedItems=[],Za(e),_h(e)}function Ah(t,e){const r=e.selectedItems.indexOf(t);r>=0?e.selectedItems=e.selectedItems.filter((n,i)=>i!==r):e.type==="multiselect"?e.selectedItems=[...e.selectedItems,t]:(e.selectedItems=[t],e.showSuggestions=!1),Za(e),_h(e)}function p1(t,e){e.query=t.target.value,e.showSuggestions=!0}function h1(t,e){switch(t.key){case"ArrowDown":e.highlightedIndex=Math.min(e.highlightedIndex+1,e.filteredSuggestions.length-1);break;case"ArrowUp":e.highlightedIndex=Math.max(e.highlightedIndex-1,0);break;case"Enter":e.highlightedIndex>=0&&Ah(e.filteredSuggestions[e.highlightedIndex],e);break;case"Escape":e.showSuggestions=!1;break}}function f1(t,e){(t.has("suggestions")||t.has("query"))&&Za(e)}function d1(t,e){var r;const n=((r=t.filterObject)==null?void 0:r.sort)||((i,o)=>i.localeCompare(o));return e.sort(n).map(i=>i)}function Za(t){var e,r,n;let i;t.query&&(i=new Ke(t.suggestions,{threshold:.4}).search(t.query).map(o=>o.item)),t.filteredSuggestions=d1(t,i||t.suggestions),(e=t.filterObject)!=null&&e.filterKeys&&(t.filteredSuggestions=(r=t.filterObject)==null?void 0:r.filterKeys.map(o=>`${o}`),t.filterObject.state=(n=t.filterObject)==null?void 0:n.filterKeys.map(o=>`${o}`).reduce((o,s)=>(s in o||(o[s]=void 0),o),t.filterObject.state)),t.highlightedIndex=-1}function _h(t){Object.keys(t.filterObject.state).forEach(e=>{t.filterObject.state[e]=t.selectedItems.includes(e)}),t.filterObject.stringifiedState=Object.keys(t.filterObject.state).filter(e=>t.filterObject.state[e]).join(", ")||"",t.filterObject.dirty=t.filterObject.stringifiedState.length>0,t.dispatchEvent(new CustomEvent("filter")),t.requestUpdate()}function g1(t){xo(t.filterObject),t.renderRoot.querySelector("eox-itemfilter-spatial-filter").reset(),t.requestUpdate()}function y1(t){t.renderRoot.querySelector("#eox-map").innerHTML="",Eh(t)}function m1(t,e){e.filterObject.state.mode=t;const r=new CustomEvent("filter",{detail:{[e.filterObject.key]:{}}});e.dispatchEvent(r)}function Eh(t){const e=t.renderRoot.querySelector("#eox-map");e.innerHTML===""&&(e.innerHTML='');const r=t.geometry&&b1(t.geometry),n=Tv(t.geometry,r);t.eoxMap=t.renderRoot.querySelector("eox-map"),setTimeout(()=>{t.eoxMap.layers=n;const i=o=>{const s=new CustomEvent("filter",{detail:{geometry:{type:"Polygon",coordinates:o.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates()}}});t.dispatchEvent(s)};t.eoxMap.interactions.drawInteraction.on("drawend",o=>{i(o.feature),t.eoxMap.removeInteraction("drawInteraction")}),t.eoxMap.interactions.drawInteraction_modify.on("modifyend",o=>{i(o.features.getArray()[0])})},1e3)}function b1(t){return`data:text/json,${encodeURIComponent(JSON.stringify({type:"FeatureCollection",features:[{type:"Feature",properties:null,geometry:t}]}))}`}var ca;class v1 extends ie{constructor(){super(),ne(this,ca,()=>{o1(this)}),ho(this,"debouncedInputHandler",So(le(this,ca),500,{leading:!0})),this.filterObject={},this.unstyled=!1,this.tabIndex=0}static get properties(){return{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number},unstyled:{type:Boolean}}}reset(){i1(this)}createRenderRoot(){return this}render(){return Jt(this.filterObject,()=>Q` - -
-
- e.stopPropagation()} - /> -
-
- `)}}ca=new WeakMap;customElements.define("eox-itemfilter-text",v1);class Oh extends ie{constructor(){super(...arguments),this.templates={},this._renderedTemplates={}}setBindingSyntax(e,r){this._startExpression=e,this._endExpression=r;const n=this.escapeRegex(this._startExpression),i=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${n}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${i}`,"g")}hasTemplate(e){return this.templates&&!!this.templates[e]}renderTemplate(e,r,n){if(!this.hasTemplate(e))return null;n=n||e;const i=Q` `,o={[e]:{...r}};if(this._renderedTemplates.hasOwnProperty(n)){const{slot:l}=this._renderedTemplates[n];this.contains(l)&&this.removeChild(l)}const s=document.createElement("div");return s.slot=n,s.dataset.generated="template",this._renderTemplate(s,this.templates[e],o),this.appendChild(s),this._renderedTemplates[n]={context:o,slot:s},i}getTemplates(){const e={};for(let r=0;r{const o=this.evalInContext(i||this.trimExpression(n),r);return o?typeof o=="object"?JSON.stringify(o):o.toString():""})}get expression(){return this._expression||this.setBindingSyntax("{{","}}"),this._expression}escapeRegex(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}evalInContext(e,r){r={...r};const n=new Function("with(this) { return "+e+";}");let i;try{i=n.call(r)}catch{}return i}trimExpression(e){return e=e.trim(),e.startsWith(this._startExpression)&&e.endsWith(this._endExpression)&&(e=e.substr(this._startExpression.length,e.length-this._startExpression.length-this._endExpression.length),e=e.trim()),e}renderNode(e,r,n){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,n),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=n,e;for(let i=0;i{const i=n[r.config.aggregateResults];let o;return r.filters[r.config.aggregateResults]&&(o=Object.keys(r.filters[r.config.aggregateResults]).filter(s=>r.filters[r.config.aggregateResults].state[s])),(!(o!=null&&o.length)||o.includes(e))&&Array.isArray(i)?i.includes(e):i===e})}/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const jh={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Mh=t=>(...e)=>({_$litDirective$:t,values:e});class kh{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/** - * @license - * Copyright 2020 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{I:x1}=mf,Kc=()=>document.createComment(""),Cn=(t,e,r)=>{var n;const i=t._$AA.parentNode,o=e===void 0?t._$AB:e._$AA;if(r===void 0){const s=i.insertBefore(Kc(),o),l=i.insertBefore(Kc(),o);r=new x1(s,l,t,t.options)}else{const s=r._$AB.nextSibling,l=r._$AM,a=l!==t;if(a){let u;(n=r._$AQ)==null||n.call(r,t),r._$AM=t,r._$AP!==void 0&&(u=t._$AU)!==l._$AU&&r._$AP(u)}if(s!==o||a){let u=r._$AA;for(;u!==s;){const h=u.nextSibling;i.insertBefore(u,o),u=h}}}return r},dr=(t,e,r=t)=>(t._$AI(e,r),t),S1={},$1=(t,e=S1)=>t._$AH=e,A1=t=>t._$AH,vs=t=>{var e;(e=t._$AP)==null||e.call(t,!1,!0);let r=t._$AA;const n=t._$AB.nextSibling;for(;r!==n;){const i=r.nextSibling;r.remove(),r=i}};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Qc=(t,e,r)=>{const n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},_1=Mh(class extends kh{constructor(t){if(super(t),t.type!==jh.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);const i=[],o=[];let s=0;for(const l of t)i[s]=n?n(l,s):s,o[s]=r(l,s),s++;return{values:o,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){const i=A1(t),{values:o,keys:s}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=s,o;const l=this.ut??(this.ut=[]),a=[];let u,h,d=0,m=i.length-1,b=0,x=o.length-1;for(;d<=m&&b<=x;)if(i[d]===null)d++;else if(i[m]===null)m--;else if(l[d]===s[b])a[b]=dr(i[d],o[b]),d++,b++;else if(l[m]===s[x])a[x]=dr(i[m],o[x]),m--,x--;else if(l[d]===s[x])a[x]=dr(i[d],o[x]),Cn(t,a[x+1],i[d]),d++,x--;else if(l[m]===s[b])a[b]=dr(i[m],o[b]),Cn(t,i[d],i[m]),m--,b++;else if(u===void 0&&(u=Qc(s,b,x),h=Qc(l,d,m)),u.has(l[d]))if(u.has(l[m])){const _=h.get(s[b]),I=_!==void 0?i[_]:null;if(I===null){const C=Cn(t,i[d]);dr(C,o[b]),a[b]=C}else a[b]=dr(I,o[b]),Cn(t,i[d],I),i[_]=null;b++}else vs(i[m]),m--;else vs(i[d]),d++;for(;b<=x;){const _=Cn(t,a[x+1]);dr(_,o[b]),a[b++]=_}for(;d<=m;){const _=i[d++];_!==null&&vs(_)}return this.ut=s,$1(t,a),Ve}});/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */class ua extends kh{constructor(e){if(super(e),this.it=vt,e.type!==jh.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===vt||e==null)return this._t=void 0,this.it=e;if(e===Ve)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}}ua.directiveName="unsafeHTML",ua.resultType=1;const ws=Mh(ua);function E1(t,e){return Q` -
- - - ${t} - ${e.aggregateResults(e.results,t).length} - - -
- ${Ph(t,e)} -
-
- `}function Ph(t,e){const r=e.results,n=t?e.aggregateResults(r,t):r,i=e.config,o=s=>{var l;return((l=e.selectedResult)==null?void 0:l[i.idProperty])===s[i.idProperty]?"highlighted":vt};return Q` -
    - ${_1(n,s=>s.id,s=>Q` -
  • - {e.selectedResult===s?e.selectedResult=null:e.selectedResult=s,e.dispatchEvent(new CustomEvent("result",{detail:e.selectedResult}))}} - > - ${Jt(e.hasTemplate("result"),()=>e.renderTemplate("result",s,`result-${s.id}`),()=>Q` - ${Jt(i.subTitleProperty,()=>Q` -
    - ${ws(s[i.titleProperty])} - ${ws(s[i.subTitleProperty])} -
    - `,()=>Q` - ${ws(s[i.titleProperty])} - `)} - `)} -
    -
  • - `)} -
- `}var Rn,pa,Ch;class O1 extends Oh{constructor(){super(),ne(this,Rn),this.config=null,this.filters={},this.resultAggregation=[],this.selectedResult=null}static get properties(){return{config:{attribute:!1,type:Object},results:{state:!0,type:Object},filters:{state:!0,type:Object},resultAggregation:{attribute:!1,type:Array},selectedResult:{state:!0,type:Object}}}aggregateResults(e,r){return w1(e,r,this)}createRenderRoot(){return this}handleAccordion(e){vh(e,this.config,this)}render(){return Q` -
-
-
Results
-
-
- ${Jt(this.results.length<1,()=>Q`No matching items`,()=>vt)} -
    - ${Jt(this.config.aggregateResults,()=>fo(this.resultAggregation.filter(e=>this.aggregateResults(this.results,e).length),e=>Q`${Jt(this.aggregateResults(this.results,e).length===1&&this.config.autoSpreadSingle,()=>Q`
    - ${pt(this,Rn,pa).call(this,e)} -
    `,()=>pt(this,Rn,Ch).call(this,e))}`),()=>pt(this,Rn,pa).call(this))} -
-
-
- `}}Rn=new WeakSet,pa=function(t){return Ph(t,this)},Ch=function(t){return E1(t,this)};customElements.define("eox-itemfilter-results",O1);const j1=`input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`,M1=`input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`;var In,Lh,Rh,Ih;class Th extends ie{constructor(){super(),ne(this,In),ho(this,"debouncedInputHandler",So(pt(this,In,Ih),500,{leading:!0})),this.filterObject={},this.suggestions=[],this.selectedItems=[],this.query="",this.showSuggestions=!1,this.highlightedIndex=-1,this.filteredSuggestions=[],this.type="select",this.unstyled=!1,this.tabIndex=0,this.inlineMode=!1}updated(e){f1(e,this)}reset(){c1(this)}firstUpdated(){this.filterObject.state&&(this.selectedItems=Object.keys(this.filterObject.state).map(e=>this.filterObject.state[e]?e:null).filter(e=>!!e),this.filterObject.stringifiedState=this.selectedItems.join(", ")||"",this.requestUpdate())}render(){const e=this.type.includes("multi")?"checkbox":"radio",r=this.filteredSuggestions.length>5?"select-overflow":vt;return Q` - - ${Jt(this.suggestions.length>10,()=>Q`
-
- this.showSuggestions=!1} - @focus=${()=>this.showSuggestions=!0} - /> -
-
`)} -
-
    - ${this.filteredSuggestions.map(n=>Q` -
  • - -
  • - `)} -
-
- `}}In=new WeakSet,Lh=function(t){p1(t,this)},Rh=function(t){h1(t,this)},Ih=function(t){Ah(t,this)},ho(Th,"properties",{filterObject:{attribute:!1,type:Object},suggestions:{attribute:!1,type:Array},selectedItems:{state:!0,type:Array},query:{state:!0,type:String},showSuggestions:{state:!0,type:Boolean},highlightedIndex:{state:!0,type:Number},filteredSuggestions:{state:!0,type:Array},type:{attribute:!0,type:String},unstyled:{type:Boolean},tabIndex:{attribute:!1,type:Number},inlineMode:{attribute:"inline-mode",type:Boolean}});customElements.define("eox-itemfilter-select",Th);(()=>{var t=Object.defineProperty,e=Math.pow,r=(p,y,$)=>y in p?t(p,y,{enumerable:!0,configurable:!0,writable:!0,value:$}):p[y]=$,n=(p,y,$)=>(r(p,typeof y!="symbol"?y+"":y,$),$),i=(p,y)=>` ${y&&y.length>0?y.map($=>``).join(""):""}
`,o=":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}",s="pointers-overlap",l="pointers-min-distance",a="pointers-max-distance",u="range-dragging",h="data",d="min",m="max",b="step",x="round",_="type",I="theme",C="rtl",W="btt",U="disabled",tt="keyboard-disabled",H="mousewheel-disabled",G="slider-width",K="slider-height",ht="slider-radius",mt="slider-bg",ft="slider-bg-hover",nt="slider-bg-fill",Rt="pointer-width",_t="pointer-height",D="pointer-radius",O="pointer-bg",E="pointer-bg-hover",F="pointer-bg-focus",M="pointer-shadow",Z="pointer-shadow-hover",J="pointer-shadow-focus",dt="pointer-border",$t="pointer-border-hover",Ot="pointer-border-focus",jt="animate-onclick",Wt="css-links",kt="vertical",qt="horizontal",at=(p,y,$,w,j)=>{let q=y-p;return q===0?$:(w-$)*(j-p)/q+$},Pt=p=>!isNaN(parseFloat(p))&&isFinite(p),ot=(p,y)=>Pt(p)?Number(p):y,Ct=(p,y)=>y===0?0:Math.round(p/y)*y,ve=(p,y=1/0)=>{if(y===1/0)return p;let $=e(10,y);return Math.round(p*$)/$},At=p=>p==null?!1:typeof p=="boolean"?p:p.trim().toLowerCase()==="true",_o=(p,y)=>{p.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:y}}))},ni=(p,y)=>{p.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:y}}))},ii=(p,y)=>{p.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:y}}))},oi=(p,y)=>{p.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:y}}))},Eo=(p,y)=>{if(!y||y.length<=0)return;let $=y.map(j=>Pt(j)?ot(j,j):j),w={values:$||[]};w.value=$[0],w.value0=$[0],w.value1=$[0];for(let j=1;j<$.length;j++)w[`value${j+1}`]=$[j];p.dispatchEvent(new CustomEvent("change",{detail:w}))},pn=(p,y,$)=>{let w=0,j,q,z,k,L=!1,et=(V,bt,Lt,Mt,Et,xt)=>{let zt=w;Lt!==void 0&&V>Lt&&(V=Lt),bt!==void 0&&VV===y||y.contains(V),N=(V,bt,Lt,Mt)=>{j=V,q=bt,z=Lt,k=Mt},lt=V=>{L=V,y.classList.toggle("disabled",L),L?y.setAttribute("aria-disabled","true"):y.hasAttribute("aria-disabled")&&y.removeAttribute("aria-disabled")},Qt=(V,bt)=>{bt==null?y.removeAttribute(V):y.setAttribute(V,bt)},Tt=V=>y.getAttribute(V),B=V=>{if(!L){switch(V.key){case"ArrowLeft":{V.preventDefault(),typeof j=="function"&&j($);break}case"ArrowRight":{V.preventDefault(),typeof q=="function"&&q($);break}case"ArrowUp":{V.preventDefault(),typeof z=="function"&&z($);break}case"ArrowDown":{V.preventDefault(),typeof k=="function"&&k($);break}}oi(p,V)}},it=()=>{L||_o(p,y)};return y.className=`pointer pointer-${$}`,y.addEventListener("keydown",B),y.addEventListener("click",it),{$pointer:y,get percent(){return w},get disabled(){return L},set disabled(V){lt(V)},updatePosition:et,isClicked:st,setCallbacks:N,setAttr:Qt,getAttr:Tt,destroy:()=>{y.removeEventListener("keydown",B),y.removeEventListener("click",it),y.remove()}}},Oo=p=>{if(p==null)return;if(Array.isArray(p))return p;if(p.trim()==="")return;let y=p.split(","),$=[],w=!0;for(let j=0;jNumber(j)):$},jo=(p,y)=>y?y.findIndex($=>$===p||$.toString().trim()===p.toString().trim()):-1,Mo=p=>({updatePosition:(y,$,w,j)=>{if($.length<=0)return;let q=$.length===1,z=$[0],k=$[$.length-1];y===kt?(p.style.removeProperty("width"),p.style.removeProperty("right"),p.style.removeProperty("left"),q?p.style.height=`${z}%`:p.style.height=`${Math.abs(z-k)}%`,j?(p.style.bottom="0%",q?p.style.top="auto":p.style.top=`${Math.min(100-k,100-z)}%`):(p.style.bottom="auto",q?p.style.top="0%":p.style.top=`${Math.min(z,k)}%`)):(p.style.removeProperty("height"),p.style.removeProperty("top"),p.style.removeProperty("bottom"),q?p.style.width=`${z}%`:p.style.width=`${Math.abs(z-k)}%`,w?(p.style.right="0%",q?p.style.left="auto":p.style.left=`${Math.min(100-k,100-z)}%`):(p.style.right="auto",q?p.style.left="0%":p.style.left=`${Math.min(z,k)}%`))}}),si="--animate-onclick",ko="--width",hn="--height",Po="--panel-bg-border-radius",Co="--panel-bg",Lo="--panel-bg-hover",Ro="--panel-bg-fill",Io="--pointer-width",Or="--pointer-height",fn="--pointer-border-radius",ai="--pointer-bg",li="--pointer-bg-hover",pe="--pointer-bg-focus",Ne="--pointer-shadow",To="--pointer-shadow-hover",jr="--pointer-shadow-focus",ci="--pointer-border",Do="--pointer-border-hover",Fo="--pointer-border-focus",nr=(p,y,$)=>{let w=new Map;for(let j of p.attributes){let q=j.nodeName.trim().toLowerCase();if(!y.test(q))continue;let z=q.replace(/\D/g,"").trim(),k=z===""||z==="0"||z==="1"?0:ot(z,0)-1,L=$&&typeof $=="function"?$(j.value):j.value;w.set(k,L)}return w},Bo=p=>{if(!p)return null;let y=p.getAttribute(Wt);if(!y)return null;let $=y.split(";"),w=[];for(let j of $)j.trim()!==""&&w.push(j.trim());return w},Mr=[[ko,G,"sliderWidth",null],[hn,K,"sliderHeight",null],[Po,ht,"sliderRadius",null],[Co,mt,"sliderBg",null],[Lo,ft,"sliderBgHover",null],[Ro,nt,"sliderBgFill",null],[Io,Rt,"pointer#Width",/^pointer([0-9]*)-width$/],[Or,_t,"pointer#Height",/^pointer([0-9]*)-height$/],[fn,D,"pointer#Radius",/^pointer([0-9]*)-radius$/],[ai,O,"pointer#Bg",/^pointer([0-9]*)-bg$/],[li,E,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[pe,F,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[Ne,M,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[To,Z,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[jr,J,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[ci,dt,"pointer#Border",/^pointer([0-9]*)-border$/],[Do,$t,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[Fo,Ot,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],ir=(p,y,$)=>{let w=null,j=[],q=new Map,z=(B,it=y)=>{let V=[...it.classList];for(let bt of V)bt.startsWith(B)&&y.classList.remove(bt)},k=()=>{z("shape");let B=y.querySelectorAll(".pointer");for(let it of B)z("shape",it)},L=B=>{w=B,z("theme-"),typeof B=="string"&&y.classList.add(`theme-${B}`)},et=()=>{if(k(),!(j.length<=0)){y.classList.add("shape",`shape-${j[0]}`);for(let B=1;B{j[B]=it,et()},N=()=>{k();let B=nr(p,/^pointer([0-9]*)-shape$/);if(!(B.size<=0)){for(let it of B){let V=it[0];j[V]=it[1]}et()}},lt=(B,it)=>`${B}-${it}`,Qt=(B,it,V)=>{let bt=$[V];if(!bt)return;let Lt=V===0?y:bt.$pointer;if(it==null){q.has(lt(B,V))&&q.delete(lt(B,V)),Lt.style.removeProperty(B);return}q.set(lt(B,V),it),Lt.style.setProperty(B,it)},Tt=(B,it)=>q.get(lt(B,it));return(()=>{for(let B of Mr){let[it,V,bt,Lt]=B;if(Lt){let Et=nr(p,Lt);for(let xt of Et){let zt=xt[0],Gt=xt[1];Qt(it,Gt,zt)}}else{let Et=p.getAttribute(V);Qt(it,Et,0)}let Mt=[];if(bt.indexOf("#")===-1)Mt.push([bt,0]);else{Mt.push([bt.replace("#",""),0]),Mt.push([bt.replace("#","0"),0]),Mt.push([bt.replace("#","1"),0]);for(let Et=1;Et<$.length;Et++)Mt.push([bt.replace("#",(Et+1).toString()),Et])}for(let Et of Mt)try{let xt=Et[0],zt=Et[1];Object.prototype.hasOwnProperty.call(p,xt)||Object.defineProperty(p,xt,{get(){return Tt(it,zt)},set:Gt=>{Qt(it,Gt,zt)}})}catch(xt){console.error(xt)}}L(p.getAttribute(I)),N()})(),{setStyle:Qt,getStyle:Tt,get theme(){return w},set theme(B){L(B)},get pointerShapes(){return j},setPointerShape:st}},we="animate-on-click",kr="range-dragging",dn=(p,y,$,w)=>{let j=[],q=st=>{for(let N of j)N.update&&typeof N.update=="function"&&N.update(st)},z=()=>{for(let st of j)st.destroy&&typeof st.destroy=="function"&&st.destroy()},k=(st,N)=>{for(let lt of j)lt.onAttrChange&&typeof lt.onAttrChange=="function"&<.onAttrChange(st,N)},L=st=>{if(st.gettersAndSetters){for(let N of st.gettersAndSetters)if(!(!N.name||!N.attributes))try{Object.prototype.hasOwnProperty.call(p,N.name)||Object.defineProperty(p,N.name,N.attributes)}catch(lt){console.error("defineSettersGetters error:",lt)}}},et=st=>{var N;if(!st.css)return;let lt=(N=p.shadowRoot)==null?void 0:N.querySelector("style");!lt||(lt.innerHTML+=st.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let st of window.tcRangeSliderPlugins){let N=st();j.push(N),N.init&&typeof N.init=="function"&&(N.init(p,y,$,w),L(N),et(N))}},update:q,onAttrChange:k,destroy:z}},or=10,ui=20,No=(p,y)=>{let $=new Map,w=/^value([0-9]*)$/;for(let k of p.attributes){let L=k.nodeName.trim().toLowerCase();if(!w.test(L))continue;let et=L.replace("value","").trim(),st=et===""||et==="0"||et==="1"?0:ot(et,0)-1,N=Pt(k.value)?ot(k.value,0):k.value;$.set(st,N)}let j=Math.max(...Array.from($.keys())),q=[];q.push([pn(p,y,0),$.get(0)]);let z=y;for(let k=1;k<=j;k++){let L=y.cloneNode(!0);z.after(L),z=L,q.push([pn(p,L,k),$.get(k)])}return q},pi=(p,y,$,w,j,q,z)=>{try{Object.defineProperty(p,w,{configurable:!0,get(){if(!y)return;let k=y.pointers[$];if(!k)return;let L=y.getTextValue(k.percent);return Pt(L)?ot(L,L):L},set:k=>{y.pointers[$]?y?.setValue(k,$):y?.addPointer(k)}}),Object.defineProperty(p,j,{configurable:!0,get(){var k,L;return(L=(k=y?.pointers[$])==null?void 0:k.getAttr("aria-label"))!=null?L:void 0},set:k=>{!y||y.setAriaLabel($,k)}}),Object.defineProperty(p,q,{configurable:!0,get(){var k,L;return(L=(k=y?.styles)==null?void 0:k.pointerShapes[$])!=null?L:null},set:k=>{!y||!y.styles||y.styles.setPointerShape($,k)}}),Object.defineProperty(p,z,{configurable:!0,get(){var k;return(k=y?.pointers[$].disabled)!=null?k:!1},set:k=>{if(!y)return;let L=y?.pointers[$];!L||(L.disabled=k)}})}catch(k){console.error(k)}},Uo=(p,y)=>{let $=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let w=2;w{var w;let j=(w=$.shadowRoot)==null?void 0:w.querySelector(".container");if(j)for(let q of p)y?j.prepend(q.$pointer):j.append(q.$pointer)},Pr=(p,y)=>{if(!(!y||p.length<=1)){for(let $ of p)$.$pointer.style.zIndex=ui.toString();y.$pointer.style.zIndex=(ui*2).toString()}},sr=0,Ue=100,Kt=2,fi="0.3s",Ho=(p,y,$)=>{let w=$.map(g=>g[0]),j=null,q=null,z=null,k=null,L=sr,et=Ue,st,N,lt=qt,Qt=Kt,Tt=!1,B=!1,it=!1,V=0,bt=1/0,Lt=!1,Mt,Et,xt=!1,zt=!1,Gt=!1,xe=fi,di=[],yn=g=>{xt||(g.preventDefault&&g.preventDefault(),ke(g),window.addEventListener("mousemove",ke),window.addEventListener("mouseup",Cr),ni(p,g))},Cr=g=>{xt||(Mt=void 0,Et=void 0,window.removeEventListener("mousemove",ke),window.removeEventListener("mouseup",Cr),xe&&y.classList.add(we),ii(p,g))},zo=(g,S)=>{if(w.length<=0)return;if(w.length===1)return w[0].isClicked(g)&&xe&&y.classList.remove(we),w[0];let R=Vo(g);if(Lt){let ut=S,Zt=cr(ut);Zt!==void 0&&(ut=Ct(ut,Zt)),R?(Mt=ut,Et=0,xe&&y.classList.remove(we)):Mt!==void 0&&(Et=ut-Mt,Mt=ut)}if(!Go(g)&&!R){for(let ut of w)if(!(!ut.isClicked(g)||ut.disabled))return xe&&y.classList.remove(we),ut;for(let ut of w)if(j===ut)return ut}let rt=1/0,gt=null;for(let ut of w){if(ut.disabled)continue;let Zt=Math.abs(S-ut.percent);Ztw.findIndex(g=>j===g&&!g.disabled),ke=g=>{let S;if(lt===kt){let{height:rt,top:gt}=y.getBoundingClientRect(),ut=g.type.indexOf("mouse")!==-1?g.clientY:g.touches[0].clientY;S=Math.min(Math.max(0,ut-gt),rt)*100/rt}else{let{width:rt,left:gt}=y.getBoundingClientRect(),ut=g.type.indexOf("mouse")!==-1?g.clientX:g.touches[0].clientX;S=Math.min(Math.max(0,ut-gt),rt)*100/rt}if((Tt||B)&&(S=100-S),j=zo(g.target,S),j&&Pr(w,j),Lt&&w.length>1&&Et!==void 0){let rt=w[0],gt=w[w.length-1],ut=rt.percent+Et<0,Zt=gt.percent+Et>100;if(ut||Zt)return;for(let Ie=0;Ie{if(xt||document.activeElement!==p||j!=null&&j.disabled)return;g.stopPropagation(),g.preventDefault();let S=g.deltaY<0,R=Tt||B,rt=S?!R:R,gt=Lr();gt!==-1&&(rt?ar(gt,w[gt].percent):lr(gt,w[gt].percent))},gi=g=>{xt||zt||(lt===kt?B?It(g,100):It(g,0):Tt?lr(g,w[g].percent):ar(g,w[g].percent))},yi=g=>{xt||zt||(lt===kt?B?It(g,0):It(g,100):Tt?ar(g,w[g].percent):lr(g,w[g].percent))},mi=g=>{xt||zt||(lt===kt?B?lr(g,w[g].percent):ar(g,w[g].percent):Tt?It(g,100):It(g,0))},bi=g=>{xt||zt||(lt===kt?B?ar(g,w[g].percent):lr(g,w[g].percent):Tt?It(g,0):It(g,100))},Go=g=>g.classList.contains("panel"),Vo=g=>g.classList.contains("panel-fill"),ar=(g,S)=>{if(S===void 0)return;let R=cr(S);R==null&&(R=1),S-=R,S<0&&(S=0),It(g,S)},lr=(g,S)=>{if(S===void 0)return;let R=cr(S);R==null&&(R=1),S+=R,S>100&&(S=100),It(g,S)},Pe=()=>{!k||k.update({percents:wi(),values:xi(),$pointers:bn(),min:ur(),max:Si(),data:vn(),step:mn(),round:Tr(),type:wn(),textMin:Ir(),textMax:Ce(),rightToLeft:he(),bottomToTop:Sn(),pointersOverlap:hr(),pointersMinDistance:Dr(),pointersMaxDistance:xn(),rangeDragging:te(),disabled:$n(),keyboardDisabled:pr(),mousewheelDisabled:Br()})},vi=()=>{Pe()},Yo=g=>{if(!(it||w.length<=1||et===L))if(g===0){let S=bt*100/(et-L);return Math.max(0,w[g+1].percent-S)}else{let S=V*100/(et-L);return Math.min(w[g-1].percent+S,100)}},Zo=g=>{if(!(it||w.length<=1||et===L))if(g===w.length-1){let S=bt*100/(et-L);return Math.min(w[g-1].percent+S,100)}else{let S=V*100/(et-L);return Math.max(0,w[g+1].percent-S)}},cr=g=>{let S;if(typeof st=="function"){let R=at(0,100,L,et,g);S=st(R,g)}else S=st;if(Pt(S)){let R=et-L;return S=R===0?0:S*100/R,S}},He=g=>{if(g===void 0)return;let S=at(0,100,L,et,g);return N!==void 0?N[Math.round(S)]:ve(S,Qt)},Ir=()=>N!==void 0?N[L]:L,Ce=()=>N!==void 0?N[et]:et,mn=()=>st,We=g=>{var S;return g<=0||it?Ir():(S=He(w[g-1].percent))!=null?S:""},Se=g=>{var S;return w.length<=1||g>=w.length-1||it?Ce():(S=He(w[g+1].percent))!=null?S:""},wi=()=>w.map(g=>g.percent),xi=()=>w.map(g=>He(g.percent)),bn=()=>w.map(g=>g.$pointer),ur=()=>L,Si=()=>et,vn=()=>N,wn=()=>lt,Tr=()=>Qt,Dr=()=>V,xn=()=>bt,Fr=g=>di[g],he=()=>Tt,Sn=()=>B,$n=()=>xt,pr=()=>zt,Br=()=>Gt,hr=()=>it,te=()=>Lt,It=(g,S)=>{if(S===void 0)return;let R=cr(S);R!==void 0&&(S=Ct(S,R));let rt=w[g];if(!rt)return;let gt=rt.updatePosition(S,Yo(g),Zo(g),lt,Tt,B);q?.updatePosition(lt,w.map(ut=>ut.percent),Tt,B),Pe();for(let ut of w){let Zt=He(ut.percent);Zt!==void 0&&(ut.setAttr("aria-valuenow",Zt.toString()),ut.setAttr("aria-valuetext",Zt.toString()))}An(),gt&&Eo(p,w.map(ut=>He(ut.percent)))},ae=()=>{for(let g=0;g{L=N!==void 0?0:ot(g,sr),et=N!==void 0?N.length-1:ot(S,Ue),Le(L),Re(et)},An=()=>{var g,S;for(let R=0;R{L=ot(g,sr),L>et&&(et=L+Ue),ae()},Re=g=>{et=ot(g,Ue),et{it=!0;for(let S=0;S{let R;N!==void 0?(R=g==null?0:jo(g,N),R===-1&&(R=0)):(R=ot(g,L),Ret&&(R=et));let rt=at(L,et,0,100,R);It(S,rt)},Hr=g=>{if(g==null){st=void 0;return}if(typeof g=="function"){st=g,ae();return}if(Pt(g)){st=ot(g,1);let S=Math.abs(et-L);st>S&&(st=void 0),ae();return}st=void 0},_n=g=>{it=g,ae()},En=g=>{(!Pt(g)||g<0)&&(g=0),V=g},qe=g=>{(!Pt(g)||g<0)&&(g=1/0),bt=g},On=g=>{xt=g,y.classList.toggle("disabled",xt),xt?y.setAttribute("aria-disabled","true"):y.hasAttribute("aria-disabled")&&y.removeAttribute("aria-disabled")},Ai=g=>{zt=g},c=g=>{Gt=g,Gt?document.removeEventListener("wheel",Rr):document.addEventListener("wheel",Rr,{passive:!1})},f=g=>{if(g==null){N=void 0;return}if(N=Oo(g),N===void 0||N.length<=0){N=void 0;return}Le(0),Re(N.length-1),st===void 0&&Hr(1)},v=g=>{var S;typeof g=="string"?lt=g.trim().toLowerCase()===kt?kt:qt:lt=qt;let R=(S=p.shadowRoot)==null?void 0:S.querySelector(".range-slider-box");if(!R)return;R.className=`range-slider-box type-${lt}`,ae();let rt=lt===kt?"vertical":"horizontal";for(let gt of w)gt.setAttr("aria-orientation",rt)},A=g=>{Tt=g,w.length>1&&hi(w,Tt,p),ae(),Pe()},T=g=>{B=g,w.length>1&&hi(w,B,p),ae(),Pe()},P=g=>{Qt=ot(g,Kt),Qt<0&&(Qt=Kt),Pe()},Y=g=>{g==null||g.toString().trim().toLowerCase()==="false"?(xe=void 0,y.style.removeProperty(si),y.classList.remove(we)):(xe=g.toString(),y.style.setProperty(si,xe),y.classList.add(we))},St=(g,S)=>{let R=w[g];!R||(R.setAttr("aria-label",S),di[g]=S)},wt=g=>{if(Mt=void 0,w.length<=1){Lt=!1,y.classList.remove(kr);return}Lt=g,y.classList.toggle(kr,Lt)},Dt=()=>{On(At(p.getAttribute(U))),zt=At(p.getAttribute(tt)),Gt=At(p.getAttribute(H));let g=nr(p,/^pointer([0-9]*)-disabled$/,S=>At(S));for(let S of g){let R=S[0];!w[R]||(w[R].disabled=S[1])}},Vt=()=>{let g=nr(p,/^aria-label([0-9]*)$/);for(let S of g){let R=S[0];St(R,S[1])}},Yt=g=>{let S=w.length,R=w[S-1].$pointer,rt=R.cloneNode(!0);R.after(rt);let gt=pn(p,rt,S);return gt.setCallbacks(gi,yi,mi,bi),w.push(gt),Ur(g,S),ae(),Pe(),S},Bt=()=>{let g=w.length,S=w[g-1];return S?(S.destroy(),w.pop(),w.length<=1&&wt(!1),ae(),Pe(),g-1):-1};return(()=>{var g,S;for(let rt of w)rt.setCallbacks(gi,yi,mi,bi);let R=(g=p.shadowRoot)==null?void 0:g.querySelector(".panel-fill");R&&(q=Mo(R)),v(p.getAttribute(_)),A(At(p.getAttribute(C))),T(At(p.getAttribute(W))),$i(p.getAttribute(d),p.getAttribute(m)),Hr(p.getAttribute(b)),f(p.getAttribute(h)),Nr($.map(rt=>rt[1])),_n(At(p.getAttribute(s))),En(ot(p.getAttribute(l),0)),qe(ot(p.getAttribute(a),1/0)),wt(At(p.getAttribute(u))),P(ot(p.getAttribute(x),Kt)),Dt(),Vt(),z=ir(p,y,w),Y((S=p.getAttribute(jt))!=null?S:fi),y.addEventListener("mousedown",yn),y.addEventListener("mouseup",Cr),y.addEventListener("touchmove",ke),y.addEventListener("touchstart",ke),Gt||document.addEventListener("wheel",Rr,{passive:!1}),k=dn(p,vi,{setValues:Nr,setMin:Le,setMax:Re,setStep:Hr,setPointersOverlap:_n,setPointersMinDistance:En,setPointersMaxDistance:qe,setDisabled:On,setType:v,setRightToLeft:A,setBottomToTop:T,setRound:P,setKeyboardDisabled:Ai,setMousewheelDisabled:c,setRangeDragging:wt,setData:f},{getPercents:wi,getValues:xi,getPointerElements:bn,getMin:ur,getMax:Si,getStep:mn,getData:vn,getType:wn,getRound:Tr,getTextMin:Ir,getTextMax:Ce,isRightToLeft:he,isBottomToTop:Sn,isDisabled:$n,isKeyboardDisabled:pr,isMousewheelDisabled:Br,isPointersOverlap:hr,isRangeDraggingEnabled:te,getPointersMinDistance:Dr,getPointersMaxDistance:xn}),k.init()})(),{get pointers(){return w},get styles(){return z},get pluginsManager(){return k},get min(){return Ir()},get max(){return Ce()},get step(){return mn()},get pointersOverlap(){return hr()},set pointersOverlap(g){_n(g)},get pointersMinDistance(){return Dr()},set pointersMinDistance(g){En(g)},get pointersMaxDistance(){return xn()},set pointersMaxDistance(g){qe(g)},get disabled(){return $n()},set disabled(g){On(g)},get data(){return vn()},get type(){return wn()},set type(g){v(g)},get rightToLeft(){return he()},set rightToLeft(g){A(g)},get bottomToTop(){return Sn()},set bottomToTop(g){T(g)},get round(){return Tr()},set round(g){P(g)},get animateOnClick(){return xe},set animateOnClick(g){Y(g)},get keyboardDisabled(){return pr()},set keyboardDisabled(g){Ai(g)},get mousewheelDisabled(){return Br()},set mousewheelDisabled(g){c(g)},get rangeDragging(){return te()},set rangeDragging(g){wt(g)},setMin:Le,setMax:Re,setValue:Ur,setStep:Hr,setData:f,getTextValue:He,setAriaLabel:St,getAriaLabel:Fr,addPointer:Yt,removePointer:Bt,destroy:()=>{y.removeEventListener("mousedown",yn),y.removeEventListener("mouseup",Cr),y.removeEventListener("touchmove",ke),y.removeEventListener("touchstart",ke),document.removeEventListener("wheel",Rr);for(let g of w)g.destroy();k?.destroy()}}},Wo=(p,y,$)=>{let w=Mr.find(([k,L,et,st])=>L.replace("#","")===y.replace(/\d+/g,""));if(w&&p.styles){let[k,L,et,st]=w,N=y.replace(/\D/g,"").trim(),lt=N===""||N==="0"||N==="1"?0:ot(N,0)-1;p.styles.setStyle(k,$,lt);return}switch(p&&p.pluginsManager&&p.pluginsManager.onAttrChange(y,$),y){case d:{p.setMin($);break}case m:{p.setMax($);break}case b:{p.setStep($);break}case s:{p.pointersOverlap=At($);break}case l:{p.pointersMinDistance=ot($,0);break}case u:{p.rangeDragging=At($);break}case a:{p.pointersMaxDistance=ot($,1/0);break}case U:{p.disabled=At($);break}case tt:{p.keyboardDisabled=At($);break}case H:{p.mousewheelDisabled=At($);break}case h:{p.setData($);break}case _:{p.type=$;break}case C:{p.rightToLeft=At($);break}case W:{p.bottomToTop=At($);break}case x:{p.round=ot($,Kt);break}case I:{p.styles&&(p.styles.theme=$);break}case jt:{p.animateOnClick=$;break}}let j=null;if(/^value([0-9]*)$/.test(y)&&(j="value"),/^pointer([0-9]*)-disabled$/.test(y)&&(j="pointer-disabled"),/^aria-label([0-9]*)$/.test(y)&&(j="aria-label"),/^pointer([0-9]*)-shape$/.test(y)&&(j="pointer-shape"),!j)return;let q=y.replace(/\D/g,"").trim(),z=q===""||q==="0"||q==="1"?0:ot(q,0)-1;switch(j){case"value":{p.setValue($,z);break}case"pointer-disabled":{let k=p?.pointers[z];if(!k)return;k.disabled=At($);break}case"aria-label":{p.setAriaLabel(z,$);break}case"pointer-shape":{p.styles&&p.styles.setPointerShape(z,$);break}}},qo=class extends HTMLElement{constructor(){super(),n(this,"slider"),n(this,"_externalCSSList",[]),n(this,"_observer",null),this.attachShadow({mode:"open"})}set step(p){this.slider&&this.slider.setStep(p)}get step(){var p;return(p=this.slider)==null?void 0:p.step}set disabled(p){this.slider&&(this.slider.disabled=p)}get disabled(){var p,y;return(y=(p=this.slider)==null?void 0:p.disabled)!=null?y:!1}set data(p){var y;(y=this.slider)==null||y.setData(p)}get data(){var p;return(p=this.slider)==null?void 0:p.data}set min(p){var y;(y=this.slider)==null||y.setMin(p)}get min(){var p;return(p=this.slider)==null?void 0:p.min}set max(p){var y;(y=this.slider)==null||y.setMax(p)}get max(){var p;return(p=this.slider)==null?void 0:p.max}set round(p){!this.slider||(this.slider.round=p)}get round(){var p,y;return(y=(p=this.slider)==null?void 0:p.round)!=null?y:Kt}set type(p){!this.slider||(this.slider.type=p??qt)}get type(){var p;return((p=this.slider)==null?void 0:p.type)||qt}set pointersOverlap(p){!this.slider||(this.slider.pointersOverlap=p)}get pointersOverlap(){var p,y;return(y=(p=this.slider)==null?void 0:p.pointersOverlap)!=null?y:!1}set pointersMinDistance(p){!this.slider||(this.slider.pointersMinDistance=p)}get pointersMinDistance(){var p,y;return(y=(p=this.slider)==null?void 0:p.pointersMinDistance)!=null?y:0}set pointersMaxDistance(p){!this.slider||(this.slider.pointersMaxDistance=p)}get pointersMaxDistance(){var p,y;return(y=(p=this.slider)==null?void 0:p.pointersMaxDistance)!=null?y:1/0}set theme(p){!this.slider||!this.slider.styles||(this.slider.styles.theme=p)}get theme(){var p,y,$;return($=(y=(p=this.slider)==null?void 0:p.styles)==null?void 0:y.theme)!=null?$:null}set rtl(p){!this.slider||(this.slider.rightToLeft=p)}get rtl(){var p,y;return(y=(p=this.slider)==null?void 0:p.rightToLeft)!=null?y:!1}set btt(p){!this.slider||(this.slider.bottomToTop=p)}get btt(){var p,y;return(y=(p=this.slider)==null?void 0:p.bottomToTop)!=null?y:!1}set keyboardDisabled(p){!this.slider||(this.slider.keyboardDisabled=p)}get keyboardDisabled(){var p,y;return(y=(p=this.slider)==null?void 0:p.keyboardDisabled)!=null?y:!1}set mousewheelDisabled(p){!this.slider||(this.slider.mousewheelDisabled=p)}get mousewheelDisabled(){var p,y;return(y=(p=this.slider)==null?void 0:p.mousewheelDisabled)!=null?y:!1}set animateOnClick(p){!this.slider||(this.slider.animateOnClick=p)}get animateOnClick(){var p;return(p=this.slider)==null?void 0:p.animateOnClick}get rangeDragging(){var p,y;return(y=(p=this.slider)==null?void 0:p.rangeDragging)!=null?y:!1}set rangeDragging(p){this.slider&&(this.slider.rangeDragging=At(p))}get externalCSSList(){return this._externalCSSList}addPointer(p){var y,$;if(!this.slider)return;let w=($=(y=this.slider)==null?void 0:y.addPointer(p))!=null?$:0;pi(this,this.slider,w,`value${w+1}`,`ariaLabel${w+1}`,`pointerShape${w+1}`,`pointer${w+1}Disabled`)}removePointer(){var p;!this.slider||(p=this.slider)==null||p.removePointer()}addCSS(p){if(!this.shadowRoot)return;let y=document.createElement("style");y.textContent=p,this.shadowRoot.appendChild(y)}connectedCallback(){var p,y;if(!this.shadowRoot)return;this._externalCSSList=Bo(this),this.shadowRoot.innerHTML=i(o,this._externalCSSList);let $=(p=this.shadowRoot)==null?void 0:p.querySelector(".pointer");if(!$)return;let w=(y=this.shadowRoot)==null?void 0:y.getElementById("range-slider");if(!w)return;let j=No(this,$);this.slider=Ho(this,w,j),Uo(this,this.slider),this._observer=new MutationObserver(q=>{q.forEach(z=>{var k;if(!this.slider||z.type!=="attributes")return;let L=z.attributeName;!L||Wo(this.slider,L,(k=this.getAttribute(L))!=null?k:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},gn=qo;window.tcRangeSlider=gn,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",gn),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends gn{})})();var Tn,Dh,ha;class Fh extends ie{constructor(){super(),ne(this,Tn),this.filterObject={},this.tabIndex=0,this.inputHandler=pt(this,Tn,Dh).bind(this),this.debouncedInputHandler=So(this.inputHandler,0,{leading:!0})}reset(){s1(this)}createRenderRoot(){return this}render(){return Jt(this.filterObject,()=>Q` - ${pt(this,Tn,ha).call(this,"min","before")} - - ${pt(this,Tn,ha).call(this,"max","after")} - `)}}Tn=new WeakSet,Dh=function(t){a1(t,this)},ha=function(t,e){return l1(t,e,this)},ho(Fh,"properties",{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number}});customElements.define("eox-itemfilter-range",Fh);var fa,Bh;class k1 extends ie{constructor(){super(),ne(this,fa),this.filterObject={},this.tabIndex=0}static get properties(){return{filterObject:{type:Object},tabIndex:{attribute:!1,type:Number}}}reset(){g1(this)}createRenderRoot(){return this}render(){return Jt(this.filterObject,()=>{var e;return Q` -
- ${fo(["intersects","within"],r=>Q` - - `)} -
- - `})}}fa=new WeakSet,Bh=function(t){m1(t,this)};customElements.define("eox-itemfilter-spatial",k1);var da,Nh;class P1 extends ie{constructor(){super(),ne(this,da),this.geometry=null,this.eoxMap=null}static get properties(){return{geometry:{type:Object},eoxMap:{type:Object}}}firstUpdated(){pt(this,da,Nh).call(this)}reset(){y1(this)}render(){return Q`
`}}da=new WeakSet,Nh=function(){Eh(this)};customElements.define("eox-itemfilter-spatial-filter",P1);function C1(t,e){e.renderRoot.querySelectorAll(".chip").forEach(r=>{r.classList.remove("highlighted")}),t.target.classList.add("highlighted"),e.requestUpdate()}function L1(t,e){const{code:r,target:n}=t;n.id==="eox-itemfilter-input-search"&&(e.parentElement.classList.contains("hidden")&&["ArrowLeft","ArrowRight","Backspace"].includes(r)||(r==="Space"&&t.preventDefault(),["Escape","Space","Enter"].includes(r)||t.stopPropagation(),["ArrowLeft","ArrowRight","Escape","Backspace"].includes(r)&&R1(r,t.target.value??"",e)))}function R1(t,e,r){const n=r.renderRoot.querySelector(".chip.highlighted");if((t==="Escape"||e)&&n&&n.classList.remove("highlighted"),t==="Backspace"&&!e){if(r.items.length){n&&(n.querySelector(".chip-item-close").click(),r.items.splice(Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(n),1));const i=r.renderRoot.querySelectorAll(".chip")[r.renderRoot.querySelectorAll(".chip").length-1];i.classList.contains("highlighted")||i.classList.add("highlighted"),r.requestUpdate()}r._dispatchEvent()}if((t==="ArrowLeft"||t==="ArrowRight")&&!e){if(r.renderRoot.querySelectorAll(".chip").length<1)return;let i=0;const o=r.renderRoot.querySelector(".chip.highlighted");o&&(i=Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(o),o.classList.remove("highlighted")),i=i+(t==="ArrowLeft"?-1:1),t==="ArrowLeft"&&i<0&&(i=r.renderRoot.querySelectorAll(".chip").length-1),t==="ArrowRight"&&i>r.renderRoot.querySelectorAll(".chip").length-1&&(i=0),Array.from(r.renderRoot.querySelectorAll(".chip"))[i].classList.add("highlighted")}}var Dn,ga,Uh;class I1 extends ie{constructor(){super(),ne(this,Dn),this.items={},this.controller={}}static get properties(){return{items:{attribute:!1,type:Object},controller:{attribute:!1,type:Object}}}connectedCallback(){super.connectedCallback(),this.getRootNode().addEventListener("keydown",pt(this,Dn,ga).bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",pt(this,Dn,ga).bind(this))}_dispatchEvent(){this.dispatchEvent(new CustomEvent("items-selected",{detail:this.items}))}render(){return Q` - - - ${fo(this.items,e=>Q` - - ${e.title} - - - - `)} - - `}}Dn=new WeakSet,ga=function(t){L1(t,this)},Uh=function(t){C1(t,this)};customElements.define("eox-itemfilter-chips",I1);const T1=Object.freeze({aggregateResults:void 0,autoSpreadSingle:!1,enableHighlighting:!1,externalFilter:()=>{},filterProperties:[],fuseConfig:{},inlineMode:!1,matchAllWhenEmpty:!0,showResults:!0,idProperty:"id",titleProperty:"title",subTitleProperty:void 0,expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0}),tu=["aggregateResults","autoSpreadSingle","enableHighlighting","externalFilter","filterProperties","fuseConfig","inlineMode","matchAllWhenEmpty","showResults","titleProperty","subTitleProperty","idProperty","expandMultipleFilters","expandResults","expandMultipleResults","items"];var D1=200,Ja="__lodash_hash_undefined__",F1=1/0,B1="[object Function]",N1="[object GeneratorFunction]",U1=/[\\^$.*+?()[\]{}|]/g,H1=/^\[object .+?Constructor\]$/,W1=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,q1=typeof self=="object"&&self&&self.Object===Object&&self,Xa=W1||q1||Function("return this")();function z1(t,e){var r=t?t.length:0;return!!r&&V1(t,e,0)>-1}function G1(t,e,r,n){for(var i=t.length,o=r+-1;++o-1}function fw(t,e){var r=this.__data__,n=$o(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}cn.prototype.clear=cw;cn.prototype.delete=uw;cn.prototype.get=pw;cn.prototype.has=hw;cn.prototype.set=fw;function un(t){var e=-1,r=t?t.length:0;for(this.clear();++e=D1){var u=$w(t);if(u)return Hh(u);s=!1,i=Z1,a=new uo}else a=l;t:for(;++n-1}function q(c,f){var v=this.__data__,A=xt(v,c);return A<0?v.push([c,f]):v[A][1]=f,this}p.prototype.clear=y,p.prototype.delete=$,p.prototype.get=w,p.prototype.has=j,p.prototype.set=q;function z(c){var f=-1,v=c?c.length:0;for(this.clear();++fSt))return!1;var Dt=P.get(c);if(Dt&&P.get(f))return Dt==f;var Vt=-1,Yt=!0,Bt=T&o?new lt:void 0;for(P.set(c,f),P.set(f,c);++Vt-1&&c%1==0&&c-1&&c%1==0&&c<=a}function Le(c){var f=typeof c;return!!c&&(f=="object"||f=="function")}function Re(c){return!!c&&typeof c=="object"}function Nr(c){return typeof c=="symbol"||Re(c)&&Ne.call(c)==K}var Ur=oi?si(oi):yi;function Hr(c){return c==null?"":Pe(c)}function _n(c,f,v){var A=c==null?void 0:yn(c,f);return A===void 0?v:A}function En(c,f){return c!=null&&wi(c,f,zo)}function qe(c){return It(c)?Et(c):bi(c)}function On(c){return c}function Ai(c){return ur(c)?jo(Fr(c)):lr(c)}t.exports=Sn})(po,po.exports);var Cw=po.exports;const Vh=ei(Cw);function Lw(t,e,r){let n=[];t.filterProperties.length&&t.filterProperties.forEach(o=>{const s={},l=u=>o.format==="date"?Jn(u).unix():parseInt(u,10);e.forEach(u=>{var h;if(o.type==="range"){if(Array.isArray(u[o.key])){const d=[l(u[o.key][0]),l(u[o.key][1])];s.min=s.min!==void 0?Math.min(s.min,d[0]):d[0],s.max=s.max!==void 0?Math.max(s.max,d[1]):d[1]}else{const d=l(u[o.key]);s.min=s.min!==void 0?Math.min(s.min,d):d,s.max=s.max!==void 0?Math.max(s.max,d):d}return}Array.isArray(u[o.key])?u[o.key].forEach(d=>{s[d]=void 0}):o.type==="spatial"?(s.geometry=void 0,s.mode=o.mode||"intersects"):(h=o.key)!=null&&h.includes(".")?Gh(Vh(r.items,o.key)).filter(d=>d).forEach(d=>{s[d]=void 0}):s[u[o.key]]=void 0});const a=o.key||o.keys.join("|");r.filters[a]=Object.assign({type:o.type||"multiselect",dirty:o.state?!1:void 0,key:a},o.type==="range"?{min:s.min,max:s.max,format:o.format}:{},o),r.filters[a].state=Object.assign({},s,o.state)}),t.matchAllWhenEmpty!==!1&&(r.results=r.sortResults(e),r.requestUpdate()),t.aggregateResults&&(n=Array.from(new Set(e.reduce((o,s)=>o.concat(s[t.aggregateResults]),[]))).sort((o,s)=>o.localeCompare(s)));const i=[];return Object.values(r.filters).forEach(o=>{o.type==="text"?o.keys.forEach(s=>{i.includes(s)||i.push(s)}):(o.type==="select"||o.type==="multiselect")&&(i.includes(o.key)||i.push(o.key))}),Rv(e,Object.assign({keys:i},t.fuseConfig)),n}async function Rw(t,e,r){let n;r.externalFilter?n=await Fv(e,r.filters,t):n=await Iv(e,r.filters,t),r.results=r.sortResults(n)}function Iw(t,e,r){const n=`filter-${t.key}`.replace("|","-");switch(t.type){case"text":return Q`r.search()} - >`;case"multiselect":case"select":return Q` - r.search()} - > - `;case"range":return Q` - r.search()} - > - `;case"spatial":return Q` - r.search()} - > - `;default:return Q``}}function Tw(t,e){return[...t].sort((r,n)=>r[e.titleProperty].localeCompare(n[e.titleProperty]))}function Dw(t,e,r){return Q` - ${Jt(t.dirty,()=>Q` - - `)} - `}function Fw(t){t.renderRoot.querySelectorAll("[data-type='filter']").forEach(e=>{typeof e.reset=="function"&&e.reset()}),t.search()}var Wi,Fn,de,qi,Yh,Zh;class Bw extends Oh{constructor(){super(),ne(this,qi),ne(this,Wi,[]),ne(this,Fn,[]),ne(this,de,T1),this.items=null,this.filters={},this.results=[],this.selectedResult=null,this.search=So(this.searchHandler,100,{leading:!0}),this.aggregateResults=void 0,this.autoSpreadSingle=!1,this.enableHighlighting=!1,this.externalFilter=null,this.filterProperties=[],this.fuseConfig={},this.inlineMode=!1,this.matchAllWhenEmpty=!0,this.showResults=!0,this.titleProperty="title",this.subTitleProperty=void 0,this.idProperty="id",this.expandMultipleFilters=!0,this.expandResults=!0,this.expandMultipleResults=!0,this.unstyled=!1}static get properties(){return{items:{attribute:!1,type:Object},results:{state:!0,attribute:!1,type:Object},filters:{state:!0,attribute:!1,type:Object},selectedResult:{attribute:!1,type:Object},aggregateResults:{attribute:"aggregate-results",type:String},autoSpreadSingle:{attribute:"auto-spread-single",type:Boolean},enableHighlighting:{attribute:"enable-highlighting",type:Boolean},filterProperties:{attribute:!1,type:Array},fuseConfig:{attribute:!1,type:Object},inlineMode:{attribute:"inline-mode",type:Boolean},matchAllWhenEmpty:{attribute:"match-all-when-empty",type:Boolean},showResults:{attribute:"show-result",type:Boolean},idProperty:{attribute:"id-property",type:String},titleProperty:{attribute:"title-property",type:String},subTitleProperty:{attribute:"sub-title-property",type:String},expandMultipleFilters:{attribute:"enable-multiple-filter",type:Boolean},expandResults:{attribute:"expand-result",type:Boolean},expandMultipleResults:{attribute:"expand-multiple-results",type:Boolean},externalFilter:{attribute:!1,type:Function},unstyled:{type:Boolean}}}apply(){Jo(this,Wi,Lw(le(this,de),le(this,Fn),this)),this.search()}async searchHandler(){await Rw(le(this,de),le(this,Fn),this),this.dispatchEvent(new CustomEvent("filter",{detail:{results:this.results,filters:this.filters},bubbles:!0,composed:!0})),this.inlineMode&&this.renderRoot.querySelector("eox-itemfilter-container").updateInline(),this.requestUpdate()}sortResults(e){return Tw(e,le(this,de))}resetFilters(){Fw(this)}firstUpdated(e){var r;let n={};tu.map(i=>{n={...n,[i]:this[i]}}),Jo(this,de,n),Jo(this,Fn,((r=this.items)==null?void 0:r.map((i,o)=>Object.assign({id:i[this.idProperty]||`item-${o}`},i)))||[]),this.apply()}updated(e){tu.map(r=>{if(e.has(r))return this.firstUpdated(),!0})}updateResult(e){this.selectedResult=e.detail,this.dispatchEvent(new CustomEvent("select",{detail:this.selectedResult,bubbles:!0,composed:!0})),this.requestUpdate()}render(){var e;return Q` - -
- ${Jt(this.filterProperties,()=>Q` - this.resetFilters()} - @filter=${()=>this.search()} - > -
- ${Jt(!this.inlineMode,()=>Q` -
Filters
- `)} -
    - ${fo(Object.values(this.filters),(r,n)=>Q`
  • - vh(i,le(this,de),this)} - data-details="${r.key}" - > - ${pt(this,qi,Zh).call(this,r,Yc(n,1))} - ${pt(this,qi,Yh).call(this,r,Yc(n,2))} - -
  • `)} -
- ${Jt(!this.inlineMode&&le(this,de).filterProperties&&!this.inlineMode&&le(this,de).filterProperties&&ra(this.filters),()=>Q` -
-
- `)} - ${Jt(((e=le(this,de))==null?void 0:e.showResults)&&this.results,()=>Q` - - `)} -
- `}}Wi=new WeakMap,Fn=new WeakMap,de=new WeakMap,qi=new WeakSet,Yh=function(t,e){return Iw(t,e,this)},Zh=function(t,e){return Dw(t,e,this)};customElements.define("eox-itemfilter",Bw);const Nw={slot:"filterstitle",style:{margin:"14px 8px"}},Uw={slot:"resultstitle",style:{margin:"14px 8px"}},$s="float:right; height:15px; padding:4px; margin-top:-4px; background-color:white;",Hw="float:right; height:15px; padding:4px; margin-top:-4px; background-color:#9bcaeb;",qw={__name:"EodashItemFilter",props:{enableCompare:{type:Boolean,default:!1},filtersTitle:{type:String,default:"Indicators"},resultsTitle:{type:String,default:""},titleProperty:{type:String,default:"title"},aggregateResults:{type:String,default:"themes"},enableHighlighting:{type:Boolean,default:!0},expandMultipleFilters:{type:Boolean,default:!0},expandMultipleResults:{type:Boolean,default:!0},filterProperties:{type:Array,default:()=>[{keys:["title","themes","description"],title:"Search",type:"text"},{key:"themes",title:"Theme Filter",type:"multiselect"}]}},setup(t){const e=t,r=async l=>{i.value?.shadowRoot?.querySelectorAll(".compareMapButton").forEach(u=>u.setAttribute("style",$s));const a=l.detail;a&&await o.loadSelectedSTAC(a.href)},n={titleProperty:e.titleProperty,filterProperties:e.filterProperties,aggregateResults:e.aggregateResults,enableHighlighting:e.enableHighlighting,expandMultipleFilters:e.expandMultipleFilters,expandMultipleResults:e.expandMultipleResults},i=Jh(null),o=Xh(),s=()=>{setTimeout(()=>{i.value?.shadowRoot.querySelectorAll("details>summary").forEach(l=>l.setAttribute("style","width: 100%")),i.value?.shadowRoot.querySelectorAll("details>div li").forEach(l=>{let a=document.createElement("button");a.className="compareMapButton",a.dataset.id=l.children[0].id,a.onclick=async d=>{i.value?.shadowRoot?.querySelectorAll(".compareMapButton").forEach(x=>{x.setAttribute("style",$s)});const m=d.currentTarget;m?.setAttribute("style",Hw);const b=i.value?.items.find(x=>x.id===m?.dataset.id);b&&await o.loadSelectedCompareSTAC(b.href)},a.setAttribute("style",$s);const u=document.createElementNS("http://www.w3.org/2000/svg","svg"),h=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("width","15"),u.setAttribute("height","15"),u.setAttribute("viewBox","0 0 24 24"),h.setAttribute("d","M19,3H14V5H19V18L14,12V21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M10,18H5L10,12M10,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H10V23H12V1H10V3Z"),u.appendChild(h),a.appendChild(u),l.append(a)})},100)};return Kh(()=>{const l=document.createElement("style");l.innerHTML=` - section { - margin: 0 !important; - } - section button#filter-reset { - padding: 0 8px; - top: 8px; - right: 8px; - } - `,i.value?.shadowRoot?.appendChild(l);const a=o.stac?.filter(u=>u.rel==="child");i.value.items=a,e.enableCompare&&s()}),(l,a)=>(Qh(),tf("eox-itemfilter",ef({class:"fill-height"},n,{ref_key:"eoxItemFilter",ref:i,style:{overflow:"auto"},onSelect:r}),[tl("h4",Nw,el(t.filtersTitle),1),tl("h4",Uw,el(t.resultsTitle),1)],16))}};export{qw as default}; diff --git a/pr-preview/pr-17/assets/EodashLayerControl-C8O3wm-N.js b/pr-preview/pr-17/assets/EodashLayerControl-C8O3wm-N.js deleted file mode 100644 index e1fbfe0..0000000 --- a/pr-preview/pr-17/assets/EodashLayerControl-C8O3wm-N.js +++ /dev/null @@ -1,1372 +0,0 @@ -import{r as Jm,$ as Ru,a6 as Hu,a3 as Iu,a5 as Qm,aK as Pu}from"./index-Dvu417lt.js";var Km=Object.defineProperty,Oc=o=>{throw TypeError(o)},Xm=(o,e,i)=>e in o?Km(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i,Pi=(o,e,i)=>Xm(o,typeof e!="symbol"?e+"":e,i),Zd=(o,e,i)=>e.has(o)||Oc("Cannot "+i),Di=(o,e,i)=>(Zd(o,e,"read from private field"),i?i.call(o):e.get(o)),bi=(o,e,i)=>e.has(o)?Oc("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,i),rl=(o,e,i,r)=>(Zd(o,e,"write to private field"),e.set(o,i),i),lr=(o,e,i)=>(Zd(o,e,"access private method"),i);/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Ua=globalThis,Gd=Ua.ShadowRoot&&(Ua.ShadyCSS===void 0||Ua.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bc=Symbol(),zu=new WeakMap;let ef=class{constructor(o,e,i){if(this._$cssResult$=!0,i!==Bc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o;const e=this.t;if(Gd&&o===void 0){const i=e!==void 0&&e.length===1;i&&(o=zu.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),i&&zu.set(e,o))}return o}toString(){return this.cssText}};const tf=o=>new ef(typeof o=="string"?o:o+"",void 0,Bc),rf=(o,e)=>{if(Gd)o.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of e){const r=document.createElement("style"),s=Ua.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,o.appendChild(r)}},Vu=Gd?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return tf(i)})(o):o;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{is:nf,defineProperty:sf,getOwnPropertyDescriptor:of,getOwnPropertyNames:af,getOwnPropertySymbols:lf,getPrototypeOf:df}=Object,eo=globalThis,Uu=eo.trustedTypes,hf=Uu?Uu.emptyScript:"",Wu=eo.reactiveElementPolyfillSupport,Wo=(o,e)=>o,xd={toAttribute(o,e){switch(e){case Boolean:o=o?hf:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let i=o;switch(e){case Boolean:i=o!==null;break;case Number:i=o===null?null:Number(o);break;case Object:case Array:try{i=JSON.parse(o)}catch{i=null}}return i}},Nc=(o,e)=>!nf(o,e),qu={attribute:!0,type:String,converter:xd,reflect:!1,hasChanged:Nc};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),eo.litPropertyMetadata??(eo.litPropertyMetadata=new WeakMap);class Zs extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=qu){if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(e,i),!i.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(e,r,i);s!==void 0&&sf(this.prototype,e,s)}}static getPropertyDescriptor(e,i,r){const{get:s,set:d}=of(this.prototype,e)??{get(){return this[i]},set(u){this[i]=u}};return{get(){return s?.call(this)},set(u){const p=s?.call(this);d.call(this,u),this.requestUpdate(e,p,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??qu}static _$Ei(){if(this.hasOwnProperty(Wo("elementProperties")))return;const e=df(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Wo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Wo("properties"))){const i=this.properties,r=[...af(i),...lf(i)];for(const s of r)this.createProperty(s,i[s])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[r,s]of i)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const s=this._$Eu(i,r);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const s of r)i.unshift(Vu(s))}else e!==void 0&&i.push(Vu(e));return i}static _$Eu(e,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(i=>i(this))}addController(e){var i;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var i;(i=this._$EO)==null||i.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return rf(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostConnected)==null?void 0:r.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostDisconnected)==null?void 0:r.call(i)})}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$EC(e,i){var r;const s=this.constructor.elementProperties.get(e),d=this.constructor._$Eu(e,s);if(d!==void 0&&s.reflect===!0){const u=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:xd).toAttribute(i,s.type);this._$Em=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$Em=null}}_$AK(e,i){var r;const s=this.constructor,d=s._$Eh.get(e);if(d!==void 0&&this._$Em!==d){const u=s.getPropertyOptions(d),p=typeof u.converter=="function"?{fromAttribute:u.converter}:((r=u.converter)==null?void 0:r.fromAttribute)!==void 0?u.converter:xd;this._$Em=d,this[d]=p.fromAttribute(i,u.type),this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??Nc)(this[e],i))return;this.P(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,i,r){this._$AL.has(e)||this._$AL.set(e,i),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[d,u]of this._$Ep)this[d]=u;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[d,u]of s)u.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],u)}let i=!1;const r=this._$AL;try{i=this.shouldUpdate(r),i?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(s=>{var d;return(d=s.hostUpdate)==null?void 0:d.call(s)}),this.update(r)):this._$EU()}catch(s){throw i=!1,this._$EU(),s}i&&this._$AE(r)}willUpdate(e){}_$AE(e){var i;(i=this._$EO)==null||i.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(i=>this._$EC(i,this[i]))),this._$EU()}updated(e){}firstUpdated(e){}}Zs.elementStyles=[],Zs.shadowRootOptions={mode:"open"},Zs[Wo("elementProperties")]=new Map,Zs[Wo("finalized")]=new Map,Wu?.({ReactiveElement:Zs}),(eo.reactiveElementVersions??(eo.reactiveElementVersions=[])).push("2.0.4");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const nl=globalThis,sl=nl.trustedTypes,Zu=sl?sl.createPolicy("lit-html",{createHTML:o=>o}):void 0,Yd="$lit$",kn=`lit$${Math.random().toFixed(9).slice(2)}$`,Jd="?"+kn,uf=`<${Jd}>`,_s=document,Xo=()=>_s.createComment(""),ea=o=>o===null||typeof o!="object"&&typeof o!="function",Rc=Array.isArray,Hc=o=>Rc(o)||typeof o?.[Symbol.iterator]=="function",nd=`[ -\f\r]`,No=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gu=/-->/g,Yu=/>/g,cs=RegExp(`>|${nd}(?:([^\\s"'>=/]+)(${nd}*=${nd}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Ju=/'/g,Qu=/"/g,Ic=/^(?:script|style|textarea|title)$/i,cf=o=>(e,...i)=>({_$litType$:o,strings:e,values:i}),Ht=cf(1),Ur=Symbol.for("lit-noChange"),si=Symbol.for("lit-nothing"),Ku=new WeakMap,ys=_s.createTreeWalker(_s,129);function Pc(o,e){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zu!==void 0?Zu.createHTML(e):e}const zc=(o,e)=>{const i=o.length-1,r=[];let s,d=e===2?"":"",u=No;for(let p=0;p"?(u=s??No,v=-1):w[1]===void 0?v=-2:(v=u.lastIndex-w[2].length,b=w[1],u=w[3]===void 0?cs:w[3]==='"'?Qu:Ju):u===Qu||u===Ju?u=cs:u===Gu||u===Yu?u=No:(u=cs,s=void 0);const D=u===cs&&o[p+1].startsWith("/>")?" ":"";d+=u===No?m+uf:v>=0?(r.push(b),m.slice(0,v)+Yd+m.slice(v)+kn+D):m+kn+(v===-2?p:D)}return[Pc(o,d+(o[i]||"")+(e===2?"":"")),r]};class ta{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let d=0,u=0;const p=e.length-1,m=this.parts,[b,w]=zc(e,i);if(this.el=ta.createElement(b,r),ys.currentNode=this.el.content,i===2){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(s=ys.nextNode())!==null&&m.length0){s.textContent=sl?sl.emptyScript:"";for(let D=0;D2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=si}_$AI(e,i=this,r,s){const d=this.strings;let u=!1;if(d===void 0)e=Cs(this,e,i,0),u=!ea(e)||e!==this._$AH&&e!==Ur,u&&(this._$AH=e);else{const p=e;let m,b;for(e=d[0],m=0;m{const r=i?.renderBefore??e;let s=r._$litPart$;if(s===void 0){const d=i?.renderBefore??null;r._$litPart$=s=new so(e.insertBefore(Xo(),d),d,void 0,i??{})}return s._$AI(o),s};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */let $r=class extends Zs{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o;const e=super.createRenderRoot();return(o=this.renderOptions).renderBefore??(o.renderBefore=e.firstChild),e}update(o){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=mf(e,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this._$Do)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this._$Do)==null||o.setConnected(!1)}render(){return Ur}};var ec;$r._$litElement$=!0,$r.finalized=!0,(ec=globalThis.litElementHydrateSupport)==null||ec.call(globalThis,{LitElement:$r});const tc=globalThis.litElementPolyfillSupport;tc?.({LitElement:$r});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function Wr(o,e,i){return o?e(o):i?.(o)}/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Wn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qd=o=>(...e)=>({_$litDirective$:o,values:e});class Kd{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,r){this._$Ct=e,this._$AM=i,this._$Ci=r}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}}/** - * @license - * Copyright 2020 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{I:ff}=pf,gf=o=>o.strings===void 0,ic=()=>document.createComment(""),Ro=(o,e,i)=>{var r;const s=o._$AA.parentNode,d=e===void 0?o._$AB:e._$AA;if(i===void 0){const u=s.insertBefore(ic(),d),p=s.insertBefore(ic(),d);i=new ff(u,p,o,o.options)}else{const u=i._$AB.nextSibling,p=i._$AM,m=p!==o;if(m){let b;(r=i._$AQ)==null||r.call(i,o),i._$AM=o,i._$AP!==void 0&&(b=o._$AU)!==p._$AU&&i._$AP(b)}if(u!==d||m){let b=i._$AA;for(;b!==u;){const w=b.nextSibling;s.insertBefore(b,d),b=w}}}return i},ps=(o,e,i=o)=>(o._$AI(e,i),o),bf={},Gc=(o,e=bf)=>o._$AH=e,vf=o=>o._$AH,sd=o=>{var e;(e=o._$AP)==null||e.call(o,!1,!0);let i=o._$AA;const r=o._$AB.nextSibling;for(;i!==r;){const s=i.nextSibling;i.remove(),i=s}};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const rc=(o,e,i)=>{const r=new Map;for(let s=e;s<=i;s++)r.set(o[s],s);return r},yf=Qd(class extends Kd{constructor(o){if(super(o),o.type!==Wn.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,e,i){let r;i===void 0?i=e:e!==void 0&&(r=e);const s=[],d=[];let u=0;for(const p of o)s[u]=r?r(p,u):u,d[u]=i(p,u),u++;return{values:d,keys:s}}render(o,e,i){return this.dt(o,e,i).values}update(o,[e,i,r]){const s=vf(o),{values:d,keys:u}=this.dt(e,i,r);if(!Array.isArray(s))return this.ut=u,d;const p=this.ut??(this.ut=[]),m=[];let b,w,v=0,j=s.length-1,D=0,B=d.length-1;for(;v<=j&&D<=B;)if(s[v]===null)v++;else if(s[j]===null)j--;else if(p[v]===u[D])m[D]=ps(s[v],d[D]),v++,D++;else if(p[j]===u[B])m[B]=ps(s[j],d[B]),j--,B--;else if(p[v]===u[B])m[B]=ps(s[v],d[B]),Ro(o,m[B+1],s[v]),v++,B--;else if(p[j]===u[D])m[D]=ps(s[j],d[D]),Ro(o,s[v],s[j]),j--,D++;else if(b===void 0&&(b=rc(u,D,B),w=rc(p,v,j)),b.has(p[v]))if(b.has(p[j])){const U=w.get(u[D]),q=U!==void 0?s[U]:null;if(q===null){const me=Ro(o,s[v]);ps(me,d[D]),m[D]=me}else m[D]=ps(q,d[D]),Ro(o,s[v],q),s[U]=null;D++}else sd(s[j]),j--;else sd(s[v]),v++;for(;D<=B;){const U=Ro(o,m[B+1]);ps(U,d[D]),m[D++]=U}for(;v<=j;){const U=s[v++];U!==null&&sd(U)}return this.ut=u,Gc(o,m),Ur}});/** - * wms-capabilities @0.6.0 - * @description WMS service Capabilities > JSON, based on openlayers - * @license BSD-2-Clause - * @preserve - */var Rt=o=>o!==void 0,Yc=(o,e,i)=>e in o?o[e]:o[e]=i;const ia={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};class xf{constructor(e){this._parser=new e}toDocument(e){return this._parser.parseFromString(e,"application/xml")}getAllTextContent(e,i){return vl(e,i).join("")}}function vl(o,e){return Jc(o,e,[]).join("")}function Jc(o,e,i){if(o.nodeType===ia.CDATA_SECTION||o.nodeType===ia.TEXT)e?i.push(String(o.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(o.nodeValue);else{var r;for(r=o.firstChild;r;r=r.nextSibling)Jc(r,e,i)}return i}function wf(o,e,i,r){for(var s=_f(e);s;s=Cf(s)){var d=s.namespaceURI||null,u=o[d];if(Rt(u)){var p=u[s.localName];Rt(p)&&p.call(r,s,i)}}}function _f(o){let e=o.firstElementChild||o.firstChild;for(;e&&e.nodeType!==ia.ELEMENT;)e=e.nextSibling;return e}function Cf(o){let e=o.nextElementSibling||o.nextSibling;for(;e&&e.nodeType!==ia.ELEMENT;)e=e.nextSibling;return e}function Xi(o,e,i){return kf(o,e,i)}function kf(o,e,i){var r=Rt(i)?i:{},s,d;for(s=0,d=o.length;s{typeof u=="object"&&!Array.isArray(u)&&u!==null?Object.keys(u).forEach(p=>{i.set(p,u[p])}):i.set(d,u)});const r=o.split("?")[0],s=i.toString();return`${r}?${s}`}/**! - * Sortable 1.15.2 - * @author RubaXa - * @author owenm - * @license MIT - */function nc(o,e){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),i.push.apply(i,r)}return i}function mn(o){for(var e=1;e=0)&&(i[s]=o[s]);return i}function bg(o,e){if(o==null)return{};var i=gg(o,e),r,s;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(o,r)&&(i[r]=o[r])}return i}var vg="1.15.2";function Dn(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var Sn=Dn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),la=Dn(/Edge/i),sc=Dn(/firefox/i),qo=Dn(/safari/i)&&!Dn(/chrome/i)&&!Dn(/android/i),rp=Dn(/iP(ad|od|hone)/i),np=Dn(/chrome/i)&&Dn(/android/i),sp={capture:!1,passive:!1};function Xt(o,e,i){o.addEventListener(e,i,!Sn&&sp)}function qt(o,e,i){o.removeEventListener(e,i,!Sn&&sp)}function al(o,e){if(e){if(e[0]===">"&&(e=e.substring(1)),o)try{if(o.matches)return o.matches(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e)}catch{return!1}return!1}}function yg(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function an(o,e,i,r){if(o){i=i||document;do{if(e!=null&&(e[0]===">"?o.parentNode===i&&al(o,e):al(o,e))||r&&o===i)return o;if(o===i)break}while(o=yg(o))}return null}var oc=/\s+/g;function Sr(o,e,i){if(o&&e)if(o.classList)o.classList[i?"add":"remove"](e);else{var r=(" "+o.className+" ").replace(oc," ").replace(" "+e+" "," ");o.className=(r+(i?" "+e:"")).replace(oc," ")}}function ft(o,e,i){var r=o&&o.style;if(r){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(i=o.currentStyle),e===void 0?i:i[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=i+(typeof i=="string"?"":"px")}}function Xs(o,e){var i="";if(typeof o=="string")i=o;else do{var r=ft(o,"transform");r&&r!=="none"&&(i=r+" "+i)}while(!e&&(o=o.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(i)}function op(o,e,i){if(o){var r=o.getElementsByTagName(e),s=0,d=r.length;if(i)for(;s=d,!u)return r;if(r===pn())break;r=Yn(r,!1)}return!1}function to(o,e,i,r){for(var s=0,d=0,u=o.children;d2&&arguments[2]!==void 0?arguments[2]:{},r=i.evt,s=bg(i,Ag);da.pluginEvent.bind(gt)(o,e,mn({dragEl:Ue,parentEl:Li,ghostEl:Dt,rootEl:Ci,nextEl:bs,lastDownEl:qa,cloneEl:Ei,cloneHidden:Zn,dragStarted:Io,putSortable:Ki,activeSortable:gt.active,originalEvent:r,oldIndex:Ks,oldDraggableIndex:Go,newIndex:Tr,newDraggableIndex:qn,hideGhostForTarget:mp,unhideGhostForTarget:fp,cloneNowHidden:function(){Zn=!0},cloneNowShown:function(){Zn=!1},dispatchSortableEvent:function(d){fr({sortable:e,name:d,originalEvent:r})}},s))};function fr(o){Dg(mn({putSortable:Ki,cloneEl:Ei,targetEl:Ue,rootEl:Ci,oldIndex:Ks,oldDraggableIndex:Go,newIndex:Tr,newDraggableIndex:qn},o))}var Ue,Li,Dt,Ci,bs,qa,Ei,Zn,Ks,Tr,Go,qn,Na,Ki,Gs=!1,ll=!1,dl=[],ms,sn,hd,ud,dc,hc,Io,qs,Yo,Jo=!1,Ra=!1,Za,ar,cd=[],wd=!1,hl=[],yl=typeof document<"u",Ha=rp,uc=la||Sn?"cssFloat":"float",Lg=yl&&!np&&!rp&&"draggable"in document.createElement("div"),up=function(){if(yl){if(Sn)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),cp=function(o,e){var i=ft(o),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),s=to(o,0,e),d=to(o,1,e),u=s&&ft(s),p=d&&ft(d),m=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+$i(s).width,b=p&&parseInt(p.marginLeft)+parseInt(p.marginRight)+$i(d).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&u.float&&u.float!=="none"){var w=u.float==="left"?"left":"right";return d&&(p.clear==="both"||p.clear===w)?"vertical":"horizontal"}return s&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||m>=r&&i[uc]==="none"||d&&i[uc]==="none"&&m+b>r)?"vertical":"horizontal"},Sg=function(o,e,i){var r=i?o.left:o.top,s=i?o.right:o.bottom,d=i?o.width:o.height,u=i?e.left:e.top,p=i?e.right:e.bottom,m=i?e.width:e.height;return r===u||s===p||r+d/2===u+m/2},Tg=function(o,e){var i;return dl.some(function(r){var s=r[Mr].options.emptyInsertThreshold;if(!(!s||th(r))){var d=$i(r),u=o>=d.left-s&&o<=d.right+s,p=e>=d.top-s&&e<=d.bottom+s;if(u&&p)return i=r}}),i},pp=function(o){function e(s,d){return function(u,p,m,b){var w=u.options.group.name&&p.options.group.name&&u.options.group.name===p.options.group.name;if(s==null&&(d||w))return!0;if(s==null||s===!1)return!1;if(d&&s==="clone")return s;if(typeof s=="function")return e(s(u,p,m,b),d)(u,p,m,b);var v=(d?u:p).options.group.name;return s===!0||typeof s=="string"&&s===v||s.join&&s.indexOf(v)>-1}}var i={},r=o.group;(!r||Wa(r)!="object")&&(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,o.group=i},mp=function(){!up&&Dt&&ft(Dt,"display","none")},fp=function(){!up&&Dt&&ft(Dt,"display","")};yl&&!np&&document.addEventListener("click",function(o){if(ll)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),ll=!1,!1},!0);var fs=function(o){if(Ue){o=o.touches?o.touches[0]:o;var e=Tg(o.clientX,o.clientY);if(e){var i={};for(var r in o)o.hasOwnProperty(r)&&(i[r]=o[r]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[Mr]._onDragOver(i)}}},Fg=function(o){Ue&&Ue.parentNode[Mr]._isOutsideThisEl(o.target)};function gt(o,e){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=e=Ln({},e),o[Mr]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return cp(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,u){d.setData("Text",u.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:gt.supportPointer!==!1&&"PointerEvent"in window&&!qo,emptyInsertThreshold:5};da.initializePlugins(this,o,i);for(var r in i)!(r in e)&&(e[r]=i[r]);pp(e);for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this));this.nativeDraggable=e.forceFallback?!1:Lg,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Xt(o,"pointerdown",this._onTapStart):(Xt(o,"mousedown",this._onTapStart),Xt(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(Xt(o,"dragover",this),Xt(o,"dragenter",this)),dl.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Ln(this,Cg())}gt.prototype={constructor:gt,_isOutsideThisEl:function(o){!this.el.contains(o)&&o!==this.el&&(qs=null)},_getDirection:function(o,e){return typeof this.options.direction=="function"?this.options.direction.call(this,o,e,Ue):this.options.direction},_onTapStart:function(o){if(o.cancelable){var e=this,i=this.el,r=this.options,s=r.preventOnFilter,d=o.type,u=o.touches&&o.touches[0]||o.pointerType&&o.pointerType==="touch"&&o,p=(u||o).target,m=o.target.shadowRoot&&(o.path&&o.path[0]||o.composedPath&&o.composedPath()[0])||p,b=r.filter;if(Hg(i),!Ue&&!(/mousedown|pointerdown/.test(d)&&o.button!==0||r.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&qo&&p&&p.tagName.toUpperCase()==="SELECT")&&(p=an(p,r.draggable,i,!1),!(p&&p.animated)&&qa!==p)){if(Ks=Vr(p),Go=Vr(p,r.draggable),typeof b=="function"){if(b.call(this,o,p,this)){fr({sortable:e,rootEl:m,name:"filter",targetEl:p,toEl:i,fromEl:i}),wr("filter",e,{evt:o}),s&&o.cancelable&&o.preventDefault();return}}else if(b&&(b=b.split(",").some(function(w){if(w=an(m,w.trim(),i,!1),w)return fr({sortable:e,rootEl:w,name:"filter",targetEl:p,fromEl:i,toEl:i}),wr("filter",e,{evt:o}),!0}),b)){s&&o.cancelable&&o.preventDefault();return}r.handle&&!an(m,r.handle,i,!1)||this._prepareDragStart(o,u,p)}}},_prepareDragStart:function(o,e,i){var r=this,s=r.el,d=r.options,u=s.ownerDocument,p;if(i&&!Ue&&i.parentNode===s){var m=$i(i);if(Ci=s,Ue=i,Li=Ue.parentNode,bs=Ue.nextSibling,qa=i,Na=d.group,gt.dragged=Ue,ms={target:Ue,clientX:(e||o).clientX,clientY:(e||o).clientY},dc=ms.clientX-m.left,hc=ms.clientY-m.top,this._lastX=(e||o).clientX,this._lastY=(e||o).clientY,Ue.style["will-change"]="all",p=function(){if(wr("delayEnded",r,{evt:o}),gt.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!sc&&r.nativeDraggable&&(Ue.draggable=!0),r._triggerDragStart(o,e),fr({sortable:r,name:"choose",originalEvent:o}),Sr(Ue,d.chosenClass,!0)},d.ignore.split(",").forEach(function(b){op(Ue,b.trim(),pd)}),Xt(u,"dragover",fs),Xt(u,"mousemove",fs),Xt(u,"touchmove",fs),Xt(u,"mouseup",r._onDrop),Xt(u,"touchend",r._onDrop),Xt(u,"touchcancel",r._onDrop),sc&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ue.draggable=!0),wr("delayStart",this,{evt:o}),d.delay&&(!d.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(la||Sn))){if(gt.eventCanceled){this._onDrop();return}Xt(u,"mouseup",r._disableDelayedDrag),Xt(u,"touchend",r._disableDelayedDrag),Xt(u,"touchcancel",r._disableDelayedDrag),Xt(u,"mousemove",r._delayedDragTouchMoveHandler),Xt(u,"touchmove",r._delayedDragTouchMoveHandler),d.supportPointer&&Xt(u,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(p,d.delay)}else p()}},_delayedDragTouchMoveHandler:function(o){var e=o.touches?o.touches[0]:o;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ue&&pd(Ue),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var o=this.el.ownerDocument;qt(o,"mouseup",this._disableDelayedDrag),qt(o,"touchend",this._disableDelayedDrag),qt(o,"touchcancel",this._disableDelayedDrag),qt(o,"mousemove",this._delayedDragTouchMoveHandler),qt(o,"touchmove",this._delayedDragTouchMoveHandler),qt(o,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(o,e){e=e||o.pointerType=="touch"&&o,!this.nativeDraggable||e?this.options.supportPointer?Xt(document,"pointermove",this._onTouchMove):e?Xt(document,"touchmove",this._onTouchMove):Xt(document,"mousemove",this._onTouchMove):(Xt(Ue,"dragend",this),Xt(Ci,"dragstart",this._onDragStart));try{document.selection?Ga(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(o,e){if(Gs=!1,Ci&&Ue){wr("dragStarted",this,{evt:e}),this.nativeDraggable&&Xt(document,"dragover",Fg);var i=this.options;!o&&Sr(Ue,i.dragClass,!1),Sr(Ue,i.ghostClass,!0),gt.active=this,o&&this._appendGhost(),fr({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(sn){this._lastX=sn.clientX,this._lastY=sn.clientY,mp();for(var o=document.elementFromPoint(sn.clientX,sn.clientY),e=o;o&&o.shadowRoot&&(o=o.shadowRoot.elementFromPoint(sn.clientX,sn.clientY),o!==e);)e=o;if(Ue.parentNode[Mr]._isOutsideThisEl(o),e)do{if(e[Mr]){var i=void 0;if(i=e[Mr]._onDragOver({clientX:sn.clientX,clientY:sn.clientY,target:o,rootEl:e}),i&&!this.options.dragoverBubble)break}o=e}while(e=e.parentNode);fp()}},_onTouchMove:function(o){if(ms){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,s=o.touches?o.touches[0]:o,d=Dt&&Xs(Dt,!0),u=Dt&&d&&d.a,p=Dt&&d&&d.d,m=Ha&&ar&&lc(ar),b=(s.clientX-ms.clientX+r.x)/(u||1)+(m?m[0]-cd[0]:0)/(u||1),w=(s.clientY-ms.clientY+r.y)/(p||1)+(m?m[1]-cd[1]:0)/(p||1);if(!gt.active&&!Gs){if(i&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))=0&&(fr({rootEl:Li,name:"add",toEl:Li,fromEl:Ci,originalEvent:o}),fr({sortable:this,name:"remove",toEl:Li,originalEvent:o}),fr({rootEl:Li,name:"sort",toEl:Li,fromEl:Ci,originalEvent:o}),fr({sortable:this,name:"sort",toEl:Li,originalEvent:o})),Ki&&Ki.save()):Tr!==Ks&&Tr>=0&&(fr({sortable:this,name:"update",toEl:Li,originalEvent:o}),fr({sortable:this,name:"sort",toEl:Li,originalEvent:o})),gt.active&&((Tr==null||Tr===-1)&&(Tr=Ks,qn=Go),fr({sortable:this,name:"end",toEl:Li,originalEvent:o}),this.save()))),this._nulling()},_nulling:function(){wr("nulling",this),Ci=Ue=Li=Dt=bs=Ei=qa=Zn=ms=sn=Io=Tr=qn=Ks=Go=qs=Yo=Ki=Na=gt.dragged=gt.ghost=gt.clone=gt.active=null,hl.forEach(function(o){o.checked=!0}),hl.length=hd=ud=0},handleEvent:function(o){switch(o.type){case"drop":case"dragend":this._onDrop(o);break;case"dragenter":case"dragover":Ue&&(this._onDragOver(o),Mg(o));break;case"selectstart":o.preventDefault();break}},toArray:function(){for(var o=[],e,i=this.el.children,r=0,s=i.length,d=this.options;rs.right+d||o.clientY>r.bottom&&o.clientX>r.left:o.clientY>s.bottom+d||o.clientX>r.right&&o.clientY>r.top}function Bg(o,e,i,r,s,d,u,p){var m=r?o.clientY:o.clientX,b=r?i.height:i.width,w=r?i.top:i.left,v=r?i.bottom:i.right,j=!1;if(!u){if(p&&Zaw+b*d/2:mv-Za)return-Yo}else if(m>w+b*(1-s)/2&&mv-b*d/2)?m>w+b/2?1:-1:0}function Ng(o){return Vr(Ue){const e=o.item;let i=Array.prototype.slice.call(e.parentNode.childNodes);return i=i.filter(r=>r.nodeType!=Node.ELEMENT_NODE||!r.classList.contains("sortable-fallback")),i},zg=(o,e,i,r,s,d)=>{const u=o.item.parentNode;for(const B of i)u.appendChild(B);if(o.oldIndex==o.newIndex)return;const p=r.getArray(),m=o.item.querySelector("eox-layercontrol-layer").layer.get(s),b=p.find(B=>B.get(s)===m),w=d.dataset.layer,v=p.find(B=>B.get(s)==w);let j,D;for(j=0;jD?r.insertAt(D,b):r.insertAt(D+1,b);break}e.requestUpdate()};function Vg(o,e,i,r){let s=[],d=null;o._sortable=gt.create(o,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:u=>s=Pg(u),onMove:u=>{d=u.related},onEnd:u=>zg(u,r,s,e,i,d)})}function Ug(o,e,i,r){const s=o.getArray();let d=!1;s.forEach(u=>{const p=u.ol_uid;u.get(e)||(u.set(e,p),d=!0),u.get(i)||(u.set(i,`layer ${p}`),d=!0),d&&r.requestUpdate()})}function nh(o,e,i){let r=[];const s=(d,u,p)=>{r=[...r,...d.filter(b=>b.get(u)===p)];const m=d.filter(b=>b.getLayers);return m.length>0&&m.forEach(b=>s(b.getLayers().getArray(),u,p)),r};return s(o,e,i),r}function Wg(o,e,i){if(!o||!e)return!1;if(!bp(o,i))return!0;const r=o.get("minZoom"),s=o.get("maxZoom"),d=e.getView().getZoom();return d>r&&dd.freehand_!==void 0).map(d=>d.source_))==null?void 0:i.ol_uid)!=null&&s.includes(o.getSource?(r=o.getSource())==null?void 0:r.ol_uid:void 0)?"draw":o.declutter_!==void 0?"vector":"raster"}function vp(o,e){var i;let r={};for(const s in o){const d=o[s].type;if(d&&d!=="object")r[s]=d==="number"?Number(e[s]):e[s];else if(typeof o[s]=="object"&&(i=o[s])!=null&&i.properties){const u=vp(o[s].properties,e);Object.keys(u).length>0&&(r[s]=u)}}return r}function Zg(o,e){var i,r,s,d,u;if(!e)return null;let p={},m="updateStyleVariables"in o?(i=o.style_)==null?void 0:i.variables:(r=e.style)==null?void 0:r.variables;if((e.type==="style"||e.style)&&m)p=m;else if((d=(s=o.getSource())==null?void 0:s.getTileUrlFunction)!=null&&d.call(s)){const w=new URL(o.getSource().getTileUrlFunction()([0,0,0]));p=Object.fromEntries(w.searchParams.entries())}else return null;const b=vp(((u=e.schema)==null?void 0:u.properties)||e.schema,p);return Object.keys(b).length?b:null}const Gg=(o,e)=>o?.filter(i=>["remove","sort"].filter(r=>e!=null&&e.get("layerControlDisable")?r!=="sort":!0).includes(i)),Yg=(o,e)=>o?.filter(i=>{let r=!0;return["remove","sort"].includes(i)&&(r=!1),i==="info"&&(r=e.get("description")),i==="config"&&(r=e.get("layerConfig")),r}),Jg=(o,e)=>Ht` - -`,Qg=o=>Ht` - -`,Kg=o=>Ht` - - ${o?"═":si} - -`,yp=o=>{var e;const i=["layerControlHide","layerControlOptional"];return(e=o?.getArray())==null?void 0:e.filter(r=>i.every(s=>!r.get(s)))};/** - * @license - * Copyright 2020 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const xp=Qd(class extends Kd{constructor(o){if(super(o),o.type!==Wn.PROPERTY&&o.type!==Wn.ATTRIBUTE&&o.type!==Wn.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!gf(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[e]){if(e===Ur||e===si)return e;const i=o.element,r=o.name;if(o.type===Wn.PROPERTY){if(e===i[r])return Ur}else if(o.type===Wn.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(r))return Ur}else if(o.type===Wn.ATTRIBUTE&&i.getAttribute(r)===e+"")return Ur;return Gc(o),e}});/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */class Ed extends Kd{constructor(e){if(super(e),this.it=si,e.type!==Wn.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===si||e==null)return this._t=void 0,this.it=e;if(e===Ur)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const i=[e];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Ed.directiveName="unsafeHTML",Ed.resultType=1;const Xg=Qd(Ed);/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function*Ja(o,e){if(o!==void 0){let i=0;for(const r of o)yield e(r,i++)}}const e0=(o,e,i)=>{let r=e;return i.layer.getSource().getTileUrlFunction()&&(r||(r=i.layer.getSource().getTileUrlFunction()),i.layer.getSource().setTileUrlFunction((...s)=>mg(r(...s),o)),i.layer.getSource().setKey(new Date)),r};function t0(o,e,i){const r="updateStyleVariables"in e,s="setStyle"in e,d=r?e.style_:i.style;let u=d?.variables;if(u){const p=wp(o);if(d.variables={...u,...p},r)e.updateStyleVariables(p);else if(s){const m=i0(d);e.setStyle(m)}}}const wp=o=>{const e={};for(const i in o)if(typeof o[i]=="object"&&o[i]!==null){const r=wp(o[i]);for(const s in r)e[s]=r?.[s]}else e[i]=o?.[i];return e};function i0(o){let e=o;if("variables"in o){let i=JSON.stringify(o);const{variables:r}=o;for(const s in r)typeof r[s]=="number"?i=i.replaceAll(`["var","${s}"]`,r[s]):i=i.replaceAll(`["var","${s}"]`,`"${r[s]}"`);e=JSON.parse(i)}return e}var Pa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r0(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var n0="Expected a function",pc=NaN,s0="[object Symbol]",o0=/^\s+|\s+$/g,a0=/^[-+]0x[0-9a-f]+$/i,l0=/^0b[01]+$/i,d0=/^0o[0-7]+$/i,h0=parseInt,u0=typeof Pa=="object"&&Pa&&Pa.Object===Object&&Pa,c0=typeof self=="object"&&self&&self.Object===Object&&self,p0=u0||c0||Function("return this")(),m0=Object.prototype,f0=m0.toString,g0=Math.max,b0=Math.min,bd=function(){return p0.Date.now()};function v0(o,e,i){var r,s,d,u,p,m,b=0,w=!1,v=!1,j=!0;if(typeof o!="function")throw new TypeError(n0);e=mc(e)||0,Dd(i)&&(w=!!i.leading,v="maxWait"in i,d=v?g0(mc(i.maxWait)||0,e):d,j="trailing"in i?!!i.trailing:j);function D(re){var _e=r,ye=s;return r=s=void 0,b=re,u=o.apply(ye,_e),u}function B(re){return b=re,p=setTimeout(me,e),w?D(re):u}function U(re){var _e=re-m,ye=re-b,ue=e-_e;return v?b0(ue,d-ye):ue}function q(re){var _e=re-m,ye=re-b;return m===void 0||_e>=e||_e<0||v&&ye>=d}function me(){var re=bd();if(q(re))return $e(re);p=setTimeout(me,U(re))}function $e(re){return p=void 0,j&&r?D(re):(r=s=void 0,u)}function Fe(){p!==void 0&&clearTimeout(p),b=0,r=m=s=p=void 0}function ie(){return p===void 0?u:$e(bd())}function J(){var re=bd(),_e=q(re);if(r=arguments,s=this,m=re,_e){if(p===void 0)return B(m);if(v)return p=setTimeout(me,e),D(m)}return p===void 0&&(p=setTimeout(me,e)),u}return J.cancel=Fe,J.flush=ie,J}function Dd(o){var e=typeof o;return!!o&&(e=="object"||e=="function")}function y0(o){return!!o&&typeof o=="object"}function x0(o){return typeof o=="symbol"||y0(o)&&f0.call(o)==s0}function mc(o){if(typeof o=="number")return o;if(x0(o))return pc;if(Dd(o)){var e=typeof o.valueOf=="function"?o.valueOf():o;o=Dd(e)?e+"":e}if(typeof o!="string")return o===0?o:+o;o=o.replace(o0,"");var i=l0.test(o);return i||d0.test(o)?h0(o.slice(2),i?2:8):a0.test(o)?pc:+o}var w0=v0;const _p=r0(w0);var Vo,Qa,Ka,Ad,Cp,Ld,Sd;let kp=class extends $r{constructor(){super(),bi(this,Ad),bi(this,Vo,{}),bi(this,Qa,null),bi(this,Ka),bi(this,Ld,""),bi(this,Sd,""),this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.debouncedDataChange=_p(lr(this,Ad,Cp),1e3,{leading:!0})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){rl(this,Qa,Zg(this.layer,this.layerConfig)),customElements.get("eox-jsonform")||console.error("Please import @eox/jsonform in order to use layerconfig");const e={disable_edit_json:!0,disable_collapse:!0,disable_properties:!0};return Ht` - - ${Wr(this.layerConfig,()=>Ht` - - - `)} - `}};Vo=new WeakMap,Qa=new WeakMap,Ka=new WeakMap,Ad=new WeakSet,Cp=function(o){rl(this,Vo,o.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?t0(Di(this,Vo),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):(rl(this,Ka,e0(Di(this,Vo),Di(this,Ka),this)),this.requestUpdate())},Ld=new WeakMap,Sd=new WeakMap,Pi(kp,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}});customElements.define("eox-layercontrol-layerconfig",kp);var Xa,Td,Fd;let Ep=class extends $r{constructor(){super(),bi(this,Xa,e=>this.selectedTab===e&&"highlighted"),bi(this,Td,` - .tabbed figure { - margin: 0; - } - .tabbed nav { - display: flex; - justify-content: space-between; - } - .tabbed nav div { - display: flex; - } - .tabbed .tab { - display: none; - } - .tabbed .tab.highlighted { - display: block; - } - .tabbed label.highlighted { - background: lightgrey; - } - `),bi(this,Fd,` - .tabbed { - font-size: small; - } - .tabbed label.highlighted { - background: #00417011; - pointer-events: none; - } - nav div label, - nav div span { - width: 20px; - height: 20px; - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - } - figure { - background: #00417011; - border-top: 1px solid #0041701a; - } - `),this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.tabs,i=this.actions,r=i.length+e.length>1;return Ht` - -
- - ${Wr(r,()=>Ht` - - `)} -
- - ${Ja(e,(s,d)=>Ht` -
- - ${s} -
- `)} -
-
- `}};Xa=new WeakMap,Td=new WeakMap,Fd=new WeakMap,Pi(Ep,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}});customElements.define("eox-layercontrol-tabs",Ep);const _0=` -button, -.button { - /* TODO: why does this only work here and not from :root? */ - --primary-color: #004170; - --primary-color-hover: #004170CC; - --error-color: #FF5252; - - display: inline-flex; - position: relative; - align-items: center; - color: #fff; - border-width: 0; - outline: none; - border-radius: 4px; - padding: 16px; - height: 36px; - cursor: pointer; - font-family: inherit; - font-size: 0.875rem; - text-transform: uppercase; - letter-spacing: 1.25px; - font-weight: 500; - box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); - transition-property: box-shadow, transform, opacity, background; - transition-duration: 0.28s; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); -} - -button:hover:not([disabled]):not(.icon), -.button:hover:not([disabled]):not(.icon) { - box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); - background: var(--primary-color-hover); -} - -button, button:active, -.button, .button:active { - background: var(--primary-color); -} - -button[disabled], -.button[disabled] { - opacity: 0.5; - cursor: not-allowed; -} - -button.block, -.button.block { - display: block; -} - -button.outline, -.button.outline { - background: transparent; - box-shadow: none; - color: var(--primary-color); - outline: 1px solid var(--primary-color); -} - -button.outline:hover, -.button.outline:hover { - background: transparent; -} - -button.icon, -.button.icon { - background: transparent; - border: none; - box-shadow: none; - padding: 0; - border-radius: 50%; - width: 24px; - height: 24px; - text-indent: -9999px; -} - -button.icon-text, -.button.icon-text { - text-indent: 26px; -} - -button.icon-text.block, -.button.icon-text.block { - text-indent: 20px; -} - -button.icon:before, button.icon-text:before, -.button.icon:before, .button.icon-text:before { - position: absolute; - text-indent: 0; - line-height: initial; -} - -button.icon-text.block:before, -.button.icon-text.block:before { - text-indent: -54px; -} - -button.icon:before, -.button.icon:before { - width: 24px; - height: 24px; - margin-right: 0; -} - -button.icon-text:before, -.button.icon-text:before { - width: 18px; - height: 18px; -} - -button.small, -.button.small { - height: 28px; - padding: 12.4px; - font-size: .75rem; -} - -button.smallest.icon, -button.smallest.icon::before { - height: 16px; - width: 16px; - padding: 0px; -} -`,C0=` -input[type=radio] { - appearance: none; - -webkit-appearance: none; - margin: 0; - cursor: pointer; - display: flex; - flex-direction: row; - align-items: center; - width: 24px; - height: 24px; -} - -label span { - font-size: small; -} - -input[type=radio]:after { - display: block; - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); - width: 20px; - height: 20px; - margin-right: 4px; -} -input[type=radio]:checked:after { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E"); - -} -`,Dp=` -input[type=checkbox] { - appearance: none; - -webkit-appearance: none; - margin: 0; - cursor: pointer; - display: flex; - flex-direction: row; - align-items: center; - width: 24px; - height: 24px; -} -input[type=checkbox]:after { - display: block; - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); - width: 20px; - height: 20px; - margin-right: 4px; -} -input[type=checkbox]:checked:after { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E"); - -} -`,k0=` -input[type="range"] { - -webkit-appearance: none; - width: 90%; - margin-left: 5%; - height: 6px; - border-radius: 5px; - background: #d7dcdf; - outline: none; - padding: 0; -} -input[type="range"]::-webkit-slider-thumb { - appearance: none; - width: 15px; - height: 15px; - border-radius: 50%; - background: #2c3e50; - cursor: pointer; - transition: background 0.15s ease-in-out; -} -.range-slider { - margin: 60px 0 0 0; -} -.range-slider { - width: 100%; -} -input[type="range"]::-webkit-slider-thumb:hover { - background: #00416F; -} -input[type="range"]:active::-webkit-slider-thumb { - background: #00416F; -} -input[type="range"]::-moz-range-thumb { - width: 15px; - height: 15px; - border: 0; - border-radius: 50%; - background: #2c3e50; - cursor: pointer; - transition: background 0.15s ease-in-out; -} -input[type="range"]::-moz-range-thumb:hover { - background: #00416F; -} -input[type="range"]:active::-moz-range-thumb { - background: #00416F; -} -input[type="range"]:focus::-webkit-slider-thumb { - box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00; -} -.range-slider__value { - display: inline-block; - position: relative; - width: 60px; - color: #fff; - line-height: 20px; - text-align: center; - border-radius: 3px; - background: #2c3e50; - padding: 5px 10px; - margin-left: 8px; -} -.range-slider__value:after { - position: absolute; - top: 8px; - left: -7px; - width: 0; - height: 0; - border-top: 7px solid transparent; - border-right: 7px solid #2c3e50; - border-bottom: 7px solid transparent; - content: ''; -} - -input::-moz-focus-inner, input::-moz-focus-outer { - border: 0; -} -`;var Md,$d;let Ap=class extends $r{constructor(){super(),Pi(this,"_removeButton",()=>Qg(this)),Pi(this,"_sortButton",()=>Kg(this.unstyled)),Pi(this,"_button",e=>Jg(e,this.unstyled)),bi(this,Md,""),bi(this,$d,` - ${_0} - ${C0} - ${Dp} - ${k0} - .drag-handle { - cursor: n-resize; - } - .single-action-container, - details.tools { - position: relative; - } - eox-layercontrol-layer details summary::before { - content: ""; - } - details.tools[open] { - /*border-top: 1px solid #0041703a;*/ - } - .single-action { - position: relative; - } - details.tools summary .icon { - pointer-events: none; - } - .single-action, - details.tools summary { - position: absolute; - right: 0; - top: -24px; - display: flex; - border-radius: 4px; - cursor: pointer; - } - .single-action .icon::before, - details.tools summary .icon::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Edots-vertical%3C/title%3E%3Cpath d='M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z' /%3E%3C/svg%3E"); - } - .single-action, - details.tools summary, - eox-layercontrol-tabs button.icon { - transition: opacity .2s; - } - .single-action, - details.tools summary { - opacity: .5; - } - eox-layercontrol-tabs button.icon { - opacity: .7; - } - .single-action:hover, - details.tools summary:hover, - eox-layercontrol-tabs button.icon:hover { - opacity: 1; - } - .tools-placeholder, - .single-action .icon, - .single-action .icon::before, - details.tools summary .icon, - details.tools summary .icon::before { - height: 16px; - width: 16px; - } - eox-layercontrol-tabs button.icon, - eox-layercontrol-tabs .button.icon { - display: flex; - justify-content: center; - } - eox-layercontrol-tabs button.icon::before, - eox-layercontrol-tabs .button.icon::before { - width: 16px; - height: 16px; - } - details.tools summary .info-icon, - button.icon[slot=info-icon]::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Einformation-outline%3C/title%3E%3Cpath d='M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z' /%3E%3C/svg%3E"); - } - details.tools summary .opacity-icon, - button.icon[slot=opacity-icon]::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eopacity%3C/title%3E%3Cpath d='M17.66,8L12,2.35L6.34,8C4.78,9.56 4,11.64 4,13.64C4,15.64 4.78,17.75 6.34,19.31C7.9,20.87 9.95,21.66 12,21.66C14.05,21.66 16.1,20.87 17.66,19.31C19.22,17.75 20,15.64 20,13.64C20,11.64 19.22,9.56 17.66,8M6,14C6,12 6.62,10.73 7.76,9.6L12,5.27L16.24,9.65C17.38,10.77 18,12 18,14H6Z' /%3E%3C/svg%3E"); - } - details.tools summary .config-icon, - button.icon[slot=config-icon]::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Etune%3C/title%3E%3Cpath d='M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z' /%3E%3C/svg%3E"); - } - .single-action .remove-icon::before, - [slot=remove-icon] button.icon::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff0000' viewBox='0 0 24 24'%3E%3Ctitle%3Edelete-outline%3C/title%3E%3Cpath d='M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z' /%3E%3C/svg%3E"); - } - .single-action .sort-icon::before, - [slot=sort-icon] .button.icon::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag-horizontal-variant%3C/title%3E%3Cpath d='M21 11H3V9H21V11M21 13H3V15H21V13Z' /%3E%3C/svg%3E"); - } - [slot=info-content], - [slot=opacity-content] { - padding: 12px 6px; - } - `),this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var e;const i=Gg(this.tools,this.layer),r=Yg(this.tools,this.layer),s=this[`_${i?.[0]}Button`]?this[`_${i?.[0]}Button`]():si,d=((e=this.tools)==null?void 0:e.length)===1?`${this.tools[0]}-icon`:"",u=i?.length,p=r?.length;return Ht` - - ${Wr(u+p>0,()=>Ht` - ${Wr(u===1&&p===0,()=>Ht` -
-
${s}
-
- `,()=>{var m;return Ht` -
- - - - - - ${Ja(r,b=>this._button(b))} - -
- ${Xg(this.layer.get("description"))} -
-
- - this.layer.setOpacity(parseFloat(b.target.value))} - /> -
-
- - ${Wr(this.layer.get("layerConfig"),()=>Ht` - this.requestUpdate()} - > - `)} -
-
${this._removeButton()}
-
${this._sortButton()}
-
-
- `})} - `)} - `}};Md=new WeakMap,$d=new WeakMap,Pi(Ap,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}});customElements.define("eox-layercontrol-layer-tools",Ap);const E0=o=>{const e=()=>{const i=Wg(o.layer,o.map,o.showLayerZoomState);let r=!1;!i&&o.currLayerVisibilityBasedOnZoom?(o.currLayerVisibilityBasedOnZoom=!1,r=!0):i&&!o.currLayerVisibilityBasedOnZoom&&(o.currLayerVisibilityBasedOnZoom=!0,r=!0),r&&(o.requestUpdate(),o.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};bp(o.layer,o.showLayerZoomState)&&(e(),o.map.getView().on("change:resolution",()=>e()))},D0=(o,e)=>{const i=e.layer;i.setVisible(o.target.checked),o.target.checked&&i.get("layerControlExclusive")&&e.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(r=>{var s;r.layer!==i&&(s=r.layer)!=null&&s.get("layerControlExclusive")&&(r.layer.setVisible(!1),r.requestUpdate())}),e.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:i})),e.requestUpdate()};var Ys,el,Lp,jd,Od;class Sp extends $r{constructor(){super(),bi(this,Ys),Pi(this,"currLayerVisibilityBasedOnZoom",!0),bi(this,jd,""),bi(this,Od,` - ${Dp} - eox-layercontrol-layer { - width: 100%; - } - .layer.zoom-state-invisible { - background: #d2e2ee; - opacity: 0.3; - } - .layer { - width: 100%; - align-items: center; - justify-content: space-between; - padding: 4px 0; - } - label, span { - display: flex; - align-items: center; - cursor: pointer; - } - [data-type] .title::before { - width: 20px; - min-width: 20px; - height: 20px; - margin-right: 6px; - } - [data-type=group] .title::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-outline%3C/title%3E%3Cpath d='M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z' /%3E%3C/svg%3E"); - } - [data-type=group] > eox-layercontrol-layer-group > details[open] > summary > eox-layercontrol-layer > .layer > label > .title::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-open-outline%3C/title%3E%3Cpath d='M6.1,10L4,18V8H21A2,2 0 0,0 19,6H12L10,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H19C19.9,20 20.7,19.4 20.9,18.5L23.2,10H6.1M19,18H6L7.6,12H20.6L19,18Z' /%3E%3C/svg%3E"); - } - [data-type=raster] .title::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckerboard%3C/title%3E%3Cpath d='M2 2V22H22V2H2M20 12H16V16H20V20H16V16H12V20H8V16H4V12H8V8H4V4H8V8H12V4H16V8H20V12M16 8V12H12V8H16M12 12V16H8V12H12Z' /%3E%3C/svg%3E"); - } - [data-type=vector] .title::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Eshape-outline%3C/title%3E%3Cpath d='M11,13.5V21.5H3V13.5H11M9,15.5H5V19.5H9V15.5M12,2L17.5,11H6.5L12,2M12,5.86L10.08,9H13.92L12,5.86M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13M17.5,15A2.5,2.5 0 0,0 15,17.5A2.5,2.5 0 0,0 17.5,20A2.5,2.5 0 0,0 20,17.5A2.5,2.5 0 0,0 17.5,15Z' /%3E%3C/svg%3E"); - } - [data-type=draw] .title::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E"); - } - `),this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){E0(this)}render(){var e;const i=this.layer.getVisible(),r=i?"visible":"",s=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",d=lr(this,Ys,el).call(this,"layerControlDisable")?"disabled":"",u=lr(this,Ys,el).call(this,"layerControlExclusive")?"radio":"checkbox",p=((e=this.tools)==null?void 0:e.length)>0;return Ht` - - ${Wr(this.layer,()=>Ht` - -
- -
- - - - `)} - `}}Ys=new WeakSet,el=function(o){var e;return(e=this.layer)==null?void 0:e.get(o)},Lp=function(o){D0(o,this)},jd=new WeakMap,Od=new WeakMap,Pi(Sp,"properties",{layer:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}});customElements.define("eox-layercontrol-layer",Sp);var Bd,Nd;class Tp extends $r{constructor(){super(),bi(this,Bd,""),bi(this,Nd,` - details summary { - cursor: pointer; - display: flex; - } - details summary { list-style-type: none; } /* Firefox */ - details summary::-webkit-details-marker { display: none; } /* Chrome */ - details summary::marker { display: none; } - details summary::before { - display: block; - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E"); - font-size: 13px; - width: 24px; - height: 24px; - margin: 4px 0; - transform-origin: center; - transition: transform 0.1s ease-in-out; - } - details[open] > summary:before { - transform: rotate(90deg); - } - details[data-children-length="0"] summary::before { - display: none; - } - `),this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var e,i;const r=!!((e=this.group)!=null&&e.get("layerControlExpand")),s=(i=yp(this.group.getLayers()))==null?void 0:i.length;return Ht` - - ${Wr(this.group,()=>Ht` - -
- - - this.requestUpdate()} - > - - - - this.requestUpdate()} - > -
- `)} - `}}Bd=new WeakMap,Nd=new WeakMap,Pi(Tp,"properties",{group:{attribute:!1},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}});customElements.define("eox-layercontrol-layer-group",Tp);const A0=o=>{const{layers:e,idProperty:i,titleProperty:r,renderRoot:s}=o,d=_p(()=>{o.requestUpdate(),o.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))},50),u=()=>d();if(e&&(e.hasListener("change:length")&&e?.un("change:length",u),e.on("change:length",u),e)){const p=s.querySelector("ul");Ug(e,i,r,o),Vg(p,e,i,o)}};var Rd,Hd;class Fp extends $r{constructor(){super(),bi(this,Rd,""),bi(this,Hd,` - ul { - padding: 0; - margin: 0; - } - ul ul { - padding-left: 48px; - } - li { - list-style: none; - } - li { - border-bottom: 1px solid #0041703a; - } - li:first-child { - border-top: 1px solid #0041703a; - } - li:last-child { - border: none; - } - li.sortable-chosen { - background: #eeea; - } - li.sortable-drag { - opacity: 0; - } - li.sortable-ghost { - } - `),this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1}firstUpdated(){A0(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.layers?yp(this.layers).reverse():[];return Ht` - -
    - ${Wr(this.layers,()=>Ht` - ${yf(e,i=>i,i=>Ht` -
  • - ${i.getLayers?Ht` - this.requestUpdate()} - > - - `:Ht` - this.requestUpdate()} - > - `} -
  • - `)} - `)} -
- `}}Rd=new WeakMap,Hd=new WeakMap,Pi(Fp,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}});customElements.define("eox-layercontrol-layer-list",Fp);const L0=o=>{const e=o.querySelector("select[name=optional]"),i=e?e.value:null,r=nh(o.layers.getArray(),"layerControlOptional",!0).find(s=>(s.get(o.idProperty)||s.ol_uid)===i);r?.set("layerControlOptional",!1),r?.setVisible(!0),o.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),o.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(s=>s.requestUpdate()),o.requestUpdate()};var Id,Mp;class $p extends $r{constructor(){super(),bi(this,Id),this.idProperty="id",this.layers=null,this.titleProperty="title",this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=nh(this.layers.getArray(),"layerControlOptional",!0);return Ht` - - - - - - - - - `}}Id=new WeakSet,Mp=function(){L0(this)},Pi($p,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},titleProperty:{attribute:"title-property",type:String},unstyled:{type:Boolean},noShadow:{type:Boolean}});customElements.define("eox-layercontrol-optional-list",$p);const S0=(o,e)=>{e.jsonInput=o.target.value,e.requestUpdate()},fc=o=>{const e=JSON.parse(`{"data":${ip(o.jsonInput)}}`);Array.isArray(e.data)?e.data.forEach(i=>{o.eoxMap.addOrUpdateLayer(i)}):o.eoxMap.addOrUpdateLayer(e.data),o.jsonInput=null,o.requestUpdate()},T0=(o,e)=>{e.urlInput=o.target.value,e.requestUpdate()};async function F0(o){const e=o.urlInput;if(o.wmsCapabilities=null,o.searchLoad=!0,o.requestUpdate(),!e)return!1;if(eh(e)==="XYZ")return{Name:e};try{const i=await ug(e);o.wmsCapabilities=i}catch{}finally{o.searchLoad=!1,o.requestUpdate()}return!1}const M0=(o,e)=>{const{Name:i}=o,r=eh(e.urlInput)||"XYZ",s={type:"Tile",properties:{id:i,title:i},source:{type:r,url:e.urlInput,params:{LAYERS:i}}};e.jsonInput=JSON.stringify(s)},$0=(o,e)=>{e.open=o||null,e.urlInput=null,e.jsonInput=null,e.wmsCapabilities=null,e.requestUpdate()};var on,jp,Op,Pd,Bp,Np,tl,zd,Vd;class Rp extends $r{constructor(){super(),bi(this,on),Pi(this,"urlInput",null),Pi(this,"jsonInput",null),Pi(this,"open",null),Pi(this,"searchLoad",!1),Pi(this,"wmsCapabilities",null),bi(this,zd,` - .eox-add-layer-main .open { - position: relative; - } - .eox-add-layer-main .close { - display: none; - } - `),bi(this,Vd,` - .eox-add { - background: #f0f2f5; - border-top: 1px solid #0041701a; - padding: 0.5rem; - font-size: small; - } - .eox-add-layer-col, .eox-add-layer-tab { - display: flex; - width: 100%; - } - .eox-add-layer-main .close { - display: none; - } - .eox-add-layer-main .open { - position: relative; - } - button.icon.add-icon { - flex-grow: 1; - } - .eox-add-layer-tab li { - border: 0 !important; - font-size: smaller; - padding: 0.2rem 0.7rem; - background: #f0f2f5; - border-radius: 4px 4px 0px 0px; - font-size: 0.8rem; - font-weight: 500; - cursor: pointer; - } - .eox-add-layer-tab li.active { - background: #204270; - color: white; - font-weight: 700; - } - .relative { - position: relative - } - .eox-add-layer-col.justify-end { - justify-content: end; - } - .eox-add ul { - max-height: 120px; - overflow: scroll; - } - .eox-add ul li { - display: flex; - align-items: center; - justify-content: space-between; - padding: 0.1rem 0.2rem; - } - button.icon { - justify-content: end; - transition: opacity .2s; - opacity: .7; - } - button.icon:hover { - opacity: 1; - } - button.icon.add-layer-icon::before { - width: 16px; - min-width: 16px; - height: 16px; - } - button.icon.add-icon::before { - width: 18px; - min-width: 18px; - height: 18px; - } - .add-icon.icon::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath xmlns='http://www.w3.org/2000/svg' d='M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z' fill='%23004270'/%3E%3C/svg%3E"); - } - .add-layer-icon::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eplus-thick%3C/title%3E%3Cpath fill='%23004270' d='M20 14H14V20H10V14H4V10H10V4H14V10H20V14Z' /%3E%3C/svg%3E"); - } - .json-add-layer { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eplus-thick%3C/title%3E%3Cpath fill='white' d='M20 14H14V20H10V14H4V10H10V4H14V10H20V14Z' /%3E%3C/svg%3E"); - } - .search-icon::after { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Emagnify%3C/title%3E%3Cpath d='M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z' fill='white' /%3E%3C/svg%3E"); - } - .search-icon::after, .json-add-layer::before { - width: 14px; - min-width: 14px; - height: 14px; - display:flex - margin-right: 6px; - color: white; - } - .search-icon, .json-add-layer { - padding: 4px 6px; - height: 28px; - border-radius: 0px 4px 4px 0px; - box-shadow: none; - } - .json-add-layer { - position: absolute; - bottom: 16px; - right: 14px; - border-radius: 4px; - height: 24px; - padding: 4px; - } - input.add-url, textarea.add-layer-input { - box-sizing: border-box !important; - width: 100%; - height: 28px; - padding: 5px 7px !important; - border: 1px solid #0004 !important; - font-size: smaller; - border-radius: 4px 0px 0px 4px; - } - textarea.add-layer-input { - height: 90px; - resize: none; - border-radius: 4px; - } - .divider { - margin: 1rem 0px; - height: 1px; - border-top: 1.5px solid #00417059; - text-align: center; - position: relative; - } - .divider span { - position: relative; - top: -.6em; - padding: 0px 0.5rem; - background: #f0f2f5; - color: #00417059; - font-weight: bold; - display: inline-block; - } - `),this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.open?"open":"close",i=this.open==="url",r=this.open==="json",s=!cg(this.urlInput)||this.searchLoad?!0:si;return Ht` - -
-
- -
    -
  • lr(this,on,tl).call(this,"url")} - class="${i?"active":""}" - > - URL -
  • -
  • lr(this,on,tl).call(this,"json")} - class="${r?"active":""}" - > - JSON -
  • -
- - - -
-
- ${i?Ht` - -
- - - - -
- - - ${this.wmsCapabilities?Ht`
    - ${this.wmsCapabilities.Capability.Layer.Layer.map(d=>{const u=d.Name;return Ht` -
  • - ${u} - - -
  • - `})} -
`:si} - `:Ht` - - - - - - `} -
-
- `}}on=new WeakSet,jp=function(o){T0(o,this)},Op=async function(){const o=await F0(this);o&&lr(this,on,Pd).call(this,o)},Pd=function(o){M0(o,this),fc(this)},Bp=function(){fc(this)},Np=function(o){S0(o,this)},tl=function(o){$0(o,this)},zd=new WeakMap,Vd=new WeakMap,Pi(Rp,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}});customElements.define("eox-layercontrol-add-layers",Rp);const j0=(o,e)=>{if(e.requestUpdate(),o.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const i=e.renderRoot.querySelector("eox-layercontrol-optional-list");i?.requestUpdate()}},O0=o=>{let e;return typeof o=="string"?e=document.querySelector(o):e=o,e},B0=o=>{const e=O0(o.for);return e&&e.map!==o.map&&(o.map=e.map),e};var Uo,Ud,Hp,Wd;class Ip extends $r{constructor(){super(),bi(this,Ud),bi(this,Uo),bi(this,Wd,"* { font-family: Roboto, sans-serif; }"),this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride=""}firstUpdated(){rl(this,Uo,B0(this))}render(){var e,i,r;const s=(e=this.map)==null?void 0:e.getLayers().getArray(),d=s&&((i=nh(s,"layerControlOptional",!0))==null?void 0:i.length)>0;return Ht` - - - - ${Wr(this.addExternalLayers&&((r=Di(this,Uo))==null?void 0:r.addOrUpdateLayer),()=>Ht` - - `)} - - - ${Wr(this.map,()=>Ht` - - `)} - - - ${Wr(d,()=>Ht` - this.requestUpdate()} - > - `)} - `}}Uo=new WeakMap,Ud=new WeakSet,Hp=function(o){j0(o,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:o.detail}))},Wd=new WeakMap,Pi(Ip,"properties",{for:{type:String},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},addExternalLayers:{attribute:!1},unstyled:{type:Boolean},styleOverride:{type:String}});customElements.define("eox-layercontrol",Ip);var N0=Object.defineProperty,Pp=o=>{throw TypeError(o)},R0=(o,e,i)=>e in o?N0(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i,H0=(o,e,i)=>R0(o,e+"",i),sh=(o,e,i)=>e.has(o)||Pp("Cannot "+i),cn=(o,e,i)=>(sh(o,e,"read from private field"),i?i.call(o):e.get(o)),gc=(o,e,i)=>e.has(o)?Pp("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,i),I0=(o,e,i,r)=>(sh(o,e,"write to private field"),e.set(o,i),i),zp=(o,e,i)=>(sh(o,e,"access private method"),i);/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const il=globalThis,oh=il.ShadowRoot&&(il.ShadyCSS===void 0||il.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vp=Symbol(),bc=new WeakMap;let P0=class{constructor(o,e,i){if(this._$cssResult$=!0,i!==Vp)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o;const e=this.t;if(oh&&o===void 0){const i=e!==void 0&&e.length===1;i&&(o=bc.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),i&&bc.set(e,o))}return o}toString(){return this.cssText}};const z0=o=>new P0(typeof o=="string"?o:o+"",void 0,Vp),V0=(o,e)=>{if(oh)o.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of e){const r=document.createElement("style"),s=il.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,o.appendChild(r)}},vc=oh?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return z0(i)})(o):o;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{is:U0,defineProperty:W0,getOwnPropertyDescriptor:q0,getOwnPropertyNames:Z0,getOwnPropertySymbols:G0,getPrototypeOf:Y0}=Object,io=globalThis,yc=io.trustedTypes,J0=yc?yc.emptyScript:"",xc=io.reactiveElementPolyfillSupport,Qo=(o,e)=>o,qd={toAttribute(o,e){switch(e){case Boolean:o=o?J0:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let i=o;switch(e){case Boolean:i=o!==null;break;case Number:i=o===null?null:Number(o);break;case Object:case Array:try{i=JSON.parse(o)}catch{i=null}}return i}},Up=(o,e)=>!U0(o,e),wc={attribute:!0,type:String,converter:qd,reflect:!1,hasChanged:Up};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),io.litPropertyMetadata??(io.litPropertyMetadata=new WeakMap);class Js extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=wc){if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(e,i),!i.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(e,r,i);s!==void 0&&W0(this.prototype,e,s)}}static getPropertyDescriptor(e,i,r){const{get:s,set:d}=q0(this.prototype,e)??{get(){return this[i]},set(u){this[i]=u}};return{get(){return s?.call(this)},set(u){const p=s?.call(this);d.call(this,u),this.requestUpdate(e,p,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??wc}static _$Ei(){if(this.hasOwnProperty(Qo("elementProperties")))return;const e=Y0(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Qo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qo("properties"))){const i=this.properties,r=[...Z0(i),...G0(i)];for(const s of r)this.createProperty(s,i[s])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[r,s]of i)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const s=this._$Eu(i,r);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const s of r)i.unshift(vc(s))}else e!==void 0&&i.push(vc(e));return i}static _$Eu(e,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(i=>i(this))}addController(e){var i;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var i;(i=this._$EO)==null||i.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return V0(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostConnected)==null?void 0:r.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostDisconnected)==null?void 0:r.call(i)})}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$EC(e,i){var r;const s=this.constructor.elementProperties.get(e),d=this.constructor._$Eu(e,s);if(d!==void 0&&s.reflect===!0){const u=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:qd).toAttribute(i,s.type);this._$Em=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$Em=null}}_$AK(e,i){var r;const s=this.constructor,d=s._$Eh.get(e);if(d!==void 0&&this._$Em!==d){const u=s.getPropertyOptions(d),p=typeof u.converter=="function"?{fromAttribute:u.converter}:((r=u.converter)==null?void 0:r.fromAttribute)!==void 0?u.converter:qd;this._$Em=d,this[d]=p.fromAttribute(i,u.type),this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??Up)(this[e],i))return;this.P(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,i,r){this._$AL.has(e)||this._$AL.set(e,i),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[d,u]of this._$Ep)this[d]=u;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[d,u]of s)u.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],u)}let i=!1;const r=this._$AL;try{i=this.shouldUpdate(r),i?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(s=>{var d;return(d=s.hostUpdate)==null?void 0:d.call(s)}),this.update(r)):this._$EU()}catch(s){throw i=!1,this._$EU(),s}i&&this._$AE(r)}willUpdate(e){}_$AE(e){var i;(i=this._$EO)==null||i.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(i=>this._$EC(i,this[i]))),this._$EU()}updated(e){}firstUpdated(e){}}Js.elementStyles=[],Js.shadowRootOptions={mode:"open"},Js[Qo("elementProperties")]=new Map,Js[Qo("finalized")]=new Map,xc?.({ReactiveElement:Js}),(io.reactiveElementVersions??(io.reactiveElementVersions=[])).push("2.0.4");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const cl=globalThis,pl=cl.trustedTypes,_c=pl?pl.createPolicy("lit-html",{createHTML:o=>o}):void 0,Wp="$lit$",Gn=`lit$${(Math.random()+"").slice(9)}$`,qp="?"+Gn,Q0=`<${qp}>`,ks=document,ra=()=>ks.createComment(""),na=o=>o===null||typeof o!="object"&&typeof o!="function",Zp=Array.isArray,K0=o=>Zp(o)||typeof o?.[Symbol.iterator]=="function",vd=`[ -\f\r]`,Ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cc=/-->/g,kc=/>/g,gs=RegExp(`>|${vd}(?:([^\\s"'>=/]+)(${vd}*=${vd}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Ec=/'/g,Dc=/"/g,Gp=/^(?:script|style|textarea|title)$/i,X0=o=>(e,...i)=>({_$litType$:o,strings:e,values:i}),eb=X0(1),ro=Symbol.for("lit-noChange"),Ii=Symbol.for("lit-nothing"),Ac=new WeakMap,xs=ks.createTreeWalker(ks,129);function Yp(o,e){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return _c!==void 0?_c.createHTML(e):e}const tb=(o,e)=>{const i=o.length-1,r=[];let s,d=e===2?"":"",u=Ho;for(let p=0;p"?(u=s??Ho,v=-1):w[1]===void 0?v=-2:(v=u.lastIndex-w[2].length,b=w[1],u=w[3]===void 0?gs:w[3]==='"'?Dc:Ec):u===Dc||u===Ec?u=gs:u===Cc||u===kc?u=Ho:(u=gs,s=void 0);const D=u===gs&&o[p+1].startsWith("/>")?" ":"";d+=u===Ho?m+Q0:v>=0?(r.push(b),m.slice(0,v)+Wp+m.slice(v)+Gn+D):m+Gn+(v===-2?p:D)}return[Yp(o,d+(o[i]||"")+(e===2?"":"")),r]};class sa{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let d=0,u=0;const p=e.length-1,m=this.parts,[b,w]=tb(e,i);if(this.el=sa.createElement(b,r),xs.currentNode=this.el.content,i===2){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(s=xs.nextNode())!==null&&m.length0){s.textContent=pl?pl.emptyScript:"";for(let D=0;D2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ii}_$AI(e,i=this,r,s){const d=this.strings;let u=!1;if(d===void 0)e=no(this,e,i,0),u=!na(e)||e!==this._$AH&&e!==ro,u&&(this._$AH=e);else{const p=e;let m,b;for(e=d[0],m=0;m{const r=i?.renderBefore??e;let s=r._$litPart$;if(s===void 0){const d=i?.renderBefore??null;r._$litPart$=s=new ha(e.insertBefore(ra(),d),d,void 0,i??{})}return s._$AI(o),s};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */class Ko extends Js{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const i=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=i.firstChild),i}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ab(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ro}}var Sc;Ko._$litElement$=!0,Ko.finalized=!0,(Sc=globalThis.litElementHydrateSupport)==null||Sc.call(globalThis,{LitElement:Ko});const Tc=globalThis.litElementPolyfillSupport;Tc?.({LitElement:Ko});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");const lb=o=>typeof o.type!="string"&&"multiple",db=o=>typeof o.type=="string"&&"string",hb=o=>!o.type&&o.properties&&"object",ub=o=>typeof o.type=="string"&&["string","number","integer","boolean","null","array","object"].includes(o.type)&&o.type,cb=o=>o.type==="string"&&o.format==="signature"&&"signature",pb=o=>{if(o.type==="boolean")return o.format==="checkbox"||o.options&&o.options.checkbox?"checkbox":o.format==="select2"?"select2":o.format==="selectize"?"selectize":o.format==="choices"?"choices":"select"},mb=o=>o.type==="any"&&"multiple",fb=o=>o.type==="string"&&o.media&&o.media.binaryEncoding==="base64"&&"base64",gb=o=>o.type==="string"&&o.format==="url"&&window.FileReader&&o.options&&o.options.upload===Object(o.options.upload)&&"upload",bb=o=>o.type==="array"&&o.format==="table"&&"table",vb=o=>{if(o.enumSource)return o.format==="radio"?"radio":o.format==="select2"?"select2":o.format==="selectize"?"selectize":o.format==="choices"?"choices":"select"},yb=o=>{if(o.enum){if(o.type==="array"||o.type==="object")return"enum";if(o.type==="number"||o.type==="integer"||o.type==="string")return o.format==="radio"?"radio":o.format==="select2"?"select2":o.format==="selectize"?"selectize":o.format==="choices"?"choices":"select"}},xb=(o,e)=>{if(o.items&&(o.items=e.expandSchema(o.items)),o.type==="array"&&o.items&&!Array.isArray(o.items)&&["string","number","integer"].includes(o.items.type)){if(o.format==="choices")return"arrayChoices";if(o.uniqueItems){if(o.format==="selectize")return"arraySelectize";if(o.format==="select2")return"arraySelect2";if(o.items.enum)return"multiselect"}}},wb=o=>(o.oneOf||o.anyOf)&&"multiple",_b=o=>o.if&&"multiple",Cb=o=>["string","integer"].includes(o.type)&&["date","time","datetime-local"].includes(o.format)&&"datetime",kb=o=>["string","integer"].includes(o.type)&&["starrating","rating"].includes(o.format)&&"starrating",Eb=o=>{if(o.links){for(let e=0;e{if((o.type==="integer"||o.type==="number")&&o.format==="stepper")return"stepper"},Ab=o=>o.format==="button"&&"button",Lb=o=>o.format==="info"&&"info",Sb=o=>o.type==="string"&&o.format==="uuid"&&"uuid",Tb=o=>o.type==="string"&&o.format==="autocomplete"&&"autocomplete",Fb=o=>o.type==="string"&&o.format==="jodit"&&"jodit",Mb=o=>o.type==="string"&&o.format==="markdown"&&"simplemde",$b=o=>o.type==="string"&&["xhtml","bbcode"].includes(o.format)&&"sceditor",jb=["actionscript","batchfile","c","c++","cpp","coffee","csharp","css","dart","django","ejs","erlang","golang","groovy","handlebars","haskell","haxe","html","ini","jade","java","javascript","json","less","lisp","lua","makefile","matlab","mysql","objectivec","pascal","perl","pgsql","php","python","prql","r","ruby","rust","sass","scala","scss","sh","smarty","sql","sqlserver","stylus","svg","typescript","twig","vbscript","xml","yaml","zig"],Ob=o=>o.type==="string"&&jb.includes(o.format)&&"ace",Bb=o=>o.type==="string"&&["ip","ipv4","ipv6","hostname"].includes(o.format)&&"ip",Nb=o=>o.type==="string"&&o.format==="color"&&"colorpicker",Rb=[Nb,Bb,Ob,$b,Mb,Fb,Tb,Sb,Lb,Ab,Db,Eb,kb,Cb,wb,_b,xb,yb,vb,bb,gb,fb,mb,pb,cb,ub,hb,lb,db];function Jp(o){return!(o===null||typeof o!="object"||o.nodeType||o===o.window||o.constructor&&!jr(o.constructor.prototype,"isPrototypeOf"))}function Qp(o){return Jp(o)?ct({},o):Array.isArray(o)?o.map(Qp):o}function ct(o,...e){return e.forEach(i=>{i&&Object.keys(i).forEach(r=>{i[r]&&Jp(i[r])?(jr(o,r)||(o[r]={}),ct(o[r],i[r])):Array.isArray(i[r])?o[r]=Qp(i[r]):o[r]=i[r]})}),o}function ln(o,e){const i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),o.dispatchEvent(i)}function Kp(o){return o&&(o.toString()==="[object ShadowRoot]"?o:Kp(o.parentNode))}function jr(o,e){return o&&Object.prototype.hasOwnProperty.call(o,e)}const Hb=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/;function Ib(o){if(typeof o>"u"||o===null)return!1;const e=o.match(Hb),i=parseFloat(o);return e!==null&&!isNaN(i)&&isFinite(i)}const Pb=/^\s*(-|\+)?(\d+)\s*$/;function zb(o){if(typeof o>"u"||o===null)return!1;const e=o.match(Pb),i=parseInt(o);return e!==null&&!isNaN(i)&&isFinite(i)}function oa(){let o=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(o+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const i=(o+Math.random()*16)%16|0;return o=Math.floor(o/16),(e==="x"?i:i&3|8).toString(16)})}function yd(o){return o&&typeof o=="object"&&!Array.isArray(o)}function ml(o,...e){if(!e.length)return o;const i=e.shift();if(yd(o)&&yd(i))for(const r in i)yd(i[r])?(o[r]||Object.assign(o,{[r]:{}}),ml(o[r],i[r])):Object.assign(o,{[r]:i[r]});return ml(o,...e)}function Vb(o,e){return Object.keys(e).forEach(function(i){i in o&&(o[i]=e[i])}),o}class dr{constructor(e,i){this.defaults=i,this.jsoneditor=e.jsoneditor,this.theme=this.jsoneditor.theme,this.template_engine=this.jsoneditor.template,this.iconlib=this.jsoneditor.iconlib,this.translate=this.jsoneditor.translate||this.defaults.translate,this.translateProperty=this.jsoneditor.translateProperty||this.defaults.translateProperty,this.original_schema=e.schema,this.schema=this.jsoneditor.expandSchema(this.original_schema),this.active=!0,this.isUiOnly=!1,this.options=ct({},this.options||{},this.schema.options||{},e.schema.options||{},e),this.enforceConst=this.options.enforce_const??this.jsoneditor.options.enforce_const,this.formname=this.jsoneditor.options.form_name_root||"root",!e.path&&!this.schema.id&&(this.schema.id=this.formname),this.path=e.path||this.formname,this.formname=e.formname||this.path.replace(/\.([^.]+)/g,"[$1]"),this.parent=e.parent,this.key=this.parent!==void 0?this.path.split(".").slice(this.parent.path.split(".").length).join("."):this.path,this.link_watchers=[],this.watchLoop=!1,e.container&&this.setContainer(e.container),this.registerDependencies()}onChildEditorChange(e,i){this.onChange(!0,!1,i)}notify(){this.path&&this.jsoneditor.notifyWatchers(this.path)}change(e){this.parent?this.parent.onChildEditorChange(this,e):this.jsoneditor&&this.jsoneditor.onChange(e)}onChange(e,i,r){this.notify(),i||this.watch_listener&&this.watch_listener(),e&&this.change(r)}register(){if(this.jsoneditor.registerEditor(this),this.input&&!this.label){const e=this.getTitle()||this.formname;this.input.setAttribute("aria-label",e)}this.onChange()}unregister(){this.jsoneditor&&this.jsoneditor.unregisterEditor(this)}getNumColumns(){return 12}isActive(){return this.active}activate(){this.active=!0,this.optInCheckbox.checked=!0,this.enable(),this.change()}deactivate(){this.isRequired()||(this.active=!1,this.optInCheckbox.checked=!1,this.disable(),this.change())}registerDependencies(){this.dependenciesFulfilled=!0;const e=this.options.dependencies;e&&Object.keys(e).forEach(i=>{let r;i.startsWith(this.jsoneditor.root.path)?r=i:(r=this.path.split("."),r[r.length-1]=i,r=r.join(".")),this.jsoneditor.watch(r,()=>{this.evaluateDependencies()})})}evaluateDependencies(){const e=this.container||this.control;if(!e||this.jsoneditor===null)return;const i=this.options.dependencies;if(!i)return;const r=this.dependenciesFulfilled;this.dependenciesFulfilled=!0,Object.keys(i).forEach(d=>{let u;d.startsWith(this.jsoneditor.root.path)?u=d:(u=this.path.split("."),u[u.length-1]=d,u=u.join("."));const p=i[d];this.checkDependency(u,p)}),this.dependenciesFulfilled!==r&&this.notify();let s=this.dependenciesFulfilled?"block":"none";this.options.hidden&&(s="none"),e.tagName==="TD"?Object.keys(e.childNodes).forEach(d=>e.childNodes[d].style.display=s):e.style.display=s}checkDependency(e,i){if(this.path===e||this.jsoneditor===null)return;const r=this.jsoneditor.getEditor(e),s=r?r.getValue():void 0;!r||!r.dependenciesFulfilled||!s?this.dependenciesFulfilled=!1:Array.isArray(i)?this.dependenciesFulfilled=i.some(d=>{if(JSON.stringify(s)===JSON.stringify(d))return!0}):typeof i=="object"?typeof s!="object"?this.dependenciesFulfilled=i===s:Object.keys(i).some(d=>{if(!jr(i,d))return!1;if(!jr(s,d)||i[d]!==s[d])return this.dependenciesFulfilled=!1,!0}):typeof i=="string"||typeof i=="number"?this.dependenciesFulfilled=this.dependenciesFulfilled&&s===i:typeof i=="boolean"&&(i?this.dependenciesFulfilled=this.dependenciesFulfilled&&(s||s.length>0):this.dependenciesFulfilled=this.dependenciesFulfilled&&(!s||s.length===0))}setContainer(e){this.container=e,this.setContainerAttributes(),this.schema.id&&this.container.setAttribute("data-schemaid",this.schema.id),this.schema.type&&typeof this.schema.type=="string"&&this.container.setAttribute("data-schematype",this.schema.type),this.container.setAttribute("data-schemapath",this.path)}setOptInCheckbox(e){this.optInLabel=this.theme.getHiddenLabel(this.formname+" opt-in"),this.optInLabel.setAttribute("for",this.formname+"-opt-in"),this.optInCheckbox=document.createElement("input"),this.optInCheckbox.setAttribute("type","checkbox"),this.optInCheckbox.setAttribute("style","margin: 0 10px 0 0;"),this.optInCheckbox.setAttribute("id",this.formname+"-opt-in"),this.optInCheckbox.classList.add("json-editor-opt-in"),this.optInCheckbox.addEventListener("click",()=>{this.isActive()?this.deactivate():this.activate()});const i=this.jsoneditor.options.show_opt_in,r=typeof this.parent.options.show_opt_in<"u",s=r&&this.parent.options.show_opt_in===!0,d=r&&this.parent.options.show_opt_in===!1;(s||!d&&i||!r&&i)&&this.parent&&this.parent.schema.type==="object"&&!this.isRequired()&&this.header&&(this.header.appendChild(this.optInLabel),this.header.appendChild(this.optInCheckbox),this.header.insertBefore(this.optInCheckbox,this.header.firstChild))}preBuild(){}build(){}postBuild(){this.setupWatchListeners(),this.addLinks(),this.register(),this.setValue(this.getDefault(),!0),this.updateHeaderText(),this.onWatchedFieldChange(),this.options.titleHidden&&(this.theme.visuallyHidden(this.label),this.theme.visuallyHidden(this.header)),this.enforceConst&&this.schema.const&&this.disable()}setupWatchListeners(){if(this.watched={},this.schema.vars&&(this.schema.watch=this.schema.vars),this.watched_values={},this.watch_listener=()=>{this.refreshWatchedFieldValues()&&this.onWatchedFieldChange()},jr(this.schema,"watch")){let e,i,r,s,d;const u=this.container.getAttribute("data-schemapath");Object.keys(this.schema.watch).forEach(p=>{if(e=this.schema.watch[p],Array.isArray(e)){if(e.length<2)return;i=[e[0]].concat(e[1].split("."))}else i=e.split("."),this.theme.closest(this.container,`[data-schemaid="${i[0]}"]`)||i.unshift("#");if(r=i.shift(),r==="#"&&(r=this.jsoneditor.schema.id||this.jsoneditor.root.formname),s=this.theme.closest(this.container,`[data-schemaid="${r}"]`),!s)throw new Error(`Could not find ancestor node with id ${r}`);d=`${s.getAttribute("data-schemapath")}.${i.join(".")}`,u.startsWith(d)&&(this.watchLoop=!0),this.jsoneditor.watch(d,this.watch_listener),this.watched[p]=d})}this.schema.headerTemplate&&(this.header_template=this.jsoneditor.compileTemplate(this.schema.headerTemplate,this.template_engine))}addLinks(){if(!this.no_link_holder&&(this.link_holder=this.theme.getLinksHolder(),typeof this.description<"u"?this.description.parentNode.insertBefore(this.link_holder,this.description):this.container.appendChild(this.link_holder),this.schema.links))for(let e=0;e{const w=d(b),v=u(b);r.setAttribute("href",w),r.setAttribute("title",v||w),m.setAttribute("src",w)})}else if(["audio","video"].includes(s)){i=this.theme.getBlockLinkHolder(),r=this.theme.getBlockLink(),r.setAttribute("target","_blank");const m=document.createElement(s);m.setAttribute("controls","controls"),this.theme.createMediaLink(i,r,m),this.link_watchers.push(b=>{const w=d(b),v=u(b);r.setAttribute("href",w),r.textContent=v||w,m.setAttribute("src",w)})}else r=i=this.theme.getBlockLink(),i.setAttribute("target","_blank"),i.textContent=e.rel,i.style.display="none",this.link_watchers.push(m=>{const b=d(m),w=u(m);b&&(i.style.display=""),i.setAttribute("href",b),i.textContent=w||b});return p&&r&&(p===!0?r.setAttribute("download",""):this.link_watchers.push(m=>{r.setAttribute("download",p(m))})),e.class&&e.class.split(" ").forEach(m=>{r.classList.add(m)}),i}refreshWatchedFieldValues(){if(!this.watched_values)return;const e={};let i=!1;return this.watched&&Object.keys(this.watched).forEach(r=>{const s=this.jsoneditor.getEditor(this.watched[r]),d=s?s.getValue():null;this.watched_values[r]!==d&&(i=!0),e[r]=d}),e.self=this.getValue(),this.watched_values.self!==e.self&&(i=!0),this.watched_values=e,i}getWatchedFieldValues(){return this.watched_values}updateHeaderText(){if(this.header){const e=this.getHeaderText();if(this.header.children.length){for(let i=0;i{const s=this.editors[r];if(s.schema&&s.schema.enum&&s.schema.options&&s.schema.options.enum_titles){const d=s.schema.enum.indexOf(s.value),u=s.options.enum_titles[d];e.properties[r]={enumTitle:u}}}));const i=this.header_template(e);i!==this.header_text&&(this.header_text=i,this.updateHeaderText(),this.notify())}if(this.link_watchers.length){e=this.getWatchedFieldValues();for(let i=0;ithis.jsoneditor.unwatch(e,this.watch_listener)),this.watched=null,this.watched_values=null,this.watch_listener=null,this.header_text=null,this.header_template=null,this.value=null,this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.container=null,this.jsoneditor=null,this.schema=null,this.path=null,this.key=null,this.parent=null}isDefaultRequired(){return this.isRequired()||!!this.jsoneditor.options.use_default_values}getDefault(){if(this.enforceConst&&this.schema.const)return this.schema.const;if(typeof this.schema.default<"u")return this.schema.default;if(typeof this.schema.enum<"u")return this.schema.enum[0];let e=this.schema.type||this.schema.oneOf;if(e&&Array.isArray(e)&&(e=e[0]),e&&typeof e=="object"&&(e=e.type),e&&Array.isArray(e)&&(e=e[0]),typeof e=="string"){if(e==="number")return this.isDefaultRequired()?0:void 0;if(e==="boolean")return this.isDefaultRequired()?!1:void 0;if(e==="integer")return this.isDefaultRequired()?0:void 0;if(e==="string")return this.isDefaultRequired()?"":void 0;if(e==="null")return null;if(e==="object")return{};if(e==="array")return[]}}getTitle(){return this.translateProperty(this.schema.title||this.key||this.formname)}enable(){this.disabled=!1}disable(){this.disabled=!0}isEnabled(){return!this.disabled}isRequired(){return typeof this.schema.required=="boolean"?this.schema.required:this.parent&&this.parent.schema&&Array.isArray(this.parent.schema.required)?this.parent.schema.required.includes(this.key):!!this.jsoneditor.options.required_by_default}getDisplayText(e){const i=[],r={};e.forEach(d=>{d.title&&(r[d.title]=r[d.title]||0,r[d.title]++),d.description&&(r[d.description]=r[d.description]||0,r[d.description]++),d.format&&(r[d.format]=r[d.format]||0,r[d.format]++),d.type&&(r[d.type]=r[d.type]||0,r[d.type]++)}),e.forEach(d=>{let u;typeof d=="string"?u=d:d.title&&r[d.title]<=1?u=d.title:d.format&&r[d.format]<=1?u=d.format:d.type&&r[d.type]<=1?u=d.type:d.description&&r[d.description]<=1?u=d.description:d.title?u=d.title:d.format?u=d.format:d.type?u=d.type:d.description?u=d.description:JSON.stringify(d).length<500?u=JSON.stringify(d):u="type",i.push(u)});const s={};return i.forEach((d,u)=>{s[d]=s[d]||0,s[d]++,r[d]>1&&(i[u]=`${d} ${s[d]}`)}),i}getValidId(e){return e=e===void 0?"":e.toString(),e.replace(/\s+/g,"-")}setInputAttributes(e,i){if(this.schema.options&&this.schema.options.inputAttributes){const r=this.schema.options.inputAttributes,s=["name","type"].concat(e),d=i||this.input;Object.keys(r).forEach(u=>{s.includes(u.toLowerCase())||d.setAttribute(u,r[u])})}}setContainerAttributes(){if(this.schema.options&&this.schema.options.containerAttributes){const e=this.schema.options.containerAttributes,i=["data-schemapath","data-schematype","data-schemaid"];Object.keys(e).forEach(r=>{i.includes(r.toLowerCase())||this.container.setAttribute(r,e[r])})}}expandCallbacks(e,i){const r=this.defaults.callbacks[e];return Object.entries(i).forEach(([s,d])=>{d===Object(d)?i[s]=this.expandCallbacks(e,d):typeof d=="string"&&typeof r=="object"&&typeof r[d]=="function"&&(i[s]=r[d].bind(null,this))}),i}showValidationErrors(e){}}class Or extends dr{register(){super.register(),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}unregister(){super.unregister(),this.input&&(this.input.removeAttribute("name"),this.input.removeAttribute("aria-label"))}setValue(e,i,r){if(this.template&&!r||(!this.shouldBeUnset()&&(e===null||typeof e>"u")?e="":typeof e=="object"?e=JSON.stringify(e):!this.shouldBeUnset()&&typeof e!="string"&&(e=`${e}`),e===this.serialized))return;const s=this.sanitize(e);if(this.input.value===s)return;if(this.setValueToInputField(s),this.format==="range"){const u=this.control.querySelector("output");u&&(u.value=s)}const d=r||this.getValue()!==e;return this.refreshValue(),i?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.adjust_height&&this.adjust_height(this.input),d&&this.onChange(!0,r),{changed:d,value:s}}setValueToInputField(e){this.input.value=e===void 0?"":e}getNumColumns(){const e=Math.ceil(Math.max(this.getTitle().length,this.schema.maxLength||0,this.schema.minLength||0)/5);let i;return this.input_type==="textarea"?i=6:["text","email"].includes(this.input_type)?i=4:i=2,Math.min(12,Math.max(e,i))}build(){if(this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.format=this.schema.format,!this.format&&this.schema.media&&this.schema.media.type&&(this.format=this.schema.media.type.replace(/(^(application|text)\/(x-)?(script\.)?)|(-source$)/g,"")),!this.format&&this.options.default_format&&(this.format=this.options.default_format),this.options.format&&(this.format=this.options.format),this.format)if(this.format==="textarea")this.input_type="textarea",this.input=this.theme.getTextareaInput();else if(this.format==="range"){this.input_type="range";let s=this.schema.minimum||0,d=this.schema.maximum||Math.max(100,s+1),u=1;this.schema.multipleOf&&(s%this.schema.multipleOf&&(s=Math.ceil(s/this.schema.multipleOf)*this.schema.multipleOf),d%this.schema.multipleOf&&(d=Math.floor(d/this.schema.multipleOf)*this.schema.multipleOf),u=this.schema.multipleOf),this.input=this.theme.getRangeInput(s,d,u,this.description,this.formname),this.input.setAttribute("id",this.formname)}else this.input_type="text",["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","reset","search","submit","tel","text","time","url","week"].includes(this.format)&&(this.input_type=this.format),this.input=this.theme.getFormInputField(this.input_type);else this.input_type="text",this.input=this.theme.getFormInputField(this.input_type);typeof this.schema.maxLength<"u"&&this.input.setAttribute("maxlength",this.schema.maxLength),typeof this.schema.pattern<"u"?this.input.setAttribute("pattern",this.schema.pattern):typeof this.schema.minLength<"u"&&this.input.setAttribute("pattern",`.{${this.schema.minLength},}`),this.options.compact?this.container.classList.add("compact"):this.options.input_width&&(this.input.style.width=this.options.input_width),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&(this.disable(!0),this.input.setAttribute("readonly","true")),this.setInputAttributes(["maxlength","pattern","readonly","min","max","step"]),this.input.addEventListener("change",s=>{if(s.preventDefault(),s.stopPropagation(),this.schema.template){s.currentTarget.value=this.value;return}const d=s.currentTarget.value,u=this.sanitize(d);d!==u&&(s.currentTarget.value=u),this.is_dirty=!0,this.refreshValue(),this.onChange(!0)}),this.options.input_height&&(this.input.style.height=this.options.input_height),this.options.expand_height&&(this.adjust_height=s=>{if(!s)return;let d,u=s.offsetHeight;if(s.offsetHeight100);)d++,u++,s.style.height=`${u}px`;else{for(d=0;s.offsetHeight>=s.scrollHeight+3&&!(d>100);)d++,u--,s.style.height=`${u}px`;s.style.height=`${u+1}px`}},this.input.addEventListener("keyup",s=>{this.adjust_height(s.currentTarget)}),this.input.addEventListener("change",s=>{this.adjust_height(s.currentTarget)}),this.adjust_height());const e=this.options.prompt_paste_max_length_reached??this.jsoneditor.options.prompt_paste_max_length_reached,i=typeof this.schema.maxLength<"u";e&&i&&this.input.addEventListener("paste",s=>{(s.clipboardData||window.clipboardData).getData("text").length+this.input.value.length>this.schema.maxLength&&alert(this.translate("paste_max_length_reached",[this.schema.maxLength]))}),this.format&&this.input.setAttribute("data-schemaformat",this.format);let{input:r}=this;if(this.format==="range"&&(r=this.theme.getRangeControl(this.input,this.theme.getRangeOutput(this.input,this.schema.default||Math.max(this.schema.minimum||0,0)))),this.control=this.theme.getFormControl(this.label,r,this.description,this.infoButton,this.formname),this.container.appendChild(this.control),window.requestAnimationFrame(()=>{if(this.input.parentNode&&this.afterInputReady(),this.adjust_height&&this.adjust_height(this.input),this.format==="range"){const s=this.control.querySelector("output");s.value=this.input.value}}),this.schema.template){const s=this.expandCallbacks("template",{template:this.schema.template});typeof s.template=="function"?this.template=s.template:this.template=this.jsoneditor.compileTemplate(this.schema.template,this.template_engine),this.refreshValue()}else this.refreshValue()}setupCleave(e){const i=this.expandCallbacks("cleave",ct({},this.defaults.options.cleave||{},this.options.cleave||{}));typeof i=="object"&&Object.keys(i).length>0&&(this.cleave_instance=new window.Cleave(e,i))}setupImask(e){const i=this.expandCallbacks("imask",ct({},this.defaults.options.imask||{},this.options.imask||{}));typeof i=="object"&&Object.keys(i).length>0&&(this.imask_instance=window.IMask(e,this.ajustIMaskOptions(i)))}ajustIMaskOptions(e){return Object.keys(e).forEach(i=>{if(e[i]===Object(e[i]))e[i]=this.ajustIMaskOptions(e[i]);else if(i==="mask")if(e[i].substr(0,6)==="regex:"){const r=e[i].match(/^regex:\/(.*)\/([gimsuy]*)$/);if(r!==null)try{e[i]=new RegExp(r[1],r[2])}catch{}}else e[i]=this.getGlobalPropertyFromString(e[i])}),e}getGlobalPropertyFromString(e){if(e.includes(".")){const i=e.split("."),r=i[0],s=i[1];if(typeof window[r]<"u"&&typeof window[r][s]<"u")return window[r][s]}else if(typeof window[e]<"u")return window[e];return e}shouldBeUnset(){return!this.jsoneditor.options.use_default_values&&!this.is_dirty}getValue(){const e=!!(this.input&&this.input.value);if(!(this.shouldBeUnset()&&!e))return this.imask_instance&&this.dependenciesFulfilled&&this.options.imask.returnUnmasked?this.imask_instance.unmaskedValue:super.getValue()}enable(){this.always_disabled||(this.input.disabled=!1,super.enable())}disable(e){e&&(this.always_disabled=!0),this.input.disabled=!0,super.disable()}afterInputReady(){this.theme.afterInputReady(this.input),window.Cleave&&!this.cleave_instance?this.setupCleave(this.input):window.IMask&&!this.imask_instance&&this.setupImask(this.input)}refreshValue(){this.input&&(this.value=this.input.value,typeof this.value!="string"&&!this.shouldBeUnset()&&(this.value=""),this.serialized=this.value)}destroy(){this.cleave_instance&&this.cleave_instance.destroy(),this.imask_instance&&this.imask_instance.destroy(),this.template=null,this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),super.destroy()}sanitize(e){return e}onWatchedFieldChange(){let e;this.template&&(e=this.getWatchedFieldValues(),this.setValue(this.template(e),!1,!0)),super.onWatchedFieldChange()}showValidationErrors(e){if(this.jsoneditor.options.show_errors!=="always"&&!this.is_dirty&&this.previous_error_setting===this.jsoneditor.options.show_errors)return;this.previous_error_setting=this.jsoneditor.options.show_errors;const i=(s,d)=>(d.path===this.path&&s.push(d.message),s),r=e.reduce(i,[]);r.length?this.theme.addInputError(this.input,`${r.join(". ")}.`):this.theme.removeInputError(this.input)}}class Ub extends Or{setValue(e,i,r){const s=super.setValue(e,i,r);s!==void 0&&s.changed&&this.ace_editor_instance&&(this.ace_editor_instance.setValue(s.value),this.ace_editor_instance.session.getSelection().clearSelection(),this.ace_editor_instance.resize())}build(){this.options.format="textarea",super.build(),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}afterInputReady(){let e;if(window.ace){let i=this.input_type;(i==="cpp"||i==="c++"||i==="c")&&(i="c_cpp"),e=this.expandCallbacks("ace",ct({},{selectionStyle:"text",minLines:30,maxLines:30},this.defaults.options.ace||{},this.options.ace||{},{mode:`ace/mode/${i}`})),this.ace_container=document.createElement("div"),this.ace_container.style.width="100%",this.ace_container.style.position="relative",this.input.parentNode.insertBefore(this.ace_container,this.input),this.input.style.display="none",this.ace_editor_instance=window.ace.edit(this.ace_container,e),this.ace_editor_instance.setValue(this.getValue()),this.ace_editor_instance.session.getSelection().clearSelection(),this.ace_editor_instance.resize(),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&this.ace_editor_instance.setReadOnly(!0),this.ace_editor_instance.on("change",()=>{this.input.value=this.ace_editor_instance.getValue(),this.refreshValue(),this.is_dirty=!0,this.onChange(!0)}),this.theme.afterInputReady(this.input)}else super.afterInputReady()}getNumColumns(){return 6}enable(){!this.always_disabled&&this.ace_editor_instance&&this.ace_editor_instance.setReadOnly(!1),super.enable()}disable(e){this.ace_editor_instance&&this.ace_editor_instance.setReadOnly(!0),super.disable(e)}destroy(){this.ace_editor_instance&&(this.ace_editor_instance.destroy(),this.ace_editor_instance=null),super.destroy()}}const Wb={".json-editor-btntype-toggle":"margin:0%2010px%200%200",".je-array-control-btn":"width:100%25;text-align:left;margin-bottom:3px"};class ah extends dr{askConfirmation(){return!(this.jsoneditor.options.prompt_before_delete===!0&&window.confirm(this.translate("button_delete_node_warning"))===!1)}register(){super.register(),this.rows&&this.rows.forEach(e=>e.register())}unregister(){super.unregister(),this.rows&&this.rows.forEach(e=>e.unregister())}getNumColumns(){const e=this.getItemInfo(0);return this.tabs_holder&&this.schema.format!=="tabs-top"?Math.max(Math.min(12,e.width+2),4):e.width}enable(){this.always_disabled||(this.setAvailability(this,!1),this.rows&&this.rows.forEach(e=>{e.enable(),this.setAvailability(e,!1)}),super.enable())}disable(e){e&&(this.always_disabled=!0),this.setAvailability(this,!0),this.rows&&this.rows.forEach(i=>{i.disable(e),this.setAvailability(i,!0)}),super.disable()}setAvailability(e,i){e.add_row_button&&(e.add_row_button.disabled=i),e.remove_all_rows_button&&(e.remove_all_rows_button.disabled=i),e.delete_last_row_button&&(e.delete_last_row_button.disabled=i),e.copy_button&&(e.copy_button.disabled=i),e.delete_button&&(e.delete_button.disabled=i),e.moveup_button&&(e.moveup_button.disabled=i),e.movedown_button&&(e.movedown_button.disabled=i)}preBuild(){super.preBuild(),this.rows=[],this.row_cache=[],this.hide_delete_buttons=this.options.disable_array_delete||this.jsoneditor.options.disable_array_delete,this.hide_delete_all_rows_buttons=this.hide_delete_buttons||this.options.disable_array_delete_all_rows||this.jsoneditor.options.disable_array_delete_all_rows,this.hide_delete_last_row_buttons=this.hide_delete_buttons||this.options.disable_array_delete_last_row||this.jsoneditor.options.disable_array_delete_last_row,this.hide_move_buttons=this.options.disable_array_reorder||this.jsoneditor.options.disable_array_reorder,this.hide_add_button=this.options.disable_array_add||this.jsoneditor.options.disable_array_add,this.show_copy_button=this.options.enable_array_copy||this.jsoneditor.options.enable_array_copy,this.array_controls_top=this.options.array_controls_top||this.jsoneditor.options.array_controls_top}build(){this.options.compact?(this.title=this.theme.getHeader("",this.getPathDepth()),this.container.appendChild(this.title),this.panel=this.theme.getIndentedPanel(),this.container.appendChild(this.panel),this.title_controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.title_controls),this.controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.controls),this.row_holder=document.createElement("div"),this.panel.appendChild(this.row_holder)):(this.header=document.createElement("span"),this.header.textContent=this.getTitle(),this.title=this.theme.getHeader(this.header,this.getPathDepth()),this.container.appendChild(this.title),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText)),this.container.appendChild(this.infoButton)),this.title_controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.title_controls),this.schema.description&&(this.description=this.theme.getDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.description)),this.error_holder=document.createElement("div"),this.container.appendChild(this.error_holder),this.schema.format==="tabs-top"?(this.controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.controls),this.tabs_holder=this.theme.getTopTabHolder(this.getValidId(this.getItemTitle())),this.container.appendChild(this.tabs_holder),this.row_holder=this.theme.getTopTabContentHolder(this.tabs_holder),this.active_tab=null):this.schema.format==="tabs"?(this.controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.controls),this.tabs_holder=this.theme.getTabHolder(this.getValidId(this.getItemTitle())),this.container.appendChild(this.tabs_holder),this.row_holder=this.theme.getTabContentHolder(this.tabs_holder),this.active_tab=null):(this.panel=this.theme.getIndentedPanel(),this.container.appendChild(this.panel),this.row_holder=document.createElement("div"),this.panel.appendChild(this.row_holder),this.controls=this.theme.getButtonHolder(),this.array_controls_top?this.title.appendChild(this.controls):this.panel.appendChild(this.controls))),this.addControls()}postBuild(){super.postBuild(),(this.schema.readOnly||this.schema.readonly)&&this.disable()}onChildEditorChange(e,i){this.refreshValue(),this.refreshTabs(!0),super.onChildEditorChange(e,i)}getItemTitle(){if(!this.item_title)if(this.schema.items&&!Array.isArray(this.schema.items)){const e=this.jsoneditor.expandRefs(this.schema.items);this.item_title=this.translateProperty(e.title)||this.translate("default_array_item_title")}else this.item_title=this.translate("default_array_item_title");return this.cleanText(this.item_title)}getItemSchema(e){if(Array.isArray(this.schema.items))if(e>=this.schema.items.length){if(this.schema.additionalItems===!0)return{};if(this.schema.additionalItems)return ct({},this.schema.additionalItems)}else return ct({},this.schema.items[e]);else return this.schema.items?ct({},this.schema.items):{}}getItemInfo(e){let i=this.getItemSchema(e);this.item_info=this.item_info||{};const r=JSON.stringify(i);return typeof this.item_info[r]<"u"?this.item_info[r]:(i=this.jsoneditor.expandRefs(i),this.item_info[r]={title:this.translateProperty(i.title)||this.translate("default_array_item_title"),default:i.default,width:12,child_editors:i.properties||i.items},this.item_info[r])}getElementEditor(e){const i=this.getItemInfo(e);let r=this.getItemSchema(e);r=this.jsoneditor.expandRefs(r),r.title=`${i.title} ${e+1}`;const s=this.jsoneditor.getEditorClass(r);let d;this.tabs_holder?(this.schema.format==="tabs-top"?d=this.theme.getTopTabContent():d=this.theme.getTabContent(),d.id=`${this.path}.${e}`):i.child_editors?d=this.theme.getChildEditorHolder():d=this.theme.getIndentedPanel(),this.row_holder.appendChild(d);const u=this.jsoneditor.createEditor(s,{jsoneditor:this.jsoneditor,schema:r,container:d,path:`${this.path}.${e}`,parent:this,required:!0});return u.preBuild(),u.build(),u.postBuild(),u.title_controls||(u.array_controls=this.theme.getButtonHolder(),d.appendChild(u.array_controls)),u}checkParent(e){return e&&e.parentNode}destroy(){this.empty(!0),this.checkParent(this.title)&&this.title.parentNode.removeChild(this.title),this.checkParent(this.description)&&this.description.parentNode.removeChild(this.description),this.checkParent(this.row_holder)&&this.row_holder.parentNode.removeChild(this.row_holder),this.checkParent(this.controls)&&this.controls.parentNode.removeChild(this.controls),this.checkParent(this.panel)&&this.panel.parentNode.removeChild(this.panel),this.rows=this.row_cache=this.title=this.description=this.row_holder=this.panel=this.controls=null,super.destroy()}empty(e){if(this.rows!==null){if(this.rows.forEach((i,r)=>{e&&(this.checkParent(i.tab)&&i.tab.parentNode.removeChild(i.tab),this.destroyRow(i,!0),this.row_cache[r]=null),this.rows[r]=null}),e)for(let i=this.rows.length;i{i.tab&&(e?i.tab_text.textContent=i.getHeaderText():i.tab===this.active_tab?this.theme.markTabActive(i):this.theme.markTabInactive(i))})}ensureArraySize(e){if(Array.isArray(e)||(e=[e]),this.schema.minItems)for(;e.lengththis.getMax()&&(e=e.slice(0,this.getMax())),e}setValue(e=[],i){if(e=this.ensureArraySize(e),JSON.stringify(e)===this.serialized){i&&this.refreshValue(i);return}e.forEach((d,u)=>{if(this.rows[u])this.rows[u].setValue(d,i);else if(this.row_cache[u])this.rows[u]=this.row_cache[u],this.rows[u].setValue(d,i),this.rows[u].container.style.display="",this.rows[u].tab&&(this.rows[u].tab.style.display=""),this.rows[u].register(),this.jsoneditor.trigger("addRow",this.rows[u]);else{const p=this.addRow(d,i);this.jsoneditor.trigger("addRow",p)}});for(let d=e.length;dd.tab===this.active_tab);let s=typeof r<"u"?r.tab:null;!s&&this.rows.length&&(s=this.rows[0].tab),this.active_tab=s,this.refreshValue(i),this.refreshTabs(!0),this.refreshTabs(),this.onChange()}setButtonState(e,i){switch(this.options.button_state_mode||this.jsoneditor.options.button_state_mode){case 1:e.style.display=i?"":"none";break;case 2:e.disabled=!i;break;default:e.style.display=i?"":"none"}}setupButtons(e){const i=[];if(!this.value.length)this.setButtonState(this.delete_last_row_button,!1),this.setButtonState(this.remove_all_rows_button,!1);else if(this.value.length===1){this.setButtonState(this.remove_all_rows_button,!1);const s=!(e||this.hide_delete_last_row_buttons);this.setButtonState(this.delete_last_row_button,s),i.push(s)}else{const s=!(e||this.hide_delete_last_row_buttons);this.setButtonState(this.delete_last_row_button,s),i.push(s);const d=!(e||this.hide_delete_all_rows_buttons);this.setButtonState(this.remove_all_rows_button,d),i.push(d)}const r=!(this.getMax()&&this.getMax()<=this.rows.length||this.hide_add_button);return this.setButtonState(this.add_row_button,r),i.push(r),i.some(s=>s)}refreshValue(e){const i=this.value?this.value.length:0;if(this.value=this.rows.map(r=>r.getValue()),i!==this.value.length||e){const r=this.schema.minItems&&this.schema.minItems>=this.rows.length;this.rows.forEach((s,d)=>{if(s.movedown_button){const u=d!==this.rows.length-1;this.setButtonState(s.movedown_button,u)}s.delete_button&&this.setButtonState(s.delete_button,!r),this.value[d]=s.getValue()}),this.setupButtons(r)&&!this.collapsed?this.controls.style.display="inline-block":this.controls.style.display="none"}this.serialized=JSON.stringify(this.value)}addRow(e,i){const r=this.rows.length;this.rows[r]=this.getElementEditor(r),this.row_cache[r]=this.rows[r],this.tabs_holder&&(this.rows[r].tab_text=document.createElement("span"),this.rows[r].tab_text.textContent=this.rows[r].getHeaderText(),this.schema.format==="tabs-top"?(this.rows[r].tab=this.theme.getTopTab(this.rows[r].tab_text,this.getValidId(this.rows[r].path)),this.theme.addTopTab(this.tabs_holder,this.rows[r].tab)):(this.rows[r].tab=this.theme.getTab(this.rows[r].tab_text,this.getValidId(this.rows[r].path)),this.theme.addTab(this.tabs_holder,this.rows[r].tab)),this.rows[r].tab.addEventListener("click",d=>{this.active_tab=this.rows[r].tab,this.refreshTabs(),d.preventDefault(),d.stopPropagation()}));const s=this.rows[r].title_controls||this.rows[r].array_controls;return this.hide_delete_buttons||(this.rows[r].delete_button=this._createDeleteButton(r,s)),this.show_copy_button&&(this.rows[r].copy_button=this._createCopyButton(r,s)),r&&!this.hide_move_buttons&&(this.rows[r].moveup_button=this._createMoveUpButton(r,s)),this.hide_move_buttons||(this.rows[r].movedown_button=this._createMoveDownButton(r,s)),typeof e<"u"&&this.rows[r].setValue(e,i),this.refreshTabs(),this.rows[r]}_createDeleteButton(e,i){const r=this.getButton(this.getItemTitle(),"delete","button_delete_row_title",[this.getItemTitle()]);return r.classList.add("delete","json-editor-btntype-delete"),r.setAttribute("data-i",e),r.addEventListener("click",s=>{if(s.preventDefault(),s.stopPropagation(),!this.askConfirmation())return!1;const d=s.currentTarget.getAttribute("data-i")*1,u=this.getValue().filter((b,w)=>w!==d);let p=null;const m=this.rows[d].getValue();this.setValue(u),this.rows[d]?p=this.rows[d].tab:this.rows[d-1]&&(p=this.rows[d-1].tab),p&&(this.active_tab=p,this.refreshTabs()),this.onChange(!0),this.jsoneditor.trigger("deleteRow",m)}),i&&i.appendChild(r),r}_createCopyButton(e,i){const r=this.getButton(this.getItemTitle(),"copy","button_copy_row_title",[this.getItemTitle()]),s=this.schema;return r.classList.add("copy","json-editor-btntype-copy"),r.setAttribute("data-i",e),r.addEventListener("click",d=>{const u=this.getValue();d.preventDefault(),d.stopPropagation();const p=d.currentTarget.getAttribute("data-i")*1;u.forEach((m,b)=>{if(b===p){if(s.items.type==="string"&&s.items.format==="uuid")m=oa();else if(s.items.type==="object"&&s.items.properties)for(const w of Object.keys(m))s.items.properties&&s.items.properties[w]&&s.items.properties[w].format==="uuid"&&(m[w]=oa());u.push(m)}}),this.setValue(u),this.refreshValue(!0),this.onChange(!0),this.jsoneditor.trigger("copyRow",this.rows[p-1])}),i.appendChild(r),r}_createMoveUpButton(e,i){const r=this.getButton("",this.schema.format==="tabs-top"?"moveleft":"moveup","button_move_up_title");return r.classList.add("moveup","json-editor-btntype-move"),r.setAttribute("data-i",e),r.addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();const d=s.currentTarget.getAttribute("data-i")*1;if(d<=0)return;const u=this.getValue(),p=u[d-1];u[d-1]=u[d],u[d]=p,this.setValue(u),this.active_tab=this.rows[d-1].tab,this.refreshTabs(),this.onChange(!0),this.jsoneditor.trigger("moveRow",this.rows[d-1])}),i&&i.appendChild(r),r}_createMoveDownButton(e,i){const r=this.getButton("",this.schema.format==="tabs-top"?"moveright":"movedown","button_move_down_title");return r.classList.add("movedown","json-editor-btntype-move"),r.setAttribute("data-i",e),r.addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();const d=s.currentTarget.getAttribute("data-i")*1,u=this.getValue();if(d>=u.length-1)return;const p=u[d+1];u[d+1]=u[d],u[d]=p,this.setValue(u),this.active_tab=this.rows[d+1].tab,this.refreshTabs(),this.onChange(!0),this.jsoneditor.trigger("moveRow",this.rows[d+1])}),i&&i.appendChild(r),r}addControls(){this.collapsed=!1,this.toggle_button=this._createToggleButton(),this.options.collapsed&&ln(this.toggle_button,"click"),this.schema.options&&typeof this.schema.options.disable_collapse<"u"?this.schema.options.disable_collapse&&(this.toggle_button.style.display="none"):this.jsoneditor.options.disable_collapse&&(this.toggle_button.style.display="none"),this.add_row_button=this._createAddRowButton(),this.delete_last_row_button=this._createDeleteLastRowButton(),this.remove_all_rows_button=this._createRemoveAllRowsButton(),this.tabs&&(this.add_row_button.classList.add("je-array-control-btn"),this.delete_last_row_button.classList.add("je-array-control-btn"),this.remove_all_rows_button.classList.add("je-array-control-btn"))}_createToggleButton(){const e=this.getButton("","collapse","button_collapse");e.classList.add("json-editor-btntype-toggle"),this.title.insertBefore(e,this.title.childNodes[0]);const i=this.row_holder.style.display,r=this.controls.style.display;return e.addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),this.panel&&this.setButtonState(this.panel,this.collapsed),this.tabs_holder&&this.setButtonState(this.tabs_holder,this.collapsed),this.collapsed?(this.collapsed=!1,this.row_holder.style.display=i,this.controls.style.display=r,this.setButtonText(s.currentTarget,"","collapse","button_collapse")):(this.collapsed=!0,this.row_holder.style.display="none",this.controls.style.display="none",this.setButtonText(s.currentTarget,"","expand","button_expand"))}),e}_createAddRowButton(){const e=this.getButton(this.getItemTitle(),"add","button_add_row_title",[this.getItemTitle()]);return e.classList.add("json-editor-btntype-add"),e.addEventListener("click",i=>{i.preventDefault(),i.stopPropagation();const r=this.rows.length;let s;this.row_cache[r]?(s=this.rows[r]=this.row_cache[r],this.rows[r].setValue(this.rows[r].getDefault(),!0),this.rows[r].container.style.display="",this.rows[r].tab&&(this.rows[r].tab.style.display=""),this.rows[r].register()):s=this.addRow(),this.active_tab=this.rows[r].tab,this.refreshTabs(),this.refreshValue(),this.onChange(!0),this.jsoneditor.trigger("addRow",s)}),this.controls.appendChild(e),e}_createDeleteLastRowButton(){const e=this.getButton("button_delete_last","subtract","button_delete_last_title",[this.getItemTitle()]);return e.classList.add("json-editor-btntype-deletelast"),e.addEventListener("click",i=>{if(i.preventDefault(),i.stopPropagation(),!this.askConfirmation())return!1;const r=this.getValue();let s=null;const d=r.pop();this.setValue(r),this.rows[this.rows.length-1]&&(s=this.rows[this.rows.length-1].tab),s&&(this.active_tab=s,this.refreshTabs()),this.onChange(!0),this.jsoneditor.trigger("deleteRow",d)}),this.controls.appendChild(e),e}_createRemoveAllRowsButton(){const e=this.getButton("button_delete_all","delete","button_delete_all_title");return e.classList.add("json-editor-btntype-deleteall"),e.addEventListener("click",i=>{if(i.preventDefault(),i.stopPropagation(),!this.askConfirmation())return!1;const r=this.getValue();this.empty(!0),this.setValue([]),this.onChange(!0),this.jsoneditor.trigger("deleteAllRows",r)}),this.controls.appendChild(e),e}showValidationErrors(e){const i=[],r=[];e.forEach(s=>{s.path===this.path?i.push(s):r.push(s)}),this.error_holder&&(i.length?(this.error_holder.innerHTML="",this.error_holder.style.display="",i.forEach(s=>{this.error_holder.appendChild(this.theme.getErrorMessage(s.message))})):this.error_holder.style.display="none"),this.rows.forEach(s=>s.showValidationErrors(r))}}ah.rules=Wb;class wl extends dr{onInputChange(){this.value=this.input.value,this.onChange(!0)}register(){super.register(),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}unregister(){super.unregister(),this.input&&this.input.removeAttribute("name")}getNumColumns(){let e=this.getTitle().length;return Object.keys(this.select_values).forEach(i=>e=Math.max(e,`${this.select_values[i]}`.length+4)),Math.min(12,Math.max(e/7,2))}preBuild(){super.preBuild(),this.select_options={},this.select_values={},this.option_titles=[],this.option_keys=[],this.option_enum=[];let e;const i=this.jsoneditor.expandRefs(this.schema.items||{}),r=i.enum||[],s=i.options?i.options.enum||[]:[],d=i.options?i.options.enum_titles||[]:[];for(e=0;ei.title)),this.input.setAttribute("multiple","multiple"),this.input.size=Math.min(10,this.option_keys.length),e=0;e{const r=[];for(e=0;e{this.afterInputReady()})}postBuild(){super.postBuild()}afterInputReady(){this.theme.afterInputReady(this.input||this.inputs)}setValue(e,i){e=e||[],Array.isArray(e)||(e=[e]),e=e.map(r=>`${r}`),Object.keys(this.select_options).forEach(r=>{this.select_options[r][this.input_type==="select"?"selected":"checked"]=e.includes(r)}),this.updateValue(e),this.onChange(!0)}removeValue(e){e=[].concat(e),this.setValue(this.getValue().filter(i=>!e.includes(i)))}addValue(e){this.setValue(this.getValue().concat(e))}updateValue(e){let i=!1;const r=[];for(let s=0;sthis.inputs[e].disabled=!1),super.enable())}disable(e){e&&(this.always_disabled=!0),this.input?this.input.disabled=!0:this.inputs&&Object.keys(this.inputs).forEach(i=>this.inputs[i].disabled=!0),super.disable()}destroy(){super.destroy()}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}showValidationErrors(e){const i=new RegExp(`^${this.escapeRegExp(this.path)}(\\.\\d+)?$`),r=(d,u)=>(u.path.match(i)&&d.push(u.message),d),s=e.reduce(r,[]);s.length?this.theme.addInputError(this.input||this.inputs,`${s.join(". ")}.`):this.theme.removeInputError(this.input||this.inputs)}}class qb extends wl{setValue(e,i){this.choices_instance?(e=[].concat(e).map(r=>`${r}`),this.updateValue(e),this.choices_instance.removeActiveItems(),this.choices_instance.setChoiceByValue(this.value),this.onChange(!0)):super.setValue(e,i)}afterInputReady(){if(window.Choices&&!this.choices_instance){const e=this.expandCallbacks("choices",ct({},{removeItems:!0,removeItemButton:!0},this.defaults.options.choices||{},this.options.choices||{},{addItems:!0,editItems:!1,duplicateItemsAllowed:!1}));this.newEnumAllowed=!1,this.choices_instance=new window.Choices(this.input,e),this.control.removeEventListener("change",this.multiselectChangeHandler),this.multiselectChangeHandler=i=>{const r=this.choices_instance.getValue(!0);this.updateValue(r),this.onChange(!0)},this.control.addEventListener("change",this.multiselectChangeHandler,!1)}super.afterInputReady()}updateValue(e){e=[].concat(e);let i=!1;const r=[];for(let s=0;s`${r}`),this.updateValue(e),this.select2v4?this.select2_instance.val(this.value).change():this.select2_instance.select2("val",this.value),this.onChange(!0)):super.setValue(e,i)}afterInputReady(){let e;window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2&&!this.select2_instance&&(e=this.expandCallbacks("select2",ct({},{tags:!0,width:"100%"},this.defaults.options.select2||{},this.options.select2||{})),this.newEnumAllowed=e.tags=!!e.tags&&this.schema.items&&this.schema.items.type==="string",this.select2_instance=window.jQuery(this.input).select2(e),this.select2v4=jr(this.select2_instance.select2,"amd"),this.selectChangeHandler=()=>{const i=this.select2v4?this.select2_instance.val():this.select2_instance.select2("val");this.updateValue(i),this.onChange(!0)},this.select2_instance.on("select2-blur",this.selectChangeHandler),this.select2_instance.on("change",this.selectChangeHandler)),super.afterInputReady()}updateValue(e){e=[].concat(e);let i=!1;const r=[];for(let s=0;s`${r}`),this.updateValue(e),this.selectize_instance.setValue(this.value),this.onChange(!0)):super.setValue(e,i)}afterInputReady(){let e;if(window.jQuery&&window.jQuery.fn&&window.jQuery.fn.selectize&&!this.selectize_instance){e=this.expandCallbacks("selectize",ct({},{plugins:["remove_button"],delimiter:!1,createOnBlur:!0,create:!0},this.defaults.options.selectize||{},this.options.selectize||{})),this.newEnumAllowed=e.create=!!e.create&&this.schema.items&&this.schema.items.type==="string",this.selectize_instance=window.jQuery(this.input).selectize(e)[0].selectize,this.control.removeEventListener("change",this.multiselectChangeHandler),this.multiselectChangeHandler=s=>{const d=this.selectize_instance.getValue();this.updateValue(d),this.onChange(!0)},this.selectize_instance.on("change",this.multiselectChangeHandler);const i=this.theme.getHiddenLabel(this.formname);this.input.setAttribute("id",this.formname+"-hidden-input"),i.setAttribute("for",this.formname+"-hidden-input"),this.input.parentNode.insertBefore(i,this.input);const r=this.selectize_instance.$control[0];if(r){const s=this.theme.getHiddenLabel(this.formname);s.setAttribute("for",this.formname+"-selectized"),r.appendChild(s)}}super.afterInputReady()}updateValue(e){e=[].concat(e);let i=!1;const r=[];for(let s=0;s(console.log(`No "search" callback defined for autocomplete in property "${i.key}"`),[]),onSubmit:()=>{this.input.blur()},baseClass:"autocomplete"},this.defaults.options.autocomplete||{},this.options.autocomplete||{})),this.autocomplete_wrapper.classList.add(e.baseClass),this.autocomplete_dropdown.classList.add(`${e.baseClass}-result-list`),this.autocomplete_instance=new window.Autocomplete(this.autocomplete_wrapper,e)),super.afterInputReady()}destroy(){this.autocomplete_instance&&(this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.autocomplete_dropdown&&this.autocomplete_dropdown.parentNode&&this.autocomplete_dropdown.parentNode.removeChild(this.autocomplete_dropdown),this.autocomplete_wrapper&&this.autocomplete_wrapper.parentNode&&this.autocomplete_wrapper.parentNode.removeChild(this.autocomplete_wrapper),this.autocomplete_instance=null),super.destroy()}}class Jb extends dr{getNumColumns(){return 4}setFileReaderListener(e){e.addEventListener("load",i=>{if(this.count===this.current_item_index)this.value[this.count][this.key]=i.target.result;else{const r={};for(const s in this.parent.schema.properties)r[s]="";r[this.key]=i.target.result,this.value.splice(this.count,0,r)}this.count+=1,this.count===this.total+this.current_item_index&&this.arrayEditor.setValue(this.value)})}build(){if(this.options.compact||(this.title=this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.input=this.theme.getFormInputField("hidden"),this.container.appendChild(this.input),!this.schema.readOnly&&!this.schema.readonly){if(!window.FileReader)throw new Error("FileReader required for base64 editor");this.uploader=this.theme.getFormInputField("file"),this.uploader.style.display="none",this.schema.options&&this.schema.options.multiple&&this.schema.options.multiple===!0&&this.parent&&this.parent.schema.type==="object"&&this.parent.parent&&this.parent.parent.schema.type==="array"&&this.uploader.setAttribute("multiple",""),this.uploader.addEventListener("change",i=>{if(i.preventDefault(),i.stopPropagation(),i.currentTarget.files&&i.currentTarget.files.length)if(i.currentTarget.files.length>1&&this.schema.options&&this.schema.options.multiple&&this.schema.options.multiple===!0&&this.parent&&this.parent.schema.type==="object"&&this.parent.parent&&this.parent.parent.schema.type==="array"){this.arrayEditor=this.jsoneditor.getEditor(this.parent.parent.path),this.value=this.arrayEditor.getValue(),this.total=i.currentTarget.files.length,this.current_item_index=parseInt(this.parent.key),this.count=this.current_item_index;for(let r=0;r{this.value=s.target.result,this.refreshPreview(),this.onChange(!0),r=null},r.readAsDataURL(i.currentTarget.files[0])}})}this.preview=this.theme.getFormInputDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.preview),this.control=this.theme.getFormControl(this.label,this.uploader||this.input,this.preview,this.infoButton),this.container.appendChild(this.control);const e=this.getButton("button_upload","upload","button_upload");e.addEventListener("click",()=>{this.uploader.click()}),this.control.appendChild(e),this.setInputAttributes(["multiple"],e)}refreshPreview(){if(this.last_preview===this.value||(this.last_preview=this.value,this.preview.innerHTML="",!this.value))return;let e=this.value.match(/^data:([^;,]+)[;,]/);if(e&&(e=e[1]),!e)this.preview.innerHTML="Invalid data URI";else if(this.preview.innerHTML=`Type: ${e}, Size: ${Math.floor((this.value.length-this.value.split(",")[0].length-1)/1.33333)} bytes`,e.substr(0,5)==="image"){this.preview.innerHTML+="
";const i=document.createElement("img");i.style.maxWidth="100%",i.style.maxHeight="100px",i.src=this.value,this.preview.appendChild(i)}}enable(){this.always_disabled||(this.uploader&&(this.uploader.disabled=!1),super.enable())}disable(e){e&&(this.always_disabled=!0),this.uploader&&(this.uploader.disabled=!0),super.disable()}setValue(e){this.value!==e&&(this.schema.readOnly&&this.schema.enum&&!this.schema.enum.includes(e)?this.value=this.schema.enum[0]:this.value=e,this.input.value=this.value,this.refreshPreview(),this.onChange())}destroy(){this.preview&&this.preview.parentNode&&this.preview.parentNode.removeChild(this.preview),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.uploader&&this.uploader.parentNode&&this.uploader.parentNode.removeChild(this.uploader),super.destroy()}}class Xp extends dr{constructor(e,i){super(e,i),this.active=!1,this.isUiOnly=!0,this.parent&&this.parent.schema&&(Array.isArray(this.parent.schema.required)?this.parent.schema.required.includes(this.key)||this.parent.schema.required.push(this.key):this.parent.schema.required=[this.key])}build(){this.options.compact=!0;const e=this.expandCallbacks("button",ct({},{icon:"",validated:!1,align:"left",action:(r,s)=>{window.alert(`No button action defined for "${r.path}"`)}},this.defaults.options.button||{},this.options.button||{})),i=this.translateProperty(e.text||this.schema.title)||this.key;this.input=this.getButton(i,e.icon,i),typeof e.action!="function"?window.alert(`No button action defined for "${this.path}"`):this.input.addEventListener("click",e.action,!1),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&(this.disable(!0),this.input.setAttribute("readonly","true")),this.setInputAttributes(["readonly"]),this.control=this.theme.getFormButtonHolder(e.align),this.control.appendChild(this.input),this.container.appendChild(this.control),this.changeHandler=()=>{this.jsoneditor.validate(this.jsoneditor.getValue()).length>0?this.disable():this.enable()},e.validated&&this.jsoneditor.on("change",this.changeHandler)}enable(){this.always_disabled||(this.input.disabled=!1,super.enable())}disable(e){e&&(this.always_disabled=!0),this.input.disabled=!0,super.disable()}getNumColumns(){return 2}activate(){this.active=!1,this.enable()}deactivate(){this.isRequired()||(this.active=!1,this.disable())}destroy(){this.jsoneditor.off("change",this.changeHandler),this.changeHandler=null,super.destroy()}}class Qb extends dr{setValue(e,i){e=!!e;const r=this.getValue()!==e;this.value=e,this.input.checked=this.value,i||(this.is_dirty=!0),this.onChange(r)}register(){super.register(),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}unregister(){super.unregister(),this.input&&this.input.removeAttribute("name")}getNumColumns(){return Math.min(12,Math.max(this.getTitle().length/7,2))}build(){this.parent.options.table_row||(this.label=this.header=this.theme.getCheckboxLabel(this.getTitle(),this.isRequired()),this.label.htmlFor=this.formname),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&!this.options.compact&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.input=this.theme.getCheckbox(),this.input.id=this.formname,this.control=this.theme.getFormControl(this.label,this.input,this.description,this.infoButton),(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),this.input.disabled=!0),this.input.addEventListener("change",e=>{e.preventDefault(),e.stopPropagation(),this.value=e.currentTarget.checked,this.is_dirty=!0,this.onChange(!0)}),this.container.appendChild(this.control)}enable(){this.always_disabled||(this.input.disabled=!1,super.enable())}disable(e){e&&(this.always_disabled=!0),this.input.disabled=!0,super.disable()}destroy(){this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),super.destroy()}showValidationErrors(e){const i=this.jsoneditor.options.show_errors;if(i==="never"||(i==="change"||i==="interaction")&&!this.is_dirty)return;const s=(u,p)=>(p.path===this.path&&u.push(p.message),u),d=e.reduce(s,[]);this.input.controlgroup=this.control,d.length?this.theme.addInputError(this.input,`${d.join(". ")}.`):this.theme.removeInputError(this.input)}}class ua extends dr{setValue(e,i){let r=this.typecast(e);const s=this.enum_options.length>0&&this.enum_values.includes(r),d=!!this.jsoneditor.options.use_default_values||typeof this.schema.default<"u";if(!this.hasPlaceholderOption&&(!s||i&&!this.isRequired()&&!d)&&(r=this.enum_values[0]),this.value===r)return;const u=this.enum_values.indexOf(r);s&&u!==-1?this.input.value=this.enum_options[u]:this.hasPlaceholderOption?this.input.value="_placeholder_":this.input.value=r,this.value=r,i||(this.is_dirty=!0),this.onChange(),this.change()}register(){super.register(),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}unregister(){super.unregister(),this.input&&this.input.removeAttribute("name")}getNumColumns(){if(!this.enum_options)return 3;let e=this.getTitle().length;for(let i=0;i{this.enum_options[b]=`${m}`,this.enum_display[b]=`${this.translateProperty(p[b])||m}`,this.enum_values[b]=this.typecast(m)})}else if(this.schema.type==="boolean")this.enum_display=this.schema.options&&this.schema.options.enum_titles||["true","false"],this.enum_options=["1",""],this.enum_values=[!0,!1],this.isRequired()||(this.enum_display.unshift(" "),this.enum_options.unshift("undefined"),this.enum_values.unshift(void 0));else if(this.schema.enumSource){if(this.enumSource=[],this.enum_display=[],this.enum_options=[],this.enum_values=[],!Array.isArray(this.schema.enumSource))this.schema.enumValue?this.enumSource=[{source:this.schema.enumSource,value:this.schema.enumValue}]:this.enumSource=[{source:this.schema.enumSource}];else for(d=0;d{e.preventDefault(),e.stopPropagation(),this.onInputChange()}),this.control=this.theme.getFormControl(this.label,this.input,this.description,this.infoButton,this.formname),this.container.appendChild(this.control),this.value=this.enum_values[0],window.requestAnimationFrame(()=>{this.input.parentNode&&this.afterInputReady()})}afterInputReady(){this.theme.afterInputReady(this.input)}onInputChange(){const e=this.typecast(this.input.value);let i;this.enum_values.includes(e)?i=this.enum_values[this.enum_values.indexOf(e)]:i=this.enum_values[0],i!==this.value&&(this.is_dirty=!0,this.value=i,this.onChange(!0))}onWatchedFieldChange(){let e,i,r=[],s=[];if(this.enumSource){e=this.getWatchedFieldValues();for(let u=0;u{w.map((D,B)=>({v:D,t:v[B]})).sort((D,B)=>D.v{w[B]=D.v,v[B]=D.t})}).bind(null,b,m,this.enumSource[u].sort==="desc"?1:-1)(),r=r.concat(b),s=s.concat(m)}}const d=this.value;this.theme.setSelectOptions(this.input,r,s),this.enum_options=r,this.enum_display=s,this.enum_values=r,r.includes(d)||this.jsoneditor.options.enum_source_value_auto_select!==!1?(this.input.value=d,this.value=d):(this.input.value=r[0],this.value=this.typecast(r[0]||""),this.parent&&!this.watchLoop?this.parent.onChildEditorChange(this):this.jsoneditor.onChange(),this.jsoneditor.notifyWatchers(this.path))}super.onWatchedFieldChange()}enable(){this.always_disabled||(this.input.disabled=!1,super.enable())}disable(e){e&&(this.always_disabled=!0),this.input.disabled=!0,super.disable(e)}destroy(){this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),super.destroy()}showValidationErrors(e){const i=this.jsoneditor.options.show_errors;if(i==="never"||(i==="change"||i==="interaction")&&!this.is_dirty)return;const s=(u,p)=>(p.path===this.path&&u.push(p.message),u),d=e.reduce(s,[]);d.length?this.theme.addInputError(this.input,`${d.join(". ")}.`):this.theme.removeInputError(this.input)}}const Kb={".choices > *":"box-sizing:border-box"};class em extends ua{setValue(e,i){if(this.choices_instance){let r=this.typecast(e||"");if(this.enum_values.includes(r)||(r=this.enum_values[0]),this.value===r)return;i?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.input.value=this.enum_options[this.enum_values.indexOf(r)],this.choices_instance.setChoiceByValue(this.input.value),this.value=r,this.onChange()}else super.setValue(e,i)}afterInputReady(){if(window.Choices&&!this.choices_instance){const e=this.expandCallbacks("choices",ct({},this.defaults.options.choices||{},this.options.choices||{}));this.choices_instance=new window.Choices(this.input,e)}super.afterInputReady()}onWatchedFieldChange(){if(super.onWatchedFieldChange(),this.choices_instance){const e=this.enum_options.map((i,r)=>({value:i,label:this.enum_display[r]}));this.choices_instance.setChoices(e,"value","label",!0),this.choices_instance.setChoiceByValue(`${this.value}`)}}enable(){!this.always_disabled&&this.choices_instance&&this.choices_instance.enable(),super.enable()}disable(e){this.choices_instance&&this.choices_instance.disable(),super.disable(e)}destroy(){this.choices_instance&&(this.choices_instance.destroy(),this.choices_instance=null),super.destroy()}}em.rules=Kb;class Xb extends Or{build(){if(super.build(),!!this.input&&(this.schema.max&&typeof this.schema.max=="string"&&this.input.setAttribute("max",this.schema.max),this.schema.min&&typeof this.schema.max=="string"&&this.input.setAttribute("min",this.schema.min),window.flatpickr&&typeof this.options.flatpickr=="object")){this.options.flatpickr.enableTime=this.schema.format!=="date",this.options.flatpickr.noCalendar=this.schema.format==="time",this.schema.type==="integer"&&(this.options.flatpickr.mode="single"),this.input.setAttribute("data-input","");let{input:e}=this;if(this.options.flatpickr.wrap===!0){const i=[];if(this.options.flatpickr.showToggleButton!==!1){const u=this.getButton("",this.schema.format==="time"?"time":"calendar","flatpickr_toggle_button");u.setAttribute("data-toggle",""),i.push(u)}if(this.options.flatpickr.showClearButton!==!1){const u=this.getButton("","clear","flatpickr_clear_button");u.setAttribute("data-clear",""),i.push(u)}const{parentNode:r}=this.input,{nextSibling:s}=this.input,d=this.theme.getInputGroup(this.input,i);d!==void 0?(this.options.flatpickr.inline=!1,r.insertBefore(d,s),e=d):this.options.flatpickr.wrap=!1}this.flatpickr=window.flatpickr(e,this.options.flatpickr),this.options.flatpickr.inline===!0&&this.options.flatpickr.inlineHideInput===!0&&this.input.setAttribute("type","hidden")}}getValue(){if(!this.dependenciesFulfilled)return;if(this.schema.type==="string")return this.value;if(this.value===""||this.value===void 0)return;const e=this.schema.format==="time"?`1970-01-01 ${this.value}`:this.value;return parseInt(new Date(e).getTime()/1e3)}setValue(e,i,r){if(this.schema.type==="string")super.setValue(e,i,r),this.flatpickr&&this.flatpickr.setDate(e);else if(e>0){const s=new Date(e*1e3),d=s.getFullYear(),u=this.zeroPad(s.getMonth()+1),p=this.zeroPad(s.getDate()),m=this.zeroPad(s.getHours()),b=this.zeroPad(s.getMinutes()),w=this.zeroPad(s.getSeconds()),v=[d,u,p].join("-"),j=[m,b,w].join(":");let D=`${v}T${j}`;this.schema.format==="date"?D=v:this.schema.format==="time"&&(D=j),this.input.value=D,this.refreshValue(),this.flatpickr&&this.flatpickr.setDate(D)}}destroy(){this.flatpickr&&this.flatpickr.destroy(),this.flatpickr=null,super.destroy()}zeroPad(e){return`0${e}`.slice(-2)}}class ev extends dr{register(){if(this.editors){for(let e=0;e{r&&(this.currentEditor===s?r.container.style.display="":r.container.style.display="none")}),this.refreshValue(),this.onChange(!0)}buildChildEditor(e){this.refs[e]=this.editors.length;const i=this.theme.getChildEditorHolder();this.editor_holder.appendChild(i);const r=ct({},this.schema,this.jsoneditor.refs[e]),s=this.jsoneditor.getEditorClass(r,this.jsoneditor),d=this.jsoneditor.createEditor(s,{jsoneditor:this.jsoneditor,schema:r,container:i,path:this.path,parent:this,required:!0});this.editors.push(d),d.preBuild(),d.build(),d.postBuild()}preBuild(){this.refs={},this.editors=[],this.currentEditor="";let e;for(e=0;e{e&&e.destroy()}),this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),super.destroy()}showValidationErrors(e){this.editors.forEach(i=>{i&&i.showValidationErrors(e)})}}class tv extends dr{getNumColumns(){return 4}build(){this.title=this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired()),this.container.appendChild(this.title),this.options.enum_titles=this.options.enum_titles||[],this.enforceConst&&this.schema.const?this.enum=[this.schema.const]:this.enum=this.schema.enum,this.selected=0,this.select_options=[],this.html_values=[];for(let e=0;e{this.selected=this.select_options.indexOf(e.currentTarget.value),this.value=this.enum[this.selected],this.refreshValue(),this.onChange(!0)}),this.value=this.enum[0],this.refreshValue(),this.enum.length===1&&(this.switcher.style.display="none")}refreshValue(){if(!this.enum)return;this.selected=-1;const e=JSON.stringify(this.value);if(this.enum.forEach((i,r)=>{if(e===JSON.stringify(i))return this.selected=r,!1}),this.selected<0){this.setValue(this.enum[0]);return}this.switcher.value=this.select_options[this.selected],this.display_area.innerHTML=this.html_values[this.selected]}enable(){this.always_disabled||(this.switcher.disabled=!1,super.enable())}disable(e){e&&(this.always_disabled=!0),this.switcher.disabled=!0,super.disable()}getHTML(e){const i=(r,s)=>{Array.isArray(r)||typeof r.length=="number"&&r.length>0&&r.length-1 in r?Array.from(r).forEach((d,u)=>s(u,d)):Object.entries(r).forEach(([d,u])=>s(d,u))};if(e===null)return"null";if(typeof e=="object"){let r="";return i(e,(s,d)=>{let u=this.getHTML(d);Array.isArray(e)||(u=`
${s}: ${u}
`),r+=`
  • ${u}
  • `}),Array.isArray(e)?r=`
      ${r}
    `:r=`
      ${r}
    `,r}else{if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return e.replace(/&/g,"&").replace(//g,">")}return e}setValue(e){this.value!==e&&(this.value=e,this.refreshValue(),this.onChange())}destroy(){this.display_area&&this.display_area.parentNode&&this.display_area.parentNode.removeChild(this.display_area),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.switcher&&this.switcher.parentNode&&this.switcher.parentNode.removeChild(this.switcher),super.destroy()}}class iv extends dr{register(){super.register(),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}unregister(){super.unregister(),this.input&&this.input.removeAttribute("name")}setValue(e,i,r){if(this.template&&!r||(e===null||typeof e>"u"?e="":typeof e=="object"?e=JSON.stringify(e):typeof e!="string"&&(e=`${e}`),e===this.serialized))return;const s=this.sanitize(e);if(this.input.value===s)return;this.input.value=s;const d=r||this.getValue()!==e;this.refreshValue(),i?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.adjust_height&&this.adjust_height(this.input),this.onChange(d)}getNumColumns(){return 2}enable(){super.enable()}disable(){super.disable()}refreshValue(){this.value=this.input.value,typeof this.value!="string"&&(this.value=""),this.serialized=this.value}destroy(){this.template=null,this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),super.destroy()}sanitize(e){return e}onWatchedFieldChange(){let e;this.template&&(e=this.getWatchedFieldValues(),this.setValue(this.template(e),!1,!0)),super.onWatchedFieldChange()}build(){if(this.format=this.schema.format,!this.format&&this.options.default_format&&(this.format=this.options.default_format),this.options.format&&(this.format=this.options.format),this.input_type="hidden",this.input=this.theme.getFormInputField(this.input_type),this.format&&this.input.setAttribute("data-schemaformat",this.format),this.container.appendChild(this.input),this.schema.template){const e=this.expandCallbacks("template",{template:this.schema.template});typeof e.template=="function"?this.template=e.template:this.template=this.jsoneditor.compileTemplate(this.schema.template,this.template_engine),this.refreshValue()}else this.refreshValue()}}class rv extends Xp{build(){this.options.compact=!1,this.header=this.label=this.theme.getLabelLike(this.getTitle()),this.description=this.theme.getDescription(this.schema.description||""),this.control=this.theme.getFormControl(this.label,this.description,null),this.container.appendChild(this.control)}getTitle(){return this.translateProperty(this.schema.title)}getNumColumns(){return 12}disable(){return!1}enable(){return!1}}class tm extends Or{build(){if(super.build(),typeof this.schema.minimum<"u"){let{minimum:e}=this.schema;typeof this.schema.exclusiveMinimum<"u"&&(e+=1),this.input.setAttribute("min",e)}if(typeof this.schema.maximum<"u"){let{maximum:e}=this.schema;typeof this.schema.exclusiveMaximum<"u"&&(e-=1),this.input.setAttribute("max",e)}if(typeof this.schema.step<"u"){const e=this.schema.step||1;this.input.setAttribute("step",e)}this.setInputAttributes(["maxlength","pattern","readonly","min","max","step"])}getNumColumns(){return 2}getValue(){if(this.dependenciesFulfilled)if(!this.schema.default&&!this.jsoneditor.options.use_default_values&&this.value===""){if(this.shouldBeUnset()){this.input.value="";return}}else return Ib(this.value)?parseFloat(this.value):this.value}}class im extends tm{getNumColumns(){return 2}getValue(){if(this.dependenciesFulfilled)if(!this.schema.default&&!this.jsoneditor.options.use_default_values&&this.value===""){if(this.shouldBeUnset())return}else return zb(this.value)?parseInt(this.value):this.value}}class nv extends Or{preBuild(){if(super.preBuild(),this.schema.options||(this.schema.options={}),!this.schema.options.cleave)switch(this.format){case"ipv6":this.schema.options.cleave={delimiters:[":"],blocks:[4,4,4,4,4,4,4,4],uppercase:!0};break;case"ipv4":this.schema.options.cleave={delimiters:["."],blocks:[3,3,3,3],numericOnly:!0};break}this.options=ct(this.options,this.schema.options||{})}}class sv extends Or{setValue(e,i,r){const s=super.setValue(e,i,r);s!==void 0&&s.changed&&this.jodit_instance&&this.jodit_instance.setEditorValue(s.value)}build(){this.options.format="textarea",super.build(),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}afterInputReady(){let e;window.Jodit?(e=this.expandCallbacks("jodit",ct({},{height:300},this.defaults.options.jodit||{},this.options.jodit||{})),this.jodit_instance=new window.Jodit(this.input,e),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&this.jodit_instance.setReadOnly(!0),this.jodit_instance.events.on("change",()=>{this.value=this.jodit_instance.getEditorValue(),this.is_dirty=!0,this.onChange(!0)}),this.theme.afterInputReady(this.input)):super.afterInputReady()}getNumColumns(){return 6}enable(){!this.always_disabled&&this.jodit_instance&&this.jodit_instance.setReadOnly(!1),super.enable()}disable(e){this.jodit_instance&&this.jodit_instance.setReadOnly(!0),super.disable(e)}destroy(){this.jodit_instance&&(this.jodit_instance.destruct(),this.jodit_instance=null),super.destroy()}}const ov=o=>{const e=o.split(".");if(e.length!==4)throw new Error("error_ipv4");e.forEach(i=>{if(isNaN(+i)||+i<0||+i>255)throw new Error("error_ipv4")})},av=o=>{if(!o.match("^(?:(?:(?:[a-fA-F0-9]{1,4}:){6}|(?=(?:[a-fA-F0-9]{0,4}:){2,6}(?:[0-9]{1,3}.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){1,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[a-fA-F0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}|(?=(?:[a-fA-F0-9]{0,4}:){0,7}[a-fA-F0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[a-fA-F0-9]{1,4}:){7}:|:(:[a-fA-F0-9]{1,4}){7})$"))throw new Error("error_ipv6")},lv=o=>{if(!o.match("(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9].)+[a-zA-Z]{2,63}$)"))throw new Error("error_hostname")};function dv(o,e,i,r){try{switch(o.format){case"ipv4":ov(e);break;case"ipv6":av(e);break;case"hostname":lv(e);break}return[]}catch(s){return[{path:i,property:"format",message:r(s.message)}]}}class rm{constructor(e,i,r,s){this.jsoneditor=e,this.schema=i||this.jsoneditor.schema,this.options=r||{},this.translate=this.jsoneditor.translate||s.translate,this.translateProperty=this.jsoneditor.translateProperty||s.translateProperty,this.defaults=s,this._validateSubSchema={dependentRequired(d,u,p){const m=[];if(typeof d.dependentRequired<"u"){let b=[];Object.keys(d.dependentRequired).forEach(w=>{typeof u[w]<"u"&&(b=d.dependentRequired[w].filter(v=>!jr(u,v)))}),b.length>0&&m.push({message:"Must have the required properties: "+b.join(", "),path:p})}return m},dependentSchemas(d,u,p){let m=[];return Object.keys(d.dependentSchemas).forEach(b=>{if(typeof u[b]<"u"){const w=d.dependentSchemas[b],v=this._validateSchema(w,u,p);m=[...m,...v]}}),m},contains(d,u,p){const m=[];let b=0;u.forEach(v=>{this._validateSchema(d.contains,v,p).length===0&&b++});const w=b===0;return typeof d.minContains<"u"?bd.maxContains&&m.push({message:this.translate("error_maxContains",[b,d.maxContains],d),path:p}),m},if(d,u,p){if(typeof d.then>"u"&&typeof d.else>"u")return[];const m=this._validateSchema(d.if,u,p);let b=[],w=[];return typeof d.then<"u"&&(b=this._validateSchema(d.then,u,p)),typeof d.else<"u"&&(w=this._validateSchema(d.else,u,p)),d.if===!0?b:d.if===!1?w:m.length===0?b:m.length>0?w:[]},const(d,u,p){return JSON.stringify(d.const)===JSON.stringify(u)?[]:[{path:p,property:"const",message:this.translate("error_const",null,d)}]},enum(d,u,p){const m=JSON.stringify(u);return d.enum.some(b=>m===JSON.stringify(b))?[]:[{path:p,property:"enum",message:this.translate("error_enum",null,d)}]},extends(d,u,p){const m=(b,w)=>(b.push(...this._validateSchema(w,u,p)),b);return d.extends.reduce(m,[])},allOf(d,u,p){const m=(b,w)=>(b.push(...this._validateSchema(w,u,p)),b);return d.allOf.reduce(m,[])},anyOf(d,u,p){return d.anyOf.some(m=>!this._validateSchema(m,u,p).length)?[]:[{path:p,property:"anyOf",message:this.translate("error_anyOf",null,d)}]},oneOf(d,u,p){let m=0;const b=[];d.oneOf.forEach((v,j)=>{const D=this._validateSchema(v,u,p);D.length||m++,D.forEach(B=>{B.path=`${p}.oneOf[${j}]${B.path.substr(p.length)}`}),b.push(...D)});const w=[];return m!==1&&(w.push({path:p,property:"oneOf",message:this.translate("error_oneOf",[m],d)}),w.push(...b)),w},not(d,u,p){return this._validateSchema(d.not,u,p).length?[]:[{path:p,property:"not",message:this.translate("error_not",null,d)}]},type(d,u,p){if(Array.isArray(d.type)){if(!d.type.some(m=>this._checkType(m,u)))return[{path:p,property:"type",message:this.translate("error_type_union",null,d)}]}else if(["date","time","datetime-local"].includes(d.format)&&d.type==="integer"){if(!this._checkType("string",`${u}`))return[{path:p,property:"type",message:this.translate("error_type",[d.format],d)}]}else if(!this._checkType(d.type,u))return[{path:p,property:"type",message:this.translate("error_type",[d.type],d)}];return[]},disallow(d,u,p){if(Array.isArray(d.disallow)){if(d.disallow.some(m=>this._checkType(m,u)))return[{path:p,property:"disallow",message:this.translate("error_disallow_union",null,d)}]}else if(this._checkType(d.disallow,u))return[{path:p,property:"disallow",message:this.translate("error_disallow",[d.disallow],d)}];return[]}},this._validateNumberSubSchema={multipleOf(d,u,p){return this._validateNumberSubSchemaMultipleDivisible(d,u,p)},divisibleBy(d,u,p){return this._validateNumberSubSchemaMultipleDivisible(d,u,p)},maximum(d,u,p){let m=d.exclusiveMaximum?ud.minimum:u>=d.minimum;return window.math?m=window.math[d.exclusiveMinimum?"larger":"largerEq"](window.math.bignumber(u),window.math.bignumber(d.minimum)):window.Decimal&&(m=new window.Decimal(u)[d.exclusiveMinimum?"gt":"gte"](new window.Decimal(d.minimum))),m?[]:[{path:p,property:"minimum",message:this.translate(d.exclusiveMinimum?"error_minimum_excl":"error_minimum_incl",[d.minimum],d)}]}},this._validateStringSubSchema={maxLength(d,u,p){const m=[];return`${u}`.length>d.maxLength&&m.push({path:p,property:"maxLength",message:this.translate("error_maxLength",[d.maxLength],d)}),m},minLength(d,u,p){return`${u}`.length{m.push(...this._validateSchema(d.items,b,`${p}.${w}`))});return m},maxItems(d,u,p){return u.length>d.maxItems?[{path:p,property:"maxItems",message:this.translate("error_maxItems",[d.maxItems],d)}]:[]},minItems(d,u,p){return u.lengthd.maxProperties?[{path:p,property:"maxProperties",message:this.translate("error_maxProperties",[d.maxProperties],d)}]:[]},minProperties(d,u,p){return Object.keys(u).length{if(typeof u[b]<"u")return;const w=this.jsoneditor.getEditor(`${p}.${b}`);w&&w.dependenciesFulfilled===!1||w&&["button","info"].includes(w.schema.format||w.schema.type)||m.push({path:p,property:"required",message:this.translate("error_required",[d&&d.properties&&d.properties[b]&&d.properties[b].title?d.properties[b].title:b],d)})}),m},properties(d,u,p,m){const b=[];return Object.entries(d.properties).forEach(([w,v])=>{m[w]=!0,b.push(...this._validateSchema(v,u[w],`${p}.${w}`))}),b},patternProperties(d,u,p,m){const b=[];return Object.entries(d.patternProperties).forEach(([w,v])=>{const j=new RegExp(w);Object.entries(u).forEach(([D,B])=>{j.test(D)&&(m[D]=!0,b.push(...this._validateSchema(v,B,`${p}.${D}`)))})}),b}},this._validateObjectSubSchema2={propertyNames(d,u,p,m){const b=[],w=Object.keys(u);let v=null;for(let j=0;j{let me=!1,$e=null;switch(U){case"maxLength":if(typeof q!="number"){D="error_property_names_maxlength";break}if(v.length>q){D="error_property_names_exceeds_maxlength";break}return!0;case"const":if(q!==v){D="error_property_names_const_mismatch";break}return!0;case"enum":if(!Array.isArray(q)){D="error_property_names_enum";break}if(q.forEach(Fe=>{Fe===v&&(me=!0)}),!me){D="error_property_names_enum_mismatch";break}return!0;case"pattern":if(typeof q!="string"){D="error_property_names_pattern";break}if($e=new RegExp(q),!$e.test(v)){D="error_property_names_pattern_mismatch";break}return!0;default:return b.push({path:p,property:"propertyNames",message:this.translate("error_property_names_unsupported",[U],d)}),!1}return b.push({path:p,property:"propertyNames",message:this.translate(D,[v],d)}),!1}),!B)break}return b},additionalProperties(d,u,p,m){const b=[],w=Object.keys(u);for(let v=0;v{typeof u[b]>"u"||(Array.isArray(w)?w.forEach(v=>{typeof u[v]>"u"&&m.push({path:p,property:"dependencies",message:this.translate("error_dependency",[v],d)})}):m.push(...this._validateSchema(w,u,p)))}),m}}}fitTest(e,i,r=1e7){const s={match:0,extra:0};if(typeof e=="object"&&e!==null){const d=this._getSchema(i);if(d.anyOf){let u={...s};for(const p of d.anyOf){const m=this.fitTest(e,p,r);(m.match>u.match||m.match===u.match&&m.extra"u"?ct({},this.jsoneditor.expandRefs(this.schema)):e}validate(e){return this._validateSchema(this.schema,e)}_validateSchema(e,i,r){const s=[];return r=r||this.jsoneditor.root.formname,e=ct({},this.jsoneditor.expandRefs(e)),typeof i>"u"?this._validateV3Required(e,i,r):(Object.keys(e).forEach(d=>{this._validateSubSchema[d]&&s.push(...this._validateSubSchema[d].call(this,e,i,r))}),s.push(...this._validateByValueType(e,i,r)),e.links&&e.links.forEach((d,u)=>{d.rel&&d.rel.toLowerCase()==="describedby"&&(e=this._expandSchemaLink(e,u),s.push(...this._validateSchema(e,i,r,this.translate)))}),["date","time","datetime-local"].includes(e.format)&&s.push(...this._validateDateTimeSubSchema(e,i,r)),["uuid"].includes(e.format)&&s.push(...this._validateUUIDSchema(e,i,r)),s.push(...this._validateCustomValidator(e,i,r)),this._removeDuplicateErrors(s))}_expandSchemaLink(e,i){const r=e.links[i].href,s=this.jsoneditor.root.getValue(),d=this.jsoneditor.compileTemplate(r,this.jsoneditor.template),u=document.location.origin+document.location.pathname+d(s);return e.links=e.links.slice(0,i).concat(e.links.slice(i+1)),ct({},e,this.jsoneditor.refs[u])}_validateV3Required(e,i,r){return(typeof e.required<"u"&&e.required===!0||typeof e.required>"u"&&this.jsoneditor.options.required_by_default===!0)&&e.type!=="info"?[{path:r,property:"required",message:this.translate("error_notset",null,e)}]:[]}_validateByValueType(e,i,r){const s=[];if(i===null)return s;if(typeof i=="number")Object.keys(e).forEach(d=>{this._validateNumberSubSchema[d]&&s.push(...this._validateNumberSubSchema[d].call(this,e,i,r))});else if(typeof i=="string")Object.keys(e).forEach(d=>{this._validateStringSubSchema[d]&&s.push(...this._validateStringSubSchema[d].call(this,e,i,r))});else if(Array.isArray(i))Object.keys(e).forEach(d=>{this._validateArraySubSchema[d]&&s.push(...this._validateArraySubSchema[d].call(this,e,i,r))});else if(typeof i=="object"){const d={};Object.keys(e).forEach(u=>{this._validateObjectSubSchema[u]&&s.push(...this._validateObjectSubSchema[u].call(this,e,i,r,d))}),typeof e.additionalProperties>"u"&&this.jsoneditor.options.no_additional_properties&&!e.oneOf&&!e.anyOf&&!e.allOf&&(e.additionalProperties=!1),Object.keys(e).forEach(u=>{typeof this._validateObjectSubSchema2[u]<"u"&&s.push(...this._validateObjectSubSchema2[u].call(this,e,i,r,d))})}return s}_validateUUIDSchema(e,i,r){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(i)?[]:[{path:r,property:"format",message:this.translate("error_pattern",["^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"],e)}]}_validateNumberSubSchemaMultipleDivisible(e,i,r){const s=e.multipleOf||e.divisibleBy;let d=i/s===Math.floor(i/s);return window.math?d=window.math.mod(window.math.bignumber(i),window.math.bignumber(s)).equals(0):window.Decimal&&(d=new window.Decimal(i).mod(new window.Decimal(s)).equals(0)),d?[]:[{path:r,property:e.multipleOf?"multipleOf":"divisibleBy",message:this.translate("error_multipleOf",[s],e)}]}_validateDateTimeSubSchema(e,i,r){const s=(w,v,j)=>v*1<1?[{path:j,property:"format",message:this.translate("error_invalid_epoch",null,w)}]:v!==Math.abs(parseInt(v))?[{path:j,property:"format",message:this.translate(`error_${w.format.replace(/-/g,"_")}`,[b],w)}]:[],d=(w,v,j,D)=>{if(v!==""){let B;if(D.flatpickr.config.mode!=="single"){const U=D.flatpickr.config.mode==="range"?D.flatpickr.l10n.rangeSeparator:", ";B=D.flatpickr.selectedDates.map(q=>D.flatpickr.formatDate(q,D.flatpickr.config.dateFormat)).join(U)}try{if(B){if(B!==v)throw new Error(`${D.flatpickr.config.mode} mismatch`)}else if(D.flatpickr.formatDate(D.flatpickr.parseDate(v,D.flatpickr.config.dateFormat),D.flatpickr.config.dateFormat)!==v)throw new Error("mismatch")}catch{const U=D.flatpickr.config.errorDateFormat!==void 0?D.flatpickr.config.errorDateFormat:D.flatpickr.config.dateFormat;return[{path:j,property:"format",message:this.translate(`error_${D.format.replace(/-/g,"_")}`,[U],w)}]}}return[]},u={date:/^(\d{4}\D\d{2}\D\d{2})$/,time:/^(\d{2}:\d{2}(?::\d{2})?)$/,"datetime-local":/^(\d{4}\D\d{2}\D\d{2}[ T]\d{2}:\d{2}(?::\d{2})?)$/},p={date:'"YYYY-MM-DD"',time:'"HH:MM"',"datetime-local":'"YYYY-MM-DD HH:MM"'},m=this.jsoneditor.getEditor(r),b=m&&m.flatpickr?m.flatpickr.config.dateFormat:p[e.format];if(e.type==="integer")return s(e,i,r);if(!m||!m.flatpickr){if(!u[e.format].test(i))return[{path:r,property:"format",message:this.translate(`error_${e.format.replace(/-/g,"_")}`,[b],e)}]}else if(m)return d(e,i,r,m);return[]}_validateCustomValidator(e,i,r){const s=[];s.push(...dv.call(this,e,i,r,this.translate));const d=u=>{s.push(...u.call(this,e,i,r))};return this.defaults.custom_validators.forEach(d),this.options.custom_validators&&this.options.custom_validators.forEach(d),s}_removeDuplicateErrors(e){return e.reduce((i,r)=>{let s=!0;return i||(i=[]),i.forEach(d=>{d.message===r.message&&d.path===r.path&&d.property===r.property&&(d.errorcount++,s=!1)}),s&&(r.errorcount=1,i.push(r)),i},[])}_checkType(e,i){const r={string:s=>typeof s=="string",number:s=>typeof s=="number",integer:s=>typeof s=="number"&&s===Math.floor(s),boolean:s=>typeof s=="boolean",array:s=>Array.isArray(s),object:s=>s!==null&&!Array.isArray(s)&&typeof s=="object",null:s=>s===null};return typeof e=="string"?r[e]?r[e](i):!0:!this._validateSchema(e,i).length}}class hv extends dr{register(){if(this.editors){for(let e=0;e{r&&(this.type===s?(this.keep_only_existing_values&&(i=Vb(r.getValue(),i)),(this.keep_values||this.if)&&r.setValue(i,!0),r.container.style.display=""):r.container.style.display="none")}),this.onChange(!0,!1,{event:"switch",data:{type:this.lastType,path:this.editors[e].path}}),this.refreshValue(),this.refreshHeaderText()}buildChildEditor(e){var i;const r=this.types[e],s=this.theme.getChildEditorHolder();this.editor_holder.appendChild(s);let d;typeof r=="string"?(d=ct({},this.schema),d.type=r):(d=ct({},this.schema,r),d=this.jsoneditor.expandRefs(d),r&&r.required&&Array.isArray(r.required)&&this.schema.required&&Array.isArray(this.schema.required)&&(d.required=this.schema.required.concat(r.required))),(i=d?.options)!=null&&i.dependencies&&delete d.options.dependencies;const u=this.jsoneditor.getEditorClass(d);this.editors[e]=this.jsoneditor.createEditor(u,{jsoneditor:this.jsoneditor,schema:d,container:s,path:this.path,parent:this,required:!0}),this.editors[e].preBuild(),this.editors[e].build(),this.editors[e].postBuild(),this.editors[e].header&&this.theme.visuallyHidden(this.editors[e].header),this.editors[e].option=this.switcher_options[e],s.addEventListener("change_header_text",()=>{this.refreshHeaderText()}),e!==this.type&&(s.style.display="none")}preBuild(){if(this.types=[],this.type=0,this.editors=[],this.validators=[],this.keep_values=!0,typeof this.jsoneditor.options.keep_oneof_values<"u"&&(this.keep_values=this.jsoneditor.options.keep_oneof_values),typeof this.options.keep_oneof_values<"u"&&(this.keep_values=this.options.keep_oneof_values),this.keep_only_existing_values=!1,typeof this.jsoneditor.options.keep_only_existing_values<"u"&&(this.keep_only_existing_values=this.jsoneditor.options.keep_only_existing_values),typeof this.options.keep_only_existing_values<"u"&&(this.keep_only_existing_values=this.options.keep_only_existing_values),this.schema.oneOf)this.oneOf=!0,this.types=this.schema.oneOf,delete this.schema.oneOf;else if(this.schema.anyOf)this.anyOf=!0,this.types=this.schema.anyOf,delete this.schema.anyOf;else if(this.schema.if)this.if=!0,this.ifSchema=JSON.parse(JSON.stringify(this.schema.if)),this.thenSchema={title:"then"},this.elseSchema={title:"else"},this.types=[],this.schema.then&&ml(this.thenSchema,this.schema,this.schema.then),this.schema.else&&ml(this.elseSchema,this.schema,this.schema.else),this.types.push(this.thenSchema),this.types.push(this.elseSchema),this.types.forEach(e=>{delete e.if,delete e.then,delete e.else}),delete this.schema.if;else{if(!this.schema.type||this.schema.type==="any"){if(this.types=["string","number","integer","boolean","object","array","null"],this.schema.disallow){let{disallow:e}=this.schema;(typeof e!="object"||!Array.isArray(e))&&(e=[e]);const i=[];this.types.forEach(r=>{e.includes(r)||i.push(r)}),this.types=i}}else Array.isArray(this.schema.type)?this.types=this.schema.type:this.types=[this.schema.type];delete this.schema.type}this.display_text=this.getDisplayText(this.types)}build(){const{container:e}=this;this.header=this.label=this.theme.getLabelLike(this.getTitle(),this.isRequired()),this.switcher=this.theme.getSwitcher(this.display_text),this.switcher.setAttribute("id",this.formname+"switcher"),this.switcherLabel=this.theme.getHiddenLabel(this.formname+" switcher"),this.switcherLabel.setAttribute("for",this.formname+"switcher"),this.if||(this.container.appendChild(this.header),e.appendChild(this.switcherLabel),e.appendChild(this.switcher)),this.switcher.addEventListener("change",r=>{r.preventDefault(),r.stopPropagation(),this.switchEditor(this.display_text.indexOf(r.currentTarget.value)),this.onChange(!0)}),this.editor_holder=document.createElement("div"),e.appendChild(this.editor_holder);const i={};this.jsoneditor.options.custom_validators&&(i.custom_validators=this.jsoneditor.options.custom_validators),this.switcher_options=this.theme.getSwitcherOptions(this.switcher),this.types.forEach((r,s)=>{this.editors[s]=!1;let d;typeof r=="string"?(d=ct({},this.schema),d.type=r):(d=ct({},this.schema,r),r.required&&Array.isArray(r.required)&&this.schema.required&&Array.isArray(this.schema.required)&&(d.required=this.schema.required.concat(r.required))),this.validators[s]=new rm(this.jsoneditor,d,i,this.defaults)}),this.jsoneditor.on("change",()=>{this.switchIf()}),this.switchEditor(0)}onChildEditorChange(e,i){this.editors[this.type]&&(this.refreshValue(),this.refreshHeaderText()),super.onChildEditorChange(e,i)}refreshHeaderText(){const e=this.getDisplayText(this.types);Array.from(this.switcher_options).forEach((i,r)=>{i.textContent=e[r]})}refreshValue(){this.editors[this.type]&&(this.value=this.editors[this.type].getValue())}switchIf(){if(this.ifSchema&&this.value){const e=this.getIfType(this.value);this.lastType!==e&&(this.switchEditor(e),this.editors[this.type].setValue(this.value,!0)),this.switcher.value=this.display_text[this.type]}}getIfType(e){return this.jsoneditor.validator._validateSchema(this.ifSchema,e).length===0?0:1}setValue(e,i){const r=this.type;let s={match:0,extra:0,i:this.type};const d={match:0,i:null};this.validators.forEach((m,b)=>{let w=null;typeof this.anyOf<"u"&&this.anyOf&&(w=m.fitTest(e),(s.matchw.extra)&&(s=w,s.i=b)),!m.validate(e).length&&d.i===null?(d.i=b,w!==null&&(d.match=w.match)):s=d});let u=d.i;typeof this.anyOf<"u"&&this.anyOf&&d.match{e&&e.destroy()}),this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),this.switcher&&this.switcher.parentNode&&this.switcher.parentNode.removeChild(this.switcher),super.destroy()}showValidationErrors(e){if(this.oneOf||this.anyOf){const i=this.oneOf?"oneOf":"anyOf";this.editors.forEach((r,s)=>{if(!r)return;const d=`${this.path}.${i}[${s}]`,u=(p,m)=>{if(m.path.startsWith(d)||m.path===d.substr(0,m.path.length)){const b=ct({},m);m.path.startsWith(d)&&(b.path=this.path+b.path.substr(d.length)),p.push(b)}return p};r.showValidationErrors(e.reduce(u,[]))})}else this.editors.forEach(i=>{i&&i.showValidationErrors(e)})}addLinks(){}}class uv extends dr{getValue(){if(this.dependenciesFulfilled)return null}setValue(){this.onChange()}getNumColumns(){return 2}}const cv={".je-object__title":"display:inline-block",".je-object__controls":"margin:0%200%200%2010px",".je-object__container":"position:relative",".je-object__property-checkbox":"margin:0;height:auto",".property-selector":"width:295px;max-height:160px;padding:5px%200;overflow-y:auto;overflow-x:hidden;padding-left:5px",".property-selector-input":"width:220px;margin-bottom:0;display:inline-block",".json-editor-btntype-toggle":"margin:0%2010px%200%200",".je-edit-json--textarea":"height:170px;width:300px;display:block"};class nm extends dr{constructor(e,i,r){super(e,i),this.currentDepth=r}getChildEditors(){return this.editors}register(){super.register(),this.editors&&Object.values(this.editors).forEach(e=>e.register())}unregister(){super.unregister(),this.editors&&Object.values(this.editors).forEach(e=>e.unregister())}getNumColumns(){return Math.max(Math.min(12,this.maxwidth),3)}enable(){this.always_disabled||(this.editjson_control&&(this.editjson_control.disabled=!1),this.addproperty_button&&(this.addproperty_button.disabled=!1),super.enable(),this.editors&&Object.values(this.editors).forEach(e=>{(e.isActive()||e.isUiOnly)&&e.enable(),e.optInCheckbox.disabled=!1}))}disable(e){e&&(this.always_disabled=!0),this.editjson_control&&(this.editjson_control.disabled=!0),this.addproperty_button&&(this.addproperty_button.disabled=!0),this.hideEditJSON(),super.disable(),this.editors&&Object.values(this.editors).forEach(i=>{(i.isActive()||i.isUiOnly)&&i.disable(e),i.optInCheckbox.disabled=!0})}layoutEditors(){let e,i;if(!this.row_container)return;this.property_order=Object.keys(this.editors),this.property_order=this.property_order.sort((b,w)=>{let v=this.editors[b].schema.propertyOrder,j=this.editors[w].schema.propertyOrder;return typeof v!="number"&&(v=1e3),typeof j!="number"&&(j=1e3),v-j});let r;const s=this.format==="categories",d=[];let u=null,p=null,m;if(this.format==="grid-strict"){let b=0;if(m=[],this.property_order.forEach(w=>{const v=this.editors[w];if(v.property_removed)return;const j=v.options.hidden?0:v.options.grid_columns||v.getNumColumns(),D=v.options.hidden?0:v.options.grid_offset||0,B=v.options.hidden?!1:v.options.grid_break||!1,U=v.options.hidden?0:v.container.offsetHeight,q={key:w,width:j,offset:D,height:U};m.push(q),d[b]=m,B&&(b++,m=[])}),this.layout===JSON.stringify(d))return!1;for(this.layout=JSON.stringify(d),r=document.createElement("div"),e=0;e{const w=this.editors[b];if(w.property_removed)return;let v=!1;const j=w.options.hidden?0:w.options.grid_columns||w.getNumColumns(),D=w.options.hidden?0:w.container.offsetHeight;for(let B=0;BD)&&(v=B);v===!1&&(d.push({width:0,minh:999999,maxh:0,editors:[]}),v=d.length-1),d[v].editors.push({key:b,width:j,height:D}),d[v].width+=j,d[v].minh=Math.min(d[v].minh,D),d[v].maxh=Math.max(d[v].maxh,D)}),e=0;ed[e].editors[b].width)&&(b=i),d[e].editors[i].width*=12/d[e].width,d[e].editors[i].width=Math.floor(d[e].editors[i].width),w+=d[e].editors[i].width;w<12&&(d[e].editors[b].width+=12-w),d[e].width=12}if(this.layout===JSON.stringify(d))return!1;for(this.layout=JSON.stringify(d),r=document.createElement("div"),e=0;e{const U=this.editors[B];if(U.property_removed)return;const q=this.theme.getTabContent(),me=U.schema&&(U.schema.type==="object"||U.schema.type==="array");q.isObjOrArray=me;const $e=this.theme.getGridRow();U.tab||(typeof this.basicPane>"u"?this.addRow(U,w,q):this.addRow(U,w,this.basicPane)),q.id=this.getValidId(U.tab_text.textContent),me?(q.appendChild($e),v.appendChild(q),this.theme.addTopTab(w,U.tab)):(b.appendChild($e),v.childElementCount>0?v.firstChild.isObjOrArray&&(q.appendChild(b),v.insertBefore(q,v.firstChild),this.theme.insertBasicTopTab(U.tab,w),U.basicPane=q):(q.appendChild(b),v.appendChild(q),this.theme.addTopTab(w,U.tab),U.basicPane=q)),U.options.hidden?U.container.style.display="none":this.theme.setGridColumnSize(U.container,12),$e.appendChild(U.container),U.rowPane=q});this.tabPanesContainer.firstChild;)this.tabPanesContainer.removeChild(this.tabPanesContainer.firstChild);const j=this.tabs_holder.parentNode;j.removeChild(j.firstChild),j.appendChild(w),this.tabPanesContainer=v,this.tabs_holder=w;const D=this.theme.getFirstTab(this.tabs_holder);D&&ln(D,"click");return}this.property_order.forEach(b=>{const w=this.editors[b];w.property_removed||(m=this.theme.getGridRow(),r.appendChild(m),w.options.hidden?w.container.style.display="none":this.theme.setGridColumnSize(w.container,12),m.appendChild(w.container))})}for(;this.row_container.firstChild;)this.row_container.removeChild(this.row_container.firstChild);this.row_container.appendChild(r)}getPropertySchema(e){let i=this.schema.properties[e]||{};i=ct({},i);let r=!!this.schema.properties[e];return this.schema.patternProperties&&Object.keys(this.schema.patternProperties).forEach(s=>{new RegExp(s).test(e)&&(i.allOf=i.allOf||[],i.allOf.push(this.schema.patternProperties[s]),r=!0)}),!r&&this.schema.additionalProperties&&typeof this.schema.additionalProperties=="object"&&(i=ct({},this.schema.additionalProperties)),i}preBuild(){if(super.preBuild(),this.editors={},this.cached_editors={},this.format=this.options.layout||this.options.object_layout||this.schema.format||this.jsoneditor.options.object_layout||"normal",this.schema.properties=this.schema.properties||{},this.minwidth=0,this.maxwidth=0,this.options.table_row)Object.entries(this.schema.properties).forEach(([e,i])=>{const r=this.jsoneditor.getEditorClass(i);this.editors[e]=this.jsoneditor.createEditor(r,{jsoneditor:this.jsoneditor,schema:i,path:`${this.path}.${e}`,parent:this,compact:!0,required:!0},this.currentDepth+1),this.editors[e].preBuild();const s=this.editors[e].options.hidden?0:this.editors[e].options.grid_columns||this.editors[e].getNumColumns();this.minwidth+=s,this.maxwidth+=s}),this.no_link_holder=!0;else{if(this.options.table)throw new Error("Not supported yet");this.schema.defaultProperties||(this.jsoneditor.options.display_required_only||this.options.display_required_only?this.schema.defaultProperties=Object.keys(this.schema.properties).filter(e=>this.isRequiredObject({key:e,schema:this.schema.properties[e]})):this.schema.defaultProperties=Object.keys(this.schema.properties)),this.maxwidth+=1,Array.isArray(this.schema.defaultProperties)&&this.schema.defaultProperties.forEach(e=>{this.addObjectProperty(e,!0),this.editors[e]&&(this.minwidth=Math.max(this.minwidth,this.editors[e].options.grid_columns||this.editors[e].getNumColumns()),this.maxwidth+=this.editors[e].options.grid_columns||this.editors[e].getNumColumns())})}this.property_order=Object.keys(this.editors),this.property_order=this.property_order.sort((e,i)=>{let r=this.editors[e].schema.propertyOrder,s=this.editors[i].schema.propertyOrder;return typeof r!="number"&&(r=1e3),typeof s!="number"&&(s=1e3),r-s})}addTab(e){const i=this.rows[e].schema&&(this.rows[e].schema.type==="object"||this.rows[e].schema.type==="array");this.tabs_holder&&(this.rows[e].tab_text=document.createElement("span"),i?this.rows[e].tab_text.textContent=this.rows[e].getHeaderText():this.rows[e].tab_text.textContent=typeof this.schema.basicCategoryTitle>"u"?"Basic":this.schema.basicCategoryTitle,this.rows[e].tab=this.theme.getTopTab(this.rows[e].tab_text,this.getValidId(this.rows[e].tab_text.textContent)),this.rows[e].tab.addEventListener("click",r=>{this.active_tab=this.rows[e].tab,this.refreshTabs(),r.preventDefault(),r.stopPropagation()}))}addRow(e,i,r){const s=this.rows.length,d=e.schema.type==="object"||e.schema.type==="array";this.rows[s]=e,this.rows[s].rowPane=r,d?(this.addTab(s),this.theme.addTopTab(i,this.rows[s].tab)):typeof this.basicTab>"u"?(this.addTab(s),this.basicTab=s,this.basicPane=r,this.theme.addTopTab(i,this.rows[s].tab)):(this.rows[s].tab=this.rows[this.basicTab].tab,this.rows[s].tab_text=this.rows[this.basicTab].tab_text,this.rows[s].rowPane=this.rows[this.basicTab].rowPane)}refreshTabs(e){const i=typeof this.basicTab<"u";let r=!1;this.rows.forEach(s=>{!s.tab||!s.rowPane||!s.rowPane.parentNode||i&&s.tab===this.rows[this.basicTab].tab&&r||(e?s.tab_text.textContent=s.getHeaderText():(i&&s.tab===this.rows[this.basicTab].tab&&(r=!0),s.tab===this.active_tab?this.theme.markTabActive(s):this.theme.markTabInactive(s)))})}build(){const e=this.format==="categories";if(this.rows=[],this.active_tab=null,this.options.table_row)this.editor_holder=this.container,Object.entries(this.editors).forEach(([i,r])=>{const s=this.theme.getTableCell();this.editor_holder.appendChild(s),r.setContainer(s),r.build(),r.postBuild(),r.setOptInCheckbox(r.header),r.setValue(r.getDefault(),!0),this.editors[i].options.hidden&&(s.style.display="none"),this.editors[i].options.input_width&&(s.style.width=this.editors[i].options.input_width)});else{if(this.options.table)throw new Error("Not supported yet");{this.header="",this.options.compact||(this.header=document.createElement("span"),this.header.textContent=this.getTitle()),this.title=this.theme.getHeader(this.header,this.getPathDepth()),this.title.classList.add("je-object__title"),this.controls=this.theme.getButtonHolder(),this.controls.classList.add("je-object__controls"),this.container.appendChild(this.title),this.container.appendChild(this.controls),this.container.classList.add("je-object__container"),this.editjson_holder=this.theme.getModal(),this.editjson_textarea_label=this.theme.getHiddenLabel(this.translate("button_edit_json")),this.editjson_textarea_label.setAttribute("for",this.path+"-edit-json-textarea"),this.editjson_textarea=this.theme.getTextareaInput(),this.editjson_textarea.setAttribute("id",this.path+"-edit-json-textarea"),this.editjson_textarea.setAttribute("aria-labelledby",this.path+"-edit-json-textarea"),this.editjson_textarea.classList.add("je-edit-json--textarea"),this.editjson_save=this.getButton("button_save","save","button_save"),this.editjson_save.classList.add("json-editor-btntype-save"),this.editjson_save.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),this.saveJSON()}),this.editjson_copy=this.getButton("button_copy","copy","button_copy"),this.editjson_copy.classList.add("json-editor-btntype-copy"),this.editjson_copy.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),this.copyJSON()}),this.editjson_cancel=this.getButton("button_cancel","cancel","button_cancel"),this.editjson_cancel.classList.add("json-editor-btntype-cancel"),this.editjson_cancel.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),this.hideEditJSON()}),this.editjson_holder.appendChild(this.editjson_textarea_label),this.editjson_holder.appendChild(this.editjson_textarea),this.editjson_holder.appendChild(this.editjson_save),this.editjson_holder.appendChild(this.editjson_copy),this.editjson_holder.appendChild(this.editjson_cancel),this.addproperty_holder=this.theme.getModal(),this.addproperty_list=document.createElement("div"),this.addproperty_list.classList.add("property-selector"),this.addproperty_add=this.getButton("button_add","add","button_add"),this.addproperty_add.classList.add("json-editor-btntype-add"),this.addproperty_input=this.theme.getFormInputField("text"),this.addproperty_input.setAttribute("placeholder","Property name..."),this.addproperty_input_label=this.theme.getHiddenLabel(this.translate("button_properties")),this.addproperty_input_label.setAttribute("for",this.path+"-property-selector"),this.addproperty_input.classList.add("property-selector-input"),this.addproperty_input.setAttribute("id",this.path+"-property-selector"),this.addproperty_input.setAttribute("aria-labelledby",this.path+"-property-selector"),this.addproperty_add.addEventListener("click",r=>{if(r.preventDefault(),r.stopPropagation(),this.addproperty_input.value){if(this.editors[this.addproperty_input.value]){window.alert("there is already a property with that name");return}this.addObjectProperty(this.addproperty_input.value),this.editors[this.addproperty_input.value]&&this.editors[this.addproperty_input.value].disable();const s=this.editors[this.addproperty_input.value].key,d=this.editors[this.addproperty_input.value].type,u=this.editors[this.addproperty_input.value].path;this.onChange(!0,!1,{event:"add",data:{key:s,type:d,path:u}})}}),this.addproperty_input.addEventListener("input",r=>{r.target.previousSibling.previousSibling.childNodes.forEach(s=>{let d=s.innerText,u=r.target.value;this.options.case_sensitive_property_search||this.jsoneditor.options.case_sensitive_property_search||(d=d.toLowerCase(),u=u.toLowerCase()),d.includes(u)?s.style.display="":s.style.display="none"})}),this.addproperty_holder.appendChild(this.addproperty_list),this.addproperty_holder.appendChild(this.addproperty_input_label),this.addproperty_holder.appendChild(this.addproperty_input),this.addproperty_holder.appendChild(this.addproperty_add);const i=document.createElement("div");i.style.clear="both",this.addproperty_holder.appendChild(i),this.onOutsideModalClickListener=this.onOutsideModalClick.bind(this),document.addEventListener("click",this.onOutsideModalClickListener,!0),this.schema.description&&(this.description=this.theme.getDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.description)),this.error_holder=document.createElement("div"),this.container.appendChild(this.error_holder),this.editor_holder=this.theme.getIndentedPanel(),this.container.appendChild(this.editor_holder),this.row_container=this.theme.getGridContainer(),e?(this.tabs_holder=this.theme.getTopTabHolder(this.getValidId(this.translateProperty(this.schema.title))),this.tabPanesContainer=this.theme.getTopTabContentHolder(this.tabs_holder),this.editor_holder.appendChild(this.tabs_holder)):(this.tabs_holder=this.theme.getTabHolder(this.getValidId(this.translateProperty(this.schema.title))),this.tabPanesContainer=this.theme.getTabContentHolder(this.tabs_holder),this.editor_holder.appendChild(this.row_container)),Object.values(this.editors).forEach(r=>{const s=this.theme.getTabContent(),d=this.theme.getGridColumn(),u=!!(r.schema&&(r.schema.type==="object"||r.schema.type==="array"));if(s.isObjOrArray=u,e){if(u){const p=this.theme.getGridContainer();p.appendChild(d),s.appendChild(p),this.tabPanesContainer.appendChild(s),this.row_container=p}else typeof this.row_container_basic>"u"&&(this.row_container_basic=this.theme.getGridContainer(),s.appendChild(this.row_container_basic),this.tabPanesContainer.childElementCount===0?this.tabPanesContainer.appendChild(s):this.tabPanesContainer.insertBefore(s,this.tabPanesContainer.childNodes[1])),this.row_container_basic.appendChild(d);this.addRow(r,this.tabs_holder,s),s.id=this.getValidId(r.schema.title)}else this.row_container.appendChild(d);r.setContainer(d),r.build(),r.postBuild(),r.setOptInCheckbox(r.header)}),this.rows[0]&&ln(this.rows[0].tab,"click"),this.collapsed=!1,this.collapse_control=this.getButton("","collapse","button_collapse"),this.collapse_control.classList.add("json-editor-btntype-toggle"),this.title.insertBefore(this.collapse_control,this.title.childNodes[0]),this.collapse_control.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),this.collapsed?(this.editor_holder.style.display="",this.collapsed=!1,this.setButtonText(this.collapse_control,"","collapse","button_collapse")):(this.editor_holder.style.display="none",this.collapsed=!0,this.setButtonText(this.collapse_control,"","expand","button_expand"))}),this.options.collapsed&&ln(this.collapse_control,"click"),this.schema.options&&typeof this.schema.options.disable_collapse<"u"?this.schema.options.disable_collapse&&(this.collapse_control.style.display="none"):this.jsoneditor.options.disable_collapse&&(this.collapse_control.style.display="none"),this.editjson_control=this.getButton("JSON","edit","button_edit_json"),this.editjson_control.classList.add("json-editor-btntype-editjson"),this.editjson_control.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),this.toggleEditJSON()}),this.controls.appendChild(this.editjson_control),this.controls.insertBefore(this.editjson_holder,this.controls.childNodes[0]),this.schema.options&&typeof this.schema.options.disable_edit_json<"u"?this.schema.options.disable_edit_json&&(this.editjson_control.style.display="none"):this.jsoneditor.options.disable_edit_json&&(this.editjson_control.style.display="none"),this.addproperty_button=this.getButton("properties","edit_properties","button_object_properties"),this.addproperty_button.classList.add("json-editor-btntype-properties"),this.addproperty_button.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),this.toggleAddProperty()}),this.controls.appendChild(this.addproperty_button),this.controls.insertBefore(this.addproperty_holder,this.controls.childNodes[1]),this.refreshAddProperties(),this.deactivateNonRequiredProperties()}}this.options.table_row?(this.editor_holder=this.container,this.property_order.forEach(i=>{this.editor_holder.appendChild(this.editors[i].container)})):(this.layoutEditors(),this.layoutEditors()),(this.schema.readOnly||this.schema.readonly)&&this.disable()}deactivateNonRequiredProperties(){const e=this.jsoneditor.options.show_opt_in,i=typeof this.options.show_opt_in<"u",r=i&&this.options.show_opt_in===!0,s=i&&this.options.show_opt_in===!1;(r||!s&&e||!i&&e)&&Object.entries(this.editors).forEach(([d,u])=>{this.isRequiredObject(u)||this.editors[d].deactivate()})}showEditJSON(){this.editjson_holder&&(this.hideAddProperty(),this.editjson_holder.style.left=`${this.editjson_control.offsetLeft}px`,this.editjson_holder.style.top=`${this.editjson_control.offsetTop+this.editjson_control.offsetHeight}px`,this.editjson_textarea.value=JSON.stringify(this.getValue(),null,2),this.disable(),this.editjson_holder.style.display="",this.editjson_control.disabled=!1,this.editing_json=!0)}hideEditJSON(){this.editjson_holder&&this.editing_json&&(this.editjson_holder.style.display="none",this.enable(),this.editing_json=!1)}copyJSON(){this.editjson_holder&&navigator.clipboard.writeText(this.editjson_textarea.value).catch(e=>window.alert(e))}saveJSON(){if(this.editjson_holder)try{const e=JSON.parse(this.editjson_textarea.value);this.setValue(e),this.hideEditJSON(),this.onChange(!0)}catch(e){throw window.alert("invalid JSON"),e}}toggleEditJSON(){this.editing_json?this.hideEditJSON():this.showEditJSON()}insertPropertyControlUsingPropertyOrder(e,i,r){let s;this.schema.properties[e]&&(s=this.schema.properties[e].propertyOrder),typeof s!="number"&&(s=1e3),i.propertyOrder=s;for(let d=0;d{r.checked?this.addObjectProperty(e):this.removeObjectProperty(e),this.onChange(!0)}),this.addproperty_checkboxes[e]=r,r}showAddProperty(){this.addproperty_holder&&(this.hideEditJSON(),this.addproperty_holder.style.left=`${this.addproperty_button.offsetLeft}px`,this.addproperty_holder.style.top=`${this.addproperty_button.offsetTop+this.addproperty_button.offsetHeight}px`,this.disable(),this.adding_property=!0,this.addproperty_button.disabled=!1,this.addproperty_holder.style.display="",this.refreshAddProperties())}hideAddProperty(){this.addproperty_holder&&this.adding_property&&(this.addproperty_holder.style.display="none",this.enable(),this.adding_property=!1)}toggleAddProperty(){this.adding_property?this.hideAddProperty():this.showAddProperty()}removeObjectProperty(e){var i,r;if(this.editors[e]){if((r=(i=this.editors[e].schema)==null?void 0:i.options)!=null&&r.dependencies)return;this.editors[e].unregister(),delete this.editors[e],this.refreshValue(),this.layoutEditors()}}getSchemaOnMaxDepth(e){return Object.keys(e).reduce((i,r)=>{switch(r){case"$ref":return i;case"properties":case"items":return{...i,[r]:{}};case"additionalProperties":case"propertyNames":return{...i,[r]:!0};default:return{...i,[r]:e[r]}}},{})}addObjectProperty(e,i){if(!this.editors[e]){if(this.cached_editors[e]){if(this.editors[e]=this.cached_editors[e],i)return;this.editors[e].register()}else{if(!this.canHaveAdditionalProperties()&&(!this.schema.properties||!this.schema.properties[e])&&(!this.schema.patternProperties||!Object.keys(this.schema.patternProperties).find(u=>new RegExp(u).test(e))))return;const r=this.getPropertySchema(e);typeof r.propertyOrder!="number"&&(r.propertyOrder=Object.keys(this.editors).length+1e3);const s=this.jsoneditor.getEditorClass(r),{max_depth:d}=this.jsoneditor.options;if(this.editors[e]=this.jsoneditor.createEditor(s,{jsoneditor:this.jsoneditor,schema:d&&this.currentDepth>=d?this.getSchemaOnMaxDepth(r):r,path:`${this.path}.${e}`,parent:this},this.currentDepth+1),this.editors[e].preBuild(),!i){const u=this.theme.getChildEditorHolder();this.editor_holder.appendChild(u),this.editors[e].setContainer(u),this.editors[e].build(),this.editors[e].postBuild(),this.editors[e].setOptInCheckbox(s.header),this.editors[e].activate()}this.cached_editors[e]=this.editors[e]}i||(this.refreshValue(),this.layoutEditors())}}onOutsideModalClick(e){const i=e.path||e.composedPath&&e.composedPath();this.addproperty_holder&&!this.addproperty_holder.contains(i[0])&&this.adding_property&&(e.preventDefault(),e.stopPropagation(),this.toggleAddProperty())}onChildEditorChange(e,i){this.refreshValue(),super.onChildEditorChange(e,i)}canHaveAdditionalProperties(){return typeof this.schema.additionalProperties=="boolean"?this.schema.additionalProperties:typeof this.schema.additionalProperties=="object"&&this.schema.additionalProperties!==null?!0:typeof this.options.no_additional_properties=="boolean"?!this.options.no_additional_properties:typeof this.jsoneditor.options.no_additional_properties=="boolean"?!this.jsoneditor.options.no_additional_properties:!0}destroy(){Object.values(this.cached_editors).forEach(e=>e.destroy()),this.editor_holder&&(this.editor_holder.innerHTML=""),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.error_holder&&this.error_holder.parentNode&&this.error_holder.parentNode.removeChild(this.error_holder),this.editors=null,this.cached_editors=null,this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),this.editor_holder=null,document.removeEventListener("click",this.onOutsideModalClickListener,!0),super.destroy()}getValue(){if(!this.dependenciesFulfilled)return;const e=super.getValue(),i=r=>typeof r>"u"||r===""||r===Object(r)&&Object.keys(r).length===0&&r.constructor===Object;return e&&(this.jsoneditor.options.remove_empty_properties||this.options.remove_empty_properties)&&Object.keys(e).forEach(r=>{i(e[r])&&delete e[r]}),e&&(this.jsoneditor.options.remove_false_properties||this.options.remove_false_properties)&&Object.keys(e).forEach(r=>{e[r]===!1&&delete e[r]}),e}refreshValue(){this.value={},this.editors&&(Object.keys(this.editors).forEach(e=>{this.editors[e].isActive()&&(this.editors[e].refreshValue(),this.value[e]=this.editors[e].getValue())}),Object.keys(this.editors).forEach(e=>{this.editors[e].isActive()&&this.activateDependentRequired(this.editors[e].key)}),this.adding_property&&this.refreshAddProperties())}activateDependentRequired(e){this.getDependentRequired(e).forEach(i=>{let r;Object.entries(this.cached_editors).forEach(([s,d])=>{d.key===i&&(r=d)}),r&&!r.isActive()&&r.activate()})}getDependentRequired(e){return this.schema.dependentRequired&&jr(this.schema.dependentRequired,e)?this.schema.dependentRequired[e]:[]}refreshAddProperties(){if(this.options.disable_properties||this.options.disable_properties!==!1&&this.jsoneditor.options.disable_properties){this.addproperty_button.style.display="none";return}let e=!1,i=0,r=!1;Object.keys(this.editors).forEach(s=>i++),e=this.canHaveAdditionalProperties()&&!(typeof this.schema.maxProperties<"u"&&i>=this.schema.maxProperties),this.addproperty_checkboxes&&(this.addproperty_list.innerHTML=""),this.addproperty_checkboxes={},Object.keys(this.cached_editors).forEach(s=>{this.addPropertyCheckbox(s),this.isRequiredObject(this.cached_editors[s])&&s in this.editors&&(this.addproperty_checkboxes[s].disabled=!0),typeof this.schema.minProperties<"u"&&i<=this.schema.minProperties?(this.addproperty_checkboxes[s].disabled=this.addproperty_checkboxes[s].checked,this.addproperty_checkboxes[s].checked||(r=!0)):s in this.editors?r=!0:!e&&!jr(this.schema.properties,s)?this.addproperty_checkboxes[s].disabled=!0:(this.addproperty_checkboxes[s].disabled=!1,r=!0)}),this.canHaveAdditionalProperties()&&(r=!0),Object.keys(this.schema.properties).forEach(s=>{this.cached_editors[s]||(r=!0,this.addPropertyCheckbox(s))}),r?this.canHaveAdditionalProperties()?e?this.addproperty_add.disabled=!1:this.addproperty_add.disabled=!0:(this.addproperty_add.style.display="none",this.addproperty_input.style.display="none"):(this.hideAddProperty(),this.addproperty_button.style.display="none")}isRequiredObject(e){if(e)return typeof e.schema.required=="boolean"?e.schema.required:Array.isArray(this.schema.required)?this.schema.required.includes(e.key):!!this.jsoneditor.options.required_by_default}setValue(e,i){e=e||{},(typeof e!="object"||Array.isArray(e))&&(e={}),Object.entries(this.cached_editors).forEach(([r,s])=>{typeof e[r]<"u"?(this.addObjectProperty(r),s.setValue(e[r],i),s.activate(),this.disabled&&s.disable()):!i&&!this.isRequiredObject(s)?this.jsoneditor.options.show_opt_in||this.options.show_opt_in?s.deactivate():this.removeObjectProperty(r):s.setValue(s.getDefault(),i)}),Object.entries(e).forEach(([r,s])=>{this.cached_editors[r]||(this.addObjectProperty(r),this.editors[r]&&this.editors[r].setValue(s,i,!!this.editors[r].template))}),this.refreshValue(),this.layoutEditors(),this.onChange()}showValidationErrors(e){const i=[],r=[];e.forEach(s=>{s.path===this.path?i.push(s):r.push(s)}),this.error_holder&&(i.length?(this.error_holder.innerHTML="",this.error_holder.style.display="",i.forEach(s=>{s.errorcount&&s.errorcount>1&&(s.message+=` (${s.errorcount} errors)`),this.error_holder.appendChild(this.theme.getErrorMessage(s.message))})):this.error_holder.style.display="none"),this.options.table_row&&(i.length?this.theme.addTableRowError(this.container):this.theme.removeTableRowError(this.container)),Object.values(this.editors).forEach(s=>{s.showValidationErrors(r)})}}nm.rules=cv;class pv extends ua{preBuild(){super.preBuild()}build(){this.label="",this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.radioContainer=document.createElement("div"),this.radioGroup=[];const e=r=>{this.setValue(r.currentTarget.value),this.onChange(!0),this.radioGroup.forEach(s=>{s.checked=s.value===this.getValue()})};for(let r=0;r{this.input.parentNode&&this.afterInputReady()})}enable(){if(!this.always_disabled){for(let e=0;e{this.value=this.sceditor_instance.val(),this.sceditor_instance.updateOriginal(),this.is_dirty=!0,this.onChange(!0)}),this.theme.afterInputReady(this.input)}else super.afterInputReady()}getNumColumns(){return 6}enable(){!this.always_disabled&&this.sceditor_instance&&this.sceditor_instance.readOnly(!1),super.enable()}disable(e){this.sceditor_instance&&this.sceditor_instance.readOnly(!0),super.disable(e)}destroy(){this.sceditor_instance&&(this.sceditor_instance.destroy(),this.sceditor_instance=null),super.destroy()}}class fv extends ua{setValue(e,i){if(this.select2_instance){i?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0);const r=this.updateValue(e);this.input.value=r,this.select2v4?this.select2_instance.val(r).trigger("change"):this.select2_instance.select2("val",r),this.onChange(!0)}else super.setValue(e,i)}afterInputReady(){if(window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2&&!this.select2_instance){const e=this.expandCallbacks("select2",ct({},this.defaults.options.select2||{},this.options.select2||{}));this.newEnumAllowed=e.tags=!!e.tags&&this.schema.type==="string",this.select2_instance=window.jQuery(this.input).select2(e),this.select2v4=jr(this.select2_instance.select2,"amd"),this.selectChangeHandler=()=>{const i=this.select2v4?this.select2_instance.val():this.select2_instance.select2("val");this.updateValue(i),this.onChange(!0)},this.select2_instance.on("change",this.selectChangeHandler),this.select2_instance.on("select2-blur",this.selectChangeHandler)}super.afterInputReady()}updateValue(e){let i=this.enum_values[0];return e=this.typecast(e||""),this.enum_values.includes(e)?i=e:this.newEnumAllowed&&(i=this.addNewOption(e)?e:i),this.value=i,i}addNewOption(e){const i=this.typecast(e);let r=!1,s;return!this.enum_values.includes(i)&&i!==""&&(this.enum_options.push(`${i}`),this.enum_display.push(`${i}`),this.enum_values.push(i),this.schema.enum.push(i),s=this.input.querySelector(`option[value="${i}"]`),s?s.removeAttribute("data-select2-tag"):this.select2_instance.append(new Option(i,i,!1,!1)).trigger("change"),r=!0),r}enable(){this.always_disabled||this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!1):this.select2_instance.select2("enable",!0)),super.enable()}disable(e){this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!0):this.select2_instance.select2("enable",!1)),super.disable(e)}destroy(){this.select2_instance&&(this.select2_instance.select2("destroy"),this.select2_instance=null),super.destroy()}}class gv extends ua{setValue(e,i){if(this.selectize_instance){i?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0);const r=this.updateValue(e);this.input.value=r,this.selectize_instance.clear(!0),this.selectize_instance.setValue(r),this.onChange(!0)}else super.setValue(e,i)}afterInputReady(){if(window.jQuery&&window.jQuery.fn&&window.jQuery.fn.selectize&&!this.selectize_instance){const e=this.expandCallbacks("selectize",ct({},this.defaults.options.selectize||{},this.options.selectize||{}));this.newEnumAllowed=e.create=!!e.create&&this.schema.type==="string",this.selectize_instance=window.jQuery(this.input).selectize(e)[0].selectize,this.control.removeEventListener("change",this.multiselectChangeHandler),this.multiselectChangeHandler=i=>{this.updateValue(i),this.onChange(!0)},this.selectize_instance.on("change",this.multiselectChangeHandler)}super.afterInputReady()}updateValue(e){let i=this.enum_values[0];return e=this.typecast(e||""),this.enum_values.includes(e)?i=e:this.newEnumAllowed&&(i=this.addNewOption(e)?e:i),this.value=i,i}addNewOption(e){const i=this.typecast(e);let r=!1;return!this.enum_values.includes(i)&&i!==""&&(this.enum_options.push(`${i}`),this.enum_display.push(`${i}`),this.enum_values.push(i),this.schema.enum.push(i),this.selectize_instance.addItem(i),this.selectize_instance.refreshOptions(!1),r=!0),r}onWatchedFieldChange(){super.onWatchedFieldChange(),this.selectize_instance&&(this.selectize_instance.clear(!0),this.selectize_instance.clearOptions(!0),this.enum_options.forEach((e,i)=>{this.selectize_instance.addOption({value:e,text:this.enum_display[i]})}),this.selectize_instance.addItem(`${this.value}`,!0))}enable(){!this.always_disabled&&this.selectize_instance&&this.selectize_instance.unlock(),super.enable()}disable(e){this.selectize_instance&&this.selectize_instance.lock(),super.disable(e)}destroy(){this.selectize_instance&&(this.selectize_instance.destroy(),this.selectize_instance=null),super.destroy()}}class bv extends Or{build(){this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description)));const e=this.formname.replace(/\W/g,"");if(typeof SignaturePad=="function"){this.input=this.theme.getFormInputField("hidden"),this.container.appendChild(this.input);const i=document.createElement("div");i.classList.add("signature-container");const r=document.createElement("canvas");this.jsoneditor.options.use_name_attributes&&r.setAttribute("name",e),r.classList.add("signature"),i.appendChild(r),this.signaturePad=new window.SignaturePad(r),this.signaturePad.onEnd=()=>{this.signaturePad.isEmpty()?this.input.value="":this.input.value=this.signaturePad.toDataURL(),this.is_dirty=!0,this.refreshValue(),this.watch_listener(),this.jsoneditor.notifyWatchers(this.path),this.parent?this.parent.onChildEditorChange(this):this.jsoneditor.onChange()};const s=document.createElement("div"),d=document.createElement("button");d.classList.add("tiny","button"),d.innerHTML="Clear signature",s.appendChild(d),i.appendChild(s),this.options.compact&&this.container.setAttribute("class",`${this.container.getAttribute("class")} compact`),(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),Array.from(this.inputs).forEach(u=>{r.setAttribute("readOnly","readOnly"),u.disabled=!0})),d.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),this.signaturePad.clear(),this.signaturePad.strokeEnd()}),this.control=this.theme.getFormControl(this.label,i,this.description),this.container.appendChild(this.control),this.refreshValue(),r.width=i.offsetWidth,this.options&&this.options.canvas_height?r.height=this.options.canvas_height:r.height="300"}else{const i=document.createElement("p");i.innerHTML="Signature pad is not available, please include SignaturePad from https://github.com/szimek/signature_pad",this.container.appendChild(i)}}setValue(e){if(typeof SignaturePad=="function"){const i=this.sanitize(e);return this.value===i?void 0:(this.value=i,this.input.value=this.value,this.signaturePad.clear(),e&&e!==""&&this.signaturePad.fromDataURL(e),this.watch_listener(),this.jsoneditor.notifyWatchers(this.path),!1)}}destroy(){this.signaturePad.off(),delete this.signaturePad}}class sm extends Or{setValue(e,i,r){const s=super.setValue(e,i,r);s!==void 0&&s.changed&&this.simplemde_instance&&this.simplemde_instance.value(s.value)}build(){this.options.format="textarea",super.build(),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}afterInputReady(){let e;window.SimpleMDE?(e=this.expandCallbacks("simplemde",ct({},{height:300},this.defaults.options.simplemde||{},this.options.simplemde||{},{element:this.input,forceSync:!0})),this.simplemde_instance=new window.SimpleMDE(e),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&(this.simplemde_instance.codemirror.options.readOnly=!0),this.simplemde_instance.codemirror.on("change",()=>{this.value=this.simplemde_instance.value(),this.is_dirty=!0,this.onChange(!0)}),e.autorefresh&&this.startListening(this.simplemde_instance.codemirror,this.simplemde_instance.codemirror.state.autoRefresh={delay:250}),this.theme.afterInputReady(this.input)):super.afterInputReady()}getNumColumns(){return 6}enable(){!this.always_disabled&&this.simplemde_instance&&(this.simplemde_instance.codemirror.options.readOnly=!1),super.enable()}disable(e){this.simplemde_instance&&(this.simplemde_instance.codemirror.options.readOnly=!0),super.disable(e)}destroy(){this.simplemde_instance&&(this.simplemde_instance.toTextArea(),this.simplemde_instance=null),super.destroy()}startListening(e,i){function r(){e.display.wrapper.offsetHeight?(this.stopListening(e,i),e.display.lastWrapHeight!==e.display.wrapper.clientHeight&&e.refresh()):i.timeout=window.setTimeout(r,i.delay)}i.timeout=window.setTimeout(r,i.delay),i.hurry=()=>{window.clearTimeout(i.timeout),i.timeout=window.setTimeout(r,50)},e.on(window,"mouseup",i.hurry),e.on(window,"keyup",i.hurry)}stopListening(e,i){window.clearTimeout(i.timeout),e.off(window,"mouseup",i.hurry),e.off(window,"keyup",i.hurry)}}const vv={".starrating":"direction:rtl;display:inline-block;white-space:nowrap",".starrating > input":"display:none",".starrating > label:before":"content:'%5C2606';margin:1px;font-size:18px;font-style:normal;font-weight:400;line-height:1;font-family:'Arial';display:inline-block",".starrating > label":"color:%23888;cursor:pointer;margin:8px%200%202px%200",".starrating > label.starrating-display-enabled":"margin:1px%200%200%200",".starrating > input:checked ~ label":"color:%23ffca08",".starrating:not(.readonly) > input:hover ~ label":"color:%23ffca08",".starrating > input:checked ~ label:before":"content:'%5C2605';text-shadow:0%200%201px%20rgba(0%2C20%2C20%2C1)",".starrating:not(.readonly) > input:hover ~ label:before":"content:'%5C2605';text-shadow:0%200%201px%20rgba(0%2C20%2C20%2C1)",".starrating .starrating-display":"position:relative;direction:rtl;text-align:center;font-size:10px;line-height:0px"};class om extends Or{build(){if(this.options.compact||(this.header=this.label=this.theme.getLabelLike(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.ratingContainer=document.createElement("div"),this.ratingContainer.classList.add("starrating"),this.schema.enum===void 0){let r=this.schema.maximum?this.schema.maximum:5;this.schema.exclusiveMaximum&&r--,this.enum_values=[];for(let s=0;s{r.preventDefault(),r.stopPropagation(),this.setValue(r.currentTarget.value),this.onChange(!0)};for(let r=this.enum_values.length-1;r>-1;r--){const s=this.formname+(r+1),d=this.theme.getFormInputField("radio");d.name=`${this.formname}[starrating]`,d.value=this.enum_values[r],d.id=s,d.addEventListener("change",e,!1),this.radioGroup.push(d);const u=document.createElement("label");u.htmlFor=s,u.title=this.enum_values[r],this.options.displayValue&&u.classList.add("starrating-display-enabled");const p=this.theme.getHiddenText("label");p.textContent=r,u.appendChild(p),this.ratingContainer.appendChild(d),this.ratingContainer.appendChild(u)}if(this.options.displayValue&&(this.displayRating=document.createElement("div"),this.displayRating.classList.add("starrating-display"),this.displayRating.innerText=this.enum_values[0],this.ratingContainer.appendChild(this.displayRating)),this.schema.readOnly||this.schema.readonly){this.disable(!0);for(let r=0;rthis.schema.maxItems&&(e=e.slice(0,this.schema.maxItems)),e}setValue(e=[],i){if(e=this.ensureArraySize(e),JSON.stringify(e)===this.serialized)return;let r=!1;e.forEach((s,d)=>{this.rows[d]?this.rows[d].setValue(s):(this.addRow(s),r=!0)});for(let s=e.length;s=this.rows.length,i=this.schema.maxItems&&this.schema.maxItems<=this.rows.length,r=[];this.rows.forEach((b,w)=>{if(b.delete_button){const v=!e;this.setButtonState(b.delete_button,v),r.push(v)}if(b.copy_button){const v=!i;this.setButtonState(b.copy_button,v),r.push(v)}if(b.moveup_button){const v=w!==0;this.setButtonState(b.moveup_button,v),r.push(v)}if(b.movedown_button){const v=w!==this.rows.length-1;this.setButtonState(b.movedown_button,v),r.push(v)}});const s=r.some(b=>b);this.rows.forEach(b=>this.setButtonState(b.controls_cell,s)),this.setButtonState(this.controls_header_cell,s),this.setButtonState(this.table,this.value.length);const d=!(i||this.hide_add_button);this.setButtonState(this.add_row_button,d);const u=!(!this.value.length||e||this.hide_delete_last_row_buttons);this.setButtonState(this.delete_last_row_button,u);const p=!(this.value.length<=1||e||this.hide_delete_all_rows_buttons);this.setButtonState(this.remove_all_rows_button,p);const m=d||u||p;this.setButtonState(this.controls,m)}refreshValue(){this.value=[],this.rows.forEach((e,i)=>{this.value[i]=e.getValue()}),this.serialized=JSON.stringify(this.value)}addRow(e){const i=this.rows.length;this.rows[i]=this.getElementEditor(i);const r=this.rows[i].table_controls;return this.hide_delete_buttons||(this.rows[i].delete_button=this._createDeleteButton(i,r)),this.show_copy_button&&(this.rows[i].copy_button=this._createCopyButton(i,r)),this.hide_move_buttons||(this.rows[i].moveup_button=this._createMoveUpButton(i,r)),this.hide_move_buttons||(this.rows[i].movedown_button=this._createMoveDownButton(i,r)),typeof e<"u"&&this.rows[i].setValue(e),this.rows[i]}_createDeleteButton(e,i){const r=this.getButton("","delete","button_delete_row_title_short");return r.classList.add("delete","json-editor-btntype-delete"),r.setAttribute("data-i",e),r.addEventListener("click",s=>{if(s.preventDefault(),s.stopPropagation(),!this.askConfirmation())return!1;const d=s.currentTarget.getAttribute("data-i")*1,u=this.getValue(),p=this.getValue()[d];u.splice(d,1),this.setValue(u),this.onChange(!0),this.jsoneditor.trigger("deleteRow",p)}),i.appendChild(r),r}_createCopyButton(e,i){const r=this.getButton("","copy","button_copy_row_title_short"),s=this.schema;return r.classList.add("copy","json-editor-btntype-copy"),r.setAttribute("data-i",e),r.addEventListener("click",d=>{d.preventDefault(),d.stopPropagation();const u=d.currentTarget.getAttribute("data-i")*1,p=this.getValue();let m=p[u];s.items.type==="string"&&s.items.format==="uuid"?m=oa():s.items.type==="object"&&s.items.properties&&p.forEach((b,w)=>{if(u===w)for(const v of Object.keys(b))s.items.properties&&s.items.properties[v]&&s.items.properties[v].format==="uuid"&&(m=Object.assign({},p[u]),m[v]=oa())}),p.splice(u+1,0,m),this.setValue(p),this.onChange(!0),this.jsoneditor.trigger("copyRow",this.rows[u+1])}),i.appendChild(r),r}_createMoveUpButton(e,i){const r=this.getButton("","moveup","button_move_up_title");return r.classList.add("moveup","json-editor-btntype-move"),r.setAttribute("data-i",e),r.addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();const d=s.currentTarget.getAttribute("data-i")*1,u=this.getValue();u.splice(d-1,0,u.splice(d,1)[0]),this.setValue(u),this.onChange(!0),this.jsoneditor.trigger("moveRow",this.rows[d-1])}),i.appendChild(r),r}_createMoveDownButton(e,i){const r=this.getButton("","movedown","button_move_down_title");return r.classList.add("movedown","json-editor-btntype-move"),r.setAttribute("data-i",e),r.addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();const d=s.currentTarget.getAttribute("data-i")*1,u=this.getValue();u.splice(d+1,0,u.splice(d,1)[0]),this.setValue(u),this.onChange(!0),this.jsoneditor.trigger("moveRow",this.rows[d+1])}),i.appendChild(r),r}addControls(){this.collapsed=!1,this.toggle_button=this._createToggleButton(),this.title_controls&&(this.title.insertBefore(this.toggle_button,this.title.childNodes[0]),this.toggle_button.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this.setButtonState(this.panel,this.collapsed),this.collapsed?(this.collapsed=!1,this.setButtonText(e.currentTarget,"","collapse","button_collapse")):(this.collapsed=!0,this.setButtonText(e.currentTarget,"","expand","button_expand"))}),this.options.collapsed&&ln(this.toggle_button,"click"),this.schema.options&&typeof this.schema.options.disable_collapse<"u"?this.schema.options.disable_collapse&&(this.toggle_button.style.display="none"):this.jsoneditor.options.disable_collapse&&(this.toggle_button.style.display="none")),this.add_row_button=this._createAddRowButton(),this.delete_last_row_button=this._createDeleteLastRowButton(),this.remove_all_rows_button=this._createRemoveAllRowsButton()}_createToggleButton(){const e=this.getButton("","collapse","button_collapse");return e.classList.add("json-editor-btntype-toggle"),e}_createAddRowButton(){const e=this.getButton(this.getItemTitle(),"add","button_add_row_title",[this.getItemTitle()]);return e.classList.add("json-editor-btntype-add"),e.addEventListener("click",i=>{i.preventDefault(),i.stopPropagation();const r=this.addRow();this.refreshValue(),this.refreshRowButtons(),this.onChange(!0),this.jsoneditor.trigger("addRow",r)}),this.controls.appendChild(e),e}_createDeleteLastRowButton(){const e=this.getButton("button_delete_last","subtract","button_delete_last_title",[this.getItemTitle()]);return e.classList.add("json-editor-btntype-deletelast"),e.addEventListener("click",i=>{if(i.preventDefault(),i.stopPropagation(),!this.askConfirmation())return!1;const r=this.getValue(),s=r.pop();this.setValue(r),this.onChange(!0),this.jsoneditor.trigger("deleteRow",s)}),this.controls.appendChild(e),e}_createRemoveAllRowsButton(){const e=this.getButton("button_delete_all","delete","button_delete_all_title");return e.classList.add("json-editor-btntype-deleteall"),e.addEventListener("click",i=>{if(i.preventDefault(),i.stopPropagation(),!this.askConfirmation())return!1;const r=this.getValue();this.setValue([]),this.onChange(!0),this.jsoneditor.trigger("deleteAllRows",r)}),this.controls.appendChild(e),e}}class wv extends dr{getNumColumns(){return 4}build(){if(this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.hidden&&(this.container.style.display="none"),this.options=this.expandCallbacks("upload",ct({},{title:"Browse",icon:"",auto_upload:!1,hide_input:!1,enable_drag_drop:!1,drop_zone_text:"Drag & Drop file here",drop_zone_top:!1,alt_drop_zone:"",mime_type:"",max_upload_size:0,upload_handler:(r,s,d,u)=>{window.alert(`No upload_handler defined for "${r.path}". You must create your own handler to enable upload to server`)}},this.defaults.options.upload||{},this.options.upload||{})),this.options.mime_type=this.options.mime_type?[].concat(this.options.mime_type):[],this.input=this.theme.getFormInputField("hidden"),this.container.appendChild(this.input),!this.schema.readOnly&&!this.schema.readonly){if(typeof this.options.upload_handler!="function")throw new Error("Upload handler required for upload editor");if(this.uploader=this.theme.getFormInputField("file"),this.uploader.style.display="none",this.options.mime_type.length&&this.uploader.setAttribute("accept",this.options.mime_type),this.options.enable_drag_drop===!0&&this.options.hide_input===!0||(this.clickHandler=r=>{this.uploader.dispatchEvent(new window.MouseEvent("click",{view:window,bubbles:!0,cancelable:!1}))},this.browseButton=this.getButton(this.options.title,this.options.icon,this.options.title),this.browseButton.addEventListener("click",this.clickHandler),this.fileDisplay=this.theme.getFormInputField("input"),this.fileDisplay.setAttribute("readonly",!0),this.fileDisplay.value="No file selected.",this.fileDisplay.addEventListener("dblclick",this.clickHandler),this.fileUploadGroup=this.theme.getInputGroup(this.fileDisplay,[this.browseButton]),this.fileUploadGroup||(this.fileUploadGroup=document.createElement("div"),this.fileUploadGroup.appendChild(this.fileDisplay),this.fileUploadGroup.appendChild(this.browseButton))),this.options.enable_drag_drop===!0){if(this.options.alt_drop_zone!=="")if(this.altDropZone=document.querySelector(this.options.alt_drop_zone),this.altDropZone)this.dropZone=this.altDropZone;else throw new Error(`Error: alt_drop_zone selector "${this.options.alt_drop_zone}" not found!`);else this.dropZone=this.theme.getDropZone(this.options.drop_zone_text);this.dropZone&&(this.dropZone.classList.add("upload-dropzone"),this.dropZone.addEventListener("dblclick",this.clickHandler))}this.uploadHandler=r=>{r.preventDefault(),r.stopPropagation();const s=r.target.files||r.dataTransfer.files;if(s&&s.length)if(this.options.max_upload_size!==0&&s[0].size>this.options.max_upload_size)this.theme.addInputError(this.uploader,`${this.translate("upload_max_size")} ${this.options.max_upload_size}`);else if(this.options.mime_type.length!==0&&!this.isValidMimeType(s[0].type,this.options.mime_type))this.theme.addInputError(this.uploader,`${this.translate("upload_wrong_file_format")} ${this.options.mime_type.toString()}`);else{this.fileDisplay&&(this.fileDisplay.value=s[0].name);let d=new window.FileReader;d.onload=u=>{this.preview_value=u.target.result,this.refreshPreview(s),this.onChange(!0),d=null},d.readAsDataURL(s[0])}},this.uploader.addEventListener("change",this.uploadHandler),this.dragHandler=r=>{const s=r.dataTransfer.items||r.dataTransfer.files,d=s&&s.length&&(this.options.mime_type.length===0||this.isValidMimeType(s[0].type,this.options.mime_type)),u=r.currentTarget.classList&&r.currentTarget.classList.contains("upload-dropzone")&&d;switch((r.currentTarget===window?"w_":"e_")+r.type){case"w_drop":case"w_dragover":u||(r.dataTransfer.dropEffect="none");break;case"e_dragenter":{u?(this.dropZone.classList.add("valid-dropzone"),r.dataTransfer.dropEffect="copy"):this.dropZone.classList.add("invalid-dropzone");break}case"e_dragover":{u&&(r.dataTransfer.dropEffect="copy");break}case"e_dragleave":this.dropZone.classList.remove("valid-dropzone","invalid-dropzone");break;case"e_drop":{this.dropZone.classList.remove("valid-dropzone","invalid-dropzone"),u&&this.uploadHandler(r);break}}u||r.preventDefault()},this.options.enable_drag_drop===!0&&(["dragover","drop"].forEach(r=>{window.addEventListener(r,this.dragHandler,!0)}),["dragenter","dragover","dragleave","drop"].forEach(r=>{this.dropZone.addEventListener(r,this.dragHandler,!0)}))}this.preview=document.createElement("div"),this.control=this.input.controlgroup=this.theme.getFormControl(this.label,this.uploader||this.input,this.description,this.infoButton),this.uploader&&(this.uploader.controlgroup=this.control);const e=this.uploader||this.input,i=document.createElement("div");this.dropZone&&!this.altDropZone&&this.options.drop_zone_top===!0&&i.appendChild(this.dropZone),this.fileUploadGroup&&i.appendChild(this.fileUploadGroup),this.dropZone&&!this.altDropZone&&this.options.drop_zone_top!==!0&&i.appendChild(this.dropZone),i.appendChild(this.preview),e.parentNode.insertBefore(i,e.nextSibling),this.container.appendChild(this.control),window.requestAnimationFrame(()=>{this.afterInputReady()})}afterInputReady(){if(this.value){const e=document.createElement("img");e.style.maxWidth="100%",e.style.maxHeight="100px",e.onload=i=>{this.preview.appendChild(e)},e.onerror=i=>{console.error("upload error",i,i.currentTarget)},e.src=this.container.querySelector("a").href}this.theme.afterInputReady(this.input)}refreshPreview(e){if(this.last_preview===this.preview_value||(this.last_preview=this.preview_value,this.preview.innerHTML="",!this.preview_value))return;const i=e[0],r=this.preview_value.match(/^data:([^;,]+)[;,]/);if(i.mimeType=r?r[1]:"unknown",i.size>0){const d=Math.floor(Math.log(i.size)/Math.log(1024));i.formattedSize=`${parseFloat((i.size/1024**d).toFixed(2))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][d]}`}else i.formattedSize="0 Bytes";const s=this.getButton("button_upload","upload","button_upload");s.addEventListener("click",d=>{d.preventDefault(),s.setAttribute("disabled","disabled"),this.theme.removeInputError(this.uploader),this.theme.getProgressBar&&(this.progressBar=this.theme.getProgressBar(),this.preview.appendChild(this.progressBar)),this.options.upload_handler(this.path,i,{success:u=>{this.setValue(u),this.parent?this.parent.onChildEditorChange(this):this.jsoneditor.onChange(),this.progressBar&&this.preview.removeChild(this.progressBar),s.removeAttribute("disabled")},failure:u=>{this.theme.addInputError(this.uploader,u),this.progressBar&&this.preview.removeChild(this.progressBar),s.removeAttribute("disabled")},updateProgress:u=>{this.progressBar&&(u?this.theme.updateProgressBar(this.progressBar,u):this.theme.updateProgressBarUnknown(this.progressBar))}})}),this.preview.appendChild(this.theme.getUploadPreview(i,s,this.preview_value)),this.options.auto_upload&&(s.dispatchEvent(new window.MouseEvent("click")),s.parentNode.removeChild(s))}enable(){this.always_disabled||(this.uploader&&(this.uploader.disabled=!1),super.enable())}disable(e){e&&(this.always_disabled=!0),this.uploader&&(this.uploader.disabled=!0),super.disable()}setValue(e){this.value!==e&&(this.value=e,this.input.value=this.value,this.onChange())}destroy(){this.options.enable_drag_drop===!0&&(["dragover","drop"].forEach(e=>{window.removeEventListener(e,this.dragHandler,!0)}),["dragenter","dragover","dragleave","drop"].forEach(e=>{this.dropZone.removeEventListener(e,this.dragHandler,!0)}),this.dropZone.removeEventListener("dblclick",this.clickHandler),this.dropZone&&this.dropZone.parentNode&&this.dropZone.parentNode.removeChild(this.dropZone)),this.uploader&&this.uploader.parentNode&&(this.uploader.removeEventListener("change",this.uploadHandler),this.uploader.parentNode.removeChild(this.uploader)),this.browseButton&&this.browseButton.parentNode&&(this.browseButton.removeEventListener("click",this.clickHandler),this.browseButton.parentNode.removeChild(this.browseButton)),this.fileDisplay&&this.fileDisplay.parentNode&&(this.fileDisplay.removeEventListener("dblclick",this.clickHandler),this.fileDisplay.parentNode.removeChild(this.fileDisplay)),this.fileUploadGroup&&this.fileUploadGroup.parentNode&&this.fileUploadGroup.parentNode.removeChild(this.fileUploadGroup),this.preview&&this.preview.parentNode&&this.preview.parentNode.removeChild(this.preview),this.header&&this.header.parentNode&&this.header.parentNode.removeChild(this.header),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),super.destroy()}isValidMimeType(e,i){return i.reduce((r,s)=>r||new RegExp(s.replace(/\*/g,".*"),"gi").test(e),!1)}}class _v extends Or{preBuild(){super.preBuild(),this.schema.default=this.uuid=this.getUuid(),this.schema.options||(this.schema.options={}),this.schema.options.cleave||(this.schema.options.cleave={delimiters:["-"],blocks:[8,4,4,4,12]})}build(){super.build(),this.disable(!0),this.input.setAttribute("readonly","true")}sanitize(e){return this.testUuid(e)||(e=this.uuid),e}setValue(e,i,r){this.testUuid(e)||(e=this.uuid),this.uuid=e,super.setValue(e,i,r)}getUuid(){return oa()}testUuid(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}}class Cv extends Or{postBuild(){window.Picker&&(this.input.type="text"),this.input.style.padding="3px"}setValue(e,i,r){const s=super.setValue(e,i,r);return this.picker_instance&&this.picker_instance.domElement&&s&&s.changed&&this.picker_instance.setColor(s.value,!0),s}getNumColumns(){return 2}afterInputReady(){super.afterInputReady(),this.createPicker(!0)}disable(){if(super.disable(),this.picker_instance&&this.picker_instance.domElement){this.picker_instance.domElement.style.pointerEvents="none";const e=this.picker_instance.domElement.querySelectorAll("button");for(let i=0;i{const d=this.picker_instance.settings.editorFormat,u=this.picker_instance.settings.alpha;this.setValue(d==="hex"?u?s.hex:s.hex.slice(0,7):s[`${d+(u?"a":"")}String`])};!i.popup&&typeof i.onChange!="function"?i.onChange=r:i.popup&&typeof i.onDone!="function"&&(i.onDone=r),this.picker_instance=new window.Picker(i),i.popup||(this.input.style.display="none",this.theme.afterInputReady(this.picker_instance.domElement))}}else this.picker_instance&&(this.picker_instance.destroy(),this.picker_instance=null,this.input.style.display="")}}const fl={ace:Ub,array:ah,arrayChoices:qb,arraySelect2:Zb,arraySelectize:Gb,autocomplete:Yb,base64:Jb,button:Xp,checkbox:Qb,choices:em,datetime:Xb,describedBy:ev,enum:tv,hidden:iv,info:rv,integer:im,ip:nv,jodit:sv,multiple:hv,multiselect:wl,null:uv,number:tm,object:nm,radio:pv,sceditor:mv,select:ua,select2:fv,selectize:gv,signature:bv,simplemde:sm,starrating:om,stepper:yv,string:Or,table:xv,upload:wv,uuid:_v,colorpicker:Cv},kv="html",Ev="default",Dv={},Av={},Lv={},Sv={},am={},Tv=[],lh="en",Fv=lh;am.en={error_notset:"Property must be set",error_notempty:"Value required",error_enum:"Value must be one of the enumerated values",error_const:"Value must be the constant value",error_anyOf:"Value must validate against at least one of the provided schemas",error_oneOf:"Value must validate against exactly one of the provided schemas. It currently validates against {{0}} of the schemas.",error_not:"Value must not validate against the provided schema",error_type_union:"Value must be one of the provided types",error_type:"Value must be of type {{0}}",error_disallow_union:"Value must not be one of the provided disallowed types",error_disallow:"Value must not be of type {{0}}",error_multipleOf:"Value must be a multiple of {{0}}",error_maximum_excl:"Value must be less than {{0}}",error_maximum_incl:"Value must be at most {{0}}",error_minimum_excl:"Value must be greater than {{0}}",error_minimum_incl:"Value must be at least {{0}}",error_maxLength:"Value must be at most {{0}} characters long",error_contains:"No items match contains",error_minContains:"Contains match count {{0}} is less than minimum contains count of {{1}}",error_maxContains:"Contains match count {{0}} exceeds maximum contains count of {{1}}",error_minLength:"Value must be at least {{0}} characters long",error_pattern:"Value must match the pattern {{0}}",error_additionalItems:"No additional items allowed in this array",error_maxItems:"Value must have at most {{0}} items",error_minItems:"Value must have at least {{0}} items",error_uniqueItems:"Array must have unique items",error_maxProperties:"Object must have at most {{0}} properties",error_minProperties:"Object must have at least {{0}} properties",error_required:"Object is missing the required property '{{0}}'",error_additional_properties:"No additional properties allowed, but property {{0}} is set",error_property_names_exceeds_maxlength:"Property name {{0}} exceeds maxLength",error_property_names_enum_mismatch:"Property name {{0}} does not match any enum values",error_property_names_const_mismatch:"Property name {{0}} does not match the const value",error_property_names_pattern_mismatch:"Property name {{0}} does not match pattern",error_property_names_false:"Property name {{0}} fails when propertyName is false",error_property_names_maxlength:"Property name {{0}} cannot match invalid maxLength",error_property_names_enum:"Property name {{0}} cannot match invalid enum",error_property_names_pattern:"Property name {{0}} cannot match invalid pattern",error_property_names_unsupported:"Unsupported propertyName {{0}}",error_dependency:"Must have property {{0}}",error_date:"Date must be in the format {{0}}",error_time:"Time must be in the format {{0}}",error_datetime_local:"Datetime must be in the format {{0}}",error_invalid_epoch:"Date must be greater than 1 January 1970",error_ipv4:"Value must be a valid IPv4 address in the form of 4 numbers between 0 and 255, separated by dots",error_ipv6:"Value must be a valid IPv6 address",error_hostname:"The hostname has the wrong format",upload_max_size:"Filesize too large. Max size is ",upload_wrong_file_format:"Wrong file format. Allowed format(s): ",button_save:"Save",button_copy:"Copy",button_cancel:"Cancel",button_add:"Add",button_delete_all:"All",button_delete_all_title:"Delete All",button_delete_last:"Last {{0}}",button_delete_last_title:"Delete Last {{0}}",button_add_row_title:"Add {{0}}",button_move_down_title:"Move down",button_move_up_title:"Move up",button_properties:"Properties",button_object_properties:"Object Properties",button_copy_row_title:"Copy {{0}}",button_delete_row_title:"Delete {{0}}",button_delete_row_title_short:"Delete",button_copy_row_title_short:"Copy",button_collapse:"Collapse",button_expand:"Expand",button_edit_json:"Edit JSON",button_upload:"Upload",flatpickr_toggle_button:"Toggle",flatpickr_clear_button:"Clear",choices_placeholder_text:"Start typing to add value",default_array_item_title:"item",button_delete_node_warning:"Are you sure you want to remove this item?",table_controls:"Controls",paste_max_length_reached:"Pasted text exceeded maximum length of {{0}} and will be clipped."};Object.entries(fl).forEach(([o,e])=>{fl[o].options=e.options||{}});function Mv(o,e,i){console.log("Upload handler required for upload editor")}function $v(o,e,i){let r={};i&&i.options&&i.options.error_messages&&i.options.error_messages[vs.language]&&(r=i.options.error_messages[vs.language]);const s=vs.languages[vs.language];if(!s)throw new Error(`Unknown language ${vs.language}`);let d=r[o]||s[o]||vs.languages[lh][o]||o;if(e)for(let u=0;u{i.anyOf[r]=this.expandSchema(s)})},dependencies(i){Object.entries(i.dependencies).forEach(([r,s])=>{typeof s=="object"&&!Array.isArray(s)&&(i.dependencies[r]=this.expandSchema(s))})},not(i){i.not=this.expandSchema(i.not)}},this._subSchema2={allOf(i,r){let s=ct({},r);return Object.entries(i.allOf).forEach(([d,u])=>{i.allOf[d]=this.expandRefs(u,!0),s=this.extendSchemas(s,this.expandSchema(u))}),delete s.allOf,s},extends(i,r){let s;return Array.isArray(i.extends)?s=i.extends.reduce((d,u,p)=>this.extendSchemas(d,this.expandSchema(u)),r):s=this.extendSchemas(r,this.expandSchema(i.extends)),delete s.extends,s},oneOf(i,r){const s=ct({},r);return delete s.oneOf,i.oneOf.reduce((d,u,p)=>(d.oneOf[p]=this.extendSchemas(this.expandSchema(u),s),d),r),r}}}async load(e,i,r){return this.schema=e,await this._asyncloadExternalRefs(e,i,this._getFileBase(r),!0),this.expandRefs(e)}expandRefs(e,i){const r=ct({},e);if(!r.$ref)return r;const s=r.$ref.split("#");if(s.length===2&&!this.refs_with_info[r.$ref]){const m=this.expandRecursivePointer(this.schema,s[1]),b=this.extendSchemas(r,this.expandSchema(m));return delete b.$ref,b}const d=s.length>2?this.refs_with_info["#"+s[1]]:this.refs_with_info[r.$ref];delete r.$ref;const u=d.$ref.startsWith("#")?d.fetchUrl:"",p=this._getRef(u,d);if(!this.refs[p])console.warn(`reference:'${p}' not found!`);else if(i&&jr(this.refs[p],"allOf")){const m=this.refs[p].allOf;Object.keys(m).forEach(b=>{m[b]=this.expandRefs(m[b],!0)})}return s.length>2?this.extendSchemas(r,this.expandSchema(this.expandRecursivePointer(this.refs[p],s[2]))):this.extendSchemas(r,this.expandSchema(this.refs[p]))}expandRecursivePointer(e,i){let r=e;return i.split("/").slice(1).forEach(s=>{r[s]&&(r=r[s])}),r.$refs&&r.$refs.startsWith("#")?this.expandRecursivePointer(e,r.$refs):r}expandSchema(e){Object.entries(this._subSchema1).forEach(([r,s])=>{e[r]&&s.call(this,e)});let i=ct({},e);return Object.entries(this._subSchema2).forEach(([r,s])=>{e[r]&&(i=s.call(this,e,i))}),this.expandRefs(i)}_getRef(e,i){const r=e+i;return this.refs[r]?r:e+decodeURIComponent(i.$ref)}_expandSubSchema(e){return Array.isArray(e)?e.map(i=>typeof i=="object"?this.expandSchema(i):i):this.expandSchema(e)}_manageRecursivePointer(e,i){Object.keys(e).forEach(r=>{e[r]!==null&&e[r].$ref&&e[r].$ref.indexOf("#")===0&&(e[r].$ref=i+e[r].$ref)})}_getExternalRefs(e,i,r=!1){r||this._manageRecursivePointer(e,i);const s={},d=u=>Object.keys(u).forEach(p=>{s[p]=!0});if(e.$ref&&typeof e.$ref!="object"&&!(e.$ref.indexOf("#")===0&&r)){let u=e.$ref,p="";u.indexOf("#")>0&&(u=u.substr(0,u.indexOf("#"))),u!==e.$ref&&(p=e.$ref.substr(e.$ref.indexOf("#")));const m=this.refs_prefix+this.refs_counter++,b=m+p;e.$ref.substr(0,1)!=="#"&&!this.refs[e.$ref]&&(s[u]=!0),this.refs_with_info[m]={fetchUrl:i,$ref:u},e.$ref=b}return Object.values(e).forEach(u=>{!u||typeof u!="object"||(Array.isArray(u)?Object.values(u).forEach(p=>{p&&typeof p=="object"&&d(this._getExternalRefs(p,i,r))}):(!u.$ref||!(typeof u.$ref=="string"&&u.$ref.startsWith("#")))&&d(this._getExternalRefs(u,i,r)))}),e.id&&typeof e.id=="string"&&e.id.substr(0,4)==="urn:"?this.refs[e.id]=e:e.$id&&typeof e.$id=="string"&&e.$id.substr(0,4)==="urn:"&&(this.refs[e.$id]=e),s}_getFileBase(e){if(!e)return"/";const{ajaxBase:i}=this.options;return typeof i>"u"?this._getFileBaseFromFileLocation(e):i}_getFileBaseFromFileLocation(e){const i=e.split("/");return i.pop(),`${i.join("/")}/`}_joinUrl(e,i){let r=e;return e.substr(0,7)!=="http://"&&e.substr(0,8)!=="https://"&&e.substr(0,5)!=="blob:"&&e.substr(0,5)!=="data:"&&e.substr(0,1)!=="#"&&e.substr(0,1)!=="/"&&(r=i+e),r.indexOf("#")>0&&(r=r.substr(0,r.indexOf("#"))),r}_isUniformResourceName(e){return e.substr(0,4)==="urn:"}async _asyncloadExternalRefs(e,i,r,s=!1){const d=this._getExternalRefs(e,i,s);let u=0;for(const p of Object.keys(d)){if(typeof p>"u"||this.refs[p])continue;if(this._isUniformResourceName(p)){this.refs[p]="loading",u++;const v=this.options.urn_resolver;let j=p;if(typeof v!="function")throw console.log(`No "urn_resolver" callback defined to resolve "${j}"`),new Error(`Must set urn_resolver option to a callback to resolve ${j}`);j.indexOf("#")>0&&(j=j.substr(0,j.indexOf("#")));let D;try{let B;D=await v(j);try{B=JSON.parse(D)}catch(U){throw console.log(U),new Error(`Failed to parse external ref ${j}`)}if(!(typeof B=="boolean"||typeof B=="object")||B===null||Array.isArray(B))throw new Error(`External ref does not contain a valid schema - ${j}`);this.refs[p]=B,await this._asyncloadExternalRefs(B,p,r)}catch(B){throw console.log(B),new Error(`Failed to parse external ref ${j}`)}if(typeof D=="boolean")throw new Error(`External ref does not contain a valid schema - ${j}`);continue}if(!this.options.ajax)throw new Error(`Must set ajax option to true to load external ref ${p}`);u++;let m=this._joinUrl(p,r),b;if(this.options.ajax_cache_responses){const v=this.cacheGet(m);v&&(b=v)}if(!b){const v=await new Promise(j=>{const D=new XMLHttpRequest;this.options.ajaxCredentials&&(D.withCredentials=this.options.ajaxCredentials),D.overrideMimeType("application/json"),D.open("GET",m,!0),D.onload=()=>{j(D)},D.onerror=B=>{j(void 0)},D.send()});if(typeof v>"u")throw new Error(`Failed to fetch ref via ajax - ${p}`);try{b=JSON.parse(v.responseText),this.onSchemaLoaded({schema:b,schemaUrl:m}),this.options.ajax_cache_responses&&this.cacheSet(m,b)}catch(j){throw console.log(j),new Error(`Failed to parse external ref ${m}`)}}if(!(typeof b=="boolean"||typeof b=="object")||b===null||Array.isArray(b))throw new Error(`External ref does not contain a valid schema - ${m}`);this.refs[p]=b;const w=this._getFileBaseFromFileLocation(m);if(m!==p){const v=m.split("/");m=(p.substr(0,1)==="/"?"/":"")+v.pop()}await this._asyncloadExternalRefs(b,m,w)}if(!u)return!0;this.onAllSchemasLoaded()}onSchemaLoaded(e){}onAllSchemasLoaded(){}extendSchemas(e,i){e=ct({},e),i=ct({},i);const r={},s=(p,m)=>(p==="required"||p==="defaultProperties")&&typeof m=="object"&&Array.isArray(m),d=(p,m)=>{s(p,m)?r[p]=m.concat(i[p]).reduce((b,w)=>(b.includes(w)||b.push(w),b),[]):p==="type"&&(typeof m=="string"||Array.isArray(m))?u(m):typeof m=="object"&&!Array.isArray(m)&&m!==null?r[p]=this.extendSchemas(m,i[p]):r[p]=m},u=p=>{typeof p=="string"&&(p=[p]),typeof i.type=="string"&&(i.type=[i.type]),!i.type||!i.type.length?r.type=p:r.type=p.filter(m=>i.type.includes(m)),r.type.length===1&&typeof r.type[0]=="string"?r.type=r.type[0]:r.type.length===0&&delete r.type};return Object.entries(e).forEach(([p,m])=>{typeof i[p]<"u"?d(p,m):r[p]=m}),Object.entries(i).forEach(([p,m])=>{typeof e[p]>"u"&&(r[p]=m)}),r}getCacheKey(e){return["je-cache",e].join("::")}getCacheBuster(){return this.options.ajax_cache_buster||new Date().toISOString().slice(0,10)}cacheSet(e,i){try{window.localStorage.setItem(this.getCacheKey(e),JSON.stringify({cacheBuster:this.getCacheBuster(),schema:i}))}catch(r){console.error(r)}}cacheGet(e){try{const i=window.localStorage.getItem(this.getCacheKey(e));if(i){const r=JSON.parse(i);if(r.cacheBuster&&r.schema&&r.cacheBuster===this.getCacheBuster())return r.schema;this.cacheDelete(e)}}catch(i){console.error(i)}}cacheDelete(e){window.localStorage.removeItem(this.getCacheKey(e))}}const Nv=()=>({compile(o){const e=o.match(/{{\s*([a-zA-Z0-9\-_ .]+)\s*}}/g),i=e&&e.length;if(!i)return()=>o;const r=[],s=d=>{let u=e[d].replace(/[{}]+/g,"").trim().split(".");const p=u.length;let m;if(p>1){let b;m=w=>{for(b=w,d=0;db[u];r.push({s:e[d],r:m})};for(let d=0;d{let u=`${o}`,p;for(let m=0;mwindow.EJS?{compile(o){const e=new window.EJS({text:o});return i=>e.render(i)}}:!1,Hv=()=>window.Handlebars,Iv=()=>window.Hogan?{compile(o){const e=window.Hogan.compile(o);return i=>e.render(i)}}:!1,Pv=()=>window._?{compile(o){return e=>window._.template(o)(e)}}:!1,zv=()=>!window.Mark||!window.Mark.up?!1:{compile(o){return e=>window.Mark.up(o,e)}},Vv=()=>window.Mustache?{compile(o){return e=>window.Mustache.render(o,e)}}:!1,Uv=()=>window.swig,Wv=()=>window._?{compile(o){return e=>window._.template(o)(e)}}:!1,qv={default:Nv,ejs:Rv,handlebars:Hv,hogan:Iv,lodash:Pv,markup:zv,mustache:Vv,swig:Uv,underscore:Wv},Zv={collapse:"",expand:"",delete:"",edit:"",add:"",cancel:"",save:"",moveup:"",movedown:""};class Tn{constructor(e="",i=Zv){this.mapping=i,this.icon_prefix=e}getIconClass(e){return this.mapping[e]?this.icon_prefix+this.mapping[e]:this.icon_prefix+e}getIcon(e){const i=this.getIconClass(e);if(!i)return null;const r=document.createElement("i");return r.classList.add(...i.split(" ")),r}}const Gv="glyphicon glyphicon-",Yv={collapse:"chevron-down",expand:"chevron-right",delete:"trash",edit:"pencil",add:"plus",subtract:"minus",cancel:"floppy-remove",save:"floppy-saved",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"copy",clear:"remove-circle",time:"time",calendar:"calendar",edit_properties:"list"};class Jv extends Tn{constructor(){super(Gv,Yv)}}const Qv="icon-",Kv={collapse:"chevron-down",expand:"chevron-right",delete:"trash",edit:"pencil",add:"plus",subtract:"minus",cancel:"ban-circle",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"copy",clear:"remove-circle",time:"time",calendar:"calendar",edit_properties:"list"};class Xv extends Tn{constructor(){super(Qv,Kv)}}const ey="fa fa-",ty={collapse:"caret-square-o-down",expand:"caret-square-o-right",delete:"times",edit:"pencil",add:"plus",subtract:"minus",cancel:"ban",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"files-o",clear:"times-circle-o",time:"clock-o",calendar:"calendar",edit_properties:"list"};class iy extends Tn{constructor(){super(ey,ty)}}const ry="fas fa-",ny={collapse:"caret-down",expand:"caret-right",delete:"trash",edit:"pen",add:"plus",subtract:"minus",cancel:"ban",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"copy",clear:"times-circle",time:"clock",calendar:"calendar",edit_properties:"list"};class sy extends Tn{constructor(){super(ry,ny)}}const oy="ui-icon ui-icon-",ay={collapse:"triangle-1-s",expand:"triangle-1-e",delete:"trash",edit:"pencil",add:"plusthick",subtract:"minusthick",cancel:"closethick",save:"disk",moveup:"arrowthick-1-n",moveright:"arrowthick-1-e",movedown:"arrowthick-1-s",moveleft:"arrowthick-1-w",copy:"copy",clear:"circle-close",time:"time",calendar:"calendar",edit_properties:"note"};class ly extends Tn{constructor(){super(oy,ay)}}const dy="oi oi-",hy={collapse:"collapse-down",expand:"expand-right",delete:"trash",edit:"pencil",add:"plus",subtract:"minus",cancel:"ban",save:"file",moveup:"arrow-thick-top",moveright:"arrow-thick-right",movedown:"arrow-thick-bottom",moveleft:"arrow-thick-left",copy:"clipboard",clear:"circle-x",time:"clock",calendar:"calendar",edit_properties:"list"};class uy extends Tn{constructor(){super(dy,hy)}}const cy="icon icon-",py={collapse:"arrow-down",expand:"arrow-right",delete:"delete",edit:"edit",add:"plus",subtract:"minus",cancel:"cross",save:"check",moveup:"upward",moveright:"forward",movedown:"downward",moveleft:"back",copy:"copy",clear:"close",time:"time",calendar:"bookmark",edit_properties:"menu"};class my extends Tn{constructor(){super(cy,py)}}const fy="bi bi-",gy={collapse:"chevron-down",expand:"chevron-right",delete:"trash",edit:"pencil",add:"plus",subtract:"dash",cancel:"x-circle",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"clipboard",clear:"x-circle",time:"clock",calendar:"calendar",edit_properties:"list-ul"};class by extends Tn{constructor(){super(fy,gy)}}const vy={bootstrap:by,bootstrap3:Jv,fontawesome3:Xv,fontawesome4:iy,fontawesome5:sy,jqueryui:ly,openiconic:uy,spectre:my},Fc=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find(o=>o in document.documentElement);class Fn{constructor(e,i={disable_theme_rules:!1}){this.jsoneditor=e,Object.keys(i).forEach(r=>{typeof e.options[r]<"u"&&(i[r]=e.options[r])}),this.options=i}getContainer(){return document.createElement("div")}getFloatRightLinkHolder(){const e=document.createElement("div");return e.classList.add("je-float-right-linkholder"),e}getModal(){const e=document.createElement("div");return e.style.display="none",e.classList.add("je-modal"),e}getGridContainer(){return document.createElement("div")}getGridRow(){const e=document.createElement("div");return e.classList.add("row"),e}getGridColumn(){return document.createElement("div")}setGridColumnSize(e,i){}getLink(e){const i=document.createElement("a");return i.setAttribute("href","#"),i.appendChild(document.createTextNode(e)),i}disableHeader(e){e.style.color="#ccc"}disableLabel(e){e.style.color="#ccc"}enableHeader(e){e.style.color=""}enableLabel(e){e.style.color=""}getInfoButton(e){const i=document.createElement("span");i.innerText="ⓘ",i.classList.add("je-infobutton-icon");const r=document.createElement("span");return r.classList.add("je-infobutton-tooltip"),r.innerText=e,i.onmouseover=()=>{r.style.visibility="visible"},i.onmouseleave=()=>{r.style.visibility="hidden"},i.appendChild(r),i}getFormInputLabel(e,i){const r=document.createElement("label");return r.appendChild(document.createTextNode(e)),i&&r.classList.add("required"),r}getLabelLike(e,i){const r=document.createElement("b");return r.appendChild(document.createTextNode(e)),i&&r.classList.add("required"),r}getHeader(e,i){const r=document.createElement("span");return typeof e=="string"?r.textContent=e:r.appendChild(e),r.classList.add("je-header"),r}getCheckbox(){const e=this.getFormInputField("checkbox");return e.classList.add("je-checkbox"),e}getCheckboxLabel(e,i){const r=document.createElement("label");return r.appendChild(document.createTextNode(` ${e}`)),i&&r.classList.add("required"),r}getMultiCheckboxHolder(e,i,r,s){const d=document.createElement("div");return d.classList.add("control-group"),i&&(i.style.display="block",d.appendChild(i),s&&i.appendChild(s)),Object.values(e).forEach(u=>{u.style.display="inline-block",u.style.marginRight="20px",d.appendChild(u)}),r&&d.appendChild(r),d}getFormCheckboxControl(e,i,r){const s=document.createElement("div");return s.appendChild(e),i.style.width="auto",e.insertBefore(i,e.firstChild),r&&s.classList.add("je-checkbox-control--compact"),s}getFormRadio(e){const i=this.getFormInputField("radio");return Object.keys(e).forEach(r=>i.setAttribute(r,e[r])),i.classList.add("je-radio"),i}getFormRadioLabel(e,i){const r=document.createElement("label");return r.appendChild(document.createTextNode(` ${e}`)),i&&r.classList.add("required"),r}getFormRadioControl(e,i,r,s){const d=document.createElement("div");return d.appendChild(e),i.style.width="auto",e.insertBefore(i,e.firstChild),r&&d.classList.add("je-radio-control--compact"),i.tagName.toLowerCase()!=="div"&&s&&e&&i&&(i.setAttribute("id",s),i.setAttribute("aria-labelledby",s),e.setAttribute("for",s)),d}getSelectInput(e,i,r=!1){const s=document.createElement("select");return e&&this.setSelectOptions(s,e,[],r),s}getSwitcher(e){const i=this.getSelectInput(e,!1);return i.classList.add("je-switcher"),i}getSwitcherOptions(e){return e.getElementsByTagName("option")}setSwitcherOptions(e,i,r){this.setSelectOptions(e,i,r)}setSelectOptions(e,i,r=[],s=!1,d=" "){if(e.innerHTML="",s){const u=document.createElement("option");u.setAttribute("value","_placeholder_"),u.textContent=d,u.setAttribute("disabled",""),u.setAttribute("hidden",""),e.appendChild(u)}for(let u=0;u{b?m.value=Number(b):m.value=Number(m.value),m.setAttribute("initialized","1")},u=e.getAttribute("min"),p=e.getAttribute("max");return r.addEventListener("click",()=>{e.getAttribute("initialized")?u?Number(e.value)>Number(u)&&e.stepDown():e.stepDown():d(e,u),ln(e,"change")}),s.addEventListener("click",()=>{e.getAttribute("initialized")?p?Number(e.value){i.value=s.currentTarget.value};return e.addEventListener("change",r,!1),e.addEventListener("input",r,!1),i}getRangeControl(e,i){const r=document.createElement("div");return r.classList.add("je-range-control"),i&&r.appendChild(i),r.appendChild(e),r}getFormInputField(e){const i=document.createElement("input");return i.setAttribute("type",e),i}afterInputReady(e){}getFormControl(e,i,r,s,d){const u=document.createElement("div");return u.classList.add("form-control"),e&&(u.appendChild(e),d&&e.setAttribute("for",d)),(i.type==="checkbox"||i.type==="radio")&&e?(i.style.width="auto",e.insertBefore(i,e.firstChild),s&&e.appendChild(s)):(s&&e&&e.appendChild(s),u.appendChild(i)),i.tagName.toLowerCase()!=="div"&&i&&e&&d&&(e.setAttribute("for",d),i.setAttribute("id",d)),i.tagName.toLowerCase()!=="div"&&i&&r&&(r.setAttribute("id",d+"-description"),i.setAttribute("aria-describedby",d+"-description")),r&&u.appendChild(r),u}getIndentedPanel(){const e=document.createElement("div");return e.classList.add("je-indented-panel"),e}getTopIndentedPanel(){const e=document.createElement("div");return e.classList.add("je-indented-panel--top"),e}getChildEditorHolder(){return document.createElement("div")}getDescription(e){const i=document.createElement("p");return window.DOMPurify?i.innerHTML=window.DOMPurify.sanitize(e):i.textContent=this.cleanText(e),i}getCheckboxDescription(e){return this.getDescription(e)}getFormInputDescription(e){return this.getDescription(e)}getButtonHolder(){return document.createElement("span")}getHeaderButtonHolder(){return this.getButtonHolder()}getFormButtonHolder(e){return this.getButtonHolder()}getButton(e,i,r){const s=document.createElement("button");return s.type="button",this.setButtonText(s,e,i,r),s}getFormButton(e,i,r){return this.getButton(e,i,r)}setButtonText(e,i,r,s){for(;e.firstChild;)e.removeChild(e.firstChild);if(r&&(e.appendChild(r),i=` ${i}`),!this.jsoneditor.options.iconlib||!this.jsoneditor.options.remove_button_labels||!r){const d=document.createElement("span");d.appendChild(document.createTextNode(i)),e.appendChild(d)}s&&e.setAttribute("title",s)}getTableContainer(){return document.createElement("div")}getTable(){return document.createElement("table")}getTableRow(){return document.createElement("tr")}getTableHead(){return document.createElement("thead")}getTableBody(){return document.createElement("tbody")}getTableHeaderCell(e){const i=document.createElement("th");return i.textContent=e,i}getTableCell(){return document.createElement("td")}getErrorMessage(e){const i=document.createElement("p");return i.style=i.style||{},i.style.color="red",i.appendChild(document.createTextNode(e)),i}addInputError(e,i){e.errmsg.setAttribute("role","alert")}removeInputError(e){}addTableRowError(e){}removeTableRowError(e){}getTabHolder(e){const i=typeof e>"u"?"":e,r=document.createElement("div");return r.innerHTML=`
    `,r}getTopTabHolder(e){const i=typeof e>"u"?"":e,r=document.createElement("div");return r.innerHTML=`
    `,r}applyStyles(e,i){Object.keys(i).forEach(r=>e.style[r]=i[r])}closest(e,i){for(;e&&e!==document;)if(e[Fc]){if(e[Fc](i))return e;e=e.parentNode}else return!1;return!1}insertBasicTopTab(e,i){i.firstChild.insertBefore(e,i.firstChild.firstChild)}getTab(e,i){const r=document.createElement("div");return r.appendChild(e),r.id=i,r.classList.add("je-tab"),r}getTopTab(e,i){const r=document.createElement("div");return r.appendChild(e),r.id=i,r.classList.add("je-tab--top"),r}getTabContentHolder(e){return e.children[1]}getTopTabContentHolder(e){return e.children[1]}getTabContent(){return this.getIndentedPanel()}getTopTabContent(){return this.getTopIndentedPanel()}markTabActive(e){this.applyStyles(e.tab,{opacity:1,background:"white"}),typeof e.rowPane<"u"?e.rowPane.style.display="":e.container.style.display=""}markTabInactive(e){this.applyStyles(e.tab,{opacity:.5,background:""}),typeof e.rowPane<"u"?e.rowPane.style.display="none":e.container.style.display="none"}addTab(e,i){e.children[0].appendChild(i)}addTopTab(e,i){e.children[0].appendChild(i)}getBlockLink(){const e=document.createElement("a");return e.classList.add("je-block-link"),e}getBlockLinkHolder(){return document.createElement("div")}getLinksHolder(){return document.createElement("div")}createMediaLink(e,i,r){e.appendChild(i),r.classList.add("je-media"),e.appendChild(r)}createImageLink(e,i,r){e.appendChild(i),i.appendChild(r)}getFirstTab(e){return e.firstChild.firstChild}getInputGroup(e,i){}cleanText(e){const i=document.createElement("div");return i.innerHTML=e,i.textContent||i.innerText}getDropZone(e){const i=document.createElement("div");return i.setAttribute("data-text",e),i.classList.add("je-dropzone"),i}getUploadPreview(e,i,r){const s=document.createElement("div");if(s.classList.add("je-upload-preview"),e.mimeType.substr(0,5)==="image"){const p=document.createElement("img");p.src=r,s.appendChild(p)}const d=document.createElement("div");d.innerHTML+=`Name: ${e.name}
    Type: ${e.type}
    Size: ${e.formattedSize}`,s.appendChild(d),s.appendChild(i);const u=document.createElement("div");return u.style.clear="left",s.appendChild(u),s}getProgressBar(){const e=document.createElement("progress");return e.setAttribute("max",100),e.setAttribute("value",0),e}updateProgressBar(e,i){e&&e.setAttribute("value",i)}updateProgressBarUnknown(e){e&&e.removeAttribute("value")}}const yy={".je-form-input-label":"display:block;margin-bottom:3px;font-weight:bold",".je-form-input-description":"display:inline-block;margin:0;font-size:0.8em;font-style:italic",".je-indented-panel":"padding:5px;margin:10px;border-radius:3px;border:1px%20solid%20%23ddd",".je-child-editor-holder":"margin-bottom:8px",".je-header-button-holder":"display:inline-block;margin-left:10px;font-size:0.8em;vertical-align:middle",".je-table":"margin-bottom:5px;border-bottom:1px%20solid%20%23ccc",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};class lm extends Fn{getFormInputLabel(e,i){const r=super.getFormInputLabel(e,i);return r.classList.add("je-form-input-label"),r}getFormInputDescription(e){const i=super.getFormInputDescription(e);return i.classList.add("je-form-input-label"),i}getIndentedPanel(){const e=super.getIndentedPanel();return e.classList.add("je-indented-panel"),e}getTopIndentedPanel(){return this.getIndentedPanel()}getChildEditorHolder(){const e=super.getChildEditorHolder();return e.classList.add("je-child-editor-holder"),e}getHeaderButtonHolder(){const e=this.getButtonHolder();return e.classList.add("je-header-button-holder"),e}getTable(){const e=super.getTable();return e.classList.add("je-table"),e}addInputError(e,i){const r=this.closest(e,".form-control")||e.controlgroup;e.errmsg?e.errmsg.style.display="block":(e.errmsg=document.createElement("div"),e.errmsg.setAttribute("class","errmsg"),e.errmsg.style=e.errmsg.style||{},e.errmsg.style.color="red",r.appendChild(e.errmsg)),e.errmsg.innerHTML="",e.errmsg.appendChild(document.createTextNode(i)),e.errmsg.setAttribute("role","alert")}removeInputError(e){e.style&&(e.style.borderColor=""),e.errmsg&&(e.errmsg.style.display="none")}}lm.rules=yy;const xy={};class dm extends Fn{getSelectInput(e,i){const r=super.getSelectInput(e);return r.classList.add("form-control"),r}setGridColumnSize(e,i,r){e.classList.add(`col-md-${i}`),r&&e.classList.add(`col-md-offset-${r}`)}afterInputReady(e){e.controlgroup||(e.controlgroup=this.closest(e,".form-group"),this.closest(e,".compact")&&(e.controlgroup.style.marginBottom=0))}getTextareaInput(){const e=document.createElement("textarea");return e.classList.add("form-control"),e}getRangeInput(e,i,r,s,d){return super.getRangeInput(e,i,r,s,d)}getFormInputField(e){const i=super.getFormInputField(e);return e!=="checkbox"&&e!=="radio"&&i.classList.add("form-control"),i}getHiddenLabel(e){const i=document.createElement("label");return i.textContent=e,i.classList.add("sr-only"),i}visuallyHidden(e){e&&e.classList.add("sr-only")}getHiddenText(e){const i=document.createElement("span");return i.textContent=e,i.classList.add("sr-only"),i}getFormControl(e,i,r,s,d){const u=document.createElement("div");return e&&(i.type==="checkbox"||i.type==="radio")?(u.classList.add(i.type),s&&e.appendChild(s),e.insertBefore(i,e.firstChild),u.appendChild(e)):(u.classList.add("form-group"),e&&(e.classList.add("control-label"),u.appendChild(e),s&&e.appendChild(s)),u.appendChild(i)),r&&u.appendChild(r),i.tagName.toLowerCase()!=="div"&&i&&e&&d&&(e.setAttribute("for",d),i.setAttribute("id",d)),i.tagName.toLowerCase()!=="div"&&i&&r&&(r.setAttribute("id",d+"-description"),i.setAttribute("aria-describedby",d+"-description")),u}getIndentedPanel(){const e=document.createElement("div");return e.classList.add("well","well-sm"),e.style.paddingBottom=0,e}getInfoButton(e){const i=document.createElement("span");i.classList.add("glyphicon","glyphicon-info-sign","pull-right"),i.style.padding=".25rem",i.style.position="relative",i.style.display="inline-block";const r=document.createElement("span");return r.style["font-family"]="sans-serif",r.style.visibility="hidden",r.style["background-color"]="rgba(50, 50, 50, .75)",r.style.margin="0 .25rem",r.style.color="#FAFAFA",r.style.padding=".5rem 1rem",r.style["border-radius"]=".25rem",r.style.width="25rem",r.style.position="absolute",r.innerText=e,i.onmouseover=()=>{r.style.visibility="visible"},i.onmouseleave=()=>{r.style.visibility="hidden"},i.appendChild(r),i}getFormInputDescription(e){const i=document.createElement("p");return i.classList.add("help-block"),window.DOMPurify?i.innerHTML=window.DOMPurify.sanitize(e):i.textContent=this.cleanText(e),i}getHeader(e,i){const r=document.createElement("span");return r.classList.add("h3"),typeof e=="string"?r.textContent=e:r.appendChild(e),r}getHeaderButtonHolder(){const e=this.getButtonHolder();return e.style.marginLeft="10px",e}getButtonHolder(){const e=document.createElement("span");return e.classList.add("btn-group"),e}getButton(e,i,r){const s=super.getButton(e,i,r);return s.classList.add("btn","btn-default"),s}getTableContainer(){const e=super.getTableContainer();return e.classList.add("table-responsive"),e}getTable(){const e=document.createElement("table");return e.classList.add("table","table-bordered"),e.style.width="auto",e.style.maxWidth="none",e}addInputError(e,i){e.controlgroup&&(e.controlgroup.classList.add("has-error"),e.errmsg?e.errmsg.style.display="":(e.errmsg=document.createElement("p"),e.errmsg.classList.add("help-block","errormsg"),e.controlgroup.appendChild(e.errmsg)),e.errmsg.textContent=i,e.errmsg.setAttribute("role","alert"))}removeInputError(e){e.errmsg&&(e.errmsg.style.display="none",e.controlgroup.classList.remove("has-error"))}getTabHolder(e){const i=typeof e>"u"?"":e,r=document.createElement("div");return r.innerHTML=`
    `,r}getTopTabHolder(e){const i=typeof e>"u"?"":e,r=document.createElement("div");return r.innerHTML=`
    `,r}getTab(e,i){const r=document.createElement("li");r.setAttribute("role","presentation");const s=document.createElement("a");return s.setAttribute("href",`#${i}`),s.appendChild(e),s.setAttribute("aria-controls",i),s.setAttribute("role","tab"),s.setAttribute("data-toggle","tab"),r.appendChild(s),r}getTopTab(e,i){const r=document.createElement("li");r.setAttribute("role","presentation");const s=document.createElement("a");return s.setAttribute("href",`#${i}`),s.appendChild(e),s.setAttribute("aria-controls",i),s.setAttribute("role","tab"),s.setAttribute("data-toggle","tab"),r.appendChild(s),r}getTabContent(){const e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}getTopTabContent(){const e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}markTabActive(e){e.tab.classList.add("active"),typeof e.rowPane<"u"?e.rowPane.classList.add("active"):e.container.classList.add("active")}markTabInactive(e){e.tab.classList.remove("active"),typeof e.rowPane<"u"?e.rowPane.classList.remove("active"):e.container.classList.remove("active")}getProgressBar(){const e=document.createElement("div");e.classList.add("progress");const i=document.createElement("div");return i.classList.add("progress-bar"),i.setAttribute("role","progressbar"),i.setAttribute("aria-valuenow",0),i.setAttribute("aria-valuemin",0),i.setAttribute("aria-valuenax",100),i.innerHTML="0%",e.appendChild(i),e}updateProgressBar(e,i){if(!e)return;const r=e.firstChild,s=`${i}%`;r.setAttribute("aria-valuenow",i),r.style.width=s,r.innerHTML=s}updateProgressBarUnknown(e){if(!e)return;const i=e.firstChild;e.classList.add("progress","progress-striped","active"),i.removeAttribute("aria-valuenow"),i.style.width="100%",i.innerHTML=""}getInputGroup(e,i){if(!e)return;const r=document.createElement("div");r.classList.add("input-group"),r.appendChild(e);const s=document.createElement("div");s.classList.add("input-group-btn"),r.appendChild(s);for(let d=0;d .form-group":"margin-bottom:0",".json-editor-btn-upload":"margin-top:1rem",".je-noindent .card":"padding:0;border:0",".je-tooltip:hover::before":"display:block;position:absolute;font-size:0.8em;color:%23fff;border-radius:0.2em;content:attr(title);background-color:%23000;margin-top:-2.5em;padding:0.3em",".je-tooltip:hover::after":"display:block;position:absolute;font-size:0.8em;color:%23fff",".select2-container--default .select2-selection--single":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__arrow":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__rendered":"line-height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".selectize-control.form-control":"padding:0",".selectize-dropdown.form-control":"padding:0;height:auto",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"},_y={disable_theme_rules:!1,input_size:"normal",custom_forms:!1,object_indent:!0,object_background:"bg-light",object_text:"",table_border:!1,table_zebrastyle:!1,tooltip:"bootstrap"};class hm extends Fn{constructor(e){super(e,_y)}getSelectInput(e,i){const r=super.getSelectInput(e);return r.classList.add("form-control"),this.options.custom_forms===!1?(this.options.input_size==="small"&&r.classList.add("form-control-sm"),this.options.input_size==="large"&&r.classList.add("form-control-lg")):(r.classList.remove("form-control"),r.classList.add("custom-select"),this.options.input_size==="small"&&r.classList.add("custom-select-sm"),this.options.input_size==="large"&&r.classList.add("custom-select-lg")),r}getContainer(){const e=document.createElement("div");return this.options.object_indent||e.classList.add("je-noindent"),e}setGridColumnSize(e,i,r){e.classList.add(`col-md-${i}`),r&&e.classList.add(`offset-md-${r}`)}afterInputReady(e){if(e.controlgroup)return;const i=e.name;e.id=i;const r=e.parentNode.parentNode.getElementsByTagName("label")[0];r&&(r.htmlFor=i),e.controlgroup=this.closest(e,".form-group")}getTextareaInput(){const e=document.createElement("textarea");return e.classList.add("form-control"),this.options.input_size==="small"&&e.classList.add("form-control-sm"),this.options.input_size==="large"&&e.classList.add("form-control-lg"),e}getRangeInput(e,i,r,s,d){const u=super.getRangeInput(e,i,r,s,d);return this.options.custom_forms===!0&&(u.classList.remove("form-control"),u.classList.add("custom-range")),u}getStepperButtons(e){const i=document.createElement("div"),r=document.createElement("div"),s=document.createElement("div"),d=document.createElement("button");d.setAttribute("type","button");const u=document.createElement("button");u.setAttribute("type","button"),i.appendChild(r),i.appendChild(e),i.appendChild(s),r.appendChild(d),s.appendChild(u),i.classList.add("input-group"),r.classList.add("input-group-prepend"),s.classList.add("input-group-append"),d.classList.add("btn"),d.classList.add("btn-secondary"),d.classList.add("stepper-down"),u.classList.add("btn"),u.classList.add("btn-secondary"),u.classList.add("stepper-up"),e.getAttribute("readonly")&&(d.setAttribute("disabled",!0),u.setAttribute("disabled",!0)),d.textContent="-",u.textContent="+";const p=(w,v)=>{v?w.value=Number(v):w.value=Number(w.value),w.setAttribute("initialized","1")},m=e.getAttribute("min"),b=e.getAttribute("max");return e.addEventListener("change",()=>{e.getAttribute("initialized")||e.setAttribute("initialized","1")}),d.addEventListener("click",()=>{e.getAttribute("initialized")?m?Number(e.value)>Number(m)&&e.stepDown():e.stepDown():p(e,m),ln(e,"change")}),u.addEventListener("click",()=>{e.getAttribute("initialized")?b?Number(e.value){const m=p.firstChild;u.appendChild(m)}),d.appendChild(u),r&&d.appendChild(r),d}getFormRadio(e){const i=this.getFormInputField("radio");for(const r in e)i.setAttribute(r,e[r]);return this.options.custom_forms===!1?i.classList.add("form-check-input"):i.classList.add("custom-control-input"),i}getFormRadioLabel(e,i){const r=document.createElement("label");return this.options.custom_forms===!1?r.classList.add("form-check-label"):r.classList.add("custom-control-label"),r.appendChild(document.createTextNode(e)),r}getFormRadioControl(e,i,r){const s=document.createElement("div");return this.options.custom_forms===!1?s.classList.add("form-check"):s.classList.add("custom-control","custom-radio"),s.appendChild(i),s.appendChild(e),r&&(this.options.custom_forms===!1?s.classList.add("form-check-inline"):s.classList.add("custom-control-inline")),s}getIndentedPanel(){const e=document.createElement("div");return e.classList.add("card","card-body","mb-3"),this.options.object_background&&e.classList.add(this.options.object_background),this.options.object_text&&e.classList.add(this.options.object_text),e}getFormInputDescription(e){const i=document.createElement("small");return i.classList.add("form-text"),window.DOMPurify?i.innerHTML=window.DOMPurify.sanitize(e):i.textContent=this.cleanText(e),i}getHeader(e,i){const r=document.createElement("span");return r.classList.add("h3"),r.classList.add("card-title"),r.classList.add("level-"+i),typeof e=="string"?r.textContent=e:r.appendChild(e),r.style.display="inline-block",r}getHeaderButtonHolder(){return this.getButtonHolder()}getButtonHolder(){const e=document.createElement("span");return e.classList.add("btn-group"),e}getFormButtonHolder(e){const i=this.getButtonHolder();return i.classList.add("d-block"),e==="center"?i.classList.add("text-center"):e==="right"&&i.classList.add("text-right"),i}getButton(e,i,r){const s=super.getButton(e,i,r);return s.classList.add("btn","btn-secondary","btn-sm"),s}getTableContainer(){const e=super.getTableContainer();return e.classList.add("table-responsive"),e}getTable(){const e=document.createElement("table");return e.classList.add("table","table-sm"),this.options.table_border&&e.classList.add("table-bordered"),this.options.table_zebrastyle&&e.classList.add("table-striped"),e}getErrorMessage(e){const i=document.createElement("div");return i.classList.add("alert","alert-danger"),i.setAttribute("role","alert"),i.appendChild(document.createTextNode(e)),i}addInputError(e,i){e.controlgroup&&(e.controlgroup.classList.add("is-invalid"),e.errmsg||(e.errmsg=document.createElement("p"),e.errmsg.classList.add("invalid-feedback"),e.controlgroup.appendChild(e.errmsg),e.errmsg.style.display="block"),e.errmsg.style.display="block",e.errmsg.textContent=i,e.errmsg.setAttribute("role","alert"))}removeInputError(e){e.errmsg&&(e.errmsg.style.display="none",e.controlgroup.classList.remove("is-invalid"))}getTabHolder(e){const i=document.createElement("div"),r=typeof e>"u"?"":e;return i.innerHTML=`
    `,i.classList.add("row"),i}addTab(e,i){e.children[0].children[0].appendChild(i)}getTabContentHolder(e){return e.children[1].children[0]}getTopTabHolder(e){const i=typeof e>"u"?"":e,r=document.createElement("div");return r.classList.add("card"),r.innerHTML=`
    `,r}getTab(e,i){const r=document.createElement("li");r.classList.add("nav-item");const s=document.createElement("a");return s.classList.add("nav-link"),s.setAttribute("href",`#${i}`),s.setAttribute("data-toggle","tab"),s.appendChild(e),r.appendChild(s),r}getTopTab(e,i){const r=document.createElement("li");r.classList.add("nav-item");const s=document.createElement("a");return s.classList.add("nav-link"),s.setAttribute("href",`#${i}`),s.setAttribute("data-toggle","tab"),s.appendChild(e),r.appendChild(s),r}getTabContent(){const e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}getTopTabContent(){const e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}markTabActive(e){e.tab.firstChild.classList.add("active"),typeof e.rowPane<"u"?e.rowPane.classList.add("active"):e.container.classList.add("active")}markTabInactive(e){e.tab.firstChild.classList.remove("active"),typeof e.rowPane<"u"?e.rowPane.classList.remove("active"):e.container.classList.remove("active")}insertBasicTopTab(e,i){i.children[0].children[0].insertBefore(e,i.children[0].children[0].firstChild)}addTopTab(e,i){e.children[0].children[0].appendChild(i)}getTopTabContentHolder(e){return e.children[1].children[0]}getFirstTab(e){return e.firstChild.firstChild.firstChild}getProgressBar(){const e=document.createElement("div");e.classList.add("progress");const i=document.createElement("div");return i.classList.add("progress-bar"),i.setAttribute("role","progressbar"),i.setAttribute("aria-valuenow",0),i.setAttribute("aria-valuemin",0),i.setAttribute("aria-valuenax",100),i.innerHTML="0%",e.appendChild(i),e}updateProgressBar(e,i){if(!e)return;const r=e.firstChild,s=`${i}%`;r.setAttribute("aria-valuenow",i),r.style.width=s,r.innerHTML=s}updateProgressBarUnknown(e){if(!e)return;const i=e.firstChild;e.classList.add("progress","progress-striped","active"),i.removeAttribute("aria-valuenow"),i.style.width="100%",i.innerHTML=""}getBlockLink(){const e=document.createElement("a");return e.classList.add("mb-3","d-inline-block"),e}getLinksHolder(){return document.createElement("div")}getInputGroup(e,i){if(!e)return;const r=document.createElement("div");r.classList.add("input-group"),r.appendChild(e);const s=document.createElement("div");s.classList.add("input-group-append"),r.appendChild(s);for(let d=0;d .form-group":"margin-bottom:0",".json-editor-btn-upload":"margin-top:1rem",".je-noindent .card":"padding:0;border:0",".je-tooltip:hover::before":"display:block;position:absolute;font-size:0.8em;color:%23fff;border-radius:0.2em;content:attr(title);background-color:%23000;margin-top:-2.5em;padding:0.3em",".je-tooltip:hover::after":"display:block;position:absolute;font-size:0.8em;color:%23fff",".select2-container--default .select2-selection--single":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__arrow":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__rendered":"line-height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".selectize-control.form-control":"padding:0",".selectize-dropdown.form-control":"padding:0;height:auto",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"},ky={disable_theme_rules:!1,input_size:"normal",object_indent:!0,object_background:"bg-light",object_text:"",table_border:!1,table_zebrastyle:!1,tooltip:"bootstrap"};class um extends Fn{constructor(e){super(e,ky)}getSelectInput(e,i){const r=super.getSelectInput(e);return r.classList.add("form-control"),r.classList.add("form-select"),this.options.input_size==="small"&&r.classList.add("form-control-sm"),this.options.input_size==="large"&&r.classList.add("form-control-lg"),r}getContainer(){const e=document.createElement("div");return this.options.object_indent||e.classList.add("je-noindent"),e}setGridColumnSize(e,i,r){e.classList.add(`col-md-${i}`),r&&e.classList.add(`offset-md-${r}`)}afterInputReady(e){if(e.controlgroup)return;const i=e.name;e.id=i;const r=e.parentNode.parentNode.getElementsByTagName("label")[0];r&&(r.classList.add("form-label"),r.htmlFor=i),e.controlgroup=this.closest(e,".form-group")}getTextareaInput(){const e=document.createElement("textarea");return e.classList.add("form-control"),this.options.input_size==="small"&&e.classList.add("form-control-sm"),this.options.input_size==="large"&&e.classList.add("form-control-lg"),e}getRangeInput(e,i,r,s,d){const u=super.getRangeInput(e,i,r,s,d);return u.classList.remove("form-control"),u.classList.add("form-range"),u}getStepperButtons(e){const i=document.createElement("div"),r=document.createElement("button");r.setAttribute("type","button");const s=document.createElement("button");s.setAttribute("type","button"),i.appendChild(r),i.appendChild(e),i.appendChild(s),i.classList.add("input-group"),r.classList.add("btn"),r.classList.add("btn-secondary"),r.classList.add("stepper-down"),s.classList.add("btn"),s.classList.add("btn-secondary"),s.classList.add("stepper-up"),e.getAttribute("readonly")&&(r.setAttribute("disabled",!0),s.setAttribute("disabled",!0)),r.textContent="-",s.textContent="+";const d=(m,b)=>{b?m.value=Number(b):m.value=Number(m.value),m.setAttribute("initialized","1")},u=e.getAttribute("min"),p=e.getAttribute("max");return e.addEventListener("change",()=>{e.getAttribute("initialized")||e.setAttribute("initialized","1")}),r.addEventListener("click",()=>{e.getAttribute("initialized")?u?Number(e.value)>Number(u)&&e.stepDown():e.stepDown():d(e,u),ln(e,"change")}),s.addEventListener("click",()=>{e.getAttribute("initialized")?p?Number(e.value){const m=p.firstChild;u.appendChild(m)}),d.appendChild(u),r&&d.appendChild(r),d}getFormRadio(e){const i=this.getFormInputField("radio");for(const r in e)i.setAttribute(r,e[r]);return i.classList.add("form-check-input"),i}getFormRadioLabel(e,i){const r=document.createElement("label");return r.classList.add("form-check-label"),r.appendChild(document.createTextNode(e)),r}getFormRadioControl(e,i,r){const s=document.createElement("div");return s.classList.add("form-check"),s.appendChild(i),s.appendChild(e),r&&s.classList.add("form-check-inline"),s}getIndentedPanel(){const e=document.createElement("div");return e.classList.add("card","card-body","my-3"),this.options.object_background&&e.classList.add(this.options.object_background),this.options.object_text&&e.classList.add(this.options.object_text),e}getFormInputDescription(e){const i=document.createElement("small");return i.classList.add("form-text"),i.classList.add("d-block"),window.DOMPurify?i.innerHTML=window.DOMPurify.sanitize(e):i.textContent=this.cleanText(e),i}getHeader(e,i){const r=document.createElement("span");return r.classList.add("h3"),r.classList.add("card-title"),r.classList.add("level-"+i),typeof e=="string"?r.textContent=e:r.appendChild(e),r.style.display="inline-block",r}getHeaderButtonHolder(){return this.getButtonHolder()}getButtonHolder(){const e=document.createElement("span");return e.classList.add("btn-group"),e}getFormButtonHolder(e){const i=this.getButtonHolder();return i.classList.add("d-block"),e==="center"?i.classList.add("text-center"):e==="right"&&i.classList.add("text-end"),i}getButton(e,i,r){const s=super.getButton(e,i,r);return s.classList.add("btn","btn-secondary","btn-sm"),s}getTableContainer(){const e=super.getTableContainer();return e.classList.add("table-responsive"),e}getTable(){const e=document.createElement("table");return e.classList.add("table","table-sm"),this.options.table_border&&e.classList.add("table-bordered"),this.options.table_zebrastyle&&e.classList.add("table-striped"),e}getErrorMessage(e){const i=document.createElement("div");return i.classList.add("alert","alert-danger"),i.setAttribute("role","alert"),i.appendChild(document.createTextNode(e)),i}addInputError(e,i){e.controlgroup&&(e.controlgroup.classList.add("is-invalid"),e.errmsg||(e.errmsg=document.createElement("p"),e.errmsg.classList.add("invalid-feedback"),e.controlgroup.appendChild(e.errmsg),e.errmsg.style.display="block"),e.errmsg.style.display="block",e.errmsg.textContent=i,e.errmsg.setAttribute("role","alert"))}removeInputError(e){e.errmsg&&(e.errmsg.style.display="none",e.controlgroup.classList.remove("is-invalid"))}getTabHolder(e){const i=document.createElement("div"),r=typeof e>"u"?"":e;return i.innerHTML=`
    `,i.classList.add("row"),i}addTab(e,i){e.children[0].children[0].appendChild(i)}getTabContentHolder(e){return e.children[1].children[0]}getTopTabHolder(e){const i=typeof e>"u"?"":e,r=document.createElement("div");return r.classList.add("card"),r.innerHTML=`
    `,r}getTab(e,i){const r=document.createElement("li");r.classList.add("nav-item");const s=document.createElement("a");return s.classList.add("nav-link"),s.setAttribute("href",`#${i}`),s.setAttribute("data-toggle","tab"),s.appendChild(e),r.appendChild(s),r}getTopTab(e,i){const r=document.createElement("li");r.classList.add("nav-item");const s=document.createElement("a");return s.classList.add("nav-link"),s.setAttribute("href",`#${i}`),s.setAttribute("data-toggle","tab"),s.appendChild(e),r.appendChild(s),r}getTabContent(){const e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}getTopTabContent(){const e=document.createElement("div");return e.classList.add("tab-pane"),e.setAttribute("role","tabpanel"),e}markTabActive(e){e.tab.firstChild.classList.add("active"),typeof e.rowPane<"u"?e.rowPane.classList.add("active"):e.container.classList.add("active")}markTabInactive(e){e.tab.firstChild.classList.remove("active"),typeof e.rowPane<"u"?e.rowPane.classList.remove("active"):e.container.classList.remove("active")}insertBasicTopTab(e,i){i.children[0].children[0].insertBefore(e,i.children[0].children[0].firstChild)}addTopTab(e,i){e.children[0].children[0].appendChild(i)}getTopTabContentHolder(e){return e.children[1].children[0]}getFirstTab(e){return e.firstChild.firstChild.firstChild}getProgressBar(){const e=document.createElement("div");e.classList.add("progress");const i=document.createElement("div");return i.classList.add("progress-bar"),i.setAttribute("role","progressbar"),i.setAttribute("aria-valuenow",0),i.setAttribute("aria-valuemin",0),i.setAttribute("aria-valuenax",100),i.innerHTML="0%",e.appendChild(i),e}updateProgressBar(e,i){if(!e)return;const r=e.firstChild,s=`${i}%`;r.setAttribute("aria-valuenow",i),r.style.width=s,r.innerHTML=s}updateProgressBarUnknown(e){if(!e)return;const i=e.firstChild;e.classList.add("progress","progress-striped","active"),i.removeAttribute("aria-valuenow"),i.style.width="100%",i.innerHTML=""}getBlockLink(){const e=document.createElement("a");return e.classList.add("mb-3","d-inline-block"),e}getLinksHolder(){return document.createElement("div")}getInputGroup(e,i){if(!e)return;const r=document.createElement("div");r.classList.add("input-group"),r.appendChild(e);for(let s=0;s label + .btn-group":"margin-left:1rem",".text-right > button":"margin-right:0%20!important",".text-left > button":"margin-left:0%20!important",".property-selector":"font-size:0.7rem;font-weight:normal;max-height:260px%20!important;width:395px%20!important",".property-selector .form-checkbox":"margin:0",textarea:"width:100%25;min-height:2rem;resize:vertical",table:"border-collapse:collapse",".table td":"padding:0.4rem%200.4rem",".mr-5":"margin-right:1rem%20!important","div[data-schematype]:not([data-schematype='object'])":"transition:0.5s","div[data-schematype]:not([data-schematype='object']):hover":"background-color:%23eee",".je-table-border td":"border:0.05rem%20solid%20%23dadee4%20!important",".btn-info":"font-size:0.5rem;font-weight:bold;height:0.8rem;padding:0.15rem%200;line-height:0.8;margin:0.3rem%200%200.3rem%200.1rem",".je-label + select":"min-width:5rem",".je-label":"font-weight:600",".btn-action.btn-info":"width:0.8rem",".je-border":"border:0.05rem%20solid%20%23dadee4",".je-panel":"padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".je-panel-top":"padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".required:after":"content:%22%20*%22;color:red;font:inherit",".je-align-bottom":"margin-top:auto",".je-desc":"font-size:smaller;margin:0.2rem%200",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem;border:3px%20solid%20white;box-shadow:0px%200px%208px%20rgba(0%2C%200%2C%200%2C%200.3);box-sizing:border-box",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red",".columns .container.je-noindent":"padding-left:0;padding-right:0",".selectize-control.multi .item":"background:var(--primary-color)%20!important",".select2-container--default .select2-selection--single .select2-selection__arrow":"display:none",".select2-container--default .select2-selection--single":"border:none",".select2-container .select2-selection--single .select2-selection__rendered":"padding:0",".select2-container .select2-search--inline .select2-search__field":"margin-top:0",".select2-container--default.select2-container--focus .select2-selection--multiple":"border:0.05rem%20solid%20var(--gray-color)",".select2-container--default .select2-selection--multiple .select2-selection__choice":"margin:0.4rem%200.2rem%200.2rem%200;padding:2px%205px;background-color:var(--primary-color);color:var(--light-color)",".select2-container--default .select2-search--inline .select2-search__field":"line-height:normal",".choices":"margin-bottom:auto",".choices__list--multiple .choices__item":"border:none;background-color:var(--primary-color);color:var(--light-color)",".choices[data-type*='select-multiple'] .choices__button":"border-left:0.05rem%20solid%20%232826a6",".choices__inner":"font-size:inherit;min-height:20px;padding:4px%207.5px%204px%203.75px",".choices[data-type*='select-one'] .choices__inner":"padding-bottom:4px",".choices__list--dropdown .choices__item":"font-size:inherit"},Ay={disable_theme_rules:!1,label_bold:!0,align_bottom:!1,object_indent:!1,object_border:!1,table_border:!1,table_zebrastyle:!1,input_size:"normal"};class mm extends Fn{constructor(e){super(e,Ay)}setGridColumnSize(e,i,r){e.classList.add(`col-${i}`),r&&e.classList.add("col-mx-auto")}getGridContainer(){const e=document.createElement("div");return e.classList.add("container"),this.options.object_indent||e.classList.add("je-noindent"),e}getGridRow(){const e=document.createElement("div");return e.classList.add("columns"),e}getGridColumn(){const e=document.createElement("div");return e.classList.add("column"),this.options.align_bottom&&e.classList.add("je-align-bottom"),e}getIndentedPanel(){const e=document.createElement("div");return e.classList.add("je-panel"),this.options.object_border&&e.classList.add("je-border"),e}getTopIndentedPanel(){const e=document.createElement("div");return e.classList.add("je-panel-top"),this.options.object_border&&e.classList.add("je-border"),e}getHeaderButtonHolder(){return this.getButtonHolder()}getButtonHolder(){const e=super.getButtonHolder();return e.classList.add("btn-group"),e}getFormButtonHolder(e){const i=super.getFormButtonHolder();return i.classList.remove("btn-group"),i.classList.add("d-block"),e==="center"?i.classList.add("text-center"):e==="right"?i.classList.add("text-right"):i.classList.add("text-left"),i}getFormButton(e,i,r){const s=super.getFormButton(e,i,r);return s.classList.add("btn","btn-primary","mx-2","my-1"),this.options.input_size!=="small"&&s.classList.remove("btn-sm"),this.options.input_size==="large"&&s.classList.add("btn-lg"),s}getButton(e,i,r){const s=super.getButton(e,i,r);return s.classList.add("btn","btn-sm","btn-primary","mr-2","my-1"),s}getHeader(e,i){const r=document.createElement("span");return typeof e=="string"?r.textContent=e:r.appendChild(e),r.style.display="inline-block",r}getFormInputDescription(e){const i=super.getFormInputDescription(e);return i.classList.add("je-desc","hide-sm"),i}getFormInputLabel(e,i){const r=super.getFormInputLabel(e,i);return this.options.label_bold&&r.classList.add("je-label"),r}getCheckbox(){return this.getFormInputField("checkbox")}getCheckboxLabel(e,i){const r=super.getCheckboxLabel(e,i),s=document.createElement("i");return s.classList.add("form-icon"),r.classList.add("form-checkbox","pr-0"),r.insertBefore(s,r.firstChild),r}getFormCheckboxControl(e,i,r){return e.insertBefore(i,e.firstChild),r&&e.classList.add("form-inline"),e}getMultiCheckboxHolder(e,i,r,s){return super.getMultiCheckboxHolder(e,i,r,s)}getFormRadio(e){const i=this.getFormInputField("radio");for(const r in e)i.setAttribute(r,e[r]);return i}getFormRadioLabel(e,i){const r=super.getFormRadioLabel(e,i),s=document.createElement("i");return s.classList.add("form-icon"),r.classList.add("form-radio"),r.insertBefore(s,r.firstChild),r}getFormRadioControl(e,i,r){return e.insertBefore(i,e.firstChild),r&&e.classList.add("form-inline"),e}getFormInputField(e){const i=super.getFormInputField(e);return["checkbox","radio"].includes(e)||i.classList.add("form-input"),i}getRangeInput(e,i,r,s,d){const u=super.getRangeInput(e,i,r,s,d);return u.classList.add("slider"),u.classList.remove("form-input"),u.setAttribute("oninput",'this.setAttribute("value", this.value)'),u}getRangeControl(e,i){const r=super.getRangeControl(e,i);return r.classList.add("text-center"),r}getSelectInput(e,i){const r=super.getSelectInput(e);return r.classList.add("form-select"),r}getTextareaInput(){const e=document.createElement("textarea");return e.classList.add("form-input"),e}getFormControl(e,i,r,s,d){const u=document.createElement("div");return u.classList.add("form-group"),e&&(i.type==="checkbox"||i.type==="radio")?(u.classList.add(i.type),s&&e.appendChild(s),e.insertBefore(i,e.firstChild),u.appendChild(e)):(e&&(e.classList.add("form-label"),u.appendChild(e),s&&e.appendChild(s)),u.appendChild(i)),this.options.input_size==="small"?i.classList.add("input-sm","select-sm"):this.options.input_size==="large"&&i.classList.add("input-lg","select-lg"),i.type!=="checkbox"&&u.appendChild(i),r&&u.appendChild(r),i.tagName.toLowerCase()!=="div"&&i&&e&&d&&(e.setAttribute("for",d),i.setAttribute("id",d)),i.tagName.toLowerCase()!=="div"&&i&&r&&(r.setAttribute("id",d+"-description"),i.setAttribute("aria-describedby",d+"-description")),u}getInputGroup(e,i){if(!e)return;const r=document.createElement("div");r.classList.add("input-group"),r.appendChild(e);for(let s=0;s"u"?"":e,r=document.createElement("div");return r.classList.add("columns"),r.innerHTML=`
    `,r}getTopTabHolder(e){const i=typeof e>"u"?"":e,r=document.createElement("div");return r.innerHTML=`
      `,r}getTab(e,i){const r=document.createElement("a");return r.classList.add("btn","btn-secondary","btn-block"),r.setAttribute("href",`#${i}`),r.appendChild(e),r}getTopTab(e,i){const r=document.createElement("li");r.id=i,r.classList.add("tab-item");const s=document.createElement("a");return s.setAttribute("href",`#${i}`),s.appendChild(e),r.appendChild(s),r}markTabActive(e){e.tab.classList.add("active"),typeof e.rowPane<"u"?e.rowPane.style.display="":e.container.style.display=""}markTabInactive(e){e.tab.classList.remove("active"),typeof e.rowPane<"u"?e.rowPane.style.display="none":e.container.style.display="none"}afterInputReady(e){if(e.localName==="select"){if(e.classList.contains("selectized")){const i=e.nextSibling;i&&(i.classList.remove("form-select"),Array.from(i.querySelectorAll(".form-select")).forEach(r=>{r.classList.remove("form-select")}))}else if(e.classList.contains("select2-hidden-accessible")){const i=e.nextSibling;i&&i.querySelector(".select2-selection--single")&&i.classList.add("form-select")}}e.controlgroup||(e.controlgroup=this.closest(e,".form-group"),this.closest(e,".compact")&&(e.controlgroup.style.marginBottom=0))}addInputError(e,i){e.controlgroup&&(e.controlgroup.classList.add("has-error"),e.errmsg||(e.errmsg=document.createElement("p"),e.errmsg.classList.add("form-input-hint"),e.controlgroup.appendChild(e.errmsg)),e.errmsg.classList.remove("d-hide"),e.errmsg.textContent=i,e.errmsg.setAttribute("role","alert"))}removeInputError(e){e.errmsg&&(e.errmsg.classList.add("d-hide"),e.controlgroup.classList.remove("has-error"))}}mm.rules=Dy;const Ly={".slider":"-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;display:block;border:none;height:1.2rem;width:100%25",".slider:focus":"box-shadow:0%200%200%200%20rgba(87%2C%2085%2C%20217%2C%200.2);outline:none",".slider.tooltip:not([data-tooltip])::after":"content:attr(value)",".slider::-webkit-slider-thumb":"-webkit-appearance:none;background:%23f17405;border-radius:100%25;height:0.6rem;margin-top:-0.25rem;transition:transform%200.2s;width:0.6rem",".slider:active::-webkit-slider-thumb":"transform:scale(1.25);outline:none",".slider::-webkit-slider-runnable-track":"background:%23b2b4b6;border-radius:0.1rem;height:0.1rem;width:100%25","a.tooltips":"position:relative;display:inline","a.tooltips span":"position:absolute;white-space:nowrap;width:auto;padding-left:1rem;padding-right:1rem;color:%23ffffff;background:rgba(56%2C%2056%2C%2056%2C%200.85);height:1.5rem;line-height:1.5rem;text-align:center;visibility:hidden;border-radius:3px","a.tooltips span:after":"content:%22%22;position:absolute;top:50%25;left:100%25;margin-top:-5px;width:0;height:0;border-left:5px%20solid%20rgba(56%2C%2056%2C%2056%2C%200.85);border-top:5px%20solid%20transparent;border-bottom:5px%20solid%20transparent","a:hover.tooltips span":"visibility:visible;opacity:0.9;font-size:0.8rem;right:100%25;top:50%25;margin-top:-12px;margin-right:10px;z-index:999",".json-editor-btntype-properties + div":"font-size:0.8rem;font-weight:normal",textarea:"width:100%25;min-height:2rem;resize:vertical",table:"width:100%25;border-collapse:collapse",".table td":"padding:0rem%200rem","div[data-schematype]:not([data-schematype='object'])":"transition:0.5s","div[data-schematype]:not([data-schematype='object']):hover":"background-color:%23e6f4fe","div[data-schemaid='root']":"position:relative;width:inherit;display:inherit;overflow-x:hidden;z-index:10","select[multiple]":"height:auto","select[multiple].from-select":"height:auto",".je-table-zebra:nth-child(even)":"background-color:%23f2f2f2",".je-table-border":"border:0.5px%20solid%20black",".je-table-hdiv":"border-bottom:1px%20solid%20black",".je-border":"border:0.05rem%20solid%20%233182ce",".je-panel":"width:inherit;padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".je-panel-top":"width:100%25;padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".required:after":"content:%22%20*%22;color:red;font:inherit;font-weight:bold",".je-desc":"font-size:smaller;margin:0.2rem%200",".container-xl.je-noindent":"padding-left:0;padding-right:0",".json-editor-btntype-add":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%234299e1;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btntype-deletelast":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%23e53e3e;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btntype-deleteall":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%23000000;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btn-save":"float:right;color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%232b6cb0;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btn-back":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%232b6cb0;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btntype-delete":"color:%23e53e3e;background-color:rgba(218%2C%20222%2C%20228%2C%200.1);margin:0.03rem;padding:0.1rem",".json-editor-btntype-move":"color:%23000000;background-color:rgba(218%2C%20222%2C%20228%2C%200.1);margin:0.03rem;padding:0.1rem",".json-editor-btn-collapse":"padding:0em%200.8rem;font-size:1.3rem;color:%23e53e3e;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"},Sy={disable_theme_rules:!1,label_bold:!1,object_panel_default:!0,object_indent:!0,object_border:!1,table_border:!1,table_hdiv:!1,table_zebrastyle:!1,input_size:"small",enable_compact:!1};class fm extends Fn{constructor(e){super(e,Sy)}getGridContainer(){const e=document.createElement("div");return e.classList.add("flex","flex-col","w-full"),this.options.object_indent||e.classList.add("je-noindent"),e}getGridRow(){const e=document.createElement("div");return e.classList.add("flex","flex-wrap","w-full"),e}getGridColumn(){const e=document.createElement("div");return e.classList.add("flex","flex-col"),e}setGridColumnSize(e,i,r){i>0&&i<12?e.classList.add(`w-${i}/12`,"px-1"):e.classList.add("w-full","px-1"),r&&(e.style.marginLeft=`${100/12*r}%`)}getIndentedPanel(){const e=document.createElement("div");return this.options.object_panel_default?e.classList.add("w-full","p-1"):e.classList.add("relative","flex","flex-col","rounded","break-words","border","bg-white","border-0","border-blue-400","p-1","shadow-md"),this.options.object_border&&e.classList.add("je-border"),e}getTopIndentedPanel(){const e=document.createElement("div");return this.options.object_panel_default?e.classList.add("w-full","m-2"):e.classList.add("relative","flex","flex-col","rounded","break-words","border","bg-white","border-0","border-blue-400","p-1","shadow-md"),this.options.object_border&&e.classList.add("je-border"),e}getTitle(){return this.translateProperty(this.schema.title)}getSelectInput(e,i){const r=super.getSelectInput(e);return i?r.classList.add("form-multiselect","block","py-0","h-auto","w-full","px-1","text-sm","text-black","leading-normal","bg-white","border","border-grey","rounded"):r.classList.add("form-select","block","py-0","h-6","w-full","px-1","text-sm","text-black","leading-normal","bg-white","border","border-grey","rounded"),this.options.enable_compact&&r.classList.add("compact"),r}afterInputReady(e){e.controlgroup||(e.controlgroup=this.closest(e,".form-group"),this.closest(e,".compact")&&(e.controlgroup.style.marginBottom=0))}getTextareaInput(){const e=super.getTextareaInput();return e.classList.add("block","w-full","px-1","text-sm","leading-normal","bg-white","text-black","border","border-grey","rounded"),this.options.enable_compact&&e.classList.add("compact"),e.style.height=0,e}getRangeInput(e,i,r){const s=this.getFormInputField("range");return s.classList.add("slider"),this.options.enable_compact&&s.classList.add("compact"),s.setAttribute("oninput",'this.setAttribute("value", this.value)'),s.setAttribute("min",e),s.setAttribute("max",i),s.setAttribute("step",r),s}getRangeControl(e,i){const r=super.getRangeControl(e,i);return r.classList.add("text-center","text-black"),r}getCheckbox(){const e=this.getFormInputField("checkbox");return e.classList.add("form-checkbox","text-red-600"),e}getCheckboxLabel(e,i){const r=super.getCheckboxLabel(e,i);return r.classList.add("inline-flex","items-center"),r}getFormCheckboxControl(e,i,r){return e.insertBefore(i,e.firstChild),r&&e.classList.add("inline-flex flex-row"),e}getMultiCheckboxHolder(e,i,r,s){const d=super.getMultiCheckboxHolder(e,i,r,s);return d.classList.add("inline-flex","flex-col"),d}getFormRadio(e){const i=this.getFormInputField("radio");i.classList.add("form-radio","text-red-600");for(const r in e)i.setAttribute(r,e[r]);return i}getFormRadioLabel(e,i){const r=super.getFormRadioLabel(e,i);return r.classList.add("inline-flex","items-center","mr-2"),r}getFormRadioControl(e,i,r){return e.insertBefore(i,e.firstChild),r&&e.classList.add("form-radio"),e}getRadioHolder(e,i,r,s,d){const u=super.getRadioHolder(i,r,s,d);return e.options.layout==="h"?u.classList.add("inline-flex","flex-row"):u.classList.add("inline-flex","flex-col"),u}getFormInputLabel(e,i){const r=super.getFormInputLabel(e,i);return this.options.label_bold?r.classList.add("font-bold"):r.classList.add("required"),r}getFormInputField(e){const i=super.getFormInputField(e);return["checkbox","radio"].includes(e)||i.classList.add("block","w-full","px-1","text-black","text-sm","leading-normal","bg-white","border","border-grey","rounded"),this.options.enable_compact&&i.classList.add("compact"),i}getFormInputDescription(e){const i=document.createElement("p");return i.classList.add("block","mt-1","text-xs"),window.DOMPurify?i.innerHTML=window.DOMPurify.sanitize(e):i.textContent=this.cleanText(e),i}getFormControl(e,i,r,s){const d=document.createElement("div");return d.classList.add("form-group","mb-1","w-full"),e&&(e.classList.add("text-xs"),i.type==="checkbox"&&(i.classList.add("form-checkbox","text-xs","text-red-600","mr-1"),e.classList.add("items-center","flex"),e=this.getFormCheckboxControl(e,i,!1,s)),i.type==="radio"&&(i.classList.add("form-radio","text-red-600","mr-1"),e.classList.add("items-center","flex"),e=this.getFormRadioControl(e,i,!1,s)),d.appendChild(e),!["checkbox","radio"].includes(i.type)&&s&&d.appendChild(s)),["checkbox","radio"].includes(i.type)||(this.options.input_size==="small"?i.classList.add("text-xs"):this.options.input_size==="normal"?i.classList.add("text-base"):this.options.input_size==="large"&&i.classList.add("text-xl"),d.appendChild(i)),r&&d.appendChild(r),d}getHeaderButtonHolder(){const e=this.getButtonHolder();return e.classList.add("text-sm"),e}getButtonHolder(){const e=document.createElement("div");return e.classList.add("flex","relative","inline-flex","align-middle"),e}getButton(e,i,r){const s=super.getButton(e,i,r);return s.classList.add("inline-block","align-middle","text-center","text-sm","bg-blue-700","text-white","py-1","pr-1","m-2","shadow","select-none","whitespace-no-wrap","rounded"),s}getInfoButton(e){const i=document.createElement("a");i.classList.add("tooltips","float-right"),i.innerHTML="ⓘ";const r=document.createElement("span");return r.innerHTML=e,i.appendChild(r),i}getTable(){const e=super.getTable();return this.options.table_border?e.classList.add("je-table-border"):e.classList.add("table","border","p-0"),e}getTableRow(){const e=super.getTableRow();return this.options.table_border&&e.classList.add("je-table-border"),this.options.table_zebrastyle&&e.classList.add("je-table-zebra"),e}getTableHeaderCell(e){const i=super.getTableHeaderCell(e);return this.options.table_border?i.classList.add("je-table-border"):this.options.table_hdiv?i.classList.add("je-table-hdiv"):i.classList.add("text-xs","border","p-0","m-0"),i}getTableCell(){const e=super.getTableCell();return this.options.table_border?e.classList.add("je-table-border"):this.options.table_hdiv?e.classList.add("je-table-hdiv"):e.classList.add("border-0","p-0","m-0"),e}addInputError(e,i){e.controlgroup&&(e.controlgroup.classList.add("has-error"),e.controlgroup.classList.add("text-red-600"),e.errmsg?e.errmsg.style.display="":(e.errmsg=document.createElement("p"),e.errmsg.classList.add("block","mt-1","text-xs","text-red"),e.controlgroup.appendChild(e.errmsg)),e.errmsg.textContent=i)}removeInputError(e){e.errmsg&&(e.errmsg.style.display="none",e.controlgroup.classList.remove("text-red-600"),e.controlgroup.classList.remove("has-error"))}getTabHolder(e){const i=document.createElement("div"),r=typeof e>"u"?"":e;return i.innerHTML=`
        `,i.classList.add("flex"),i}addTab(e,i){e.children[0].children[0].appendChild(i)}getTopTabHolder(e){const i=typeof e>"u"?"":e,r=document.createElement("div");return r.innerHTML=`
        `,r}getTab(e,i){const r=document.createElement("li");r.classList.add("nav-item","flex-col","text-center","text-white","bg-blue-500","shadow-md","border","p-2","mb-2","mr-2","hover:bg-blue-400","rounded");const s=document.createElement("a");return s.classList.add("nav-link","text-center"),s.setAttribute("href",`#${i}`),s.setAttribute("data-toggle","tab"),s.appendChild(e),r.appendChild(s),r}getTopTab(e,i){const r=document.createElement("li");r.classList.add("nav-item","flex","border-l","border-t","border-r");const s=document.createElement("a");return s.classList.add("nav-link","-mb-px","flex-row","text-center","bg-white","p-2","hover:bg-blue-400","rounded-t"),s.setAttribute("href",`#${i}`),s.setAttribute("data-toggle","tab"),s.appendChild(e),r.appendChild(s),r}getTabContent(){const e=document.createElement("div");return e.setAttribute("role","tabpanel"),e}getTopTabContent(){const e=document.createElement("div");return e.setAttribute("role","tabpanel"),e}markTabActive(e){e.tab.firstChild.classList.add("block"),e.tab.firstChild.classList.contains("border-b")===!0?(e.tab.firstChild.classList.add("border-b-0"),e.tab.firstChild.classList.remove("border-b")):e.tab.firstChild.classList.add("border-b-0"),e.container.classList.contains("hidden")===!0&&e.container.classList.remove("hidden"),e.container.classList.add("block")}markTabInactive(e){e.tab.firstChild.classList.contains("border-b-0")===!0?(e.tab.firstChild.classList.add("border-b"),e.tab.firstChild.classList.remove("border-b-0")):e.tab.firstChild.classList.add("border-b"),e.container.classList.contains("block")===!0&&(e.container.classList.remove("block"),e.container.classList.add("hidden"))}getProgressBar(){const e=document.createElement("div");e.classList.add("progress");const i=document.createElement("div");return i.classList.add("bg-blue","leading-none","py-1","text-xs","text-center","text-white"),i.setAttribute("role","progressbar"),i.setAttribute("aria-valuenow",0),i.setAttribute("aria-valuemin",0),i.setAttribute("aria-valuenax",100),i.innerHTML="0%",e.appendChild(i),e}updateProgressBar(e,i){if(!e)return;const r=e.firstChild,s=`${i}%`;r.setAttribute("aria-valuenow",i),r.style.width=s,r.innerHTML=s}updateProgressBarUnknown(e){if(!e)return;const i=e.firstChild;e.classList.add("progress","bg-blue","leading-none","py-1","text-xs","text-center","text-white","block"),i.removeAttribute("aria-valuenow"),i.classList.add("w-full"),i.innerHTML=""}getInputGroup(e,i){if(!e)return;const r=document.createElement("div");r.classList.add("relative","items-stretch","w-full"),r.appendChild(e);const s=document.createElement("div");s.classList.add("-mr-1"),r.appendChild(s);for(let d=0;dw?this.addNewStyleRulesToShadowRoot(m,b,w):this.addNewStyleRules(m,b);if(!this.theme.options.disable_theme_rules){const m=Kp(this.element);u("default",d,m),typeof s.rules<"u"&&u(r,s.rules,m)}const p=ni.defaults.iconlibs[this.options.iconlib||ni.defaults.iconlib];p&&(this.iconlib=new p),this.root_container=this.theme.getContainer(),this.element.appendChild(this.root_container),this.promise=this.load()}async load(){const e=document.location.origin+document.location.pathname.toString(),i=new Bv(this.options);i.onSchemaLoaded=p=>{this.trigger("schemaLoaded",p)},i.onAllSchemasLoaded=()=>{this.trigger("allSchemasLoaded")},this.expandSchema=p=>i.expandSchema(p),this.expandRefs=(p,m)=>i.expandRefs(p,m);const r=document.location.toString(),s=await i.load(this.schema,e,r),d=this.options.custom_validators?{custom_validators:this.options.custom_validators}:{};this.validator=new rm(this,null,d,ni.defaults);const u=this.getEditorClass(s);this.root=this.createEditor(u,{jsoneditor:this,schema:s,required:!0,container:this.root_container}),this.root.preBuild(),this.root.build(),this.root.postBuild(),jr(this.options,"startval")&&this.root.setValue(this.options.startval),this.validation_results=this.validator.validate(this.root.getValue()),this.root.showValidationErrors(this.validation_results),this.ready=!0,this.element.classList.remove("je-not-loaded"),this.element.classList.add("je-ready"),window.requestAnimationFrame(()=>{this.ready&&(this.validation_results=this.validator.validate(this.root.getValue()),this.root.showValidationErrors(this.validation_results),this.trigger("ready"),this.trigger("change"))})}getValue(){if(!this.ready)throw new Error("JSON Editor not ready yet. Make sure the load method is complete");return this.root.getValue()}setValue(e){if(!this.ready)throw new Error("JSON Editor not ready yet. Make sure the load method is complete");return this.root.setValue(e),this}validate(e){if(!this.ready)throw new Error("JSON Editor not ready yet. Make sure the load method is complete");return arguments.length===1?this.validator.validate(e):this.validation_results}destroy(){this.destroyed||this.ready&&(this.schema=null,this.options=null,this.root.destroy(),this.root=null,this.root_container=null,this.validator=null,this.validation_results=null,this.theme=null,this.iconlib=null,this.template=null,this.__data=null,this.ready=!1,this.element.innerHTML="",this.element.removeAttribute("data-theme"),this.destroyed=!0)}on(e,i){return this.callbacks=this.callbacks||{},this.callbacks[e]=this.callbacks[e]||[],this.callbacks[e].push(i),this}off(e,i){if(e&&i){this.callbacks=this.callbacks||{},this.callbacks[e]=this.callbacks[e]||[];const r=[];for(let s=0;sr.rules?ct(i,r.rules):i;return Object.values(ni.defaults.editors).reduce(e,{})}getEditorClass(e){let i;if(e=this.expandSchema(e),ni.defaults.resolvers.find(r=>(i=r(e,this),i&&ni.defaults.editors[i])),!i)throw new Error(`Unknown editor for schema ${JSON.stringify(e)}`);if(!ni.defaults.editors[i])throw new Error(`Unknown editor ${i}`);return ni.defaults.editors[i]}createEditor(e,i,r=1){return i=ct({},e.options||{},i),new e(i,ni.defaults,r)}onChange(e){if(this.ready&&(e&&this.trigger(e.event,e.data),!this.firing_change))return this.firing_change=!0,window.requestAnimationFrame(()=>{this.firing_change=!1,this.ready&&(this.validation_results=this.validator.validate(this.root.getValue()),this.options.show_errors!=="never"?this.root.showValidationErrors(this.validation_results):this.root.showValidationErrors([]),this.trigger("change"))}),this}compileTemplate(e,i=ni.defaults.template){let r;if(typeof i=="string"){if(!ni.defaults.templates[i])throw new Error(`Unknown template engine ${i}`);if(r=ni.defaults.templates[i](),!r)throw new Error(`Template engine ${i} missing required library.`)}else r=i;if(!r)throw new Error("No template engine set");if(!r.compile)throw new Error("Invalid template engine set");return r.compile(e)}_data(e,i,r){if(arguments.length===3){let s;e.hasAttribute(`data-jsoneditor-${i}`)?s=e.getAttribute(`data-jsoneditor-${i}`):(s=this.uuid++,e.setAttribute(`data-jsoneditor-${i}`,s)),this.__data[s]=r}else return e.hasAttribute(`data-jsoneditor-${i}`)?this.__data[e.getAttribute(`data-jsoneditor-${i}`)]:null}registerEditor(e){return this.editors=this.editors||{},this.editors[e.path]=e,this}unregisterEditor(e){return this.editors=this.editors||{},this.editors[e.path]=null,this}getEditor(e){if(this.editors)return this.editors[e]}watch(e,i){return this.watchlist=this.watchlist||{},this.watchlist[e]=this.watchlist[e]||[],this.watchlist[e].push(i),this}unwatch(e,i){if(!this.watchlist||!this.watchlist[e])return this;if(!i)return this.watchlist[e]=null,this;const r=[];for(let s=0;s0;)s.deleteRule(0);Object.keys(i).forEach(u=>{const p=e==="default"?u:`${d}[data-theme="${e}"] ${u}`;s.insertRule?s.insertRule(p+" {"+decodeURIComponent(i[u])+"}",0):s.addRule&&s.addRule(p,decodeURIComponent(i[u]),0)})}addNewStyleRulesToShadowRoot(e,i,r){const s=this.element.nodeName.toLowerCase();let d="";Object.keys(i).forEach(p=>{const m=e==="default"?p:`${s}[data-theme="${e}"] ${p}`;d+=m+" {"+decodeURIComponent(i[p])+`} -`});const u=new CSSStyleSheet;u.replaceSync(d),r.adoptedStyleSheets=[...r.adoptedStyleSheets,u]}}ni.defaults=vs;ni.AbstractEditor=dr;ni.AbstractTheme=Fn;ni.AbstractIconLib=Tn;Object.assign(ni.defaults.themes,Ty);Object.assign(ni.defaults.editors,fl);Object.assign(ni.defaults.templates,qv);Object.assign(ni.defaults.iconlibs,vy);var za=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gm(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function Va(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bm={exports:{}};/** - * easymde v2.18.0 - * Copyright Jeroen Akkerman - * @link https://github.com/ionaru/easy-markdown-editor - * @license MIT - */(function(o,e){(function(i){o.exports=i()})(function(){return function i(r,s,d){function u(b,w){if(!s[b]){if(!r[b]){var v=typeof Va=="function"&&Va;if(!w&&v)return v(b,!0);if(p)return p(b,!0);var j=new Error("Cannot find module '"+b+"'");throw j.code="MODULE_NOT_FOUND",j}var D=s[b]={exports:{}};r[b][0].call(D.exports,function(B){return u(r[b][1][B]||B)},D,D.exports,i,r,s,d)}return s[b].exports}for(var p=typeof Va=="function"&&Va,m=0;m[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,p=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,m=/[*+-]\s/;function b(w,v){var j=v.line,D=0,B=0,U=u.exec(w.getLine(j)),q=U[1];do{var me=j+(D+=1),$e=w.getLine(me),Fe=u.exec($e);if(Fe){var ie=Fe[1],J=parseInt(U[3],10)+D-B,re=parseInt(Fe[3],10),_e=re;if(q!==ie||isNaN(re)){if(q.length>ie.length||q.lengthre&&(_e=J+1),w.replaceRange($e.replace(u,ie+_e+Fe[4]+Fe[5]),{line:me,ch:0},{line:me,ch:$e.length})}}while(Fe)}d.commands.newlineAndIndentContinueMarkdownList=function(w){if(w.getOption("disableInput"))return d.Pass;for(var v=w.listSelections(),j=[],D=0;D\s*$/.test(Fe),_e=!/>\s*$/.test(Fe);(re||_e)&&w.replaceRange("",{line:B.line,ch:0},{line:B.line,ch:B.ch+1}),j[D]=` -`}else{var ye=ie[1],ue=ie[5],de=!(m.test(ie[2])||ie[2].indexOf(">")>=0),Ce=de?parseInt(ie[3],10)+1+ie[4]:ie[2].replace("x"," ");j[D]=` -`+ye+Ce+ue,de&&b(w,B)}}w.replaceSelections(j)}})(typeof s=="object"&&typeof r=="object"?i("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":10}],7:[function(i,r,s){(function(d){d.overlayMode=function(u,p,m){return{startState:function(){return{base:d.startState(u),overlay:d.startState(p),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(b){return{base:d.copyState(u,b.base),overlay:d.copyState(p,b.overlay),basePos:b.basePos,baseCur:null,overlayPos:b.overlayPos,overlayCur:null}},token:function(b,w){return(b!=w.streamSeen||Math.min(w.basePos,w.overlayPos)de);Ce++){var je=ie.getLine(ue++);_e=_e==null?je:_e+` -`+je}ye*=2,J.lastIndex=re.ch;var Ze=J.exec(_e);if(Ze){var Je=_e.slice(0,Ze.index).split(` -`),Ke=Ze[0].split(` -`),ot=re.line+Je.length-1,oe=Je[Je.length-1].length;return{from:m(ot,oe),to:m(ot+Ke.length-1,Ke.length==1?oe+Ke[0].length:Ke[Ke.length-1].length),match:Ze}}}}function D(ie,J,re){for(var _e,ye=0;ye<=ie.length;){J.lastIndex=ye;var ue=J.exec(ie);if(!ue)break;var de=ue.index+ue[0].length;if(de>ie.length-re)break;(!_e||de>_e.index+_e[0].length)&&(_e=ue),ye=ue.index+1}return _e}function B(ie,J,re){J=b(J,"g");for(var _e=re.line,ye=re.ch,ue=ie.firstLine();_e>=ue;_e--,ye=-1){var de=ie.getLine(_e),Ce=D(de,J,ye<0?0:de.length-ye);if(Ce)return{from:m(_e,Ce.index),to:m(_e,Ce.index+Ce[0].length),match:Ce}}}function U(ie,J,re){if(!w(J))return B(ie,J,re);J=b(J,"gm");for(var _e,ye=1,ue=ie.getLine(re.line).length-re.ch,de=re.line,Ce=ie.firstLine();de>=Ce;){for(var je=0;je=Ce;je++){var Ze=ie.getLine(de--);_e=_e==null?Ze:Ze+` -`+_e}ye*=2;var Je=D(_e,J,ue);if(Je){var Ke=_e.slice(0,Je.index).split(` -`),ot=Je[0].split(` -`),oe=de+Ke.length,Oe=Ke[Ke.length-1].length;return{from:m(oe,Oe),to:m(oe+ot.length-1,ot.length==1?Oe+ot[0].length:ot[ot.length-1].length),match:Je}}}}function q(ie,J,re,_e){if(ie.length==J.length)return re;for(var ye=0,ue=re+Math.max(0,ie.length-J.length);;){if(ye==ue)return ye;var de=ye+ue>>1,Ce=_e(ie.slice(0,de)).length;if(Ce==re)return de;Ce>re?ue=de:ye=de+1}}function me(ie,J,re,_e){if(!J.length)return null;var ye=_e?u:p,ue=ye(J).split(/\r|\n\r?/);e:for(var de=re.line,Ce=re.ch,je=ie.lastLine()+1-ue.length;de<=je;de++,Ce=0){var Ze=ie.getLine(de).slice(Ce),Je=ye(Ze);if(ue.length==1){var Ke=Je.indexOf(ue[0]);if(Ke==-1)continue e;return re=q(Ze,Je,Ke,ye)+Ce,{from:m(de,q(Ze,Je,Ke,ye)+Ce),to:m(de,q(Ze,Je,Ke+ue[0].length,ye)+Ce)}}var ot=Je.length-ue[0].length;if(Je.slice(ot)==ue[0]){for(var oe=1;oe=je;de--,Ce=-1){var Ze=ie.getLine(de);Ce>-1&&(Ze=Ze.slice(0,Ce));var Je=ye(Ze);if(ue.length==1){var Ke=Je.lastIndexOf(ue[0]);if(Ke==-1)continue e;return{from:m(de,q(Ze,Je,Ke,ye)),to:m(de,q(Ze,Je,Ke+ue[0].length,ye))}}var ot=ue[ue.length-1];if(Je.slice(0,ot.length)==ot){var oe=1;for(re=de-ue.length+1;oe(this.doc.getLine(J.line)||"").length&&(J.ch=0,J.line++)),d.cmpPos(J,this.doc.clipPos(J))!=0))return this.atOccurrence=!1;var re=this.matches(ie,J);if(this.afterEmptyMatch=re&&d.cmpPos(re.from,re.to)==0,re)return this.pos=re,this.atOccurrence=!0,this.pos.match||!0;var _e=m(ie?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_e,to:_e},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(ie,J){if(this.atOccurrence){var re=d.splitLines(ie);this.doc.replaceRange(re,this.pos.from,this.pos.to,J),this.pos.to=m(this.pos.from.line+re.length-1,re[re.length-1].length+(re.length==1?this.pos.from.ch:0))}}},d.defineExtension("getSearchCursor",function(ie,J,re){return new Fe(this.doc,ie,J,re)}),d.defineDocExtension("getSearchCursor",function(ie,J,re){return new Fe(this,ie,J,re)}),d.defineExtension("selectMatches",function(ie,J){for(var re=[],_e=this.getSearchCursor(ie,this.getCursor("from"),J);_e.findNext()&&!(d.cmpPos(_e.to(),this.getCursor("to"))>0);)re.push({anchor:_e.from(),head:_e.to()});re.length&&this.setSelections(re,0)})})(typeof s=="object"&&typeof r=="object"?i("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":10}],9:[function(i,r,s){(function(d){function u(D){D.state.markedSelection&&D.operation(function(){(function(B){if(!B.somethingSelected())return v(B);if(B.listSelections().length>1)return j(B);var U=B.getCursor("start"),q=B.getCursor("end"),me=B.state.markedSelection;if(!me.length)return w(B,U,q);var $e=me[0].find(),Fe=me[me.length-1].find();if(!$e||!Fe||q.line-U.line<=8||b(U,Fe.to)>=0||b(q,$e.from)<=0)return j(B);for(;b(U,$e.from)>0;)me.shift().clear(),$e=me[0].find();for(b(U,$e.from)<0&&($e.to.line-U.line<8?(me.shift().clear(),w(B,U,$e.to,0)):w(B,U,$e.from,0));b(q,Fe.to)<0;)me.pop().clear(),Fe=me[me.length-1].find();b(q,Fe.to)>0&&(q.line-Fe.from.line<8?(me.pop().clear(),w(B,Fe.from,q)):w(B,Fe.to,q))})(D)})}function p(D){D.state.markedSelection&&D.state.markedSelection.length&&D.operation(function(){v(D)})}d.defineOption("styleSelectedText",!1,function(D,B,U){var q=U&&U!=d.Init;B&&!q?(D.state.markedSelection=[],D.state.markedSelectionStyle=typeof B=="string"?B:"CodeMirror-selectedtext",j(D),D.on("cursorActivity",u),D.on("change",p)):!B&&q&&(D.off("cursorActivity",u),D.off("change",p),v(D),D.state.markedSelection=D.state.markedSelectionStyle=null)});var m=d.Pos,b=d.cmpPos;function w(D,B,U,q){if(b(B,U)!=0)for(var me=D.state.markedSelection,$e=D.state.markedSelectionStyle,Fe=B.line;;){var ie=Fe==B.line?B:m(Fe,0),J=Fe+8,re=J>=U.line,_e=re?U:m(J,0),ye=D.markText(ie,_e,{className:$e});if(q==null?me.push(ye):me.splice(q++,0,ye),re)break;Fe=J}}function v(D){for(var B=D.state.markedSelection,U=0;U2),re=/Android/.test(d),_e=J||re||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(d),ye=J||/Mac/.test(u),ue=/\bCrOS\b/.test(d),de=/win/i.test(u),Ce=me&&d.match(/Version\/(\d*\.\d*)/);Ce&&(Ce=Number(Ce[1])),Ce&&Ce>=15&&(me=!1,D=!0);var je=ye&&(B||me&&(Ce==null||Ce<12.11)),Ze=p||v&&j>=9;function Je(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var Ke,ot=function(t,n){var l=t.className,a=Je(n).exec(l);if(a){var h=l.slice(a.index+a[0].length);t.className=l.slice(0,a.index)+(h?a[1]+h:"")}};function oe(t){for(var n=t.childNodes.length;n>0;--n)t.removeChild(t.firstChild);return t}function Oe(t,n){return oe(t).appendChild(n)}function le(t,n,l,a){var h=document.createElement(t);if(l&&(h.className=l),a&&(h.style.cssText=a),typeof n=="string")h.appendChild(document.createTextNode(n));else if(n)for(var c=0;c=n)return f+(n-c);f+=g-c,f+=l-f%l,c=g+1}}J?Ne=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:v&&(Ne=function(t){try{t.select()}catch{}});var At=function(){this.id=null,this.f=null,this.time=0,this.handler=Mt(this.onTimeout,this)};function Ft(t,n){for(var l=0;l=n)return a+Math.min(f,n-h);if(h+=c-a,a=c+1,(h+=l-h%l)>=n)return a}}var be=[""];function K(t){for(;be.length<=t;)be.push(A(be)+" ");return be[t]}function A(t){return t[t.length-1]}function S(t,n){for(var l=[],a=0;a"€"&&(t.toUpperCase()!=t.toLowerCase()||X.test(t))}function he(t,n){return n?!!(n.source.indexOf("\\w")>-1&&Q(t))||n.test(t):Q(t)}function He(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n])return!1;return!0}var ve=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function qe(t){return t.charCodeAt(0)>=768&&ve.test(t)}function _(t,n,l){for(;(l<0?n>0:nl?-1:1;;){if(n==l)return n;var h=(n+l)/2,c=a<0?Math.ceil(h):Math.floor(h);if(c==n)return t(c)?n:l;t(c)?l=c:n=c+a}}var N=null;function $(t,n,l){var a;N=null;for(var h=0;hn)return h;c.to==n&&(c.from!=c.to&&l=="before"?a=h:N=h),c.from==n&&(c.from!=c.to&&l!="before"?a=h:N=h)}return a??N}var se=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,a=/[Lb1n]/,h=/[1n]/;function c(f,g,x){this.level=f,this.from=g,this.to=x}return function(f,g){var x=g=="ltr"?"L":"R";if(f.length==0||g=="ltr"&&!t.test(f))return!1;for(var y,k=f.length,E=[],R=0;R-1&&(a[n]=h.slice(0,c).concat(h.slice(c+1)))}}}function Re(t,n){var l=ne(t,n);if(l.length)for(var a=Array.prototype.slice.call(arguments,2),h=0;h0}function ut(t){t.prototype.on=function(n,l){ee(this,n,l)},t.prototype.off=function(n,l){we(this,n,l)}}function yt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function pt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function ei(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==0}function zt(t){yt(t),pt(t)}function Si(t){return t.target||t.srcElement}function Cr(t){var n=t.which;return n==null&&(1&t.button?n=1:2&t.button?n=3:4&t.button&&(n=2)),ye&&t.ctrlKey&&n==1&&(n=3),n}var gr,br,Mn=function(){if(v&&j<9)return!1;var t=le("div");return"draggable"in t||"dragDrop"in t}();function qr(t){if(gr==null){var n=le("span","​");Oe(t,le("span",[n,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(gr=n.offsetWidth<=1&&n.offsetHeight>2&&!(v&&j<8))}var l=gr?le("span","​"):le("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}function fn(t){if(br!=null)return br;var n=Oe(t,document.createTextNode("AخA")),l=Ke(n,0,1).getBoundingClientRect(),a=Ke(n,1,2).getBoundingClientRect();return oe(t),!(!l||l.left==l.right)&&(br=a.right-l.right<3)}var Vi,di=` - -b`.split(/\n/).length!=3?function(t){for(var n=0,l=[],a=t.length;n<=a;){var h=t.indexOf(` -`,n);h==-1&&(h=t.length);var c=t.slice(n,t.charAt(h-1)=="\r"?h-1:h),f=c.indexOf("\r");f!=-1?(l.push(c.slice(0,f)),n+=f+1):(l.push(c),n=h+1)}return l}:function(t){return t.split(/\r\n?|\n/)},Ui=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var n;try{n=t.ownerDocument.selection.createRange()}catch{}return!(!n||n.parentElement()!=t)&&n.compareEndPoints("StartToEnd",n)!=0},tr="oncopy"in(Vi=le("div"))||(Vi.setAttribute("oncopy","return;"),typeof Vi.oncopy=="function"),Wi=null,hr={},vi={};function dn(t,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),hr[t]=n}function M(t){if(typeof t=="string"&&vi.hasOwnProperty(t))t=vi[t];else if(t&&typeof t.name=="string"&&vi.hasOwnProperty(t.name)){var n=vi[t.name];typeof n=="string"&&(n={name:n}),(t=L(n,t)).name=n.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return M("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return M("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function P(t,n){n=M(n);var l=hr[n.name];if(!l)return P(t,"text/plain");var a=l(t,n);if(ke.hasOwnProperty(n.name)){var h=ke[n.name];for(var c in h)h.hasOwnProperty(c)&&(a.hasOwnProperty(c)&&(a["_"+c]=a[c]),a[c]=h[c])}if(a.name=n.name,n.helperType&&(a.helperType=n.helperType),n.modeProps)for(var f in n.modeProps)a[f]=n.modeProps[f];return a}var ke={};function fe(t,n){ze(n,ke.hasOwnProperty(t)?ke[t]:ke[t]={})}function Pe(t,n){if(n===!0)return n;if(t.copyState)return t.copyState(n);var l={};for(var a in n){var h=n[a];h instanceof Array&&(h=h.concat([])),l[a]=h}return l}function at(t,n){for(var l;t.innerMode&&(l=t.innerMode(n))&&l.mode!=t;)n=l.state,t=l.mode;return l||{mode:t,state:n}}function Ct(t,n,l){return!t.startState||t.startState(n,l)}var Ie=function(t,n,l){this.pos=this.start=0,this.string=t,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};function xe(t,n){if((n-=t.first)<0||n>=t.size)throw new Error("There is no line "+(n+t.first)+" in the document.");for(var l=t;!l.lines;)for(var a=0;;++a){var h=l.children[a],c=h.chunkSize();if(n=t.first&&nl?ce(l,xe(t,l).text.length):function(a,h){var c=a.ch;return c==null||c>h?ce(a.line,h):c<0?ce(a.line,0):a}(n,xe(t,n.line).text.length)}function Fi(t,n){for(var l=[],a=0;a=this.string.length},Ie.prototype.sol=function(){return this.pos==this.lineStart},Ie.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ie.prototype.next=function(){if(this.posn},Ie.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Ie.prototype.skipToEnd=function(){this.pos=this.string.length},Ie.prototype.skipTo=function(t){var n=this.string.indexOf(t,this.pos);if(n>-1)return this.pos=n,!0},Ie.prototype.backUp=function(t){this.pos-=t},Ie.prototype.column=function(){return this.lastColumnPos0?null:(a&&n!==!1&&(this.pos+=a[0].length),a)}var h=function(c){return l?c.toLowerCase():c};if(h(this.string.substr(this.pos,t.length))==h(t))return n!==!1&&(this.pos+=t.length),!0},Ie.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ie.prototype.hideFirstChars=function(t,n){this.lineStart+=t;try{return n()}finally{this.lineStart-=t}},Ie.prototype.lookAhead=function(t){var n=this.lineOracle;return n&&n.lookAhead(t)},Ie.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ur=function(t,n){this.state=t,this.lookAhead=n},cr=function(t,n,l,a){this.state=n,this.doc=t,this.line=l,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};function Jn(t,n,l,a){var h=[t.state.modeGen],c={};Kn(t,n.text,t.doc.mode,l,function(y,k){return h.push(y,k)},c,a);for(var f=l.state,g=function(y){l.baseTokens=h;var k=t.state.overlays[y],E=1,R=0;l.state=!0,Kn(t,n.text,k.mode,l,function(O,Z){for(var Y=E;RO&&h.splice(E,1,O,h[E+1],V),E+=2,R=Math.min(O,V)}if(Z)if(k.opaque)h.splice(Y,E-Y,O,"overlay "+Z),E=Y+2;else for(;Yt.options.maxHighlightLength&&Pe(t.doc.mode,a.state),c=Jn(t,n,a);h&&(a.state=h),n.stateAfter=a.save(!h),n.styles=c.styles,c.classes?n.styleClasses=c.classes:n.styleClasses&&(n.styleClasses=null),l===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return n.styles}function hn(t,n,l){var a=t.doc,h=t.display;if(!a.mode.startState)return new cr(a,!0,n);var c=function(x,y,k){for(var E,R,O=x.doc,Z=k?-1:y-(x.doc.mode.innerMode?1e3:100),Y=y;Y>Z;--Y){if(Y<=O.first)return O.first;var V=xe(O,Y-1),ae=V.stateAfter;if(ae&&(!k||Y+(ae instanceof ur?ae.lookAhead:0)<=O.modeFrontier))return Y;var ge=st(V.text,null,x.options.tabSize);(R==null||E>ge)&&(R=Y-1,E=ge)}return R}(t,n,l),f=c>a.first&&xe(a,c-1).stateAfter,g=f?cr.fromSaved(a,f,c):new cr(a,Ct(a.mode),c);return a.iter(c,n,function(x){$n(t,x.text,g);var y=g.line;x.stateAfter=y==n-1||y%5==0||y>=h.viewFrom&&yn.start)return c}throw new Error("Mode "+t.name+" failed to advance stream.")}cr.prototype.lookAhead=function(t){var n=this.doc.getLine(this.line+t);return n!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),n},cr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},cr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},cr.fromSaved=function(t,n,l){return n instanceof ur?new cr(t,Pe(t.mode,n.state),l,n.lookAhead):new cr(t,Pe(t.mode,n),l)},cr.prototype.save=function(t){var n=t!==!1?Pe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ur(n,this.maxLookAhead):n};var un=function(t,n,l){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=n||null,this.state=l};function Nr(t,n,l,a){var h,c,f=t.doc,g=f.mode,x=xe(f,(n=Xe(f,n)).line),y=hn(t,n.line,l),k=new Ie(x.text,t.options.tabSize,y);for(a&&(c=[]);(a||k.post.options.maxHighlightLength?(g=!1,f&&$n(t,n,a,E.pos),E.pos=n.length,x=null):x=Qn(Zr(l,E,a.state,R),c),R){var O=R[0].name;O&&(x="m-"+(x?O+" "+x:O))}if(!g||k!=x){for(;y=Te:nt.to>Te);(We||(We=[])).push(new Rr(jt,nt.from,Yt?null:nt.to))}}return We}(l,h,f),x=function(Se,Te,lt){var We;if(Se)for(var Et=0;Et=Te:nt.to>Te)||nt.from==Te&&jt.type=="bookmark"&&(!lt||nt.marker.insertLeft)){var Yt=nt.from==null||(jt.inclusiveLeft?nt.from<=Te:nt.from0&&g)for(var pe=0;pen)&&(!l||Ir(l,c.marker)<0)&&(l=c.marker)}return l}function Jr(t,n,l,a,h){var c=xe(t,n),f=Er&&c.markedSpans;if(f)for(var g=0;g=0&&E<=0||k<=0&&E>=0)&&(k<=0&&(x.marker.inclusiveRight&&h.inclusiveLeft?Be(y.to,l)>=0:Be(y.to,l)>0)||k>=0&&(x.marker.inclusiveRight&&h.inclusiveLeft?Be(y.from,a)<=0:Be(y.from,a)<0)))return!0}}}function qi(t){for(var n;n=ts(t);)t=n.find(-1,!0).line;return t}function On(t,n){var l=xe(t,n),a=qi(l);return l==a?n:tt(a)}function rs(t,n){if(n>t.lastLine())return n;var l,a=xe(t,n);if(!vr(t,a))return n;for(;l=vn(a);)a=l.find(1,!0).line;return tt(a)+1}function vr(t,n){var l=Er&&n.markedSpans;if(l){for(var a=void 0,h=0;hn.maxLineLength&&(n.maxLineLength=h,n.maxLine=a)})}var Vt=function(t,n,l){this.text=t,bn(this,n),this.height=l?l(this):1};function xt(t){t.parent=null,es(t)}Vt.prototype.lineNo=function(){return tt(this)},ut(Vt);var ui={},wi={};function _i(t,n){if(!t||/^\s*$/.test(t))return null;var l=n.addModeClass?wi:ui;return l[t]||(l[t]=t.replace(/\S+/g,"cm-$&"))}function ii(t,n){var l=Ee("span",null,null,D?"padding-right: .1px":null),a={pre:Ee("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};n.measure={};for(var h=0;h<=(n.rest?n.rest.length:0);h++){var c=h?n.rest[h-1]:n.line,f=void 0;a.pos=0,a.addToken=Zi,fn(t.display.measure)&&(f=te(c,t.doc.direction))&&(a.addToken=Ut(a.addToken,f)),a.map=[],rr(c,a,gn(t,c,n!=t.display.externalMeasured&&tt(c))),c.styleClasses&&(c.styleClasses.bgClass&&(a.bgClass=Qe(c.styleClasses.bgClass,a.bgClass||"")),c.styleClasses.textClass&&(a.textClass=Qe(c.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(qr(t.display.measure))),h==0?(n.measure.map=a.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(a.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(D){var g=a.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Re(t,"renderLine",t,n.line,a.pre),a.pre.className&&(a.textClass=Qe(a.pre.className,a.textClass||"")),a}function ji(t){var n=le("span","•","cm-invalidchar");return n.title="\\u"+t.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Zi(t,n,l,a,h,c,f){if(n){var g,x=t.splitSpaces?function(Se,Te){if(Se.length>1&&!/ /.test(Se))return Se;for(var lt=Te,We="",Et=0;Ety&&E.from<=y);R++);if(E.to>=k)return t(l,a,h,c,f,g,x);t(l,a.slice(0,E.to-y),h,c,null,g,x),c=null,a=a.slice(E.to-y),y=E.to}}}function mi(t,n,l,a){var h=!a&&l.widgetNode;h&&t.map.push(t.pos,t.pos+n,h),!a&&t.cm.display.input.needsContentAttribute&&(h||(h=t.content.appendChild(document.createElement("span"))),h.setAttribute("cm-marker",l.id)),h&&(t.cm.display.input.setUneditable(h),t.content.appendChild(h)),t.pos+=n,t.trailingSpace=!1}function rr(t,n,l){var a=t.markedSpans,h=t.text,c=0;if(a)for(var f,g,x,y,k,E,R,O=h.length,Z=0,Y=1,V="",ae=0;;){if(ae==Z){x=y=k=g="",R=null,E=null,ae=1/0;for(var ge=[],pe=void 0,Le=0;LeZ||Te.collapsed&&Se.to==Z&&Se.from==Z)){if(Se.to!=null&&Se.to!=Z&&ae>Se.to&&(ae=Se.to,y=""),Te.className&&(x+=" "+Te.className),Te.css&&(g=(g?g+";":"")+Te.css),Te.startStyle&&Se.from==Z&&(k+=" "+Te.startStyle),Te.endStyle&&Se.to==ae&&(pe||(pe=[])).push(Te.endStyle,Se.to),Te.title&&((R||(R={})).title=Te.title),Te.attributes)for(var lt in Te.attributes)(R||(R={}))[lt]=Te.attributes[lt];Te.collapsed&&(!E||Ir(E.marker,Te)<0)&&(E=Se)}else Se.from>Z&&ae>Se.from&&(ae=Se.from)}if(pe)for(var We=0;We=O)break;for(var nt=Math.min(O,ae);;){if(V){var jt=Z+V.length;if(!E){var Yt=jt>nt?V.slice(0,nt-Z):V;n.addToken(n,Yt,f?f+x:x,k,Z+Yt.length==ae?y:"",g,R)}if(jt>=nt){V=V.slice(nt-Z),Z=nt;break}Z=jt,k=""}V=h.slice(c,c=l[Y++]),f=_i(l[Y++],n.cm.options)}}else for(var Ot=1;Otl)return{map:t.measure.maps[h],cache:t.measure.caches[h],before:!0}}}function it(t,n,l,a){return Lt(t,ci(t,n),l,a)}function Wt(t,n){if(n>=t.display.viewFrom&&n=l.lineN&&n2&&R.push((Y.bottom+V.top)/2-y.top)}}R.push(y.bottom-y.top)}}(t,n.view,n.rect),n.hasHeights=!0),c=function(g,x,y,k){var E,R=dh(x.map,y,k),O=R.node,Z=R.start,Y=R.end,V=R.collapse;if(O.nodeType==3){for(var ae=0;ae<4;ae++){for(;Z&&qe(x.line.text.charAt(R.coverStart+Z));)--Z;for(;R.coverStart+Y1}(Yt))return Ot;var St=screen.logicalXDPI/screen.deviceXDPI,Bt=screen.logicalYDPI/screen.deviceYDPI;return{left:Ot.left*St,right:Ot.right*St,top:Ot.top*Bt,bottom:Ot.bottom*Bt}}(g.display.measure,E))}else{var ge;Z>0&&(V=k="right"),E=g.options.lineWrapping&&(ge=O.getClientRects()).length>1?ge[k=="right"?ge.length-1:0]:O.getBoundingClientRect()}if(v&&j<9&&!Z&&(!E||!E.left&&!E.right)){var pe=O.parentNode.getClientRects()[0];E=pe?{left:pe.left,right:pe.left+Fs(g.display),top:pe.top,bottom:pe.bottom}:ns}for(var Le=E.top-x.rect.top,Se=E.bottom-x.rect.top,Te=(Le+Se)/2,lt=x.view.measure.heights,We=0;Wen)&&(h=(c=x-g)-1,n>=x&&(f="right")),h!=null){if(a=t[y+2],g==x&&l==(a.insertLeft?"left":"right")&&(f=l),l=="left"&&h==0)for(;y&&t[y-2]==t[y-3]&&t[y-1].insertLeft;)a=t[2+(y-=3)],f="left";if(l=="right"&&h==x-g)for(;y=0&&(l=t[h]).left==l.right;h--);return l}function hh(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var n=0;n=a.text.length?(x=a.text.length,y="before"):x<=0&&(x=0,y="after"),!g)return f(y=="before"?x-1:x,y=="before");function k(Z,Y,V){return f(V?Z-1:Z,g[Y].level==1!=V)}var E=$(g,x,y),R=N,O=k(x,E,y=="before");return R!=null&&(O.other=k(x,R,y!="before")),O}function fh(t,n){var l=0;n=Xe(t.doc,n),t.options.lineWrapping||(l=Fs(t.display)*n.ch);var a=xe(t.doc,n.line),h=W(a)+xn(t.display);return{left:l,right:l,top:h,bottom:h+a.height}}function Cl(t,n,l,a,h){var c=ce(t,n,l);return c.xRel=h,a&&(c.outside=a),c}function kl(t,n,l){var a=t.doc;if((l+=t.display.viewOffset)<0)return Cl(a.first,0,null,-1,-1);var h=oi(a,l),c=a.first+a.size-1;if(h>c)return Cl(a.first+a.size-1,xe(a,c).text.length,null,1,1);n<0&&(n=0);for(var f=xe(a,h);;){var g=wm(t,f,h,n,l),x=is(f,g.ch+(g.xRel>0||g.outside>0?1:0));if(!x)return g;var y=x.find(1);if(y.line==h)return y;f=xe(a,h=y.line)}}function gh(t,n,l,a){a-=_l(n);var h=n.text.length,c=F(function(f){return Lt(t,l,f-1).bottom<=a},h,0);return{begin:c,end:h=F(function(f){return Lt(t,l,f).top>a},c,h)}}function bh(t,n,l,a){return l||(l=ci(t,n)),gh(t,n,l,pa(t,n,Lt(t,l,a),"line").top)}function El(t,n,l,a){return!(t.bottom<=l)&&(t.top>l||(a?t.left:t.right)>n)}function wm(t,n,l,a,h){h-=W(n);var c=ci(t,n),f=_l(n),g=0,x=n.text.length,y=!0,k=te(n,t.doc.direction);if(k){var E=(t.options.lineWrapping?Cm:_m)(t,n,l,c,k,a,h);g=(y=E.level!=1)?E.from:E.to-1,x=y?E.to:E.from-1}var R,O,Z=null,Y=null,V=F(function(Se){var Te=Lt(t,c,Se);return Te.top+=f,Te.bottom+=f,!!El(Te,a,h,!1)&&(Te.top<=h&&Te.left<=a&&(Z=Se,Y=Te),!0)},g,x),ae=!1;if(Y){var ge=a-Y.left=Le.bottom?1:0}return Cl(l,V=_(n.text,V,1),O,ae,a-R)}function _m(t,n,l,a,h,c,f){var g=F(function(E){var R=h[E],O=R.level!=1;return El(Xr(t,ce(l,O?R.to:R.from,O?"before":"after"),"line",n,a),c,f,!0)},0,h.length-1),x=h[g];if(g>0){var y=x.level!=1,k=Xr(t,ce(l,y?x.from:x.to,y?"after":"before"),"line",n,a);El(k,c,f,!0)&&k.top>f&&(x=h[g-1])}return x}function Cm(t,n,l,a,h,c,f){var g=gh(t,n,a,f),x=g.begin,y=g.end;/\s/.test(n.text.charAt(y-1))&&y--;for(var k=null,E=null,R=0;R=y||O.to<=x)){var Z=Lt(t,a,O.level!=1?Math.min(y,O.to)-1:Math.max(x,O.from)).right,Y=ZY)&&(k=O,E=Y)}}return k||(k=h[h.length-1]),k.fromy&&(k={from:k.from,to:y,level:k.level}),k}function Ts(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Ni==null){Ni=le("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Ni.appendChild(document.createTextNode("x")),Ni.appendChild(le("br"));Ni.appendChild(document.createTextNode("x"))}Oe(t.measure,Ni);var l=Ni.offsetHeight/50;return l>3&&(t.cachedTextHeight=l),oe(t.measure),l||1}function Fs(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var n=le("span","xxxxxxxxxx"),l=le("pre",[n],"CodeMirror-line-like");Oe(t.measure,l);var a=n.getBoundingClientRect(),h=(a.right-a.left)/10;return h>2&&(t.cachedCharWidth=h),h||10}function Dl(t){for(var n=t.display,l={},a={},h=n.gutters.clientLeft,c=n.gutters.firstChild,f=0;c;c=c.nextSibling,++f){var g=t.display.gutterSpecs[f].className;l[g]=c.offsetLeft+c.clientLeft+h,a[g]=c.clientWidth}return{fixedPos:Al(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:l,gutterWidth:a,wrapperWidth:n.wrapper.clientWidth}}function Al(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function vh(t){var n=Ts(t.display),l=t.options.lineWrapping,a=l&&Math.max(5,t.display.scroller.clientWidth/Fs(t.display)-3);return function(h){if(vr(t.doc,h))return 0;var c=0;if(h.widgets)for(var f=0;f0&&(x=xe(t.doc,y.line).text).length==y.ch){var k=st(x,x.length,t.options.tabSize)-x.length;y=ce(y.line,Math.max(0,Math.round((c-ca(t.display).left)/Fs(t.display))-k))}return y}function os(t,n){if(n>=t.display.viewTo||(n-=t.display.viewFrom)<0)return null;for(var l=t.display.view,a=0;an)&&(h.updateLineNumbers=n),t.curOp.viewChanged=!0,n>=h.viewTo)Er&&On(t.doc,n)h.viewFrom?Rn(t):(h.viewFrom+=a,h.viewTo+=a);else if(n<=h.viewFrom&&l>=h.viewTo)Rn(t);else if(n<=h.viewFrom){var c=fa(t,l,l+a,1);c?(h.view=h.view.slice(c.index),h.viewFrom=c.lineN,h.viewTo+=a):Rn(t)}else if(l>=h.viewTo){var f=fa(t,n,n,-1);f?(h.view=h.view.slice(0,f.index),h.viewTo=f.lineN):Rn(t)}else{var g=fa(t,n,n,-1),x=fa(t,l,l+a,1);g&&x?(h.view=h.view.slice(0,g.index).concat(Oi(t,g.lineN,x.lineN)).concat(h.view.slice(x.index)),h.viewTo+=a):Rn(t)}var y=h.externalMeasured;y&&(l=h.lineN&&n=a.viewTo)){var c=a.view[os(t,n)];if(c.node!=null){var f=c.changes||(c.changes=[]);Ft(f,l)==-1&&f.push(l)}}}function Rn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function fa(t,n,l,a){var h,c=os(t,n),f=t.display.view;if(!Er||l==t.doc.first+t.doc.size)return{index:c,lineN:l};for(var g=t.display.viewFrom,x=0;x0){if(c==f.length-1)return null;h=g+f[c].size-n,c++}else h=g-n;n+=h,l+=h}for(;On(t.doc,l)!=l;){if(c==(a<0?0:f.length-1))return null;l+=a*f[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:l}}function yh(t){for(var n=t.display.view,l=0,a=0;a=t.display.viewTo||x.to().line0?f:t.defaultCharWidth())+"px"}if(a.other){var g=l.appendChild(le("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=a.other.left+"px",g.style.top=a.other.top+"px",g.style.height=.85*(a.other.bottom-a.other.top)+"px"}}function ga(t,n){return t.top-n.top||t.left-n.left}function km(t,n,l){var a=t.display,h=t.doc,c=document.createDocumentFragment(),f=ca(t.display),g=f.left,x=Math.max(a.sizerWidth,wn(t)-a.sizer.offsetLeft)-f.right,y=h.direction=="ltr";function k(pe,Le,Se,Te){Le<0&&(Le=0),Le=Math.round(Le),Te=Math.round(Te),c.appendChild(le("div",null,"CodeMirror-selected","position: absolute; left: "+pe+`px; - top: `+Le+"px; width: "+(Se??x-pe)+`px; - height: `+(Te-Le)+"px"))}function E(pe,Le,Se){var Te,lt,We=xe(h,pe),Et=We.text.length;function nt(Ot,St){return ma(t,ce(pe,Ot),"div",We,St)}function jt(Ot,St,Bt){var wt=bh(t,We,null,Ot),Jt=St=="ltr"==(Bt=="after")?"left":"right";return nt(Bt=="after"?wt.begin:wt.end-(/\s/.test(We.text.charAt(wt.end-1))?2:1),Jt)[Jt]}var Yt=te(We,h.direction);return function(Ot,St,Bt,wt){if(!Ot)return wt(St,Bt,"ltr",0);for(var Jt=!1,mt=0;mtSt||St==Bt&&Tt.to==St)&&(wt(Math.max(Tt.from,St),Math.min(Tt.to,Bt),Tt.level==1?"rtl":"ltr",mt),Jt=!0)}Jt||wt(St,Bt,"ltr")}(Yt,Le||0,Se??Et,function(Ot,St,Bt,wt){var Jt=Bt=="ltr",mt=nt(Ot,Jt?"left":"right"),Tt=nt(St-1,Jt?"right":"left"),_t=Le==null&&Ot==0,Pt=Se==null&&St==Et,sr=wt==0,Qt=!Yt||wt==Yt.length-1;if(Tt.top-mt.top<=3){var Yi=(y?Pt:_t)&&Qt,Ji=(y?_t:Pt)&&sr?g:(Jt?mt:Tt).left,gi=Yi?x:(Jt?Tt:mt).right;k(Ji,mt.top,gi-Ji,mt.bottom)}else{var or,rn,Qi,nn;Jt?(or=y&&_t&&sr?g:mt.left,rn=y?x:jt(Ot,Bt,"before"),Qi=y?g:jt(St,Bt,"after"),nn=y&&Pt&&Qt?x:Tt.right):(or=y?jt(Ot,Bt,"before"):g,rn=!y&&_t&&sr?x:mt.right,Qi=!y&&Pt&&Qt?g:Tt.left,nn=y?jt(St,Bt,"after"):x),k(or,mt.top,rn-or,mt.bottom),mt.bottom0?n.blinker=setInterval(function(){t.hasFocus()||Ms(t),n.cursorDiv.style.visibility=(l=!l)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function wh(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Ml(t))}function Fl(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Ms(t))},100)}function Ml(t,n){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Re(t,"focus",t,n),t.state.focused=!0,C(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),D&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Tl(t))}function Ms(t,n){t.state.delayingBlurEvent||(t.state.focused&&(Re(t,"blur",t,n),t.state.focused=!1,ot(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function ba(t){for(var n=t.display,l=n.lineDiv.offsetTop,a=Math.max(0,n.scroller.getBoundingClientRect().top),h=n.lineDiv.getBoundingClientRect().top,c=0,f=0;f.005||O<-.005)&&(ht.display.sizerWidth){var Y=Math.ceil(k/Fs(t.display));Y>t.display.maxLineLength&&(t.display.maxLineLength=Y,t.display.maxLine=g.line,t.display.maxLineChanged=!0)}}}Math.abs(c)>2&&(n.scroller.scrollTop+=c)}function _h(t){if(t.widgets)for(var n=0;n=f&&(c=oi(n,W(xe(n,x))-t.wrapper.clientHeight),f=x)}return{from:c,to:Math.max(f,c+1)}}function $l(t,n){var l=t.display,a=Ts(t.display);n.top<0&&(n.top=0);var h=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:l.scroller.scrollTop,c=z(t),f={};n.bottom-n.top>c&&(n.bottom=n.top+c);var g=t.doc.height+co(l),x=n.topg-a;if(n.toph+c){var k=Math.min(n.top,(y?g:n.bottom)-c);k!=h&&(f.scrollTop=k)}var E=t.options.fixedGutter?0:l.gutters.offsetWidth,R=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:l.scroller.scrollLeft-E,O=wn(t)-l.gutters.offsetWidth,Z=n.right-n.left>O;return Z&&(n.right=n.left+O),n.left<10?f.scrollLeft=0:n.leftO+R-3&&(f.scrollLeft=n.right+(Z?0:10)-O),f}function jl(t,n){n!=null&&(ya(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+n)}function $s(t){ya(t);var n=t.getCursor();t.curOp.scrollToPos={from:n,to:n,margin:t.options.cursorScrollMargin}}function fo(t,n,l){n==null&&l==null||ya(t),n!=null&&(t.curOp.scrollLeft=n),l!=null&&(t.curOp.scrollTop=l)}function ya(t){var n=t.curOp.scrollToPos;n&&(t.curOp.scrollToPos=null,Ch(t,fh(t,n.from),fh(t,n.to),n.margin))}function Ch(t,n,l,a){var h=$l(t,{left:Math.min(n.left,l.left),top:Math.min(n.top,l.top)-a,right:Math.max(n.right,l.right),bottom:Math.max(n.bottom,l.bottom)+a});fo(t,h.scrollLeft,h.scrollTop)}function go(t,n){Math.abs(t.doc.scrollTop-n)<2||(p||Bl(t,{top:n}),kh(t,n,!0),p&&Bl(t),yo(t,100))}function kh(t,n,l){n=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,n)),(t.display.scroller.scrollTop!=n||l)&&(t.doc.scrollTop=n,t.display.scrollbars.setScrollTop(n),t.display.scroller.scrollTop!=n&&(t.display.scroller.scrollTop=n))}function as(t,n,l,a){n=Math.max(0,Math.min(n,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(l?n==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-n)<2)&&!a||(t.doc.scrollLeft=n,Sh(t),t.display.scroller.scrollLeft!=n&&(t.display.scroller.scrollLeft=n),t.display.scrollbars.setScrollLeft(n))}function bo(t){var n=t.display,l=n.gutters.offsetWidth,a=Math.round(t.doc.height+co(t.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:t.options.fixedGutter?l:0,docHeight:a,scrollHeight:a+zr(t)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:l}}var ls=function(t,n,l){this.cm=l;var a=this.vert=le("div",[le("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),h=this.horiz=le("div",[le("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=h.tabIndex=-1,t(a),t(h),ee(a,"scroll",function(){a.clientHeight&&n(a.scrollTop,"vertical")}),ee(h,"scroll",function(){h.clientWidth&&n(h.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,v&&j<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ls.prototype.update=function(t){var n=t.scrollWidth>t.clientWidth+1,l=t.scrollHeight>t.clientHeight+1,a=t.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=n?a+"px":"0";var h=t.viewHeight-(n?a:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+h)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=l?a+"px":"0",this.horiz.style.left=t.barLeft+"px";var c=t.viewWidth-t.barLeft-(l?a:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+c)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?a:0,bottom:n?a:0}},ls.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ls.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ls.prototype.zeroWidthHack=function(){var t=ye&&!Fe?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new At,this.disableVert=new At},ls.prototype.enableZeroWidthBar=function(t,n,l){t.style.visibility="",n.set(1e3,function a(){var h=t.getBoundingClientRect();(l=="vert"?document.elementFromPoint(h.right-1,(h.top+h.bottom)/2):document.elementFromPoint((h.right+h.left)/2,h.bottom-1))!=t?t.style.visibility="hidden":n.set(1e3,a)})},ls.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var vo=function(){};function js(t,n){n||(n=bo(t));var l=t.display.barWidth,a=t.display.barHeight;Eh(t,n);for(var h=0;h<4&&l!=t.display.barWidth||a!=t.display.barHeight;h++)l!=t.display.barWidth&&t.options.lineWrapping&&ba(t),Eh(t,bo(t)),l=t.display.barWidth,a=t.display.barHeight}function Eh(t,n){var l=t.display,a=l.scrollbars.update(n);l.sizer.style.paddingRight=(l.barWidth=a.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=a.bottom)+"px",l.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=a.bottom+"px",l.scrollbarFiller.style.width=a.right+"px"):l.scrollbarFiller.style.display="",a.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=a.bottom+"px",l.gutterFiller.style.width=n.gutterWidth+"px"):l.gutterFiller.style.display=""}vo.prototype.update=function(){return{bottom:0,right:0}},vo.prototype.setScrollLeft=function(){},vo.prototype.setScrollTop=function(){},vo.prototype.clear=function(){};var Dh={native:ls,null:vo};function Ah(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&ot(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Dh[t.options.scrollbarStyle](function(n){t.display.wrapper.insertBefore(n,t.display.scrollbarFiller),ee(n,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,l){l=="horizontal"?as(t,n):go(t,n)},t),t.display.scrollbars.addClass&&C(t.display.wrapper,t.display.scrollbars.addClass)}var Em=0;function ds(t){var n;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Em,markArrays:null},n=t.curOp,Bi?Bi.ops.push(n):n.ownsGroup=Bi={ops:[n],delayedCallbacks:[]}}function hs(t){var n=t.curOp;n&&function(l,a){var h=l.ownsGroup;if(h)try{(function(c){var f=c.delayedCallbacks,g=0;do{for(;g=l.viewTo)||l.maxLineChanged&&n.options.lineWrapping,t.update=t.mustUpdate&&new xa(n,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Am(t){t.updatedDisplay=t.mustUpdate&&Ol(t.cm,t.update)}function Lm(t){var n=t.cm,l=n.display;t.updatedDisplay&&ba(n),t.barMeasure=bo(n),l.maxLineChanged&&!n.options.lineWrapping&&(t.adjustWidthTo=it(n,l.maxLine,l.maxLine.text.length).left+3,n.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+t.adjustWidthTo+zr(n)+n.display.barWidth),t.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+t.adjustWidthTo-wn(n))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=l.input.prepareSelection())}function Sm(t){var n=t.cm;t.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft1&&(Y=!0)),ge.scrollLeft!=null&&(as(y,ge.scrollLeft),Math.abs(y.doc.scrollLeft-Le)>1&&(Y=!0)),!Y)break}return O}(n,Xe(a,t.scrollToPos.from),Xe(a,t.scrollToPos.to),t.scrollToPos.margin);(function(y,k){if(!Ye(y,"scrollCursorIntoView")){var E=y.display,R=E.sizer.getBoundingClientRect(),O=null,Z=E.wrapper.ownerDocument;if(k.top+R.top<0?O=!0:k.bottom+R.top>(Z.defaultView.innerHeight||Z.documentElement.clientHeight)&&(O=!1),O!=null&&!ie){var Y=le("div","​",null,`position: absolute; - top: `+(k.top-E.viewOffset-xn(y.display))+`px; - height: `+(k.bottom-k.top+zr(y)+E.barHeight)+`px; - left: `+k.left+"px; width: "+Math.max(2,k.right-k.left)+"px;");y.display.lineSpace.appendChild(Y),Y.scrollIntoView(O),y.display.lineSpace.removeChild(Y)}}})(n,h)}var c=t.maybeHiddenMarkers,f=t.maybeUnhiddenMarkers;if(c)for(var g=0;g=t.display.viewTo)){var l=+new Date+t.options.workTime,a=hn(t,n.highlightFrontier),h=[];n.iter(a.line,Math.min(n.first+n.size,t.display.viewTo+500),function(c){if(a.line>=t.display.viewFrom){var f=c.styles,g=c.text.length>t.options.maxHighlightLength?Pe(n.mode,a.state):null,x=Jn(t,c,a,!0);g&&(a.state=g),c.styles=x.styles;var y=c.styleClasses,k=x.classes;k?c.styleClasses=k:y&&(c.styleClasses=null);for(var E=!f||f.length!=c.styles.length||y!=k&&(!y||!k||y.bgClass!=k.bgClass||y.textClass!=k.textClass),R=0;!E&&Rl)return yo(t,t.options.workDelay),!0}),n.highlightFrontier=a.line,n.modeFrontier=Math.max(n.modeFrontier,a.line),h.length&&yr(t,function(){for(var c=0;c=l.viewFrom&&n.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&yh(t)==0)return!1;Th(t)&&(Rn(t),n.dims=Dl(t));var h=a.first+a.size,c=Math.max(n.visible.from-t.options.viewportMargin,a.first),f=Math.min(h,n.visible.to+t.options.viewportMargin);l.viewFromf&&l.viewTo-f<20&&(f=Math.min(h,l.viewTo)),Er&&(c=On(t.doc,c),f=rs(t.doc,f));var g=c!=l.viewFrom||f!=l.viewTo||l.lastWrapHeight!=n.wrapperHeight||l.lastWrapWidth!=n.wrapperWidth;(function(k,E,R){var O=k.display;O.view.length==0||E>=O.viewTo||R<=O.viewFrom?(O.view=Oi(k,E,R),O.viewFrom=E):(O.viewFrom>E?O.view=Oi(k,E,O.viewFrom).concat(O.view):O.viewFromR&&(O.view=O.view.slice(0,os(k,R)))),O.viewTo=R})(t,c,f),l.viewOffset=W(xe(t.doc,l.viewFrom)),t.display.mover.style.top=l.viewOffset+"px";var x=yh(t);if(!g&&x==0&&!n.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var y=Mm(t);return x>4&&(l.lineDiv.style.display="none"),function(k,E,R){var O=k.display,Z=k.options.lineNumbers,Y=O.lineDiv,V=Y.firstChild;function ae(We){var Et=We.nextSibling;return D&&ye&&k.display.currentWheelTarget==We?We.style.display="none":We.parentNode.removeChild(We),Et}for(var ge=O.view,pe=O.viewFrom,Le=0;Le-1&&(Te=!1),Es(k,Se,pe,R)),Te&&(oe(Se.lineNumber),Se.lineNumber.appendChild(document.createTextNode(dt(k.options,pe)))),V=Se.node.nextSibling}else{var lt=ho(k,Se,pe,R);Y.insertBefore(lt,V)}pe+=Se.size}for(;V;)V=ae(V)}(t,l.updateLineNumbers,n.dims),x>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,function(k){if(k&&k.activeElt&&k.activeElt!=H(k.activeElt.ownerDocument)&&(k.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(k.activeElt.nodeName)&&k.anchorNode&&Ae(document.body,k.anchorNode)&&Ae(document.body,k.focusNode))){var E=k.activeElt.ownerDocument,R=E.defaultView.getSelection(),O=E.createRange();O.setEnd(k.anchorNode,k.anchorOffset),O.collapse(!1),R.removeAllRanges(),R.addRange(O),R.extend(k.focusNode,k.focusOffset)}}(y),oe(l.cursorDiv),oe(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,g&&(l.lastWrapHeight=n.wrapperHeight,l.lastWrapWidth=n.wrapperWidth,yo(t,400)),l.updateLineNumbers=null,!0}function Lh(t,n){for(var l=n.viewport,a=!0;;a=!1){if(a&&t.options.lineWrapping&&n.oldDisplayWidth!=wn(t))a&&(n.visible=va(t.display,t.doc,l));else if(l&&l.top!=null&&(l={top:Math.min(t.doc.height+co(t.display)-z(t),l.top)}),n.visible=va(t.display,t.doc,l),n.visible.from>=t.display.viewFrom&&n.visible.to<=t.display.viewTo)break;if(!Ol(t,n))break;ba(t);var h=bo(t);mo(t),js(t,h),Rl(t,h),n.force=!1}n.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(n.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Bl(t,n){var l=new xa(t,n);if(Ol(t,l)){ba(t),Lh(t,l);var a=bo(t);mo(t),js(t,a),Rl(t,a),l.finish()}}function Nl(t){var n=t.gutters.offsetWidth;t.sizer.style.marginLeft=n+"px",li(t,"gutterChanged",t)}function Rl(t,n){t.display.sizer.style.minHeight=n.docHeight+"px",t.display.heightForcer.style.top=n.docHeight+"px",t.display.gutters.style.height=n.docHeight+t.display.barHeight+zr(t)+"px"}function Sh(t){var n=t.display,l=n.view;if(n.alignWidgets||n.gutters.firstChild&&t.options.fixedGutter){for(var a=Al(n)-n.scroller.scrollLeft+t.doc.scrollLeft,h=n.gutters.offsetWidth,c=a+"px",f=0;f=105&&(h.wrapper.style.clipPath="inset(0px)"),h.wrapper.setAttribute("translate","no"),v&&j<8&&(h.gutters.style.zIndex=-1,h.scroller.style.paddingRight=0),D||p&&_e||(h.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(h.wrapper):t(h.wrapper)),h.viewFrom=h.viewTo=n.first,h.reportedViewFrom=h.reportedViewTo=n.first,h.view=[],h.renderedView=null,h.externalMeasured=null,h.viewOffset=0,h.lastWrapHeight=h.lastWrapWidth=0,h.updateLineNumbers=null,h.nativeBarWidth=h.barHeight=h.barWidth=0,h.scrollbarsClipped=!1,h.lineNumWidth=h.lineNumInnerWidth=h.lineNumChars=null,h.alignWidgets=!1,h.cachedCharWidth=h.cachedTextHeight=h.cachedPaddingH=null,h.maxLine=null,h.maxLineLength=0,h.maxLineChanged=!1,h.wheelDX=h.wheelDY=h.wheelStartX=h.wheelStartY=null,h.shift=!1,h.selForContextMenu=null,h.activeTouch=null,h.gutterSpecs=Hl(a.gutters,a.lineNumbers),Fh(h),l.init(h)}xa.prototype.signal=function(t,n){Ve(t,n)&&this.events.push(arguments)},xa.prototype.finish=function(){for(var t=0;tg.clientWidth,y=g.scrollHeight>g.clientHeight;if(a&&x||h&&y){if(h&&ye&&D){e:for(var k=n.target,E=f.view;k!=g;k=k.parentNode)for(var R=0;R=0&&Be(t,a.to())<=0)return l}return-1};var Gt=function(t,n){this.anchor=t,this.head=n};function en(t,n,l){var a=t&&t.options.selectionsMayTouch,h=n[l];n.sort(function(R,O){return Be(R.from(),O.from())}),l=Ft(n,h);for(var c=1;c0:x>=0){var y=hi(g.from(),f.from()),k=ai(g.to(),f.to()),E=g.empty()?f.from()==f.head:g.from()==g.head;c<=l&&--l,n.splice(--c,2,new Gt(E?k:y,E?y:k))}}return new Lr(n,l)}function Hn(t,n){return new Lr([new Gt(t,n||t)],0)}function In(t){return t.text?ce(t.from.line+t.text.length-1,A(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function jh(t,n){if(Be(t,n.from)<0)return t;if(Be(t,n.to)<=0)return In(n);var l=t.line+n.text.length-(n.to.line-n.from.line)-1,a=t.ch;return t.line==n.to.line&&(a+=In(n).ch-n.to.ch),ce(l,a)}function Il(t,n){for(var l=[],a=0;a1&&t.remove(g.line+1,Z-1),t.insert(g.line+1,ae)}li(t,"change",t,n)}function Pn(t,n,l){(function a(h,c,f){if(h.linked)for(var g=0;gg-(t.cm?t.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(c=function(y,k){return k?(Hh(y.done),A(y.done)):y.done.length&&!A(y.done).ranges?A(y.done):y.done.length>1&&!y.done[y.done.length-2].ranges?(y.done.pop(),A(y.done)):void 0}(h,h.lastOp==a)))f=A(c.changes),Be(n.from,n.to)==0&&Be(n.from,f.to)==0?f.to=In(n):c.changes.push(Vl(t,n));else{var x=A(h.done);for(x&&x.ranges||Ca(t.sel,h.done),c={changes:[Vl(t,n)],generation:h.generation},h.done.push(c);h.done.length>h.undoDepth;)h.done.shift(),h.done[0].ranges||h.done.shift()}h.done.push(l),h.generation=++h.maxGeneration,h.lastModTime=h.lastSelTime=g,h.lastOp=h.lastSelOp=a,h.lastOrigin=h.lastSelOrigin=n.origin,f||Re(t,"historyAdded")}function Om(t,n,l,a){var h=t.history,c=a&&a.origin;l==h.lastSelOp||c&&h.lastSelOrigin==c&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==c||function(f,g,x,y){var k=g.charAt(0);return k=="*"||k=="+"&&x.ranges.length==y.ranges.length&&x.somethingSelected()==y.somethingSelected()&&new Date-f.history.lastSelTime<=(f.cm?f.cm.options.historyEventDelay:500)}(t,c,A(h.done),n))?h.done[h.done.length-1]=n:Ca(n,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=c,h.lastSelOp=l,a&&a.clearRedo!==!1&&Hh(h.undone)}function Ca(t,n){var l=A(n);l&&l.ranges&&l.equals(t)||n.push(t)}function Ph(t,n,l,a){var h=n["spans_"+t.id],c=0;t.iter(Math.max(t.first,l),Math.min(t.first+t.size,a),function(f){f.markedSpans&&((h||(h=n["spans_"+t.id]={}))[c]=f.markedSpans),++c})}function Bm(t){if(!t)return null;for(var n,l=0;l-1&&(A(g)[E]=y[E],delete y[E])}}}return a}function Ul(t,n,l,a){if(a){var h=t.anchor;if(l){var c=Be(n,h)<0;c!=Be(l,h)<0?(h=n,n=l):c!=Be(n,l)<0&&(n=l)}return new Gt(h,n)}return new Gt(l||n,n)}function ka(t,n,l,a,h){h==null&&(h=t.cm&&(t.cm.display.shift||t.extend)),Gi(t,new Lr([Ul(t.sel.primary(),n,l,h)],0),a)}function Vh(t,n,l){for(var a=[],h=t.cm&&(t.cm.display.shift||t.extend),c=0;c=n.ch:g.to>n.ch))){if(h&&(Re(x,"beforeCursorEnter"),x.explicitlyCleared)){if(c.markedSpans){--f;continue}break}if(!x.atomic)continue;if(l){var E=x.find(a<0?1:-1),R=void 0;if((a<0?k:y)&&(E=Yh(t,E,-a,E&&E.line==n.line?c:null)),E&&E.line==n.line&&(R=Be(E,l))&&(a<0?R<0:R>0))return Bs(t,E,n,a,h)}var O=x.find(a<0?-1:1);return(a<0?y:k)&&(O=Yh(t,O,a,O.line==n.line?c:null)),O?Bs(t,O,n,a,h):null}}return n}function Da(t,n,l,a,h){var c=a||1,f=Bs(t,n,l,c,h)||!h&&Bs(t,n,l,c,!0)||Bs(t,n,l,-c,h)||!h&&Bs(t,n,l,-c,!0);return f||(t.cantEdit=!0,ce(t.first,0))}function Yh(t,n,l,a){return l<0&&n.ch==0?n.line>t.first?Xe(t,ce(n.line-1)):null:l>0&&n.ch==(a||xe(t,n.line)).text.length?n.line0)){var Y=[O,1],V=Be(Z.from,R.from),ae=Be(Z.to,R.to);(V<0||!E.inclusiveLeft&&!V)&&Y.push({from:Z.from,to:R.from}),(ae>0||!E.inclusiveRight&&!ae)&&Y.push({from:R.to,to:Z.to}),y.splice.apply(y,Y),O+=Y.length-3}}return y}(t,n.from,n.to);if(a)for(var h=a.length-1;h>=0;--h)Kh(t,{from:a[h].from,to:a[h].to,text:h?[""]:n.text,origin:n.origin});else Kh(t,n)}}function Kh(t,n){if(n.text.length!=1||n.text[0]!=""||Be(n.from,n.to)!=0){var l=Il(t,n);Ih(t,n,l,t.cm?t.cm.curOp.id:NaN),_o(t,n,l,Xn(t,n));var a=[];Pn(t,function(h,c){c||Ft(a,h.history)!=-1||(iu(h.history,n),a.push(h.history)),_o(h,n,null,Xn(h,n))})}}function Aa(t,n,l){var a=t.cm&&t.cm.state.suppressEdits;if(!a||l){for(var h,c=t.history,f=t.sel,g=n=="undo"?c.done:c.undone,x=n=="undo"?c.undone:c.done,y=0;y=0;--O){var Z=R(O);if(Z)return Z.v}}}}function Xh(t,n){if(n!=0&&(t.first+=n,t.sel=new Lr(S(t.sel.ranges,function(h){return new Gt(ce(h.anchor.line+n,h.anchor.ch),ce(h.head.line+n,h.head.ch))}),t.sel.primIndex),t.cm)){pr(t.cm,t.first,t.first-n,n);for(var l=t.cm.display,a=l.viewFrom;at.lastLine())){if(n.from.linec&&(n={from:n.from,to:ce(c,xe(t,c).text.length),text:[n.text[0]],origin:n.origin}),n.removed=bt(t,n.from,n.to),l||(l=Il(t,n)),t.cm?function(f,g,x){var y=f.doc,k=f.display,E=g.from,R=g.to,O=!1,Z=E.line;f.options.lineWrapping||(Z=tt(qi(xe(y,E.line))),y.iter(Z,R.line+1,function(pe){if(pe==k.maxLine)return O=!0,!0})),y.sel.contains(g.from,g.to)>-1&&vt(f),zl(y,g,x,vh(f)),f.options.lineWrapping||(y.iter(Z,E.line+g.text.length,function(pe){var Le=De(pe);Le>k.maxLineLength&&(k.maxLine=pe,k.maxLineLength=Le,k.maxLineChanged=!0,O=!1)}),O&&(f.curOp.updateMaxLine=!0)),function(pe,Le){if(pe.modeFrontier=Math.min(pe.modeFrontier,Le),!(pe.highlightFrontierSe;Te--){var lt=xe(pe,Te).stateAfter;if(lt&&(!(lt instanceof ur)||Te+lt.lookAhead1||!(this.children[0]instanceof ko))){var g=[];this.collapse(g),this.children=[new ko(g)],this.children[0].parent=this}},collapse:function(t){for(var n=0;n50){for(var f=h.lines.length%25+25,g=f;g10);t.parent.maybeSpill()}},iterN:function(t,n,l){for(var a=0;a0||f==0&&c.clearWhenEmpty!==!1)return c;if(c.replacedWith&&(c.collapsed=!0,c.widgetNode=Ee("span",[c.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||c.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(c.widgetNode.insertLeft=!0)),c.collapsed){if(Jr(t,n.line,n,l,c)||n.line!=l.line&&Jr(t,l.line,n,l,c))throw new Error("Inserting collapsed marker partially overlapping an existing one");Er=!0}c.addToHistory&&Ih(t,{from:n,to:l,origin:"markText"},t.sel,NaN);var g,x=n.line,y=t.cm;if(t.iter(x,l.line+1,function(E){y&&c.collapsed&&!y.options.lineWrapping&&qi(E)==y.display.maxLine&&(g=!0),c.collapsed&&x!=n.line&&et(E,0),function(R,O,Z){var Y=Z&&window.WeakSet&&(Z.markedSpans||(Z.markedSpans=new WeakSet));Y&&R.markedSpans&&Y.has(R.markedSpans)?R.markedSpans.push(O):(R.markedSpans=R.markedSpans?R.markedSpans.concat([O]):[O],Y&&Y.add(R.markedSpans)),O.marker.attachLine(R)}(E,new Rr(c,x==n.line?n.ch:null,x==l.line?l.ch:null),t.cm&&t.cm.curOp),++x}),c.collapsed&&t.iter(n.line,l.line+1,function(E){vr(t,E)&&et(E,0)}),c.clearOnEnter&&ee(c,"beforeCursorEnter",function(){return c.clear()}),c.readOnly&&(kr=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),c.collapsed&&(c.id=++nu,c.atomic=!0),y){if(g&&(y.curOp.updateMaxLine=!0),c.collapsed)pr(y,n.line,l.line+1);else if(c.className||c.startStyle||c.endStyle||c.css||c.attributes||c.title)for(var k=n.line;k<=l.line;k++)Nn(y,k,"text");c.atomic&&Zh(y.doc),li(y,"markerAdded",y,c)}return c}zn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&ds(t),Ve(this,"clear")){var l=this.find();l&&li(this,"clear",l.from,l.to)}for(var a=null,h=null,c=0;ct.display.maxLineLength&&(t.display.maxLine=y,t.display.maxLineLength=k,t.display.maxLineChanged=!0)}a!=null&&t&&this.collapsed&&pr(t,a,h+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Zh(t.doc)),t&&li(t,"markerCleared",t,this,a,h),n&&hs(t),this.parent&&this.parent.clear()}},zn.prototype.find=function(t,n){var l,a;t==null&&this.type=="bookmark"&&(t=1);for(var h=0;h=0;x--)Ns(this,a[x]);g?Wh(this,g):this.cm&&$s(this.cm)}),undo:Hi(function(){Aa(this,"undo")}),redo:Hi(function(){Aa(this,"redo")}),undoSelection:Hi(function(){Aa(this,"undo",!0)}),redoSelection:Hi(function(){Aa(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,n=0,l=0,a=0;a=t.ch)&&n.push(h.marker.parent||h.marker)}return n},findMarks:function(t,n,l){t=Xe(this,t),n=Xe(this,n);var a=[],h=t.line;return this.iter(t.line,n.line+1,function(c){var f=c.markedSpans;if(f)for(var g=0;g=x.to||x.from==null&&h!=t.line||x.from!=null&&h==n.line&&x.from>=n.ch||l&&!l(x.marker)||a.push(x.marker.parent||x.marker)}++h}),a},getAllMarks:function(){var t=[];return this.iter(function(n){var l=n.markedSpans;if(l)for(var a=0;at)return n=t,!0;t-=c,++l}),Xe(this,ce(l,n))},indexFromPos:function(t){var n=(t=Xe(this,t)).ch;if(t.linen&&(n=t.from),t.to!=null&&t.to-1)return n.state.draggingText(t),void setTimeout(function(){return n.display.input.focus()},20);try{var k=t.dataTransfer.getData("Text");if(k){var E;if(n.state.draggingText&&!n.state.draggingText.copy&&(E=n.listSelections()),Ea(n.doc,Hn(l,l)),E)for(var R=0;R=0;g--)Rs(t.doc,"",a[g].from,a[g].to,"+delete");$s(t)})}function ql(t,n,l){var a=_(t.text,n+l,l);return a<0||a>t.text.length?null:a}function Zl(t,n,l){var a=ql(t,n.ch,l);return a==null?null:new ce(n.line,a,l<0?"after":"before")}function Gl(t,n,l,a,h){if(t){n.doc.direction=="rtl"&&(h=-h);var c=te(l,n.doc.direction);if(c){var f,g=h<0?A(c):c[0],x=h<0==(g.level==1)?"after":"before";if(g.level>0||n.doc.direction=="rtl"){var y=ci(n,l);f=h<0?l.text.length-1:0;var k=Lt(n,y,f).top;f=F(function(E){return Lt(n,y,E).top==k},h<0==(g.level==1)?g.from:g.to-1,f),x=="before"&&(f=ql(l,f,1))}else f=h<0?g.to:g.from;return new ce(a,f,x)}}return new ce(a,h<0?l.text.length:0,h<0?"before":"after")}Cn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Cn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Cn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Cn.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Cn.default=ye?Cn.macDefault:Cn.pcDefault;var To={selectAll:Jh,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),It)},killLine:function(t){return Ps(t,function(n){if(n.empty()){var l=xe(t.doc,n.head.line).text.length;return n.head.ch==l&&n.head.line0)h=new ce(h.line,h.ch+1),t.replaceRange(c.charAt(h.ch-1)+c.charAt(h.ch-2),ce(h.line,h.ch-2),h,"+transpose");else if(h.line>t.doc.first){var f=xe(t.doc,h.line-1).text;f&&(h=new ce(h.line,1),t.replaceRange(c.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),ce(h.line-1,f.length-1),h,"+transpose"))}}l.push(new Gt(h,h))}t.setSelections(l)})},newlineAndIndent:function(t){return yr(t,function(){for(var n=t.listSelections(),l=n.length-1;l>=0;l--)t.replaceRange(t.doc.lineSeparator(),n[l].anchor,n[l].head,"+input");n=t.listSelections();for(var a=0;a-1&&(Be((k=R.ranges[k]).from(),g)<0||g.xRel>0)&&(Be(k.to(),g)>0||g.xRel<0)?function(O,Z,Y,V){var ae=O.display,ge=!1,pe=Ri(O,function(Te){D&&(ae.scroller.draggable=!1),O.state.draggingText=!1,O.state.delayingBlurEvent&&(O.hasFocus()?O.state.delayingBlurEvent=!1:Fl(O)),we(ae.wrapper.ownerDocument,"mouseup",pe),we(ae.wrapper.ownerDocument,"mousemove",Le),we(ae.scroller,"dragstart",Se),we(ae.scroller,"drop",pe),ge||(yt(Te),V.addNew||ka(O.doc,Y,null,null,V.extend),D&&!$e||v&&j==9?setTimeout(function(){ae.wrapper.ownerDocument.body.focus({preventScroll:!0}),ae.input.focus()},20):ae.input.focus())}),Le=function(Te){ge=ge||Math.abs(Z.clientX-Te.clientX)+Math.abs(Z.clientY-Te.clientY)>=10},Se=function(){return ge=!0};D&&(ae.scroller.draggable=!0),O.state.draggingText=pe,pe.copy=!V.moveOnDrag,ee(ae.wrapper.ownerDocument,"mouseup",pe),ee(ae.wrapper.ownerDocument,"mousemove",Le),ee(ae.scroller,"dragstart",Se),ee(ae.scroller,"drop",pe),O.state.delayingBlurEvent=!0,setTimeout(function(){return ae.input.focus()},20),ae.scroller.dragDrop&&ae.scroller.dragDrop()}(f,y,g,E):function(O,Z,Y,V){v&&Fl(O);var ae=O.display,ge=O.doc;yt(Z);var pe,Le,Se=ge.sel,Te=Se.ranges;if(V.addNew&&!V.extend?(Le=ge.sel.contains(Y),pe=Le>-1?Te[Le]:new Gt(Y,Y)):(pe=ge.sel.primary(),Le=ge.sel.primIndex),V.unit=="rectangle")V.addNew||(pe=new Gt(Y,Y)),Y=ss(O,Z,!0,!0),Le=-1;else{var lt=wu(O,Y,V.unit);pe=V.extend?Ul(pe,lt.anchor,lt.head,V.extend):lt}V.addNew?Le==-1?(Le=Te.length,Gi(ge,en(O,Te.concat([pe]),Le),{scroll:!1,origin:"*mouse"})):Te.length>1&&Te[Le].empty()&&V.unit=="char"&&!V.extend?(Gi(ge,en(O,Te.slice(0,Le).concat(Te.slice(Le+1)),0),{scroll:!1,origin:"*mouse"}),Se=ge.sel):Wl(ge,Le,pe,Ti):(Le=0,Gi(ge,new Lr([pe],0),Ti),Se=ge.sel);var We=Y;function Et(wt){if(Be(We,wt)!=0)if(We=wt,V.unit=="rectangle"){for(var Jt=[],mt=O.options.tabSize,Tt=st(xe(ge,Y.line).text,Y.ch,mt),_t=st(xe(ge,wt.line).text,wt.ch,mt),Pt=Math.min(Tt,_t),sr=Math.max(Tt,_t),Qt=Math.min(Y.line,wt.line),Yi=Math.min(O.lastLine(),Math.max(Y.line,wt.line));Qt<=Yi;Qt++){var Ji=xe(ge,Qt).text,gi=ki(Ji,Pt,mt);Pt==sr?Jt.push(new Gt(ce(Qt,gi),ce(Qt,gi))):Ji.length>gi&&Jt.push(new Gt(ce(Qt,gi),ce(Qt,ki(Ji,sr,mt))))}Jt.length||Jt.push(new Gt(Y,Y)),Gi(ge,en(O,Se.ranges.slice(0,Le).concat(Jt),Le),{origin:"*mouse",scroll:!1}),O.scrollIntoView(wt)}else{var or,rn=pe,Qi=wu(O,wt,V.unit),nn=rn.anchor;Be(Qi.anchor,nn)>0?(or=Qi.head,nn=hi(rn.from(),Qi.anchor)):(or=Qi.anchor,nn=ai(rn.to(),Qi.head));var Oa=Se.ranges.slice(0);Oa[Le]=function($u,us){var xr=us.anchor,Un=us.head,Ym=xe($u.doc,xr.line);if(Be(xr,Un)==0&&xr.sticky==Un.sticky)return us;var Us=te(Ym);if(!Us)return us;var td=$(Us,xr.ch,xr.sticky),Oo=Us[td];if(Oo.from!=xr.ch&&Oo.to!=xr.ch)return us;var Ba,Bo=td+(Oo.from==xr.ch==(Oo.level!=1)?0:1);if(Bo==0||Bo==Us.length)return us;if(Un.line!=xr.line)Ba=(Un.line-xr.line)*($u.doc.direction=="ltr"?1:-1)>0;else{var id=$(Us,Un.ch,Un.sticky),ju=id-td||(Un.ch-xr.ch)*(Oo.level==1?-1:1);Ba=id==Bo-1||id==Bo?ju<0:ju>0}var rd=Us[Bo+(Ba?-1:0)],Ou=Ba==(rd.level==1),Bu=Ou?rd.from:rd.to,Nu=Ou?"after":"before";return xr.ch==Bu&&xr.sticky==Nu?us:new Gt(new ce(xr.line,Bu,Nu),Un)}(O,new Gt(Xe(ge,nn),or)),Gi(ge,en(O,Oa,Le),Ti)}}var nt=ae.wrapper.getBoundingClientRect(),jt=0;function Yt(wt){var Jt=++jt,mt=ss(O,wt,!0,V.unit=="rectangle");if(mt)if(Be(mt,We)!=0){O.curOp.focus=H(ht(O)),Et(mt);var Tt=va(ae,ge);(mt.line>=Tt.to||mt.linent.bottom?20:0;_t&&setTimeout(Ri(O,function(){jt==Jt&&(ae.scroller.scrollTop+=_t,Yt(wt))}),50)}}function Ot(wt){O.state.selectingText=!1,jt=1/0,wt&&(yt(wt),ae.input.focus()),we(ae.wrapper.ownerDocument,"mousemove",St),we(ae.wrapper.ownerDocument,"mouseup",Bt),ge.history.lastSelOrigin=null}var St=Ri(O,function(wt){wt.buttons!==0&&Cr(wt)?Yt(wt):Ot(wt)}),Bt=Ri(O,Ot);O.state.selectingText=Bt,ee(ae.wrapper.ownerDocument,"mousemove",St),ee(ae.wrapper.ownerDocument,"mouseup",Bt)}(f,y,g,E)}(n,a,c,t):Si(t)==l.scroller&&yt(t):h==2?(a&&ka(n.doc,a),setTimeout(function(){return l.input.focus()},20)):h==3&&(Ze?n.display.input.onContextMenu(t):Fl(n)))}}}function wu(t,n,l){if(l=="char")return new Gt(n,n);if(l=="word")return t.findWordAt(n);if(l=="line")return new Gt(ce(n.line,0),Xe(t.doc,ce(n.line+1,0)));var a=l(t,n);return new Gt(a.from,a.to)}function _u(t,n,l,a){var h,c;if(n.touches)h=n.touches[0].clientX,c=n.touches[0].clientY;else try{h=n.clientX,c=n.clientY}catch{return!1}if(h>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;a&&yt(n);var f=t.display,g=f.lineDiv.getBoundingClientRect();if(c>g.bottom||!Ve(t,l))return ei(n);c-=g.top-f.viewOffset;for(var x=0;x=h)return Re(t,l,t,oi(t.doc,c),t.display.gutterSpecs[x].className,n),ei(n)}}function Ql(t,n){return _u(t,n,"gutterClick",!0)}function Cu(t,n){Pr(t.display,n)||function(l,a){return Ve(l,"gutterContextMenu")?_u(l,a,"gutterContextMenu",!1):!1}(t,n)||Ye(t,n,"contextmenu")||Ze||t.display.input.onContextMenu(n)}function ku(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),po(t)}Jl.prototype.compare=function(t,n,l){return this.time+400>t&&Be(n,this.pos)==0&&l==this.button};var zs={toString:function(){return"CodeMirror.Init"}},Eu={},Fa={};function Wm(t,n,l){if(!n!=!(l&&l!=zs)){var a=t.display.dragFunctions,h=n?ee:we;h(t.display.scroller,"dragstart",a.start),h(t.display.scroller,"dragenter",a.enter),h(t.display.scroller,"dragover",a.over),h(t.display.scroller,"dragleave",a.leave),h(t.display.scroller,"drop",a.drop)}}function qm(t){t.options.lineWrapping?(C(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(ot(t.display.wrapper,"CodeMirror-wrap"),Ge(t)),Ll(t),pr(t),po(t),setTimeout(function(){return js(t)},100)}function fi(t,n){var l=this;if(!(this instanceof fi))return new fi(t,n);this.options=n=n?ze(n):{},ze(Eu,n,!1);var a=n.value;typeof a=="string"?a=new mr(a,n.mode,null,n.lineSeparator,n.direction):n.mode&&(a.modeOption=n.mode),this.doc=a;var h=new fi.inputStyles[n.inputStyle](this),c=this.display=new $m(t,a,h,n);for(var f in c.wrapper.CodeMirror=this,ku(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ah(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new At,keySeq:null,specialChars:null},n.autofocus&&!_e&&c.input.focus(),v&&j<11&&setTimeout(function(){return l.display.input.reset(!0)},20),function(x){var y=x.display;ee(y.scroller,"mousedown",Ri(x,xu)),ee(y.scroller,"dblclick",v&&j<11?Ri(x,function(V){if(!Ye(x,V)){var ae=ss(x,V);if(ae&&!Ql(x,V)&&!Pr(x.display,V)){yt(V);var ge=x.findWordAt(ae);ka(x.doc,ge.anchor,ge.head)}}}):function(V){return Ye(x,V)||yt(V)}),ee(y.scroller,"contextmenu",function(V){return Cu(x,V)}),ee(y.input.getField(),"contextmenu",function(V){y.scroller.contains(V.target)||Cu(x,V)});var k,E={end:0};function R(){y.activeTouch&&(k=setTimeout(function(){return y.activeTouch=null},1e3),(E=y.activeTouch).end=+new Date)}function O(V){if(V.touches.length!=1)return!1;var ae=V.touches[0];return ae.radiusX<=1&&ae.radiusY<=1}function Z(V,ae){if(ae.left==null)return!0;var ge=ae.left-V.left,pe=ae.top-V.top;return ge*ge+pe*pe>400}ee(y.scroller,"touchstart",function(V){if(!Ye(x,V)&&!O(V)&&!Ql(x,V)){y.input.ensurePolled(),clearTimeout(k);var ae=+new Date;y.activeTouch={start:ae,moved:!1,prev:ae-E.end<=300?E:null},V.touches.length==1&&(y.activeTouch.left=V.touches[0].pageX,y.activeTouch.top=V.touches[0].pageY)}}),ee(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),ee(y.scroller,"touchend",function(V){var ae=y.activeTouch;if(ae&&!Pr(y,V)&&ae.left!=null&&!ae.moved&&new Date-ae.start<300){var ge,pe=x.coordsChar(y.activeTouch,"page");ge=!ae.prev||Z(ae,ae.prev)?new Gt(pe,pe):!ae.prev.prev||Z(ae,ae.prev.prev)?x.findWordAt(pe):new Gt(ce(pe.line,0),Xe(x.doc,ce(pe.line+1,0))),x.setSelection(ge.anchor,ge.head),x.focus(),yt(V)}R()}),ee(y.scroller,"touchcancel",R),ee(y.scroller,"scroll",function(){y.scroller.clientHeight&&(go(x,y.scroller.scrollTop),as(x,y.scroller.scrollLeft,!0),Re(x,"scroll",x))}),ee(y.scroller,"mousewheel",function(V){return $h(x,V)}),ee(y.scroller,"DOMMouseScroll",function(V){return $h(x,V)}),ee(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(V){Ye(x,V)||zt(V)},over:function(V){Ye(x,V)||(function(ae,ge){var pe=ss(ae,ge);if(pe){var Le=document.createDocumentFragment();Sl(ae,pe,Le),ae.display.dragCursor||(ae.display.dragCursor=le("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ae.display.lineSpace.insertBefore(ae.display.dragCursor,ae.display.cursorDiv)),Oe(ae.display.dragCursor,Le)}}(x,V),zt(V))},start:function(V){return function(ae,ge){if(v&&(!ae.state.draggingText||+new Date-ou<100))zt(ge);else if(!Ye(ae,ge)&&!Pr(ae.display,ge)&&(ge.dataTransfer.setData("Text",ae.getSelection()),ge.dataTransfer.effectAllowed="copyMove",ge.dataTransfer.setDragImage&&!$e)){var pe=le("img",null,null,"position: fixed; left: 0; top: 0;");pe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",me&&(pe.width=pe.height=1,ae.display.wrapper.appendChild(pe),pe._top=pe.offsetTop),ge.dataTransfer.setDragImage(pe,0,0),me&&pe.parentNode.removeChild(pe)}}(x,V)},drop:Ri(x,Hm),leave:function(V){Ye(x,V)||au(x)}};var Y=y.input.getField();ee(Y,"keyup",function(V){return vu.call(x,V)}),ee(Y,"keydown",Ri(x,bu)),ee(Y,"keypress",Ri(x,yu)),ee(Y,"focus",function(V){return Ml(x,V)}),ee(Y,"blur",function(V){return Ms(x,V)})}(this),Im(),ds(this),this.curOp.forceUpdate=!0,Nh(this,a),n.autofocus&&!_e||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Ml(l)},20):Ms(this),Fa)Fa.hasOwnProperty(f)&&Fa[f](this,n[f],zs);Th(this),n.finishInit&&n.finishInit(this);for(var g=0;g150)){if(!a)return;l="prev"}}else y=0,l="not";l=="prev"?y=n>c.first?st(xe(c,n-1).text,null,f):0:l=="add"?y=x+t.options.indentUnit:l=="subtract"?y=x-t.options.indentUnit:typeof l=="number"&&(y=x+l),y=Math.max(0,y);var E="",R=0;if(t.options.indentWithTabs)for(var O=Math.floor(y/f);O;--O)R+=f,E+=" ";if(Rf,x=di(n),y=null;if(g&&a.ranges.length>1)if(tn&&tn.text.join(` -`)==n){if(a.ranges.length%tn.text.length==0){y=[];for(var k=0;k=0;R--){var O=a.ranges[R],Z=O.from(),Y=O.to();O.empty()&&(l&&l>0?Z=ce(Z.line,Z.ch-l):t.state.overwrite&&!g?Y=ce(Y.line,Math.min(xe(c,Y.line).text.length,Y.ch+A(x).length)):g&&tn&&tn.lineWise&&tn.text.join(` -`)==x.join(` -`)&&(Z=Y=ce(Z.line,0)));var V={from:Z,to:Y,text:y?y[R%y.length]:x,origin:h||(g?"paste":t.state.cutIncoming>f?"cut":"+input")};Ns(t.doc,V),li(t,"inputRead",t,V)}n&&!g&&Au(t,n),$s(t),t.curOp.updateInput<2&&(t.curOp.updateInput=E),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Du(t,n){var l=t.clipboardData&&t.clipboardData.getData("Text");if(l)return t.preventDefault(),n.isReadOnly()||n.options.disableInput||!n.hasFocus()||yr(n,function(){return Xl(n,l,0,null,"paste")}),!0}function Au(t,n){if(t.options.electricChars&&t.options.smartIndent)for(var l=t.doc.sel,a=l.ranges.length-1;a>=0;a--){var h=l.ranges[a];if(!(h.head.ch>100||a&&l.ranges[a-1].head.line==h.head.line)){var c=t.getModeAt(h.head),f=!1;if(c.electricChars){for(var g=0;g-1){f=jo(t,h.head.line,"smart");break}}else c.electricInput&&c.electricInput.test(xe(t.doc,h.head.line).text.slice(0,h.head.ch))&&(f=jo(t,h.head.line,"smart"));f&&li(t,"electricInput",t,h.head.line)}}}function Lu(t){for(var n=[],l=[],a=0;a0?0:-1));if(isNaN(Le))ge=null;else{var Se=l>0?Le>=55296&&Le<56320:Le>=56320&&Le<57343;ge=new ce(n.line,Math.max(0,Math.min(g.text.length,n.ch+l*(Se?2:1))),-l)}}else ge=h?function(Te,lt,We,Et){var nt=te(lt,Te.doc.direction);if(!nt)return Zl(lt,We,Et);We.ch>=lt.text.length?(We.ch=lt.text.length,We.sticky="before"):We.ch<=0&&(We.ch=0,We.sticky="after");var jt=$(nt,We.ch,We.sticky),Yt=nt[jt];if(Te.doc.direction=="ltr"&&Yt.level%2==0&&(Et>0?Yt.to>We.ch:Yt.from=Yt.from&&mt>=wt.begin)){var Tt=Jt?"before":"after";return new ce(We.line,mt,Tt)}}var _t=function(Qt,Yi,Ji){for(var gi=function(nn,Oa){return Oa?new ce(We.line,St(nn,1),"before"):new ce(We.line,nn,"after")};Qt>=0&&Qt0==(or.level!=1),Qi=rn?Ji.begin:St(Ji.end,-1);if(or.from<=Qi&&Qi0?wt.end:St(wt.begin,-1);return sr==null||Et>0&&sr==lt.text.length||!(Pt=_t(Et>0?0:nt.length-1,Et,Bt(sr)))?null:Pt}(t.cm,g,n,l):Zl(g,n,l);if(ge==null){if(ae||(pe=n.line+x)=t.first+t.size||(n=new ce(pe,n.ch,n.sticky),!(g=xe(t,pe))))return!1;n=Gl(h,t.cm,g,n.line,x)}else n=ge;return!0}if(a=="char"||a=="codepoint")y();else if(a=="column")y(!0);else if(a=="word"||a=="group")for(var k=null,E=a=="group",R=t.cm&&t.cm.getHelper(n,"wordChars"),O=!0;!(l<0)||y(!O);O=!1){var Z=g.text.charAt(n.ch)||` -`,Y=he(Z,R)?"w":E&&Z==` -`?"n":!E||/\s/.test(Z)?null:"p";if(!E||O||Y||(Y="s"),k&&k!=Y){l<0&&(l=1,y(),n.sticky="after");break}if(Y&&(k=Y),l>0&&!y(!O))break}var V=Da(t,n,c,f,!0);return Zt(c,V)&&(V.hitSide=!0),V}function Fu(t,n,l,a){var h,c,f=t.doc,g=n.left;if(a=="page"){var x=Math.min(t.display.wrapper.clientHeight,Nt(t).innerHeight||f(t).documentElement.clientHeight),y=Math.max(x-.5*Ts(t.display),3);h=(l>0?n.bottom:n.top)+l*y}else a=="line"&&(h=l>0?n.bottom+3:n.top-3);for(;(c=kl(t,g,h)).outside;){if(l<0?h<=0:h>=f.height){c.hitSide=!0;break}h+=5*l}return c}var ri=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new At,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Mu(t,n){var l=Wt(t,n.line);if(!l||l.hidden)return null;var a=xe(t.doc,n.line),h=Me(l,a,n.line),c=te(a,t.doc.direction),f="left";c&&(f=$(c,n.ch)%2?"right":"left");var g=dh(h.map,n.ch,f);return g.offset=g.collapse=="right"?g.end:g.start,g}function Vs(t,n){return n&&(t.bad=!0),t}function $a(t,n,l){var a;if(n==t.display.lineDiv){if(!(a=t.display.lineDiv.childNodes[l]))return Vs(t.clipPos(ce(t.display.viewTo-1)),!0);n=null,l=0}else for(a=n;;a=a.parentNode){if(!a||a==t.display.lineDiv)return null;if(a.parentNode&&a.parentNode==t.display.lineDiv)break}for(var h=0;h=n.display.viewTo||h.line=n.display.viewFrom&&Mu(n,a)||{node:g[0].measure.map[2],offset:0},y=h.linea.firstLine()&&(f=ce(f.line-1,xe(a.doc,f.line-1).length)),g.ch==xe(a.doc,g.line).text.length&&g.lineh.viewTo-1)return!1;f.line==h.viewFrom||(t=os(a,f.line))==0?(n=tt(h.view[0].line),l=h.view[0].node):(n=tt(h.view[t].line),l=h.view[t-1].node.nextSibling);var x,y,k=os(a,g.line);if(k==h.view.length-1?(x=h.viewTo-1,y=h.lineDiv.lastChild):(x=tt(h.view[k+1].line)-1,y=h.view[k+1].node.previousSibling),!l)return!1;for(var E=a.doc.splitLines(function(lt,We,Et,nt,jt){var Yt="",Ot=!1,St=lt.doc.lineSeparator(),Bt=!1;function wt(_t){return function(Pt){return Pt.id==_t}}function Jt(){Ot&&(Yt+=St,Bt&&(Yt+=St),Ot=Bt=!1)}function mt(_t){_t&&(Jt(),Yt+=_t)}function Tt(_t){if(_t.nodeType==1){var Pt=_t.getAttribute("cm-text");if(Pt)return void mt(Pt);var sr,Qt=_t.getAttribute("cm-marker");if(Qt){var Yi=lt.findMarks(ce(nt,0),ce(jt+1,0),wt(+Qt));return void(Yi.length&&(sr=Yi[0].find(0))&&mt(bt(lt.doc,sr.from,sr.to).join(St)))}if(_t.getAttribute("contenteditable")=="false")return;var Ji=/^(pre|div|p|li|table|br)$/i.test(_t.nodeName);if(!/^br$/i.test(_t.nodeName)&&_t.textContent.length==0)return;Ji&&Jt();for(var gi=0;gi<_t.childNodes.length;gi++)Tt(_t.childNodes[gi]);/^(pre|p)$/i.test(_t.nodeName)&&(Bt=!0),Ji&&(Ot=!0)}else _t.nodeType==3&&mt(_t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Tt(We),We!=Et;)We=We.nextSibling,Bt=!1;return Yt}(a,l,y,n,x)),R=bt(a.doc,ce(n,0),ce(x,xe(a.doc,x).text.length));E.length>1&&R.length>1;)if(A(E)==A(R))E.pop(),R.pop(),x--;else{if(E[0]!=R[0])break;E.shift(),R.shift(),n++}for(var O=0,Z=0,Y=E[0],V=R[0],ae=Math.min(Y.length,V.length);Of.ch&&ge.charCodeAt(ge.length-Z-1)==pe.charCodeAt(pe.length-Z-1);)O--,Z++;E[E.length-1]=ge.slice(0,ge.length-Z).replace(/^\u200b+/,""),E[0]=E[0].slice(O).replace(/\u200b+$/,"");var Se=ce(n,O),Te=ce(x,R.length?A(R).length-Z:0);return E.length>1||E[0]||Be(Se,Te)?(Rs(a.doc,E,Se,Te,"+input"),!0):void 0},ri.prototype.ensurePolled=function(){this.forceCompositionEnd()},ri.prototype.reset=function(){this.forceCompositionEnd()},ri.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ri.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},ri.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||yr(this.cm,function(){return pr(t.cm)})},ri.prototype.setUneditable=function(t){t.contentEditable="false"},ri.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Ri(this.cm,Xl)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},ri.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},ri.prototype.onContextMenu=function(){},ri.prototype.resetPosition=function(){},ri.prototype.needsContentAttribute=!0;var Ai=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new At,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ai.prototype.init=function(t){var n=this,l=this,a=this.cm;this.createField(t);var h=this.textarea;function c(f){if(!Ye(a,f)){if(a.somethingSelected())Ma({lineWise:!1,text:a.getSelections()});else{if(!a.options.lineWiseCopyCut)return;var g=Lu(a);Ma({lineWise:!0,text:g.text}),f.type=="cut"?a.setSelections(g.ranges,null,It):(l.prevInput="",h.value=g.text.join(` -`),Ne(h))}f.type=="cut"&&(a.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),J&&(h.style.width="0px"),ee(h,"input",function(){v&&j>=9&&n.hasSelection&&(n.hasSelection=null),l.poll()}),ee(h,"paste",function(f){Ye(a,f)||Du(f,a)||(a.state.pasteIncoming=+new Date,l.fastPoll())}),ee(h,"cut",c),ee(h,"copy",c),ee(t.scroller,"paste",function(f){if(!Pr(t,f)&&!Ye(a,f)){if(!h.dispatchEvent)return a.state.pasteIncoming=+new Date,void l.focus();var g=new Event("paste");g.clipboardData=f.clipboardData,h.dispatchEvent(g)}}),ee(t.lineSpace,"selectstart",function(f){Pr(t,f)||yt(f)}),ee(h,"compositionstart",function(){var f=a.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:f,range:a.markText(f,a.getCursor("to"),{className:"CodeMirror-composing"})}}),ee(h,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Ai.prototype.createField=function(t){this.wrapper=Tu(),this.textarea=this.wrapper.firstChild},Ai.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Ai.prototype.prepareSelection=function(){var t=this.cm,n=t.display,l=t.doc,a=xh(t);if(t.options.moveInputWithCursor){var h=Xr(t,l.sel.primary().head,"div"),c=n.wrapper.getBoundingClientRect(),f=n.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,h.top+f.top-c.top)),a.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,h.left+f.left-c.left))}return a},Ai.prototype.showSelection=function(t){var n=this.cm.display;Oe(n.cursorDiv,t.cursors),Oe(n.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Ai.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var n=this.cm;if(this.resetting=!0,n.somethingSelected()){this.prevInput="";var l=n.getSelection();this.textarea.value=l,n.state.focused&&Ne(this.textarea),v&&j>=9&&(this.hasSelection=l)}else t||(this.prevInput=this.textarea.value="",v&&j>=9&&(this.hasSelection=null));this.resetting=!1}},Ai.prototype.getField=function(){return this.textarea},Ai.prototype.supportsTouch=function(){return!1},Ai.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_e||H(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Ai.prototype.blur=function(){this.textarea.blur()},Ai.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ai.prototype.receivedFocus=function(){this.slowPoll()},Ai.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Ai.prototype.fastPoll=function(){var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,function l(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,l))})},Ai.prototype.poll=function(){var t=this,n=this.cm,l=this.textarea,a=this.prevInput;if(this.contextMenuPending||this.resetting||!n.state.focused||Ui(l)&&!a&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var h=l.value;if(h==a&&!n.somethingSelected())return!1;if(v&&j>=9&&this.hasSelection===h||ye&&/[\uf700-\uf7ff]/.test(h))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var c=h.charCodeAt(0);if(c!=8203||a||(a="​"),c==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,g=Math.min(a.length,h.length);f1e3||h.indexOf(` -`)>-1?l.value=t.prevInput="":t.prevInput=h,t.composing&&(t.composing.range.clear(),t.composing.range=n.markText(t.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ai.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ai.prototype.onKeyPress=function(){v&&j>=9&&(this.hasSelection=null),this.fastPoll()},Ai.prototype.onContextMenu=function(t){var n=this,l=n.cm,a=l.display,h=n.textarea;n.contextMenuPending&&n.contextMenuPending();var c=ss(l,t),f=a.scroller.scrollTop;if(c&&!me){l.options.resetSelectionOnContextMenu&&l.doc.sel.contains(c)==-1&&Ri(l,Gi)(l.doc,Hn(c),It);var g,x=h.style.cssText,y=n.wrapper.style.cssText,k=n.wrapper.offsetParent.getBoundingClientRect();if(n.wrapper.style.cssText="position: static",h.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(t.clientY-k.top-5)+"px; left: "+(t.clientX-k.left-5)+`px; - z-index: 1000; background: `+(v?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`,D&&(g=h.ownerDocument.defaultView.scrollY),a.input.focus(),D&&h.ownerDocument.defaultView.scrollTo(null,g),a.input.reset(),l.somethingSelected()||(h.value=n.prevInput=" "),n.contextMenuPending=O,a.selForContextMenu=l.doc.sel,clearTimeout(a.detectingSelectAll),v&&j>=9&&R(),Ze){zt(t);var E=function(){we(window,"mouseup",E),setTimeout(O,20)};ee(window,"mouseup",E)}else setTimeout(O,50)}function R(){if(h.selectionStart!=null){var Z=l.somethingSelected(),Y="​"+(Z?h.value:"");h.value="⇚",h.value=Y,n.prevInput=Z?"":"​",h.selectionStart=1,h.selectionEnd=Y.length,a.selForContextMenu=l.doc.sel}}function O(){if(n.contextMenuPending==O&&(n.contextMenuPending=!1,n.wrapper.style.cssText=y,h.style.cssText=x,v&&j<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=f),h.selectionStart!=null)){(!v||v&&j<9)&&R();var Z=0,Y=function(){a.selForContextMenu==l.doc.sel&&h.selectionStart==0&&h.selectionEnd>0&&n.prevInput=="​"?Ri(l,Jh)(l):Z++<10?a.detectingSelectAll=setTimeout(Y,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Y,200)}}},Ai.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Ai.prototype.setUneditable=function(){},Ai.prototype.needsContentAttribute=!1,function(t){var n=t.optionHandlers;function l(a,h,c,f){t.defaults[a]=h,c&&(n[a]=f?function(g,x,y){y!=zs&&c(g,x,y)}:c)}t.defineOption=l,t.Init=zs,l("value","",function(a,h){return a.setValue(h)},!0),l("mode",null,function(a,h){a.doc.modeOption=h,Pl(a)},!0),l("indentUnit",2,Pl,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(a){wo(a),po(a),pr(a)},!0),l("lineSeparator",null,function(a,h){if(a.doc.lineSep=h,h){var c=[],f=a.doc.first;a.doc.iter(function(x){for(var y=0;;){var k=x.text.indexOf(h,y);if(k==-1)break;y=k+h.length,c.push(ce(f,k))}f++});for(var g=c.length-1;g>=0;g--)Rs(a.doc,h,c[g],ce(c[g].line,c[g].ch+h.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(a,h,c){a.state.specialChars=new RegExp(h.source+(h.test(" ")?"":"| "),"g"),c!=zs&&a.refresh()}),l("specialCharPlaceholder",ji,function(a){return a.refresh()},!0),l("electricChars",!0),l("inputStyle",_e?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(a,h){return a.getInputField().spellcheck=h},!0),l("autocorrect",!1,function(a,h){return a.getInputField().autocorrect=h},!0),l("autocapitalize",!1,function(a,h){return a.getInputField().autocapitalize=h},!0),l("rtlMoveVisually",!de),l("wholeLineUpdateBefore",!0),l("theme","default",function(a){ku(a),xo(a)},!0),l("keyMap","default",function(a,h,c){var f=Sa(h),g=c!=zs&&Sa(c);g&&g.detach&&g.detach(a,f),f.attach&&f.attach(a,g||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,qm,!0),l("gutters",[],function(a,h){a.display.gutterSpecs=Hl(h,a.options.lineNumbers),xo(a)},!0),l("fixedGutter",!0,function(a,h){a.display.gutters.style.left=h?Al(a.display)+"px":"0",a.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(a){return js(a)},!0),l("scrollbarStyle","native",function(a){Ah(a),js(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),l("lineNumbers",!1,function(a,h){a.display.gutterSpecs=Hl(a.options.gutters,h),xo(a)},!0),l("firstLineNumber",1,xo,!0),l("lineNumberFormatter",function(a){return a},xo,!0),l("showCursorWhenSelecting",!1,mo,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(a,h){h=="nocursor"&&(Ms(a),a.display.input.blur()),a.display.input.readOnlyChanged(h)}),l("screenReaderLabel",null,function(a,h){h=h===""?null:h,a.display.input.screenReaderLabelChanged(h)}),l("disableInput",!1,function(a,h){h||a.display.input.reset()},!0),l("dragDrop",!0,Wm),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,mo,!0),l("singleCursorHeightPerLine",!0,mo,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,wo,!0),l("addModeClass",!1,wo,!0),l("pollInterval",100),l("undoDepth",200,function(a,h){return a.doc.history.undoDepth=h}),l("historyEventDelay",1250),l("viewportMargin",10,function(a){return a.refresh()},!0),l("maxHighlightLength",1e4,wo,!0),l("moveInputWithCursor",!0,function(a,h){h||a.display.input.resetPosition()}),l("tabindex",null,function(a,h){return a.display.input.getField().tabIndex=h||""}),l("autofocus",null),l("direction","ltr",function(a,h){return a.doc.setDirection(h)},!0),l("phrases",null)}(fi),function(t){var n=t.optionHandlers,l=t.helpers={};t.prototype={constructor:t,focus:function(){Nt(this).focus(),this.display.input.focus()},setOption:function(a,h){var c=this.options,f=c[a];c[a]==h&&a!="mode"||(c[a]=h,n.hasOwnProperty(a)&&Ri(this,n[a])(this,h,f),Re(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,h){this.state.keyMaps[h?"push":"unshift"](Sa(a))},removeKeyMap:function(a){for(var h=this.state.keyMaps,c=0;cc&&(jo(this,g.head.line,a,!0),c=g.head.line,f==this.doc.sel.primIndex&&$s(this));else{var x=g.from(),y=g.to(),k=Math.max(c,x.line);c=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(var E=k;E0&&Wl(this.doc,f,new Gt(x,R[f].to()),It)}}}),getTokenAt:function(a,h){return Nr(this,a,h)},getLineTokens:function(a,h){return Nr(this,ce(a),h,!0)},getTokenTypeAt:function(a){a=Xe(this.doc,a);var h,c=gn(this,xe(this.doc,a.line)),f=0,g=(c.length-1)/2,x=a.ch;if(x==0)h=c[2];else for(;;){var y=f+g>>1;if((y?c[2*y-1]:0)>=x)g=y;else{if(!(c[2*y+1]x&&(a=x,g=!0),f=xe(this.doc,a)}else f=a;return pa(this,f,{top:0,left:0},h||"page",c||g).top+(g?this.doc.height-W(f):0)},defaultTextHeight:function(){return Ts(this.display)},defaultCharWidth:function(){return Fs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,h,c,f,g){var x,y,k,E=this.display,R=(a=Xr(this,Xe(this.doc,a))).bottom,O=a.left;if(h.style.position="absolute",h.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(h),E.sizer.appendChild(h),f=="over")R=a.top;else if(f=="above"||f=="near"){var Z=Math.max(E.wrapper.clientHeight,this.doc.height),Y=Math.max(E.sizer.clientWidth,E.lineSpace.clientWidth);(f=="above"||a.bottom+h.offsetHeight>Z)&&a.top>h.offsetHeight?R=a.top-h.offsetHeight:a.bottom+h.offsetHeight<=Z&&(R=a.bottom),O+h.offsetWidth>Y&&(O=Y-h.offsetWidth)}h.style.top=R+"px",h.style.left=h.style.right="",g=="right"?(O=E.sizer.clientWidth-h.offsetWidth,h.style.right="0px"):(g=="left"?O=0:g=="middle"&&(O=(E.sizer.clientWidth-h.offsetWidth)/2),h.style.left=O+"px"),c&&(x=this,y={left:O,top:R,right:O+h.offsetWidth,bottom:R+h.offsetHeight},(k=$l(x,y)).scrollTop!=null&&go(x,k.scrollTop),k.scrollLeft!=null&&as(x,k.scrollLeft))},triggerOnKeyDown:nr(bu),triggerOnKeyPress:nr(yu),triggerOnKeyUp:vu,triggerOnMouseDown:nr(xu),execCommand:function(a){if(To.hasOwnProperty(a))return To[a].call(null,this)},triggerElectric:nr(function(a){Au(this,a)}),findPosH:function(a,h,c,f){var g=1;h<0&&(g=-1,h=-h);for(var x=Xe(this.doc,a),y=0;y0&&y(h.charAt(c-1));)--c;for(;f.5||this.options.lineWrapping)&&Ll(this),Re(this,"refresh",this)}),swapDoc:nr(function(a){var h=this.doc;return h.cm=null,this.state.selectingText&&this.state.selectingText(),Nh(this,a),po(this),this.display.input.reset(),fo(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,li(this,"swapDoc",this,h),h}),phrase:function(a){var h=this.options.phrases;return h&&Object.prototype.hasOwnProperty.call(h,a)?h[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ut(t),t.registerHelper=function(a,h,c){l.hasOwnProperty(a)||(l[a]=t[a]={_global:[]}),l[a][h]=c},t.registerGlobalHelper=function(a,h,c,f){t.registerHelper(a,h,f),l[a]._global.push({pred:c,val:f})}}(fi);var Gm="iter insert remove copy getEditor constructor".split(" ");for(var ja in mr.prototype)mr.prototype.hasOwnProperty(ja)&&Ft(Gm,ja)<0&&(fi.prototype[ja]=function(t){return function(){return t.apply(this.doc,arguments)}}(mr.prototype[ja]));return ut(mr),fi.inputStyles={textarea:Ai,contenteditable:ri},fi.defineMode=function(t){fi.defaults.mode||t=="null"||(fi.defaults.mode=t),dn.apply(this,arguments)},fi.defineMIME=function(t,n){vi[t]=n},fi.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),fi.defineMIME("text/plain","null"),fi.defineExtension=function(t,n){fi.prototype[t]=n},fi.defineDocExtension=function(t,n){mr.prototype[t]=n},fi.fromTextArea=function(t,n){if((n=n?ze(n):{}).value=t.value,!n.tabindex&&t.tabIndex&&(n.tabindex=t.tabIndex),!n.placeholder&&t.placeholder&&(n.placeholder=t.placeholder),n.autofocus==null){var l=H(t.ownerDocument);n.autofocus=l==t||t.getAttribute("autofocus")!=null&&l==document.body}function a(){t.value=g.getValue()}var h;if(t.form&&(ee(t.form,"submit",a),!n.leaveSubmitMethodAlone)){var c=t.form;h=c.submit;try{var f=c.submit=function(){a(),c.submit=h,c.submit(),c.submit=f}}catch{}}n.finishInit=function(x){x.save=a,x.getTextArea=function(){return t},x.toTextArea=function(){x.toTextArea=isNaN,a(),t.parentNode.removeChild(x.getWrapperElement()),t.style.display="",t.form&&(we(t.form,"submit",a),n.leaveSubmitMethodAlone||typeof t.form.submit!="function"||(t.form.submit=h))}},t.style.display="none";var g=fi(function(x){return t.parentNode.insertBefore(x,t.nextSibling)},n);return g},function(t){t.off=we,t.on=ee,t.wheelEventPixels=jm,t.Doc=mr,t.splitLines=di,t.countColumn=st,t.findColumn=ki,t.isWordChar=Q,t.Pass=$t,t.signal=Re,t.Line=Vt,t.changeEnd=In,t.scrollbarModel=Dh,t.Pos=ce,t.cmpPos=Be,t.modes=hr,t.mimeModes=vi,t.resolveMode=M,t.getMode=P,t.modeExtensions=ke,t.extendMode=fe,t.copyState=Pe,t.startState=Ct,t.innerMode=at,t.commands=To,t.keyMap=Cn,t.keyName=cu,t.isModifierKey=hu,t.lookupKey=Is,t.normalizeKeyMap=Vm,t.StringStream=Ie,t.SharedTextMarker=Ao,t.TextMarker=zn,t.LineWidget=Do,t.e_preventDefault=yt,t.e_stopPropagation=pt,t.e_stop=zt,t.addClass=C,t.contains=Ae,t.rmClass=ot,t.keyNames=Vn}(fi),fi.version="5.65.9",fi})},{}],11:[function(i,r,s){var d;d=function(u){var p=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;u.defineMode("gfm",function(m,b){var w=0,v={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(B){return{code:B.code,codeBlock:B.codeBlock,ateSpace:B.ateSpace}},token:function(B,U){if(U.combineTokens=null,U.codeBlock)return B.match(/^```+/)?(U.codeBlock=!1,null):(B.skipToEnd(),null);if(B.sol()&&(U.code=!1),B.sol()&&B.match(/^```+/))return B.skipToEnd(),U.codeBlock=!0,null;if(B.peek()==="`"){B.next();var q=B.pos;B.eatWhile("`");var me=1+B.pos-q;return U.code?me===w&&(U.code=!1):(w=me,U.code=!0),null}return U.code?(B.next(),null):B.eatSpace()?(U.ateSpace=!0,null):(B.sol()||U.ateSpace)&&(U.ateSpace=!1,b.gitHubSpice!==!1)&&(B.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/)||B.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))||B.match(p)&&B.string.slice(B.start-2,B.start)!="]("&&(B.start==0||/\W/.test(B.string.charAt(B.start-1)))?(U.combineTokens=!0,"link"):(B.next(),null)},blankLine:function(B){return B.code=!1,null}},j={taskLists:!0,strikethrough:!0,emoji:!0};for(var D in b)j[D]=b[D];return j.name="markdown",u.overlayMode(u.getMode(m,j),v)},"markdown"),u.defineMIME("text/x-gfm","gfm")},typeof s=="object"&&typeof r=="object"?d(i("../../lib/codemirror"),i("../markdown/markdown"),i("../../addon/mode/overlay")):d(CodeMirror)},{"../../addon/mode/overlay":7,"../../lib/codemirror":10,"../markdown/markdown":12}],12:[function(i,r,s){var d;d=function(u){u.defineMode("markdown",function(p,m){var b=u.getMode(p,"text/html"),w=b.name=="null";m.highlightFormatting===void 0&&(m.highlightFormatting=!1),m.maxBlockquoteDepth===void 0&&(m.maxBlockquoteDepth=0),m.taskLists===void 0&&(m.taskLists=!1),m.strikethrough===void 0&&(m.strikethrough=!1),m.emoji===void 0&&(m.emoji=!1),m.fencedCodeBlockHighlighting===void 0&&(m.fencedCodeBlockHighlighting=!0),m.fencedCodeBlockDefaultMode===void 0&&(m.fencedCodeBlockDefaultMode="text/plain"),m.xml===void 0&&(m.xml=!0),m.tokenTypeOverrides===void 0&&(m.tokenTypeOverrides={});var v={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var j in v)v.hasOwnProperty(j)&&m.tokenTypeOverrides[j]&&(v[j]=m.tokenTypeOverrides[j]);var D=/^([*\-_])(?:\s*\1){2,}\s*$/,B=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,U=/^\[(x| )\](?=\s)/i,q=m.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,me=/^ {0,3}(?:\={1,}|-{2,})\s*$/,$e=/^[^#!\[\]*_\\<>` "'(~:]+/,Fe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ie=/^\s*\[[^\]]+?\]:.*$/,J=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function re(H,C,Qe){return C.f=C.inline=Qe,Qe(H,C)}function _e(H,C,Qe){return C.f=C.block=Qe,Qe(H,C)}function ye(H){if(H.linkTitle=!1,H.linkHref=!1,H.linkText=!1,H.em=!1,H.strong=!1,H.strikethrough=!1,H.quote=0,H.indentedCode=!1,H.f==de){var C=w;if(!C){var Qe=u.innerMode(b,H.htmlState);C=Qe.mode.name=="xml"&&Qe.state.tagStart===null&&!Qe.state.context&&Qe.state.tokenize.isInText}C&&(H.f=Je,H.block=ue,H.htmlState=null)}return H.trailingSpace=0,H.trailingSpaceNewLine=!1,H.prevLine=H.thisLine,H.thisLine={stream:null},null}function ue(H,C){var Qe,Ne=H.column()===C.indentation,ht=!(Qe=C.prevLine.stream)||!/\S/.test(Qe.string),Nt=C.indentedCode,Mt=C.prevLine.hr,ze=C.list!==!1,st=(C.listStack[C.listStack.length-1]||0)+3;C.indentedCode=!1;var At=C.indentation;if(C.indentationDiff===null&&(C.indentationDiff=C.indentation,ze)){for(C.list=null;At=4&&(Nt||C.prevLine.fencedCodeEnd||C.prevLine.header||ht))return H.skipToEnd(),C.indentedCode=!0,v.code;if(H.eatSpace())return null;if(Ne&&C.indentation<=st&&(It=H.match(q))&&It[1].length<=6)return C.quote=0,C.header=It[1].length,C.thisLine.header=!0,m.highlightFormatting&&(C.formatting="header"),C.f=C.inline,je(C);if(C.indentation<=st&&H.eat(">"))return C.quote=Ne?1:C.quote+1,m.highlightFormatting&&(C.formatting="quote"),H.eatSpace(),je(C);if(!$t&&!C.setext&&Ne&&C.indentation<=st&&(It=H.match(B))){var Ti=It[1]?"ol":"ul";return C.indentation=At+H.current().length,C.list=!0,C.quote=0,C.listStack.push(C.indentation),C.em=!1,C.strong=!1,C.code=!1,C.strikethrough=!1,m.taskLists&&H.match(U,!1)&&(C.taskList=!0),C.f=C.inline,m.highlightFormatting&&(C.formatting=["list","list-"+Ti]),je(C)}return Ne&&C.indentation<=st&&(It=H.match(Fe,!0))?(C.quote=0,C.fencedEndRE=new RegExp(It[1]+"+ *$"),C.localMode=m.fencedCodeBlockHighlighting&&function(pi){if(u.findModeByName){var ki=u.findModeByName(pi);ki&&(pi=ki.mime||ki.mimes[0])}var be=u.getMode(p,pi);return be.name=="null"?null:be}(It[2]||m.fencedCodeBlockDefaultMode),C.localMode&&(C.localState=u.startState(C.localMode)),C.f=C.block=Ce,m.highlightFormatting&&(C.formatting="code-block"),C.code=-1,je(C)):C.setext||!(Ft&&ze||C.quote||C.list!==!1||C.code||$t||ie.test(H.string))&&(It=H.lookAhead(1))&&(It=It.match(me))?(C.setext?(C.header=C.setext,C.setext=0,H.skipToEnd(),m.highlightFormatting&&(C.formatting="header")):(C.header=It[0].charAt(0)=="="?1:2,C.setext=C.header),C.thisLine.header=!0,C.f=C.inline,je(C)):$t?(H.skipToEnd(),C.hr=!0,C.thisLine.hr=!0,v.hr):H.peek()==="["?re(H,C,Oe):re(H,C,C.inline)}function de(H,C){var Qe=b.token(H,C.htmlState);if(!w){var Ne=u.innerMode(b,C.htmlState);(Ne.mode.name=="xml"&&Ne.state.tagStart===null&&!Ne.state.context&&Ne.state.tokenize.isInText||C.md_inside&&H.current().indexOf(">")>-1)&&(C.f=Je,C.block=ue,C.htmlState=null)}return Qe}function Ce(H,C){var Qe,Ne=C.listStack[C.listStack.length-1]||0,ht=C.indentation=H.quote?C.push(v.formatting+"-"+H.formatting[Qe]+"-"+H.quote):C.push("error"))}if(H.taskOpen)return C.push("meta"),C.length?C.join(" "):null;if(H.taskClosed)return C.push("property"),C.length?C.join(" "):null;if(H.linkHref?C.push(v.linkHref,"url"):(H.strong&&C.push(v.strong),H.em&&C.push(v.em),H.strikethrough&&C.push(v.strikethrough),H.emoji&&C.push(v.emoji),H.linkText&&C.push(v.linkText),H.code&&C.push(v.code),H.image&&C.push(v.image),H.imageAltText&&C.push(v.imageAltText,"link"),H.imageMarker&&C.push(v.imageMarker)),H.header&&C.push(v.header,v.header+"-"+H.header),H.quote&&(C.push(v.quote),!m.maxBlockquoteDepth||m.maxBlockquoteDepth>=H.quote?C.push(v.quote+"-"+H.quote):C.push(v.quote+"-"+m.maxBlockquoteDepth)),H.list!==!1){var Ne=(H.listStack.length-1)%3;Ne?Ne===1?C.push(v.list2):C.push(v.list3):C.push(v.list1)}return H.trailingSpaceNewLine?C.push("trailing-space-new-line"):H.trailingSpace&&C.push("trailing-space-"+(H.trailingSpace%2?"a":"b")),C.length?C.join(" "):null}function Ze(H,C){if(H.match($e,!0))return je(C)}function Je(H,C){var Qe=C.text(H,C);if(Qe!==void 0)return Qe;if(C.list)return C.list=null,je(C);if(C.taskList)return H.match(U,!0)[1]===" "?C.taskOpen=!0:C.taskClosed=!0,m.highlightFormatting&&(C.formatting="task"),C.taskList=!1,je(C);if(C.taskOpen=!1,C.taskClosed=!1,C.header&&H.match(/^#+$/,!0))return m.highlightFormatting&&(C.formatting="header"),je(C);var Ne=H.next();if(C.linkTitle){C.linkTitle=!1;var ht=Ne;Ne==="("&&(ht=")");var Nt="^\\s*(?:[^"+(ht=(ht+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+ht;if(H.match(new RegExp(Nt),!0))return v.linkHref}if(Ne==="`"){var Mt=C.formatting;m.highlightFormatting&&(C.formatting="code"),H.eatWhile("`");var ze=H.current().length;if(C.code!=0||C.quote&&ze!=1){if(ze==C.code){var st=je(C);return C.code=0,st}return C.formatting=Mt,je(C)}return C.code=ze,je(C)}if(C.code)return je(C);if(Ne==="\\"&&(H.next(),m.highlightFormatting)){var At=je(C),Ft=v.formatting+"-escape";return At?At+" "+Ft:Ft}if(Ne==="!"&&H.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return C.imageMarker=!0,C.image=!0,m.highlightFormatting&&(C.formatting="image"),je(C);if(Ne==="["&&C.imageMarker&&H.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return C.imageMarker=!1,C.imageAltText=!0,m.highlightFormatting&&(C.formatting="image"),je(C);if(Ne==="]"&&C.imageAltText){m.highlightFormatting&&(C.formatting="image");var At=je(C);return C.imageAltText=!1,C.image=!1,C.inline=C.f=ot,At}if(Ne==="["&&!C.image)return C.linkText&&H.match(/^.*?\]/)||(C.linkText=!0,m.highlightFormatting&&(C.formatting="link")),je(C);if(Ne==="]"&&C.linkText){m.highlightFormatting&&(C.formatting="link");var At=je(C);return C.linkText=!1,C.inline=C.f=H.match(/\(.*?\)| ?\[.*?\]/,!1)?ot:Je,At}if(Ne==="<"&&H.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return C.f=C.inline=Ke,m.highlightFormatting&&(C.formatting="link"),(At=je(C))?At+=" ":At="",At+v.linkInline;if(Ne==="<"&&H.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return C.f=C.inline=Ke,m.highlightFormatting&&(C.formatting="link"),(At=je(C))?At+=" ":At="",At+v.linkEmail;if(m.xml&&Ne==="<"&&H.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var $t=H.string.indexOf(">",H.pos);if($t!=-1){var It=H.string.substring(H.start,$t);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(It)&&(C.md_inside=!0)}return H.backUp(1),C.htmlState=u.startState(b),_e(H,C,de)}if(m.xml&&Ne==="<"&&H.match(/^\/\w*?>/))return C.md_inside=!1,"tag";if(Ne==="*"||Ne==="_"){for(var Ti=1,pi=H.pos==1?" ":H.string.charAt(H.pos-2);Ti<3&&H.eat(Ne);)Ti++;var ki=H.peek()||" ",be=!/\s/.test(ki)&&(!J.test(ki)||/\s/.test(pi)||J.test(pi)),K=!/\s/.test(pi)&&(!J.test(pi)||/\s/.test(ki)||J.test(ki)),A=null,S=null;if(Ti%2&&(C.em||!be||Ne!=="*"&&K&&!J.test(pi)?C.em!=Ne||!K||Ne!=="*"&&be&&!J.test(ki)||(A=!1):A=!0),Ti>1&&(C.strong||!be||Ne!=="*"&&K&&!J.test(pi)?C.strong!=Ne||!K||Ne!=="*"&&be&&!J.test(ki)||(S=!1):S=!0),S!=null||A!=null)return m.highlightFormatting&&(C.formatting=A==null?"strong":S==null?"em":"strong em"),A===!0&&(C.em=Ne),S===!0&&(C.strong=Ne),st=je(C),A===!1&&(C.em=!1),S===!1&&(C.strong=!1),st}else if(Ne===" "&&(H.eat("*")||H.eat("_"))){if(H.peek()===" ")return je(C);H.backUp(1)}if(m.strikethrough){if(Ne==="~"&&H.eatWhile(Ne)){if(C.strikethrough)return m.highlightFormatting&&(C.formatting="strikethrough"),st=je(C),C.strikethrough=!1,st;if(H.match(/^[^\s]/,!1))return C.strikethrough=!0,m.highlightFormatting&&(C.formatting="strikethrough"),je(C)}else if(Ne===" "&&H.match("~~",!0)){if(H.peek()===" ")return je(C);H.backUp(2)}}if(m.emoji&&Ne===":"&&H.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){C.emoji=!0,m.highlightFormatting&&(C.formatting="emoji");var I=je(C);return C.emoji=!1,I}return Ne===" "&&(H.match(/^ +$/,!1)?C.trailingSpace++:C.trailingSpace&&(C.trailingSpaceNewLine=!0)),je(C)}function Ke(H,C){if(H.next()===">"){C.f=C.inline=Je,m.highlightFormatting&&(C.formatting="link");var Qe=je(C);return Qe?Qe+=" ":Qe="",Qe+v.linkInline}return H.match(/^[^>]+/,!0),v.linkInline}function ot(H,C){if(H.eatSpace())return null;var Qe,Ne=H.next();return Ne==="("||Ne==="["?(C.f=C.inline=(Qe=Ne==="("?")":"]",function(ht,Nt){if(ht.next()===Qe){Nt.f=Nt.inline=Je,m.highlightFormatting&&(Nt.formatting="link-string");var Mt=je(Nt);return Nt.linkHref=!1,Mt}return ht.match(oe[Qe]),Nt.linkHref=!0,je(Nt)}),m.highlightFormatting&&(C.formatting="link-string"),C.linkHref=!0,je(C)):"error"}var oe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Oe(H,C){return H.match(/^([^\]\\]|\\.)*\]:/,!1)?(C.f=le,H.next(),m.highlightFormatting&&(C.formatting="link"),C.linkText=!0,je(C)):re(H,C,Je)}function le(H,C){if(H.match("]:",!0)){C.f=C.inline=Ee,m.highlightFormatting&&(C.formatting="link");var Qe=je(C);return C.linkText=!1,Qe}return H.match(/^([^\]\\]|\\.)+/,!0),v.linkText}function Ee(H,C){return H.eatSpace()?null:(H.match(/^[^\s]+/,!0),H.peek()===void 0?C.linkTitle=!0:H.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),C.f=C.inline=Je,v.linkHref+" url")}var Ae={startState:function(){return{f:ue,prevLine:{stream:null},thisLine:{stream:null},block:ue,htmlState:null,indentation:0,inline:Je,text:Ze,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(H){return{f:H.f,prevLine:H.prevLine,thisLine:H.thisLine,block:H.block,htmlState:H.htmlState&&u.copyState(b,H.htmlState),indentation:H.indentation,localMode:H.localMode,localState:H.localMode?u.copyState(H.localMode,H.localState):null,inline:H.inline,text:H.text,formatting:!1,linkText:H.linkText,linkTitle:H.linkTitle,linkHref:H.linkHref,code:H.code,em:H.em,strong:H.strong,strikethrough:H.strikethrough,emoji:H.emoji,header:H.header,setext:H.setext,hr:H.hr,taskList:H.taskList,list:H.list,listStack:H.listStack.slice(0),quote:H.quote,indentedCode:H.indentedCode,trailingSpace:H.trailingSpace,trailingSpaceNewLine:H.trailingSpaceNewLine,md_inside:H.md_inside,fencedEndRE:H.fencedEndRE}},token:function(H,C){if(C.formatting=!1,H!=C.thisLine.stream){if(C.header=0,C.hr=!1,H.match(/^\s*$/,!0))return ye(C),null;if(C.prevLine=C.thisLine,C.thisLine={stream:H},C.taskList=!1,C.trailingSpace=0,C.trailingSpaceNewLine=!1,!C.localState&&(C.f=C.block,C.f!=de)){var Qe=H.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(C.indentation=Qe,C.indentationDiff=null,Qe>0)return null}}return C.f(H,C)},innerMode:function(H){return H.block==de?{state:H.htmlState,mode:b}:H.localState?{state:H.localState,mode:H.localMode}:{state:H,mode:Ae}},indent:function(H,C,Qe){return H.block==de&&b.indent?b.indent(H.htmlState,C,Qe):H.localState&&H.localMode.indent?H.localMode.indent(H.localState,C,Qe):u.Pass},blankLine:ye,getType:je,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ae},"xml"),u.defineMIME("text/markdown","markdown"),u.defineMIME("text/x-markdown","markdown")},typeof s=="object"&&typeof r=="object"?d(i("../../lib/codemirror"),i("../xml/xml"),i("../meta")):d(CodeMirror)},{"../../lib/codemirror":10,"../meta":13,"../xml/xml":14}],13:[function(i,r,s){(function(d){d.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var u=0;u-1&&m.substring(v+1,m.length);if(j)return d.findModeByExtension(j)},d.findModeByName=function(m){m=m.toLowerCase();for(var b=0;b")):null:oe.match("--")?le($e("comment","-->")):oe.match("DOCTYPE",!0,!0)?(oe.eatWhile(/[\w\._\-]/),le(Fe(1))):null:oe.eat("?")?(oe.eatWhile(/[\w\._\-]/),Oe.tokenize=$e("meta","?>"),"meta"):(w=oe.eat("/")?"closeTag":"openTag",Oe.tokenize=me,"tag bracket"):Ee=="&"?(oe.eat("#")?oe.eat("x")?oe.eatWhile(/[a-fA-F\d]/)&&oe.eat(";"):oe.eatWhile(/[\d]/)&&oe.eat(";"):oe.eatWhile(/[\w\.\-:]/)&&oe.eat(";"))?"atom":"error":(oe.eatWhile(/[^&<]/),null)}function me(oe,Oe){var le,Ee,Ae=oe.next();if(Ae==">"||Ae=="/"&&oe.eat(">"))return Oe.tokenize=q,w=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return w="equals",null;if(Ae=="<"){Oe.tokenize=q,Oe.state=ye,Oe.tagName=Oe.tagStart=null;var H=Oe.tokenize(oe,Oe);return H?H+" tag error":"tag error"}return/[\'\"]/.test(Ae)?(Oe.tokenize=(le=Ae,Ee=function(C,Qe){for(;!C.eol();)if(C.next()==le){Qe.tokenize=me;break}return"string"},Ee.isInAttribute=!0,Ee),Oe.stringStartCol=oe.column(),Oe.tokenize(oe,Oe)):(oe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function $e(oe,Oe){return function(le,Ee){for(;!le.eol();){if(le.match(Oe)){Ee.tokenize=q;break}le.next()}return oe}}function Fe(oe){return function(Oe,le){for(var Ee;(Ee=Oe.next())!=null;){if(Ee=="<")return le.tokenize=Fe(oe+1),le.tokenize(Oe,le);if(Ee==">"){if(oe==1){le.tokenize=q;break}return le.tokenize=Fe(oe-1),le.tokenize(Oe,le)}}return"meta"}}function ie(oe){return oe&&oe.toLowerCase()}function J(oe,Oe,le){this.prev=oe.context,this.tagName=Oe||"",this.indent=oe.indented,this.startOfLine=le,(D.doNotIndent.hasOwnProperty(Oe)||oe.context&&oe.context.noIndent)&&(this.noIndent=!0)}function re(oe){oe.context&&(oe.context=oe.context.prev)}function _e(oe,Oe){for(var le;;){if(!oe.context||(le=oe.context.tagName,!D.contextGrabbers.hasOwnProperty(ie(le))||!D.contextGrabbers[ie(le)].hasOwnProperty(ie(Oe))))return;re(oe)}}function ye(oe,Oe,le){return oe=="openTag"?(le.tagStart=Oe.column(),ue):oe=="closeTag"?de:ye}function ue(oe,Oe,le){return oe=="word"?(le.tagName=Oe.current(),v="tag",Ze):D.allowMissingTagName&&oe=="endTag"?(v="tag bracket",Ze(oe,0,le)):(v="error",ue)}function de(oe,Oe,le){if(oe=="word"){var Ee=Oe.current();return le.context&&le.context.tagName!=Ee&&D.implicitlyClosed.hasOwnProperty(ie(le.context.tagName))&&re(le),le.context&&le.context.tagName==Ee||D.matchClosing===!1?(v="tag",Ce):(v="tag error",je)}return D.allowMissingTagName&&oe=="endTag"?(v="tag bracket",Ce(oe,0,le)):(v="error",je)}function Ce(oe,Oe,le){return oe!="endTag"?(v="error",Ce):(re(le),ye)}function je(oe,Oe,le){return v="error",Ce(oe,0,le)}function Ze(oe,Oe,le){if(oe=="word")return v="attribute",Je;if(oe=="endTag"||oe=="selfcloseTag"){var Ee=le.tagName,Ae=le.tagStart;return le.tagName=le.tagStart=null,oe=="selfcloseTag"||D.autoSelfClosers.hasOwnProperty(ie(Ee))?_e(le,Ee):(_e(le,Ee),le.context=new J(le,Ee,Ae==le.indented)),ye}return v="error",Ze}function Je(oe,Oe,le){return oe=="equals"?Ke:(D.allowMissing||(v="error"),Ze(oe,0,le))}function Ke(oe,Oe,le){return oe=="string"?ot:oe=="word"&&D.allowUnquoted?(v="string",Ze):(v="error",Ze(oe,0,le))}function ot(oe,Oe,le){return oe=="string"?ot:Ze(oe,0,le)}return q.isInText=!0,{startState:function(oe){var Oe={tokenize:q,state:ye,indented:oe||0,tagName:null,tagStart:null,context:null};return oe!=null&&(Oe.baseIndent=oe),Oe},token:function(oe,Oe){if(!Oe.tagName&&oe.sol()&&(Oe.indented=oe.indentation()),oe.eatSpace())return null;w=null;var le=Oe.tokenize(oe,Oe);return(le||w)&&le!="comment"&&(v=null,Oe.state=Oe.state(w||le,oe,Oe),v&&(le=v=="error"?le+" error":v)),le},indent:function(oe,Oe,le){var Ee=oe.context;if(oe.tokenize.isInAttribute)return oe.tagStart==oe.indented?oe.stringStartCol+1:oe.indented+j;if(Ee&&Ee.noIndent)return d.Pass;if(oe.tokenize!=me&&oe.tokenize!=q)return le?le.match(/^(\s*)/)[0].length:0;if(oe.tagName)return D.multilineTagIndentPastTag!==!1?oe.tagStart+oe.tagName.length+2:oe.tagStart+j*(D.multilineTagIndentFactor||1);if(D.alignCDATA&&/$/,blockCommentStart:"",configuration:D.htmlMode?"html":"xml",helperType:D.htmlMode?"html":"xml",skipAttribute:function(oe){oe.state==Ke&&(oe.state=Ze)},xmlCurrentTag:function(oe){return oe.tagName?{name:oe.tagName,close:oe.type=="closeTag"}:null},xmlCurrentContext:function(oe){for(var Oe=[],le=oe.context;le;le=le.prev)Oe.push(le.tagName);return Oe.reverse()}}}),d.defineMIME("text/xml","xml"),d.defineMIME("application/xml","xml"),d.mimeModes.hasOwnProperty("text/html")||d.defineMIME("text/html",{name:"xml",htmlMode:!0})})(typeof s=="object"&&typeof r=="object"?i("../../lib/codemirror"):CodeMirror)},{"../../lib/codemirror":10}],15:[function(i,r,s){(function(d,u){u(typeof s=="object"&&r!==void 0?s:(d=typeof globalThis<"u"?globalThis:d||self).marked={})})(this,function(d){function u(be,K){for(var A=0;Abe.length)&&(K=be.length);for(var A=0,S=new Array(K);A=be.length?{done:!0}:{done:!1,value:be[S++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}d.defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var w=/[&<>"']/,v=/[&<>"']/g,j=/[<>"']|&(?!#?\w+;)/,D=/[<>"']|&(?!#?\w+;)/g,B={"&":"&","<":"<",">":">",'"':""","'":"'"},U=function(be){return B[be]};function q(be,K){if(K){if(w.test(be))return be.replace(v,U)}else if(j.test(be))return be.replace(D,U);return be}var me=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function $e(be){return be.replace(me,function(K,A){return(A=A.toLowerCase())==="colon"?":":A.charAt(0)==="#"?A.charAt(1)==="x"?String.fromCharCode(parseInt(A.substring(2),16)):String.fromCharCode(+A.substring(1)):""})}var Fe=/(^|[^\[])\^/g;function ie(be,K){be=typeof be=="string"?be:be.source,K=K||"";var A={replace:function(S,I){return I=(I=I.source||I).replace(Fe,"$1"),be=be.replace(S,I),A},getRegex:function(){return new RegExp(be,K)}};return A}var J=/[^\w:]/g,re=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _e(be,K,A){if(be){var S;try{S=decodeURIComponent($e(A)).replace(J,"").toLowerCase()}catch{return null}if(S.indexOf("javascript:")===0||S.indexOf("vbscript:")===0||S.indexOf("data:")===0)return null}K&&!re.test(A)&&(A=function(I,L){ye[" "+I]||(ue.test(I)?ye[" "+I]=I+"/":ye[" "+I]=Ke(I,"/",!0));var X=(I=ye[" "+I]).indexOf(":")===-1;return L.substring(0,2)==="//"?X?L:I.replace(de,"$1")+L:L.charAt(0)==="/"?X?L:I.replace(Ce,"$1")+L:I+L}(K,A));try{A=encodeURI(A).replace(/%25/g,"%")}catch{return null}return A}var ye={},ue=/^[^:]+:\/*[^/]*$/,de=/^([^:]+:)[\s\S]*$/,Ce=/^([^:]+:\/*[^/]*)[\s\S]*$/,je={exec:function(){}};function Ze(be){for(var K,A,S=1;S=0&&X[he]==="\\";)Q=!Q;return Q?"|":" |"}).split(/ \|/),S=0;if(A[0].trim()||A.shift(),A.length>0&&!A[A.length-1].trim()&&A.pop(),A.length>K)A.splice(K);else for(;A.length1;)1&K&&(A+=be),K>>=1,be+=be;return A+be}function Oe(be,K,A,S){var I=K.href,L=K.title?q(K.title):null,X=be[1].replace(/\\([\[\]])/g,"$1");if(be[0].charAt(0)!=="!"){S.state.inLink=!0;var Q={type:"link",raw:A,href:I,title:L,text:X,tokens:S.inlineTokens(X)};return S.state.inLink=!1,Q}return{type:"image",raw:A,href:I,title:L,text:q(X)}}var le=function(){function be(A){this.options=A||d.defaults}var K=be.prototype;return K.space=function(A){var S=this.rules.block.newline.exec(A);if(S&&S[0].length>0)return{type:"space",raw:S[0]}},K.code=function(A){var S=this.rules.block.code.exec(A);if(S){var I=S[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:S[0],codeBlockStyle:"indented",text:this.options.pedantic?I:Ke(I,` -`)}}},K.fences=function(A){var S=this.rules.block.fences.exec(A);if(S){var I=S[0],L=function(X,Q){var he=X.match(/^(\s+)(?:```)/);if(he===null)return Q;var He=he[1];return Q.split(` -`).map(function(ve){var qe=ve.match(/^\s+/);return qe===null?ve:qe[0].length>=He.length?ve.slice(He.length):ve}).join(` -`)}(I,S[3]||"");return{type:"code",raw:I,lang:S[2]?S[2].trim():S[2],text:L}}},K.heading=function(A){var S=this.rules.block.heading.exec(A);if(S){var I=S[2].trim();if(/#$/.test(I)){var L=Ke(I,"#");this.options.pedantic?I=L.trim():L&&!/ $/.test(L)||(I=L.trim())}return{type:"heading",raw:S[0],depth:S[1].length,text:I,tokens:this.lexer.inline(I)}}},K.hr=function(A){var S=this.rules.block.hr.exec(A);if(S)return{type:"hr",raw:S[0]}},K.blockquote=function(A){var S=this.rules.block.blockquote.exec(A);if(S){var I=S[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:S[0],tokens:this.lexer.blockTokens(I,[]),text:I}}},K.list=function(A){var S=this.rules.block.list.exec(A);if(S){var I,L,X,Q,he,He,ve,qe,_,F,N,$,se=S[1].trim(),te=se.length>1,G={type:"list",raw:"",ordered:te,start:te?+se.slice(0,-1):"",loose:!1,items:[]};se=te?"\\d{1,9}\\"+se.slice(-1):"\\"+se,this.options.pedantic&&(se=te?se:"[*+-]");for(var ee=new RegExp("^( {0,3}"+se+")((?:[ ][^\\n]*)?(?:\\n|$))");A&&($=!1,S=ee.exec(A))&&!this.rules.block.hr.test(A);){if(I=S[0],A=A.substring(I.length),qe=S[2].split(` -`,1)[0],_=A.split(` -`,1)[0],this.options.pedantic?(Q=2,N=qe.trimLeft()):(Q=(Q=S[2].search(/[^ ]/))>4?1:Q,N=qe.slice(Q),Q+=S[1].length),He=!1,!qe&&/^ *$/.test(_)&&(I+=_+` -`,A=A.substring(_.length+1),$=!0),!$)for(var ne=new RegExp("^ {0,"+Math.min(3,Q-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),we=new RegExp("^ {0,"+Math.min(3,Q-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),Re=new RegExp("^ {0,"+Math.min(3,Q-1)+"}(?:```|~~~)"),Ye=new RegExp("^ {0,"+Math.min(3,Q-1)+"}#");A&&(qe=F=A.split(` -`,1)[0],this.options.pedantic&&(qe=qe.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!Re.test(qe))&&!Ye.test(qe)&&!ne.test(qe)&&!we.test(A);){if(qe.search(/[^ ]/)>=Q||!qe.trim())N+=` -`+qe.slice(Q);else{if(He)break;N+=` -`+qe}He||qe.trim()||(He=!0),I+=F+` -`,A=A.substring(F.length+1)}G.loose||(ve?G.loose=!0:/\n *\n *$/.test(I)&&(ve=!0)),this.options.gfm&&(L=/^\[[ xX]\] /.exec(N))&&(X=L[0]!=="[ ] ",N=N.replace(/^\[[ xX]\] +/,"")),G.items.push({type:"list_item",raw:I,task:!!L,checked:X,loose:!1,text:N}),G.raw+=I}G.items[G.items.length-1].raw=I.trimRight(),G.items[G.items.length-1].text=N.trimRight(),G.raw=G.raw.trimRight();var vt=G.items.length;for(he=0;he1)return!0;return!1});!G.loose&&Ve.length&&ut&&(G.loose=!0,G.items[he].loose=!0)}return G}},K.html=function(A){var S=this.rules.block.html.exec(A);if(S){var I={type:"html",raw:S[0],pre:!this.options.sanitizer&&(S[1]==="pre"||S[1]==="script"||S[1]==="style"),text:S[0]};if(this.options.sanitize){var L=this.options.sanitizer?this.options.sanitizer(S[0]):q(S[0]);I.type="paragraph",I.text=L,I.tokens=this.lexer.inline(L)}return I}},K.def=function(A){var S=this.rules.block.def.exec(A);if(S)return S[3]&&(S[3]=S[3].substring(1,S[3].length-1)),{type:"def",tag:S[1].toLowerCase().replace(/\s+/g," "),raw:S[0],href:S[2],title:S[3]}},K.table=function(A){var S=this.rules.block.table.exec(A);if(S){var I={type:"table",header:Je(S[1]).map(function(ve){return{text:ve}}),align:S[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:S[3]&&S[3].trim()?S[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(I.header.length===I.align.length){I.raw=S[0];var L,X,Q,he,He=I.align.length;for(L=0;L/i.test(S[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(S[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(S[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:S[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(S[0]):q(S[0]):S[0]}},K.link=function(A){var S=this.rules.inline.link.exec(A);if(S){var I=S[2].trim();if(!this.options.pedantic&&/^$/.test(I))return;var L=Ke(I.slice(0,-1),"\\");if((I.length-L.length)%2==0)return}else{var X=function(qe,_){if(qe.indexOf(_[1])===-1)return-1;for(var F=qe.length,N=0,$=0;$-1){var Q=(S[0].indexOf("!")===0?5:4)+S[1].length+X;S[2]=S[2].substring(0,X),S[0]=S[0].substring(0,Q).trim(),S[3]=""}}var he=S[2],He="";if(this.options.pedantic){var ve=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(he);ve&&(he=ve[1],He=ve[3])}else He=S[3]?S[3].slice(1,-1):"";return he=he.trim(),/^$/.test(I)?he.slice(1):he.slice(1,-1)),Oe(S,{href:he&&he.replace(this.rules.inline._escapes,"$1"),title:He&&He.replace(this.rules.inline._escapes,"$1")},S[0],this.lexer)}},K.reflink=function(A,S){var I;if((I=this.rules.inline.reflink.exec(A))||(I=this.rules.inline.nolink.exec(A))){var L=(I[2]||I[1]).replace(/\s+/g," ");if(!(L=S[L.toLowerCase()])||!L.href){var X=I[0].charAt(0);return{type:"text",raw:X,text:X}}return Oe(I,L,I[0],this.lexer)}},K.emStrong=function(A,S,I){I===void 0&&(I="");var L=this.rules.inline.emStrong.lDelim.exec(A);if(L&&(!L[3]||!I.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var X=L[1]||L[2]||"";if(!X||X&&(I===""||this.rules.inline.punctuation.exec(I))){var Q,he,He=L[0].length-1,ve=He,qe=0,_=L[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(_.lastIndex=0,S=S.slice(-1*A.length+He);(L=_.exec(S))!=null;)if(Q=L[1]||L[2]||L[3]||L[4]||L[5]||L[6])if(he=Q.length,L[3]||L[4])ve+=he;else if(!((L[5]||L[6])&&He%3)||(He+he)%3){if(!((ve-=he)>0)){if(he=Math.min(he,he+ve+qe),Math.min(He,he)%2){var F=A.slice(1,He+L.index+he);return{type:"em",raw:A.slice(0,He+L.index+he+1),text:F,tokens:this.lexer.inlineTokens(F)}}var N=A.slice(2,He+L.index+he-1);return{type:"strong",raw:A.slice(0,He+L.index+he+1),text:N,tokens:this.lexer.inlineTokens(N)}}}else qe+=he}}},K.codespan=function(A){var S=this.rules.inline.code.exec(A);if(S){var I=S[2].replace(/\n/g," "),L=/[^ ]/.test(I),X=/^ /.test(I)&&/ $/.test(I);return L&&X&&(I=I.substring(1,I.length-1)),I=q(I,!0),{type:"codespan",raw:S[0],text:I}}},K.br=function(A){var S=this.rules.inline.br.exec(A);if(S)return{type:"br",raw:S[0]}},K.del=function(A){var S=this.rules.inline.del.exec(A);if(S)return{type:"del",raw:S[0],text:S[2],tokens:this.lexer.inlineTokens(S[2])}},K.autolink=function(A,S){var I,L,X=this.rules.inline.autolink.exec(A);if(X)return L=X[2]==="@"?"mailto:"+(I=q(this.options.mangle?S(X[1]):X[1])):I=q(X[1]),{type:"link",raw:X[0],text:I,href:L,tokens:[{type:"text",raw:I,text:I}]}},K.url=function(A,S){var I;if(I=this.rules.inline.url.exec(A)){var L,X;if(I[2]==="@")X="mailto:"+(L=q(this.options.mangle?S(I[0]):I[0]));else{var Q;do Q=I[0],I[0]=this.rules.inline._backpedal.exec(I[0])[0];while(Q!==I[0]);L=q(I[0]),X=I[1]==="www."?"http://"+L:L}return{type:"link",raw:I[0],text:L,href:X,tokens:[{type:"text",raw:L,text:L}]}}},K.inlineText=function(A,S){var I,L=this.rules.inline.text.exec(A);if(L)return I=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(L[0]):q(L[0]):L[0]:q(this.options.smartypants?S(L[0]):L[0]),{type:"text",raw:L[0],text:I}},be}(),Ee={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:je,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ee.def=ie(Ee.def).replace("label",Ee._label).replace("title",Ee._title).getRegex(),Ee.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ee.listItemStart=ie(/^( *)(bull) */).replace("bull",Ee.bullet).getRegex(),Ee.list=ie(Ee.list).replace(/bull/g,Ee.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ee.def.source+")").getRegex(),Ee._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ee._comment=/|$)/,Ee.html=ie(Ee.html,"i").replace("comment",Ee._comment).replace("tag",Ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ee.paragraph=ie(Ee._paragraph).replace("hr",Ee.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ee._tag).getRegex(),Ee.blockquote=ie(Ee.blockquote).replace("paragraph",Ee.paragraph).getRegex(),Ee.normal=Ze({},Ee),Ee.gfm=Ze({},Ee.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ee.gfm.table=ie(Ee.gfm.table).replace("hr",Ee.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ee._tag).getRegex(),Ee.gfm.paragraph=ie(Ee._paragraph).replace("hr",Ee.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ee.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ee._tag).getRegex(),Ee.pedantic=Ze({},Ee.normal,{html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ee._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:je,paragraph:ie(Ee.normal._paragraph).replace("hr",Ee.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",Ee.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ae={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:je,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:je,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(A="x"+A.toString(16)),S+="&#"+A+";";return S}Ae._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ae.punctuation=ie(Ae.punctuation).replace(/punctuation/g,Ae._punctuation).getRegex(),Ae.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ae.escapedEmSt=/\\\*|\\_/g,Ae._comment=ie(Ee._comment).replace("(?:-->|$)","-->").getRegex(),Ae.emStrong.lDelim=ie(Ae.emStrong.lDelim).replace(/punct/g,Ae._punctuation).getRegex(),Ae.emStrong.rDelimAst=ie(Ae.emStrong.rDelimAst,"g").replace(/punct/g,Ae._punctuation).getRegex(),Ae.emStrong.rDelimUnd=ie(Ae.emStrong.rDelimUnd,"g").replace(/punct/g,Ae._punctuation).getRegex(),Ae._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ae._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ae._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Ae.autolink=ie(Ae.autolink).replace("scheme",Ae._scheme).replace("email",Ae._email).getRegex(),Ae._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ae.tag=ie(Ae.tag).replace("comment",Ae._comment).replace("attribute",Ae._attribute).getRegex(),Ae._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ae._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ae._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ae.link=ie(Ae.link).replace("label",Ae._label).replace("href",Ae._href).replace("title",Ae._title).getRegex(),Ae.reflink=ie(Ae.reflink).replace("label",Ae._label).replace("ref",Ee._label).getRegex(),Ae.nolink=ie(Ae.nolink).replace("ref",Ee._label).getRegex(),Ae.reflinkSearch=ie(Ae.reflinkSearch,"g").replace("reflink",Ae.reflink).replace("nolink",Ae.nolink).getRegex(),Ae.normal=Ze({},Ae),Ae.pedantic=Ze({},Ae.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",Ae._label).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ae._label).getRegex()}),Ae.gfm=Ze({},Ae.normal,{escape:ie(Ae.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\0?X[X.length-1].raw+=` -`:X.push(Q);else if(Q=this.tokenizer.code(L))L=L.substring(Q.raw.length),!(he=X[X.length-1])||he.type!=="paragraph"&&he.type!=="text"?X.push(Q):(he.raw+=` -`+Q.raw,he.text+=` -`+Q.text,this.inlineQueue[this.inlineQueue.length-1].src=he.text);else if(Q=this.tokenizer.fences(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.heading(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.hr(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.blockquote(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.list(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.html(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.def(L))L=L.substring(Q.raw.length),!(he=X[X.length-1])||he.type!=="paragraph"&&he.type!=="text"?this.tokens.links[Q.tag]||(this.tokens.links[Q.tag]={href:Q.href,title:Q.title}):(he.raw+=` -`+Q.raw,he.text+=` -`+Q.raw,this.inlineQueue[this.inlineQueue.length-1].src=he.text);else if(Q=this.tokenizer.table(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.lheading(L))L=L.substring(Q.raw.length),X.push(Q);else if(He=L,this.options.extensions&&this.options.extensions.startBlock&&function(){var F=1/0,N=L.slice(1),$=void 0;qe.options.extensions.startBlock.forEach(function(se){typeof($=se.call({lexer:this},N))=="number"&&$>=0&&(F=Math.min(F,$))}),F<1/0&&F>=0&&(He=L.substring(0,F+1))}(),this.state.top&&(Q=this.tokenizer.paragraph(He)))he=X[X.length-1],ve&&he.type==="paragraph"?(he.raw+=` -`+Q.raw,he.text+=` -`+Q.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=he.text):X.push(Q),ve=He.length!==L.length,L=L.substring(Q.raw.length);else if(Q=this.tokenizer.text(L))L=L.substring(Q.raw.length),(he=X[X.length-1])&&he.type==="text"?(he.raw+=` -`+Q.raw,he.text+=` -`+Q.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=he.text):X.push(Q);else if(L){var _="Infinite loop on byte: "+L.charCodeAt(0);if(this.options.silent){console.error(_);break}throw new Error(_)}}return this.state.top=!0,X},I.inline=function(L,X){return X===void 0&&(X=[]),this.inlineQueue.push({src:L,tokens:X}),X},I.inlineTokens=function(L,X){var Q,he,He,ve=this;X===void 0&&(X=[]);var qe,_,F,N=L;if(this.tokens.links){var $=Object.keys(this.tokens.links);if($.length>0)for(;(qe=this.tokenizer.rules.inline.reflinkSearch.exec(N))!=null;)$.includes(qe[0].slice(qe[0].lastIndexOf("[")+1,-1))&&(N=N.slice(0,qe.index)+"["+oe("a",qe[0].length-2)+"]"+N.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qe=this.tokenizer.rules.inline.blockSkip.exec(N))!=null;)N=N.slice(0,qe.index)+"["+oe("a",qe[0].length-2)+"]"+N.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(qe=this.tokenizer.rules.inline.escapedEmSt.exec(N))!=null;)N=N.slice(0,qe.index)+"++"+N.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;L;)if(_||(F=""),_=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(te){return!!(Q=te.call({lexer:ve},L,X))&&(L=L.substring(Q.raw.length),X.push(Q),!0)})))if(Q=this.tokenizer.escape(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.tag(L))L=L.substring(Q.raw.length),(he=X[X.length-1])&&Q.type==="text"&&he.type==="text"?(he.raw+=Q.raw,he.text+=Q.text):X.push(Q);else if(Q=this.tokenizer.link(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.reflink(L,this.tokens.links))L=L.substring(Q.raw.length),(he=X[X.length-1])&&Q.type==="text"&&he.type==="text"?(he.raw+=Q.raw,he.text+=Q.text):X.push(Q);else if(Q=this.tokenizer.emStrong(L,N,F))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.codespan(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.br(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.del(L))L=L.substring(Q.raw.length),X.push(Q);else if(Q=this.tokenizer.autolink(L,C))L=L.substring(Q.raw.length),X.push(Q);else if(this.state.inLink||!(Q=this.tokenizer.url(L,C))){if(He=L,this.options.extensions&&this.options.extensions.startInline&&function(){var te=1/0,G=L.slice(1),ee=void 0;ve.options.extensions.startInline.forEach(function(ne){typeof(ee=ne.call({lexer:this},G))=="number"&&ee>=0&&(te=Math.min(te,ee))}),te<1/0&&te>=0&&(He=L.substring(0,te+1))}(),Q=this.tokenizer.inlineText(He,H))L=L.substring(Q.raw.length),Q.raw.slice(-1)!=="_"&&(F=Q.raw.slice(-1)),_=!0,(he=X[X.length-1])&&he.type==="text"?(he.raw+=Q.raw,he.text+=Q.text):X.push(Q);else if(L){var se="Infinite loop on byte: "+L.charCodeAt(0);if(this.options.silent){console.error(se);break}throw new Error(se)}}else L=L.substring(Q.raw.length),X.push(Q);return X},K=be,S=[{key:"rules",get:function(){return{block:Ee,inline:Ae}}}],(A=null)&&u(K.prototype,A),S&&u(K,S),Object.defineProperty(K,"prototype",{writable:!1}),be}(),Ne=function(){function be(A){this.options=A||d.defaults}var K=be.prototype;return K.code=function(A,S,I){var L=(S||"").match(/\S*/)[0];if(this.options.highlight){var X=this.options.highlight(A,L);X!=null&&X!==A&&(I=!0,A=X)}return A=A.replace(/\n$/,"")+` -`,L?'
        '+(I?A:q(A,!0))+`
        -`:"
        "+(I?A:q(A,!0))+`
        -`},K.blockquote=function(A){return`
        -`+A+`
        -`},K.html=function(A){return A},K.heading=function(A,S,I,L){return this.options.headerIds?"'+A+" -`:""+A+" -`},K.hr=function(){return this.options.xhtml?`
        -`:`
        -`},K.list=function(A,S,I){var L=S?"ol":"ul";return"<"+L+(S&&I!==1?' start="'+I+'"':"")+`> -`+A+" -`},K.listitem=function(A){return"
      • "+A+`
      • -`},K.checkbox=function(A){return" "},K.paragraph=function(A){return"

        "+A+`

        -`},K.table=function(A,S){return S&&(S=""+S+""),` - -`+A+` -`+S+`
        -`},K.tablerow=function(A){return` -`+A+` -`},K.tablecell=function(A,S){var I=S.header?"th":"td";return(S.align?"<"+I+' align="'+S.align+'">':"<"+I+">")+A+" -`},K.strong=function(A){return""+A+""},K.em=function(A){return""+A+""},K.codespan=function(A){return""+A+""},K.br=function(){return this.options.xhtml?"
        ":"
        "},K.del=function(A){return""+A+""},K.link=function(A,S,I){if((A=_e(this.options.sanitize,this.options.baseUrl,A))===null)return I;var L='"},K.image=function(A,S,I){if((A=_e(this.options.sanitize,this.options.baseUrl,A))===null)return I;var L=''+I+'":">"},K.text=function(A){return A},be}(),ht=function(){function be(){}var K=be.prototype;return K.strong=function(A){return A},K.em=function(A){return A},K.codespan=function(A){return A},K.del=function(A){return A},K.html=function(A){return A},K.text=function(A){return A},K.link=function(A,S,I){return""+I},K.image=function(A,S,I){return""+I},K.br=function(){return""},be}(),Nt=function(){function be(){this.seen={}}var K=be.prototype;return K.serialize=function(A){return A.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},K.getNextSafeSlug=function(A,S){var I=A,L=0;if(this.seen.hasOwnProperty(I)){L=this.seen[A];do I=A+"-"+ ++L;while(this.seen.hasOwnProperty(I))}return S||(this.seen[A]=L,this.seen[I]=0),I},K.slug=function(A,S){S===void 0&&(S={});var I=this.serialize(A);return this.getNextSafeSlug(I,S.dryrun)},be}(),Mt=function(){function be(A){this.options=A||d.defaults,this.options.renderer=this.options.renderer||new Ne,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ht,this.slugger=new Nt}be.parse=function(A,S){return new be(S).parse(A)},be.parseInline=function(A,S){return new be(S).parseInline(A)};var K=be.prototype;return K.parse=function(A,S){S===void 0&&(S=!0);var I,L,X,Q,he,He,ve,qe,_,F,N,$,se,te,G,ee,ne,we,Re,Ye="",vt=A.length;for(I=0;I0&&G.tokens[0].type==="paragraph"?(G.tokens[0].text=we+" "+G.tokens[0].text,G.tokens[0].tokens&&G.tokens[0].tokens.length>0&&G.tokens[0].tokens[0].type==="text"&&(G.tokens[0].tokens[0].text=we+" "+G.tokens[0].tokens[0].text)):G.tokens.unshift({type:"text",text:we}):te+=we),te+=this.parse(G.tokens,se),_+=this.renderer.listitem(te,ne,ee);Ye+=this.renderer.list(_,N,$);continue;case"html":Ye+=this.renderer.html(F.text);continue;case"paragraph":Ye+=this.renderer.paragraph(this.parseInline(F.tokens));continue;case"text":for(_=F.tokens?this.parseInline(F.tokens):F.text;I+1An error occurred:

        "+q(He.message+"",!0)+"
        ";throw He}try{var he=Qe.lex(be,K);if(K.walkTokens){if(K.async)return Promise.all(ze.walkTokens(he,K.walkTokens)).then(function(){return Mt.parse(he,K)}).catch(Q);ze.walkTokens(he,K.walkTokens)}return Mt.parse(he,K)}catch(He){Q(He)}}ze.options=ze.setOptions=function(be){var K;return Ze(ze.defaults,be),K=ze.defaults,d.defaults=K,ze},ze.getDefaults=b,ze.defaults=d.defaults,ze.use=function(){for(var be=arguments.length,K=new Array(be),A=0;AAn error occurred:

        "+q(S.message+"",!0)+"
        ";throw S}},ze.Parser=Mt,ze.parser=Mt.parse,ze.Renderer=Ne,ze.TextRenderer=ht,ze.Lexer=Qe,ze.lexer=Qe.lex,ze.Tokenizer=le,ze.Slugger=Nt,ze.parse=ze;var st=ze.options,At=ze.setOptions,Ft=ze.use,$t=ze.walkTokens,It=ze.parseInline,Ti=ze,pi=Mt.parse,ki=Qe.lex;d.Lexer=Qe,d.Parser=Mt,d.Renderer=Ne,d.Slugger=Nt,d.TextRenderer=ht,d.Tokenizer=le,d.getDefaults=b,d.lexer=ki,d.marked=ze,d.options=st,d.parse=Ti,d.parseInline=It,d.parser=pi,d.setOptions=At,d.use=Ft,d.walkTokens=$t,Object.defineProperty(d,"__esModule",{value:!0})})},{}],16:[function(i,r,s){(function(d){(function(){var u;(function(){(u=function(p,m,b,w){w=w||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=w.flags||{},this.memoized={},this.loaded=!1;var v,j,D,B,U,q=this;function me(J,re){var _e=q._readFile(J,null,w.asyncLoad);w.asyncLoad?_e.then(function(ye){re(ye)}):re(_e)}function $e(J){m=J,b&&ie()}function Fe(J){b=J,m&&ie()}function ie(){for(q.rules=q._parseAFF(m),q.compoundRuleCodes={},j=0,B=q.compoundRules.length;j0&&(Ce.continuationClasses=ue),de!=="."&&(Ce.match=$e==="SFX"?new RegExp(de+"$"):new RegExp("^"+de)),re!="0"&&(Ce.remove=$e==="SFX"?new RegExp(re+"$"):re),J.push(Ce)}U[Fe]={type:$e,combineable:ie=="Y",entries:J},v+=b}else if($e==="COMPOUNDRULE"){for(j=v+1,B=v+1+(b=parseInt(me[1],10));j0&&(b[Ke]===null&&(b[Ke]=[]),b[Ke].push(ot))}for(var v=1,j=m.length;v1){var q=this.parseRuleCodes(B[1]);"NEEDAFFIX"in this.flags&&q.indexOf(this.flags.NEEDAFFIX)!=-1||w(U,q);for(var me=0,$e=q.length;me<$e;me++){var Fe=q[me],ie=this.rules[Fe];if(ie)for(var J=this._applyRule(U,ie),re=0,_e=J.length;re<_e;re++){var ye=J[re];if(w(ye,[]),ie.combineable)for(var ue=me+1;ue<$e;ue++){var de=q[ue],Ce=this.rules[de];if(Ce&&Ce.combineable&&ie.type!=Ce.type)for(var je=this._applyRule(ye,Ce),Ze=0,Je=je.length;Ze=this.flags.COMPOUNDMIN){for(m=0,b=this.compoundRules.length;m1&&ue[1][1]!==ue[1][0]&&(J=ue[0]+ue[1][1]+ue[1][0]+ue[1].substring(2),me&&!B.check(J)||(J in re?re[J]+=1:re[J]=1)),ue[1]){var de=ue[1].substring(0,1).toUpperCase()===ue[1].substring(0,1)?"uppercase":"lowercase";for(Fe=0;Fe<_e;Fe++){var Ce=B.alphabet[Fe];de==="uppercase"&&(Ce=Ce.toUpperCase()),Ce!=ue[1].substring(0,1)&&(J=ue[0]+Ce+ue[1].substring(1),me&&!B.check(J)||(J in re?re[J]+=1:re[J]=1))}}if(ue[1])for(Fe=0;Fe<_e;Fe++)de=ue[0].substring(-1).toUpperCase()===ue[0].substring(-1)&&ue[1].substring(0,1).toUpperCase()===ue[1].substring(0,1)?"uppercase":"lowercase",Ce=B.alphabet[Fe],de==="uppercase"&&(Ce=Ce.toUpperCase()),J=ue[0]+Ce+ue[1],me&&!B.check(J)||(J in re?re[J]+=1:re[J]=1)}return re}return B.alphabet="abcdefghijklmnopqrstuvwxyz",this.memoized[p]={suggestions:function(q){var me,$e=U(q),Fe=U($e,!0);for(var ie in $e)B.check(ie)&&(ie in Fe?Fe[ie]+=$e[ie]:Fe[ie]=$e[ie]);var J=[];for(me in Fe)Fe.hasOwnProperty(me)&&J.push([me,Fe[me]]);J.sort(function(ue,de){var Ce=ue[1],je=de[1];return Ceje?1:de[0].localeCompare(ue[0])}).reverse();var re=[],_e="lowercase";q.toUpperCase()===q?_e="uppercase":q.substr(0,1).toUpperCase()+q.substr(1).toLowerCase()===q&&(_e="capitalized");var ye=m;for(me=0;me)+?/g),w={toggleBold:ie,toggleItalic:J,drawLink:Ee,toggleHeadingSmaller:ue,toggleHeadingBigger:de,drawImage:Ae,toggleBlockquote:ye,toggleOrderedList:Oe,toggleUnorderedList:oe,toggleCodeBlock:_e,togglePreview:st,toggleStrikethrough:re,toggleHeading1:Ce,toggleHeading2:je,toggleHeading3:Ze,toggleHeading4:Je,toggleHeading5:Ke,toggleHeading6:ot,cleanBlock:le,drawTable:Ne,drawHorizontalRule:ht,undo:Nt,redo:Mt,toggleSideBySide:ze,toggleFullScreen:Fe},v={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},j=function(){var _,F=!1;return _=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(_)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(_.substr(0,4)))&&(F=!0),F};function D(_){return _=m?_.replace("Ctrl","Cmd"):_.replace("Cmd","Ctrl")}function B(_,F,N,$){var se=U(_,!1,F,N,"button",$);se.classList.add("easymde-dropdown"),se.onclick=function(){se.focus()};var te=document.createElement("div");te.className="easymde-dropdown-content";for(var G=0;G<_.children.length;G++){var ee,ne=_.children[G];(ee=U(typeof ne=="string"&&ne in S?S[ne]:ne,!0,F,N,"button",$)).addEventListener("click",function(we){we.stopPropagation()},!1),te.appendChild(ee)}return se.appendChild(te),se}function U(_,F,N,$,se,te){_=_||{};var G=document.createElement(se);if(_.attributes)for(var ee in _.attributes)Object.prototype.hasOwnProperty.call(_.attributes,ee)&&G.setAttribute(ee,_.attributes[ee]);var ne=te.options.toolbarButtonClassPrefix?te.options.toolbarButtonClassPrefix+"-":"";G.className=ne+_.name,G.setAttribute("type",se),N=N==null||N,_.text&&(G.innerText=_.text),_.name&&_.name in $&&(w[_.name]=_.action),_.title&&N&&(G.title=function(pt,ei,zt){var Si,Cr=pt;return ei&&zt[Si=function(gr){for(var br in w)if(w[br]===gr)return br;return null}(ei)]&&(Cr+=" ("+D(zt[Si])+")"),Cr}(_.title,_.action,$),m&&(G.title=G.title.replace("Ctrl","⌘"),G.title=G.title.replace("Alt","⌥"))),_.title&&G.setAttribute("aria-label",_.title),_.noDisable&&G.classList.add("no-disable"),_.noMobile&&G.classList.add("no-mobile");var we=[];_.className!==void 0&&(we=_.className.split(" "));for(var Re=[],Ye=0;Ye0){for(var Ve=document.createElement("i"),ut=0;ut=0&&!N(vt=ne.getLineHandle(te));te--);var pt,ei,zt,Si,Cr=$(ne.getTokenAt({line:te,ch:1})).fencedChars;N(ne.getLineHandle(we.line))?(pt="",ei=we.line):N(ne.getLineHandle(we.line-1))?(pt="",ei=we.line-1):(pt=Cr+` -`,ei=we.line),N(ne.getLineHandle(Re.line))?(zt="",Si=Re.line,Re.ch===0&&(Si+=1)):Re.ch!==0&&N(ne.getLineHandle(Re.line+1))?(zt="",Si=Re.line+1):(zt=Cr+` -`,Si=Re.line+1),Re.ch===0&&(Si-=1),ne.operation(function(){ne.replaceRange(zt,{line:Si,ch:0},{line:Si+(zt?0:1),ch:0}),ne.replaceRange(pt,{line:ei,ch:0},{line:ei+(pt?0:1),ch:0})}),ne.setSelection({line:ei+(pt?1:0),ch:0},{line:Si+(pt?1:-1),ch:0}),ne.focus()}else{var gr=we.line;if(N(ne.getLineHandle(we.line))&&(se(ne,we.line+1)==="fenced"?(te=we.line,gr=we.line+1):(G=we.line,gr=we.line-1)),te===void 0)for(te=gr;te>=0&&!N(vt=ne.getLineHandle(te));te--);if(G===void 0)for(ee=ne.lineCount(),G=gr;G=0;te--)if(!(vt=ne.getLineHandle(te)).text.match(/^\s*$/)&&se(ne,te,vt)!=="indented"){te+=1;break}for(ee=ne.lineCount(),G=we.line;G ]+|[0-9]+(.|\)))[ ]*/,""),F.replaceRange(N,{line:te,ch:0},{line:te,ch:99999999999999})})(_.codemirror)}function Ee(_){var F=_.options,N="https://";if(F.promptURLs){var $=prompt(F.promptTexts.link,N);if(!$)return!1;N=H($)}It(_,"link",F.insertTexts.link,N)}function Ae(_){var F=_.options,N="https://";if(F.promptURLs){var $=prompt(F.promptTexts.image,N);if(!$)return!1;N=H($)}It(_,"image",F.insertTexts.image,N)}function H(_){return encodeURI(_).replace(/([\\()])/g,"\\$1")}function C(_){_.openBrowseFileWindow()}function Qe(_,F){var N=_.codemirror,$=me(N),se=_.options,te=F.substr(F.lastIndexOf("/")+1),G=te.substring(te.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(G))At(N,$.image,se.insertTexts.uploadedImage,F);else{var ee=se.insertTexts.link;ee[0]="["+te,At(N,$.link,ee,F)}_.updateStatusBar("upload-image",_.options.imageTexts.sbOnUploaded.replace("#image_name#",te)),setTimeout(function(){_.updateStatusBar("upload-image",_.options.imageTexts.sbInit)},1e3)}function Ne(_){var F=_.codemirror,N=me(F),$=_.options;At(F,N.table,$.insertTexts.table)}function ht(_){var F=_.codemirror,N=me(F),$=_.options;At(F,N.image,$.insertTexts.horizontalRule)}function Nt(_){var F=_.codemirror;F.undo(),F.focus()}function Mt(_){var F=_.codemirror;F.redo(),F.focus()}function ze(_){var F=_.codemirror,N=F.getWrapperElement(),$=N.nextSibling,se=_.toolbarElements&&_.toolbarElements["side-by-side"],te=!1,G=N.parentNode;$.classList.contains("editor-preview-active-side")?(_.options.sideBySideFullscreen===!1&&G.classList.remove("sided--no-fullscreen"),$.classList.remove("editor-preview-active-side"),se&&se.classList.remove("active"),N.classList.remove("CodeMirror-sided")):(setTimeout(function(){F.getOption("fullScreen")||(_.options.sideBySideFullscreen===!1?G.classList.add("sided--no-fullscreen"):Fe(_)),$.classList.add("editor-preview-active-side")},1),se&&se.classList.add("active"),N.classList.add("CodeMirror-sided"),te=!0);var ee=N.lastChild;if(ee.classList.contains("editor-preview-active")){ee.classList.remove("editor-preview-active");var ne=_.toolbarElements.preview,we=_.toolbar_div;ne.classList.remove("active"),we.classList.remove("disabled-for-preview")}if(F.sideBySideRenderingFunction||(F.sideBySideRenderingFunction=function(){var Ye=_.options.previewRender(_.value(),$);Ye!=null&&($.innerHTML=Ye)}),te){var Re=_.options.previewRender(_.value(),$);Re!=null&&($.innerHTML=Re),F.on("update",F.sideBySideRenderingFunction)}else F.off("update",F.sideBySideRenderingFunction);F.refresh()}function st(_){var F=_.codemirror,N=F.getWrapperElement(),$=_.toolbar_div,se=!!_.options.toolbar&&_.toolbarElements.preview,te=N.lastChild;if(F.getWrapperElement().nextSibling.classList.contains("editor-preview-active-side")&&ze(_),!te||!te.classList.contains("editor-preview-full")){if((te=document.createElement("div")).className="editor-preview-full",_.options.previewClass)if(Array.isArray(_.options.previewClass))for(var G=0;G<_.options.previewClass.length;G++)te.classList.add(_.options.previewClass[G]);else typeof _.options.previewClass=="string"&&te.classList.add(_.options.previewClass);N.appendChild(te)}te.classList.contains("editor-preview-active")?(te.classList.remove("editor-preview-active"),se&&(se.classList.remove("active"),$.classList.remove("disabled-for-preview"))):(setTimeout(function(){te.classList.add("editor-preview-active")},1),se&&(se.classList.add("active"),$.classList.add("disabled-for-preview")));var ee=_.options.previewRender(_.value(),te);ee!==null&&(te.innerHTML=ee)}function At(_,F,N,$){if(!_.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var se,te=N[0],G=N[1],ee={},ne={};Object.assign(ee,_.getCursor("start")),Object.assign(ne,_.getCursor("end")),$&&(te=te.replace("#url#",$),G=G.replace("#url#",$)),F?(te=(se=_.getLine(ee.line)).slice(0,ee.ch),G=se.slice(ee.ch),_.replaceRange(te+G,{line:ee.line,ch:0})):(se=_.getSelection(),_.replaceSelection(te+se+G),ee.ch+=te.length,ee!==ne&&(ne.ch+=te.length)),_.setSelection(ee,ne),_.focus()}}function Ft(_,F,N){if(!_.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var $=_.getCursor("start"),se=_.getCursor("end"),te=$.line;te<=se.line;te++)(function(G){var ee=_.getLine(G),ne=ee.search(/[^#]/);ee=F!==void 0?ne<=0?F=="bigger"?"###### "+ee:"# "+ee:ne==6&&F=="smaller"?ee.substr(7):ne==1&&F=="bigger"?ee.substr(2):F=="bigger"?ee.substr(1):"#"+ee:ne<=0?"#".repeat(N)+" "+ee:ne==N?ee.substr(ne+1):"#".repeat(N)+" "+ee.substr(ne+1),_.replaceRange(ee,{line:G,ch:0},{line:G,ch:99999999999999})})(te);_.focus()}}function $t(_,F,N){if(!_.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var $=/^(\s*)(\*|-|\+|\d*\.)(\s+)/,se=/^\s*/,te=me(_),G=_.getCursor("start"),ee=_.getCursor("end"),ne={quote:/^(\s*)>\s+/,"unordered-list":$,"ordered-list":$},we=function(vt,Ve,ut){var yt=$.exec(Ve),pt=function(ei,zt){return{quote:">","unordered-list":N,"ordered-list":"%%i."}[ei].replace("%%i",zt)}(vt,Re);return yt!==null?(function(ei,zt){var Si=new RegExp({quote:">","unordered-list":"\\"+N,"ordered-list":"\\d+."}[ei]);return zt&&Si.test(zt)}(vt,yt[2])&&(pt=""),Ve=yt[1]+pt+yt[3]+Ve.replace(se,"").replace(ne[vt],"$1")):ut==0&&(Ve=pt+" "+Ve),Ve},Re=1,Ye=G.line;Ye<=ee.line;Ye++)(function(vt){var Ve=_.getLine(vt);te[F]?Ve=Ve.replace(ne[F],"$1"):(F=="unordered-list"&&(Ve=we("ordered-list",Ve,!0)),Ve=we(F,Ve,!1),Re+=1),_.replaceRange(Ve,{line:vt,ch:0},{line:vt,ch:99999999999999})})(Ye);_.focus()}}function It(_,F,N,$){if(_.codemirror&&!_.isPreviewActive()){var se=_.codemirror,te=me(se)[F];if(te){var G=se.getCursor("start"),ee=se.getCursor("end"),ne=se.getLine(G.line),we=ne.slice(0,G.ch),Re=ne.slice(G.ch);F=="link"?we=we.replace(/(.*)[^!]\[/,"$1"):F=="image"&&(we=we.replace(/(.*)!\[$/,"$1")),Re=Re.replace(/]\(.*?\)/,""),se.replaceRange(we+Re,{line:G.line,ch:0},{line:G.line,ch:99999999999999}),G.ch-=N[0].length,G!==ee&&(ee.ch-=N[0].length),se.setSelection(G,ee),se.focus()}else At(se,te,N,$)}}function Ti(_,F,N,$){if(_.codemirror&&!_.isPreviewActive()){$=$===void 0?N:$;var se,te=_.codemirror,G=me(te),ee=N,ne=$,we=te.getCursor("start"),Re=te.getCursor("end");G[F]?(ee=(se=te.getLine(we.line)).slice(0,we.ch),ne=se.slice(we.ch),F=="bold"?(ee=ee.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),ne=ne.replace(/(\*\*|__)/,"")):F=="italic"?(ee=ee.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),ne=ne.replace(/(\*|_)/,"")):F=="strikethrough"&&(ee=ee.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),ne=ne.replace(/(\*\*|~~)/,"")),te.replaceRange(ee+ne,{line:we.line,ch:0},{line:we.line,ch:99999999999999}),F=="bold"||F=="strikethrough"?(we.ch-=2,we!==Re&&(Re.ch-=2)):F=="italic"&&(we.ch-=1,we!==Re&&(Re.ch-=1))):(se=te.getSelection(),F=="bold"?se=(se=se.split("**").join("")).split("__").join(""):F=="italic"?se=(se=se.split("*").join("")).split("_").join(""):F=="strikethrough"&&(se=se.split("~~").join("")),te.replaceSelection(ee+se+ne),we.ch+=N.length,Re.ch=we.ch+se.length),te.setSelection(we,Re),te.focus()}}function pi(_,F){if(Math.abs(_)<1024)return""+_+F[0];var N=0;do _/=1024,++N;while(Math.abs(_)>=1024&&N=19968?N+=F[$].length:N+=1;return N}var A={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},S={bold:{name:"bold",action:ie,className:A.bold,title:"Bold",default:!0},italic:{name:"italic",action:J,className:A.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:re,className:A.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:ue,className:A.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:ue,className:A["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:de,className:A["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:Ce,className:A["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:je,className:A["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:Ze,className:A["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:_e,className:A.code,title:"Code"},quote:{name:"quote",action:ye,className:A.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:oe,className:A["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:Oe,className:A["ordered-list"],title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:le,className:A["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:Ee,className:A.link,title:"Create Link",default:!0},image:{name:"image",action:Ae,className:A.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:C,className:A["upload-image"],title:"Import an image"},table:{name:"table",action:Ne,className:A.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:ht,className:A["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:st,className:A.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:ze,className:A["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:Fe,className:A.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:A.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:Nt,className:A.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:Mt,className:A.redo,noDisable:!0,title:"Redo"}},I={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["",` - -| Column 1 | Column 2 | Column 3 | -| -------- | -------- | -------- | -| Text | Text | Text | - -`],horizontalRule:["",` - ------ - -`]},L={link:"URL for the link:",image:"URL of the image:"},X={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},Q={bold:"**",code:"```",italic:"*"},he={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},He={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:`Image #image_name# is too big (#image_size#). -Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};function ve(_){(_=_||{}).parent=this;var F=!0;if(_.autoDownloadFontAwesome===!1&&(F=!1),_.autoDownloadFontAwesome!==!0)for(var N=document.styleSheets,$=0;$-1&&(F=!1);if(F){var se=document.createElement("link");se.rel="stylesheet",se.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(se)}if(_.element)this.element=_.element;else if(_.element===null)return void console.log("EasyMDE: Error. No element was found.");if(_.toolbar===void 0)for(var te in _.toolbar=[],S)Object.prototype.hasOwnProperty.call(S,te)&&(te.indexOf("separator-")!=-1&&_.toolbar.push("|"),(S[te].default===!0||_.showIcons&&_.showIcons.constructor===Array&&_.showIcons.indexOf(te)!=-1)&&_.toolbar.push(te));if(Object.prototype.hasOwnProperty.call(_,"previewClass")||(_.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(_,"status")||(_.status=["autosave","lines","words","cursor"],_.uploadImage&&_.status.unshift("upload-image")),_.previewRender||(_.previewRender=function(ee){return this.parent.markdown(ee)}),_.parsingConfig=be({highlightFormatting:!0},_.parsingConfig||{}),_.insertTexts=be({},I,_.insertTexts||{}),_.promptTexts=be({},L,_.promptTexts||{}),_.blockStyles=be({},Q,_.blockStyles||{}),_.autosave!=null&&(_.autosave.timeFormat=be({},X,_.autosave.timeFormat||{})),_.iconClassMap=be({},A,_.iconClassMap||{}),_.shortcuts=be({},v,_.shortcuts||{}),_.maxHeight=_.maxHeight||void 0,_.direction=_.direction||"ltr",_.maxHeight!==void 0?_.minHeight=_.maxHeight:_.minHeight=_.minHeight||"300px",_.errorCallback=_.errorCallback||function(ee){alert(ee)},_.uploadImage=_.uploadImage||!1,_.imageMaxSize=_.imageMaxSize||2097152,_.imageAccept=_.imageAccept||"image/png, image/jpeg, image/gif, image/avif",_.imageTexts=be({},he,_.imageTexts||{}),_.errorMessages=be({},He,_.errorMessages||{}),_.imagePathAbsolute=_.imagePathAbsolute||!1,_.imageCSRFName=_.imageCSRFName||"csrfmiddlewaretoken",_.imageCSRFHeader=_.imageCSRFHeader||!1,_.autosave!=null&&_.autosave.unique_id!=null&&_.autosave.unique_id!=""&&(_.autosave.uniqueId=_.autosave.unique_id),_.overlayMode&&_.overlayMode.combine===void 0&&(_.overlayMode.combine=!0),this.options=_,this.render(),!_.initialValue||this.options.autosave&&this.options.autosave.foundSavedValue===!0||this.value(_.initialValue),_.uploadImage){var G=this;this.codemirror.on("dragenter",function(ee,ne){G.updateStatusBar("upload-image",G.options.imageTexts.sbOnDragEnter),ne.stopPropagation(),ne.preventDefault()}),this.codemirror.on("dragend",function(ee,ne){G.updateStatusBar("upload-image",G.options.imageTexts.sbInit),ne.stopPropagation(),ne.preventDefault()}),this.codemirror.on("dragleave",function(ee,ne){G.updateStatusBar("upload-image",G.options.imageTexts.sbInit),ne.stopPropagation(),ne.preventDefault()}),this.codemirror.on("dragover",function(ee,ne){G.updateStatusBar("upload-image",G.options.imageTexts.sbOnDragEnter),ne.stopPropagation(),ne.preventDefault()}),this.codemirror.on("drop",function(ee,ne){ne.stopPropagation(),ne.preventDefault(),_.imageUploadFunction?G.uploadImagesUsingCustomFunction(_.imageUploadFunction,ne.dataTransfer.files):G.uploadImages(ne.dataTransfer.files)}),this.codemirror.on("paste",function(ee,ne){_.imageUploadFunction?G.uploadImagesUsingCustomFunction(_.imageUploadFunction,ne.clipboardData.files):G.uploadImages(ne.clipboardData.files)})}}function qe(){if(typeof localStorage!="object")return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}return!0}ve.prototype.uploadImages=function(_,F,N){if(_.length!==0){for(var $=[],se=0;se<_.length;se++)$.push(_[se].name),this.uploadImage(_[se],F,N);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",$.join(", ")))}},ve.prototype.uploadImagesUsingCustomFunction=function(_,F){if(F.length!==0){for(var N=[],$=0;$$/,' target="_blank">');se=se.replace(G,ee)}}return se}($))}},ve.prototype.render=function(_){if(_||(_=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==_){this.element=_;var F,N,$=this.options,se=this,te={};for(var G in $.shortcuts)$.shortcuts[G]!==null&&w[G]!==null&&function(Ve){te[D($.shortcuts[Ve])]=function(){var ut=w[Ve];typeof ut=="function"?ut(se):typeof ut=="string"&&window.open(ut,"_blank")}}(G);if(te.Enter="newlineAndIndentContinueMarkdownList",te.Tab="tabAndIndentMarkdownList",te["Shift-Tab"]="shiftTabAndUnindentMarkdownList",te.Esc=function(Ve){Ve.getOption("fullScreen")&&Fe(se)},this.documentOnKeyDown=function(Ve){(Ve=Ve||window.event).keyCode==27&&se.codemirror.getOption("fullScreen")&&Fe(se)},document.addEventListener("keydown",this.documentOnKeyDown,!1),$.overlayMode?(d.defineMode("overlay-mode",function(Ve){return d.overlayMode(d.getMode(Ve,$.spellChecker!==!1?"spell-checker":"gfm"),$.overlayMode.mode,$.overlayMode.combine)}),F="overlay-mode",(N=$.parsingConfig).gitHubSpice=!1):((F=$.parsingConfig).name="gfm",F.gitHubSpice=!1),$.spellChecker!==!1&&(F="spell-checker",(N=$.parsingConfig).name="gfm",N.gitHubSpice=!1,typeof $.spellChecker=="function"?$.spellChecker({codeMirrorInstance:d}):u({codeMirrorInstance:d})),this.codemirror=d.fromTextArea(_,{mode:F,backdrop:N,theme:$.theme!=null?$.theme:"easymde",tabSize:$.tabSize!=null?$.tabSize:2,indentUnit:$.tabSize!=null?$.tabSize:2,indentWithTabs:$.indentWithTabs!==!1,lineNumbers:$.lineNumbers===!0,autofocus:$.autofocus===!0,extraKeys:te,direction:$.direction,lineWrapping:$.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:$.placeholder||_.getAttribute("placeholder")||"",styleSelectedText:$.styleSelectedText!=null?$.styleSelectedText:!j(),scrollbarStyle:$.scrollbarStyle!=null?$.scrollbarStyle:"native",configureMouse:function(Ve,ut,yt){return{addNew:!1}},inputStyle:$.inputStyle!=null?$.inputStyle:j()?"contenteditable":"textarea",spellcheck:$.nativeSpellcheck==null||$.nativeSpellcheck,autoRefresh:$.autoRefresh!=null&&$.autoRefresh}),this.codemirror.getScrollerElement().style.minHeight=$.minHeight,$.maxHeight!==void 0&&(this.codemirror.getScrollerElement().style.height=$.maxHeight),$.forceSync===!0){var ee=this.codemirror;ee.on("change",function(){ee.save()})}this.gui={};var ne=document.createElement("div");ne.classList.add("EasyMDEContainer"),ne.setAttribute("role","application");var we=this.codemirror.getWrapperElement();we.parentNode.insertBefore(ne,we),ne.appendChild(we),$.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),$.status!==!1&&(this.gui.statusbar=this.createStatusbar()),$.autosave!=null&&$.autosave.enabled===!0&&(this.autosave(),this.codemirror.on("change",function(){clearTimeout(se._autosave_timeout),se._autosave_timeout=setTimeout(function(){se.autosave()},se.options.autosave.submit_delay||se.options.autosave.delay||1e3)}));var Re=this;this.codemirror.on("update",function(){$.previewImagesInEditor&&ne.querySelectorAll(".cm-image-marker").forEach(function(Ve){var ut=Ve.parentElement;if(ut.innerText.match(/^!\[.*?\]\(.*\)/g)&&!ut.hasAttribute("data-img-src")){var yt=ut.innerText.match("\\((.*)\\)");if(window.EMDEimagesCache||(window.EMDEimagesCache={}),yt&&yt.length>=2){var pt=yt[1];if($.imagesPreviewHandler){var ei=$.imagesPreviewHandler(yt[1]);typeof ei=="string"&&(pt=ei)}if(window.EMDEimagesCache[pt])vt(ut,window.EMDEimagesCache[pt]);else{var zt=document.createElement("img");zt.onload=function(){window.EMDEimagesCache[pt]={naturalWidth:zt.naturalWidth,naturalHeight:zt.naturalHeight,url:pt},vt(ut,window.EMDEimagesCache[pt])},zt.src=pt}}}})}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,($.autofocus===!0||_.autofocus)&&this.codemirror.focus();var Ye=this.codemirror;setTimeout(function(){Ye.refresh()}.bind(Ye),0)}function vt(Ve,ut){var yt,pt;Ve.setAttribute("data-img-src",ut.url),Ve.setAttribute("style","--bg-image:url("+ut.url+");--width:"+ut.naturalWidth+"px;--height:"+(yt=ut.naturalWidth,pt=ut.naturalHeight,ytthis.options.imageMaxSize)se(te(this.options.errorMessages.fileTooLarge));else{var G=new FormData;G.append("image",_),$.options.imageCSRFToken&&!$.options.imageCSRFHeader&&G.append($.options.imageCSRFName,$.options.imageCSRFToken);var ee=new XMLHttpRequest;ee.upload.onprogress=function(ne){if(ne.lengthComputable){var we=""+Math.round(100*ne.loaded/ne.total);$.updateStatusBar("upload-image",$.options.imageTexts.sbProgress.replace("#file_name#",_.name).replace("#progress#",we))}},ee.open("POST",this.options.imageUploadEndpoint),$.options.imageCSRFToken&&$.options.imageCSRFHeader&&ee.setRequestHeader($.options.imageCSRFName,$.options.imageCSRFToken),ee.onload=function(){try{var ne=JSON.parse(this.responseText)}catch{return console.error("EasyMDE: The server did not return a valid json."),void se(te($.options.errorMessages.importError))}this.status===200&&ne&&!ne.error&&ne.data&&ne.data.filePath?F(($.options.imagePathAbsolute?"":window.location.origin+"/")+ne.data.filePath):ne.error&&ne.error in $.options.errorMessages?se(te($.options.errorMessages[ne.error])):ne.error?se(te(ne.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),se(te($.options.errorMessages.importError)))},ee.onerror=function(ne){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+ne.target.status+" ("+ne.target.statusText+")"),se($.options.errorMessages.importError)},ee.send(G)}},ve.prototype.uploadImageUsingCustomFunction=function(_,F){var N=this;_.apply(this,[F,function($){Qe(N,$)},function($){var se=function(te){var G=N.options.imageTexts.sizeUnits.split(",");return te.replace("#image_name#",F.name).replace("#image_size#",pi(F.size,G)).replace("#image_max_size#",pi(N.options.imageMaxSize,G))}($);N.updateStatusBar("upload-image",se),setTimeout(function(){N.updateStatusBar("upload-image",N.options.imageTexts.sbInit)},1e4),N.options.errorCallback(se)}])},ve.prototype.setPreviewMaxHeight=function(){var _=this.codemirror.getWrapperElement(),F=_.nextSibling,N=parseInt(window.getComputedStyle(_).paddingTop),$=parseInt(window.getComputedStyle(_).borderTopWidth),se=(parseInt(this.options.maxHeight)+2*N+2*$).toString()+"px";F.style.height=se},ve.prototype.createSideBySide=function(){var _=this.codemirror,F=_.getWrapperElement(),N=F.nextSibling;if(!N||!N.classList.contains("editor-preview-side")){if((N=document.createElement("div")).className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var $=0;${var o=d=>d==null?!1:typeof d=="boolean"?d:d.trim().toLowerCase()==="true";window.tcRangeSliderPlugins=window.tcRangeSliderPlugins||[];var e="min-label",i="max-label",r="#1E293B",s=()=>{let d=null,u=null,p=null,m,b=!1,w=r,v="",j,D=null,B=null,U=null,q=[],me=()=>{var de;let Ce=(de=d?.shadowRoot)==null?void 0:de.querySelector(".range-slider-box");D=document.createElement("div"),D.classList.add("labels-row"),Ce.prepend(D)},$e=de=>{let Ce=document.createElement("label");return Ce.className=de,Ce.setAttribute("for","range-slider"),Ce},Fe=()=>{B=$e(e),B.textContent=ue(p?.getTextMin(),v),U=$e(i),U.textContent=ue(p?.getTextMax(),v),u?.before(B),u?.after(U);let de=p?.getValues();if(de)for(let Ce=0;Ce{for(let de of q)!de||de.remove();B?.remove(),U?.remove(),D?.remove(),q=[]},J=de=>{b=de,b?(me(),Fe()):ie()},re=de=>{w=de;for(let Ce of q)!Ce||(Ce.style.color=w??r);B&&(B.style.color=w??r),U&&(U.style.color=w??r)},_e=de=>{v=de,m&&m()},ye=()=>{!p||!D||D.classList.toggle("is-reversed",p.isRightToLeft()||p.isBottomToTop())},ue=(de,Ce)=>{let je=`${(de??"").toString()}${Ce}`;return j&&typeof j=="function"?j(de):je};return{get name(){return"Generated Labels"},init:(de,Ce,je,Ze)=>{var Je,Ke,ot;d=de,p=Ze,u=(Je=de.shadowRoot)==null?void 0:Je.getElementById("range-slider"),m=Ce,w=(Ke=d.getAttribute("generate-labels-text-color"))!=null?Ke:r,v=(ot=d.getAttribute("generate-labels-units"))!=null?ot:"",J(o(d.getAttribute("generate-labels"))),ye(),re(w)},update:de=>{if(!(!b||!de.values)){ye();for(let Ce=0;Ce{de==="generate-labels"&&J(o(Ce)),de==="generate-labels-text-color"&&re(Ce),de==="generate-labels-units"&&_e(Ce)},gettersAndSetters:[{name:"generateLabels",attributes:{get(){return b??!1},set:de=>{J(o(de))}}},{name:"textColor",attributes:{get(){return w??""},set:de=>{re(de)}}},{name:"generateLabelsTextColor",attributes:{get(){return w??""},set:de=>{re(de)}}},{name:"units",attributes:{get(){return v??""},set:de=>{_e(de)}}},{name:"generateLabelsUnits",attributes:{get(){return v??""},set:de=>{_e(de)}}},{name:"generateLabelsFormat",attributes:{get(){return j},set:de=>{j=de,m&&m()}}}],css:` - .labels-row{ - text-align: center; - display: flex; - justify-content: center; - } - - .is-reversed, - .is-reversed + .row{ - flex-direction: row-reverse; - } - - .type-vertical{ - position: relative; - } - - .type-vertical .labels-row{ - flex-direction: column; - position: absolute; - top: 50%; - right: -100%; - transform: translateY(-50%); - } - - .type-vertical .is-reversed, - .type-vertical .is-reversed + .row{ - flex-direction: column-reverse; - } - - .max-label, - .min-label{ - margin: 0 1rem; - width: 2rem; - text-align: center; - white-space: nowrap; - } - - .generated-label{ - text-align: center; - margin: 0 0.5rem; - white-space: nowrap; - } - `,destroy:ie}};window.tcRangeSliderPlugins.push(s)})();(()=>{var o=Object.defineProperty,e=Math.pow,i=(M,P,ke)=>P in M?o(M,P,{enumerable:!0,configurable:!0,writable:!0,value:ke}):M[P]=ke,r=(M,P,ke)=>(i(M,typeof P!="symbol"?P+"":P,ke),ke),s=(M,P)=>` ${P&&P.length>0?P.map(ke=>``).join(""):""}
        `,d=":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}",u="pointers-overlap",p="pointers-min-distance",m="pointers-max-distance",b="range-dragging",w="data",v="min",j="max",D="step",B="round",U="type",q="theme",me="rtl",$e="btt",Fe="disabled",ie="keyboard-disabled",J="mousewheel-disabled",re="slider-width",_e="slider-height",ye="slider-radius",ue="slider-bg",de="slider-bg-hover",Ce="slider-bg-fill",je="pointer-width",Ze="pointer-height",Je="pointer-radius",Ke="pointer-bg",ot="pointer-bg-hover",oe="pointer-bg-focus",Oe="pointer-shadow",le="pointer-shadow-hover",Ee="pointer-shadow-focus",Ae="pointer-border",H="pointer-border-hover",C="pointer-border-focus",Qe="animate-onclick",Ne="css-links",ht="vertical",Nt="horizontal",Mt=(M,P,ke,fe,Pe)=>{let at=P-M;return at===0?ke:(fe-ke)*(Pe-M)/at+ke},ze=M=>!isNaN(parseFloat(M))&&isFinite(M),st=(M,P)=>ze(M)?Number(M):P,At=(M,P)=>P===0?0:Math.round(M/P)*P,Ft=(M,P=1/0)=>{if(P===1/0)return M;let ke=e(10,P);return Math.round(M*ke)/ke},$t=M=>M==null?!1:typeof M=="boolean"?M:M.trim().toLowerCase()==="true",It=(M,P)=>{M.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:P}}))},Ti=(M,P)=>{M.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:P}}))},pi=(M,P)=>{M.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:P}}))},ki=(M,P)=>{M.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:P}}))},be=(M,P)=>{if(!P||P.length<=0)return;let ke=P.map(Pe=>ze(Pe)?st(Pe,Pe):Pe),fe={values:ke||[]};fe.value=ke[0],fe.value0=ke[0],fe.value1=ke[0];for(let Pe=1;Pe{let fe=0,Pe,at,Ct,Ie,xe=!1,bt=(Be,Zt,xi,ai,hi,ti)=>{let Xe=fe;xi!==void 0&&Be>xi&&(Be=xi),Zt!==void 0&&BeBe===P||P.contains(Be),et=(Be,Zt,xi,ai)=>{Pe=Be,at=Zt,Ct=xi,Ie=ai},tt=Be=>{xe=Be,P.classList.toggle("disabled",xe),xe?P.setAttribute("aria-disabled","true"):P.hasAttribute("aria-disabled")&&P.removeAttribute("aria-disabled")},oi=(Be,Zt)=>{Zt==null?P.removeAttribute(Be):P.setAttribute(Be,Zt)},yi=Be=>P.getAttribute(Be),dt=Be=>{if(!xe){switch(Be.key){case"ArrowLeft":{Be.preventDefault(),typeof Pe=="function"&&Pe(ke);break}case"ArrowRight":{Be.preventDefault(),typeof at=="function"&&at(ke);break}case"ArrowUp":{Be.preventDefault(),typeof Ct=="function"&&Ct(ke);break}case"ArrowDown":{Be.preventDefault(),typeof Ie=="function"&&Ie(ke);break}}ki(M,Be)}},ce=()=>{xe||It(M,P)};return P.className=`pointer pointer-${ke}`,P.addEventListener("keydown",dt),P.addEventListener("click",ce),{$pointer:P,get percent(){return fe},get disabled(){return xe},set disabled(Be){tt(Be)},updatePosition:bt,isClicked:kt,setCallbacks:et,setAttr:oi,getAttr:yi,destroy:()=>{P.removeEventListener("keydown",dt),P.removeEventListener("click",ce),P.remove()}}},A=M=>{if(M==null)return;if(Array.isArray(M))return M;if(M.trim()==="")return;let P=M.split(","),ke=[],fe=!0;for(let Pe=0;PeNumber(Pe)):ke},S=(M,P)=>P?P.findIndex(ke=>ke===M||ke.toString().trim()===M.toString().trim()):-1,I=M=>({updatePosition:(P,ke,fe,Pe)=>{if(ke.length<=0)return;let at=ke.length===1,Ct=ke[0],Ie=ke[ke.length-1];P===ht?(M.style.removeProperty("width"),M.style.removeProperty("right"),M.style.removeProperty("left"),at?M.style.height=`${Ct}%`:M.style.height=`${Math.abs(Ct-Ie)}%`,Pe?(M.style.bottom="0%",at?M.style.top="auto":M.style.top=`${Math.min(100-Ie,100-Ct)}%`):(M.style.bottom="auto",at?M.style.top="0%":M.style.top=`${Math.min(Ct,Ie)}%`)):(M.style.removeProperty("height"),M.style.removeProperty("top"),M.style.removeProperty("bottom"),at?M.style.width=`${Ct}%`:M.style.width=`${Math.abs(Ct-Ie)}%`,fe?(M.style.right="0%",at?M.style.left="auto":M.style.left=`${Math.min(100-Ie,100-Ct)}%`):(M.style.right="auto",at?M.style.left="0%":M.style.left=`${Math.min(Ct,Ie)}%`))}}),L="--animate-onclick",X="--width",Q="--height",he="--panel-bg-border-radius",He="--panel-bg",ve="--panel-bg-hover",qe="--panel-bg-fill",_="--pointer-width",F="--pointer-height",N="--pointer-border-radius",$="--pointer-bg",se="--pointer-bg-hover",te="--pointer-bg-focus",G="--pointer-shadow",ee="--pointer-shadow-hover",ne="--pointer-shadow-focus",we="--pointer-border",Re="--pointer-border-hover",Ye="--pointer-border-focus",vt=(M,P,ke)=>{let fe=new Map;for(let Pe of M.attributes){let at=Pe.nodeName.trim().toLowerCase();if(!P.test(at))continue;let Ct=at.replace(/\D/g,"").trim(),Ie=Ct===""||Ct==="0"||Ct==="1"?0:st(Ct,0)-1,xe=ke&&typeof ke=="function"?ke(Pe.value):Pe.value;fe.set(Ie,xe)}return fe},Ve=M=>{if(!M)return null;let P=M.getAttribute(Ne);if(!P)return null;let ke=P.split(";"),fe=[];for(let Pe of ke)Pe.trim()!==""&&fe.push(Pe.trim());return fe},ut=[[X,re,"sliderWidth",null],[Q,_e,"sliderHeight",null],[he,ye,"sliderRadius",null],[He,ue,"sliderBg",null],[ve,de,"sliderBgHover",null],[qe,Ce,"sliderBgFill",null],[_,je,"pointer#Width",/^pointer([0-9]*)-width$/],[F,Ze,"pointer#Height",/^pointer([0-9]*)-height$/],[N,Je,"pointer#Radius",/^pointer([0-9]*)-radius$/],[$,Ke,"pointer#Bg",/^pointer([0-9]*)-bg$/],[se,ot,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[te,oe,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[G,Oe,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[ee,le,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[ne,Ee,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[we,Ae,"pointer#Border",/^pointer([0-9]*)-border$/],[Re,H,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[Ye,C,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],yt=(M,P,ke)=>{let fe=null,Pe=[],at=new Map,Ct=(dt,ce=P)=>{let Be=[...ce.classList];for(let Zt of Be)Zt.startsWith(dt)&&P.classList.remove(Zt)},Ie=()=>{Ct("shape");let dt=P.querySelectorAll(".pointer");for(let ce of dt)Ct("shape",ce)},xe=dt=>{fe=dt,Ct("theme-"),typeof dt=="string"&&P.classList.add(`theme-${dt}`)},bt=()=>{if(Ie(),!(Pe.length<=0)){P.classList.add("shape",`shape-${Pe[0]}`);for(let dt=1;dt{Pe[dt]=ce,bt()},et=()=>{Ie();let dt=vt(M,/^pointer([0-9]*)-shape$/);if(!(dt.size<=0)){for(let ce of dt){let Be=ce[0];Pe[Be]=ce[1]}bt()}},tt=(dt,ce)=>`${dt}-${ce}`,oi=(dt,ce,Be)=>{let Zt=ke[Be];if(!Zt)return;let xi=Be===0?P:Zt.$pointer;if(ce==null){at.has(tt(dt,Be))&&at.delete(tt(dt,Be)),xi.style.removeProperty(dt);return}at.set(tt(dt,Be),ce),xi.style.setProperty(dt,ce)},yi=(dt,ce)=>at.get(tt(dt,ce));return(()=>{for(let dt of ut){let[ce,Be,Zt,xi]=dt;if(xi){let hi=vt(M,xi);for(let ti of hi){let Xe=ti[0],Fi=ti[1];oi(ce,Fi,Xe)}}else{let hi=M.getAttribute(Be);oi(ce,hi,0)}let ai=[];if(Zt.indexOf("#")===-1)ai.push([Zt,0]);else{ai.push([Zt.replace("#",""),0]),ai.push([Zt.replace("#","0"),0]),ai.push([Zt.replace("#","1"),0]);for(let hi=1;hi{oi(ce,Fi,Xe)}})}catch(ti){console.error(ti)}}xe(M.getAttribute(q)),et()})(),{setStyle:oi,getStyle:yi,get theme(){return fe},set theme(dt){xe(dt)},get pointerShapes(){return Pe},setPointerShape:kt}},pt="animate-on-click",ei="range-dragging",zt=(M,P,ke,fe)=>{let Pe=[],at=kt=>{for(let et of Pe)et.update&&typeof et.update=="function"&&et.update(kt)},Ct=()=>{for(let kt of Pe)kt.destroy&&typeof kt.destroy=="function"&&kt.destroy()},Ie=(kt,et)=>{for(let tt of Pe)tt.onAttrChange&&typeof tt.onAttrChange=="function"&&tt.onAttrChange(kt,et)},xe=kt=>{if(kt.gettersAndSetters){for(let et of kt.gettersAndSetters)if(!(!et.name||!et.attributes))try{Object.prototype.hasOwnProperty.call(M,et.name)||Object.defineProperty(M,et.name,et.attributes)}catch(tt){console.error("defineSettersGetters error:",tt)}}},bt=kt=>{var et;if(!kt.css)return;let tt=(et=M.shadowRoot)==null?void 0:et.querySelector("style");!tt||(tt.innerHTML+=kt.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let kt of window.tcRangeSliderPlugins){let et=kt();Pe.push(et),et.init&&typeof et.init=="function"&&(et.init(M,P,ke,fe),xe(et),bt(et))}},update:at,onAttrChange:Ie,destroy:Ct}},Si=10,Cr=20,gr=(M,P)=>{let ke=new Map,fe=/^value([0-9]*)$/;for(let Ie of M.attributes){let xe=Ie.nodeName.trim().toLowerCase();if(!fe.test(xe))continue;let bt=xe.replace("value","").trim(),kt=bt===""||bt==="0"||bt==="1"?0:st(bt,0)-1,et=ze(Ie.value)?st(Ie.value,0):Ie.value;ke.set(kt,et)}let Pe=Math.max(...Array.from(ke.keys())),at=[];at.push([K(M,P,0),ke.get(0)]);let Ct=P;for(let Ie=1;Ie<=Pe;Ie++){let xe=P.cloneNode(!0);Ct.after(xe),Ct=xe,at.push([K(M,xe,Ie),ke.get(Ie)])}return at},br=(M,P,ke,fe,Pe,at,Ct)=>{try{Object.defineProperty(M,fe,{configurable:!0,get(){if(!P)return;let Ie=P.pointers[ke];if(!Ie)return;let xe=P.getTextValue(Ie.percent);return ze(xe)?st(xe,xe):xe},set:Ie=>{P.pointers[ke]?P?.setValue(Ie,ke):P?.addPointer(Ie)}}),Object.defineProperty(M,Pe,{configurable:!0,get(){var Ie,xe;return(xe=(Ie=P?.pointers[ke])==null?void 0:Ie.getAttr("aria-label"))!=null?xe:void 0},set:Ie=>{!P||P.setAriaLabel(ke,Ie)}}),Object.defineProperty(M,at,{configurable:!0,get(){var Ie,xe;return(xe=(Ie=P?.styles)==null?void 0:Ie.pointerShapes[ke])!=null?xe:null},set:Ie=>{!P||!P.styles||P.styles.setPointerShape(ke,Ie)}}),Object.defineProperty(M,Ct,{configurable:!0,get(){var Ie;return(Ie=P?.pointers[ke].disabled)!=null?Ie:!1},set:Ie=>{if(!P)return;let xe=P?.pointers[ke];!xe||(xe.disabled=Ie)}})}catch(Ie){console.error(Ie)}},Mn=(M,P)=>{let ke=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let fe=2;fe{var fe;let Pe=(fe=ke.shadowRoot)==null?void 0:fe.querySelector(".container");if(Pe)for(let at of M)P?Pe.prepend(at.$pointer):Pe.append(at.$pointer)},fn=(M,P)=>{if(!(!P||M.length<=1)){for(let ke of M)ke.$pointer.style.zIndex=Cr.toString();P.$pointer.style.zIndex=(Cr*2).toString()}},Vi=0,di=100,Ui=2,tr="0.3s",Wi=(M,P,ke)=>{let fe=ke.map(z=>z[0]),Pe=null,at=null,Ct=null,Ie=null,xe=Vi,bt=di,kt,et,tt=Nt,oi=Ui,yi=!1,dt=!1,ce=!1,Be=0,Zt=1/0,xi=!1,ai,hi,ti=!1,Xe=!1,Fi=!1,ur=tr,cr=[],Jn=z=>{ti||(z.preventDefault&&z.preventDefault(),Br(z),window.addEventListener("mousemove",Br),window.addEventListener("mouseup",gn),Ti(M,z))},gn=z=>{ti||(ai=void 0,hi=void 0,window.removeEventListener("mousemove",Br),window.removeEventListener("mouseup",gn),ur&&P.classList.add(pt),pi(M,z))},hn=(z,Me)=>{if(fe.length<=0)return;if(fe.length===1)return fe[0].isClicked(z)&&ur&&P.classList.remove(pt),fe[0];let it=Er(z);if(xi){let Lt=Me,Ni=bn(Lt);Ni!==void 0&&(Lt=At(Lt,Ni)),it?(ai=Lt,hi=0,ur&&P.classList.remove(pt)):ai!==void 0&&(hi=Lt-ai,ai=Lt)}if(!kr(z)&&!it){for(let Lt of fe)if(!(!Lt.isClicked(z)||Lt.disabled))return ur&&P.classList.remove(pt),Lt;for(let Lt of fe)if(Pe===Lt)return Lt}let Wt=1/0,ci=null;for(let Lt of fe){if(Lt.disabled)continue;let Ni=Math.abs(Me-Lt.percent);Nife.findIndex(z=>Pe===z&&!z.disabled),Br=z=>{let Me;if(tt===ht){let{height:Wt,top:ci}=P.getBoundingClientRect(),Lt=z.type.indexOf("mouse")!==-1?z.clientY:z.touches[0].clientY;Me=Math.min(Math.max(0,Lt-ci),Wt)*100/Wt}else{let{width:Wt,left:ci}=P.getBoundingClientRect(),Lt=z.type.indexOf("mouse")!==-1?z.clientX:z.touches[0].clientX;Me=Math.min(Math.max(0,Lt-ci),Wt)*100/Wt}if((yi||dt)&&(Me=100-Me),Pe=hn(z.target,Me),Pe&&fn(fe,Pe),xi&&fe.length>1&&hi!==void 0){let Wt=fe[0],ci=fe[fe.length-1],Lt=Wt.percent+hi<0,Ni=ci.percent+hi>100;if(Lt||Ni)return;for(let ns=0;ns{if(ti||document.activeElement!==M||Pe!=null&&Pe.disabled)return;z.stopPropagation(),z.preventDefault();let Me=z.deltaY<0,it=yi||dt,Wt=Me?!it:it,ci=$n();ci!==-1&&(Wt?Rr(ci,fe[ci].percent):Dr(ci,fe[ci].percent))},un=z=>{ti||Xe||(tt===ht?dt?Ut(z,100):Ut(z,0):yi?Dr(z,fe[z].percent):Rr(z,fe[z].percent))},Nr=z=>{ti||Xe||(tt===ht?dt?Ut(z,0):Ut(z,100):yi?Rr(z,fe[z].percent):Dr(z,fe[z].percent))},Qn=z=>{ti||Xe||(tt===ht?dt?Dr(z,fe[z].percent):Rr(z,fe[z].percent):yi?Ut(z,100):Ut(z,0))},Kn=z=>{ti||Xe||(tt===ht?dt?Rr(z,fe[z].percent):Dr(z,fe[z].percent):yi?Ut(z,0):Ut(z,100))},kr=z=>z.classList.contains("panel"),Er=z=>z.classList.contains("panel-fill"),Rr=(z,Me)=>{if(Me===void 0)return;let it=bn(Me);it==null&&(it=1),Me-=it,Me<0&&(Me=0),Ut(z,Me)},Dr=(z,Me)=>{if(Me===void 0)return;let it=bn(Me);it==null&&(it=1),Me+=it,Me>100&&(Me=100),Ut(z,Me)},Gr=()=>{!Ie||Ie.update({percents:is(),values:Jr(),$pointers:qi(),min:On(),max:rs(),data:vr(),step:jn(),round:W(),type:T(),textMin:Yr(),textMax:Ir(),rightToLeft:xt(),bottomToTop:ui(),pointersOverlap:ji(),pointersMinDistance:De(),pointersMaxDistance:Ge(),rangeDragging:Zi(),disabled:wi(),keyboardDisabled:_i(),mousewheelDisabled:ii()})},Xn=()=>{Gr()},Hr=z=>{if(!(ce||fe.length<=1||bt===xe))if(z===0){let Me=Zt*100/(bt-xe);return Math.max(0,fe[z+1].percent-Me)}else{let Me=Be*100/(bt-xe);return Math.min(fe[z-1].percent+Me,100)}},es=z=>{if(!(ce||fe.length<=1||bt===xe))if(z===fe.length-1){let Me=Zt*100/(bt-xe);return Math.min(fe[z-1].percent+Me,100)}else{let Me=Be*100/(bt-xe);return Math.max(0,fe[z+1].percent-Me)}},bn=z=>{let Me;if(typeof kt=="function"){let it=Mt(0,100,xe,bt,z);Me=kt(it,z)}else Me=kt;if(ze(Me)){let it=bt-xe;return Me=it===0?0:Me*100/it,Me}},ir=z=>{if(z===void 0)return;let Me=Mt(0,100,xe,bt,z);return et!==void 0?et[Math.round(Me)]:Ft(Me,oi)},Yr=()=>et!==void 0?et[xe]:xe,Ir=()=>et!==void 0?et[bt]:bt,jn=()=>kt,ts=z=>{var Me;return z<=0||ce?Yr():(Me=ir(fe[z-1].percent))!=null?Me:""},vn=z=>{var Me;return fe.length<=1||z>=fe.length-1||ce?Ir():(Me=ir(fe[z+1].percent))!=null?Me:""},is=()=>fe.map(z=>z.percent),Jr=()=>fe.map(z=>ir(z.percent)),qi=()=>fe.map(z=>z.$pointer),On=()=>xe,rs=()=>bt,vr=()=>et,T=()=>tt,W=()=>oi,De=()=>Be,Ge=()=>Zt,Vt=z=>cr[z],xt=()=>yi,ui=()=>dt,wi=()=>ti,_i=()=>Xe,ii=()=>Fi,ji=()=>ce,Zi=()=>xi,Ut=(z,Me)=>{if(Me===void 0)return;let it=bn(Me);it!==void 0&&(Me=At(Me,it));let Wt=fe[z];if(!Wt)return;let ci=Wt.updatePosition(Me,Hr(z),es(z),tt,yi,dt);at?.updatePosition(tt,fe.map(Lt=>Lt.percent),yi,dt),Gr();for(let Lt of fe){let Ni=ir(Lt.percent);Ni!==void 0&&(Lt.setAttr("aria-valuenow",Ni.toString()),Lt.setAttr("aria-valuetext",Ni.toString()))}Ar(),ci&&be(M,fe.map(Lt=>ir(Lt.percent)))},mi=()=>{for(let z=0;z{xe=et!==void 0?0:st(z,Vi),bt=et!==void 0?et.length-1:st(Me,di),Oi(xe),Bi(bt)},Ar=()=>{var z,Me;for(let it=0;it{xe=st(z,Vi),xe>bt&&(bt=xe+di),mi()},Bi=z=>{bt=st(z,di),bt{ce=!0;for(let Me=0;Me{let it;et!==void 0?(it=z==null?0:S(z,et),it===-1&&(it=0)):(it=st(z,xe),itbt&&(it=bt));let Wt=Mt(xe,bt,0,100,it);Ut(Me,Wt)},Kr=z=>{if(z==null){kt=void 0;return}if(typeof z=="function"){kt=z,mi();return}if(ze(z)){kt=st(z,1);let Me=Math.abs(bt-xe);kt>Me&&(kt=void 0),mi();return}kt=void 0},Es=z=>{ce=z,mi()},yn=z=>{(!ze(z)||z<0)&&(z=0),Be=z},Ds=z=>{(!ze(z)||z<0)&&(z=1/0),Zt=z},oo=z=>{ti=z,P.classList.toggle("disabled",ti),ti?P.setAttribute("aria-disabled","true"):P.hasAttribute("aria-disabled")&&P.removeAttribute("aria-disabled")},As=z=>{Xe=z},ao=z=>{Fi=z,Fi?document.removeEventListener("wheel",Zr):document.addEventListener("wheel",Zr,{passive:!1})},lo=z=>{if(z==null){et=void 0;return}if(et=A(z),et===void 0||et.length<=0){et=void 0;return}Oi(0),Bi(et.length-1),kt===void 0&&Kr(1)},ho=z=>{var Me;typeof z=="string"?tt=z.trim().toLowerCase()===ht?ht:Nt:tt=Nt;let it=(Me=M.shadowRoot)==null?void 0:Me.querySelector(".range-slider-box");if(!it)return;it.className=`range-slider-box type-${tt}`,mi();let Wt=tt===ht?"vertical":"horizontal";for(let ci of fe)ci.setAttr("aria-orientation",Wt)},Ls=z=>{yi=z,fe.length>1&&qr(fe,yi,M),mi(),Gr()},Ss=z=>{dt=z,fe.length>1&&qr(fe,dt,M),mi(),Gr()},uo=z=>{oi=st(z,Ui),oi<0&&(oi=Ui),Gr()},Bn=z=>{z==null||z.toString().trim().toLowerCase()==="false"?(ur=void 0,P.style.removeProperty(L),P.classList.remove(pt)):(ur=z.toString(),P.style.setProperty(L,ur),P.classList.add(pt))},Pr=(z,Me)=>{let it=fe[z];!it||(it.setAttr("aria-label",Me),cr[z]=Me)},xn=z=>{if(ai=void 0,fe.length<=1){xi=!1,P.classList.remove(ei);return}xi=z,P.classList.toggle(ei,xi)},co=()=>{oo($t(M.getAttribute(Fe))),Xe=$t(M.getAttribute(ie)),Fi=$t(M.getAttribute(J));let z=vt(M,/^pointer([0-9]*)-disabled$/,Me=>$t(Me));for(let Me of z){let it=Me[0];!fe[it]||(fe[it].disabled=Me[1])}},ca=()=>{let z=vt(M,/^aria-label([0-9]*)$/);for(let Me of z){let it=Me[0];Pr(it,Me[1])}},zr=z=>{let Me=fe.length,it=fe[Me-1].$pointer,Wt=it.cloneNode(!0);it.after(Wt);let ci=K(M,Wt,Me);return ci.setCallbacks(un,Nr,Qn,Kn),fe.push(ci),li(z,Me),mi(),Gr(),Me},wn=()=>{let z=fe.length,Me=fe[z-1];return Me?(Me.destroy(),fe.pop(),fe.length<=1&&xn(!1),mi(),Gr(),z-1):-1};return(()=>{var z,Me;for(let Wt of fe)Wt.setCallbacks(un,Nr,Qn,Kn);let it=(z=M.shadowRoot)==null?void 0:z.querySelector(".panel-fill");it&&(at=I(it)),ho(M.getAttribute(U)),Ls($t(M.getAttribute(me))),Ss($t(M.getAttribute($e))),rr(M.getAttribute(v),M.getAttribute(j)),Kr(M.getAttribute(D)),lo(M.getAttribute(w)),Qr(ke.map(Wt=>Wt[1])),Es($t(M.getAttribute(u))),yn(st(M.getAttribute(p),0)),Ds(st(M.getAttribute(m),1/0)),xn($t(M.getAttribute(b))),uo(st(M.getAttribute(B),Ui)),co(),ca(),Ct=yt(M,P,fe),Bn((Me=M.getAttribute(Qe))!=null?Me:tr),P.addEventListener("mousedown",Jn),P.addEventListener("mouseup",gn),P.addEventListener("touchmove",Br),P.addEventListener("touchstart",Br),Fi||document.addEventListener("wheel",Zr,{passive:!1}),Ie=zt(M,Xn,{setValues:Qr,setMin:Oi,setMax:Bi,setStep:Kr,setPointersOverlap:Es,setPointersMinDistance:yn,setPointersMaxDistance:Ds,setDisabled:oo,setType:ho,setRightToLeft:Ls,setBottomToTop:Ss,setRound:uo,setKeyboardDisabled:As,setMousewheelDisabled:ao,setRangeDragging:xn,setData:lo},{getPercents:is,getValues:Jr,getPointerElements:qi,getMin:On,getMax:rs,getStep:jn,getData:vr,getType:T,getRound:W,getTextMin:Yr,getTextMax:Ir,isRightToLeft:xt,isBottomToTop:ui,isDisabled:wi,isKeyboardDisabled:_i,isMousewheelDisabled:ii,isPointersOverlap:ji,isRangeDraggingEnabled:Zi,getPointersMinDistance:De,getPointersMaxDistance:Ge}),Ie.init()})(),{get pointers(){return fe},get styles(){return Ct},get pluginsManager(){return Ie},get min(){return Yr()},get max(){return Ir()},get step(){return jn()},get pointersOverlap(){return ji()},set pointersOverlap(z){Es(z)},get pointersMinDistance(){return De()},set pointersMinDistance(z){yn(z)},get pointersMaxDistance(){return Ge()},set pointersMaxDistance(z){Ds(z)},get disabled(){return wi()},set disabled(z){oo(z)},get data(){return vr()},get type(){return T()},set type(z){ho(z)},get rightToLeft(){return xt()},set rightToLeft(z){Ls(z)},get bottomToTop(){return ui()},set bottomToTop(z){Ss(z)},get round(){return W()},set round(z){uo(z)},get animateOnClick(){return ur},set animateOnClick(z){Bn(z)},get keyboardDisabled(){return _i()},set keyboardDisabled(z){As(z)},get mousewheelDisabled(){return ii()},set mousewheelDisabled(z){ao(z)},get rangeDragging(){return Zi()},set rangeDragging(z){xn(z)},setMin:Oi,setMax:Bi,setValue:li,setStep:Kr,setData:lo,getTextValue:ir,setAriaLabel:Pr,getAriaLabel:Vt,addPointer:zr,removePointer:wn,destroy:()=>{P.removeEventListener("mousedown",Jn),P.removeEventListener("mouseup",gn),P.removeEventListener("touchmove",Br),P.removeEventListener("touchstart",Br),document.removeEventListener("wheel",Zr);for(let z of fe)z.destroy();Ie?.destroy()}}},hr=(M,P,ke)=>{let fe=ut.find(([Ie,xe,bt,kt])=>xe.replace("#","")===P.replace(/\d+/g,""));if(fe&&M.styles){let[Ie,xe,bt,kt]=fe,et=P.replace(/\D/g,"").trim(),tt=et===""||et==="0"||et==="1"?0:st(et,0)-1;M.styles.setStyle(Ie,ke,tt);return}switch(M&&M.pluginsManager&&M.pluginsManager.onAttrChange(P,ke),P){case v:{M.setMin(ke);break}case j:{M.setMax(ke);break}case D:{M.setStep(ke);break}case u:{M.pointersOverlap=$t(ke);break}case p:{M.pointersMinDistance=st(ke,0);break}case b:{M.rangeDragging=$t(ke);break}case m:{M.pointersMaxDistance=st(ke,1/0);break}case Fe:{M.disabled=$t(ke);break}case ie:{M.keyboardDisabled=$t(ke);break}case J:{M.mousewheelDisabled=$t(ke);break}case w:{M.setData(ke);break}case U:{M.type=ke;break}case me:{M.rightToLeft=$t(ke);break}case $e:{M.bottomToTop=$t(ke);break}case B:{M.round=st(ke,Ui);break}case q:{M.styles&&(M.styles.theme=ke);break}case Qe:{M.animateOnClick=ke;break}}let Pe=null;if(/^value([0-9]*)$/.test(P)&&(Pe="value"),/^pointer([0-9]*)-disabled$/.test(P)&&(Pe="pointer-disabled"),/^aria-label([0-9]*)$/.test(P)&&(Pe="aria-label"),/^pointer([0-9]*)-shape$/.test(P)&&(Pe="pointer-shape"),!Pe)return;let at=P.replace(/\D/g,"").trim(),Ct=at===""||at==="0"||at==="1"?0:st(at,0)-1;switch(Pe){case"value":{M.setValue(ke,Ct);break}case"pointer-disabled":{let Ie=M?.pointers[Ct];if(!Ie)return;Ie.disabled=$t(ke);break}case"aria-label":{M.setAriaLabel(Ct,ke);break}case"pointer-shape":{M.styles&&M.styles.setPointerShape(Ct,ke);break}}},vi=class extends HTMLElement{constructor(){super(),r(this,"slider"),r(this,"_externalCSSList",[]),r(this,"_observer",null),this.attachShadow({mode:"open"})}set step(M){this.slider&&this.slider.setStep(M)}get step(){var M;return(M=this.slider)==null?void 0:M.step}set disabled(M){this.slider&&(this.slider.disabled=M)}get disabled(){var M,P;return(P=(M=this.slider)==null?void 0:M.disabled)!=null?P:!1}set data(M){var P;(P=this.slider)==null||P.setData(M)}get data(){var M;return(M=this.slider)==null?void 0:M.data}set min(M){var P;(P=this.slider)==null||P.setMin(M)}get min(){var M;return(M=this.slider)==null?void 0:M.min}set max(M){var P;(P=this.slider)==null||P.setMax(M)}get max(){var M;return(M=this.slider)==null?void 0:M.max}set round(M){!this.slider||(this.slider.round=M)}get round(){var M,P;return(P=(M=this.slider)==null?void 0:M.round)!=null?P:Ui}set type(M){!this.slider||(this.slider.type=M??Nt)}get type(){var M;return((M=this.slider)==null?void 0:M.type)||Nt}set pointersOverlap(M){!this.slider||(this.slider.pointersOverlap=M)}get pointersOverlap(){var M,P;return(P=(M=this.slider)==null?void 0:M.pointersOverlap)!=null?P:!1}set pointersMinDistance(M){!this.slider||(this.slider.pointersMinDistance=M)}get pointersMinDistance(){var M,P;return(P=(M=this.slider)==null?void 0:M.pointersMinDistance)!=null?P:0}set pointersMaxDistance(M){!this.slider||(this.slider.pointersMaxDistance=M)}get pointersMaxDistance(){var M,P;return(P=(M=this.slider)==null?void 0:M.pointersMaxDistance)!=null?P:1/0}set theme(M){!this.slider||!this.slider.styles||(this.slider.styles.theme=M)}get theme(){var M,P,ke;return(ke=(P=(M=this.slider)==null?void 0:M.styles)==null?void 0:P.theme)!=null?ke:null}set rtl(M){!this.slider||(this.slider.rightToLeft=M)}get rtl(){var M,P;return(P=(M=this.slider)==null?void 0:M.rightToLeft)!=null?P:!1}set btt(M){!this.slider||(this.slider.bottomToTop=M)}get btt(){var M,P;return(P=(M=this.slider)==null?void 0:M.bottomToTop)!=null?P:!1}set keyboardDisabled(M){!this.slider||(this.slider.keyboardDisabled=M)}get keyboardDisabled(){var M,P;return(P=(M=this.slider)==null?void 0:M.keyboardDisabled)!=null?P:!1}set mousewheelDisabled(M){!this.slider||(this.slider.mousewheelDisabled=M)}get mousewheelDisabled(){var M,P;return(P=(M=this.slider)==null?void 0:M.mousewheelDisabled)!=null?P:!1}set animateOnClick(M){!this.slider||(this.slider.animateOnClick=M)}get animateOnClick(){var M;return(M=this.slider)==null?void 0:M.animateOnClick}get rangeDragging(){var M,P;return(P=(M=this.slider)==null?void 0:M.rangeDragging)!=null?P:!1}set rangeDragging(M){this.slider&&(this.slider.rangeDragging=$t(M))}get externalCSSList(){return this._externalCSSList}addPointer(M){var P,ke;if(!this.slider)return;let fe=(ke=(P=this.slider)==null?void 0:P.addPointer(M))!=null?ke:0;br(this,this.slider,fe,`value${fe+1}`,`ariaLabel${fe+1}`,`pointerShape${fe+1}`,`pointer${fe+1}Disabled`)}removePointer(){var M;!this.slider||(M=this.slider)==null||M.removePointer()}addCSS(M){if(!this.shadowRoot)return;let P=document.createElement("style");P.textContent=M,this.shadowRoot.appendChild(P)}connectedCallback(){var M,P;if(!this.shadowRoot)return;this._externalCSSList=Ve(this),this.shadowRoot.innerHTML=s(d,this._externalCSSList);let ke=(M=this.shadowRoot)==null?void 0:M.querySelector(".pointer");if(!ke)return;let fe=(P=this.shadowRoot)==null?void 0:P.getElementById("range-slider");if(!fe)return;let Pe=gr(this,ke);this.slider=Wi(this,fe,Pe),Mn(this,this.slider),this._observer=new MutationObserver(at=>{at.forEach(Ct=>{var Ie;if(!this.slider||Ct.type!=="attributes")return;let xe=Ct.attributeName;!xe||hr(this.slider,xe,(Ie=this.getAttribute(xe))!=null?Ie:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},dn=vi;window.tcRangeSlider=dn,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",dn),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends dn{})})();function jy(o,e){Object.keys(e).forEach(i=>{o.setAttribute(i,e[i])})}class Oy extends dr{register(){super.register()}unregister(){super.unregister()}build(){const e=this.schema.properties,i=this.options,r=this.schema.description,s=this.theme,d=this.defaults.startVals[this.key];i.compact||(this.header=this.label=s.getFormInputLabel(this.getTitle(),this.isRequired())),r&&(this.description=s.getFormInputDescription(this.translateProperty(r))),i.infoText&&(this.infoButton=s.getInfoButton(this.translateProperty(i.infoText)));const u=document.createElement("tc-range-slider"),p=Object.keys(e).find(w=>w.includes("min")),m=Object.keys(e).find(w=>w.includes("max")),b={min:e[p].minimum,max:e[m].maximum,value1:d?.[p]||e[p].default,value2:d?.[m]||e[m].default,"slider-bg-fill":"#004170","generate-labels":"true","slider-width":"100%","range-dragging":"false"};jy(u,b),this.input=u,this.input.id=this.formname,this.control=s.getFormControl(this.label,this.input,this.description,this.infoButton),(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),this.input.disabled=!0),this.input.addEventListener("change",w=>{w.preventDefault(),w.stopPropagation(),this.value={[p]:w.detail.value1,[m]:w.detail.value2},this.onChange(!0)}),this.container.appendChild(this.control)}destroy(){this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),super.destroy()}}const By=[{type:"object",format:"minmax",func:Oy}],Ny=o=>{By.map(({type:e,format:i,func:r})=>{ni.defaults.startVals=o,ni.defaults.editors[i]=r,ni.defaults.resolvers.unshift(s=>{if(s.type===e&&s.format===i)return i})})};window.SimpleMDE=$y;const Ry=o=>{Ny(o.value||{});const e=o.renderRoot.querySelector("form");let i=new ni(e,{schema:o.schema,...o.value?{startval:o.value}:{},theme:"html",ajax:!0,...o.options});return i.on("ready",()=>{if(Object.values(i.editors).some(r=>r instanceof sm)){const r=document.createElement("style");r.innerHTML=` - @import url("https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css"); - @import url("https://unpkg.com/easymde/dist/easymde.min.css"); - `,o.renderRoot.insertBefore(r,o.renderRoot.firstChild)}}),i};async function Mc(o){if(o&&typeof o!="object")try{const e=await fetch(o);if(e.ok)return await e.json();console.error("Failed to fetch schema from URL: ",e.status)}catch(e){console.error("Error fetching schema: ",e)}return o}const Hy=` - * { - font-family: Roboto, sans-serif; - } -`,Iy=` - [data-schemaid=root] > .je-header { - display: none; - } - .je-range-control { - padding: 0.5rem 0; - } - .errmsg { - font-size: x-small; - } - tc-range-slider{ - display: block; - margin: 0.5rem 0; - } - .je-header { - display: flex; - align-items: center; - border-bottom: 1px solid #0002; - padding: 0.5rem 0; - } - .je-range-control { - display: flex; - align-items: center; - } - .je-indented-panel span { - display: flex; - align-items: center; - } - .je-header span:first-of-type, form[data-theme="html"] .je-form-input-label { - font-size: 14px; - font-weight: 600; - } - form[data-theme="html"] .je-indented-panel { - border: none; - margin: 0.4rem; - } - button[class*="json-editor-btntype-"] span { - display: none; - } - button[class*="json-editor-btntype-"]::before { - height: 24px; - width: 24px; - } - button[class*="json-editor-btntype-"] { - text-indent: 0px; - margin: 0px; - display: flex; - } - .json-editor-btntype-toggle::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230009' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E"); - } - .json-editor-btn-moveup::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23204270' d='M3 21V17H10.5C12.43 17 14 15.43 14 13.5V11H10L16 4L22 11H18V13.5C18 17.64 14.64 21 10.5 21H3Z' /%3E%3C/svg%3E"); - } - .json-editor-btn-movedown::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23204270' d='M21 3V7H13.5C11.57 7 10 8.57 10 10.5V13H14L8 20L2 13H6V10.5C6 6.36 9.36 3 13.5 3H21Z' /%3E%3C/svg%3E"); - } - .json-editor-btn-moveup, - .json-editor-btn-movedown, - .json-editor-btn-moveup::before, - .json-editor-btn-movedown::before { - width: 18px !important; - height: 18px !important; - } - .json-editor-btntype-add::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23204270' d='M20 14H14V20H10V14H4V10H10V4H14V10H20V14Z' /%3E%3C/svg%3E"); - } - .json-editor-btntype-delete::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23204270' d='M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z' /%3E%3C/svg%3E"); - } - .json-editor-btntype-add::before, - .json-editor-btntype-delete::before { - width: 16px !important; - height: 16px !important; - background: #00417044; - padding: 4px; - border-radius: 100px; - } - .json-editor-btntype-add, - .json-editor-btntype-delete { - opacity: 0.8; - margin: 0px 0.5rem !important; - } - .json-editor-btntype-add:hover, - .json-editor-btntype-delete:hover { - opacity: 1; - } - button[class*="json-editor-btntype-"]:active { - --primary-color: transparent; - } - .je-indented-panel .row { - margin-top: 10px; - } - .EasyMDEContainer span { - display: unset; - } - .editor-toolbar button { - box-shadow: none; - color: #2c3e50 !important; - } - .editor-toolbar button:hover:not([disabled]):not(.icon), - .editor-toolbar button:hover:not([disabled]):not(.icon) { - box-shadow: none; - background: #fcfcfc; - border-color: #95a5a6; - } - .editor-toolbar button i { - font-size: 17px; - } - .cm-header-1 { - font-size: 200% !important; - } - .cm-header-1 { - font-size: 200% !important; - line-height: 200% !important; - } - .cm-header-2 { - font-size: 160% !important; - line-height: 160% !important; - } - .cm-header-3 { - font-size: 125% !important; - line-height: 125% !important; - } - .cm-header-4 { - font-size: 110% !important; - line-height: 110% !important; - } - .cm-comment { - background: rgba(0, 0, 0, 0.05) !important; - border-radius: 2px !important; - } -`;var gl={exports:{}};gl.exports;(function(o,e){var i=200,r="__lodash_hash_undefined__",s=1,d=2,u=9007199254740991,p="[object Arguments]",m="[object Array]",b="[object AsyncFunction]",w="[object Boolean]",v="[object Date]",j="[object Error]",D="[object Function]",B="[object GeneratorFunction]",U="[object Map]",q="[object Number]",me="[object Null]",$e="[object Object]",Fe="[object Promise]",ie="[object Proxy]",J="[object RegExp]",re="[object Set]",_e="[object String]",ye="[object Symbol]",ue="[object Undefined]",de="[object WeakMap]",Ce="[object ArrayBuffer]",je="[object DataView]",Ze="[object Float32Array]",Je="[object Float64Array]",Ke="[object Int8Array]",ot="[object Int16Array]",oe="[object Int32Array]",Oe="[object Uint8Array]",le="[object Uint8ClampedArray]",Ee="[object Uint16Array]",Ae="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,C=/^\[object .+?Constructor\]$/,Qe=/^(?:0|[1-9]\d*)$/,Ne={};Ne[Ze]=Ne[Je]=Ne[Ke]=Ne[ot]=Ne[oe]=Ne[Oe]=Ne[le]=Ne[Ee]=Ne[Ae]=!0,Ne[p]=Ne[m]=Ne[Ce]=Ne[w]=Ne[je]=Ne[v]=Ne[j]=Ne[D]=Ne[U]=Ne[q]=Ne[$e]=Ne[J]=Ne[re]=Ne[_e]=Ne[de]=!1;var ht=typeof za=="object"&&za&&za.Object===Object&&za,Nt=typeof self=="object"&&self&&self.Object===Object&&self,Mt=ht||Nt||Function("return this")(),ze=e&&!e.nodeType&&e,st=ze&&!0&&o&&!o.nodeType&&o,At=st&&st.exports===ze,Ft=At&&ht.process,$t=function(){try{return Ft&&Ft.binding&&Ft.binding("util")}catch{}}(),It=$t&&$t.isTypedArray;function Ti(T,W){for(var De=-1,Ge=T==null?0:T.length,Vt=0,xt=[];++De-1}function fe(T,W){var De=this.__data__,Ge=ai(De,T);return Ge<0?(++this.size,De.push([T,W])):De[Ge][1]=W,this}vi.prototype.clear=dn,vi.prototype.delete=M,vi.prototype.get=P,vi.prototype.has=ke,vi.prototype.set=fe;function Pe(T){var W=-1,De=T==null?0:T.length;for(this.clear();++Wwi))return!1;var ii=xt.get(T);if(ii&&xt.get(W))return ii==W;var ji=-1,Zi=!0,Ut=De&d?new kt:void 0;for(xt.set(T,W),xt.set(W,T);++ji-1&&T%1==0&&T-1&&T%1==0&&T<=u}function is(T){var W=typeof T;return T!=null&&(W=="object"||W=="function")}function Jr(T){return T!=null&&typeof T=="object"}var qi=It?K(It):Jn;function On(T){return Yr(T)?xi(T):gn(T)}function rs(){return[]}function vr(){return!1}o.exports=jn})(gl,gl.exports);var Py=gl.exports;const $c=gm(Py),zy=`:root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}input[type="range"] { -webkit-appearance: none; width: 90%; margin-left: 5%; height: 6px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0;}input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}.range-slider { margin: 60px 0 0 0;}.range-slider { width: 100%;}input[type="range"]::-webkit-slider-thumb:hover { background: #00416f;}input[type="range"]:active::-webkit-slider-thumb { background: #00416f;}input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}input[type="range"]::-moz-range-thumb:hover { background: #00416f;}input[type="range"]:active::-moz-range-thumb { background: #00416f;}input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416f00;}.range-slider__value { display: inline-block; position: relative; width: 60px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px;}.range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "";}input::-moz-focus-inner,input::-moz-focus-outer { border: 0;}`;var Fr,bl,jc,vm;class ym extends Ko{constructor(){super(),gc(this,bl),gc(this,Fr,null),this.schema,this.value,this.options={show_opt_in:!1,disable_collapse:!0,disable_edit_json:!0,disable_properties:!0,disable_array_delete_all_rows:!0,disable_array_delete_last_row:!0,array_controls_top:!0},this.noShadow=!1,this.unstyled=!1}get editor(){return cn(this,Fr)}get schema(){return this._schema}set schema(e){cn(this,Fr)&&!$c(this._schema,e)&&cn(this,Fr).destroy(),this._schema=e}get value(){return this._value}set value(e){cn(this,Fr)&&cn(this,Fr).ready&&!$c(this._value,e)&&cn(this,Fr).setValue(e),this._value=e}async updated(e){this._value=await Mc(this.value),e.has("schema")&&(this._schema=await Mc(this.schema),(!cn(this,Fr)||cn(this,Fr).destroyed)&&(I0(this,Fr,await Ry(this)),zp(this,bl,vm).call(this)))}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return eb` - -
        - `}}Fr=new WeakMap,bl=new WeakSet,jc=function(){this.dispatchEvent(new CustomEvent("change",{detail:this.value,bubbles:!0,composed:!0}))},vm=function(){["ready","change"].map(o=>{cn(this,Fr).on(o,()=>{this._value=cn(this,Fr).getValue(),zp(this,bl,jc).call(this)})})},H0(ym,"properties",{schema:{attribute:!1,type:Object},value:{attribute:!1,type:Object},options:{attribute:!1,type:Object},noShadow:{attribute:"no-shadow",type:Boolean},unstyled:{type:Boolean}});customElements.define("eox-jsonform",ym);const Vy={class:"d-flex flex-column fill-height overflow-auto pa-4"},Uy=["for"],Jy={__name:"EodashLayerControl",setup(o){const e=Jm(null);return(i,r)=>(Ru(),Hu("span",Vy,[Iu(Pu)?(Ru(),Hu("eox-layercontrol",{key:0,for:Iu(Pu),ref_key:"eoxLayercontrol",ref:e},null,8,Uy)):Qm("v-if",!0)]))}};export{Jy as default}; diff --git a/pr-preview/pr-17/assets/EodashMap-BDE_gmHB.js b/pr-preview/pr-17/assets/EodashMap-BDE_gmHB.js deleted file mode 100644 index f0f2c55..0000000 --- a/pr-preview/pr-17/assets/EodashMap-BDE_gmHB.js +++ /dev/null @@ -1,845 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/raw-CMGvRjfu-Blplg0lv.js","assets/basedecoder-DHcBySSe-gdlnpIMU.js","assets/lzw-LAGDNbSC-uvu3SnH0.js","assets/jpeg-BAgeD1d3-DG6CHa_P.js","assets/deflate-BXt-9JA_-CoW5SAcn.js","assets/pako.esm-CB1uQYY0-DQSVoCko.js","assets/packbits-BlDR4Kj5-myqVpMVP.js","assets/lerc-B4lXefGh-AVOSkc8n.js","assets/_commonjsHelpers-Cpj98o6Y.js","assets/helpers-CkhK5_6d.js","assets/index-Dvu417lt.js","assets/index-C2upG_DK.css","assets/webimage-BM_pbLN3-BOB8pnha.js"])))=>i.map(i=>d[i]); -import{c as _O}from"./_commonjsHelpers-Cpj98o6Y.js";import{t as Ob,U as yO,b as Bw,a as Xf,s as xO,g as vO,c as wO,f as EO,e as SO}from"./helpers-CkhK5_6d.js";import{aL as Fb,aJ as T0,av as da,r as R0,aM as Ww,aN as Ma,aC as MO,Z as bO,aK as CO,aB as TO,w as Xw,aO as RO,$ as IO,a6 as PO,a9 as Vw,aI as Yw,aP as I0,aQ as AO}from"./index-Dvu417lt.js";var LO={exports:{}};(function(s,t){(function(e,i){s.exports=i()})(_O,function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function i(u,d){return u.indexOf(d)===-1?u.length:u.indexOf(d)}function n(u){var d=u.replace(/^v/,"").replace(/\+.*$/,""),g=i(d,"-"),f=d.substring(0,g).split(".");return f.push(d.substring(g+1)),f}function r(u){return isNaN(Number(u))?u:Number(u)}function o(u){if(typeof u!="string")throw new TypeError("Invalid argument expected string");if(!e.test(u))throw new Error("Invalid argument not valid semver ('"+u+"' received)")}function a(u,d){[u,d].forEach(o);for(var g=n(u),f=n(d),p=0;p_)return 1;if(_>m)return-1}var y=g[g.length-1],v=f[f.length-1];if(y&&v){var S=y.split(".").map(r),w=v.split(".").map(r);for(p=0;pw[p])return 1;if(w[p]>S[p])return-1}}else if(y||v)return y?-1:1;return 0}var l=[">",">=","=","<","<="],h={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};function c(u){if(typeof u!="string")throw new TypeError("Invalid operator type, expected string but got "+typeof u);if(l.indexOf(u)===-1)throw new TypeError("Invalid operator, expected one of "+l.join("|"))}return a.validate=function(u){return typeof u=="string"&&e.test(u)},a.compare=function(u,d,g){c(g);var f=a(u,d);return h[g].indexOf(f)>-1},a})})(LO);const ws={classification:"https://stac-extensions.github.io/classification/v1.1.0/schema.json",datacube:"https://stac-extensions.github.io/datacube/v2.1.0/schema.json",eo:"https://stac-extensions.github.io/eo/v1.0.0/schema.json",file:"https://stac-extensions.github.io/file/v1.0.0/schema.json","item-assets":"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",label:"https://stac-extensions.github.io/label/v1.0.1/schema.json",pointcloud:"https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json",processing:"https://stac-extensions.github.io/processing/v1.1.0/schema.json",projection:"https://stac-extensions.github.io/projection/v1.0.0/schema.json",raster:"https://stac-extensions.github.io/raster/v1.1.0/schema.json",sar:"https://stac-extensions.github.io/sar/v1.0.0/schema.json",sat:"https://stac-extensions.github.io/sat/v1.0.0/schema.json",scientific:"https://stac-extensions.github.io/scientific/v1.0.0/schema.json",table:"https://stac-extensions.github.io/table/v1.2.0/schema.json",timestamps:"https://stac-extensions.github.io/timestamps/v1.0.0/schema.json",version:"https://stac-extensions.github.io/version/v1.0.0/schema.json",view:"https://stac-extensions.github.io/view/v1.0.0/schema.json"},Eh={itemAndCollection:{"cube:":ws.datacube,"eo:":ws.eo,"file:":ws.file,"label:":ws.label,"pc:":ws.pointcloud,"processing:":ws.processing,"proj:":ws.projection,"raster:":ws.raster,"sar:":ws.sar,"sat:":ws.sat,"sci:":ws.scientific,"view:":ws.view,version:ws.version,deprecated:ws.version,published:ws.timestamps,expires:ws.timestamps,unpublished:ws.timestamps},catalog:{},collection:{item_assets:ws["item-assets"]},item:{}};Eh.collection=Object.assign(Eh.collection,Eh.itemAndCollection);Eh.item=Object.assign(Eh.item,Eh.itemAndCollection);function Wd(s){let t=s.length>=6,e=s[0],i=s[t?3:2],n=s[1],r=s[t?4:3],o={west:e,east:i,south:n,north:r};return t&&(o.base=s[2],o.height=s[5]),o}function P0(s){let{west:t,east:e,south:i,north:n}=Wd(s);return[[[t,n],[t,i],[e,i],[e,n],[t,n]]]}function OO(s){if(!Ur(s))return null;let t=Wd(s),e=[];if(Nb(s)){let i=(t.west+360+t.east)/2;i>180&&(i-=360),e.push(i)}else e.push((t.west+t.east)/2);return e.push((t.south+t.north)/2),typeof t.base<"u"&&e.push((t.base+t.height)/2),e}function FO(s){if(Ur(s)?s=[s]:Array.isArray(s)&&(s=s.filter(i=>Ur(i))),!Array.isArray(s)||s.length===0)return null;let t=s.reduce((i,n)=>{if(Nb(n)){let{west:r,east:o,south:a,north:l}=Wd(n);i.push(P0([-180,a,o,l])),i.push(P0([r,a,180,l]))}else i.push(P0(n));return i},[]),e=null;if(t.length===1?e={type:"Polygon",coordinates:t[0]}:t.length>1&&(e={type:"MultiPolygon",coordinates:t}),e)return{type:"Feature",geometry:e,properties:{}}}function Ur(s){if(!Array.isArray(s)||![4,6].includes(s.length)||s.some(r=>typeof r!="number"))return!1;let{west:t,east:e,south:i,north:n}=Wd(s);return i<=n&&t>=-180&&t<=180&&i>=-90&&e<=180&&e>=-180&&n<=90}function Nb(s){if(!Ur(s))return!1;let{west:t,east:e}=Wd(s);return t>e}function bi(s){return typeof s=="string"&&s.length>0}function yi(s){return typeof s=="object"&&s===Object(s)&&!Array.isArray(s)}function Db(...s){if(s=s.filter(t=>Array.isArray(t)),s.length>1){let t=Math.max(...s.map(i=>i.length)),e=[];for(let i=0;in[i])));return e}else if(s.length===1)return s[0];return[]}function NO(s){switch(s){case"int8":return-128;case"int16":return-32768;case"int32":return-2147483648}return s.startsWith("u")?0:null}function DO(s){switch(s){case"int8":return 127;case"uint8":return 255;case"int16":return 32767;case"uint16":return 65535;case"int32":return 2147483647;case"uint32":return 4294967295}return null}class om{constructor(t,e={},i=[]){if(!yi(t))throw new Error("Given data is not an object");if(t instanceof om){for(let n of i)this[n]=t[n];t=t.toJSON()}this._keyMap=e,this._privateKeys=["_keyMap","_privateKeys"].concat(i);for(let n in t)typeof this[n]>"u"&&(n in e?this[n]=e[n](t[n],this):this[n]=t[n])}isItem(){return this.type==="Feature"}isCatalog(){return this.type==="Catalog"}isCatalogLike(){return this.isCatalog()||this.isCollection()}isCollection(){return this.type==="Collection"}isItemCollection(){return this.type==="FeatureCollection"}isCollectionCollection(){return!1}isAsset(){return!1}isLink(){return!1}getObjectType(){}getAbsoluteUrl(){return null}getMetadata(t){return this[t]}toGeoJSON(){return null}getBoundingBox(){return null}getCenter(){return OO(this.getBoundingBox())}getBoundingBoxes(){return[]}toJSON(){let t={};return Object.keys(this).forEach(e=>{if(typeof this[e]=="function"||this._privateKeys.includes(e))return;let i=this[e];if(e in this._keyMap){let n=Array.isArray(i)?[]:{};for(let r in i)n[r]=i[r].toJSON();i=n}t[e]=i}),t}}const kO="application/geo+json",$O=["application/json",kO,"text/json"],qw=["image/gif","image/jpeg","image/apng","image/png","image/webp"],kb=["image/tiff; application=geotiff; profile=cloud-optimized","image/vnd.stac.geotiff; cloud-optimized=true"],$b=["application/geotiff","image/tiff; application=geotiff","image/vnd.stac.geotiff"].concat(kb);function Sy(s,t,e=!1){return Array.isArray(t)||(t=[t]),e&&typeof s>"u"?!0:typeof s!="string"?!1:(t=t.map(i=>i.toLowerCase()),t.includes(s.toLowerCase()))}function GO(s,t=!1){return Sy(s,$O,t)}class Gb extends om{constructor(t,e=null,i={},n=[]){super(t,i,["_context"].concat(n)),this._context||(this._context=e)}getAbsoluteUrl(t=!0){return this._context?Ob(this.href,this._context.getAbsoluteUrl(),t):this.href.includes("://")?this.href:null}getContext(){return this._context}canBrowserDisplayImage(t=!1){if(typeof this.href!="string")return!1;if(!t&&typeof this.type>"u")return!1;let e=new yO(this.href),i=e.protocol().toLowerCase(),n=e.suffix().toLowerCase();return bi(i)&&!Bw.includes(i)?!1:bi(this.type)&&qw.includes(this.type.toLowerCase())?!0:!!(typeof this.type>"u"&&bi(n)&&(n==="jpg"||qw.includes("image/"+n)))}isType(t){return bi(this.type)&&Sy(this.type,t)}isGeoTIFF(){return this.isType($b)}isCOG(){return this.isType(kb)}isHTTP(){let e=this.getAbsoluteUrl(!1).protocol().toLowerCase();return bi(e)&&Bw.includes(e)}}class My extends Gb{constructor(t,e=null){super(t,e)}isLink(){return!0}getObjectType(){return"Link"}static fromLinks(t,e=null){return Array.isArray(t)?t.map(i=>yi(i)?new My(i,e):i):[]}}class jO extends om{constructor(t,e=null,i={},n=[]){if(super(t,Object.assign({links:My.fromLinks},i),["_url"].concat(n)),!this._url&&(this._url=e,!this._url)){let r=this.getSelfLink();r&&(this._url=r.href)}}getAbsoluteUrl(){return this._url}setAbsoluteUrl(t){this._url=t}getStacLinksWithRel(t,e=!0){return this.getLinksWithRels([t]).filter(i=>GO(i.type,e))}getStacLinkWithRel(t,e=!0){const i=this.getStacLinksWithRel(t,e);return i.length>0?i[0]:null}getLinks(){return Array.isArray(this.links)?this.links.filter(t=>yi(t)&&bi(t.href)):[]}getLinkWithRel(t){return this.getLinks().find(e=>e.rel===t)||null}getLinksWithRels(t){return this.getLinks().filter(e=>t.includes(e.rel))}getLinksWithOtherRels(t){return this.getLinks().filter(e=>!t.includes(e.rel))}getSelfLink(){return this.getStacLinkWithRel("self")}getRootLink(){return this.getStacLinkWithRel("root")}getParentLink(){return this.getStacLinkWithRel("parent")}}class id extends Gb{constructor(t,e=null,i=null){super(t,i,{},["_key"]),this._key||(this._key=e)}getObjectType(){return"Asset"}isAsset(){return!0}getAbsoluteUrl(t=!0){return this.isDefinition()?null:super.getAbsoluteUrl(t)}getKey(){return this._key}getMetadata(t){if(typeof this[t]<"u")return this[t];if(this._context)return this._context.getMetadata(t)}getBands(){return Db(this["eo:bands"],this["raster:bands"])}findVisualBands(){let t={red:null,green:null,blue:null},e=this.getBands();for(let n in e){let r=parseInt(n,10),o=e[r];yi(o)&&bi(o.common_name)&&o.common_name in t&&(t[o.common_name]={index:r,band:o})}return Object.values(t).every(n=>n!==null)?t:null}findBand(t,e="name",i=null){Array.isArray(t)||(t=[t]),yi(i)||(i=this.getBands());let n=i.findIndex(r=>yi(r)&&t.includes(r[e]));return n>=0?{index:n,band:i[n]}:null}getBand(t){return yi(t)||t===null?t:this.getBands()[t]||null}getMinMaxValues(t=null){t=this.getBand(t);const e={minimum:null,maximum:null},i=a=>a.minimum!==null&&a.maximum!==null;if(t&&(yi(t.statistics)&&(typeof t.statistics.minimum=="number"&&(e.minimum=t.statistics.minimum),typeof t.statistics.maximum=="number"&&(e.maximum=t.statistics.maximum),i(e))||yi(t.histogram)&&(typeof t.histogram.min=="number"&&(e.minimum=t.histogram.min),typeof t.histogram.max=="number"&&(e.maximum=t.histogram.max),i(e))))return e;let n=this.getMetadata("classification:classes");if(Array.isArray(n)&&(n.reduce((a,l)=>(a.minimum=Math.min(a.minimum,l.value),a.maximum=Math.max(a.maximum,l.value),a),e),i(e)))return e;let r=this.getMetadata("file:values");if(Array.isArray(r)&&(r.reduce((a,l)=>(a.minimum=Math.min(a.minimum,...l.values),a.maximum=Math.max(a.maximum,...l.values),a),e),i(e)))return e;let o=yi(t)&&t.data_type||this.getMetadata("file:data_type");return o&&(e.minimum=NO(o),e.maximum=DO(o)),e}getNoDataValues(t=null){t=this.getBand(t);let e=[];if(t&&typeof t.nodata<"u")e.push(t.nodata);else{let i=this.getMetadata("file:nodata");if(typeof i<"u")e=i;else{let n=this.getMetadata("classification:classes");Array.isArray(n)&&(e=n.filter(r=>!!r.nodata).map(r=>r.value))}}return e.map(i=>i==="nan"?NaN:i==="+inf"?1/0:i==="-inf"?-1/0:i)}isDefinition(){return!bi(this.href)}isHTTP(){return this.isDefinition()?null:super.isHTTP()}hasRole(t,e=!1){return Array.isArray(t)||(t=[t]),e&&t.includes(this.getKey())?!0:Array.isArray(this.roles)&&!!this.roles.find(i=>t.includes(i))}static fromAssets(t,e=null){let i={};if(yi(t))for(let n in t)i[n]=new id(t[n],n,e);return i}}class am extends jO{constructor(t,e=null,i={},n=[]){super(t,e,i,n)}getTemporalExtent(){return null}getTemporalExtents(){return[]}getIcons(t=!0){return this.getLinksWithRels(["icon"]).filter(e=>e.canBrowserDisplayImage(t))}getThumbnails(t=!0,e=null){let i=this.getAssetsWithRoles(["thumbnail","overview"],!0);if(i.length===0&&(i=this.getLinksWithRels(["preview"])),t&&(i=i.filter(n=>n.canBrowserDisplayImage())),e&&i.length>1){let n=r=>Array.isArray(r.roles)&&r.roles.includes(e)||r.getKey()===e;i=i.filter(n).concat(i.filter(r=>!n(r)))}return i}getDefaultGeoTIFF(t=!0,e=!1){return this.rankGeoTIFFs(t,e)[0]?.asset}rankGeoTIFFs(t=!0,e=!1,i=null,n=null){yi(i)||(i={data:1,visual:2,thumbnail:2,overview:3});let r=[],o=this.getAssetsByTypes($b);t&&(o=o.filter(l=>l.isHTTP()&&(!e||l.isCOG())));let a=Object.entries(i);for(let l of o){let h=0;if(a.length>0){let c=a.filter(([u])=>l.hasRole(u,!0)).map(([,u])=>u);c.length>0&&(h+=Math.max(...c))}!e&&l.isCOG()&&(h+=2),l.findVisualBands()&&(h+=1),typeof n=="function"&&(h+=n(l)),r.push({asset:l,score:h})}return r.sort((l,h)=>h.score-l.score),r}findVisualAssets(){let t={red:null,green:null,blue:null},e=Object.keys(t),i=this.getAssets();for(let r of i){let o=r.getBands();if(o.length!==1)continue;let a=r.findBand(e,"common_name",o);a&&(t[a.band.common_name]=r)}return Object.values(t).every(r=>r!==null)?t:null}getAsset(t){return yi(this.assets)&&this.assets[t]||null}getAssets(){return yi(this.assets)?Object.values(this.assets):[]}getAssetsWithRoles(t,e=!1){return this.getAssets().filter(i=>i.hasRole(t,e))}getAssetWithRole(t,e=!1){return this.getAssetsWithRoles([t],e)[0]||null}getAssetsByTypes(t){return this.getAssets().filter(e=>Sy(e.type,t))}equals(t){return this===t?!0:!(t instanceof am)||this.getObjectType()!==t.getObjectType()?!1:!!(this.id&&this.id===t.id)}}class zO extends am{constructor(t,e=null,i={},n=[]){super(t,e,i,n)}getObjectType(){return this.type}getSearchLink(t=null){let e=this.getStacLinksWithRel("search");return t?e[0]||null:e.find(i=>i.method===t||!t&&!i.method)||null}getApiCollectionsLink(){return this.getStacLinkWithRel("data")}getApiItemsLink(){return this.getStacLinkWithRel("items")}getChildLinks(){return this.getStacLinksWithRel("child")}getItemLinks(){return this.getStacLinksWithRel("item")}}function cu(s){if(bi(s)&&s.length>=10)try{let e=s.match(/^(-?\d{1,})-(\d\d)-(\d\d)[T ](\d\d):(\d\d):(\d\d)(?:\.(\d*))?(?:Z|[+-]00:00)?$/i).slice(1).map(i=>parseInt(i,10));return new Date(Date.UTC(e[0],e[1]-1,e[2],e[3],e[4],e[5],e[6]||0))}catch{return null}return null}function UO(s,t){return new Date(s.valueOf()+(t-s)/2)}class A0 extends zO{constructor(t,e=null){const i={assets:id.fromAssets,item_assets:id.fromAssets};super(t,e,i)}toGeoJSON(){let t=FO(this.getBoundingBoxes());return t&&(t.id=this.id),t}getBoundingBox(){let t=this.getRawBoundingBoxes();return t.length>0&&Ur(t[0])?t[0]:null}getBoundingBoxes(){let t=this.getRawBoundingBoxes();return t.length===1&&Ur(t[0])?t:t.length>1?t.filter((e,i)=>i>0&&Ur(e)):[]}getRawBoundingBoxes(){let t=this.extent?.spatial?.bbox;return Array.isArray(t)&&t.length>0?t:[]}getTemporalExtent(){return this.getTemporalExtents()[0]||null}getTemporalExtents(){let t=this.extent?.temporal?.interval;return Array.isArray(t)&&t.length>0?t.filter(e=>Array.isArray(e)&&(bi(e[0])||bi(e[1]))).map(e=>e.map(i=>cu(i))):[]}getSummary(t){return this.summaries[t]}getBands(){let t=this.getSummary("eo:bands"),e=this.getSummary("raster:bands"),i=[t,e].filter(n=>Array.isArray(n));return i.length>=2?Db(...i):i.length===1?i[0]:[]}}class BO extends am{constructor(t,e=null){super(t,e,{assets:id.fromAssets})}getObjectType(){return"Item"}toGeoJSON(){return this.toJSON()}getBoundingBox(){return Ur(this.bbox)?this.bbox:null}getBoundingBoxes(){return Ur(this.bbox)?[this.bbox]:[]}getDateTime(){let t=cu(this.properties.datetime);if(!t){let e=cu(this.properties.start_datetime),i=cu(this.properties.end_datetime);return e&&i?UO(e,i):e||i}return t}getTemporalExtent(){return this.getTemporalExtents()[0]||null}getTemporalExtents(){let t=[];return bi(this.properties.start_datetime)||bi(this.properties.end_datetime)?t=[[this.properties.start_datetime||null,this.properties.end_datetime||null]]:bi(this.properties.datetime)&&(t=[[this.properties.datetime,this.properties.datetime]]),t.map(e=>e.map(i=>cu(i)))}getMetadata(t){return this.properties[t]}getBands(){let t=this.getMetadata("eo:bands");return Array.isArray(t)?t:[]}getCollectionLink(){return this.getStacLinkWithRel("collection")}}async function WO(s,t,e,i,n){let r=[],o=[];for(const a in e)if(await Fb(e[a]?.["proj:epsg"]),e[a]?.type==="application/geo+json"){const l={type:"Vector",source:{type:"Vector",url:e[a].href,format:"GeoJSON"},properties:{id:s,title:t,...n&&{layerConfig:{...n,style:i}}},...!i?.variables&&{style:i}};Xf(l.properties,e[a]?.roles??[]),r.push(l)}else e[a]?.type==="image/tiff"&&o.push({url:e[a].href});return o.length&&r.push({type:"WebGLTile",source:{type:"GeoTIFF",normalize:!i,sources:o},properties:{id:s,title:t,layerConfig:n},style:i}),r}const XO=(s,t,e)=>{const i=[],n=e.links.filter(o=>o.rel==="wms"),r=e.links.filter(o=>o.rel==="xyz");return n.length&&n.forEach(o=>{let a={type:"Tile",properties:{id:s||o.id,title:t||o.title||e.id},source:{type:"TileWMS",url:o.href,params:{LAYERS:o["wms:layers"],TILED:!0}}};Xf(a.properties,o.roles),"wms:dimensions"in o&&Object.assign(a.source.params,o["wms:dimensions"]),i.push(a)}),r.length&&r.forEach(o=>{let a={type:"Tile",properties:{id:o.id||e.id,title:t||o.title||e.id,roles:o.roles},source:{type:"XYZ",url:o.href}};Xf(a.properties,o.roles),i.push(a)}),i};class Zw{#e="";#t;selectedItem;constructor(t){this.#e=t}createLayersJson=async t=>{let e,i,n=[];this.#t||(i=await T0.get(this.#e).then(a=>a.data),this.#t=new A0(i)),xO(this.#t);const r=i?.endpointtype==="GeoDB";t instanceof Date?e=this.getItem(t):e=t;const o=e?Ob(e.href,this.#e):this.#e;if(i=await T0.get(o).then(a=>a.data),e){const a=new BO(i);this.selectedItem=a;const l=this.#t.title||this.#t.id;return n.unshift(...await this.buildJsonArray(a,o,l,r)),n}else return this.#t=new A0(i),this.selectedItem=this.getItem(),this.selectedItem?n=await this.createLayersJson(this.selectedItem):console.warn("[eodash] the selected collection does not include any items"),[]};async buildJsonArray(t,e,i,n){await Fb(t?.["proj:epsg"]);const r=[];if(n){const c=vO(this.#t?.links);return[{type:"Vector",properties:{id:t.id,title:this.#t?.title||t.id},source:{type:"Vector",url:"data:,"+encodeURIComponent(JSON.stringify(c)),format:"GeoJSON"},style:{"circle-radius":5,"circle-fill-color":"#00417077","circle-stroke-color":"#004170","fill-color":"#00417077","stroke-color":"#004170"}}]}const{layerConfig:o,style:a}=wO(await EO(t,e)),l=Object.keys(t?.assets??{}).reduce((c,u)=>(t.assets[u].roles?.includes("data")&&(c[u]=t.assets[u]),c),{});if(t.links.some(c=>["wms","xyz"].includes(c.rel))||Object.keys(l).length)r.push(...XO(t.id,i,t),...await WO(`${t.collection}_${t.id}_assets`,i||this.#t?.title||t.id,l,a,o));else{const c={type:"STAC",displayWebMapLink:!0,displayFootprint:!1,data:t,properties:{id:t.id,title:i||t.id,layerConfig:o},style:a};Xf(c.properties,t?.roles),r.push(c)}return r}getItems(){return this.#t?.links.filter(t=>t.rel==="item").sort((t,e)=>t.datetimet.rel==="item").sort((t,e)=>t.datetimenew Date(t.datetime))}async getExtent(){if(!this.#t){const t=await T0.get(this.#e).then(e=>e.data);this.#t=new A0(t)}return this.#t?.extent}getItem(t){return t?this.getItems()?.sort((e,i)=>{const n=Math.abs(new Date(e.datetime).getTime()-t.getTime()),r=Math.abs(new Date(i.datetime).getTime()-t.getTime());return n-r})[0]:this.getItems()?.at(-1)}}const VO={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class jb{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=t.extent!==void 0?t.extent:null,this.worldExtent_=t.worldExtent!==void 0?t.worldExtent:null,this.axisOrientation_=t.axisOrientation!==void 0?t.axisOrientation:"enu",this.global_=t.global!==void 0?t.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||VO[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!!(t&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!!(this.global_&&t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const Xd=6378137,ih=Math.PI*Xd,YO=[-ih,-ih,ih,ih],qO=[-180,-85,180,85],Ug=Xd*Math.log(Math.tan(Math.PI/2));class Tl extends jb{constructor(t){super({code:t,units:"m",extent:YO,global:!0,worldExtent:qO,getPointResolution:function(e,i){return e/Math.cosh(i[1]/Xd)}})}}const Hw=[new Tl("EPSG:3857"),new Tl("EPSG:102100"),new Tl("EPSG:102113"),new Tl("EPSG:900913"),new Tl("http://www.opengis.net/def/crs/EPSG/0/3857"),new Tl("http://www.opengis.net/gml/srs/epsg.xml#3857")];function ZO(s,t,e){const i=s.length;e=e>1?e:2,t===void 0&&(e>2?t=s.slice():t=new Array(i));for(let n=0;nUg?r=Ug:r<-Ug&&(r=-Ug),t[n+1]=r}return t}function HO(s,t,e){const i=s.length;e=e>1?e:2,t===void 0&&(e>2?t=s.slice():t=new Array(i));for(let n=0;nt in s?fF(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,mF=(s,t,e)=>pF(s,t+"",e);/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Pf=globalThis,by=Pf.ShadowRoot&&(Pf.ShadyCSS===void 0||Pf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bb=Symbol(),eE=new WeakMap;let _F=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Bb)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(by&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=eE.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&eE.set(e,t))}return t}toString(){return this.cssText}};const yF=s=>new _F(typeof s=="string"?s:s+"",void 0,Bb),xF=(s,t)=>{if(by)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),n=Pf.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,s.appendChild(i)}},sE=by?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return yF(e)})(s):s;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{is:vF,defineProperty:wF,getOwnPropertyDescriptor:EF,getOwnPropertyNames:SF,getOwnPropertySymbols:MF,getPrototypeOf:bF}=Object,$h=globalThis,iE=$h.trustedTypes,CF=iE?iE.emptyScript:"",nE=$h.reactiveElementPolyfillSupport,Pu=(s,t)=>s,Yf={toAttribute(s,t){switch(t){case Boolean:s=s?CF:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},Cy=(s,t)=>!vF(s,t),rE={attribute:!0,type:String,converter:Yf,reflect:!1,hasChanged:Cy};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$h.litPropertyMetadata??($h.litPropertyMetadata=new WeakMap);let Wl=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=rE){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&wF(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){const{get:n,set:r}=EF(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n?.call(this)},set(o){const a=n?.call(this);r.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??rE}static _$Ei(){if(this.hasOwnProperty(Pu("elementProperties")))return;const t=bF(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Pu("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pu("properties"))){const e=this.properties,i=[...SF(e),...MF(e)];for(const n of i)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const n of i)e.unshift(sE(n))}else t!==void 0&&e.push(sE(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return xF(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var i;const n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(r!==void 0&&n.reflect===!0){const o=(((i=n.converter)==null?void 0:i.toAttribute)!==void 0?n.converter:Yf).toAttribute(e,n.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var i;const n=this.constructor,r=n._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=n.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)==null?void 0:i.fromAttribute)!==void 0?o.converter:Yf;this._$Em=r,this[r]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??Cy)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n)o.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],o)}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(i)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var n;return(n=i.hostUpdated)==null?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};Wl.elementStyles=[],Wl.shadowRootOptions={mode:"open"},Wl[Pu("elementProperties")]=new Map,Wl[Pu("finalized")]=new Map,nE?.({ReactiveElement:Wl}),($h.reactiveElementVersions??($h.reactiveElementVersions=[])).push("2.0.4");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const qf=globalThis,Zf=qf.trustedTypes,oE=Zf?Zf.createPolicy("lit-html",{createHTML:s=>s}):void 0,Wb="$lit$",Fo=`lit$${Math.random().toFixed(9).slice(2)}$`,Xb="?"+Fo,TF=`<${Xb}>`,Ha=document,nd=()=>Ha.createComment(""),rd=s=>s===null||typeof s!="object"&&typeof s!="function",Vb=Array.isArray,RF=s=>Vb(s)||typeof s?.[Symbol.iterator]=="function",L0=`[ -\f\r]`,Xc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aE=/-->/g,lE=/>/g,Ca=RegExp(`>|${L0}(?:([^\\s"'>=/]+)(${L0}*=${L0}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),hE=/'/g,cE=/"/g,Yb=/^(?:script|style|textarea|title)$/i,IF=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),Gr=IF(1),Gh=Symbol.for("lit-noChange"),Ms=Symbol.for("lit-nothing"),uE=new WeakMap,Fa=Ha.createTreeWalker(Ha,129);function qb(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return oE!==void 0?oE.createHTML(t):t}const PF=(s,t)=>{const e=s.length-1,i=[];let n,r=t===2?"":"",o=Xc;for(let a=0;a"?(o=n??Xc,u=-1):c[1]===void 0?u=-2:(u=o.lastIndex-c[2].length,h=c[1],o=c[3]===void 0?Ca:c[3]==='"'?cE:hE):o===cE||o===hE?o=Ca:o===aE||o===lE?o=Xc:(o=Ca,n=void 0);const g=o===Ca&&s[a+1].startsWith("/>")?" ":"";r+=o===Xc?l+TF:u>=0?(i.push(h),l.slice(0,u)+Wb+l.slice(u)+Fo+g):l+Fo+(u===-2?a:g)}return[qb(s,r+(s[e]||"")+(t===2?"":"")),i]};let s1=class Zb{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[h,c]=PF(t,e);if(this.el=Zb.createElement(h,i),Fa.currentNode=this.el.content,e===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=Fa.nextNode())!==null&&l.length0){n.textContent=Zf?Zf.emptyScript:"";for(let g=0;g2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ms}_$AI(t,e=this,i,n){const r=this.strings;let o=!1;if(r===void 0)t=jh(this,t,e,0),o=!rd(t)||t!==this._$AH&&t!==Gh,o&&(this._$AH=t);else{const a=t;let l,h;for(t=r[0],l=0;l{const i=e?.renderBefore??t;let n=i._$litPart$;if(n===void 0){const r=e?.renderBefore??null;i._$litPart$=n=new Ty(t.insertBefore(nd(),r),r,void 0,e??{})}return n._$AI(s),n};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */let Mh=class extends Wl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Kb(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Gh}};var gE;Mh._$litElement$=!0,Mh.finalized=!0,(gE=globalThis.litElementHydrateSupport)==null||gE.call(globalThis,{LitElement:Mh});const fE=globalThis.litElementPolyfillSupport;fE?.({LitElement:Mh});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const DF=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const kF={attribute:!0,type:String,converter:Yf,reflect:!1,hasChanged:Cy},$F=(s=kF,t,e)=>{const{kind:i,metadata:n}=e;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),r.set(e.name,s),i==="accessor"){const{name:o}=e;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,s)},init(a){return a!==void 0&&this.P(o,void 0,s),a}}}if(i==="setter"){const{name:o}=e;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,s)}}throw Error("Unsupported decorator location: "+i)};function Er(s){return(t,e)=>typeof e=="object"?$F(s,t,e):((i,n,r)=>{const o=n.hasOwnProperty(r);return n.constructor.createProperty(r,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(n,r):void 0})(s,t,e)}/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function hm(s){return Er({...s,state:!0,attribute:!1})}let Ki=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}};function GF(s){s.stopPropagation()}const Ka={PROPERTYCHANGE:"propertychange"};let Ry=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function jF(s,t,e){let i,n;e=e||dr;let r=0,o=s.length,a=!1;for(;r>1),n=+e(s[i],t),n<0?r=i+1:(o=i,a=!n);return a?r:~r}function dr(s,t){return s>t?1:s0?n-1:n}return i-1}if(e>0){for(let n=1;n0||o===0)})}function zh(){return!0}function _c(){return!1}function Uh(){}function Jb(s){let t,e,i;return function(){const n=Array.prototype.slice.call(arguments);return(!e||this!==i||!ao(n,e))&&(i=this,e=n,t=s.apply(this,arguments)),t}}function Qb(s){function t(){let e;try{e=s()}catch(i){return Promise.reject(i)}return e instanceof Promise?e:Promise.resolve(e)}return t()}function Vd(s){for(const t in s)delete s[t]}function ea(s){let t;for(t in s)return!1;return!t}let Yd=class extends Ry{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);n.includes(e)||n.push(e)}dispatchEvent(t){const e=typeof t=="string",i=e?t:t.type,n=this.listeners_&&this.listeners_[i];if(!n)return;const r=e?new Ki(t):t;r.target||(r.target=this.eventTarget_||this);const o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});i in o||(o[i]=0,a[i]=0),++o[i];let l;for(let h=0,c=n.length;h0:!1}removeEventListener(t,e){if(!this.listeners_)return;const i=this.listeners_[t];if(!i)return;const n=i.indexOf(e);n!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=Uh,++this.pendingRemovals_[t]):(i.splice(n,1),i.length===0&&delete this.listeners_[t]))}};const _t={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 zt(s,t,e,i,n){if(n){const o=e;e=function(){s.removeEventListener(t,e),o.apply(i??this,arguments)}}else i&&i!==s&&(e=e.bind(i));const r={target:s,type:t,listener:e};return s.addEventListener(t,e),r}function od(s,t,e,i){return zt(s,t,e,i,!0)}function fe(s){s&&s.target&&(s.target.removeEventListener(s.type,s.listener),Vd(s))}let qd=class extends Yd{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(_t.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,n=new Array(i);for(let r=0;r0;)this.pop()}extend(t){for(let e=0,i=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new Bg(Ws.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let i=0,n=e.length;i=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new Bg(Ws.REMOVE,e,t)),e}setAt(t,e){const i=this.getLength();if(t>=i){this.insertAt(t,e);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new Bg(Ws.REMOVE,n,t)),this.dispatchEvent(new Bg(Ws.ADD,e,t))}updateLength_(){this.set(mE.LENGTH,this.array_.length)}assertUnique_(t,e){for(let i=0,n=this.array_.length;i1?(e=n,i=r):l>0&&(e+=o*l,i+=a*l)}return Br(s,t,e,i)}function Br(s,t,e,i){const n=e-s,r=i-t;return n*n+r*r}function VF(s){const t=s.length;for(let i=0;ir&&(r=l,n=a)}if(r===0)return null;const o=s[n];s[n]=s[i],s[i]=o;for(let a=i+1;a=0;i--){e[i]=s[i][t]/s[i][i];for(let n=i-1;n>=0;n--)s[n][t]-=s[n][i]*e[i]}return e}function _E(s){return s*180/Math.PI}function Nn(s){return s*Math.PI/180}function Wa(s,t){const e=s%t;return e*t<0?e+t:e}function zi(s,t,e){return s+e*(t-s)}function Zd(s,t){const e=Math.pow(10,t);return Math.round(s*e)/e}function yE(s,t){return Math.round(Zd(s,t))}function nh(s,t){return Math.floor(Zd(s,t))}function ko(s,t){return Math.ceil(Zd(s,t))}let tC=class extends En{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);typeof t.properties=="object"&&(delete e.properties,Object.assign(e,t.properties)),e[we.OPACITY]=t.opacity!==void 0?t.opacity:1,ie(typeof e[we.OPACITY]=="number","Layer opacity must be a number"),e[we.VISIBLE]=t.visible!==void 0?t.visible:!0,e[we.Z_INDEX]=t.zIndex,e[we.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,e[we.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,e[we.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,e[we.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=e.className!==void 0?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:t===void 0?!0:t},i=this.getZIndex();return e.opacity=Te(Math.round(this.getOpacity()*100)/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=i===void 0&&!e.managed?1/0:i,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return Pt()}getLayerStatesArray(t){return Pt()}getExtent(){return this.get(we.EXTENT)}getMaxResolution(){return this.get(we.MAX_RESOLUTION)}getMinResolution(){return this.get(we.MIN_RESOLUTION)}getMinZoom(){return this.get(we.MIN_ZOOM)}getMaxZoom(){return this.get(we.MAX_ZOOM)}getOpacity(){return this.get(we.OPACITY)}getSourceState(){return Pt()}getVisible(){return this.get(we.VISIBLE)}getZIndex(){return this.get(we.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(we.EXTENT,t)}setMaxResolution(t){this.set(we.MAX_RESOLUTION,t)}setMinResolution(t){this.set(we.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(we.MAX_ZOOM,t)}setMinZoom(t){this.set(we.MIN_ZOOM,t)}setOpacity(t){ie(typeof t=="number","Layer opacity must be a number"),this.set(we.OPACITY,t)}setVisible(t){this.set(we.VISIBLE,t)}setZIndex(t){this.set(we.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}};const an={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},ke={ANIMATING:0,INTERACTING:1},Gi={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},eC=42,Iy=256,Bh={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let um=class{constructor(s){this.code_=s.code,this.units_=s.units,this.extent_=s.extent!==void 0?s.extent:null,this.worldExtent_=s.worldExtent!==void 0?s.worldExtent:null,this.axisOrientation_=s.axisOrientation!==void 0?s.axisOrientation:"enu",this.global_=s.global!==void 0?s.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=s.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=s.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Bh[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(s){this.global_=s,this.canWrapX_=!!(s&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(s){this.defaultTileGrid_=s}setExtent(s){this.extent_=s,this.canWrapX_=!!(this.global_&&s)}setWorldExtent(s){this.worldExtent_=s}setGetPointResolution(s){this.getPointResolutionFunc_=s}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const Hd=6378137,rh=Math.PI*Hd,YF=[-rh,-rh,rh,rh],qF=[-180,-85,180,85],Wg=Hd*Math.log(Math.tan(Math.PI/2));let Rl=class extends um{constructor(t){super({code:t,units:"m",extent:YF,global:!0,worldExtent:qF,getPointResolution:function(e,i){return e/Math.cosh(i[1]/Hd)}})}};const xE=[new Rl("EPSG:3857"),new Rl("EPSG:102100"),new Rl("EPSG:102113"),new Rl("EPSG:900913"),new Rl("http://www.opengis.net/def/crs/EPSG/0/3857"),new Rl("http://www.opengis.net/gml/srs/epsg.xml#3857")];function ZF(s,t,e){const i=s.length;e=e>1?e:2,t===void 0&&(e>2?t=s.slice():t=new Array(i));for(let n=0;nWg?r=Wg:r<-Wg&&(r=-Wg),t[n+1]=r}return t}function HF(s,t,e){const i=s.length;e=e>1?e:2,t===void 0&&(e>2?t=s.slice():t=new Array(i));for(let n=0;nn&&(l=l|Es.RIGHT),ar&&(l=l|Es.ABOVE),l===Es.UNKNOWN&&(l=Es.INTERSECTING),l}function Zi(){return[1/0,1/0,-1/0,-1/0]}function Qr(s,t,e,i,n){return n?(n[0]=s,n[1]=t,n[2]=e,n[3]=i,n):[s,t,e,i]}function Kd(s){return Qr(1/0,1/0,-1/0,-1/0,s)}function Au(s,t){const e=s[0],i=s[1];return Qr(e,i,e,i,t)}function Ay(s,t,e,i,n){const r=Kd(n);return rC(r,s,t,e,i)}function sa(s,t){return s[0]==t[0]&&s[2]==t[2]&&s[1]==t[1]&&s[3]==t[3]}function nC(s,t){return t[0]s[2]&&(s[2]=t[2]),t[1]s[3]&&(s[3]=t[3]),s}function Lu(s,t){t[0]s[2]&&(s[2]=t[0]),t[1]s[3]&&(s[3]=t[1])}function rC(s,t,e,i,n){for(;et[0]?i[0]=s[0]:i[0]=t[0],s[1]>t[1]?i[1]=s[1]:i[1]=t[1],s[2]=t[0]&&s[1]<=t[3]&&s[3]>=t[1]}function xc(s){return s[2]=o&&p<=l),!i&&r&Es.RIGHT&&!(n&Es.RIGHT)&&(m=g-(d-l)*f,i=m>=a&&m<=h),!i&&r&Es.BELOW&&!(n&Es.BELOW)&&(p=d-(g-a)/f,i=p>=o&&p<=l),!i&&r&Es.LEFT&&!(n&Es.LEFT)&&(m=g-(d-o)*f,i=m>=a&&m<=h)}return i}function oC(s,t){const e=t.getExtent(),i=mr(s);if(t.canWrapX()&&(i[0]=e[2])){const n=Ht(e),r=Math.floor((i[0]-e[0])/n)*n;s[0]-=r,s[2]-=r}return s}function Oy(s,t,e){if(t.canWrapX()){const i=t.getExtent();if(!isFinite(s[0])||!isFinite(s[2]))return[[i[0],s[1],i[2],s[3]]];oC(s,t);const n=Ht(i);if(Ht(s)>n&&!e)return[[i[0],s[1],i[2],s[3]]];if(s[0]i[2])return[[s[0],s[1],i[2],s[3]],[i[0],s[1],s[2]-n,s[3]]]}return[s]}function Fy(s,t){const e=(""+s).split("."),i=(""+t).split(".");for(let n=0;no)return 1;if(o>r)return-1}return 0}function a3(s,t){return s[0]+=+t[0],s[1]+=+t[1],s}function aC(s,t){const e=s[0],i=s[1],n=t[0],r=t[1],o=n[0],a=n[1],l=r[0],h=r[1],c=l-o,u=h-a,d=c===0&&u===0?0:(c*(e-o)+u*(i-a))/(c*c+u*u||0);let g,f;return d<=0?(g=o,f=a):d>=1?(g=l,f=h):(g=o+d*c,f=a+d*u),[g,f]}function en(s,t){let e=!0;for(let i=s.length-1;i>=0;--i)if(s[i]!=t[i]){e=!1;break}return e}function Ny(s,t){const e=Math.cos(t),i=Math.sin(t),n=s[0]*e-s[1]*i,r=s[1]*e+s[0]*i;return s[0]=n,s[1]=r,s}function l3(s,t){return s[0]*=t,s[1]*=t,s}function Vh(s,t){const e=s[0]-t[0],i=s[1]-t[1];return e*e+i*i}function Hf(s,t){return Math.sqrt(Vh(s,t))}function h3(s,t){return Vh(s,aC(s,t))}function dm(s,t){if(t.canWrapX()){const e=Ht(t.getExtent()),i=lC(s,t,e);i&&(s[0]-=i*e)}return s}function lC(s,t,e){const i=t.getExtent();let n=0;return t.canWrapX()&&(s[0]i[2])&&(e=e||Ht(i),n=Math.floor((s[0]-i[0])/e)),n}const gm=63710088e-1;function r1(s,t,e){e=e||gm;const i=Nn(s[1]),n=Nn(t[1]),r=(n-i)/2,o=Nn(t[0]-s[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(n);return 2*e*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function O0(s,t){let e=0;for(let i=0,n=s.length;i=a?t[r+l]:o[l]}return e}}function g3(s,t,e,i){const n=Bt(s),r=Bt(t);Wh(n,r,EE(e)),Wh(r,n,EE(i))}function f3(s,t){return dC(),Qd(s,"EPSG:4326","EPSG:3857")}function $o(s,t){if(s===t)return!0;const e=s.getUnits()===t.getUnits();return(s.getCode()===t.getCode()||vc(s,t)===Dy)&&e}function vc(s,t){const e=s.getCode(),i=t.getCode();let n=sC(e,i);return n||(n=fm),n}function hd(s,t){const e=Bt(s),i=Bt(t);return vc(e,i)}function Qd(s,t,e){return hd(t,e)(s,void 0,s.length)}let p3=null;function m3(){return p3}function qh(s,t){return s}function Ve(s,t){return o1&&!en(s,[0,0])&&s[0]>=-180&&s[0]<=180&&s[1]>=-90&&s[1]<=90&&(o1=!1,uC("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),s}function pm(s,t){return s}function hn(s,t){return s}function SE(s,t,e){return function(i){let n,r;if(s.canWrapX()){const o=s.getExtent(),a=Ht(o);i=i.slice(0),r=lC(i,s,a),r&&(i[0]=i[0]-r*a),i[0]=Te(i[0],o[0],o[2]),i[1]=Te(i[1],o[1],o[3]),n=e(i)}else n=e(i);return r&&t.canWrapX()&&(n[0]+=r*Ht(t.getExtent())),n}}function _3(){a1(xE),a1(wE),d3(wE,xE,ZF,HF)}_3();function ME(s,t,e){return function(i,n,r,o,a){if(!i)return;if(!n&&!t)return i;const l=t?0:r[0]*n,h=t?0:r[1]*n,c=a?a[0]:0,u=a?a[1]:0;let d=s[0]+l/2+c,g=s[2]-l/2+c,f=s[1]+h/2+u,p=s[3]-h/2+u;d>g&&(d=(g+d)/2,g=d),f>p&&(f=(p+f)/2,p=f);let m=Te(i[0],d,g),_=Te(i[1],f,p);if(o&&e&&n){const y=30*n;m+=-y*Math.log(1+Math.max(0,d-i[0])/y)+y*Math.log(1+Math.max(0,i[0]-g)/y),_+=-y*Math.log(1+Math.max(0,f-i[1])/y)+y*Math.log(1+Math.max(0,i[1]-p)/y)}return[m,_]}}function y3(s){return s}function $y(s,t,e,i){const n=Ht(t)/e[0],r=as(t)/e[1];return i?Math.min(s,Math.max(n,r)):Math.min(s,Math.min(n,r))}function Gy(s,t,e){let i=Math.min(s,t);const n=50;return i*=Math.log(1+n*Math.max(0,s/t-1))/n+1,e&&(i=Math.max(i,e),i/=Math.log(1+n*Math.max(0,e/s-1))/n+1),Te(i,e/2,t*2)}function x3(s,t,e,i){return t=t!==void 0?t:!0,function(n,r,o,a){if(n!==void 0){const l=s[0],h=s[s.length-1],c=e?$y(l,e,o,i):l;if(a)return t?Gy(n,c,h):Te(n,h,c);const u=Math.min(c,n),d=Math.floor(cm(s,u,r));return s[d]>c&&dMath.round(t*RE[e])/RE[e]).join(", ")+")"}function Ho(s,t,e,i,n,r){r=r||[];let o=0;for(let a=t;a{if(!i)return this.getSimplifiedGeometry(e);const n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)})}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return Pt()}closestPointXY(t,e,i,n){return Pt()}containsXY(t,e){const i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return Pt()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&Kd(e),this.extentRevision_=this.getRevision()}return n3(this.extent_,t)}rotate(t,e){Pt()}scale(t,e,i){Pt()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return Pt()}getType(){return Pt()}applyTransform(t){Pt()}intersectsExtent(t){return Pt()}translate(t,e){Pt()}transform(t,e){const i=Bt(t),n=i.getUnits()=="tile-pixels"?function(r,o,a){const l=i.getExtent(),h=i.getWorldExtent(),c=as(h)/as(l);return _r(IE,h[0],h[3],c,-c,0,0,0),Ho(r,0,r.length,a,IE,o),hd(i,e)(r,o,a)}:hd(i,e);return this.applyTransform(n),this}};class ga extends _C{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return Ay(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return Pt()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length1)u=e;else if(d>0){for(let g=0;gn&&(n=h),r=a,o=l}return n}function Xy(s,t,e,i,n){for(let r=0,o=e.length;r0;){const u=h.pop(),d=h.pop();let g=0;const f=s[d],p=s[d+1],m=s[u],_=s[u+1];for(let y=d+i;yg&&(c=y,g=w)}g>n&&(l[(c-t)/i]=1,d+i0&&p>g)&&(f<0&&m0&&m>f)){h=u,c=d;continue}r[o++]=h,r[o++]=c,a=h,l=c,h=u,c=d}return r[o++]=h,r[o++]=c,o}function qy(s,t,e,i,n,r,o,a){for(let l=0,h=e.length;lr&&(h-a)*(r-l)-(n-a)*(c-l)>0&&o++:c<=r&&(h-a)*(r-l)-(n-a)*(c-l)<0&&o--,a=h,l=c}return o!==0}function Zy(s,t,e,i,n,r){if(e.length===0||!Na(s,t,e[0],i,n,r))return!1;for(let o=1,a=e.length;o_&&(h=(c+u)/2,Zy(s,t,e,i,h,f)&&(m=h,_=y)),c=u}return isNaN(m)&&(m=n[r]),o?(o.push(m,f,_),o):[m,f,_]}function MC(s,t,e,i,n){let r=[];for(let o=0,a=e.length;o=n[0]&&r[2]<=n[2]||r[1]>=n[1]&&r[3]<=n[3]?!0:bC(s,t,e,i,function(o,a){return o3(n,o,a)}):!1}function G3(s,t,e,i,n){for(let r=0,o=e.length;r0}function Jy(s,t,e,i,n){n=n!==void 0?n:!1;for(let r=0,o=e.length;r1&&typeof arguments[e-1]=="function"&&(i=arguments[e-1],--e);let n=0;for(;n0}getInteracting(){return this.hints_[ke.INTERACTING]>0}cancelAnimations(){this.setHint(ke.ANIMATING,-this.hints_[ke.ANIMATING]);let t;for(let e=0,i=this.animations_.length;e=0;--i){const n=this.animations_[i];let r=!0;for(let o=0,a=n.length;o0?h/l.duration:1;c>=1?(l.complete=!0,c=1):r=!1;const u=l.easing(c);if(l.sourceCenter){const d=l.sourceCenter[0],g=l.sourceCenter[1],f=l.targetCenter[0],p=l.targetCenter[1];this.nextCenter_=l.targetCenter;const m=d+u*(f-d),_=g+u*(p-g);this.targetCenter_=[m,_]}if(l.sourceResolution&&l.targetResolution){const d=u===1?l.targetResolution:l.sourceResolution+u*(l.targetResolution-l.sourceResolution);if(l.anchor){const g=this.getViewportSize_(this.getRotation()),f=this.constraints_.resolution(d,0,g,!0);this.targetCenter_=this.calculateCenterZoom(f,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){const d=u===1?Wa(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+u*(l.targetRotation-l.sourceRotation);if(l.anchor){const g=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(g,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),e=!0,!l.complete)break}if(r){this.animations_[i]=null,this.setHint(ke.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const o=n[0].callback;o&&Vg(o,!0)}}this.animations_=this.animations_.filter(Boolean),e&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i;const n=this.getCenterInternal();return n!==void 0&&(i=[n[0]-e[0],n[1]-e[1]],Ny(i,t-this.getRotation()),a3(i,e)),i}calculateCenterZoom(t,e){let i;const n=this.getCenterInternal(),r=this.getResolution();if(n!==void 0&&r!==void 0){const o=e[0]-t*(e[0]-n[0])/r,a=e[1]-t*(e[1]-n[1])/r;i=[o,a]}return i}getViewportSize_(t){const e=this.viewportSize_;if(t){const i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t&&qh(t,this.getProjection())}getCenterInternal(){return this.get(Gi.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return pm(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();ie(e,"The view center is not defined");const i=this.getResolution();ie(i!==void 0,"The view resolution is not defined");const n=this.getRotation();return ie(n!==void 0,"The view rotation is not defined"),ld(e,i,n,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(Gi.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(hn(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=Ht(t)/e[0],n=as(t)/e[1];return Math.max(i,n)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,n=Math.log(e/i)/Math.log(t);return function(r){return e/Math.pow(t,r*n)}}getRotation(){return this.get(Gi.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(i/n)/e;return function(o){return Math.log(i/o)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let n=this.getCenterInternal();const r=this.padding_;if(r){const o=this.getViewportSizeMinusPadding_();n=D0(n,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],e,i)}return{center:n.slice(0),projection:t!==void 0?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return e!==void 0&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e=this.minZoom_||0,i,n;if(this.resolutions_){const r=cm(this.resolutions_,t,1);e=r,i=this.resolutions_[r],r==this.resolutions_.length-1?n=2:n=i/this.resolutions_[r+1]}else i=this.maxResolution_,n=this.zoomFactor_;return e+Math.log(i/t)/Math.log(n)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=Te(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,Te(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if(ie(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){ie(!xc(t),"Cannot fit empty extent provided as `geometry`");const n=hn(t,this.getProjection());i=Qf(n)}else if(t.getType()==="Circle"){const n=hn(t.getExtent(),this.getProjection());i=Qf(n),i.rotate(this.getRotation(),mr(n))}else i=t;this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride();let a=1/0,l=1/0,h=-1/0,c=-1/0;for(let u=0,d=r.length;u{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)}isVisible(t){let e;const i=this.getMapInternal();!t&&i&&(t=i.getView()),t instanceof nn?e={viewState:t.getState(),extent:t.calculateExtent()}:e=t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray());let n;e.layerStatesArray?n=e.layerStatesArray.find(o=>o.layer===this):n=this.getLayerState();const r=this.getExtent();return Qy(n,e.viewState)&&(!r||Ze(r,e.extent))}getAttributions(t){var e;if(!this.isVisible(t))return[];const i=(e=this.getSource())==null?void 0:e.getAttributions();if(!i)return[];const n=t instanceof nn?t.getViewStateAndExtent():t;let r=i(n);return Array.isArray(r)||(r=[r]),r}render(t,e){const i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(we.MAP,t)}getMapInternal(){return this.get(we.MAP)}setMap(t){this.mapPrecomposeKey_&&(fe(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(fe(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=zt(t,an.PRECOMPOSE,e=>{const i=e.frameState.layerStatesArray,n=this.getLayerState(!1);ie(!i.some(function(r){return r.layer===n.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),i.push(n)}),this.mapRenderKey_=zt(this,_t.CHANGE,t.render,t),this.changed())}setSource(t){this.set(we.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}};function Qy(s,t){if(!s.visible)return!1;const e=t.resolution;if(e=s.maxResolution)return!1;const i=t.zoom;return i>s.minZoom&&i<=s.maxZoom}function Y3(s,t,e,i,n){PC(s,t,e||0,i||s.length-1,n||q3)}function PC(s,t,e,i,n){for(;i>e;){if(i-e>600){var r=i-e+1,o=t-e+1,a=Math.log(r),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(r-l)/r)*(o-r/2<0?-1:1),c=Math.max(e,Math.floor(t-o*l/r+h)),u=Math.min(i,Math.floor(t+(r-o)*l/r+h));PC(s,t,c,u,n)}var d=s[t],g=e,f=i;for(Vc(s,e,t),n(s[i],d)>0&&Vc(s,e,i);g0;)f--}n(s[e],d)===0?Vc(s,e,f):(f++,Vc(s,f,i)),f<=t&&(e=f+1),t<=f&&(i=f-1)}}function Vc(s,t,e){var i=s[t];s[t]=s[e],s[e]=i}function q3(s,t){return st?1:0}let AC=class{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const i=[];if(!qg(t,e))return i;const n=this.toBBox,r=[];for(;e;){for(let o=0;o=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(n,r,e)}_split(t,e){const i=t[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);const o=this._chooseSplitIndex(i,r,n),a=Xl(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,Il(i,this.toBBox),Il(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)}_splitRoot(t,e){this.data=Xl([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Il(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let n,r=1/0,o=1/0;for(let a=e;a<=i-e;a++){const l=uu(t,0,a,this.toBBox),h=uu(t,a,i,this.toBBox),c=Q3(l,h),u=k0(l)+k0(h);c=e;h--){const c=t.children[h];du(a,t.leaf?r(c):c),l+=Yg(a)}return l}_adjustParentBBoxes(t,e,i){for(let n=i;n>=0;n--)du(e[n],t)}_condense(t){for(let e=t.length-1,i;e>=0;e--)t[e].children.length===0?e>0?(i=t[e-1].children,i.splice(i.indexOf(t[e]),1)):this.clear():Il(t[e],this.toBBox)}};function Z3(s,t,e){if(!e)return t.indexOf(s);for(let i=0;i=s.minX&&t.maxY>=s.minY}function Xl(s){return{children:s,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function LE(s,t,e,i,n){const r=[t,e];for(;r.length;){if(e=r.pop(),t=r.pop(),e-t<=i)continue;const o=t+Math.ceil((e-t)/i/2)*i;Y3(s,o,t,e,n),r.push(t,o,o,e)}}const ct={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function OE(s){return s[0]>0&&s[1]>0}function tN(s,t,e){return e===void 0&&(e=[0,0]),e[0]=s[0]*t+.5|0,e[1]=s[1]*t+.5|0,e}function Xs(s,t){return Array.isArray(s)?s:(t===void 0?t=[s,s]:(t[0]=s,t[1]=s),t)}let LC=class OC{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Xs(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new OC({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return Pt()}getImage(t){return Pt()}getHitDetectionImage(){return Pt()}getPixelRatio(t){return 1}getImageState(){return Pt()}getImageSize(){return Pt()}getOrigin(){return Pt()}getSize(){return Pt()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=Xs(t)}listenImageChange(t){Pt()}load(){Pt()}unlistenImageChange(t){Pt()}ready(){return Promise.resolve()}};const ud={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var Fs={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"]};Fs.whitepoint={2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}};Fs.max=Fs.whitepoint[2].D65;Fs.rgb=function(s,t){t=t||Fs.whitepoint[2].E;var e=s[0]/t[0],i=s[1]/t[1],n=s[2]/t[2],r,o,a;return r=e*3.240969941904521+i*-1.537383177570093+n*-.498610760293,o=e*-.96924363628087+i*1.87596750150772+n*.041555057407175,a=e*.055630079696993+i*-.20397695888897+n*1.056971514242878,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o=o*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a=a*12.92,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[r*255,o*255,a*255]};ud.xyz=function(s,t){var e=s[0]/255,i=s[1]/255,n=s[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=e*.41239079926595+i*.35758433938387+n*.18048078840183,o=e*.21263900587151+i*.71516867876775+n*.072192315360733,a=e*.019330818715591+i*.11919477979462+n*.95053215224966;return t=t||Fs.whitepoint[2].E,[r*t[0],o*t[1],a*t[2]]};const tx={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(s,t,e){var i,n,r,o,a,l,h,c,u,d,g,f,p;if(r=s[0],o=s[1],a=s[2],r===0)return[0,0,0];var m=.0011070564598794539;return t=t||"D65",e=e||2,u=Fs.whitepoint[e][t][0],d=Fs.whitepoint[e][t][1],g=Fs.whitepoint[e][t][2],f=4*u/(u+15*d+3*g),p=9*d/(u+15*d+3*g),i=o/(13*r)+f||0,n=a/(13*r)+p||0,h=r>8?d*Math.pow((r+16)/116,3):d*r*m,l=h*9*i/(4*n)||0,c=h*(12-3*i-20*n)/(4*n)||0,[l,h,c]}};Fs.luv=function(s,t,e){var i,n,r,o,a,l,h,c,u,d,g,f,p,m=.008856451679035631,_=903.2962962962961;t=t||"D65",e=e||2,u=Fs.whitepoint[e][t][0],d=Fs.whitepoint[e][t][1],g=Fs.whitepoint[e][t][2],f=4*u/(u+15*d+3*g),p=9*d/(u+15*d+3*g),l=s[0],h=s[1],c=s[2],i=4*l/(l+15*h+3*c)||0,n=9*h/(l+15*h+3*c)||0;var y=h/d;return r=y<=m?_*y:116*Math.pow(y,1/3)-16,o=13*r*(i-f),a=13*r*(n-p),[r,o,a]};var FC={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(s){var t=s[0],e=s[1],i=s[2],n,r,o;return o=i/360*2*Math.PI,n=e*Math.cos(o),r=e*Math.sin(o),[t,n,r]},xyz:function(s){return tx.xyz(FC.luv(s))}};tx.lchuv=function(s){var t=s[0],e=s[1],i=s[2],n=Math.sqrt(e*e+i*i),r=Math.atan2(i,e),o=r*360/2/Math.PI;return o<0&&(o+=360),[t,n,o]};Fs.lchuv=function(s){return tx.lchuv(Fs.luv(s))};const FE={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var NE={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function eN(s){var t,e,i,n=[],r=1,o;if(typeof s=="number")return{space:"rgb",values:[s>>>16,(s&65280)>>>8,s&255],alpha:1};if(typeof s=="number")return{space:"rgb",values:[s>>>16,(s&65280)>>>8,s&255],alpha:1};if(s=String(s).toLowerCase(),FE[s])n=FE[s].slice(),o="rgb";else if(s==="transparent")r=0,o="rgb",n=[0,0,0];else if(s[0]==="#"){var a=s.slice(1),l=a.length,h=l<=4;r=1,h?(n=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],l===4&&(r=parseInt(a[3]+a[3],16)/255)):(n=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],l===8&&(r=parseInt(a[6]+a[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(i=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(s)){var c=i[1];o=c.replace(/a$/,"");var u=o==="cmyk"?4:o==="gray"?1:3;n=i[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(d,g){if(d[d.length-1]==="%")return d=parseFloat(d)/100,g===3?d:o==="rgb"?d*255:o[0]==="h"||o[0]==="l"&&!g?d*100:o==="lab"?d*125:o==="lch"?g<2?d*150:d*360:o[0]==="o"&&!g?d:o==="oklab"?d*.4:o==="oklch"?g<2?d*.4:d*360:d;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(NE[d]!==void 0)return NE[d];if(d.endsWith("deg"))return parseFloat(d);if(d.endsWith("turn"))return parseFloat(d)*360;if(d.endsWith("grad"))return parseFloat(d)*360/400;if(d.endsWith("rad"))return parseFloat(d)*180/Math.PI}return d==="none"?0:parseFloat(d)}),r=n.length>u?n.pop():1}else/[0-9](?:\s|\/|,)/.test(s)&&(n=s.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),o=((e=(t=s.match(/([a-z])/ig))==null?void 0:t.join(""))==null?void 0:e.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const G0={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(s){var t=s[0]/360,e=s[1]/100,i=s[2]/100,n,r,o,a,l,h=0;if(e===0)return l=i*255,[l,l,l];for(r=i<.5?i*(1+e):i+e-i*e,n=2*i-r,a=[0,0,0];h<3;)o=t+1/3*-(h-1),o<0?o++:o>1&&o--,l=6*o<1?n+(r-n)*6*o:2*o<1?r:3*o<2?n+(r-n)*(2/3-o)*6:n,a[h++]=l*255;return a}};ud.hsl=function(s){var t=s[0]/255,e=s[1]/255,i=s[2]/255,n=Math.min(t,e,i),r=Math.max(t,e,i),o=r-n,a,l,h;return r===n?a=0:t===r?a=(e-i)/o:e===r?a=2+(i-t)/o:i===r&&(a=4+(t-e)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(n+r)/2,r===n?l=0:h<=.5?l=o/(r+n):l=o/(2-r-n),[a,l*100,h*100]};function sN(s){Array.isArray(s)&&s.raw&&(s=String.raw(...arguments)),s instanceof Number&&(s=+s);var t,e=eN(s);if(!e.space)return[];const i=e.space[0]==="h"?G0.min:ud.min,n=e.space[0]==="h"?G0.max:ud.max;return t=Array(3),t[0]=Math.min(Math.max(e.values[0],i[0]),n[0]),t[1]=Math.min(Math.max(e.values[1],i[1]),n[1]),t[2]=Math.min(Math.max(e.values[2],i[2]),n[2]),e.space[0]==="h"&&(t=G0.rgb(t)),t.push(Math.min(Math.max(e.alpha,0),1)),t}function iN(s){return typeof s=="string"?s:sx(s)}const nN=1024,Yc={};let j0=0;function rN(s){if(s.length===4)return s;const t=s.slice();return t[3]=1,t}function DE(s){const t=Fs.lchuv(ud.xyz(s));return t[3]=s[3],t}function oN(s){const t=Fs.rgb(FC.xyz(s));return t[3]=s[3],t}function ex(s){if(Yc.hasOwnProperty(s))return Yc[s];if(j0>=nN){let e=0;for(const i in Yc)e++&3||(delete Yc[i],--j0)}const t=sN(s);if(t.length!==4)throw new Error('failed to parse "'+s+'" as color');for(const e of t)if(isNaN(e))throw new Error('failed to parse "'+s+'" as color');return NC(t),Yc[s]=t,++j0,t}function Zh(s){return Array.isArray(s)?s:ex(s)}function NC(s){return s[0]=Te(s[0]+.5|0,0,255),s[1]=Te(s[1]+.5|0,0,255),s[2]=Te(s[2]+.5|0,0,255),s[3]=Te(s[3],0,1),s}function sx(s){let t=s[0];t!=(t|0)&&(t=t+.5|0);let e=s[1];e!=(e|0)&&(e=e+.5|0);let i=s[2];i!=(i|0)&&(i=i+.5|0);const n=s[3]===void 0?1:Math.round(s[3]*1e3)/1e3;return"rgba("+t+","+e+","+i+","+n+")"}const ia=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",aN=ia.includes("firefox"),lN=ia.includes("safari")&&!ia.includes("chrom");lN&&(ia.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(ia));const hN=ia.includes("webkit")&&!ia.includes("edge"),ix=ia.includes("macintosh"),DC=typeof devicePixelRatio<"u"?devicePixelRatio:1,kC=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,nx=typeof Image<"u"&&Image.prototype.decode,cN=typeof createImageBitmap=="function",$C=function(){let s=!1;try{const t=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch{}return s}();function ns(s,t,e,i){let n;return e&&e.length?n=e.shift():kC?n=new OffscreenCanvas(s||300,t||300):n=document.createElement("canvas"),s&&(n.width=s),t&&(n.height=t),n.getContext("2d",i)}let z0;function tp(){return z0||(z0=ns(1,1)),z0}function Qa(s){const t=s.canvas;t.width=1,t.height=1,s.clearRect(0,0,1,1)}function uN(s){let t=s.offsetWidth;const e=getComputedStyle(s);return t+=parseInt(e.marginLeft,10)+parseInt(e.marginRight,10),t}function dN(s){let t=s.offsetHeight;const e=getComputedStyle(s);return t+=parseInt(e.marginTop,10)+parseInt(e.marginBottom,10),t}function Hh(s,t){const e=t.parentNode;e&&e.replaceChild(s,t)}function GC(s){for(;s.lastChild;)s.lastChild.remove()}function gN(s,t){const e=s.childNodes;for(let i=0;;++i){const n=e[i],r=t[i];if(!n&&!r)break;if(n!==r){if(!n){s.appendChild(r);continue}if(!r){s.removeChild(n),--i;continue}s.insertBefore(r,n)}}}let jC=class extends Yd{constructor(t,e,i,n){super(),this.extent=t,this.pixelRatio_=i,this.resolution=e,this.state=typeof n=="function"?ct.IDLE:n,this.image_=null,this.loader=typeof n=="function"?n:null}changed(){this.dispatchEvent(_t.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==ct.IDLE&&this.loader){this.state=ct.LOADING,this.changed();const t=this.getResolution(),e=Array.isArray(t)?t[0]:t;Qb(()=>this.loader(this.getExtent(),e,this.getPixelRatio())).then(i=>{"image"in i&&(this.image_=i.image),"extent"in i&&(this.extent=i.extent),"resolution"in i&&(this.resolution=i.resolution),"pixelRatio"in i&&(this.pixelRatio_=i.pixelRatio),(i instanceof HTMLImageElement||i instanceof ImageBitmap||i instanceof HTMLCanvasElement||i instanceof HTMLVideoElement)&&(this.image_=i),this.state=ct.LOADED}).catch(i=>{this.state=ct.ERROR,console.error(i)}).finally(()=>this.changed())}}setImage(t){this.image_=t}setResolution(t){this.resolution=t}};function fN(s,t,e){const i=s;let n=!0,r=!1,o=!1;const a=[od(i,_t.LOAD,function(){o=!0,r||t()})];return i.src&&nx?(r=!0,i.decode().then(function(){n&&t()}).catch(function(l){n&&(o?t():e())})):a.push(od(i,_t.ERROR,e)),function(){n=!1,a.forEach(fe)}}function pN(s,t){return new Promise((e,i)=>{function n(){o(),e(s)}function r(){o(),i(new Error("Image load error"))}function o(){s.removeEventListener("load",n),s.removeEventListener("error",r)}s.addEventListener("load",n),s.addEventListener("error",r)})}function zC(s,t){return t&&(s.src=t),s.src&&nx?new Promise((e,i)=>s.decode().then(()=>e(s)).catch(n=>s.complete&&s.width?e(s):i(n))):pN(s)}function UC(s,t){return t&&(s.src=t),s.src&&nx&&cN?s.decode().then(()=>createImageBitmap(s)).catch(e=>{if(s.complete&&s.width)return s;throw e}):zC(s)}let mN=class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];!(t++&3)&&!i.hasListener()&&(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e,i){const n=U0(t,e,i);return n in this.cache_?this.cache_[n]:null}getPattern(t,e,i){const n=U0(t,e,i);return n in this.patternCache_?this.patternCache_[n]:null}set(t,e,i,n,r){const o=U0(t,e,i),a=o in this.cache_;this.cache_[o]=n,r&&(n.getImageState()===ct.IDLE&&n.load(),n.getImageState()===ct.LOADING?n.ready().then(()=>{this.patternCache_[o]=tp().createPattern(n.getImage(1),"repeat")}):this.patternCache_[o]=tp().createPattern(n.getImage(1),"repeat")),a||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};function U0(s,t,e){const i=e?Zh(e):"null";return t+":"+s+":"+i}const or=new mN;let qc=null,_N=class extends Yd{constructor(t,e,i,n,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=r,this.imageState_=n===void 0?ct.IDLE:n,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===ct.LOADED){qc||(qc=ns(1,1,void 0,{willReadFrequently:!0})),qc.drawImage(this.image_,0,0);try{qc.getImageData(0,0,1,1),this.tainted_=!1}catch{qc=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(_t.CHANGE)}handleImageError_(){this.imageState_=ct.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=ct.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],i=ns(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===ct.IDLE){this.image_||this.initializeImage_(),this.imageState_=ct.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&zC(this.image_,this.src_).then(t=>{this.image_=t,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==ct.LOADED)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const n=i.getContext("2d");n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=iN(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}ready(){return this.ready_||(this.ready_=new Promise(t=>{if(this.imageState_===ct.LOADED||this.imageState_===ct.ERROR)t();else{const e=()=>{(this.imageState_===ct.LOADED||this.imageState_===ct.ERROR)&&(this.removeEventListener(_t.CHANGE,e),t())};this.addEventListener(_t.CHANGE,e)}})),this.ready_}};function rx(s,t,e,i,n,r){let o=t===void 0?void 0:or.get(t,e,n);return o||(o=new _N(s,s&&"src"in s?s.src||void 0:t,e,i,n),or.set(t,e,n,o,r)),r&&o&&!or.getPattern(t,e,n)&&or.set(t,e,n,o,r),o}function ar(s){return s?Array.isArray(s)?sx(s):typeof s=="object"&&"src"in s?yN(s):s:null}function yN(s){if(!s.offset||!s.size)return or.getPattern(s.src,"anonymous",s.color);const t=s.src+":"+s.offset,e=or.getPattern(t,void 0,s.color);if(e)return e;const i=or.get(s.src,"anonymous",null);if(i.getImageState()!==ct.LOADED)return null;const n=ns(s.size[0],s.size[1]);return n.drawImage(i.getImage(1),s.offset[0],s.offset[1],s.size[0],s.size[1],0,0,s.size[0],s.size[1]),rx(n.canvas,t,void 0,ct.LOADED,s.color,!0),or.getPattern(t,void 0,s.color)}const Zg="ol-hidden",xN="ol-selectable",yr="ol-unselectable",kE="ol-unsupported",pl="ol-control",ep="ol-collapsed",vN=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"),$E=["style","variant","weight","size","lineHeight","family"],BC=function(s){const t=s.match(vN);if(!t)return null;const e={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,n=$E.length;iMath.max(n,ip(s,r)),0);return e[t]=i,i}function SN(s,t){const e=[],i=[],n=[];let r=0,o=0,a=0,l=0;for(let h=0,c=t.length;h<=c;h+=2){const u=t[h];if(u===` -`||h===c){r=Math.max(r,o),n.push(o),o=0,a+=l,l=0;continue}const d=t[h+1]||s.font,g=ip(d,u);e.push(g),o+=g;const f=EN(d);i.push(f),l=Math.max(l,f)}return{width:r,height:a,widths:e,heights:i,lineWidths:n}}function MN(s,t,e,i,n,r,o,a,l,h,c){s.save(),e!==1&&(s.globalAlpha===void 0?s.globalAlpha=u=>u.globalAlpha*=e:s.globalAlpha*=e),t&&s.transform.apply(s,t),i.contextInstructions?(s.translate(l,h),s.scale(c[0],c[1]),bN(i,s)):c[0]<0||c[1]<0?(s.translate(l,h),s.scale(c[0],c[1]),s.drawImage(i,n,r,o,a,0,0,o,a)):s.drawImage(i,n,r,o,a,l,h,o*c[0],a*c[1]),s.restore()}function bN(s,t){const e=s.contextInstructions;for(let i=0,n=e.length;ithis.imageState_=ct.LOADED),this.render()}clone(){const t=this.getScale(),e=new YC({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(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){let e=this.canvases_[t];if(!e){const i=this.renderOptions_,n=ns(i.size*t,i.size*t);this.draw_(i,n,t),e=n.canvas,this.canvases_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(e===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return e;let n=this.radius,r=this.radius2_===void 0?n:this.radius2_;if(n{this.patternImage_=null}),e.getImageState()===ct.IDLE&&e.load(),e.getImageState()===ct.LOADING&&(this.patternImage_=e)}this.color_=t}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}},Vr=class HC{constructor(t){t=t||{},this.color_=t.color!==void 0?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=t.lineDash!==void 0?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}clone(){const t=this.getColor();return new HC({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setWidth(t){this.width_=t}},Vs=class KC{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=jE,t.geometry!==void 0&&this.setGeometry(t.geometry),this.fill_=t.fill!==void 0?t.fill:null,this.image_=t.image!==void 0?t.image:null,this.renderer_=t.renderer!==void 0?t.renderer:null,this.hitDetectionRenderer_=t.hitDetectionRenderer!==void 0?t.hitDetectionRenderer:null,this.stroke_=t.stroke!==void 0?t.stroke:null,this.text_=t.text!==void 0?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&typeof t=="object"&&(t=t.clone()),new KC({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){typeof t=="function"?this.geometryFunction_=t:typeof t=="string"?this.geometryFunction_=function(e){return e.get(t)}:t?t!==void 0&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=jE,this.geometry_=t}setZIndex(t){this.zIndex_=t}};function CN(s){let t;if(typeof s=="function")t=s;else{let e;Array.isArray(s)?e=s:(ie(typeof s.getZIndex=="function","Expected an `Style` or an array of `Style`"),e=[s]),t=function(){return e}}return t}let B0=null;function JC(s,t){if(!B0){const e=new to({color:"rgba(255,255,255,0.4)"}),i=new Vr({color:"#3399CC",width:1.25});B0=[new Vs({image:new ox({fill:e,stroke:i,radius:5}),fill:e,stroke:i})]}return B0}function QC(){const s={},t=[255,255,255,1],e=[0,153,255,1],i=3;return s.Polygon=[new Vs({fill:new to({color:[255,255,255,.5]})})],s.MultiPolygon=s.Polygon,s.LineString=[new Vs({stroke:new Vr({color:t,width:i+2})}),new Vs({stroke:new Vr({color:e,width:i})})],s.MultiLineString=s.LineString,s.Circle=s.Polygon.concat(s.LineString),s.Point=[new Vs({image:new ox({radius:i*2,fill:new to({color:e}),stroke:new Vr({color:t,width:i/2})}),zIndex:1/0})],s.MultiPoint=s.Point,s.GeometryCollection=s.Polygon.concat(s.LineString,s.Point),s}function jE(s){return s.getGeometry()}function zE(s,t,e,i){return e!==void 0&&i!==void 0?[e/s,i/t]:e!==void 0?e/s:i!==void 0?i/t:1}let xm=class tT extends LC{constructor(t){t=t||{};const e=t.opacity!==void 0?t.opacity:1,i=t.rotation!==void 0?t.rotation:0,n=t.scale!==void 0?t.scale:1,r=t.rotateWithView!==void 0?t.rotateWithView:!1;super({opacity:e,rotation:i,scale:n,displacement:t.displacement!==void 0?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=t.anchor!==void 0?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=t.anchorOrigin!==void 0?t.anchorOrigin:"top-left",this.anchorXUnits_=t.anchorXUnits!==void 0?t.anchorXUnits:"fraction",this.anchorYUnits_=t.anchorYUnits!==void 0?t.anchorYUnits:"fraction",this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null;const o=t.img!==void 0?t.img:null;let a=t.src;ie(!(a!==void 0&&o),"`image` and `src` cannot be provided at the same time"),(a===void 0||a.length===0)&&o&&(a=o.src||Lt(o)),ie(a!==void 0&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),ie(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),"`width` or `height` cannot be provided together with `scale`");let l;if(t.src!==void 0?l=ct.IDLE:o!==void 0&&("complete"in o?o.complete?l=o.src?ct.LOADED:ct.IDLE:l=ct.LOADING:l=ct.LOADED),this.color_=t.color!==void 0?Zh(t.color):null,this.iconImage_=rx(o,a,this.crossOrigin_,l,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,this.initialOptions_,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{const u=this.getImage(1);if(u.width&&u.height)h=u.width,c=u.height;else if(u instanceof HTMLImageElement){this.initialOptions_=t;const d=()=>{if(this.unlistenImageChange(d),!this.initialOptions_)return;const g=this.iconImage_.getSize();this.setScale(zE(g[0],g[1],t.width,t.height))};this.listenImageChange(d);return}}h!==void 0&&this.setScale(zE(h,c,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new tT({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_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const n=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=n[0]),this.anchorYUnits_=="fraction"&&(t[1]*=n[1])}if(this.anchorOrigin_!="top-left"){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+n[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if(this.offsetOrigin_!="top-left"){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=i[0]-e[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==ct.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){const t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==ct.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(_t.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(_t.CHANGE,t)}ready(){return this.iconImage_.ready()}};const TN="#333";let ax=class eT{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Xs(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new to({color:TN}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:"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,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new eT({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),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,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=Xs(t!==void 0?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}},ml=0;const ei=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string"},AN={[W.Get]:Ft(Wt(1,1/0),LN),[W.Var]:Ft(Wt(1,1),ON),[W.Id]:Ft(FN,Zc),[W.Concat]:Ft(Wt(2,1/0),le(Ei)),[W.GeometryType]:Ft(NN,Zc),[W.Resolution]:Ft(Zc),[W.Zoom]:Ft(Zc),[W.Time]:Ft(Zc),[W.Any]:Ft(Wt(2,1/0),le(ei)),[W.All]:Ft(Wt(2,1/0),le(ei)),[W.Not]:Ft(Wt(1,1),le(ei)),[W.Equal]:Ft(Wt(2,2),le(Hg)),[W.NotEqual]:Ft(Wt(2,2),le(Hg)),[W.GreaterThan]:Ft(Wt(2,2),le(Qt)),[W.GreaterThanOrEqualTo]:Ft(Wt(2,2),le(Qt)),[W.LessThan]:Ft(Wt(2,2),le(Qt)),[W.LessThanOrEqualTo]:Ft(Wt(2,2),le(Qt)),[W.Multiply]:Ft(Wt(2,1/0),UE),[W.Coalesce]:Ft(Wt(2,1/0),UE),[W.Divide]:Ft(Wt(2,2),le(Qt)),[W.Add]:Ft(Wt(2,1/0),le(Qt)),[W.Subtract]:Ft(Wt(2,2),le(Qt)),[W.Clamp]:Ft(Wt(3,3),le(Qt)),[W.Mod]:Ft(Wt(2,2),le(Qt)),[W.Pow]:Ft(Wt(2,2),le(Qt)),[W.Abs]:Ft(Wt(1,1),le(Qt)),[W.Floor]:Ft(Wt(1,1),le(Qt)),[W.Ceil]:Ft(Wt(1,1),le(Qt)),[W.Round]:Ft(Wt(1,1),le(Qt)),[W.Sin]:Ft(Wt(1,1),le(Qt)),[W.Cos]:Ft(Wt(1,1),le(Qt)),[W.Atan]:Ft(Wt(1,2),le(Qt)),[W.Sqrt]:Ft(Wt(1,1),le(Qt)),[W.Match]:Ft(Wt(4,1/0),BE,kN),[W.Between]:Ft(Wt(3,3),le(Qt)),[W.Interpolate]:Ft(Wt(6,1/0),BE,$N),[W.Case]:Ft(Wt(3,1/0),DN,GN),[W.In]:Ft(Wt(2,2),jN),[W.Number]:Ft(Wt(1,1/0),le(Hg)),[W.String]:Ft(Wt(1,1/0),le(Hg)),[W.Array]:Ft(Wt(1,1/0),le(Qt)),[W.Color]:Ft(Wt(1,4),le(Qt)),[W.Band]:Ft(Wt(1,3),le(Qt)),[W.Palette]:Ft(Wt(2,2),zN),[W.ToString]:Ft(Wt(1,1),le(ei|Qt|Ei|Ln))};function LN(s,t,e){const i=s.length-1,n=new Array(i);for(let r=0;rt){const a=t===1/0?`${s} or more`:`${s} to ${t}`;throw new Error(`expected ${a} arguments for ${r}, got ${o}`)}}}function UE(s,t,e){const i=s.length-1,n=new Array(i);for(let r=0;ri.featureId;case W.GeometryType:return i=>i.geometryType;case W.Concat:{const i=s.args.map(n=>jn(n));return n=>"".concat(...i.map(r=>r(n).toString()))}case W.Resolution:return i=>i.resolution;case W.Any:case W.All:case W.Between:case W.In:case W.Not:return VN(s);case W.Equal:case W.NotEqual:case W.LessThan:case W.LessThanOrEqualTo:case W.GreaterThan:case W.GreaterThanOrEqualTo:return XN(s);case W.Multiply:case W.Divide:case W.Add:case W.Subtract:case W.Clamp:case W.Mod:case W.Pow:case W.Abs:case W.Floor:case W.Ceil:case W.Round:case W.Sin:case W.Cos:case W.Atan:case W.Sqrt:return YN(s);case W.Case:return qN(s);case W.Match:return ZN(s);case W.Interpolate:return HN(s);case W.ToString:return KN(s);default:throw new Error(`Unsupported operator ${e}`)}}function BN(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o{const n=s.args;let r=i.properties[e];for(let o=1,a=n.length;oi.variables[e];default:throw new Error(`Unsupported accessor operator ${s.operator}`)}}function XN(s,t){const e=s.operator,i=jn(s.args[0]),n=jn(s.args[1]);switch(e){case W.Equal:return r=>i(r)===n(r);case W.NotEqual:return r=>i(r)!==n(r);case W.LessThan:return r=>i(r)i(r)<=n(r);case W.GreaterThan:return r=>i(r)>n(r);case W.GreaterThanOrEqualTo:return r=>i(r)>=n(r);default:throw new Error(`Unsupported comparison operator ${e}`)}}function VN(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o{const o=n[0](r),a=n[1](r),l=n[2](r);return o>=a&&o<=l};case W.In:return r=>{const o=n[0](r);for(let a=1;a!n[0](r);default:throw new Error(`Unsupported logical operator ${e}`)}}function YN(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{let o=1;for(let a=0;an[0](r)/n[1](r);case W.Add:return r=>{let o=0;for(let a=0;an[0](r)-n[1](r);case W.Clamp:return r=>{const o=n[0](r),a=n[1](r);if(ol?l:o};case W.Mod:return r=>n[0](r)%n[1](r);case W.Pow:return r=>Math.pow(n[0](r),n[1](r));case W.Abs:return r=>Math.abs(n[0](r));case W.Floor:return r=>Math.floor(n[0](r));case W.Ceil:return r=>Math.ceil(n[0](r));case W.Round:return r=>Math.round(n[0](r));case W.Sin:return r=>Math.sin(n[0](r));case W.Cos:return r=>Math.cos(n[0](r));case W.Atan:return i===2?r=>Math.atan2(n[0](r),n[1](r)):r=>Math.atan(n[0](r));case W.Sqrt:return r=>Math.sqrt(n[0](r));default:throw new Error(`Unsupported numeric operator ${e}`)}}function qN(s,t){const e=s.args.length,i=new Array(e);for(let n=0;n{for(let r=0;r{const r=i[0](n);for(let o=1;o{const r=i[0](n),o=i[1](n);let a,l;for(let h=2;h=o)return h===2?u:d?JN(r,o,a,l,c,u):mu(r,o,a,l,c,u);a=c,l=u}return l}}function KN(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{const o=n[0](r);return s.args[0].type===Ln?sx(o):o.toString()};default:throw new Error(`Unsupported convert operator ${e}`)}}function mu(s,t,e,i,n,r){const o=n-e;if(o===0)return i;const a=t-e,l=s===1?a/o:(Math.pow(s,a)-1)/(Math.pow(s,o)-1);return i+l*(r-i)}function JN(s,t,e,i,n,r){if(n-e===0)return i;const o=DE(i),a=DE(r);let l=a[2]-o[2];l>180?l-=360:l<-180&&(l+=360);const h=[mu(s,t,e,o[0],n,a[0]),mu(s,t,e,o[1],n,a[1]),o[2]+mu(s,t,e,0,n,l),mu(s,t,e,i[3],n,r[3])];return NC(oN(h))}function QN(s){return!0}function tD(s){const t=sT(),e=eD(s,t),i=nT();return function(n,r){if(i.properties=n.getPropertiesInternal(),i.resolution=r,t.featureId){const o=n.getId();o!==void 0?i.featureId=o:i.featureId=null}return t.geometryType&&(i.geometryType=iT(n.getGeometry())),e(i)}}function WE(s){const t=sT(),e=s.length,i=new Array(e);for(let o=0;onull;i=hx(s,t+"fill-color",e)}if(!i)return null;const n=new to;return function(r){const o=i(r);return o==="none"?null:(n.setColor(o),n)}}function _d(s,t,e){const i=Ci(s,t+"stroke-width",e),n=hx(s,t+"stroke-color",e);if(!i&&!n)return null;const r=Nr(s,t+"stroke-line-cap",e),o=Nr(s,t+"stroke-line-join",e),a=rT(s,t+"stroke-line-dash",e),l=Ci(s,t+"stroke-line-dash-offset",e),h=Ci(s,t+"stroke-miter-limit",e),c=new Vr;return function(u){if(n){const d=n(u);if(d==="none")return null;c.setColor(d)}if(i&&c.setWidth(i(u)),r){const d=r(u);if(d!=="butt"&&d!=="round"&&d!=="square")throw new Error("Expected butt, round, or square line cap");c.setLineCap(d)}if(o){const d=o(u);if(d!=="bevel"&&d!=="round"&&d!=="miter")throw new Error("Expected bevel, round, or miter line join");c.setLineJoin(d)}return a&&c.setLineDash(a(u)),l&&c.setLineDashOffset(l(u)),h&&c.setMiterLimit(h(u)),c}}function sD(s,t){const e="text-",i=Nr(s,e+"value",t);if(!i)return null;const n=md(s,e,t),r=md(s,e+"background-",t),o=_d(s,e,t),a=_d(s,e+"background-",t),l=Nr(s,e+"font",t),h=Ci(s,e+"max-angle",t),c=Ci(s,e+"offset-x",t),u=Ci(s,e+"offset-y",t),d=yd(s,e+"overflow",t),g=Nr(s,e+"placement",t),f=Ci(s,e+"repeat",t),p=vm(s,e+"scale",t),m=yd(s,e+"rotate-with-view",t),_=Ci(s,e+"rotation",t),y=Nr(s,e+"align",t),v=Nr(s,e+"justify",t),S=Nr(s,e+"baseline",t),w=rT(s,e+"padding",t),C=wm(s,e+"declutter-mode"),M=new ax({declutterMode:C});return function(T){if(M.setText(i(T)),n&&M.setFill(n(T)),r&&M.setBackgroundFill(r(T)),o&&M.setStroke(o(T)),a&&M.setBackgroundStroke(a(T)),l&&M.setFont(l(T)),h&&M.setMaxAngle(h(T)),c&&M.setOffsetX(c(T)),u&&M.setOffsetY(u(T)),d&&M.setOverflow(d(T)),g){const I=g(T);if(I!=="point"&&I!=="line")throw new Error("Expected point or line for text-placement");M.setPlacement(I)}if(f&&M.setRepeat(f(T)),p&&M.setScale(p(T)),m&&M.setRotateWithView(m(T)),_&&M.setRotation(_(T)),y){const I=y(T);if(I!=="left"&&I!=="center"&&I!=="right"&&I!=="end"&&I!=="start")throw new Error("Expected left, right, center, start, or end for text-align");M.setTextAlign(I)}if(v){const I=v(T);if(I!=="left"&&I!=="right"&&I!=="center")throw new Error("Expected left, right, or center for text-justify");M.setJustify(I)}if(S){const I=S(T);if(I!=="bottom"&&I!=="top"&&I!=="middle"&&I!=="alphabetic"&&I!=="hanging")throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");M.setTextBaseline(I)}return w&&M.setPadding(w(T)),M}}function iD(s,t){return"icon-src"in s?nD(s,t):"shape-points"in s?rD(s,t):"circle-radius"in s?oD(s,t):null}function nD(s,t){const e="icon-",i=e+"src",n=oT(s[i],i),r=np(s,e+"anchor",t),o=vm(s,e+"scale",t),a=Ci(s,e+"opacity",t),l=np(s,e+"displacement",t),h=Ci(s,e+"rotation",t),c=yd(s,e+"rotate-with-view",t),u=VE(s,e+"anchor-origin"),d=YE(s,e+"anchor-x-units"),g=YE(s,e+"anchor-y-units"),f=uD(s,e+"color"),p=hD(s,e+"cross-origin"),m=cD(s,e+"offset"),_=VE(s,e+"offset-origin"),y=rp(s,e+"width"),v=rp(s,e+"height"),S=lD(s,e+"size"),w=wm(s,e+"declutter-mode"),C=new xm({src:n,anchorOrigin:u,anchorXUnits:d,anchorYUnits:g,color:f,crossOrigin:p,offset:m,offsetOrigin:_,height:v,width:y,size:S,declutterMode:w});return function(M){return a&&C.setOpacity(a(M)),l&&C.setDisplacement(l(M)),h&&C.setRotation(h(M)),c&&C.setRotateWithView(c(M)),o&&C.setScale(o(M)),r&&C.setAnchor(r(M)),C}}function rD(s,t){const e="shape-",i=e+"points",n=e+"radius",r=f1(s[i],i),o=f1(s[n],n),a=md(s,e,t),l=_d(s,e,t),h=vm(s,e+"scale",t),c=np(s,e+"displacement",t),u=Ci(s,e+"rotation",t),d=yd(s,e+"rotate-with-view",t),g=rp(s,e+"radius2"),f=rp(s,e+"angle"),p=wm(s,e+"declutter-mode"),m=new VC({points:r,radius:o,radius2:g,angle:f,declutterMode:p});return function(_){return a&&m.setFill(a(_)),l&&m.setStroke(l(_)),c&&m.setDisplacement(c(_)),u&&m.setRotation(u(_)),d&&m.setRotateWithView(d(_)),h&&m.setScale(h(_)),m}}function oD(s,t){const e="circle-",i=md(s,e,t),n=_d(s,e,t),r=Ci(s,e+"radius",t),o=vm(s,e+"scale",t),a=np(s,e+"displacement",t),l=Ci(s,e+"rotation",t),h=yd(s,e+"rotate-with-view",t),c=wm(s,e+"declutter-mode"),u=new ox({radius:5,declutterMode:c});return function(d){return r&&u.setRadius(r(d)),i&&u.setFill(i(d)),n&&u.setStroke(n(d)),a&&u.setDisplacement(a(d)),l&&u.setRotation(l(d)),h&&u.setRotateWithView(h(d)),o&&u.setScale(o(d)),u}}function Ci(s,t,e){if(!(t in s))return;const i=lo(s[t],Qt,e);return function(n){return f1(i(n),t)}}function Nr(s,t,e){if(!(t in s))return null;const i=lo(s[t],Ei,e);return function(n){return oT(i(n),t)}}function aD(s,t,e){const i=Nr(s,t+"pattern-src",e),n=XE(s,t+"pattern-offset",e),r=XE(s,t+"pattern-size",e),o=hx(s,t+"color",e);return function(a){return{src:i(a),offset:n&&n(a),size:r&&r(a),color:o&&o(a)}}}function yd(s,t,e){if(!(t in s))return null;const i=lo(s[t],ei,e);return function(n){const r=i(n);if(typeof r!="boolean")throw new Error(`Expected a boolean for ${t}`);return r}}function hx(s,t,e){if(!(t in s))return null;const i=lo(s[t],Ln,e);return function(n){return aT(i(n),t)}}function rT(s,t,e){if(!(t in s))return null;const i=lo(s[t],tl,e);return function(n){return sg(i(n),t)}}function np(s,t,e){if(!(t in s))return null;const i=lo(s[t],tl,e);return function(n){const r=sg(i(n),t);if(r.length!==2)throw new Error(`Expected two numbers for ${t}`);return r}}function XE(s,t,e){if(!(t in s))return null;const i=lo(s[t],tl,e);return function(n){return lT(i(n),t)}}function vm(s,t,e){if(!(t in s))return null;const i=lo(s[t],tl|Qt,e);return function(n){return dD(i(n),t)}}function rp(s,t){const e=s[t];if(e!==void 0){if(typeof e!="number")throw new Error(`Expected a number for ${t}`);return e}}function lD(s,t){const e=s[t];if(e!==void 0){if(typeof e=="number")return Xs(e);if(!Array.isArray(e))throw new Error(`Expected a number or size array for ${t}`);if(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number")throw new Error(`Expected a number or size array for ${t}`);return e}}function hD(s,t){const e=s[t];if(e!==void 0){if(typeof e!="string")throw new Error(`Expected a string for ${t}`);return e}}function VE(s,t){const e=s[t];if(e!==void 0){if(e!=="bottom-left"&&e!=="bottom-right"&&e!=="top-left"&&e!=="top-right")throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${t}`);return e}}function YE(s,t){const e=s[t];if(e!==void 0){if(e!=="pixels"&&e!=="fraction")throw new Error(`Expected pixels or fraction for ${t}`);return e}}function cD(s,t){const e=s[t];if(e!==void 0)return sg(e,t)}function wm(s,t){const e=s[t];if(e!==void 0){if(typeof e!="string")throw new Error(`Expected a string for ${t}`);if(e!=="declutter"&&e!=="obstacle"&&e!=="none")throw new Error(`Expected declutter, obstacle, or none for ${t}`);return e}}function uD(s,t){const e=s[t];if(e!==void 0)return aT(e,t)}function sg(s,t){if(!Array.isArray(s))throw new Error(`Expected an array for ${t}`);const e=s.length;for(let i=0;i4)throw new Error(`Expected a color with 3 or 4 values for ${t}`);return e}function lT(s,t){const e=sg(s,t);if(e.length!==2)throw new Error(`Expected an array of two numbers for ${t}`);return e}function dD(s,t){return typeof s=="number"?s:lT(s,t)}const qE={RENDER_ORDER:"renderOrder"};let cx=class extends eg{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=t.renderBuffer!==void 0?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=t.updateWhileAnimating!==void 0?t.updateWhileAnimating:!1,this.updateWhileInteracting_=t.updateWhileInteracting!==void 0?t.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(qE.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const i=this.getDeclutter();i in t.declutter||(t.declutter[i]=new AC(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(qE.RENDER_ORDER,t)}setStyle(t){this.style_=t===void 0?JC:t;const e=gD(t);this.styleFunction_=t===null?void 0:CN(e),this.changed()}};function gD(s){if(s===void 0)return JC;if(!s)return null;if(typeof s=="function"||s instanceof Vs)return s;if(!Array.isArray(s))return WE([s]);if(s.length===0)return[];const t=s.length,e=s[0];if(e instanceof Vs){const i=new Array(t);for(let n=0;n=0;--w){const C=p[w],M=C.layer;if(M.hasRenderer()&&Qy(C,c)&&a.call(l,M)){const T=M.getRenderer(),I=M.getSource();if(T&&I){const O=I.getWrapX()?g:t,P=u.bind(null,C.managed);y[0]=O[0]+f[S][0],y[1]=O[1]+f[S][1],h=T.forEachFeatureAtCoordinate(y,e,i,P,_)}if(h)return h}}if(_.length===0)return;const v=1/_.length;return _.forEach((S,w)=>S.distanceSq+=w*v),_.sort((S,w)=>S.distanceSq-w.distanceSq),_.some(S=>h=S.callback(S.feature,S.layer,S.geometry)),h}hasFeatureAtCoordinate(t,e,i,n,r,o){return this.forEachFeatureAtCoordinate(t,e,i,n,zh,this,r,o)!==void 0}getMap(){return this.map_}renderFrame(t){Pt()}scheduleExpireIconCache(t){or.canExpireCache()&&t.postRenderFunctions.push(pD)}};function pD(s,t){or.expire()}let hT=class extends Ki{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}},mD=class extends fD{constructor(t){super(t),this.fontChangeListenerKey_=zt(Lr,Ka.PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=yr+" ol-layers";const i=t.getViewport();i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const i=this.getMap();if(i.hasListener(t)){const n=new hT(t,void 0,e);i.dispatchEvent(n)}}disposeInternal(){fe(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(an.PRECOMPOSE,t);const e=t.layerStatesArray.sort((o,a)=>o.zIndex-a.zIndex);e.some(o=>o.layer instanceof cx&&o.layer.getDeclutter())&&(t.declutter={});const i=t.viewState;this.children_.length=0;const n=[];let r=null;for(let o=0,a=e.length;o=0;--i){const n=e[i],r=n.layer;r.getDeclutter()&&r.renderDeclutter(t,n)}e.forEach(i=>i.layer.renderDeferred(t))}}},Oo=class extends Ki{constructor(t,e){super(t),this.layer=e}};const W0={LAYERS:"layers"};let el=class cT extends tC{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(W0.LAYERS,this.handleLayersChanged_),i?Array.isArray(i)?i=new ni(i.slice(),{unique:!0}):ie(typeof i.getArray=="function","Expected `layers` to be an array or a `Collection`"):i=new ni(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(fe),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(zt(t,Ws.ADD,this.handleLayersAdd_,this),zt(t,Ws.REMOVE,this.handleLayersRemove_,this));for(const i in this.listenerKeys_)this.listenerKeys_[i].forEach(fe);Vd(this.listenerKeys_);const e=t.getArray();for(let i=0,n=e.length;i{this.clickTimeoutId_=void 0;const i=new Fr(te.SINGLECLICK,this.map_,t);this.dispatchEvent(i)},250)}updateActivePointers_(t){const e=t,i=e.pointerId;if(e.type==te.POINTERUP||e.type==te.POINTERCANCEL){delete this.trackedTouches_[i];for(const n in this.trackedTouches_)if(this.trackedTouches_[n].target!==e.target){delete this.trackedTouches_[n];break}}else(e.type==te.POINTERDOWN||e.type==te.POINTERMOVE)&&(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new Fr(te.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(fe),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return t.button===0}handlePointerDown_(t){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(t);const e=new Fr(te.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),this.dragListenerKeys_.length===0){const i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(zt(i,te.POINTERMOVE,this.handlePointerMove_,this),zt(i,te.POINTERUP,this.handlePointerUp_,this),zt(this.element_,te.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(zt(this.element_.getRootNode(),te.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new Fr(te.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new Fr(te.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;(!e||e.defaultPrevented)&&(typeof t.cancelable!="boolean"||t.cancelable===!0)&&t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(fe(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(_t.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(fe(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(fe),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}};const sr={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Qe={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},p1=1/0;let yD=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Vd(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,i=t[0];t.length==1?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){ie(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=p1?(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(t){return t*2+1}getRightChildIndex_(t){return t*2+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return this.elements_.length===0}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,i=this.priorities_,n=e.length,r=e[t],o=i[t],a=t;for(;t>1;){const l=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),c=ht;){const a=this.getParentIndex_(e);if(n[a]>o)i[e]=i[a],n[e]=n[a],e=a;else break}i[e]=r,n[e]=o}reprioritize(){const t=this.priorityFunction_,e=this.elements_,i=this.priorities_;let n=0;const r=e.length;let o,a,l;for(a=0;a0;){const n=this.dequeue()[0],r=n.getKey();n.getState()===J.IDLE&&!(r in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++i,n.load())}}};function vD(s,t,e,i,n){if(!s||!(e in s.wantedTiles)||!s.wantedTiles[e][t.getKey()])return p1;const r=s.viewState.center,o=i[0]-r[0],a=i[1]-r[1];return 65536*Math.log(n)+Math.sqrt(o*o+a*a)/n}let Yn=class extends En{constructor(t){super();const e=t.element;e&&!t.target&&!e.style.pointerEvents&&(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){var t;(t=this.element)==null||t.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(t){var e;this.map_&&((e=this.element)==null||e.remove());for(let i=0,n=this.listenerKeys.length;in.getAttributions(t))));if(!this.overrideCollapsible_){const n=!e.some(r=>{var o;return((o=r.getSource())==null?void 0:o.getAttributionsCollapsible())===!1});this.setCollapsible(n)}return i}async updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const e=await Promise.all(this.collectSourceAttributions_(t).map(n=>Qb(()=>n))),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!ao(e,this.renderedAttributions_)){GC(this.ulElement_);for(let n=0,r=e.length;n0&&e%(2*Math.PI)!==0?t.animate({rotation:0,duration:this.duration_,easing:gl}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const i=e.viewState.rotation;if(i!=this.rotation_){const n="rotate("+i+"rad)";if(this.autoHide_){const r=this.element.classList.contains(Zg);!r&&i===0?this.element.classList.add(Zg):r&&i!==0&&this.element.classList.remove(Zg)}this.label_.style.transform=n}this.rotation_=i}},gT=class extends Yn{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=t.className!==void 0?t.className:"ol-zoom",i=t.delta!==void 0?t.delta:1,n=t.zoomInClassName!==void 0?t.zoomInClassName:e+"-in",r=t.zoomOutClassName!==void 0?t.zoomOutClassName:e+"-out",o=t.zoomInLabel!==void 0?t.zoomInLabel:"+",a=t.zoomOutLabel!==void 0?t.zoomOutLabel:"–",l=t.zoomInTipLabel!==void 0?t.zoomInTipLabel:"Zoom in",h=t.zoomOutTipLabel!==void 0?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=n,c.setAttribute("type","button"),c.title=l,c.appendChild(typeof o=="string"?document.createTextNode(o):o),c.addEventListener(_t.CLICK,this.handleClick_.bind(this,i),!1);const u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=h,u.appendChild(typeof a=="string"?document.createTextNode(a):a),u.addEventListener(_t.CLICK,this.handleClick_.bind(this,-i),!1);const d=e+" "+yr+" "+pl,g=this.element;g.className=d,g.appendChild(c),g.appendChild(u),this.duration_=t.duration!==void 0?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const i=e.getZoom();if(i!==void 0){const n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:gl})):e.setZoom(n)}}};function fT(s){s=s||{};const t=new ni;return(s.zoom===void 0||s.zoom)&&t.push(new gT(s.zoomOptions)),(s.rotate===void 0||s.rotate)&&t.push(new dT(s.rotateOptions)),(s.attribution===void 0||s.attribution)&&t.push(new uT(s.attributionOptions)),t}const m1={ACTIVE:"active"};let ig=class extends En{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(m1.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(m1.ACTIVE,t)}setMap(t){this.map_=t}};function wD(s,t,e){const i=s.getCenterInternal();if(i){const n=[i[0]+t[0],i[1]+t[1]];s.animateInternal({duration:e!==void 0?e:250,easing:M3,center:s.getConstrainedCenter(n)})}}function ux(s,t,e,i){const n=s.getZoom();if(n===void 0)return;const r=s.getConstrainedZoom(n+t),o=s.getResolutionForZoom(r);s.getAnimating()&&s.cancelAnimations(),s.animate({resolution:o,anchor:e,duration:i!==void 0?i:250,easing:gl})}let ED=class extends ig{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:250}handleEvent(t){let e=!1;if(t.type==te.DBLCLICK){const i=t.originalEvent,n=t.map,r=t.coordinate,o=i.shiftKey?-this.delta_:this.delta_,a=n.getView();ux(a,o,r,this.duration_),i.preventDefault(),e=!0}return!e}},_l=class extends ig{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==te.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==te.POINTERUP){const i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==te.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==te.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function dx(s){const t=s.length;let e=0,i=0;for(let n=0;n0&&this.condition_(t)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},ID=class extends _l{constructor(t){t=t||{},super({stopDown:_c}),this.condition_=t.condition?t.condition:MD,this.lastAngle_=void 0,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){if(!X0(t))return;const e=t.map,i=e.getView();if(i.getConstraints().rotation===jy)return;const n=e.getSize(),r=t.pixel,o=Math.atan2(n[1]/2-r[1],r[0]-n[0]/2);if(this.lastAngle_!==void 0){const a=o-this.lastAngle_;i.adjustRotationInternal(-a)}this.lastAngle_=o}handleUpEvent(t){return X0(t)?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){return X0(t)&&mT(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}},PD=class extends Ry{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,i="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+i,n.top=Math.min(t[1],e[1])+i,n.width=Math.abs(e[0]-t[0])+i,n.height=Math.abs(e[1]-t[1])+i}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new ks([i])}getGeometry(){return this.geometry_}};const Hc={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};let Kg=class extends Ki{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}},AD=class extends _l{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new PD(t.className||"ol-dragbox"),this.minArea_=t.minArea!==void 0?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:mT,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){const n=i[0]-e[0],r=i[1]-e[1];return n*n+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Kg(Hc.BOXDRAG,t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new Kg(e?Hc.BOXEND:Hc.BOXCANCEL,t.coordinate,t)),!1}handleDownEvent(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Kg(Hc.BOXSTART,t.coordinate,t)),!0):!1}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new Kg(Hc.BOXCANCEL,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}},LD=class extends AD{constructor(t){t=t||{};const e=t.condition?t.condition:_T;super({condition:e,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=t.duration!==void 0?t.duration:200,this.out_=t.out!==void 0?t.out:!1}onBoxEnd(t){const e=this.getMap().getView();let i=this.getGeometry();if(this.out_){const n=e.rotatedExtentForGeometry(i),r=e.getResolutionForExtentInternal(n),o=e.getResolution()/r;i=i.clone(),i.scale(o*o)}e.fitInternal(i,{duration:this.duration_,easing:gl})}};const Ra={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};let OD=class extends ig{constructor(t){super(),t=t||{},this.defaultCondition_=function(e){return gx(e)&&yT(e)},this.condition_=t.condition!==void 0?t.condition:this.defaultCondition_,this.duration_=t.duration!==void 0?t.duration:100,this.pixelDelta_=t.pixelDelta!==void 0?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==_t.KEYDOWN){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&(n==Ra.DOWN||n==Ra.LEFT||n==Ra.RIGHT||n==Ra.UP)){const r=t.map.getView(),o=r.getResolution()*this.pixelDelta_;let a=0,l=0;n==Ra.DOWN?l=-o:n==Ra.LEFT?a=-o:n==Ra.RIGHT?a=o:l=o;const h=[a,l];Ny(h,r.getRotation()),wD(r,h,this.duration_),i.preventDefault(),e=!0}}return!e}},FD=class extends ig{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(e){return!RD(e)&&yT(e)},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:100}handleEvent(t){let e=!1;if(t.type==_t.KEYDOWN||t.type==_t.KEYPRESS){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&(n==="+"||n==="-")){const r=t.map,o=n==="+"?this.delta_:-this.delta_,a=r.getView();ux(a,o,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}},ND=class{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[i+2]>t;)i-=3;const n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;const r=this.points_[e]-this.points_[i],o=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}},ap=class extends ig{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=t.maxDelta!==void 0?t.maxDelta:1,this.duration_=t.duration!==void 0?t.duration:250,this.timeout_=t.timeout!==void 0?t.timeout:80,this.useAnchor_=t.useAnchor!==void 0?t.useAnchor:!0,this.constrainResolution_=t.constrainResolution!==void 0?t.constrainResolution:!1;const e=t.condition?t.condition:op;this.condition_=t.onFocusOnly?_1(pT,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t)||t.type!==_t.WHEEL)return!0;const e=t.map,i=t.originalEvent;i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);let n;if(t.type==_t.WHEEL&&(n=i.deltaY,aN&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=DC),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),n===0)return!1;this.lastDelta_=n;const r=Date.now();this.startTime_===void 0&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?"trackpad":"wheel");const o=e.getView();if(this.mode_==="trackpad"&&!(o.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=n;const a=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),a),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-Te(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),ux(e,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},DD=class extends _l{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=_c),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=t.threshold!==void 0?t.threshold:.3,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){let e=0;const i=this.targetPointers[0],n=this.targetPointers[1],r=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(this.lastAngle_!==void 0){const l=r-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=l}this.lastAngle_=r;const o=t.map,a=o.getView();a.getConstraints().rotation!==jy&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(dx(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return this.targetPointers.length<2?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}},kD=class extends _l{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=_c),super(e),this.anchor_=null,this.duration_=t.duration!==void 0?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const i=this.targetPointers[0],n=this.targetPointers[1],r=i.clientX-n.clientX,o=i.clientY-n.clientY,a=Math.sqrt(r*r+o*o);this.lastDistance_!==void 0&&(e=this.lastDistance_/a),this.lastDistance_=a;const l=t.map,h=l.getView();e!=1&&(this.lastScaleDelta_=e),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(dx(this.targetPointers))),l.render(),h.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};function $D(s){s=s||{};const t=new ni,e=new ND(-.005,.05,100);return(s.altShiftDragRotate===void 0||s.altShiftDragRotate)&&t.push(new ID),(s.doubleClickZoom===void 0||s.doubleClickZoom)&&t.push(new ED({delta:s.zoomDelta,duration:s.zoomDuration})),(s.dragPan===void 0||s.dragPan)&&t.push(new Ou({onFocusOnly:s.onFocusOnly,kinetic:e})),(s.pinchRotate===void 0||s.pinchRotate)&&t.push(new DD),(s.pinchZoom===void 0||s.pinchZoom)&&t.push(new kD({duration:s.zoomDuration})),(s.keyboard===void 0||s.keyboard)&&(t.push(new OD),t.push(new FD({delta:s.zoomDelta,duration:s.zoomDuration}))),(s.mouseWheelZoom===void 0||s.mouseWheelZoom)&&t.push(new ap({onFocusOnly:s.onFocusOnly,duration:s.zoomDuration})),(s.shiftDragZoom===void 0||s.shiftDragZoom)&&t.push(new LD({duration:s.zoomDuration})),t}function vT(s){if(s instanceof eg){s.setMapInternal(null);return}s instanceof el&&s.getLayers().forEach(vT)}function wT(s,t){if(s instanceof eg){s.setMapInternal(t);return}if(s instanceof el){const e=s.getLayers().getArray();for(let i=0,n=e.length;ithis.updateSize()),this.controls=e.controls||fT(),this.interactions=e.interactions||$D({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new xD(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(Qe.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(Qe.VIEW,this.handleViewChanged_),this.addChangeListener(Qe.SIZE,this.handleSizeChanged_),this.addChangeListener(Qe.TARGET,this.handleTargetChanged_),this.setProperties(e.values);const i=this;t.view&&!(t.view instanceof nn)&&t.view.then(function(n){i.setView(new nn(n))}),this.controls.addEventListener(Ws.ADD,n=>{n.element.setMap(this)}),this.controls.addEventListener(Ws.REMOVE,n=>{n.element.setMap(null)}),this.interactions.addEventListener(Ws.ADD,n=>{n.element.setMap(this)}),this.interactions.addEventListener(Ws.REMOVE,n=>{n.element.setMap(null)}),this.overlays_.addEventListener(Ws.ADD,n=>{this.addOverlayInternal_(n.element)}),this.overlays_.addEventListener(Ws.REMOVE,n=>{const r=n.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],n.element.setMap(null)}),this.controls.forEach(n=>{n.setMap(this)}),this.interactions.forEach(n=>{n.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){wT(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();e!==void 0&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;const n=this.getCoordinateFromPixelInternal(t);i=i!==void 0?i:{};const r=i.hitTolerance!==void 0?i.hitTolerance:0,o=i.layerFilter!==void 0?i.layerFilter:zh,a=i.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,r,a,e,null,o,null)}getFeaturesAtPixel(t,e){const i=[];return this.forEachFeatureAtPixel(t,function(n){i.push(n)},e),i}getAllLayers(){const t=[];function e(i){i.forEach(function(n){n instanceof el?e(n.getLayers()):t.push(n)})}return e(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(t);e=e!==void 0?e:{};const n=e.layerFilter!==void 0?e.layerFilter:zh,r=e.hitTolerance!==void 0?e.hitTolerance:0,o=e.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,o,n,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),i=this.getSize(),n=e.width/i[0],r=e.height/i[1],o="changedTouches"in t?t.changedTouches[0]:t;return[(o.clientX-e.left)/n,(o.clientY-e.top)/r]}getTarget(){return this.get(Qe.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return qh(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?ps(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return e!==void 0?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(Qe.LAYERGROUP)}setLayers(t){const e=this.getLayerGroup();if(t instanceof ni){e.setLayers(t);return}const i=e.getLayers();i.clear(),i.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e=0;r--){const o=n[r];if(!(o.getMap()!==this||!o.getActive()||!this.getTargetElement())&&(!o.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let n=this.maxTilesLoading_,r=n;if(t){const o=t.viewHints;if(o[ke.ANIMATING]||o[ke.INTERACTING]){const a=Date.now()-t.time>8;n=a?0:8,r=a?0:2}}e.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new Oo("removelayer",e)),this.set(Qe.LAYERGROUP,t)}setSize(t){this.set(Qe.SIZE,t)}setTarget(t){this.set(Qe.TARGET,t)}setView(t){if(!t||t instanceof nn){this.set(Qe.VIEW,t);return}this.set(Qe.VIEW,new nn);const e=this;t.then(function(i){e.setView(new nn(i))})}updateSize(){const t=this.getTargetElement();let e;if(t){const n=getComputedStyle(t),r=t.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),o=t.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);!isNaN(r)&&!isNaN(o)&&(e=[Math.max(0,r),Math.max(0,o)],!OE(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&uC("No map visible because the map container's width or height are 0."))}const i=this.getSize();e&&(!i||!ao(e,i))&&(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}};function GD(s){let t=null;s.keyboardEventTarget!==void 0&&(t=typeof s.keyboardEventTarget=="string"?document.getElementById(s.keyboardEventTarget):s.keyboardEventTarget);const e={},i=s.layers&&typeof s.layers.getLayers=="function"?s.layers:new el({layers:s.layers});e[Qe.LAYERGROUP]=i,e[Qe.TARGET]=s.target,e[Qe.VIEW]=s.view instanceof nn?s.view:new nn;let n;s.controls!==void 0&&(Array.isArray(s.controls)?n=new ni(s.controls.slice()):(ie(typeof s.controls.getArray=="function","Expected `controls` to be an array or an `ol/Collection.js`"),n=s.controls));let r;s.interactions!==void 0&&(Array.isArray(s.interactions)?r=new ni(s.interactions.slice()):(ie(typeof s.interactions.getArray=="function","Expected `interactions` to be an array or an `ol/Collection.js`"),r=s.interactions));let o;return s.overlays!==void 0?Array.isArray(s.overlays)?o=new ni(s.overlays.slice()):(ie(typeof s.overlays.getArray=="function","Expected `overlays` to be an array or an `ol/Collection.js`"),o=s.overlays):o=new ni,{controls:n,interactions:r,keyboardEventTarget:t,overlays:o,values:e}}const jD=':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);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-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-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:var(--ol-subtle-background-color);border-radius:4px}.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:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);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;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;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.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:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);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:var(--ol-partial-background-color)}.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 var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-overviewmap .ol-viewport:hover{cursor:pointer}',zD=".geolocation{top:65px;left:.5em}.ol-touch .geolocation{top:80px}";let Bi=class ST extends En{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if(typeof t.getSimplifiedGeometry=="function"){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new ST(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const i=this.getStyle();return i&&t.setStyle(i),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(fe(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=zt(t,_t.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?UD(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}};function UD(s){if(typeof s=="function")return s;let t;return Array.isArray(s)?t=s:(ie(typeof s.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),t=[s]),function(){return t}}let MT=class bT extends ga{constructor(t,e,i){super(),i!==void 0&&e===void 0?this.setFlatCoordinates(i,t):(e=e||0,this.setCenterAndRadius(t,e,i))}clone(){const t=new bT(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){const r=this.flatCoordinates,o=t-r[0],a=e-r[1],l=o*o+a*a;if(l=i[0]||t[1]<=i[1]&&t[3]>=i[1]?!0:Ly(t,this.intersectsCoordinate.bind(this))}return!1}setCenter(t){const e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+i;for(let r=1;rt.clone())}function lp(s,t,e,i,n,r,o){let a,l;const h=(e-t)/i;if(h===1)a=t;else if(h===2)a=t,l=n;else if(h!==0){let c=s[t],u=s[t+1],d=0;const g=[0];for(let m=t+i;m1?o:2,r=r||new Array(o);for(let c=0;c>1;n{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const i=this.simplifiedGeometry_.getFlatCoordinates();let n;switch(this.type_){case"LineString":i.length=_m(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,i,0),n=[i.length];break;case"MultiLineString":n=[],i.length=vC(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,i,0,n);break;case"Polygon":n=[],i.length=qy(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),i,0,n);break}return n&&(this.simplifiedGeometry_=new S1(this.type_,i,n,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_}),this}};sn.prototype.getFlatCoordinates=sn.prototype.getOrientedFlatCoordinates;let fx=class{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=Bi,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let i=e.dataProjection?Bt(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Bt(i),i.setWorldExtent(e.extent)),e={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},t)}getType(){return Pt()}readFeature(t,e){return Pt()}readFeatures(t,e){return Pt()}readGeometry(t,e){return Pt()}readProjection(t){return Pt()}writeFeature(t,e){return Pt()}writeFeatures(t,e){return Pt()}writeGeometry(t,e){return Pt()}};function xl(s,t,e){const i=e?Bt(e.featureProjection):null,n=e?Bt(e.dataProjection):null;let r=s;if(i&&n&&!$o(i,n)){t&&(r=s.clone());const o=t?i:n,a=t?n:i;o.getUnits()==="tile-pixels"?r.transform(o,a):r.applyTransform(hd(o,a))}if(t&&e&&e.decimals!==void 0){const o=Math.pow(10,e.decimals),a=function(l){for(let h=0,c=l.length;hRT({...s,geometry:o})).flat();const n=i.type==="MultiPolygon"?"Polygon":i.type;if(n==="GeometryCollection"||n==="Circle")throw new Error("Unsupported geometry type: "+n);const r=i.layout.length;return xl(new sn(n,n==="Polygon"?XD(i.flatCoordinates,i.ends,r):i.flatCoordinates,(e=i.ends)==null?void 0:e.flat(),r,s.properties||{},s.id).enableSimplifyTransformed(),!1,t)}function px(s,t){if(!s)return null;if(Array.isArray(s)){const i=s.map(n=>px(n,t));return new Yr(i)}const e=WD[s.type];return xl(new e(s.flatCoordinates,s.layout,s.ends),!1,t)}let IT=class extends fx{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(Jg(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(Jg(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return Pt()}readFeaturesFromObject(t,e){return Pt()}readGeometry(t,e){return this.readGeometryFromObject(Jg(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return Pt()}readProjection(t){return this.readProjectionFromObject(Jg(t))}readProjectionFromObject(t){return Pt()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return Pt()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return Pt()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return Pt()}};function Jg(s){return typeof s=="string"?JSON.parse(s)||null:s!==null?s:null}let Em=class extends IT{constructor(t){t=t||{},super(),this.dataProjection=Bt(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=Bt(t.featureProjection)),t.featureClass&&(this.featureClass=t.featureClass),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let i=null;t.type==="Feature"?i=t:i={type:"Feature",geometry:t,properties:null};const n=mx(i.geometry);if(this.featureClass===sn)return RT({geometry:n,id:i.id,properties:i.properties},e);const r=new Bi;return this.geometryName_?r.setGeometryName(this.geometryName_):this.extractGeometryName_&&i.geometry_name&&r.setGeometryName(i.geometry_name),r.setGeometry(px(n,e)),"id"in i&&r.setId(i.id),i.properties&&r.setProperties(i.properties,!0),r}readFeaturesFromObject(t,e){const i=t;let n=null;if(i.type==="FeatureCollection"){const r=t;n=[];const o=r.features;for(let a=0,l=o.length;a0?i[0]:null}readFeatureFromNode(t,e){return null}readFeatures(t,e){if(!t)return[];if(typeof t=="string"){const i=zo(t);return this.readFeaturesFromDocument(i,e)}return jo(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}readFeaturesFromDocument(t,e){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&de(i,this.readFeaturesFromNode(n,e));return i}readFeaturesFromNode(t,e){return Pt()}readGeometry(t,e){if(!t)return null;if(typeof t=="string"){const i=zo(t);return this.readGeometryFromDocument(i,e)}return jo(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}readGeometryFromDocument(t,e){return null}readGeometryFromNode(t,e){return null}readProjection(t){if(!t)return null;if(typeof t=="string"){const e=zo(t);return this.readProjectionFromDocument(e)}return jo(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}readProjectionFromDocument(t){return this.dataProjection}readProjectionFromNode(t){return this.dataProjection}writeFeature(t,e){const i=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(i)}writeFeatureNode(t,e){return null}writeFeatures(t,e){const i=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(i)}writeFeaturesNode(t,e){return null}writeGeometry(t,e){const i=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(i)}writeGeometryNode(t,e){return null}};function na(s){const t=ho(s,!1);return ck(t)}function ck(s){const t=/^\s*(true|1)|(false|0)\s*$/.exec(s);if(t)return t[1]!==void 0||!1}function Be(s){const t=ho(s,!1);return uk(t)}function uk(s){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(s);if(t)return parseFloat(t[1])}function Ys(s){return ho(s,!1).trim()}function Qh(s,t){On(s,t?"1":"0")}function dk(s,t){s.appendChild(Sm().createCDATASection(t))}function ka(s,t){const e=t.toPrecision();s.appendChild(Sm().createTextNode(e))}function On(s,t){s.appendChild(Sm().createTextNode(t))}const uo=["http://www.google.com/kml/ext/2.2"],gt=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],gk="http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd",QE={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"},fk=yt(gt,{ExtendedData:XT,Region:VT,MultiGeometry:at(UT,"geometry"),LineString:at(jT,"geometry"),LinearRing:at(zT,"geometry"),Point:at(BT,"geometry"),Polygon:at(WT,"geometry"),Style:at(vx),StyleMap:Kk,address:at(Ys),description:at(Ys),name:at(Ys),open:at(na),phoneNumber:at(Ys),styleUrl:at(NT),visibility:at(na)},yt(uo,{MultiTrack:at($k,"geometry"),Track:at(GT,"geometry")})),pk=yt(gt,{ExtendedData:XT,Region:VT,Link:h5,address:at(Ys),description:at(Ys),name:at(Ys),open:at(na),phoneNumber:at(Ys),visibility:at(na)}),mk=yt(gt,{href:at(FT)}),_k=yt(gt,{Altitude:at(Be),Longitude:at(Be),Latitude:at(Be),Tilt:at(Be),AltitudeMode:at(Ys),Heading:at(Be),Roll:at(Be)}),AT=yt(gt,{LatLonAltBox:s5,Lod:n5}),yk=yt(gt,["Document","Placemark"]),xk=yt(gt,{Document:Mt(_5),Placemark:Mt(ZT)});let Ch,Af=null,b1,Fu,Nu,Du,hp,C1=null,yx,T1=null,R1,$a=null,tS=null,I1=null;function cp(s){return 32/Math.min(s[0],s[1])}function vk(){Ch=[255,255,255,1],Af=new to({color:Ch}),b1=[20,2],Fu="pixels",Nu="pixels",Du=[64,64],hp="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",C1=new xm({anchor:b1,anchorOrigin:"bottom-left",anchorXUnits:Fu,anchorYUnits:Nu,crossOrigin:"anonymous",rotation:0,scale:cp(Du),size:Du,src:hp}),yx="NO_IMAGE",T1=new Vr({color:Ch,width:1}),R1=new Vr({color:[51,51,51,1],width:2}),$a=new ax({font:"bold 16px Helvetica",fill:Af,stroke:R1,scale:.8}),tS=new Vs({fill:Af,image:C1,text:$a,stroke:T1,zIndex:0}),I1=[tS]}let Qg;function wk(s){return s}let Ek=class extends hk{constructor(t){super(),t=t||{},I1||vk(),this.dataProjection=Bt("EPSG:4326"),this.defaultStyle_=t.defaultStyle?t.defaultStyle:I1,this.extractStyles_=t.extractStyles!==void 0?t.extractStyles:!0,this.writeStyles_=t.writeStyles!==void 0?t.writeStyles:!0,this.sharedStyles_={},this.showPointNames_=t.showPointNames!==void 0?t.showPointNames:!0,this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",this.iconUrlFunction_=t.iconUrlFunction?t.iconUrlFunction:wk,this.supportedMediaTypes=["application/vnd.google-earth.kml+xml"]}readDocumentOrFolder_(t,e){const i=yt(gt,{Document:JE(this.readDocumentOrFolder_,this),Folder:JE(this.readDocumentOrFolder_,this),Placemark:No(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),n=be([],i,t,e,this);if(n)return n}readPlacemark_(t,e){const i=be({geometry:null},fk,t,e,this);if(!i)return;const n=new Bi,r=t.getAttribute("id");r!==null&&n.setId(r);const o=e[0],a=i.geometry;if(a&&xl(a,!1,o),n.setGeometry(a),delete i.geometry,this.extractStyles_){const l=i.Style,h=i.styleUrl,c=Mk(l,h,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);n.setStyle(c)}return delete i.Style,n.setProperties(i,!0),n}readSharedStyle_(t,e){const i=t.getAttribute("id");if(i!==null){const n=vx.call(this,t,e);if(n){let r,o=t.baseURI;(!o||o=="about:blank")&&(o=window.location.href),o?r=new URL("#"+i,o).href:r="#"+i,this.sharedStyles_[r]=n}}}readSharedStyleMap_(t,e){const i=t.getAttribute("id");if(i===null)return;const n=kT.call(this,t,e);if(!n)return;let r,o=t.baseURI;(!o||o=="about:blank")&&(o=window.location.href),o?r=new URL("#"+i,o).href:r="#"+i,this.sharedStyles_[r]=n}readFeatureFromNode(t,e){return gt.includes(t.namespaceURI)&&this.readPlacemark_(t,[this.getReadOptions(t,e)])||null}readFeaturesFromNode(t,e){if(!gt.includes(t.namespaceURI))return[];let i;const n=t.localName;if(n=="Document"||n=="Folder")return i=this.readDocumentOrFolder_(t,[this.getReadOptions(t,e)]),i||[];if(n=="Placemark"){const r=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return r?[r]:[]}if(n=="kml"){i=[];for(let r=t.firstElementChild;r;r=r.nextElementSibling){const o=this.readFeaturesFromNode(r,e);o&&de(i,o)}return i}return[]}readName(t){if(t){if(typeof t=="string"){const e=zo(t);return this.readNameFromDocument(e)}return jo(t)?this.readNameFromDocument(t):this.readNameFromNode(t)}}readNameFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){const i=this.readNameFromNode(e);if(i)return i}}readNameFromNode(t){for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(gt.includes(e.namespaceURI)&&e.localName=="name")return Ys(e);for(let e=t.firstElementChild;e;e=e.nextElementSibling){const i=e.localName;if(gt.includes(e.namespaceURI)&&(i=="Document"||i=="Folder"||i=="Placemark"||i=="kml")){const n=this.readNameFromNode(e);if(n)return n}}}readNetworkLinks(t){const e=[];if(typeof t=="string"){const i=zo(t);de(e,this.readNetworkLinksFromDocument(i))}else jo(t)?de(e,this.readNetworkLinksFromDocument(t)):de(e,this.readNetworkLinksFromNode(t));return e}readNetworkLinksFromDocument(t){const e=[];for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType==Node.ELEMENT_NODE&&de(e,this.readNetworkLinksFromNode(i));return e}readNetworkLinksFromNode(t){const e=[];for(let i=t.firstElementChild;i;i=i.nextElementSibling)if(gt.includes(i.namespaceURI)&&i.localName=="NetworkLink"){const n=be({},pk,i,[]);e.push(n)}for(let i=t.firstElementChild;i;i=i.nextElementSibling){const n=i.localName;gt.includes(i.namespaceURI)&&(n=="Document"||n=="Folder"||n=="kml")&&de(e,this.readNetworkLinksFromNode(i))}return e}readRegion(t){const e=[];if(typeof t=="string"){const i=zo(t);de(e,this.readRegionFromDocument(i))}else jo(t)?de(e,this.readRegionFromDocument(t)):de(e,this.readRegionFromNode(t));return e}readRegionFromDocument(t){const e=[];for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType==Node.ELEMENT_NODE&&de(e,this.readRegionFromNode(i));return e}readRegionFromNode(t){const e=[];for(let i=t.firstElementChild;i;i=i.nextElementSibling)if(gt.includes(i.namespaceURI)&&i.localName=="Region"){const n=be({},AT,i,[]);e.push(n)}for(let i=t.firstElementChild;i;i=i.nextElementSibling){const n=i.localName;gt.includes(i.namespaceURI)&&(n=="Document"||n=="Folder"||n=="kml")&&de(e,this.readRegionFromNode(i))}return e}readCamera(t){const e=[];if(typeof t=="string"){const i=zo(t);de(e,this.readCameraFromDocument(i))}else jo(t)?de(e,this.readCameraFromDocument(t)):de(e,this.readCameraFromNode(t));return e}readCameraFromDocument(t){const e=[];for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType===Node.ELEMENT_NODE&&de(e,this.readCameraFromNode(i));return e}readCameraFromNode(t){const e=[];for(let i=t.firstElementChild;i;i=i.nextElementSibling)if(gt.includes(i.namespaceURI)&&i.localName==="Camera"){const n=be({},_k,i,[]);e.push(n)}for(let i=t.firstElementChild;i;i=i.nextElementSibling){const n=i.localName;gt.includes(i.namespaceURI)&&(n==="Document"||n==="Folder"||n==="Placemark"||n==="kml")&&de(e,this.readCameraFromNode(i))}return e}writeFeaturesNode(t,e){e=this.adaptOptions(e);const i=ng(gt[4],"kml"),n="http://www.w3.org/2000/xmlns/";i.setAttributeNS(n,"xmlns:gx",uo[0]),i.setAttributeNS(n,"xmlns:xsi",KE),i.setAttributeNS(KE,"xsi:schemaLocation",gk);const r={node:i},o={};t.length>1?o.Document=t:t.length==1&&(o.Placemark=t[0]);const a=yk[i.namespaceURI],l=zn(o,a);return is(r,xk,mn,l,[e],a,this),i}};function Sk(s,t){const e=[0,0];let i="start";const n=s.getImage();if(n){const o=n.getSize();if(o&&o.length==2){const a=n.getScaleArray(),l=n.getAnchor();e[0]=a[0]*(o[0]-l[0]),e[1]=a[1]*(o[1]/2-l[1]),i="left"}}let r=s.getText();return r?(r=r.clone(),r.setFont(r.getFont()||$a.getFont()),r.setScale(r.getScale()||$a.getScale()),r.setFill(r.getFill()||$a.getFill()),r.setStroke(r.getStroke()||R1)):r=$a.clone(),r.setText(t),r.setOffsetX(e[0]),r.setOffsetY(e[1]),r.setTextAlign(i),new Vs({image:n,text:r})}function Mk(s,t,e,i,n){return function(r,o){let a=n,l="",h=[];if(a){const u=r.getGeometry();if(u)if(u instanceof Yr)h=u.getGeometriesArrayRecursive().filter(function(d){const g=d.getType();return g==="Point"||g==="MultiPoint"}),a=h.length>0;else{const d=u.getType();a=d==="Point"||d==="MultiPoint"}}a&&(l=r.get("name"),a=a&&!!l,a&&/&[^&]+;/.test(l)&&(Qg||(Qg=document.createElement("textarea")),Qg.innerHTML=l,l=Qg.value));let c=e;if(s?c=s:t&&(c=LT(t,e,i)),a){const u=Sk(c[0],l);if(h.length>0){u.setGeometry(new Yr(h));const d=new Vs({geometry:c[0].getGeometry(),image:null,fill:c[0].getFill(),stroke:c[0].getStroke(),text:null});return[u,d].concat(c.slice(1))}return u}return c}}function LT(s,t,e){return Array.isArray(s)?s:typeof s=="string"?LT(e[s],t,e):t}function Mm(s){const t=ho(s,!1),e=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t);if(e){const i=e[1];return[parseInt(i.substr(6,2),16),parseInt(i.substr(4,2),16),parseInt(i.substr(2,2),16),parseInt(i.substr(0,2),16)/255]}}function OT(s){let t=ho(s,!1);const e=[];t=t.replace(/\s*,\s*/g,",");const i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;let n;for(;n=i.exec(t);){const r=parseFloat(n[1]),o=parseFloat(n[2]),a=n[3]?parseFloat(n[3]):0;e.push(r,o,a),t=t.substr(n[0].length)}if(t==="")return e}function FT(s){const t=ho(s,!1).trim();let e=s.baseURI;return(!e||e=="about:blank")&&(e=window.location.href),e?new URL(t,e).href:t}function NT(s){const t=ho(s,!1).trim().replace(/^(?!.*#)/,"#");let e=s.baseURI;return(!e||e=="about:blank")&&(e=window.location.href),e?new URL(t,e).href:t}function bk(s){const t=s.getAttribute("xunits"),e=s.getAttribute("yunits");let i;return t!=="insetPixels"?e!=="insetPixels"?i="bottom-left":i="top-left":e!=="insetPixels"?i="bottom-right":i="top-right",{x:parseFloat(s.getAttribute("x")),xunits:QE[t],y:parseFloat(s.getAttribute("y")),yunits:QE[e],origin:i}}function DT(s){return Be(s)}const Ck=yt(gt,{Pair:Hk});function kT(s,t){return be(void 0,Ck,s,t,this)}const Tk=yt(gt,{Icon:at(zk),color:at(Mm),heading:at(Be),hotSpot:at(bk),scale:at(DT)});function Rk(s,t){const e=be({},Tk,s,t);if(!e)return;const i=t[t.length-1],n="Icon"in e?e.Icon:{},r=!("Icon"in e)||Object.keys(n).length>0;let o;const a=n.href;a?o=a:r&&(o=hp);let l,h,c,u="bottom-left";const d=e.hotSpot;d?(l=[d.x,d.y],h=d.xunits,c=d.yunits,u=d.origin):/^https?:\/\/maps\.(?:google|gstatic)\.com\//.test(o)&&(o.includes("pushpin")?(l=b1,h=Fu,c=Nu):o.includes("arrow-reverse")?(l=[54,42],h=Fu,c=Nu):o.includes("paddle")&&(l=[32,1],h=Fu,c=Nu));let g;const f=n.x,p=n.y;f!==void 0&&p!==void 0&&(g=[f,p]);let m;const _=n.w,y=n.h;_!==void 0&&y!==void 0&&(m=[_,y]);let v;const S=e.heading;S!==void 0&&(v=Nn(S));const w=e.scale,C=e.color;if(r){o==hp&&(m=Du);const M=new xm({anchor:l,anchorOrigin:u,anchorXUnits:h,anchorYUnits:c,crossOrigin:this.crossOrigin_,offset:g,offsetOrigin:"bottom-left",rotation:v,scale:w,size:m,src:this.iconUrlFunction_(o),color:C}),T=M.getScaleArray()[0],I=M.getSize();if(I===null){const O=M.getImageState();if(O===ct.IDLE||O===ct.LOADING){const P=function(){const D=M.getImageState();if(!(D===ct.IDLE||D===ct.LOADING)){const x=M.getSize();if(x&&x.length==2){const E=cp(x);M.setScale(T*E)}M.unlistenImageChange(P)}};M.listenImageChange(P),O===ct.IDLE&&M.load()}}else if(I.length==2){const O=cp(I);M.setScale(T*O)}i.imageStyle=M}else i.imageStyle=yx}const Ik=yt(gt,{color:at(Mm),scale:at(DT)});function Pk(s,t){const e=be({},Ik,s,t);if(!e)return;const i=t[t.length-1],n=new ax({fill:new to({color:"color"in e?e.color:Ch}),scale:e.scale});i.textStyle=n}const Ak=yt(gt,{color:at(Mm),width:at(Be)});function Lk(s,t){const e=be({},Ak,s,t);if(!e)return;const i=t[t.length-1],n=new Vr({color:"color"in e?e.color:Ch,width:"width"in e?e.width:1});i.strokeStyle=n}const Ok=yt(gt,{color:at(Mm),fill:at(na),outline:at(na)});function Fk(s,t){const e=be({},Ok,s,t);if(!e)return;const i=t[t.length-1],n=new to({color:"color"in e?e.color:Ch});i.fillStyle=n;const r=e.fill;r!==void 0&&(i.fill=r);const o=e.outline;o!==void 0&&(i.outline=o)}const Nk=yt(gt,{coordinates:_x(OT)});function $T(s,t){return be(null,Nk,s,t)}function Dk(s,t){const e=t[t.length-1].coordinates,i=ho(s,!1),n=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(i);if(n){const r=parseFloat(n[1]),o=parseFloat(n[2]),a=parseFloat(n[3]);e.push([r,o,a])}else e.push([])}const kk=yt(uo,{Track:No(GT)});function $k(s,t){const e=be([],kk,s,t);if(e)return new yl(e)}const Gk=yt(gt,{when:c5},yt(uo,{coord:Dk}));function GT(s,t){const e=be({coordinates:[],whens:[]},Gk,s,t);if(!e)return;const i=[],n=e.coordinates,r=e.whens;for(let o=0,a=Math.min(n.length,r.length);o0&&t[t.length-1].push(...e)}const a5=yt(gt,{LinearRing:_x($T)});function l5(s,t){const e=be(void 0,a5,s,t);if(e){const i=t[t.length-1];i[0]=e}}function h5(s,t){Ec(mk,s,t)}function c5(s,t){const e=t[t.length-1].whens,i=ho(s,!1),n=Date.parse(i);e.push(isNaN(n)?0:n)}function Cm(s,t){const e=Zh(t),i=[(e.length==4?e[3]:1)*255,e[2],e[1],e[0]];for(let n=0;n<4;++n){const r=Math.floor(i[n]).toString(16);i[n]=r.length==1?"0"+r:r}On(s,i.join(""))}function u5(s,t,e){const i=e[e.length-1],n=i.layout,r=i.stride;let o;if(n=="XY"||n=="XYM")o=2;else if(n=="XYZ"||n=="XYZM")o=3;else throw new Error("Invalid geometry layout");const a=t.length;let l="";if(a>0){l+=t[0];for(let h=1;h0){const g=zn(n,o);is(i,H0,G5,[{names:o,values:g}],e)}const u=e[0];let d=t.getGeometry();d&&(d=xl(d,!0,u)),is(i,H0,YT,[d],e)}const j5=yt(gt,["extrude","tessellate","altitudeMode","coordinates"]),z5=yt(gt,{extrude:Mt(Qh),tessellate:Mt(Qh),altitudeMode:Mt(On),coordinates:Mt(u5)});function Th(s,t,e){const i=t.getFlatCoordinates(),n={node:s};n.layout=t.getLayout(),n.stride=t.getStride();const r=t.getProperties();r.coordinates=i;const o=e[e.length-1].node,a=j5[o.namespaceURI],l=zn(r,a);is(n,z5,mn,l,e,a)}const U5=yt(gt,["color","fill","outline"]),nS=yt(gt,{outerBoundaryIs:Mt(iS),innerBoundaryIs:Mt(iS)}),B5=co("innerBoundaryIs"),W5=co("outerBoundaryIs");function HT(s,t,e){const i=t.getLinearRings(),n=i.shift(),r={node:s};is(r,nS,B5,i,e),is(r,nS,W5,[n],e)}const X5=yt(gt,{color:Mt(Cm),fill:Mt(Qh),outline:Mt(Qh)});function V5(s,t,e){const i={node:s},n=t.getFill(),r=t.getStroke(),o={color:n?n.getColor():void 0,fill:n?void 0:!1,outline:r?void 0:!1},a=e[e.length-1].node,l=U5[a.namespaceURI],h=zn(o,l);is(i,X5,mn,h,e,l)}function KT(s,t){ka(s,Math.round(t*1e6)/1e6)}const Y5=yt(gt,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),q5=yt(gt,{IconStyle:Mt(M5),LabelStyle:Mt(T5),LineStyle:Mt(P5),PolyStyle:Mt(V5)});function Z5(s,t,e){const i={node:s},n={};if(t.pointStyles.length){const l=t.pointStyles[0].getText();l&&(n.LabelStyle=l);const h=t.pointStyles[0].getImage();h&&typeof h.getSrc=="function"&&(n.IconStyle=h)}if(t.lineStyles.length){const l=t.lineStyles[0].getStroke();l&&(n.LineStyle=l)}if(t.polyStyles.length){const l=t.polyStyles[0].getStroke();l&&!n.LineStyle&&(n.LineStyle=l),n.PolyStyle=t.polyStyles[0]}const r=e[e.length-1].node,o=Y5[r.namespaceURI],a=zn(n,o);is(i,q5,mn,a,e,o)}function H5(s,t){s.setAttribute("x",String(t.x)),s.setAttribute("y",String(t.y)),s.setAttribute("xunits",t.xunits),s.setAttribute("yunits",t.yunits)}const P1=65536*65536,rS=1/P1,K5=12,oS=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),K0=0,tf=1,Kc=2,ef=5;let J5=class{constructor(t=new Uint8Array(16)){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(t,e,i=this.length){for(;this.pos>3,o=this.pos;this.type=n&7,t(r,e,this),this.pos===o&&this.skip(n)}return e}readMessage(t,e){return this.readFields(t,e,this.readVarint()+this.pos)}readFixed32(){const t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){const t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){const t=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*P1;return this.pos+=8,t}readSFixed64(){const t=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*P1;return this.pos+=8,t}readFloat(){const t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){const t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){const e=this.buf;let i,n;return n=e[this.pos++],i=n&127,n<128||(n=e[this.pos++],i|=(n&127)<<7,n<128)||(n=e[this.pos++],i|=(n&127)<<14,n<128)||(n=e[this.pos++],i|=(n&127)<<21,n<128)?i:(n=e[this.pos],i|=(n&15)<<28,Q5(i,t,this))}readVarint64(){return this.readVarint(!0)}readSVarint(){const t=this.readVarint();return t%2===1?(t+1)/-2:t/2}readBoolean(){return!!this.readVarint()}readString(){const t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=K5&&oS?oS.decode(this.buf.subarray(e,t)):g$(this.buf,e,t)}readBytes(){const t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e}readPackedVarint(t=[],e){const i=this.readPackedEnd();for(;this.pos127;);else if(e===Kc)this.pos=this.readVarint()+this.pos;else if(e===ef)this.pos+=4;else if(e===tf)this.pos+=8;else throw new Error(`Unimplemented type: ${e}`)}writeTag(t,e){this.writeVarint(t<<3|e)}realloc(t){let e=this.length||16;for(;e268435455||t<0){e$(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))}writeSVarint(t){this.writeVarint(t<0?-t*2-1:t*2)}writeBoolean(t){this.writeVarint(+t)}writeString(t){t=String(t),this.realloc(t.length*4),this.pos++;const e=this.pos;this.pos=f$(this.buf,t,this.pos);const i=this.pos-e;i>=128&&aS(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i}writeFloat(t){this.realloc(4),this.dataView.setFloat32(this.pos,t,!0),this.pos+=4}writeDouble(t){this.realloc(8),this.dataView.setFloat64(this.pos,t,!0),this.pos+=8}writeBytes(t){const e=t.length;this.writeVarint(e),this.realloc(e);for(let i=0;i=128&&aS(i,n,this),this.pos=i-1,this.writeVarint(n),this.pos+=n}writeMessage(t,e,i){this.writeTag(t,Kc),this.writeRawMessage(e,i)}writePackedVarint(t,e){e.length&&this.writeMessage(t,n$,e)}writePackedSVarint(t,e){e.length&&this.writeMessage(t,r$,e)}writePackedBoolean(t,e){e.length&&this.writeMessage(t,l$,e)}writePackedFloat(t,e){e.length&&this.writeMessage(t,o$,e)}writePackedDouble(t,e){e.length&&this.writeMessage(t,a$,e)}writePackedFixed32(t,e){e.length&&this.writeMessage(t,h$,e)}writePackedSFixed32(t,e){e.length&&this.writeMessage(t,c$,e)}writePackedFixed64(t,e){e.length&&this.writeMessage(t,u$,e)}writePackedSFixed64(t,e){e.length&&this.writeMessage(t,d$,e)}writeBytesField(t,e){this.writeTag(t,Kc),this.writeBytes(e)}writeFixed32Field(t,e){this.writeTag(t,ef),this.writeFixed32(e)}writeSFixed32Field(t,e){this.writeTag(t,ef),this.writeSFixed32(e)}writeFixed64Field(t,e){this.writeTag(t,tf),this.writeFixed64(e)}writeSFixed64Field(t,e){this.writeTag(t,tf),this.writeSFixed64(e)}writeVarintField(t,e){this.writeTag(t,K0),this.writeVarint(e)}writeSVarintField(t,e){this.writeTag(t,K0),this.writeSVarint(e)}writeStringField(t,e){this.writeTag(t,Kc),this.writeString(e)}writeFloatField(t,e){this.writeTag(t,ef),this.writeFloat(e)}writeDoubleField(t,e){this.writeTag(t,tf),this.writeDouble(e)}writeBooleanField(t,e){this.writeVarintField(t,+e)}};function Q5(s,t,e){const i=e.buf;let n,r;if(r=i[e.pos++],n=(r&112)>>4,r<128||(r=i[e.pos++],n|=(r&127)<<3,r<128)||(r=i[e.pos++],n|=(r&127)<<10,r<128)||(r=i[e.pos++],n|=(r&127)<<17,r<128)||(r=i[e.pos++],n|=(r&127)<<24,r<128)||(r=i[e.pos++],n|=(r&1)<<31,r<128))return t$(s,n,t);throw new Error("Expected varint not more than 10 bytes")}function t$(s,t,e){return e?t*4294967296+(s>>>0):(t>>>0)*4294967296+(s>>>0)}function e$(s,t){let e,i;if(s>=0?(e=s%4294967296|0,i=s/4294967296|0):(e=~(-s%4294967296),i=~(-s/4294967296),e^4294967295?e=e+1|0:(e=0,i=i+1|0)),s>=18446744073709552e3||s<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),s$(e,i,t),i$(i,t)}function s$(s,t,e){e.buf[e.pos++]=s&127|128,s>>>=7,e.buf[e.pos++]=s&127|128,s>>>=7,e.buf[e.pos++]=s&127|128,s>>>=7,e.buf[e.pos++]=s&127|128,s>>>=7,e.buf[e.pos]=s&127}function i$(s,t){const e=(s&7)<<4;t.buf[t.pos++]|=e|((s>>>=3)?128:0),s&&(t.buf[t.pos++]=s&127|((s>>>=7)?128:0),s&&(t.buf[t.pos++]=s&127|((s>>>=7)?128:0),s&&(t.buf[t.pos++]=s&127|((s>>>=7)?128:0),s&&(t.buf[t.pos++]=s&127|((s>>>=7)?128:0),s&&(t.buf[t.pos++]=s&127)))))}function aS(s,t,e){const i=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(Math.LN2*7));e.realloc(i);for(let n=e.pos-1;n>=s;n--)e.buf[n+i]=e.buf[n]}function n$(s,t){for(let e=0;e239?4:r>223?3:r>191?2:1;if(n+a>e)break;let l,h,c;a===1?r<128&&(o=r):a===2?(l=s[n+1],(l&192)===128&&(o=(r&31)<<6|l&63,o<=127&&(o=null))):a===3?(l=s[n+1],h=s[n+2],(l&192)===128&&(h&192)===128&&(o=(r&15)<<12|(l&63)<<6|h&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):a===4&&(l=s[n+1],h=s[n+2],c=s[n+3],(l&192)===128&&(h&192)===128&&(c&192)===128&&(o=(r&15)<<18|(l&63)<<12|(h&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,a=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=a}return i}function f$(s,t,e){for(let i=0,n,r;i55295&&n<57344)if(r)if(n<56320){s[e++]=239,s[e++]=191,s[e++]=189,r=n;continue}else n=r-55296<<10|n-56320|65536,r=null;else{n>56319||i+1===t.length?(s[e++]=239,s[e++]=191,s[e++]=189):r=n;continue}else r&&(s[e++]=239,s[e++]=191,s[e++]=189,r=null);n<128?s[e++]=n:(n<2048?s[e++]=n>>6|192:(n<65536?s[e++]=n>>12|224:(s[e++]=n>>18|240,s[e++]=n>>12&63|128),s[e++]=n>>6&63|128),s[e++]=n&63|128)}return e}let p$=class extends fx{constructor(t){super(),t=t||{},this.dataProjection=new um({code:"",units:"tile-pixels"}),this.featureClass=t.featureClass?t.featureClass:sn,this.geometryName_=t.geometryName,this.layerName_=t.layerName?t.layerName:"layer",this.layers_=t.layers?t.layers:null,this.idProperty_=t.idProperty,this.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"]}readRawGeometry_(t,e,i,n){t.pos=e.geometry;const r=t.readVarint()+t.pos;let o=1,a=0,l=0,h=0,c=0,u=0;for(;t.pos>3}if(a--,o===1||o===2)l+=t.readSVarint(),h+=t.readSVarint(),o===1&&c>u&&(n.push(c),u=c),i.push(l,h),c+=2;else if(o===7)c>u&&(i.push(i[u],i[u+1]),c+=2);else throw new Error("Invalid command found in the PBF")}c>u&&(n.push(c),u=c)}createFeature_(t,e,i){const n=e.type;if(n===0)return null;let r;const o=e.properties;let a;this.idProperty_?(a=o[this.idProperty_],delete o[this.idProperty_]):a=e.id,o[this.layerName_]=e.layer.name;const l=[],h=[];this.readRawGeometry_(t,e,l,h);const c=v$(n,h.length);if(this.featureClass===sn)r=new this.featureClass(c,l,h,2,o,a),r.transform(i.dataProjection);else{let u;if(c=="Polygon"){const f=IC(l,h);u=f.length>1?new wc(l,"XY",f):new ks(l,"XY",h)}else u=c==="Point"?new qi(l,"XY"):c==="LineString"?new pn(l,"XY"):c==="MultiPoint"?new fa(l,"XY"):c==="MultiLineString"?new yl(l,"XY",h):null;const d=this.featureClass;r=new d,this.geometryName_&&r.setGeometryName(this.geometryName_);const g=xl(u,!1,i);r.setGeometry(g),a!==void 0&&r.setId(a),r.setProperties(o,!0)}return r}getType(){return"arraybuffer"}readFeatures(t,e){const i=this.layers_;e=this.adaptOptions(e);const n=Bt(e.dataProjection);n.setWorldExtent(e.extent),e.dataProjection=n;const r=new J5(t),o=r.readFields(m$,{}),a=[];for(const l in o){if(i&&!i.includes(l))continue;const h=o[l],c=h?[0,0,h.extent,h.extent]:null;n.setExtent(c);for(let u=0,d=h.length;u>3,i=s===1?e.readString():s===2?e.readFloat():s===3?e.readDouble():s===4?e.readVarint64():s===5?e.readVarint():s===6?e.readSVarint():s===7?e.readBoolean():null;t.values.push(i)}}function y$(s,t,e){if(s==1)t.id=e.readVarint();else if(s==2){const i=e.readVarint()+e.pos;for(;e.pos0&&e.pop(),i>=0){const o=t[i];for(let a=0,l=o.length;a=0;--a)e.push(o[a].slice(0))}return e}function S$(s,t,e){const i=s.coordinates;return t&&e&&wx(i,t,e),new qi(i)}function M$(s,t,e){const i=s.coordinates;if(t&&e)for(let n=0,r=i.length;nl&&(this.instructions.push([wt.CUSTOM,l,c,t,i,Go,r]),this.hitDetectionInstructions.push([wt.CUSTOM,l,c,t,n||i,Go,r]));break;case"Point":h=t.getFlatCoordinates(),this.coordinates.push(h[0],h[1]),c=this.coordinates.length,this.instructions.push([wt.CUSTOM,l,c,t,i,void 0,r]),this.hitDetectionInstructions.push([wt.CUSTOM,l,c,t,n||i,void 0,r]);break}this.endGeometry(e)}beginGeometry(t,e,i){this.beginGeometryInstruction1_=[wt.BEGIN_GEOMETRY,e,0,t,i],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[wt.BEGIN_GEOMETRY,e,0,t,i],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;t.reverse();let e;const i=t.length;let n,r,o=-1;for(e=0;ethis.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}createFill(t){const e=t.fillStyle,i=[wt.SET_FILL_STYLE,e];return typeof e!="string"&&i.push(t.fillPatternScale),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[wt.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){const i=t.strokeStyle,n=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,l=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!ao(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h)&&(i!==void 0&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=l,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[wt.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=iC(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;gn(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}},L$=class extends rg{constructor(t,e,i,n){super(t,e,i,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e,i){if(!this.image_||this.maxExtent&&!Ja(this.maxExtent,t.getFlatCoordinates()))return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(n,r);this.instructions.push([wt.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,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.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([wt.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e,i){if(!this.image_)return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),r=[];for(let l=0,h=n.length;l=s){const f=(s-a+g)/g,p=zi(h,u,f),m=zi(c,d,f);l.push(p,m),r.push(l),l=[p,m],a==s&&(o+=n),a=0}else if(a0&&r.push(l),r}function N$(s,t,e,i,n){let r=e,o=e,a=0,l=0,h=e,c,u,d,g,f,p,m,_,y,v;for(u=e;us&&(l>a&&(a=l,r=h,o=u),l=0,h=u-n)),d=g,m=y,_=v),f=S,p=w}return l+=g,l>a?[h,u]:[r,o]}const up={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};let D$=class extends rg{constructor(t,e,i,n){super(t,e,i,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[wi]={fillStyle:wi},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e,i){const n=this.textFillState_,r=this.textStrokeState_,o=this.textState_;if(this.text_===""||!o||!n&&!r)return;const a=this.coordinates;let l=a.length;const h=t.getType();let c=null,u=t.getStride();if(o.placement==="line"&&(h=="LineString"||h=="MultiLineString"||h=="Polygon"||h=="MultiPolygon")){if(!Ze(this.maxExtent,t.getExtent()))return;let d;if(c=t.getFlatCoordinates(),h=="LineString")d=[c.length];else if(h=="MultiLineString")d=t.getEnds();else if(h=="Polygon")d=t.getEnds().slice(0,1);else if(h=="MultiPolygon"){const m=t.getEndss();d=[];for(let _=0,y=m.length;_{const w=a[(y+S)*2]===c[S*u]&&a[(y+S)*2+1]===c[S*u+1];return w||--y,w})}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&this.updateFillStyle(this.state,this.createFill),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e,i);let f=o.padding;if(f!=Da&&(o.scale[0]<0||o.scale[1]<0)){let y=o.padding[0],v=o.padding[1],S=o.padding[2],w=o.padding[3];o.scale[0]<0&&(v=-v,w=-w),o.scale[1]<0&&(y=-y,S=-S),f=[y,v,S,w]}const p=this.pixelRatio;this.instructions.push([wt.DRAW_IMAGE,l,g,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,f==Da?Da:f.map(function(y){return y*p}),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,d]);const m=1/p,_=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=wi,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([wt.DRAW_IMAGE,l,g,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[m,m],NaN,this.declutterMode_,this.declutterImageWithText_,f,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?wi:this.fillKey_,this.textOffsetX_,this.textOffsetY_,d]),o.backgroundFill&&(this.state.fillStyle=_,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,n=this.strokeKey_;t&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||fd,justify:e.justify,textBaseline:e.textBaseline||sp,scale:e.scale});const o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,n=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const l=this.pixelRatio,h=up[n.textBaseline],c=this.textOffsetY_*l,u=this.text_,d=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([wt.DRAW_CHARS,t,e,h,n.overflow,a,n.maxAngle,l,c,r,d*l,u,o,1,this.declutterMode_]),this.hitDetectionInstructions.push([wt.DRAW_CHARS,t,e,h,n.overflow,a&&wi,n.maxAngle,l,c,r,d*l,u,o,1/l,this.declutterMode_])}setTextStyle(t,e){let i,n,r;if(!t)this.text_="";else{const o=t.getFill();o?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=ar(o.getColor()||wi)):(n=null,this.textFillState_=n);const a=t.getStroke();if(!a)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const f=a.getLineDash(),p=a.getLineDashOffset(),m=a.getWidth(),_=a.getMiterLimit();r.lineCap=a.getLineCap()||Kh,r.lineDash=f?f.slice():Wr,r.lineDashOffset=p===void 0?Xr:p,r.lineJoin=a.getLineJoin()||Jh,r.lineWidth=m===void 0?pd:m,r.miterLimit=_===void 0?dd:_,r.strokeStyle=ar(a.getColor()||gd)}i=this.textState_;const l=t.getFont()||WC;wN(l);const h=t.getScaleArray();i.overflow=t.getOverflow(),i.font=l,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||sp,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||Da,i.scale=h===void 0?[1,1]:h;const c=t.getOffsetX(),u=t.getOffsetY(),d=t.getRotateWithView(),g=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=u===void 0?0:u,this.textRotateWithView_=d===void 0?!1:d,this.textRotation_=g===void 0?0:g,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:Lt(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=n&&n.fillStyle?typeof n.fillStyle=="string"?n.fillStyle:"|"+Lt(n.fillStyle):""}this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}};const k$={Circle:hS,Default:rg,Image:L$,LineString:O$,Polygon:hS,Text:D$};let tR=class{constructor(t,e,i,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const i=this.buildersByZIndex_[e];for(const n in i){const r=i[n].finish();t[e][n]=r}}return t}getBuilder(t,e){const i=t!==void 0?t.toString():"0";let n=this.buildersByZIndex_[i];n===void 0&&(n={},this.buildersByZIndex_[i]=n);let r=n[e];if(r===void 0){const o=k$[e];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=r}return r}};const $$=5;let G$=class extends qd{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.staleKeys_=new Array,this.maxStaleKeys=$$}getStaleKeys(){return this.staleKeys_}prependStaleKey(t){this.staleKeys_.unshift(t),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(t){return Pt()}getData(t){return null}prepareFrame(t){return Pt()}renderFrame(t,e){return Pt()}forEachFeatureAtCoordinate(t,e,i,n,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;(e.getState()===ct.LOADED||e.getState()===ct.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=ct.LOADED&&e!=ct.ERROR&&t.addEventListener(_t.CHANGE,this.boundHandleImageChange_),e==ct.IDLE&&(t.load(),e=t.getState()),e==ct.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}},Ex=class{constructor(){mF(this,"pushMethodArgs_",(...t)=>(this.instructions_[this.zIndex+this.offset_].push(t),this)),this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy(tp(),{get:(t,e)=>{if(typeof tp()[e]=="function")return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e),this.pushMethodArgs_},set:(t,e,i)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e,i),!0)})}pushFunction(t){this.instructions_[this.zIndex+this.offset_].push(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach(e=>{for(let i=0,n=e.length;iR[2]}else P=S>I;const D=Math.PI,x=[],E=C+i===t;t=C,m=0,_=M,d=s[t],g=s[t+1];let b;if(E){y(),b=Math.atan2(g-p,d-f),P&&(b+=b>0?-D:D);const R=(I+S)/2,A=(O+w)/2;return x[0]=[R,A,(T-r)/2,b,n],x}n=n.replace(/\n/g," ");for(let R=0,A=n.length;R0?-D:D),b!==void 0){let F=$-b;if(F+=F>D?-2*D:F<-D?2*D:0,Math.abs(F)>o)return null}b=$;const G=R;let k=0;for(;R0&&s.push(` -`,""),s.push(t,""),s}let B$=class{constructor(t,e,i,n,r){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignAndScaleFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=fn(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=r?new Ex:null}getZIndexContext(){return this.zIndexContext_}createLabel(t,e,i,n){const r=t+e+i+n;if(this.labels_[r])return this.labels_[r];const o=n?this.strokeStates[n]:null,a=i?this.fillStates[i]:null,l=this.textStates[e],h=this.pixelRatio,c=[l.scale[0]*h,l.scale[1]*h],u=l.justify?up[l.justify]:J0(Array.isArray(t)?t[0]:t,l.textAlign||fd),d=n&&o.lineWidth?o.lineWidth:0,g=Array.isArray(t)?t:String(t).split(` -`).reduce(U$,[]),{width:f,height:p,widths:m,heights:_,lineWidths:y}=SN(l,g),v=f+d,S=[],w=(v+2)*c[0],C=(p+d)*c[1],M={width:w<0?Math.floor(w):Math.ceil(w),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:S};(c[0]!=1||c[1]!=1)&&S.push("scale",c),n&&(S.push("strokeStyle",o.strokeStyle),S.push("lineWidth",d),S.push("lineCap",o.lineCap),S.push("lineJoin",o.lineJoin),S.push("miterLimit",o.miterLimit),S.push("setLineDash",[o.lineDash]),S.push("lineDashOffset",o.lineDashOffset)),i&&S.push("fillStyle",a.fillStyle),S.push("textBaseline","middle"),S.push("textAlign","center");const T=.5-u;let I=u*v+T*d;const O=[],P=[];let D=0,x=0,E=0,b=0,R;for(let A=0,$=g.length;A<$;A+=2){const G=g[A];if(G===` -`){x+=D,D=0,I=u*v+T*d,++b;continue}const k=g[A+1]||l.font;k!==R&&(n&&O.push("font",k),i&&P.push("font",k),R=k),D=Math.max(D,_[E]);const z=[G,I+T*m[E]+u*(m[E]-y[b]),.5*(d+D)+x];I+=m[E],n&&O.push("strokeText",z),i&&P.push("fillText",z),++E}return Array.prototype.push.apply(S,O),Array.prototype.push.apply(S,P),this.labels_[r]=M,M}replayTextBackground_(t,e,i,n,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignAndScaleFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())}calculateImageOrLabelDimensions_(t,e,i,n,r,o,a,l,h,c,u,d,g,f,p,m){a*=d[0],l*=d[1];let _=i-a,y=n-l;const v=r+h>t?t-h:r,S=o+c>e?e-c:o,w=f[3]+v*d[0]+f[1],C=f[0]+S*d[1]+f[2],M=_-f[3],T=y-f[0];(p||u!==0)&&(wo[0]=M,Eo[0]=M,wo[1]=T,Tr[1]=T,Tr[0]=M+w,Rr[0]=Tr[0],Rr[1]=T+C,Eo[1]=Rr[1]);let I;return u!==0?(I=_r(fn(),i,n,1,1,u,-i,-n),ps(I,wo),ps(I,Tr),ps(I,Rr),ps(I,Eo),Qr(Math.min(wo[0],Tr[0],Rr[0],Eo[0]),Math.min(wo[1],Tr[1],Rr[1],Eo[1]),Math.max(wo[0],Tr[0],Rr[0],Eo[0]),Math.max(wo[1],Tr[1],Rr[1],Eo[1]),Pl)):Qr(Math.min(M,M+w),Math.min(T,T+C),Math.max(M,M+w),Math.max(T,T+C),Pl),g&&(_=Math.round(_),y=Math.round(y)),{drawImageX:_,drawImageY:y,drawImageW:v,drawImageH:S,originX:h,originY:c,declutterBox:{minX:Pl[0],minY:Pl[1],maxX:Pl[2],maxY:Pl[3],value:m},canvasTransform:I,scale:d}}replayImageOrLabel_(t,e,i,n,r,o,a){const l=!!(o||a),h=n.declutterBox,c=a?a[2]*n.scale[0]/2:0;return h.minX-c<=e[0]&&h.maxX+c>=0&&h.minY-c<=e[1]&&h.maxY+c>=0&&(l&&this.replayTextBackground_(t,wo,Tr,Rr,Eo,o,a),MN(t,n.canvasTransform,r,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){const e=this.alignAndScaleFill_;if(e){const i=ps(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(i[0]%n,i[1]%n),e!==1&&t.scale(e,e),t.rotate(this.viewRotation_)}t.fill(),e&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,n){const r=this.textStates[e],o=this.createLabel(t,e,n,i),a=this.strokeStates[i],l=this.pixelRatio,h=J0(Array.isArray(t)?t[0]:t,r.textAlign||fd),c=up[r.textBaseline||sp],u=a&&a.lineWidth?a.lineWidth:0,d=o.width/l-2*r.scale[0],g=h*d+2*(.5-h)*u,f=c*o.height/l+2*(.5-c)*u;return{label:o,anchorX:g,anchorY:f}}execute_(t,e,i,n,r,o,a,l){const h=this.zIndexContext_;let c;this.pixelCoordinates_&&ao(i,this.renderedTransform_)?c=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),c=Ho(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),b3(this.renderedTransform_,i));let u=0;const d=n.length;let g=0,f,p,m,_,y,v,S,w,C,M,T,I,O,P=0,D=0,x=null,E=null;const b=this.coordinateCache_,R=this.viewRotation_,A=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,$={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:R},G=this.instructions!=n||this.overlaps?0:200;let k,z,V,et;for(;uG&&(this.fill_(t),P=0),D>G&&(t.stroke(),D=0),!P&&!D&&(t.beginPath(),y=NaN,v=NaN),++u;break;case wt.CIRCLE:g=F[1];const ot=c[g],ht=c[g+1],pt=c[g+2],Gt=c[g+3],Kt=pt-ot,bt=Gt-ht,oe=Math.sqrt(Kt*Kt+bt*bt);t.moveTo(ot+oe,ht),t.arc(ot,ht,oe,0,2*Math.PI,!0),++u;break;case wt.CLOSE_PATH:t.closePath(),++u;break;case wt.CUSTOM:g=F[1],f=F[2];const Pe=F[3],hs=F[4],rs=F[5];$.geometry=Pe,$.feature=k,u in b||(b[u]=[]);const Ge=b[u];rs?rs(c,g,f,2,Ge):(Ge[0]=c[g],Ge[1]=c[g+1],Ge.length=2),h&&(h.zIndex=F[6]),hs(Ge,$),++u;break;case wt.DRAW_IMAGE:g=F[1],f=F[2],C=F[3],p=F[4],m=F[5];let ve=F[6];const Ke=F[7],Ni=F[8],Di=F[9],Mn=F[10];let Ks=F[11];const ki=F[12];let $i=F[13];_=F[14]||"declutter";const Jt=F[15];if(!C&&F.length>=20){M=F[19],T=F[20],I=F[21],O=F[22];const Ae=this.drawLabelWithPointPlacement_(M,T,I,O);C=Ae.label,F[3]=C;const Js=F[23];p=(Ae.anchorX-Js)*this.pixelRatio,F[4]=p;const Le=F[24];m=(Ae.anchorY-Le)*this.pixelRatio,F[5]=m,ve=C.height,F[6]=ve,$i=C.width,F[13]=$i}let xa;F.length>25&&(xa=F[25]);let va,br,Cr;F.length>17?(va=F[16],br=F[17],Cr=F[18]):(va=Da,br=!1,Cr=!1),Mn&&A?Ks+=R:!Mn&&!A&&(Ks-=R);let S0=0;for(;g!dp.includes(s));let eR=class{constructor(t,e,i,n,r,o,a){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=fn(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(r,a)}clip(t,e){const i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()}createExecutors_(t,e){for(const i in t){let n=this.executorsByZIndex_[i];n===void 0&&(n={},this.executorsByZIndex_[i]=n);const r=t[i];for(const o in r){const a=r[o];n[o]=new B$(this.resolution_,this.pixelRatio_,this.overlaps_,a,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const i=this.executorsByZIndex_[e];for(let n=0,r=t.length;n0){if(!o||M==="none"||g!=="Image"&&g!=="Text"||o.includes(w)){const P=(d[I]-3)/4,D=n-P%a,x=n-(P/a|0),E=r(w,C,D*D+x*x);if(E)return E}c.clearRect(0,0,a,a);break}}const p=Object.keys(this.executorsByZIndex_).map(Number);p.sort(dr);let m,_,y,v,S;for(m=p.length-1;m>=0;--m){const w=p[m].toString();for(y=this.executorsByZIndex_[w],_=oh.length-1;_>=0;--_)if(g=oh[_],v=y[g],v!==void 0&&(S=v.executeHitDetection(c,l,i,f,u),S))return S}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],n=e[1],r=e[2],o=e[3],a=[i,n,i,o,r,o,r,n];return Ho(a,0,8,2,t,a),a}isEmpty(){return ea(this.executorsByZIndex_)}execute(t,e,i,n,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(dr),o=o||oh;const h=oh.length;let c,u,d,g,f;for(a&&l.reverse(),c=0,u=l.length;c_.execute(w,e,i,n,r,a)),S&&v.restore(),y){y.offset();const w=l[c]*h+d;this.deferredZIndexContexts_[w]||(this.deferredZIndexContexts_[w]=[]),this.deferredZIndexContexts_[w].push(y)}}}}this.renderedContext_=t}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const t=this.deferredZIndexContexts_,e=Object.keys(t).map(Number).sort(dr);for(let i=0,n=e.length;i{r.draw(this.renderedContext_),r.clear()}),t[e[i]].length=0}};const Q0={};function X$(s){if(Q0[s]!==void 0)return Q0[s];const t=s*2+1,e=s*s,i=new Array(e+1);for(let r=0;r<=s;++r)for(let o=0;o<=s;++o){const a=r*r+o*o;if(a>e)break;let l=i[a];l||(l=[],i[a]=l),l.push(((s+r)*t+(s+o))*4+3),r>0&&l.push(((s-r)*t+(s+o))*4+3),o>0&&(l.push(((s+r)*t+(s-o))*4+3),r>0&&l.push(((s-r)*t+(s-o))*4+3))}const n=[];for(let r=0,o=i.length;ru*this.pixelRatio_),lineDashOffset:(o||Xr)*this.pixelRatio_,lineJoin:a!==void 0?a:Jh,lineWidth:(l!==void 0?l:pd)*this.pixelRatio_,miterLimit:h!==void 0?h:dd,strokeStyle:ar(i||gd)}}}setImageStyle(t){let e;if(!t||!(e=t.getSize())){this.image_=null;return}const i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*i,this.imageAnchorY_=n[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/i,o[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(!t)this.text_="";else{const e=t.getFill();if(!e)this.textFillState_=null;else{const g=e.getColor();this.textFillState_={fillStyle:ar(g||wi)}}const i=t.getStroke();if(!i)this.textStrokeState_=null;else{const g=i.getColor(),f=i.getLineCap(),p=i.getLineDash(),m=i.getLineDashOffset(),_=i.getLineJoin(),y=i.getWidth(),v=i.getMiterLimit();this.textStrokeState_={lineCap:f!==void 0?f:Kh,lineDash:p||Wr,lineDashOffset:m||Xr,lineJoin:_!==void 0?_:Jh,lineWidth:y!==void 0?y:pd,miterLimit:v!==void 0?v:dd,strokeStyle:ar(g||gd)}}const n=t.getFont(),r=t.getOffsetX(),o=t.getOffsetY(),a=t.getRotateWithView(),l=t.getRotation(),h=t.getScaleArray(),c=t.getText(),u=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:n!==void 0?n:WC,textAlign:u!==void 0?u:fd,textBaseline:d!==void 0?d:sp},this.text_=c!==void 0?Array.isArray(c)?c.reduce((g,f,p)=>g+=p%2?" ":f,""):c:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=o!==void 0?this.pixelRatio_*o:0,this.textRotateWithView_=a!==void 0?a:!1,this.textRotation_=l!==void 0?l:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}}};const Wi=.5;function sR(s,t,e,i,n,r,o,a,l){const h=l?pm(n):n,c=s[0]*Wi,u=s[1]*Wi,d=ns(c,u);d.imageSmoothingEnabled=!1;const g=d.canvas,f=new V$(d,Wi,n,null,o,a,l?vc(m3(),l):null),p=e.length,m=Math.floor((256*256*256-1)/p),_={};for(let v=1;v<=p;++v){const S=e[v-1],w=S.getStyleFunction()||i;if(!w)continue;let C=w(S,r);if(!C)continue;Array.isArray(C)||(C=[C]);const M=(v*m).toString(16).padStart(7,"#00000");for(let T=0,I=C.length;T0;return u&&Promise.all(l).then(()=>n(null)),H$(s,t,e,i,r,o,a),u}function H$(s,t,e,i,n,r,o){const a=e.getGeometryFunction()(t);if(!a)return;const l=a.simplifyTransformed(i,n);if(e.getRenderer())oR(s,l,e,t,o);else{const h=nR[l.getType()];h(s,l,e,t,o,r)}}function oR(s,t,e,i,n){if(t.getType()=="GeometryCollection"){const r=t.getGeometries();for(let o=0,a=r.length;o{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const i=this.frameState.size.slice(),n=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,l=this.wrappedRenderedExtent_,h=this.getLayer(),c=[],u=i[0]*Wi,d=i[1]*Wi;c.push(this.getRenderTransform(n,r,o,Wi,u,d,0).slice());const g=h.getSource(),f=a.getExtent();if(g.getWrapX()&&a.canWrapX()&&!ln(f,l)){let p=l[0];const m=Ht(f);let _=0,y;for(;pf[2];)++_,y=m*_,c.push(this.getRenderTransform(n,r,o,Wi,u,d,y).slice()),p-=m}this.hitDetectionImageData_=sR(i,c,this.renderedFeatures_,h.getStyleFunction(),l,r,o,A1(r,this.renderedPixelRatio_),null)}e(iR(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,i,n,r){if(!this.replayGroup_)return;const o=e.viewState.resolution,a=e.viewState.rotation,l=this.getLayer(),h={},c=function(f,p,m){const _=Lt(f),y=h[_];if(y){if(y!==!0&&mu=f.forEachFeatureAtCoordinate(t,o,a,i,c,g&&e.declutter[g]?e.declutter[g].all().map(p=>p.value):null)),u}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const n=t.viewHints[ke.ANIMATING],r=t.viewHints[ke.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&n||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=t.extent,h=t.viewState,c=h.projection,u=h.resolution,d=t.pixelRatio,g=e.getRevision(),f=e.getRenderBuffer();let p=e.getRenderOrder();p===void 0&&(p=q$);const m=h.center.slice(),_=gn(l,f*u),y=_.slice(),v=[_.slice()],S=c.getExtent();if(i.getWrapX()&&c.canWrapX()&&!ln(S,t.extent)){const E=Ht(S),b=Math.max(Ht(_)/2,E);_[0]=S[0]-b,_[2]=S[2]+b,dm(m,c);const R=oC(v[0],c);R[0]S[0]&&R[2]>S[2]&&v.push([R[0]-E,R[1],R[2]-E,R[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==g&&this.renderedRenderOrder_==p&&this.renderedFrameDeclutter_===!!t.declutter&&ln(this.wrappedRenderedExtent_,_))return ao(this.renderedExtent_,y)||(this.hitDetectionImageData_=null,this.renderedExtent_=y),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const w=new tR(rR(u,d),_,u,d);let C;for(let E=0,b=v.length;E{let R;const A=E.getStyleFunction()||e.getStyleFunction();if(A&&(R=A(E,u)),R){const $=this.renderFeature(E,M,R,w,C,this.getLayer().getDeclutter(),b);T=T&&!$}},O=pm(_),P=i.getFeaturesInExtent(O);p&&P.sort(p);for(let E=0,b=P.length;Es):null}const fi={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function rG(s,t){return[[-1/0,-1/0,1/0,1/0]]}let oG=!1;function aR(s,t,e,i,n,r,o){const a=new XMLHttpRequest;a.open("GET",typeof s=="function"?s(e,i,n):s,!0),t.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=oG,a.onload=function(l){if(!a.status||a.status>=200&&a.status<300){const h=t.getType();try{let c;h=="text"||h=="json"?c=a.responseText:h=="xml"?c=a.responseXML||a.responseText:h=="arraybuffer"&&(c=a.response),c?r(t.readFeatures(c,{extent:e,featureProjection:n}),t.readProjection(c)):o()}catch{o()}}else o()},a.onerror=o,a.send()}function fS(s,t){return function(e,i,n,r,o){const a=this;aR(s,t,e,i,n,function(l,h){a.addFeatures(l),r!==void 0&&r(l)},o||Uh)}}let So=class extends Ki{constructor(t,e,i){super(t),this.feature=e,this.features=i}},Rm=class extends Mx{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:t.wrapX!==void 0?t.wrapX:!0}),this.on,this.once,this.un,this.loader_=Uh,this.format_=t.format||null,this.overlaps_=t.overlaps===void 0?!0:t.overlaps,this.url_=t.url,t.loader!==void 0?this.loader_=t.loader:this.url_!==void 0&&(ie(this.format_,"`format` must be set when `url` is set"),this.loader_=fS(this.url_,this.format_)),this.strategy_=t.strategy!==void 0?t.strategy:rG;const e=t.useSpatialIndex!==void 0?t.useSpatialIndex:!0;this.featuresRtree_=e?new L1:null,this.loadedExtentsRtree_=new L1,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let i,n;Array.isArray(t.features)?n=t.features:t.features&&(i=t.features,n=i.getArray()),!e&&i===void 0&&(i=new ni(n)),n!==void 0&&this.addFeaturesInternal(n),i!==void 0&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=Lt(t);if(!this.addToIndex_(e,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const n=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new So(fi.ADDFEATURE,t))}setupChangeEvents_(t,e){e instanceof sn||(this.featureChangeKeys_[t]=[zt(e,_t.CHANGE,this.handleFeatureChange_,this),zt(e,Ka.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(e.getId()!==void 0){const n=String(e.getId());if(!(n in this.idIndex_))this.idIndex_[n]=e;else if(e instanceof sn){const r=this.idIndex_[n];r instanceof sn?Array.isArray(r)?r.push(e):this.idIndex_[n]=[r,e]:i=!1}else i=!1}return i&&(ie(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],n=[];for(let r=0,o=t.length;r{e||(e=!0,this.addFeature(i.element),e=!1)}),t.addEventListener(Ws.REMOVE,i=>{e||(e=!0,this.removeFeature(i.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(const i in this.featureChangeKeys_)this.featureChangeKeys_[i].forEach(fe);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const i=n=>{this.removeFeatureInternal(n)};this.featuresRtree_.forEach(i);for(const n in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new So(fi.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(n){const r=n.getGeometry();if(r instanceof sn||r.intersectsCoordinate(t))return e(n)})}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,function(i){const n=i.getGeometry();if(n instanceof sn||n.intersectsExtent(t)){const r=e(i);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),ea(this.nullGeometryFeatures_)||de(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,function(i){e.push(i)}),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const i=Oy(t,e);return[].concat(...i.map(n=>this.featuresRtree_.getInExtent(n)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],n=t[1];let r=null;const o=[NaN,NaN];let a=1/0;const l=[-1/0,-1/0,1/0,1/0];return e=e||zh,this.featuresRtree_.forEachInExtent(l,function(h){if(e(h)){const c=h.getGeometry(),u=a;if(a=c instanceof sn?0:c.closestPointXY(i,n,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new So(fi.FEATURESLOADEND,void 0,h))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new So(fi.FEATURESLOADERROR))}),n.insert(l,{extent:l.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let i;e.forEachInExtent(t,function(n){if(sa(n.extent,t))return i=n,!0}),i&&e.remove(i)}removeFeatures(t){let e=!1;for(let i=0,n=t.length;it)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){Pt()}getAlpha(t,e){if(!this.transition_)return 1;let i=this.transitionStarts_[t];if(!i)i=e,this.transitionStarts_[t]=i;else if(i===-1)return 1;const n=e-i+1e3/60;return n>=this.transition_?1:fC(n/this.transition_)}inTransition(t){return this.transition_?this.transitionStarts_[t]!==-1:!1}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}};function fp(s){return s instanceof Image||s instanceof HTMLCanvasElement||s instanceof HTMLVideoElement||s instanceof ImageBitmap?s:null}function aG(s){return s instanceof Uint8Array||s instanceof Uint8ClampedArray||s instanceof Float32Array||s instanceof DataView?s:null}const lG=new Error("disposed");let Al=null;function hG(s){Al||(Al=ns(s.width,s.height,void 0,{willReadFrequently:!0}));const t=Al.canvas,e=s.width;t.width!==e&&(t.width=e);const i=s.height;return t.height!==i&&(t.height=i),Al.clearRect(0,0,e,i),Al.drawImage(s,0,0),Al.getImageData(0,0,e,i).data}const cG=[256,256];let O1=class extends ag{constructor(t){const e=J.IDLE;super(t.tileCoord,e,{transition:t.transition,interpolate:t.interpolate}),this.loader_=t.loader,this.data_=null,this.error_=null,this.size_=t.size||null,this.controller_=t.controller||null}getSize(){if(this.size_)return this.size_;const t=fp(this.data_);return t?[t.width,t.height]:cG}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==J.IDLE&&this.state!==J.ERROR)return;this.state=J.LOADING,this.changed();const t=this;this.loader_().then(function(e){t.data_=e,t.state=J.LOADED,t.changed()}).catch(function(e){t.error_=e,t.state=J.ERROR,t.changed()})}disposeInternal(){this.controller_&&(this.controller_.abort(lG),this.controller_=null),super.disposeInternal()}};const uG=10,pS=.25;let Cx=class{constructor(t,e,i,n,r,o){this.sourceProj_=t,this.targetProj_=e;let a={};const l=hd(this.targetProj_,this.sourceProj_);this.transformInv_=function(y){const v=y[0]+"/"+y[1];return a[v]||(a[v]=l(y)),a[v]},this.maxSourceExtent_=n,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&Ht(n)>=Ht(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Ht(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Ht(this.targetProj_.getExtent()):null;const h=Vn(i),c=Jd(i),u=yc(i),d=Xh(i),g=this.transformInv_(h),f=this.transformInv_(c),p=this.transformInv_(u),m=this.transformInv_(d),_=uG+(o?Math.max(0,Math.ceil(Math.log2(ad(i)/(o*o*256*256)))):0);if(this.addQuad_(h,c,u,d,g,f,p,m,_),this.wrapsXInSource_){let y=1/0;this.triangles_.forEach(function(v,S,w){y=Math.min(y,v.source[0][0],v.source[1][0],v.source[2][0])}),this.triangles_.forEach(v=>{if(Math.max(v.source[0][0],v.source[1][0],v.source[2][0])-y>this.sourceWorldWidth_/2){const S=[[v.source[0][0],v.source[0][1]],[v.source[1][0],v.source[1][1]],[v.source[2][0],v.source[2][1]]];S[0][0]-y>this.sourceWorldWidth_/2&&(S[0][0]-=this.sourceWorldWidth_),S[1][0]-y>this.sourceWorldWidth_/2&&(S[1][0]-=this.sourceWorldWidth_),S[2][0]-y>this.sourceWorldWidth_/2&&(S[2][0]-=this.sourceWorldWidth_);const w=Math.min(S[0][0],S[1][0],S[2][0]);Math.max(S[0][0],S[1][0],S[2][0])-w.5&&u<1;let f=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const m=_i([t,e,i,n]);f=Ht(m)/this.targetWorldWidth_>pS||f}!g&&this.sourceProj_.isGlobal()&&u&&(f=u>pS||f)}if(!f&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!Ze(c,this.maxSourceExtent_))return;let p=0;if(!f&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1]))){if(h>0)f=!0;else if(p=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(a[0])||!isFinite(a[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),p!=1&&p!=2&&p!=4&&p!=8)return}if(h>0){if(!f){const m=[(t[0]+i[0])/2,(t[1]+i[1])/2],_=this.transformInv_(m);let y;g?y=(Wa(r[0],d)+Wa(a[0],d))/2-Wa(_[0],d):y=(r[0]+a[0])/2-_[0];const v=(r[1]+a[1])/2-_[1];f=y*y+v*v>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const m=[(e[0]+i[0])/2,(e[1]+i[1])/2],_=this.transformInv_(m),y=[(n[0]+t[0])/2,(n[1]+t[1])/2],v=this.transformInv_(y);this.addQuad_(t,e,m,y,r,o,_,v,h-1),this.addQuad_(y,m,i,n,v,_,a,l,h-1)}else{const m=[(t[0]+e[0])/2,(t[1]+e[1])/2],_=this.transformInv_(m),y=[(i[0]+n[0])/2,(i[1]+n[1])/2],v=this.transformInv_(y);this.addQuad_(t,m,y,n,r,_,v,l,h-1),this.addQuad_(m,e,i,y,_,o,a,v,h-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}p&11||this.addTriangle_(t,i,n,r,a,l),p&14||this.addTriangle_(t,i,e,r,a,o),p&&(p&13||this.addTriangle_(e,n,t,o,l,r),p&7||this.addTriangle_(e,n,i,o,l,a))}calculateSourceExtent(){const t=Zi();return this.triangles_.forEach(function(e,i,n){const r=e.source;Lu(t,r[0]),Lu(t,r[1]),Lu(t,r[2])}),t}getTriangles(){return this.triangles_}},t_;const qr=[];function mS(s,t,e,i,n){s.beginPath(),s.moveTo(0,0),s.lineTo(t,e),s.lineTo(i,n),s.closePath(),s.save(),s.clip(),s.fillRect(0,0,Math.max(t,i)+1,Math.max(e,n)),s.restore()}function e_(s,t){return Math.abs(s[t*4]-210)>2||Math.abs(s[t*4+3]-.75*255)>2}function dG(){if(t_===void 0){const s=ns(6,6,qr);s.globalCompositeOperation="lighter",s.fillStyle="rgba(210, 0, 0, 0.75)",mS(s,4,5,4,0),mS(s,4,5,0,5);const t=s.getImageData(0,0,3,3).data;t_=e_(t,0)||e_(t,4)||e_(t,8),Qa(s),qr.push(s.canvas)}return t_}function xd(s,t,e,i){const n=Qd(e,t,s);let r=Yh(t,i,e);const o=t.getMetersPerUnit();o!==void 0&&(r*=o);const a=s.getMetersPerUnit();a!==void 0&&(r/=a);const l=s.getExtent();if(!l||Ja(l,n)){const h=Yh(s,r,n)/r;isFinite(h)&&h>0&&(r/=h)}return r}function lR(s,t,e,i){const n=mr(e);let r=xd(s,t,n,i);return(!isFinite(r)||r<=0)&&Ly(e,function(o){return r=xd(s,t,o,i),isFinite(r)&&r>0}),r}function Tx(s,t,e,i,n,r,o,a,l,h,c,u,d,g){const f=ns(Math.round(e*s),Math.round(e*t),qr);if(u||(f.imageSmoothingEnabled=!1),l.length===0)return f.canvas;f.scale(e,e);function p(w){return Math.round(w*e)/e}f.globalCompositeOperation="lighter";const m=Zi();l.forEach(function(w,C,M){nC(m,w.extent)});let _;const y=e/i,v=(u?1:1+Math.pow(2,-24))/y;if(!d||l.length!==1||h!==0){if(_=ns(Math.round(Ht(m)*y),Math.round(as(m)*y),qr),u||(_.imageSmoothingEnabled=!1),n&&g){const w=(n[0]-m[0])*y,C=-(n[3]-m[3])*y,M=Ht(n)*y,T=as(n)*y;_.rect(w,C,M,T),_.clip()}l.forEach(function(w,C,M){if(w.image.width>0&&w.image.height>0){if(w.clipExtent){_.save();const D=(w.clipExtent[0]-m[0])*y,x=-(w.clipExtent[3]-m[3])*y,E=Ht(w.clipExtent)*y,b=as(w.clipExtent)*y;_.rect(u?D:Math.round(D),u?x:Math.round(x),u?E:Math.round(D+E)-Math.round(D),u?b:Math.round(x+b)-Math.round(x)),_.clip()}const T=(w.extent[0]-m[0])*y,I=-(w.extent[3]-m[3])*y,O=Ht(w.extent)*y,P=as(w.extent)*y;_.drawImage(w.image,h,h,w.image.width-2*h,w.image.height-2*h,u?T:Math.round(T),u?I:Math.round(I),u?O:Math.round(T+O)-Math.round(T),u?P:Math.round(I+P)-Math.round(I)),w.clipExtent&&_.restore()}})}const S=Vn(o);return a.getTriangles().forEach(function(w,C,M){const T=w.source,I=w.target;let O=T[0][0],P=T[0][1],D=T[1][0],x=T[1][1],E=T[2][0],b=T[2][1];const R=p((I[0][0]-S[0])/r),A=p(-(I[0][1]-S[1])/r),$=p((I[1][0]-S[0])/r),G=p(-(I[1][1]-S[1])/r),k=p((I[2][0]-S[0])/r),z=p(-(I[2][1]-S[1])/r),V=O,et=P;O=0,P=0,D-=V,x-=et,E-=V,b-=et;const F=[[D,x,0,0,$-R],[E,b,0,0,k-R],[0,0,D,x,G-A],[0,0,E,b,z-A]],ot=VF(F);if(!ot)return;if(f.save(),f.beginPath(),dG()||!u){f.moveTo($,G);const pt=4,Gt=R-$,Kt=A-G;for(let bt=0;btPromise.resolve(new Uint8ClampedArray(4)),interpolate:t.interpolate,transition:t.transition}),this.pixelRatio_=t.pixelRatio,this.gutter_=t.gutter,this.reprojData_=null,this.reprojError_=null,this.reprojSize_=void 0,this.sourceTileGrid_=t.sourceTileGrid,this.targetTileGrid_=t.targetTileGrid,this.wrappedTileCoord_=t.wrappedTileCoord||t.tileCoord,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const e=t.sourceProj,i=e.getExtent(),n=t.sourceTileGrid.getExtent();this.clipExtent_=e.canWrapX()?n?ri(i,n):i:n;const r=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),o=this.targetTileGrid_.getExtent();let a=this.sourceTileGrid_.getExtent();const l=o?ri(r,o):r;if(ad(l)===0){this.state=J.EMPTY;return}i&&(a?a=ri(a,i):a=i);const h=this.targetTileGrid_.getResolution(this.wrappedTileCoord_[0]),c=t.targetProj,u=lR(e,c,l,h);if(!isFinite(u)||u<=0){this.state=J.EMPTY;return}const d=t.errorThreshold!==void 0?t.errorThreshold:bx;if(this.triangulation_=new Cx(e,c,l,a,u*d,h),this.triangulation_.getTriangles().length===0){this.state=J.EMPTY;return}this.sourceZ_=this.sourceTileGrid_.getZForResolution(u);let g=this.triangulation_.calculateSourceExtent();if(a&&(e.canWrapX()?(g[1]=Te(g[1],a[1],a[3]),g[3]=Te(g[3],a[1],a[3])):g=ri(g,a)),!ad(g))this.state=J.EMPTY;else{let f=0,p=0;e.canWrapX()&&(f=Ht(i),p=Math.floor((g[0]-i[0])/f)),Oy(g.slice(),e,!0).forEach(m=>{const _=this.sourceTileGrid_.getTileRangeForExtentAndZ(m,this.sourceZ_),y=t.getTileFunction;for(let v=_.minX;v<=_.maxX;v++)for(let S=_.minY;S<=_.maxY;S++){const w=y(this.sourceZ_,v,S,this.pixelRatio_);if(w){const C=p*f;this.sourceTiles_.push({tile:w,offset:C})}}++p}),this.sourceTiles_.length===0&&(this.state=J.EMPTY)}}getSize(){return this.reprojSize_}getData(){return this.reprojData_}getError(){return this.reprojError_}reproject_(){const t=[];let e=!1;if(this.sourceTiles_.forEach(f=>{var p;const m=f.tile;if(!m||m.getState()!==J.LOADED)return;const _=m.getSize(),y=this.gutter_;let v;const S=aG(m.getData());S?v=S:(e=!0,v=hG(fp(m.getData())));const w=[_[0]+2*y,_[1]+2*y],C=v instanceof Float32Array,M=w[0]*w[1],T=C?Float32Array:Uint8ClampedArray,I=new T(v.buffer),O=T.BYTES_PER_ELEMENT,P=O*I.length/M,D=I.byteLength/w[1],x=Math.floor(D/O/w[0]),E=M*x;let b=I;if(I.length!==E){b=new T(E);let $=0,G=0;const k=w[0]*x;for(let z=0;z=0;--f){const p=[];for(let w=0,C=t.length;w{const i=e.getState();if(i!==J.IDLE&&i!==J.LOADING)return;t++;const n=zt(e,_t.CHANGE,()=>{const r=e.getState();(r==J.LOADED||r==J.ERROR||r==J.EMPTY)&&(fe(n),t--,t===0&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(n)}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:e}){e.getState()==J.IDLE&&e.load()})}unlistenSources_(){this.sourcesListenerKeys_.forEach(fe),this.sourcesListenerKeys_=null}},hR=class extends ag{constructor(t,e,i,n,r,o,a,l,h,c,u,d){super(r,J.IDLE,d),this.renderEdges_=u!==void 0?u:!1,this.pixelRatio_=a,this.gutter_=l,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=n,this.wrappedTileCoord_=o||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=t.canWrapX()?t.getExtent():void 0;const g=n.getTileCoordExtent(this.wrappedTileCoord_),f=this.targetTileGrid_.getExtent();let p=this.sourceTileGrid_.getExtent();const m=f?ri(g,f):g;if(ad(m)===0){this.state=J.EMPTY;return}const _=t.getExtent();_&&(p?p=ri(p,_):p=_);const y=n.getResolution(this.wrappedTileCoord_[0]),v=lR(t,i,m,y);if(!isFinite(v)||v<=0){this.state=J.EMPTY;return}const S=c!==void 0?c:bx;if(this.triangulation_=new Cx(t,i,m,p,v*S,y),this.triangulation_.getTriangles().length===0){this.state=J.EMPTY;return}this.sourceZ_=e.getZForResolution(v);let w=this.triangulation_.calculateSourceExtent();if(p&&(t.canWrapX()?(w[1]=Te(w[1],p[1],p[3]),w[3]=Te(w[3],p[1],p[3])):w=ri(w,p)),!ad(w))this.state=J.EMPTY;else{let C=0,M=0;t.canWrapX()&&(C=Ht(_),M=Math.floor((w[0]-_[0])/C)),Oy(w.slice(),t,!0).forEach(T=>{const I=e.getTileRangeForExtentAndZ(T,this.sourceZ_);for(let O=I.minX;O<=I.maxX;O++)for(let P=I.minY;P<=I.maxY;P++){const D=h(this.sourceZ_,O,P,a);if(D){const x=M*C;this.sourceTiles_.push({tile:D,offset:x})}}++M}),this.sourceTiles_.length===0&&(this.state=J.EMPTY)}}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach(e=>{var i;const n=e.tile;if(n&&n.getState()==J.LOADED){const r=this.sourceTileGrid_.getTileCoordExtent(n.tileCoord);r[0]+=e.offset,r[2]+=e.offset;const o=(i=this.clipExtent_)==null?void 0:i.slice();o&&(o[0]+=e.offset,o[2]+=e.offset),t.push({extent:r,clipExtent:o,image:n.getImage()})}}),this.sourceTiles_.length=0,t.length===0)this.state=J.ERROR;else{const e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n=typeof i=="number"?i:i[0],r=typeof i=="number"?i:i[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Tx(n,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=J.LOADED}this.changed()}load(){if(this.state==J.IDLE){this.state=J.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(({tile:e})=>{const i=e.getState();if(i==J.IDLE||i==J.LOADING){t++;const n=zt(e,_t.CHANGE,r=>{const o=e.getState();(o==J.LOADED||o==J.ERROR||o==J.EMPTY)&&(fe(n),t--,t===0&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(n)}}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:e},i,n){e.getState()==J.IDLE&&e.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(fe),this.sourcesListenerKeys_=null}release(){this.canvas_&&(Qa(this.canvas_.getContext("2d")),qr.push(this.canvas_),this.canvas_=null),super.release()}},cR=class extends ag{constructor(t,e,i,n,r,o){super(t,e,o),this.crossOrigin_=n,this.src_=i,this.key=i,this.image_=new Image,n!==null&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=J.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=J.ERROR,this.unlistenImage_(),this.image_=fG(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=J.LOADED:this.state=J.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==J.ERROR&&(this.state=J.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==J.IDLE&&(this.state=J.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=fN(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}};function fG(){const s=ns(1,1);return s.fillStyle="rgba(0,0,0,0)",s.fillRect(0,0,1,1),s.canvas}let uR=class{constructor(t){this.highWaterMark=t!==void 0?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const i=this.entries_[t];return ie(i!==void 0,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(t){const e=this.entries_[t];return ie(e!==void 0,"Tried to get a value for a key that does not exist in the cache"),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e=0,i;for(i=this.newest_;i;i=i.older)t[e++]=i.key_;return t}getValues(){const t=new Array(this.count_);let e=0,i;for(i=this.newest_;i;i=i.older)t[e++]=i.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){var e;return(e=this.entries_[t])==null?void 0:e.value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){ie(!(t in this.entries_),"Tried to set a value for a key that is used already");const i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_}setSize(t){this.highWaterMark=t}},Rx=class{constructor(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}};function Ll(s,t,e,i,n){return n!==void 0?(n.minX=s,n.maxX=t,n.minY=e,n.maxY=i,n):new Rx(s,t,e,i)}function pp(s,t,e,i){return i!==void 0?(i[0]=s,i[1]=t,i[2]=e,i):[s,t,e]}function lg(s,t,e){return s+"/"+t+"/"+e}function dR(s){return lg(s[0],s[1],s[2])}function pG(s){const[t,e,i]=s.substring(s.lastIndexOf("/")+1,s.length).split(",").map(Number);return lg(t,e,i)}function mG(s){return s.split("/").map(Number)}function gR(s){return _G(s[0],s[1],s[2])}function _G(s,t,e){return(t<e||e>t.getMaxZoom())return!1;const r=t.getFullTileRange(e);return r?r.containsXY(i,n):!0}let xG=class extends eg{constructor(t){t=t||{},super(t)}},vG=class extends Sx{constructor(t){super(t),this.image=null}getImage(){return this.image?this.image.getImage():null}prepareFrame(t){const e=t.layerStatesArray[t.layerIndex],i=t.pixelRatio,n=t.viewState,r=n.resolution,o=this.getLayer().getSource(),a=t.viewHints;let l=t.extent;if(e.extent!==void 0&&(l=ri(l,hn(e.extent,n.projection))),!a[ke.ANIMATING]&&!a[ke.INTERACTING]&&!xc(l))if(o){const h=n.projection,c=o.getImage(l,r,i,h);c&&(this.loadImage(c)?this.image=c:c.getState()===ct.EMPTY&&(this.image=null))}else this.image=null;return!!this.image}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=ps(e.pixelToCoordinateTransform,t.slice()),r=i.getExtent();if(r&&!Ja(r,n))return null;const o=this.image.getExtent(),a=this.image.getImage(),l=Ht(o),h=Math.floor(a.width*((n[0]-o[0])/l));if(h<0||h>=a.width)return null;const c=as(o),u=Math.floor(a.height*((o[3]-n[1])/c));return u<0||u>=a.height?null:this.getImageData(a,h,u)}renderFrame(t,e){const i=this.image,n=i.getExtent(),r=i.getResolution(),[o,a]=Array.isArray(r)?r:[r,r],l=i.getPixelRatio(),h=t.layerStatesArray[t.layerIndex],c=t.pixelRatio,u=t.viewState,d=u.center,g=u.resolution,f=c*o/(g*l),p=c*a/(g*l);this.prepareContainer(t,e);const m=this.context.canvas.width,_=this.context.canvas.height,y=this.getRenderContext(t);let v=!1,S=!0;if(h.extent){const I=hn(h.extent,u.projection);S=Ze(I,t.extent),v=S&&!ln(I,t.extent),v&&this.clipUnrotated(y,t,I)}const w=i.getImage(),C=_r(this.tempTransform,m/2,_/2,f,p,0,l*(n[0]-d[0])/o,l*(d[1]-n[3])/a);this.renderedResolution=a*c/l;const M=w.width*C[0],T=w.height*C[3];if(this.getLayer().getSource().getInterpolate()||(y.imageSmoothingEnabled=!1),this.preRender(y,t),S&&M>=.5&&T>=.5){const I=C[4],O=C[5],P=h.opacity;P!==1&&(y.save(),y.globalAlpha=P),y.drawImage(w,0,0,+w.width,+w.height,I,O,M,T),P!==1&&y.restore()}return this.postRender(this.context,t),v&&y.restore(),y.imageSmoothingEnabled=!0,this.container}},wG=class extends xG{constructor(t){super(t)}createRenderer(){return new vG(this)}getData(t){return super.getData(t)}};const Bo={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};let EG=class extends eg{constructor(t){t=t||{};const e=Object.assign({},t),i=t.cacheSize;delete t.cacheSize,delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.cacheSize_=i,this.setPreload(t.preload!==void 0?t.preload:0),this.setUseInterimTilesOnError(t.useInterimTilesOnError!==void 0?t.useInterimTilesOnError:!0)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(Bo.PRELOAD)}setPreload(t){this.set(Bo.PRELOAD,t)}getUseInterimTilesOnError(){return this.get(Bo.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(t){this.set(Bo.USE_INTERIM_TILES_ON_ERROR,t)}getData(t){return super.getData(t)}};function s_(s,t,e,i){return`${s},${lg(t,e,i)}`}function i_(s,t,e){if(!(e in s))return s[e]=new Set([t]),!0;const i=s[e],n=i.has(t);return n||i.add(t),!n}function SG(s,t,e){const i=s[e];return i?i.delete(t):!1}function _S(s,t){const e=s.layerStatesArray[s.layerIndex];e.extent&&(t=ri(t,hn(e.extent,s.viewState.projection)));const i=e.layer.getRenderSource();if(!i.getWrapX()){const n=i.getTileGridForProjection(s.viewState.projection).getExtent();n&&(t=ri(t,n))}return t}let fR=class extends Sx{constructor(t,e){super(t),e=e||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=Zi(),this.tempTileRange_=new Rx(0,0,0,0),this.tempTileCoord_=pp(0,0,0);const i=e.cacheSize!==void 0?e.cacheSize:512;this.tileCache_=new uR(i),this.maxStaleKeys=i*.5}getTileCache(){return this.tileCache_}getOrCreateTile(t,e,i,n){const r=this.tileCache_,o=this.getLayer().getSource(),a=s_(o.getKey(),t,e,i);let l;if(r.containsKey(a))l=r.get(a);else{if(l=o.getTile(t,e,i,n.pixelRatio,n.viewState.projection),!l)return null;r.set(a,l)}return l}getTile(t,e,i,n){return this.getOrCreateTile(t,e,i,n)||null}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=ps(e.pixelToCoordinateTransform,t.slice()),r=i.getExtent();if(r&&!Ja(r,n))return null;const o=e.viewState,a=i.getRenderSource(),l=a.getTileGridForProjection(o.projection),h=a.getTilePixelRatio(e.pixelRatio);for(let c=l.getZForResolution(o.resolution);c>=l.getMinZoom();--c){const u=l.getTileCoordForCoordAndZ(n,c),d=this.getTile(c,u[1],u[2],e);if(!d||d.getState()!==J.LOADED)continue;const g=l.getOrigin(c),f=Xs(l.getTileSize(c)),p=l.getResolution(c);let m;if(d instanceof cR)m=d.getImage();else if(d instanceof O1){if(m=fp(d.getData()),!m)continue}else continue;const _=Math.floor(h*((n[0]-g[0])/p-u[1]*f[0])),y=Math.floor(h*((g[1]-n[1])/p-u[2]*f[1])),v=Math.round(h*a.getGutterForProjection(o.projection));return this.getImageData(m,_+v,y+v)}return null}prepareFrame(t){const e=this.getLayer().getSource();if(!e)return!1;const i=this.getLayer().getSource().getRevision();return this.renderedRevision_?this.renderedRevision_!==i&&(this.renderedRevision_=i,this.renderedSourceKey_===e.getKey()&&this.tileCache_.clear()):this.renderedRevision_=i,!0}enqueueTiles(t,e,i,n,r){const o=t.viewState,a=this.getLayer(),l=a.getRenderSource(),h=l.getTileGridForProjection(o.projection),c=Lt(l);c in t.wantedTiles||(t.wantedTiles[c]={});const u=t.wantedTiles[c],d=a.getMapInternal(),g=Math.max(i-r,h.getMinZoom(),h.getZForResolution(Math.min(a.getMaxResolution(),d?d.getView().getResolutionForZoom(Math.max(a.getMinZoom(),0)):h.getResolution(0)),l.zDirection));for(let f=i;f>=g;--f){const p=h.getTileRangeForExtentAndZ(e,f,this.tempTileRange_),m=h.getResolution(f);for(let _=p.minX;_<=p.maxX;++_)for(let y=p.minY;y<=p.maxY;++y){const v=this.getTile(f,_,y,t);if(!v||!i_(n,v,f))continue;const S=v.getKey();if(u[S]=!0,v.getState()===J.IDLE&&!t.tileQueue.isKeyQueued(S)){const w=pp(f,_,y,this.tempTileCoord_);t.tileQueue.enqueue([v,c,h.getTileCoordCenter(w),m])}}}}findStaleTile_(t,e){const i=this.tileCache_,n=t[0],r=t[1],o=t[2],a=this.getStaleKeys();for(let l=0;l0&&setTimeout(()=>{this.enqueueTiles(t,O,g-1,T,I-1)},0);const P=Lt(this),D=t.time;for(const k of T[g]){const z=k.getState();if((k instanceof hR||k instanceof gG)&&z===J.EMPTY)continue;const V=k.tileCoord;if(z===J.LOADED&&k.getAlpha(P,D)===1){k.endTransition(P);continue}if(this.renderComplete=!1,this.findStaleTile_(V,T)){SG(T,k,g),t.animate=!0;continue}if(this.findAltTiles_(d,V,g+1,T))continue;const et=d.getMinZoom();for(let F=g-1;F>=et&&!this.findAltTiles_(d,V,F,T);--F);}const x=f/o*l/_,E=this.getRenderContext(t);_r(this.tempTransform,y/2,v/2,x,x,0,-y/2,-v/2),i.extent&&this.clipUnrotated(E,t,S),c.getInterpolate()||(E.imageSmoothingEnabled=!1),this.preRender(E,t),this.renderedTiles.length=0;const b=Object.keys(T).map(Number);b.sort(dr);let R;const A=[],$=[];for(let k=b.length-1;k>=0;--k){const z=b[k],V=c.getTilePixelSize(z,l,r),et=d.getResolution(z)/f,F=V[0]*et*x,ot=V[1]*et*x,ht=d.getTileCoordForCoordAndZ(Vn(M),z),pt=d.getTileCoordExtent(ht),Gt=ps(this.tempTransform,[_*(pt[0]-M[0])/f,_*(M[3]-pt[3])/f]),Kt=_*c.getGutterForProjection(r);for(const bt of T[z]){if(bt.getState()!==J.LOADED)continue;const oe=bt.tileCoord,Pe=ht[1]-oe[1],hs=Math.round(Gt[0]-(Pe-1)*F),rs=ht[2]-oe[2],Ge=Math.round(Gt[1]-(rs-1)*ot),ve=Math.round(Gt[0]-Pe*F),Ke=Math.round(Gt[1]-rs*ot),Ni=hs-ve,Di=Ge-Ke,Mn=b.length===1;let Ks=!1;R=[ve,Ke,ve+Ni,Ke,ve+Ni,Ke+Di,ve,Ke+Di];for(let ki=0,$i=A.length;ki<$i;++ki)if(!Mn&&z<$[ki]){const Jt=A[ki];Ze([ve,Ke,ve+Ni,Ke+Di],[Jt[0],Jt[3],Jt[4],Jt[7]])&&(Ks||(E.save(),Ks=!0),E.beginPath(),E.moveTo(R[0],R[1]),E.lineTo(R[2],R[3]),E.lineTo(R[4],R[5]),E.lineTo(R[6],R[7]),E.moveTo(Jt[6],Jt[7]),E.lineTo(Jt[4],Jt[5]),E.lineTo(Jt[2],Jt[3]),E.lineTo(Jt[0],Jt[1]),E.clip())}A.push(R),$.push(z),this.drawTile(bt,t,ve,Ke,Ni,Di,Kt,Mn),Ks&&E.restore(),this.renderedTiles.unshift(bt),this.updateUsedTiles(t.usedTiles,c,bt)}}this.renderedRevision=u,this.renderedResolution=f,this.extentChanged=!this.renderedExtent_||!sa(this.renderedExtent_,M),this.renderedExtent_=M,this.renderedPixelRatio=l,this.renderedProjection=r,this.postRender(this.context,t),i.extent&&E.restore(),E.imageSmoothingEnabled=!0;const G=(k,z)=>{const V=Lt(c),et=z.wantedTiles[V],F=et?Object.keys(et).length:0;this.updateCacheSize(F),this.tileCache_.expireCache()};return t.postRenderFunctions.push(G),this.container}updateCacheSize(t){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,t*2)}drawTile(t,e,i,n,r,o,a,l){let h;if(t instanceof O1){if(h=fp(t.getData()),!h)throw new Error("Rendering array data is not yet supported")}else h=this.getTileImage(t);if(!h)return;const c=this.getRenderContext(e),u=Lt(this),d=e.layerStatesArray[e.layerIndex],g=d.opacity*(l?t.getAlpha(u,e.time):1),f=g!==c.globalAlpha;f&&(c.save(),c.globalAlpha=g),c.drawImage(h,a,a,h.width-2*a,h.height-2*a,i,n,r,o),f&&c.restore(),g!==d.opacity?e.animate=!0:l&&t.endTransition(u)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}updateUsedTiles(t,e,i){const n=Lt(e);n in t||(t[n]={}),t[n][i.getKey()]=!0}},MG=class extends EG{constructor(t){super(t)}createRenderer(){return new fR(this,{cacheSize:this.getCacheSize()})}};function F1(s){return Array.isArray(s)?Math.min(...s):s}const bG={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},yS={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};let CG=class extends fR{constructor(t,e){super(t,e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.renderedOpacity_=1,this.tmpTransform_=fn(),this.tileClipContexts_=null}drawTile(t,e,i,n,r,o,a,l){this.updateExecutorGroup_(t,e.pixelRatio,e.viewState.projection),this.tileImageNeedsRender_(t)&&this.renderTileImage_(t,e),super.drawTile(t,e,i,n,r,o,a,l)}getTile(t,e,i,n){const r=this.getOrCreateTile(t,e,i,n);if(!r)return null;const o=n.viewState.resolution,a=n.viewHints;return(!(a[ke.ANIMATING]||a[ke.INTERACTING])||!r.wantedResolution)&&(r.wantedResolution=o),r}prepareFrame(t){const e=this.getLayer().getRevision();return this.renderedLayerRevision_!==e&&(this.renderedLayerRevision_=e,this.renderedTiles.length=0),super.prepareFrame(t)}updateExecutorGroup_(t,e,i){const n=this.getLayer(),r=n.getRevision(),o=n.getRenderOrder()||null,a=t.wantedResolution,l=t.getReplayState(n);if(!l.dirty&&l.renderedResolution===a&&l.renderedRevision==r&&l.renderedRenderOrder==o)return;const h=n.getSource(),c=!!n.getDeclutter(),u=h.getTileGrid(),d=h.getTileGridForProjection(i).getTileCoordExtent(t.wrappedTileCoord),g=h.getSourceTiles(e,i,t),f=Lt(n);delete t.hitDetectionImageData[f],t.executorGroups[f]=[],l.dirty=!1;for(let p=0,m=g.length;p{const M=w?e.declutter[w].all().map(T=>T.value):null;for(let T=0,I=C.length;T{const n=this.getLayer(),r=Lt(n),o=n.getSource(),a=this.renderedProjection,l=a.getExtent(),h=this.renderedResolution,c=o.getTileGridForProjection(a),u=ps(this.renderedPixelToCoordinateTransform_,t.slice()),d=c.getTileCoordForCoordAndResolution(u,h);let g;for(let v=0,S=this.renderedTiles.length;v0){e([]);return}const f=c.getTileCoordExtent(g.wrappedTileCoord),p=Vn(f),m=[(u[0]-p[0])/h,(p[1]-u[1])/h],_=g.getSourceTiles().reduce(function(v,S){return v.concat(S.getFeatures())},[]);let y=g.hitDetectionImageData[r];if(!y){const v=Xs(c.getTileSize(c.getZForResolution(h,o.zDirection))),S=this.renderedRotation_,w=[this.getRenderTransform(c.getTileCoordCenter(g.wrappedTileCoord),h,0,Wi,v[0]*Wi,v[1]*Wi,0)];y=sR(v,w,_,n.getStyleFunction(),c.getTileCoordExtent(g.wrappedTileCoord),g.getReplayState(n).renderedResolution,S),g.hitDetectionImageData[r]=y}e(iR(m,_,y))})}getFeaturesInExtent(t){const e=[],i=this.getTileCache();if(i.getCount()===0)return e;const n=this.getLayer().getSource().tileGrid,r=n.getZForResolution(this.renderedResolution);return i.forEach(o=>{if(o.tileCoord[0]!==r||o.getState()!==J.LOADED)return;const a=o.getSourceTiles();for(let l=0,h=a.length;l=0;--g)u[g].execute(this.context,[this.context.canvas.width,this.context.canvas.height],this.getTileRenderTransform(c,t),t.viewState.rotation,o,dp,d?t.declutter[d]:void 0)}i.globalAlpha=n}renderDeferredInternal(t){const e=this.renderedTiles.reduce((r,o,a)=>(o.executorGroups[Lt(this.getLayer())].forEach(l=>r.push({executorGroup:l,index:a})),r),[]),i=e.map(({executorGroup:r})=>r.getDeferredZIndexContexts()),n={};for(let r=0,o=e.length;r{i.forEach((o,a)=>{o[r]&&(o[r].forEach(l=>{const{executorGroup:h,index:c}=e[a],u=h.getRenderedContext(),d=u.globalAlpha;u.globalAlpha=this.renderedOpacity_;const g=this.tileClipContexts_[c];g&&g.draw(u),l.draw(u),g&&u.restore(),u.globalAlpha=d,l.clear()}),o[r].length=0)})})}getTileRenderTransform(t,e){const i=e.pixelRatio,n=e.viewState,r=n.center,o=n.resolution,a=n.rotation,l=e.size,h=Math.round(l[0]*i),c=Math.round(l[1]*i),u=this.getLayer().getSource().getTileGridForProjection(e.viewState.projection),d=t.tileCoord,g=u.getTileCoordExtent(t.wrappedTileCoord),f=u.getTileCoordExtent(d,this.tempExtent)[0]-g[0];return zy(F0(this.inversePixelTransform.slice(),1/i,1/i),this.getRenderTransform(r,o,a,i,h,c,f))}postRender(t,e){var i;const n=e.viewHints,r=!(n[ke.ANIMATING]||n[ke.INTERACTING]);this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation,this.renderedOpacity_=e.layerStatesArray[e.layerIndex].opacity;const o=this.getLayer(),a=o.getRenderMode(),l=t.globalAlpha;t.globalAlpha=this.renderedOpacity_;const h=o.getDeclutter(),c=h?yS[a].filter(S=>!dp.includes(S)):yS[a],u=e.viewState,d=u.rotation,g=o.getSource(),f=g.getTileGridForProjection(u.projection).getZForResolution(u.resolution,g.zDirection),p=this.renderedTiles,m=[],_=[],y=[];let v=!0;for(let S=p.length-1;S>=0;--S){const w=p[S];v=v&&!w.getReplayState(o).dirty;const C=w.executorGroups[Lt(o)].filter(x=>x.hasExecutors(c));if(C.length===0)continue;const M=this.getTileRenderTransform(w,e),T=w.tileCoord[0];let I=!1;const O=C[0].getClipCoords(M);let P=t,D;if(O){D=new Ex,P=D.getContext();for(let x=0,E=m.length;x0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;const t=this.peekFirstKey(),e=mG(t)[0];this.forEach(i=>{i.tileCoord[0]!==e&&(this.remove(dR(i.tileCoord)),i.release())})}};const n_={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},Ol=[0,0,0],Mo=5;let Im=class{constructor(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,ie(UF(this.resolutions_,(n,r)=>r-n),"`resolutions` must be sorted in descending order");let e;if(!t.origins){for(let n=0,r=this.resolutions_.length-1;n{const o=new Rx(Math.min(0,n[0]),Math.max(n[0]-1,-1),Math.min(0,n[1]),Math.max(n[1]-1,-1));if(i){const a=this.getTileRangeForExtentAndZ(i,r);o.minX=Math.max(a.minX,o.minX),o.maxX=Math.min(a.maxX,o.maxX),o.minY=Math.max(a.minY,o.minY),o.maxY=Math.min(a.maxY,o.maxY)}return o}):i&&this.calculateTileRanges_(i)}forEachTileCoord(t,e,i){const n=this.getTileRangeForExtentAndZ(t,e);for(let r=n.minX,o=n.maxX;r<=o;++r)for(let a=n.minY,l=n.maxY;a<=l;++a)i([e,r,a])}forEachTileCoordParentTileRange(t,e,i,n){let r,o,a,l=null,h=t[0]-1;for(this.zoomFactor_===2?(o=t[1],a=t[2]):l=this.getTileCoordExtent(t,n);h>=this.minZoom;){if(o!==void 0&&a!==void 0?(o=Math.floor(o/2),a=Math.floor(a/2),r=Ll(o,o,a,a,i)):r=this.getTileRangeForExtentAndZ(l,h,i),e(h,r))return!0;--h}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,i){if(t[0]this.maxZoom||e0?i:Math.max(r/e[0],n/e[1]);const o=t+1,a=new Array(o);for(let l=0;lthis.getTileInternal(m,_,y,v,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return p.key=u,h?a.replace(c,p):a.set(c,p),p}getTileInternal(t,e,i,n,r){const o=lg(t,e,i),a=this.getKey();if(!this.tileCache.containsKey(o)){const h=this.createTile_(t,e,i,n,r,a);return this.tileCache.set(o,h),h}let l=this.tileCache.get(o);return l.key!=a&&(l=this.createTile_(t,e,i,n,r,a),this.tileCache.replace(o,l)),l}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(t,e){const i=Bt(t);if(i){const n=Lt(i);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}};function jG(s,t){s.getImage().src=t}let wR=class extends Ax{constructor(t){t=t||{};const e=t.projection!==void 0?t.projection:"EPSG:3857",i=t.tileGrid!==void 0?t.tileGrid:Px({extent:Pm(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}},zG=class extends jC{constructor(t,e,i,n,r,o,a){let l=t.getExtent();l&&t.canWrapX()&&(l=l.slice(),l[0]=-1/0,l[2]=1/0);let h=e.getExtent();h&&e.canWrapX()&&(h=h.slice(),h[0]=-1/0,h[2]=1/0);const c=h?ri(i,h):i,u=mr(c),d=xd(t,e,u,n),g=bx,f=new Cx(t,e,c,l,d*g,n),p=f.calculateSourceExtent(),m=xc(p)?null:o(p,d,r),_=m?ct.IDLE:ct.EMPTY,y=m?m.getPixelRatio():1;super(i,n,y,_),this.targetProj_=e,this.maxSourceExtent_=l,this.triangulation_=f,this.targetResolution_=n,this.targetExtent_=i,this.sourceImage_=m,this.sourcePixelRatio_=y,this.interpolate_=a,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==ct.LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const t=this.sourceImage_.getState();if(t==ct.LOADED){const e=Ht(this.targetExtent_)/this.targetResolution_,i=as(this.targetExtent_)/this.targetResolution_;this.canvas_=Tx(e,i,this.sourcePixelRatio_,F1(this.sourceImage_.getResolution()),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_,!0)}this.state=t,this.changed()}load(){if(this.state==ct.IDLE){this.state=ct.LOADING,this.changed();const t=this.sourceImage_.getState();t==ct.LOADED||t==ct.ERROR?this.reproject_():(this.sourceListenerKey_=zt(this.sourceImage_,_t.CHANGE,e=>{const i=this.sourceImage_.getState();(i==ct.LOADED||i==ct.ERROR)&&(this.unlistenSource_(),this.reproject_())}),this.sourceImage_.load())}}unlistenSource_(){fe(this.sourceListenerKey_),this.sourceListenerKey_=null}};const Wo=4,r_={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"};let UG=class extends Ki{constructor(t,e){super(t),this.image=e}},BG=class extends Mx{constructor(t){super({attributions:t.attributions,projection:t.projection,state:t.state,interpolate:t.interpolate!==void 0?t.interpolate:!0}),this.on,this.once,this.un,this.loader=t.loader||null,this.resolutions_=t.resolutions!==void 0?t.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0,this.image=null,this.wantedExtent_,this.wantedResolution_,this.static_=t.loader?t.loader.length===0:!1,this.wantedProjection_=null}getResolutions(){return this.resolutions_}setResolutions(t){this.resolutions_=t}findNearestResolution(t){const e=this.getResolutions();if(e){const i=cm(e,t,0);t=e[i]}return t}getImage(t,e,i,n){const r=this.getProjection();if(!r||!n||$o(r,n))return r&&(n=r),this.getImageInternal(t,e,i,n);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&$o(this.reprojectedImage_.getProjection(),n)&&this.reprojectedImage_.getResolution()==e&&sa(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new zG(r,n,t,e,i,(o,a,l)=>this.getImageInternal(o,a,l,r),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(t,e,i,n){if(this.loader){const r=ER(t,e,i,1),o=this.findNearestResolution(e);if(this.image&&(this.static_||this.wantedProjection_===n&&(this.wantedExtent_&&ln(this.wantedExtent_,r)||ln(this.image.getExtent(),r))&&(this.wantedResolution_&&F1(this.wantedResolution_)===o||F1(this.image.getResolution())===o)))return this.image;this.wantedProjection_=n,this.wantedExtent_=r,this.wantedResolution_=o,this.image=new jC(r,o,i,this.loader),this.image.addEventListener(_t.CHANGE,this.handleImageChange.bind(this))}return this.image}handleImageChange(t){const e=t.target;let i;switch(e.getState()){case ct.LOADING:this.loading=!0,i=r_.IMAGELOADSTART;break;case ct.LOADED:this.loading=!1,i=r_.IMAGELOADEND;break;case ct.ERROR:this.loading=!1,i=r_.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new UG(i,e))}};function WG(s,t){s.getImage().src=t}function ER(s,t,e,i){const n=t/e,r=mr(s),o=ko(Ht(s)/n,Wo),a=ko(as(s)/n,Wo),l=ko((i-1)*o/2,Wo),h=o+2*l,c=ko((i-1)*a/2,Wo),u=a+2*c;return ld(r,n,0,[h,u])}const mp="1.3.0",xS=[101,101];function SR(s,t,e,i,n){n.WIDTH=e[0],n.HEIGHT=e[1];const r=i.getAxisOrientation(),o=Fy(n.VERSION,"1.3")>=0;n[o?"CRS":"SRS"]=i.getCode();const a=o&&r.startsWith("ne")?[t[1],t[0],t[3],t[2]]:t;return n.BBOX=a.join(","),vd(s,n)}function MR(s,t,e,i,n,r,o){r=Object.assign({REQUEST:"GetMap"},r);const a=t/e,l=[yE(Ht(s)/a,Wo),yE(as(s)/a,Wo)];if(e!=1)switch(o){case"geoserver":const h=90*e+.5|0;"FORMAT_OPTIONS"in r?r.FORMAT_OPTIONS+=";dpi:"+h:r.FORMAT_OPTIONS="dpi:"+h;break;case"mapserver":r.MAP_RESOLUTION=90*e;break;case"carmentaserver":case"qgis":r.DPI=90*e;break;default:throw new Error("Unknown `serverType` configured")}return SR(n,s,l,i,r)}function _p(s,t){return Object.assign({REQUEST:t,SERVICE:"WMS",VERSION:mp,FORMAT:"image/png",STYLES:"",TRANSPARENT:!0},s)}function XG(s){const t=s.hidpi===void 0?!0:s.hidpi,e=Bt(s.projection||"EPSG:3857"),i=s.ratio||1.5,n=s.load||UC,r=s.crossOrigin??null;return(o,a,l)=>{o=ER(o,a,l,i),l!=1&&(!t||s.serverType===void 0)&&(l=1);const h=MR(o,a,l,e,s.url,_p(s.params,"GetMap"),s.serverType),c=new Image;return c.crossOrigin=r,n(c,h).then(u=>({image:u,extent:o,pixelRatio:l}))}}function VG(s,t,e){if(s.url===void 0)return;const i=Bt(s.projection||"EPSG:3857"),n=ld(t,e,0,xS),r={QUERY_LAYERS:s.params.LAYERS,INFO_FORMAT:"application/json"};Object.assign(r,_p(s.params,"GetFeatureInfo"),s.params);const o=nh((t[0]-n[0])/e,Wo),a=nh((n[3]-t[1])/e,Wo),l=Fy(r.VERSION,"1.3")>=0;return r[l?"I":"X"]=o,r[l?"J":"Y"]=a,SR(s.url,n,xS,i,r)}function YG(s,t){if(s.url===void 0)return;const e={SERVICE:"WMS",VERSION:mp,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(t!==void 0){const i=Bt(s.projection||"EPSG:3857").getMetersPerUnit()||1,n=28e-5;e.SCALE=t*i/n}if(Object.assign(e,s.params),s.params!==void 0&&e.LAYER===void 0){const i=e.LAYERS;if(!(!Array.isArray(i)||i.length!==1))return;e.LAYER=i}return vd(s.url,e)}let qG=class extends BG{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:t.interpolate,projection:t.projection,resolutions:t.resolutions}),this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null,this.url_=t.url,this.imageLoadFunction_=t.imageLoadFunction!==void 0?t.imageLoadFunction:WG,this.params_=Object.assign({},t.params),this.serverType_=t.serverType,this.hidpi_=t.hidpi!==void 0?t.hidpi:!0,this.renderedRevision_=0,this.ratio_=t.ratio!==void 0?t.ratio:1.5,this.loaderProjection_=null}getFeatureInfoUrl(t,e,i,n){const r=Bt(i),o=this.getProjection();o&&o!==r&&(e=xd(o,r,t,e),t=Qd(t,r,o));const a={url:this.url_,params:{...this.params_,...n},projection:o||r};return VG(a,t,e)}getLegendUrl(t,e){return YG({url:this.url_,params:{...this.params_,...e}},t)}getParams(){return this.params_}getImageInternal(t,e,i,n){return this.url_===void 0?null:((!this.loader||this.loaderProjection_!==n)&&(this.loaderProjection_=n,this.loader=XG({crossOrigin:this.crossOrigin_,params:this.params_,projection:n,serverType:this.serverType_,hidpi:this.hidpi_,url:this.url_,ratio:this.ratio_,load:(r,o)=>(this.image.setImage(r),this.imageLoadFunction_(this.image,o),UC(r))})),super.getImageInternal(t,e,i,n))}getImageLoadFunction(){return this.imageLoadFunction_}getUrl(){return this.url_}setImageLoadFunction(t){this.imageLoadFunction_=t,this.changed()}setUrl(t){t!=this.url_&&(this.url_=t,this.loader=null,this.changed())}updateParams(t){Object.assign(this.params_,t),this.changed()}changed(){this.image=null,super.changed()}},ZG=class extends ag{constructor(t,e,i,n,r,o){super(t,e,o),this.extent=null,this.format_=n,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=r,this.url_=i,this.key=i}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==J.IDLE&&(this.setState(J.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(t,e){this.setFeatures(t)}onError(){this.setState(J.ERROR)}setFeatures(t){this.features_=t,this.setState(J.LOADED)}setLoader(t){this.loader_=t}};const vS=[];let HG=class extends ag{constructor(t,e,i,n){super(t,e,{transition:0}),this.context_=null,this.executorGroups=[],this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=n.bind(void 0,this),this.wrappedTileCoord=i}getContext(){return this.context_||(this.context_=ns(1,1,vS)),this.context_}hasContext(){return!!this.context_}getImage(){return this.hasContext()?this.getContext().canvas:null}getReplayState(t){const e=Lt(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]}load(){this.getSourceTiles()}release(){Qa(this.context_),vS.push(this.context_.canvas),this.context_=null,super.release()}},KG=class extends xR{constructor(t){const e=t.projection||"EPSG:3857",i=t.extent||Pm(e),n=t.tileGrid||Px({extent:i,maxResolution:t.maxResolution,maxZoom:t.maxZoom!==void 0?t.maxZoom:22,minZoom:t.minZoom,tileSize:t.tileSize||512});super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,interpolate:!0,projection:e,state:t.state,tileGrid:n,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:JG,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX===void 0?!0:t.wrapX,transition:t.transition,zDirection:t.zDirection===void 0?1:t.zDirection}),this.format_=t.format?t.format:null,this.sourceTileCache_=new Ix(128),this.overlaps_=t.overlaps==null?!0:t.overlaps,this.tileClass=t.tileClass?t.tileClass:ZG,this.tileGrids_={}}getOverlaps(){return this.overlaps_}clear(){this.sourceTileCache_.clear()}expireCache(t,e){const i=this.getTileCacheForProjection(t),n=Object.keys(e).reduce((r,o)=>{const a=pG(o),l=i.peek(a);if(l){const h=l.sourceTiles;for(let c=0,u=h.length;c{const g=this.tileUrlFunction(d,t,e),f=this.sourceTileCache_.containsKey(g)?this.sourceTileCache_.get(g):new this.tileClass(d,g?J.IDLE:J.EMPTY,g,this.format_,this.tileLoadFunction);i.sourceTiles.push(f);const p=f.getState();if(p{this.handleTileChange(_);const y=f.getState();if(y===J.LOADED||y===J.ERROR){const v=f.getKey();v in i.errorTileKeys?f.getState()===J.LOADED&&delete i.errorTileKeys[v]:i.loadingSourceTiles--,y===J.ERROR?i.errorTileKeys[v]=!0:f.removeEventListener(_t.CHANGE,m),i.loadingSourceTiles===0&&i.setState(ea(i.errorTileKeys)?J.LOADED:J.ERROR)}};f.addEventListener(_t.CHANGE,m),i.loadingSourceTiles++}p===J.IDLE&&(f.extent=h.getTileCoordExtent(d),f.projection=e,f.resolution=h.getResolution(d[0]),this.sourceTileCache_.set(g,f),f.load())}),i.loadingSourceTiles||i.setState(i.sourceTiles.some(d=>d.getState()===J.ERROR)?J.ERROR:J.LOADED)}return i.sourceTiles}getTile(t,e,i,n,r){const o=[t,e,i];let a=this.getTileCoordForTileUrlFunction(o,r);const l=this.getTileGrid().getExtent(),h=this.getTileGridForProjection(r);if(a&&l){const d=h.getTileCoordExtent(a);gn(d,-h.getResolution(t),d),Ze(l,d)||(a=null)}let c=!0;if(a!==null){const d=this.tileGrid,g=h.getResolution(t),f=d.getZForResolution(g,1),p=h.getTileCoordExtent(a);gn(p,-g,p),d.forEachTileCoord(p,f,m=>{c=c&&!this.tileUrlFunction(m,n,r)})}const u=new HG(o,c?J.EMPTY:J.IDLE,a,this.getSourceTiles.bind(this,n,r));return u.key=this.getKey(),u}getTileGridForProjection(t){const e=t.getCode();let i=this.tileGrids_[e];if(!i){const n=this.tileGrid,r=n.getResolutions().slice(),o=r.map(function(h,c){return n.getOrigin(c)}),a=r.map(function(h,c){return n.getTileSize(c)}),l=eC+1;for(let h=r.length;h=0}tileUrlFunction(t,e,i){let n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(i)),n.getResolutions().length<=t[0])return;e!=1&&(!this.hidpi_||this.serverType_===void 0)&&(e=1);const r=n.getResolution(t[0]);let o=n.getTileCoordExtent(t,this.tmpExtent_);const a=this.gutter_;a!==0&&(o=gn(o,r*a,o));const l=Object.assign({},_p(this.params_,"GetMap"));return this.getRequestUrl_(t,o,e,i,l)}},s4=class extends Ax{constructor(t){const e=t.requestEncoding!==void 0?t.requestEncoding:"KVP",i=t.tileGrid;let n=t.urls;n===void 0&&t.url!==void 0&&(n=yR(t.url)),super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:n,wrapX:t.wrapX!==void 0?t.wrapX:!1,transition:t.transition,zDirection:t.zDirection}),this.version_=t.version!==void 0?t.version:"1.0.0",this.format_=t.format!==void 0?t.format:"image/jpeg",this.dimensions_=t.dimensions!==void 0?t.dimensions:{},this.layer_=t.layer,this.matrixSet_=t.matrixSet,this.style_=t.style,this.requestEncoding_=e,this.setKey(this.getKeyForDimensions_()),n&&n.length>0&&(this.tileUrlFunction=N1(n.map(this.createFromWMTSTemplate.bind(this))))}setUrls(t){this.urls=t;const e=t.join(` -`);this.setTileUrlFunction(N1(t.map(this.createFromWMTSTemplate.bind(this))),e)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const t=this.urls?this.urls.slice(0):[];for(const e in this.dimensions_)t.push(e+"-"+this.dimensions_[e]);return t.join("/")}updateDimensions(t){Object.assign(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(t){const e=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};e=="KVP"&&Object.assign(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=e=="KVP"?vd(t,i):t.replace(/\{(\w+?)\}/g,function(o,a){return a.toLowerCase()in i?i[a.toLowerCase()]:o});const n=this.tileGrid,r=this.dimensions_;return function(o,a,l){if(!o)return;const h={TileMatrix:n.getMatrixId(o[0]),TileCol:o[1],TileRow:o[2]};Object.assign(h,r);let c=t;return e=="KVP"?c=vd(c,h):c=c.replace(/\{(\w+?)\}/g,function(u,d){return h[d]}),c}}};const je={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},i4={ERROR:"error"};let n4=class extends Ki{constructor(t){super(i4.ERROR),this.code=t.code,this.message=t.message}},r4=class extends En{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.position_=null,this.transform_=fm,this.watchId_=void 0,this.addChangeListener(je.PROJECTION,this.handleProjectionChanged_),this.addChangeListener(je.TRACKING,this.handleTrackingChanged_),t.projection!==void 0&&this.setProjection(t.projection),t.trackingOptions!==void 0&&this.setTrackingOptions(t.trackingOptions),this.setTracking(t.tracking!==void 0?t.tracking:!1)}disposeInternal(){this.setTracking(!1),super.disposeInternal()}handleProjectionChanged_(){const t=this.getProjection();t&&(this.transform_=vc(Bt("EPSG:4326"),t),this.position_&&this.set(je.POSITION,this.transform_(this.position_)))}handleTrackingChanged_(){if("geolocation"in navigator){const 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)}}positionChange_(t){const e=t.coords;this.set(je.ACCURACY,e.accuracy),this.set(je.ALTITUDE,e.altitude===null?void 0:e.altitude),this.set(je.ALTITUDE_ACCURACY,e.altitudeAccuracy===null?void 0:e.altitudeAccuracy),this.set(je.HEADING,e.heading===null?void 0:Nn(e.heading)),this.position_?(this.position_[0]=e.longitude,this.position_[1]=e.latitude):this.position_=[e.longitude,e.latitude];const i=this.transform_(this.position_);this.set(je.POSITION,i.slice()),this.set(je.SPEED,e.speed===null?void 0:e.speed);const n=U3(this.position_,e.accuracy);n.applyTransform(this.transform_),this.set(je.ACCURACY_GEOMETRY,n),this.changed()}positionError_(t){this.dispatchEvent(new n4(t))}getAccuracy(){return this.get(je.ACCURACY)}getAccuracyGeometry(){return this.get(je.ACCURACY_GEOMETRY)||null}getAltitude(){return this.get(je.ALTITUDE)}getAltitudeAccuracy(){return this.get(je.ALTITUDE_ACCURACY)}getHeading(){return this.get(je.HEADING)}getPosition(){return this.get(je.POSITION)}getProjection(){return this.get(je.PROJECTION)}getSpeed(){return this.get(je.SPEED)}getTracking(){return this.get(je.TRACKING)}getTrackingOptions(){return this.get(je.TRACKING_OPTIONS)}setProjection(t){this.set(je.PROJECTION,Bt(t))}setTracking(t){this.set(je.TRACKING,t)}setTrackingOptions(t){this.set(je.TRACKING_OPTIONS,t)}};const js={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"};let bR=class extends En{constructor(t){super(),this.on,this.once,this.un,this.options=t,this.id=t.id,this.insertFirst=t.insertFirst!==void 0?t.insertFirst:!0,this.stopEvent=t.stopEvent!==void 0?t.stopEvent:!0,this.element=document.createElement("div"),this.element.className=t.className!==void 0?t.className:"ol-overlay-container "+xN,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=t.autoPan===!0?{}:t.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(js.ELEMENT,this.handleElementChanged),this.addChangeListener(js.MAP,this.handleMapChanged),this.addChangeListener(js.OFFSET,this.handleOffsetChanged),this.addChangeListener(js.POSITION,this.handlePositionChanged),this.addChangeListener(js.POSITIONING,this.handlePositioningChanged),t.element!==void 0&&this.setElement(t.element),this.setOffset(t.offset!==void 0?t.offset:[0,0]),this.setPositioning(t.positioning||"top-left"),t.position!==void 0&&this.setPosition(t.position)}getElement(){return this.get(js.ELEMENT)}getId(){return this.id}getMap(){return this.get(js.MAP)||null}getOffset(){return this.get(js.OFFSET)}getPosition(){return this.get(js.POSITION)}getPositioning(){return this.get(js.POSITIONING)}handleElementChanged(){GC(this.element);const t=this.getElement();t&&this.element.appendChild(t)}handleMapChanged(){var t;this.mapPostrenderListenerKey&&((t=this.element)==null||t.remove(),fe(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const e=this.getMap();if(e){this.mapPostrenderListenerKey=zt(e,sr.POSTRENDER,this.render,this),this.updatePixelPosition();const i=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?i.insertBefore(this.element,i.childNodes[0]||null):i.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(t){this.set(js.ELEMENT,t)}setMap(t){this.set(js.MAP,t)}setOffset(t){this.set(js.OFFSET,t)}setPosition(t){this.set(js.POSITION,t)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(t){const e=this.getMap();if(!e||!e.getTargetElement()||!this.get(js.POSITION))return;const i=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),r=this.getRect(n,[uN(n),dN(n)]);t=t||{};const o=t.margin===void 0?20:t.margin;if(!ln(i,r)){const a=r[0]-i[0],l=i[2]-r[2],h=r[1]-i[1],c=i[3]-r[3],u=[0,0];if(a<0?u[0]=a-o:l<0&&(u[0]=Math.abs(l)+o),h<0?u[1]=h-o:c<0&&(u[1]=Math.abs(c)+o),u[0]!==0||u[1]!==0){const d=e.getView().getCenterInternal(),g=e.getPixelFromCoordinateInternal(d);if(!g)return;const f=[g[0]+u[0],g[1]+u[1]],p=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(f),duration:p.duration,easing:p.easing})}}}getRect(t,e){const i=t.getBoundingClientRect(),n=i.left+window.pageXOffset,r=i.top+window.pageYOffset;return[n,r,n+e[0],r+e[1]]}setPositioning(t){this.set(js.POSITIONING,t)}setVisible(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)}updatePixelPosition(){const t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e){this.setVisible(!1);return}const i=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(i,n)}updateRenderedPosition(t,e){const i=this.element.style,n=this.getOffset(),r=this.getPositioning();this.setVisible(!0);const o=Math.round(t[0]+n[0])+"px",a=Math.round(t[1]+n[1])+"px";let l="0%",h="0%";r=="bottom-right"||r=="center-right"||r=="top-right"?l="-100%":(r=="bottom-center"||r=="center-center"||r=="top-center")&&(l="-50%"),r=="bottom-left"||r=="bottom-center"||r=="bottom-right"?h="-100%":(r=="center-left"||r=="center-center"||r=="center-right")&&(h="-50%");const c=`translate(${l}, ${h}) translate(${o}, ${a})`;this.rendered.transform_!=c&&(this.rendered.transform_=c,i.transform=c)}getOptions(){return this.options}};const wS=0,ku=1,ES=[0,0,0,0],Rh=[],o_={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"};let a_=class extends Ki{constructor(t,e,i){super(t),this.features=e,this.mapBrowserEvent=i}},o4=class extends _l{constructor(t){super(t),this.on,this.once,this.un,this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=t.condition?t.condition:xT,this.defaultDeleteCondition_=function(i){return SD(i)&&TD(i)},this.deleteCondition_=t.deleteCondition?t.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:op,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new L1,this.pixelTolerance_=t.pixelTolerance!==void 0?t.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new og({source:new Rm({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:l4(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null;let e;if(t.features?e=t.features:t.source&&(this.source_=t.source,e=new ni(this.source_.getFeatures()),this.source_.addEventListener(fi.ADDFEATURE,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(fi.REMOVEFEATURE,this.handleSourceRemove_.bind(this))),!e)throw new Error("The modify interaction requires features, a source or a layer");t.hitDetection&&(this.hitDetection_=t.hitDetection),this.features_=e,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(Ws.ADD,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(Ws.REMOVE,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=t.snapToPointer===void 0?!this.hitDetection_:t.snapToPointer}addFeature_(t){const e=t.getGeometry();if(e){const n=this.SEGMENT_WRITERS_[e.getType()];n&&n(t,e)}const i=this.getMap();i&&i.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,i),t.addEventListener(_t.CHANGE,this.boundHandleFeatureChange_)}willModifyFeatures_(t,e){if(!this.featuresBeingModified_){this.featuresBeingModified_=new ni;const i=this.featuresBeingModified_.getArray();for(let n=0,r=e.length;n=0;--n){const r=i[n];for(let o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===r&&this.dragSegments_.splice(o,1);e.remove(r)}}setActive(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(t)}setMap(t){this.overlay_.setMap(t),super.setMap(t)}getOverlay(){return this.overlay_}handleSourceAdd_(t){t.feature&&this.features_.push(t.feature)}handleSourceRemove_(t){t.feature&&this.features_.remove(t.feature)}handleFeatureAdd_(t){this.addFeature_(t.element)}handleFeatureChange_(t){if(!this.changingFeature_){const e=t.target;this.removeFeature_(e),this.addFeature_(e)}}handleFeatureRemove_(t){this.removeFeature_(t.element)}writePointGeometry_(t,e){const i=e.getCoordinates(),n={feature:t,geometry:e,segment:[i,i]};this.rBush_.insert(e.getExtent(),n)}writeMultiPointGeometry_(t,e){const i=e.getCoordinates();for(let n=0,r=i.length;n=0;--h)this.insertVertex_(n[h],r)}return!!this.vertexFeature_}handleUpEvent(t){for(let e=this.dragSegments_.length-1;e>=0;--e){const i=this.dragSegments_[e][0],n=i.geometry;if(n.getType()==="Circle"){const r=n.getCenter(),o=i.featureSegments[0],a=i.featureSegments[1];o.segment[0]=r,o.segment[1]=r,a.segment[0]=r,a.segment[1]=r,this.rBush_.update(Au(r),o);let l=n;this.rBush_.update(l.getExtent(),a)}else this.rBush_.update(_i(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new a_(o_.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1}handlePointerMove_(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)}handlePointerAtPixel_(t,e,i){const n=i||e.getCoordinateFromPixel(t);e.getView().getProjection();const r=function(l,h){return SS(n,l)-SS(n,h)};let o,a;if(this.hitDetection_){const l=typeof this.hitDetection_=="object"?h=>h===this.hitDetection_:void 0;e.forEachFeatureAtPixel(t,(h,c,u)=>{u&&u.getType()==="Point"&&(u=new qi(qh(u.getCoordinates())));const d=u||h.getGeometry();if(h instanceof Bi&&this.features_.getArray().includes(h)){a=d;const g=h.getGeometry().getFlatCoordinates().slice(0,2);o=[{feature:h,geometry:a,segment:[g,g]}]}return!0},{layerFilter:l})}if(!o){const l=hn(Au(n,ES)),h=e.getView().getResolution()*this.pixelTolerance_,c=pm(gn(l,h,ES));o=this.rBush_.getInExtent(c)}if(o&&o.length>0){const l=o.sort(r)[0],h=l.segment;let c=MS(n,l);const u=e.getPixelFromCoordinate(c);let d=Hf(t,u);if(a||d<=this.pixelTolerance_){const g={};if(g[Lt(h)]=!0,this.snapToPointer_||(this.delta_[0]=c[0]-n[0],this.delta_[1]=c[1]-n[1]),l.geometry.getType()==="Circle"&&l.index===ku)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(c,[l.feature],[l.geometry]);else{const f=e.getPixelFromCoordinate(h[0]),p=e.getPixelFromCoordinate(h[1]),m=Vh(u,f),_=Vh(u,p);d=Math.sqrt(Math.min(m,_)),this.snappedToVertex_=d<=this.pixelTolerance_,this.snappedToVertex_&&(c=m>_?h[1]:h[0]),this.createOrUpdateVertexFeature_(c,[l.feature],[l.geometry]);const y={};y[Lt(l.geometry)]=!0;for(let v=1,S=o.length;v=0;--l)o=t[l],g=o[0],f=Lt(g.feature),g.depth&&(f+="-"+g.depth.join("-")),f in e||(e[f]={}),o[1]===0?(e[f].right=g,e[f].index=g.index):o[1]==1&&(e[f].left=g,e[f].index=g.index+1);for(f in e){switch(d=e[f].right,c=e[f].left,h=e[f].index,u=h-1,c!==void 0?g=c:g=d,u<0&&(u=0),a=g.geometry,r=a.getCoordinates(),n=r,i=!1,a.getType()){case"MultiLineString":r[g.depth[0]].length>2&&(r[g.depth[0]].splice(h,1),i=!0);break;case"LineString":r.length>2&&(r.splice(h,1),i=!0);break;case"MultiPolygon":n=n[g.depth[1]];case"Polygon":n=n[g.depth[0]],n.length>4&&(h==n.length-1&&(h=0),n.splice(h,1),i=!0,h===0&&(n.pop(),n.push(n[0]),u=n.length-1));break}if(i){this.setGeometryCoordinates_(a,r);const p=[];if(c!==void 0&&(this.rBush_.remove(c),p.push(c.segment[0])),d!==void 0&&(this.rBush_.remove(d),p.push(d.segment[1])),c!==void 0&&d!==void 0){const m={depth:g.depth,feature:g.feature,geometry:g.geometry,index:u,segment:p};this.rBush_.insert(_i(m.segment),m)}this.updateSegmentIndices_(a,h,g.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.length=0}}return i}setGeometryCoordinates_(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1}updateSegmentIndices_(t,e,i,n){this.rBush_.forEachInExtent(t.getExtent(),function(r){r.geometry===t&&(i===void 0||r.depth===void 0||ao(r.depth,i))&&r.index>e&&(r.index+=n)})}};function a4(s,t){return s.index-t.index}function SS(s,t,e){const i=t.geometry;if(i.getType()==="Circle"){let r=i;if(t.index===ku){const o=Vh(r.getCenter(),Ve(s)),a=Math.sqrt(o)-r.getRadius();return a*a}}const n=Ve(s);return Rh[0]=Ve(t.segment[0]),Rh[1]=Ve(t.segment[1]),h3(n,Rh)}function MS(s,t,e){const i=t.geometry;if(i.getType()==="Circle"&&t.index===ku)return qh(i.getClosestPoint(Ve(s)));const n=Ve(s);return Rh[0]=Ve(t.segment[0]),Rh[1]=Ve(t.segment[1]),qh(aC(n,Rh))}function l4(){const s=QC();return function(t,e){return s.Point}}const nf={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"};let rf=class extends Ki{constructor(t,e){super(t),this.feature=e}};function h4(s,t){const e=[];for(let i=0;i=e?s[t-e]:s[t]}function af(s,t,e){let i,n;to){const l=lh(s,i),h=lh(s,n);return of(l,h)}let a=0;if(id.startIndex?pd.startIndex&&(p-=g.length)),l=p,a=u)}const h=t.targets[a];let c=h.ring;if(t.targetIndex===a&&c){const u=lh(h.coordinates,l),d=e.getPixelFromCoordinate(u);Hf(d,t.startPx)>i&&(c=!1)}if(c){const u=h.coordinates,d=u.length,g=h.startIndex,f=l;if(g=e?i-=e:i<0&&(i+=e);let r=i+1;r>=e&&(r-=e);const o=s[i],a=o[0],l=o[1],h=s[r],c=h[0]-a,u=h[1]-l;return[a+c*n,l+u*n]}let u4=class extends _l{constructor(t){const e=t;e.stopDown||(e.stopDown=_c),super(e),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=t.source?t.source:null,this.features_=t.features?t.features:null,this.snapTolerance_=t.snapTolerance?t.snapTolerance:12,this.type_=t.type,this.mode_=f4(this.type_),this.stopClick_=!!t.stopClick,this.minPoints_=t.minPoints?t.minPoints:this.mode_==="Polygon"?3:2,this.maxPoints_=this.mode_==="Circle"?2:t.maxPoints?t.maxPoints:1/0,this.finishCondition_=t.finishCondition?t.finishCondition:zh,this.geometryLayout_=t.geometryLayout?t.geometryLayout:"XY";let i=t.geometryFunction;if(!i){const n=this.mode_;if(n==="Circle")i=(r,o,a)=>{const l=o||new MT([NaN,NaN]),h=Ve(r[0]),c=Vh(h,Ve(r[r.length-1]));return l.setCenterAndRadius(h,Math.sqrt(c),this.geometryLayout_),l};else{let r;n==="Point"?r=qi:n==="LineString"?r=pn:n==="Polygon"&&(r=ks),i=(o,a,l)=>(a?n==="Polygon"?o[0].length?a.setCoordinates([o[0].concat([o[0][0]])],this.geometryLayout_):a.setCoordinates([],this.geometryLayout_):a.setCoordinates(o,this.geometryLayout_):a=new r(o,this.geometryLayout_),a)}}this.geometryFunction_=i,this.dragVertexDelay_=t.dragVertexDelay!==void 0?t.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.overlay_=new og({source:new Rm({useSpatialIndex:!1,wrapX:t.wrapX?t.wrapX:!1}),style:t.style?t.style:d4(),updateWhileInteracting:!0}),this.geometryName_=t.geometryName,this.condition_=t.condition?t.condition:gx,this.freehandCondition_,t.freehand?this.freehandCondition_=op:this.freehandCondition_=t.freehandCondition?t.freehandCondition:_T,this.traceCondition_,this.setTrace(t.trace||!1),this.traceState_={active:!1},this.traceSource_=t.traceSource||t.source||null,this.addChangeListener(m1.ACTIVE,this.updateState_)}setTrace(t){let e;t?t===!0?e=op:e=t:e=CD,this.traceCondition_=e}setMap(t){super.setMap(t),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(t){t.originalEvent.type===_t.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!=="Point"&&this.freehandCondition_(t);let e=t.type===te.POINTERMOVE,i=!0;return!this.freehand_&&this.lastDragTime_&&t.type===te.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,e=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&t.type===te.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(t.coordinate),i=!1):this.freehand_&&t.type===te.POINTERDOWN?i=!1:e&&this.getPointerCount()<2?(i=t.type===te.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):(t.originalEvent.pointerType==="mouse"||t.type===te.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(t)):t.type===te.DBLCLICK&&(i=!1),super.handleEvent(t)&&i}handleDownEvent(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(()=>{this.handlePointerMove_(new Fr(te.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))},this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(t){if(!this.traceSource_||!this.traceCondition_(t))return;if(this.traceState_.active){this.deactivateTrace_();return}const e=this.getMap(),i=e.getCoordinateFromPixel([t.pixel[0]-this.snapTolerance_,t.pixel[1]+this.snapTolerance_]),n=e.getCoordinateFromPixel([t.pixel[0]+this.snapTolerance_,t.pixel[1]-this.snapTolerance_]),r=_i([i,n]),o=this.traceSource_.getFeaturesInExtent(r);if(o.length===0)return;const a=h4(t.coordinate,o);a.length&&(this.traceState_={active:!0,startPx:t.pixel.slice(),targets:a,targetIndex:-1})}addOrRemoveTracedCoordinates_(t,e){const i=t.startIndex<=t.endIndex,n=t.startIndex<=e;i===n?i&&e>t.endIndex||!i&&et.endIndex)&&this.removeTracedCoordinates_(e,t.endIndex):(this.removeTracedCoordinates_(t.startIndex,t.endIndex),this.addTracedCoordinates_(t,t.startIndex,e))}removeTracedCoordinates_(t,e){if(t===e)return;let i=0;if(t0&&this.removeLastPoints_(i)}addTracedCoordinates_(t,e,i){if(e===i)return;const n=[];if(e=o;--a)n.push(ah(t.coordinates,a))}n.length&&this.appendCoordinates(n)}updateTrace_(t){const e=this.traceState_;if(!e.active||e.targetIndex===-1&&Hf(e.startPx,t.pixel)this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(t.coordinate.slice());return}this.updateTrace_(t),this.modifyDrawing_(t.coordinate)}atFinish_(t,e){let i=!1;if(this.sketchFeature_){let n=!1,r=[this.finishCoordinate_];const o=this.mode_;if(o==="Point")i=!0;else if(o==="Circle")i=this.sketchCoords_.length===2;else if(o==="LineString")n=!e&&this.sketchCoords_.length>this.minPoints_;else if(o==="Polygon"){const a=this.sketchCoords_;n=a[0].length>this.minPoints_,r=[a[0][0],a[0][a[0].length-2]],e?r=[a[0][0]]:r=[a[0][0],a[0][a[0].length-2]]}if(n){const a=this.getMap();for(let l=0,h=r.length;l=this.maxPoints_&&(this.freehand_?r.pop():n=!0),r.push(t.slice()),this.geometryFunction_(r,e,i)):o==="Polygon"&&(r=this.sketchCoords_[0],r.length>=this.maxPoints_&&(this.freehand_?r.pop():n=!0),r.push(t.slice()),n&&(this.finishCoordinate_=r[0]),this.geometryFunction_(this.sketchCoords_,e,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),n?this.finishDrawing():this.sketchFeature_}removeLastPoints_(t){if(!this.sketchFeature_)return;const e=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),n=this.mode_;for(let r=0;r=2){this.finishCoordinate_=o[o.length-2].slice();const a=this.finishCoordinate_.slice();o[o.length-1]=a,this.createOrUpdateSketchPoint_(a)}this.geometryFunction_(o,e,i),e.getType()==="Polygon"&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(n==="Polygon"){o=this.sketchCoords_[0],o.splice(-2,1);const a=this.sketchLine_.getGeometry();if(o.length>=2){const l=o[o.length-2].slice();o[o.length-1]=l,this.createOrUpdateSketchPoint_(l)}a.setCoordinates(o),this.geometryFunction_(this.sketchCoords_,e,i)}if(o.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const t=this.abortDrawing_();if(!t)return null;let e=this.sketchCoords_;const i=t.getGeometry(),n=this.getMap().getView().getProjection();return this.mode_==="LineString"?(e.pop(),this.geometryFunction_(e,i,n)):this.mode_==="Polygon"&&(e[0].pop(),this.geometryFunction_(e,i,n),e=i.getCoordinates()),this.type_==="MultiPoint"?t.setGeometry(new fa([e])):this.type_==="MultiLineString"?t.setGeometry(new yl([e])):this.type_==="MultiPolygon"&&t.setGeometry(new wc([e])),this.dispatchEvent(new rf(nf.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t),t}abortDrawing_(){this.finishCoordinate_=null;const t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),t}abortDrawing(){const t=this.abortDrawing_();t&&this.dispatchEvent(new rf(nf.DRAWABORT,t))}appendCoordinates(t){const e=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(t[0]);let n;if(e==="LineString"||e==="Circle")n=this.sketchCoords_;else if(e==="Polygon")n=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&n.shift(),n.pop();for(let o=0;o=this.text.length)return;s=this.text[this.place++]}switch(this.state){case Ed:return this.neutral(s);case RR:return this.keyword(s);case yp:return this.quoted(s);case PR:return this.afterquote(s);case IR:return this.number(s);case Lx:return}};go.prototype.afterquote=function(s){if(s==='"'){this.word+='"',this.state=yp;return}if(Am.test(s)){this.word=this.word.trim(),this.afterItem(s);return}throw new Error(`havn't handled "`+s+'" in afterquote yet, index '+this.place)};go.prototype.afterItem=function(s){if(s===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Ed;return}if(s==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Ed,this.currentObject=this.stack.pop(),this.currentObject||(this.state=Lx);return}};go.prototype.number=function(s){if(AR.test(s)){this.word+=s;return}if(Am.test(s)){this.word=parseFloat(this.word),this.afterItem(s);return}throw new Error(`havn't handled "`+s+'" in number yet, index '+this.place)};go.prototype.quoted=function(s){if(s==='"'){this.state=PR;return}this.word+=s};go.prototype.keyword=function(s){if(b4.test(s)){this.word+=s;return}if(s==="["){var t=[];t.push(this.word),this.level++,this.root===null?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,this.state=Ed;return}if(Am.test(s)){this.afterItem(s);return}throw new Error(`havn't handled "`+s+'" in keyword yet, index '+this.place)};go.prototype.neutral=function(s){if(M4.test(s)){this.word=s,this.state=RR;return}if(s==='"'){this.word="",this.state=yp;return}if(AR.test(s)){this.word=s,this.state=IR;return}if(Am.test(s)){this.afterItem(s);return}throw new Error(`havn't handled "`+s+'" in neutral yet, index '+this.place)};go.prototype.output=function(){for(;this.place0?90:-90),s.lat_ts=s.lat1):!s.lat_ts&&s.lat0&&s.projName==="Polar_Stereographic"&&(s.lat_ts=s.lat0,s.lat0=Hn(s.lat0>0?90:-90))}function LR(s){var t=C4(s),e=t.shift(),i=t.shift();t.unshift(["name",i]),t.unshift(["type",e]);var n={};return hh(t,n),I4(n),n}function Qs(s){var t=this;if(arguments.length===2){var e=arguments[1];typeof e=="string"?e.charAt(0)==="+"?Qs[s]=k1(arguments[1]):Qs[s]=LR(arguments[1]):Qs[s]=e}else if(arguments.length===1){if(Array.isArray(s))return s.map(function(i){Array.isArray(i)?Qs.apply(t,i):Qs(i)});if(typeof s=="string"){if(s in Qs)return Qs[s]}else"EPSG"in s?Qs["EPSG:"+s.EPSG]=s:"ESRI"in s?Qs["ESRI:"+s.ESRI]=s:"IAU2000"in s?Qs["IAU2000:"+s.IAU2000]=s:console.log(s);return}}m4(Qs);function P4(s){return typeof s=="string"}function A4(s){return s in Qs}var L4=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function O4(s){return L4.some(function(t){return s.indexOf(t)>-1})}var F4=["3857","900913","3785","102113"];function N4(s){var t=ra(s,"authority");if(t){var e=ra(t,"epsg");return e&&F4.indexOf(e)>-1}}function D4(s){var t=ra(s,"extension");if(t)return ra(t,"proj4")}function k4(s){return s[0]==="+"}function $4(s){if(P4(s)){if(A4(s))return Qs[s];if(O4(s)){var t=LR(s);if(N4(t))return Qs["EPSG:3857"];var e=D4(t);return e?k1(e):t}if(k4(s))return k1(s)}else return s}function IS(s,t){s=s||{};var e,i;if(!t)return s;for(i in t)e=t[i],e!==void 0&&(s[i]=e);return s}function xr(s,t,e){var i=s*t;return e/Math.sqrt(1-i*i)}function hg(s){return s<0?-1:1}function nt(s){return Math.abs(s)<=ts?s:s-hg(s)*wd}function Dn(s,t,e){var i=s*e,n=.5*s;return i=Math.pow((1-i)/(1+i),n),Math.tan(.5*(H-t))/i}function Sd(s,t){for(var e=.5*s,i,n,r=H-2*Math.atan(t),o=0;o<=15;o++)if(i=s*Math.sin(r),n=H-2*Math.atan(t*Math.pow((1-i)/(1+i),e))-r,r+=n,Math.abs(n)<=1e-10)return r;return-9999}function G4(){var s=this.b/this.a;this.es=1-s*s,"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=xr(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function j4(s){var t=s.x,e=s.y;if(e*lr>90&&e*lr<-90&&t*lr>180&&t*lr<-180)return null;var i,n;if(Math.abs(Math.abs(e)-H)<=Q)return null;if(this.sphere)i=this.x0+this.a*this.k0*nt(t-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(me+.5*e));else{var r=Math.sin(e),o=Dn(this.e,e,r);i=this.x0+this.a*this.k0*nt(t-this.long0),n=this.y0-this.a*this.k0*Math.log(o)}return s.x=i,s.y=n,s}function z4(s){var t=s.x-this.x0,e=s.y-this.y0,i,n;if(this.sphere)n=H-2*Math.atan(Math.exp(-e/(this.a*this.k0)));else{var r=Math.exp(-e/(this.a*this.k0));if(n=Sd(this.e,r),n===-9999)return null}return i=nt(this.long0+t/(this.a*this.k0)),s.x=i,s.y=n,s}var U4=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const B4={init:G4,forward:j4,inverse:z4,names:U4};function W4(){}function PS(s){return s}var X4=["longlat","identity"];const V4={init:W4,forward:PS,inverse:PS,names:X4};var Y4=[B4,V4],Of={},xp=[];function OR(s,t){var e=xp.length;return s.names?(xp[e]=s,s.names.forEach(function(i){Of[i.toLowerCase()]=e}),this):(console.log(t),!0)}function q4(s){if(!s)return!1;var t=s.toLowerCase();if(typeof Of[t]<"u"&&xp[Of[t]])return xp[Of[t]]}function Z4(){Y4.forEach(OR)}const H4={start:Z4,add:OR,get:q4};var kt={};kt.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};kt.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};kt.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};kt.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};kt.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};kt.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};kt.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};kt.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};kt.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};kt.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};kt.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};kt.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};kt.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};kt.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};kt.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};kt.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};kt.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};kt.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};kt.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};kt.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};kt.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};kt.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};kt.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};kt.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};kt.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};kt.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};kt.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};kt.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};kt.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};kt.hough={a:6378270,rf:297,ellipseName:"Hough"};kt.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};kt.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};kt.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};kt.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};kt.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};kt.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};kt.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};kt.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};kt.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};kt.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};kt.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};kt.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var K4=kt.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};kt.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function J4(s,t,e,i){var n=s*s,r=t*t,o=(n-r)/n,a=0;i?(s*=1-o*(x4+o*(v4+o*w4)),n=s*s,o=0):a=Math.sqrt(o);var l=(n-r)/r;return{es:o,e:a,ep2:l}}function Q4(s,t,e,i,n){if(!s){var r=ra(kt,i);r||(r=K4),s=r.a,t=r.b,e=r.rf}return e&&!t&&(t=(1-1/e)*s),(e===0||Math.abs(s-t)3&&(a.datum_params[3]!==0||a.datum_params[4]!==0||a.datum_params[5]!==0||a.datum_params[6]!==0)&&(a.datum_type=il,a.datum_params[3]*=$u,a.datum_params[4]*=$u,a.datum_params[5]*=$u,a.datum_params[6]=a.datum_params[6]/1e6+1)),o&&(a.datum_type=Ih,a.grids=o),a.a=e,a.b=i,a.es=n,a.ep2=r,a}var FR={};function e6(s,t){var e=new DataView(t),i=n6(e),n=r6(e,i),r=o6(e,n,i),o={header:n,subgrids:r};return FR[s]=o,o}function s6(s){if(s===void 0)return null;var t=s.split(",");return t.map(i6)}function i6(s){if(s.length===0)return null;var t=s[0]==="@";return t&&(s=s.slice(1)),s==="null"?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:s,mandatory:!t,grid:FR[s]||null,isNull:!1}}function ch(s){return s/3600*Math.PI/180}function n6(s){var t=s.getInt32(8,!1);return t===11?!1:(t=s.getInt32(8,!0),t!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function r6(s,t){return{nFields:s.getInt32(8,t),nSubgridFields:s.getInt32(24,t),nSubgrids:s.getInt32(40,t),shiftType:$1(s,56,64).trim(),fromSemiMajorAxis:s.getFloat64(120,t),fromSemiMinorAxis:s.getFloat64(136,t),toSemiMajorAxis:s.getFloat64(152,t),toSemiMinorAxis:s.getFloat64(168,t)}}function $1(s,t,e){return String.fromCharCode.apply(null,new Uint8Array(s.buffer.slice(t,e)))}function o6(s,t,e){for(var i=176,n=[],r=0;r5e-11?!1:s.datum_type===sl?s.datum_params[0]===t.datum_params[0]&&s.datum_params[1]===t.datum_params[1]&&s.datum_params[2]===t.datum_params[2]:s.datum_type===il?s.datum_params[0]===t.datum_params[0]&&s.datum_params[1]===t.datum_params[1]&&s.datum_params[2]===t.datum_params[2]&&s.datum_params[3]===t.datum_params[3]&&s.datum_params[4]===t.datum_params[4]&&s.datum_params[5]===t.datum_params[5]&&s.datum_params[6]===t.datum_params[6]:!0}function NR(s,t,e){var i=s.x,n=s.y,r=s.z?s.z:0,o,a,l,h;if(n<-H&&n>-1.001*H)n=-H;else if(n>H&&n<1.001*H)n=H;else{if(n<-H)return{x:-1/0,y:-1/0,z:s.z};if(n>H)return{x:1/0,y:1/0,z:s.z}}return i>Math.PI&&(i-=2*Math.PI),a=Math.sin(n),h=Math.cos(n),l=a*a,o=e/Math.sqrt(1-t*l),{x:(o+r)*h*Math.cos(i),y:(o+r)*h*Math.sin(i),z:(o*(1-t)+r)*a}}function DR(s,t,e,i){var n=1e-12,r=n*n,o=30,a,l,h,c,u,d,g,f,p,m,_,y,v,S=s.x,w=s.y,C=s.z?s.z:0,M,T,I;if(a=Math.sqrt(S*S+w*w),l=Math.sqrt(S*S+w*w+C*C),a/er&&vi.y||g>i.x||ma&&Math.abs(l.y)>a);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=nt(r.x+e.ll[0]),i.y=r.y+e.ll[1]}else isNaN(r.x)||(i.x=s.x+r.x,i.y=s.y+r.y);return i}function LS(s,t){var e={x:s.x/t.del[0],y:s.y/t.del[1]},i={x:Math.floor(e.x),y:Math.floor(e.y)},n={x:e.x-1*i.x,y:e.y-1*i.y},r={x:Number.NaN,y:Number.NaN},o;if(i.x<0||i.x>=t.lim[0]||i.y<0||i.y>=t.lim[1])return r;o=i.y*t.lim[0]+i.x;var a={x:t.cvs[o][0],y:t.cvs[o][1]};o++;var l={x:t.cvs[o][0],y:t.cvs[o][1]};o+=t.lim[0];var h={x:t.cvs[o][0],y:t.cvs[o][1]};o--;var c={x:t.cvs[o][0],y:t.cvs[o][1]},u=n.x*n.y,d=n.x*(1-n.y),g=(1-n.x)*(1-n.y),f=(1-n.x)*n.y;return r.x=g*a.x+d*l.x+f*c.x+u*h.x,r.y=g*a.y+d*l.y+f*c.y+u*h.y,r}function OS(s,t,e){var i=e.x,n=e.y,r=e.z||0,o,a,l,h={};for(l=0;l<3;l++)if(!(t&&l===2&&e.z===void 0))switch(l===0?(o=i,"ew".indexOf(s.axis[l])!==-1?a="x":a="y"):l===1?(o=n,"ns".indexOf(s.axis[l])!==-1?a="y":a="x"):(o=r,a="z"),s.axis[l]){case"e":h[a]=o;break;case"w":h[a]=-o;break;case"n":h[a]=o;break;case"s":h[a]=-o;break;case"u":e[a]!==void 0&&(h.z=o);break;case"d":e[a]!==void 0&&(h.z=-o);break;default:return null}return h}function kR(s){var t={x:s[0],y:s[1]};return s.length>2&&(t.z=s[2]),s.length>3&&(t.m=s[3]),t}function p6(s){FS(s.x),FS(s.y)}function FS(s){if(typeof Number.isFinite=="function"){if(Number.isFinite(s))return;throw new TypeError("coordinates must be finite numbers")}if(typeof s!="number"||s!==s||!isFinite(s))throw new TypeError("coordinates must be finite numbers")}function m6(s,t){return(s.datum.datum_type===sl||s.datum.datum_type===il||s.datum.datum_type===Ih)&&t.datumCode!=="WGS84"||(t.datum.datum_type===sl||t.datum.datum_type===il||t.datum.datum_type===Ih)&&s.datumCode!=="WGS84"}function vp(s,t,e,i){var n;Array.isArray(e)?e=kR(e):e={x:e.x,y:e.y,z:e.z,m:e.m};var r=e.z!==void 0;if(p6(e),s.datum&&t.datum&&m6(s,t)&&(n=new gr("WGS84"),e=vp(s,n,e,i),s=n),i&&s.axis!=="enu"&&(e=OS(s,!1,e)),s.projName==="longlat")e={x:e.x*As,y:e.y*As,z:e.z||0};else if(s.to_meter&&(e={x:e.x*s.to_meter,y:e.y*s.to_meter,z:e.z||0}),e=s.inverse(e),!e)return;if(s.from_greenwich&&(e.x+=s.from_greenwich),e=g6(s.datum,t.datum,e),!!e)return t.from_greenwich&&(e={x:e.x-t.from_greenwich,y:e.y,z:e.z||0}),t.projName==="longlat"?e={x:e.x*lr,y:e.y*lr,z:e.z||0}:(e=t.forward(e),t.to_meter&&(e={x:e.x/t.to_meter,y:e.y/t.to_meter,z:e.z||0})),i&&t.axis!=="enu"?OS(t,!0,e):(e&&!r&&delete e.z,e)}var NS=gr("WGS84");function c_(s,t,e,i){var n,r,o;return Array.isArray(e)?(n=vp(s,t,e,i)||{x:NaN,y:NaN},e.length>2?typeof s.name<"u"&&s.name==="geocent"||typeof t.name<"u"&&t.name==="geocent"?typeof n.z=="number"?[n.x,n.y,n.z].concat(e.splice(3)):[n.x,n.y,e[2]].concat(e.splice(3)):[n.x,n.y].concat(e.splice(2)):[n.x,n.y]):(r=vp(s,t,e,i),o=Object.keys(e),o.length===2||o.forEach(function(a){if(typeof s.name<"u"&&s.name==="geocent"||typeof t.name<"u"&&t.name==="geocent"){if(a==="x"||a==="y"||a==="z")return}else if(a==="x"||a==="y")return;r[a]=e[a]}),r)}function DS(s){return s instanceof gr?s:s.oProj?s.oProj:gr(s)}function hi(s,t,e){s=DS(s);var i=!1,n;return typeof t>"u"?(t=s,s=NS,i=!0):(typeof t.x<"u"||Array.isArray(t))&&(e=t,t=s,s=NS,i=!0),t=DS(t),e?c_(s,t,e):(n={forward:function(r,o){return c_(s,t,r,o)},inverse:function(r,o){return c_(t,s,r,o)}},i&&(n.oProj=t),n)}var kS=6,$R="AJSAJS",GR="AFAFAF",uh=65,pi=73,Qi=79,_u=86,yu=90;const _6={forward:jR,inverse:y6,toPoint:zR};function jR(s,t){return t=t||5,w6(x6({lat:s[1],lon:s[0]}),t)}function y6(s){var t=Ox(BR(s.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function zR(s){var t=Ox(BR(s.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function u_(s){return s*(Math.PI/180)}function $S(s){return 180*(s/Math.PI)}function x6(s){var t=s.lat,e=s.lon,i=6378137,n=.00669438,r=.9996,o,a,l,h,c,u,d,g=u_(t),f=u_(e),p,m;m=Math.floor((e+180)/6)+1,e===180&&(m=60),t>=56&&t<64&&e>=3&&e<12&&(m=32),t>=72&&t<84&&(e>=0&&e<9?m=31:e>=9&&e<21?m=33:e>=21&&e<33?m=35:e>=33&&e<42&&(m=37)),o=(m-1)*6-180+3,p=u_(o),a=n/(1-n),l=i/Math.sqrt(1-n*Math.sin(g)*Math.sin(g)),h=Math.tan(g)*Math.tan(g),c=a*Math.cos(g)*Math.cos(g),u=Math.cos(g)*(f-p),d=i*((1-n/4-3*n*n/64-5*n*n*n/256)*g-(3*n/8+3*n*n/32+45*n*n*n/1024)*Math.sin(2*g)+(15*n*n/256+45*n*n*n/1024)*Math.sin(4*g)-35*n*n*n/3072*Math.sin(6*g));var _=r*l*(u+(1-h+c)*u*u*u/6+(5-18*h+h*h+72*c-58*a)*u*u*u*u*u/120)+5e5,y=r*(d+l*Math.tan(g)*(u*u/2+(5-h+9*c+4*c*c)*u*u*u*u/24+(61-58*h+h*h+600*c-330*a)*u*u*u*u*u*u/720));return t<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(_),zoneNumber:m,zoneLetter:v6(t)}}function Ox(s){var t=s.northing,e=s.easting,i=s.zoneLetter,n=s.zoneNumber;if(n<0||n>60)return null;var r=.9996,o=6378137,a=.00669438,l,h=(1-Math.sqrt(1-a))/(1+Math.sqrt(1-a)),c,u,d,g,f,p,m,_,y,v=e-5e5,S=t;i<"N"&&(S-=1e7),m=(n-1)*6-180+3,l=a/(1-a),p=S/r,_=p/(o*(1-a/4-3*a*a/64-5*a*a*a/256)),y=_+(3*h/2-27*h*h*h/32)*Math.sin(2*_)+(21*h*h/16-55*h*h*h*h/32)*Math.sin(4*_)+151*h*h*h/96*Math.sin(6*_),c=o/Math.sqrt(1-a*Math.sin(y)*Math.sin(y)),u=Math.tan(y)*Math.tan(y),d=l*Math.cos(y)*Math.cos(y),g=o*(1-a)/Math.pow(1-a*Math.sin(y)*Math.sin(y),1.5),f=v/(c*r);var w=y-c*Math.tan(y)/g*(f*f/2-(5+3*u+10*d-4*d*d-9*l)*f*f*f*f/24+(61+90*u+298*d+45*u*u-252*l-3*d*d)*f*f*f*f*f*f/720);w=$S(w);var C=(f-(1+2*u+d)*f*f*f/6+(5-2*d+28*u-3*d*d+8*l+24*u*u)*f*f*f*f*f/120)/Math.cos(y);C=m+$S(C);var M;if(s.accuracy){var T=Ox({northing:s.northing+s.accuracy,easting:s.easting+s.accuracy,zoneLetter:s.zoneLetter,zoneNumber:s.zoneNumber});M={top:T.lat,right:T.lon,bottom:w,left:C}}else M={lat:w,lon:C};return M}function v6(s){var t="Z";return 84>=s&&s>=72?t="X":72>s&&s>=64?t="W":64>s&&s>=56?t="V":56>s&&s>=48?t="U":48>s&&s>=40?t="T":40>s&&s>=32?t="S":32>s&&s>=24?t="R":24>s&&s>=16?t="Q":16>s&&s>=8?t="P":8>s&&s>=0?t="N":0>s&&s>=-8?t="M":-8>s&&s>=-16?t="L":-16>s&&s>=-24?t="K":-24>s&&s>=-32?t="J":-32>s&&s>=-40?t="H":-40>s&&s>=-48?t="G":-48>s&&s>=-56?t="F":-56>s&&s>=-64?t="E":-64>s&&s>=-72?t="D":-72>s&&s>=-80&&(t="C"),t}function w6(s,t){var e="00000"+s.easting,i="00000"+s.northing;return s.zoneNumber+s.zoneLetter+E6(s.easting,s.northing,s.zoneNumber)+e.substr(e.length-5,t)+i.substr(i.length-5,t)}function E6(s,t,e){var i=UR(e),n=Math.floor(s/1e5),r=Math.floor(t/1e5)%20;return S6(n,r,i)}function UR(s){var t=s%kS;return t===0&&(t=kS),t}function S6(s,t,e){var i=e-1,n=$R.charCodeAt(i),r=GR.charCodeAt(i),o=n+s-1,a=r+t,l=!1;o>yu&&(o=o-yu+uh-1,l=!0),(o===pi||npi||(o>pi||nQi||(o>Qi||nyu&&(o=o-yu+uh-1),a>_u?(a=a-_u+uh-1,l=!0):l=!1,(a===pi||rpi||(a>pi||rQi||(a>Qi||r_u&&(a=a-_u+uh-1);var h=String.fromCharCode(o)+String.fromCharCode(a);return h}function BR(s){if(s&&s.length===0)throw"MGRSPoint coverting from nothing";for(var t=s.length,e=null,i="",n,r=0;!/[A-Z]/.test(n=s.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+s;i+=n,r++}var o=parseInt(i,10);if(r===0||r+3>t)throw"MGRSPoint bad conversion from: "+s;var a=s.charAt(r++);if(a<="A"||a==="B"||a==="Y"||a>="Z"||a==="I"||a==="O")throw"MGRSPoint zone letter "+a+" not handled: "+s;e=s.substring(r,r+=2);for(var l=UR(o),h=M6(e.charAt(0),l),c=b6(e.charAt(1),l);c0&&(p=1e5/Math.pow(10,d),m=s.substring(r,r+d),g=parseFloat(m)*p,_=s.substring(r+d),f=parseFloat(_)*p),y=g+h,v=f+c,{easting:y,northing:v,zoneLetter:a,zoneNumber:o,accuracy:p}}function M6(s,t){for(var e=$R.charCodeAt(t-1),i=1e5,n=!1;e!==s.charCodeAt(0);){if(e++,e===pi&&e++,e===Qi&&e++,e>yu){if(n)throw"Bad character: "+s;e=uh,n=!0}i+=1e5}return i}function b6(s,t){if(s>"V")throw"MGRSPoint given invalid Northing "+s;for(var e=GR.charCodeAt(t-1),i=0,n=!1;e!==s.charCodeAt(0);){if(e++,e===pi&&e++,e===Qi&&e++,e>_u){if(n)throw"Bad character: "+s;e=uh,n=!0}i+=1e5}return i}function C6(s){var t;switch(s){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+s}function tc(s,t,e){if(!(this instanceof tc))return new tc(s,t,e);if(Array.isArray(s))this.x=s[0],this.y=s[1],this.z=s[2]||0;else if(typeof s=="object")this.x=s.x,this.y=s.y,this.z=s.z||0;else if(typeof s=="string"&&typeof t>"u"){var i=s.split(",");this.x=parseFloat(i[0],10),this.y=parseFloat(i[1],10),this.z=parseFloat(i[2],10)||0}else this.x=s,this.y=t,this.z=e||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}tc.fromMGRS=function(s){return new tc(zR(s))};tc.prototype.toMGRS=function(s){return jR([this.x,this.y],s)};var T6=1,R6=.25,GS=.046875,jS=.01953125,zS=.01068115234375,I6=.75,P6=.46875,A6=.013020833333333334,L6=.007120768229166667,O6=.3645833333333333,F6=.005696614583333333,N6=.3076171875;function WR(s){var t=[];t[0]=T6-s*(R6+s*(GS+s*(jS+s*zS))),t[1]=s*(I6-s*(GS+s*(jS+s*zS)));var e=s*s;return t[2]=e*(P6-s*(A6+s*L6)),e*=s,t[3]=e*(O6-s*F6),t[4]=e*s*N6,t}function Lm(s,t,e,i){return e*=t,t*=t,i[0]*s-e*(i[1]+t*(i[2]+t*(i[3]+t*i[4])))}var D6=20;function XR(s,t,e){for(var i=1/(1-t),n=s,r=D6;r;--r){var o=Math.sin(n),a=1-t*o*o;if(a=(Lm(n,o,Math.cos(n),e)-s)*(a*Math.sqrt(a))*i,n-=a,Math.abs(a)Q?Math.tan(e):0,f=Math.pow(g,2),p=Math.pow(f,2);n=1-this.es*Math.pow(a,2),h=h/Math.sqrt(n);var m=Lm(e,a,l,this.en);r=this.a*(this.k0*h*(1+c/6*(1-f+u+c/20*(5-18*f+p+14*u-58*f*u+c/42*(61+179*p-p*f-479*f)))))+this.x0,o=this.a*(this.k0*(m-this.ml0+a*i*h/2*(1+c/12*(5-f+9*u+4*d+c/30*(61+p-58*f+270*u-330*f*u+c/56*(1385+543*p-p*f-3111*f))))))+this.y0}else{var _=l*Math.sin(i);if(Math.abs(Math.abs(_)-1)=1){if(_-1>Q)return 93;o=0}else o=Math.acos(o);e<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return s.x=r,s.y=o,s}function G6(s){var t,e,i,n,r=(s.x-this.x0)*(1/this.a),o=(s.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+o/this.k0,e=XR(t,this.es,this.en),Math.abs(e)Q?Math.tan(e):0,c=this.ep2*Math.pow(l,2),u=Math.pow(c,2),d=Math.pow(h,2),g=Math.pow(d,2);t=1-this.es*Math.pow(a,2);var f=r*Math.sqrt(t)/this.k0,p=Math.pow(f,2);t=t*h,i=e-t*p/(1-this.es)*.5*(1-p/12*(5+3*d-9*c*d+c-4*u-p/30*(61+90*d-252*c*d+45*g+46*c-p/56*(1385+3633*d+4095*g+1574*g*d)))),n=nt(this.long0+f*(1-p/6*(1+2*d+c-p/20*(5+28*d+24*g+8*c*d+6*c-p/42*(61+662*d+1320*g+720*g*d))))/l)}else i=H*hg(o),n=0;else{var m=Math.exp(r/this.k0),_=.5*(m-1/m),y=this.lat0+o/this.k0,v=Math.cos(y);t=Math.sqrt((1-Math.pow(v,2))/(1+Math.pow(_,2))),i=Math.asin(t),o<0&&(i=-i),_===0&&v===0?n=0:n=nt(Math.atan2(_,v)+this.long0)}return s.x=n,s.y=i,s}var j6=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const Ff={init:k6,forward:$6,inverse:G6,names:j6};function VR(s){var t=Math.exp(s);return t=(t-1/t)/2,t}function rn(s,t){s=Math.abs(s),t=Math.abs(t);var e=Math.max(s,t),i=Math.min(s,t)/(e||1);return e*Math.sqrt(1+Math.pow(i,2))}function z6(s){var t=1+s,e=t-1;return e===0?s:s*Math.log(t)/e}function U6(s){var t=Math.abs(s);return t=z6(t*(1+t/(rn(1,t)+1))),s<0?-t:t}function Fx(s,t){for(var e=2*Math.cos(2*t),i=s.length-1,n=s[i],r=0,o;--i>=0;)o=-r+e*n+s[i],r=n,n=o;return t+o*Math.sin(2*t)}function B6(s,t){for(var e=2*Math.cos(t),i=s.length-1,n=s[i],r=0,o;--i>=0;)o=-r+e*n+s[i],r=n,n=o;return Math.sin(t)*o}function W6(s){var t=Math.exp(s);return t=(t+1/t)/2,t}function YR(s,t,e){for(var i=Math.sin(t),n=Math.cos(t),r=VR(e),o=W6(e),a=2*n*o,l=-2*i*r,h=s.length-1,c=s[h],u=0,d=0,g=0,f,p;--h>=0;)f=d,p=u,d=c,u=g,c=-f+a*d-l*u+s[h],g=-p+l*d+a*u;return a=i*o,l=n*r,[a*c-l*g,a*g+l*c]}function X6(){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&&(Ff.init.apply(this),this.forward=Ff.forward,this.inverse=Ff.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 s=this.es/(1+Math.sqrt(1-this.es)),t=s/(2-s),e=t;this.cgb[0]=t*(2+t*(-2/3+t*(-2+t*(116/45+t*(26/45+t*(-2854/675)))))),this.cbg[0]=t*(-2+t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))),e=e*t,this.cgb[1]=e*(7/3+t*(-8/5+t*(-227/45+t*(2704/315+t*(2323/945))))),this.cbg[1]=e*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),e=e*t,this.cgb[2]=e*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=e*(-26/15+t*(34/21+t*(8/5+t*(-12686/2835)))),e=e*t,this.cgb[3]=e*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=e*(1237/630+t*(-12/5+t*(-24832/14175))),e=e*t,this.cgb[4]=e*(4174/315+t*(-144838/6237)),this.cbg[4]=e*(-734/315+t*(109598/31185)),e=e*t,this.cgb[5]=e*(601676/22275),this.cbg[5]=e*(444337/155925),e=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+e*(1/4+e*(1/64+e/256))),this.utg[0]=t*(-.5+t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=e*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=e*(13/48+t*(-3/5+t*(557/1440+t*(281/630+t*(-1983433/1935360))))),e=e*t,this.utg[2]=e*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=e*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),e=e*t,this.utg[3]=e*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=e*(49561/161280+t*(-179/168+t*(6601661/7257600))),e=e*t,this.utg[4]=e*(-4583/161280+t*(108847/3991680)),this.gtu[4]=e*(34729/80640+t*(-3418889/1995840)),e=e*t,this.utg[5]=e*(-20648693/638668800),this.gtu[5]=e*(212378941/319334400);var i=Fx(this.cbg,this.lat0);this.Zb=-this.Qn*(i+B6(this.gtu,2*i))}function V6(s){var t=nt(s.x-this.long0),e=s.y;e=Fx(this.cbg,e);var i=Math.sin(e),n=Math.cos(e),r=Math.sin(t),o=Math.cos(t);e=Math.atan2(i,o*n),t=Math.atan2(r*n,rn(i,n*o)),t=U6(Math.tan(t));var a=YR(this.gtu,2*e,2*t);e=e+a[0],t=t+a[1];var l,h;return Math.abs(t)<=2.623395162778?(l=this.a*(this.Qn*t)+this.x0,h=this.a*(this.Qn*e+this.Zb)+this.y0):(l=1/0,h=1/0),s.x=l,s.y=h,s}function Y6(s){var t=(s.x-this.x0)*(1/this.a),e=(s.y-this.y0)*(1/this.a);e=(e-this.Zb)/this.Qn,t=t/this.Qn;var i,n;if(Math.abs(t)<=2.623395162778){var r=YR(this.utg,2*e,2*t);e=e+r[0],t=t+r[1],t=Math.atan(VR(t));var o=Math.sin(e),a=Math.cos(e),l=Math.sin(t),h=Math.cos(t);e=Math.atan2(o*h,rn(l,h*a)),t=Math.atan2(l,h*a),i=nt(t+this.long0),n=Fx(this.cgb,e)}else i=1/0,n=1/0;return s.x=i,s.y=n,s}var q6=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const Nf={init:X6,forward:V6,inverse:Y6,names:q6};function Z6(s,t){if(s===void 0){if(s=Math.floor((nt(t)+Math.PI)*30/Math.PI)+1,s<0)return 0;if(s>60)return 60}return s}var H6="etmerc";function K6(){var s=Z6(this.zone,this.long0);if(s===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(s)-183)*As,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Nf.init.apply(this),this.forward=Nf.forward,this.inverse=Nf.inverse}var J6=["Universal Transverse Mercator System","utm"];const Q6={init:K6,names:J6,dependsOn:H6};function Nx(s,t){return Math.pow((1-s)/(1+s),t)}var tj=20;function ej(){var s=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*s*s),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(s/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+me)/(Math.pow(Math.tan(.5*this.lat0+me),this.C)*Nx(this.e*s,this.ratexp))}function sj(s){var t=s.x,e=s.y;return s.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*e+me),this.C)*Nx(this.e*Math.sin(e),this.ratexp))-H,s.x=this.C*t,s}function ij(s){for(var t=1e-14,e=s.x/this.C,i=s.y,n=Math.pow(Math.tan(.5*i+me)/this.K,1/this.C),r=tj;r>0&&(i=2*Math.atan(n*Nx(this.e*Math.sin(s.y),-.5*this.e))-H,!(Math.abs(i-s.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)<=Q&&Math.abs(Math.cos(this.lat_ts))>Q&&(this.k0=.5*this.cons*xr(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Dn(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=xr(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-H,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function dj(s){var t=s.x,e=s.y,i=Math.sin(e),n=Math.cos(e),r,o,a,l,h,c,u=nt(t-this.long0);return Math.abs(Math.abs(t-this.long0)-Math.PI)<=Q&&Math.abs(e+this.lat0)<=Q?(s.x=NaN,s.y=NaN,s):this.sphere?(r=2*this.k0/(1+this.sinlat0*i+this.coslat0*n*Math.cos(u)),s.x=this.a*r*n*Math.sin(u)+this.x0,s.y=this.a*r*(this.coslat0*i-this.sinlat0*n*Math.cos(u))+this.y0,s):(o=2*Math.atan(this.ssfn_(e,i,this.e))-H,l=Math.cos(o),a=Math.sin(o),Math.abs(this.coslat0)<=Q?(h=Dn(this.e,e*this.con,this.con*i),c=2*this.a*this.k0*h/this.cons,s.x=this.x0+c*Math.sin(t-this.long0),s.y=this.y0-this.con*c*Math.cos(t-this.long0),s):(Math.abs(this.sinlat0)0?t=nt(this.long0+Math.atan2(s.x,-1*s.y)):t=nt(this.long0+Math.atan2(s.x,s.y)):t=nt(this.long0+Math.atan2(s.x*Math.sin(a),o*this.coslat0*Math.cos(a)-s.y*this.sinlat0*Math.sin(a))),s.x=t,s.y=e,s)}else if(Math.abs(this.coslat0)<=Q){if(o<=Q)return e=this.lat0,t=this.long0,s.x=t,s.y=e,s;s.x*=this.con,s.y*=this.con,i=o*this.cons/(2*this.a*this.k0),e=this.con*Sd(this.e,i),t=this.con*nt(this.con*this.long0+Math.atan2(s.x,-1*s.y))}else n=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,o<=Q?r=this.X0:(r=Math.asin(Math.cos(n)*this.sinX0+s.y*Math.sin(n)*this.cosX0/o),t=nt(this.long0+Math.atan2(s.x*Math.sin(n),o*this.cosX0*Math.cos(n)-s.y*this.sinX0*Math.sin(n)))),e=-1*Sd(this.e,Math.tan(.5*(H+r)));return s.x=t,s.y=e,s}var fj=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const pj={init:uj,forward:dj,inverse:gj,names:fj,ssfn_:cj};function mj(){var s=this.lat0;this.lambda0=this.long0;var t=Math.sin(s),e=this.a,i=this.rf,n=1/i,r=2*n-Math.pow(n,2),o=this.e=Math.sqrt(r);this.R=this.k0*e*Math.sqrt(1-r)/(1-r*Math.pow(t,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(s),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+s/2)),h=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*l+this.alpha*o/2*h}function _j(s){var t=Math.log(Math.tan(Math.PI/4-s.y/2)),e=this.e/2*Math.log((1+this.e*Math.sin(s.y))/(1-this.e*Math.sin(s.y))),i=-this.alpha*(t+e)+this.K,n=2*(Math.atan(Math.exp(i))-Math.PI/4),r=this.alpha*(s.x-this.lambda0),o=Math.atan(Math.sin(r)/(Math.sin(this.b0)*Math.tan(n)+Math.cos(this.b0)*Math.cos(r))),a=Math.asin(Math.cos(this.b0)*Math.sin(n)-Math.sin(this.b0)*Math.cos(n)*Math.cos(r));return s.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,s.x=this.R*o+this.x0,s}function yj(s){for(var t=s.x-this.x0,e=s.y-this.y0,i=t/this.R,n=2*(Math.atan(Math.exp(e/this.R))-Math.PI/4),r=Math.asin(Math.cos(this.b0)*Math.sin(n)+Math.sin(this.b0)*Math.cos(n)*Math.cos(i)),o=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(n))),a=this.lambda0+o/this.alpha,l=0,h=r,c=-1e3,u=0;Math.abs(h-c)>1e-7;){if(++u>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+r/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(h))/2)),c=h,h=2*Math.atan(Math.exp(l))-Math.PI/2}return s.x=a,s.y=h,s}var xj=["somerc"];const vj={init:mj,forward:_j,inverse:yj,names:xj};var Zl=1e-7;function wj(s){var t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],e=typeof s.PROJECTION=="object"?Object.keys(s.PROJECTION)[0]:s.PROJECTION;return"no_uoff"in s||"no_off"in s||t.indexOf(e)!==-1}function Ej(){var s,t,e,i,n,r,o,a,l,h,c=0,u,d=0,g=0,f=0,p=0,m=0,_=0;this.no_off=wj(this),this.no_rot="no_rot"in this;var y=!1;"alpha"in this&&(y=!0);var v=!1;if("rectified_grid_angle"in this&&(v=!0),y&&(_=this.alpha),v&&(c=this.rectified_grid_angle*As),y||v)d=this.longc;else if(g=this.long1,p=this.lat1,f=this.long2,m=this.lat2,Math.abs(p-m)<=Zl||(s=Math.abs(p))<=Zl||Math.abs(s-H)<=Zl||Math.abs(Math.abs(this.lat0)-H)<=Zl||Math.abs(Math.abs(m)-H)<=Zl)throw new Error;var S=1-this.es;t=Math.sqrt(S),Math.abs(this.lat0)>Q?(a=Math.sin(this.lat0),e=Math.cos(this.lat0),s=1-this.es*a*a,this.B=e*e,this.B=Math.sqrt(1+this.es*this.B*this.B/S),this.A=this.B*this.k0*t/s,i=this.B*t/(e*Math.sqrt(s)),n=i*i-1,n<=0?n=0:(n=Math.sqrt(n),this.lat0<0&&(n=-n)),this.E=n+=i,this.E*=Math.pow(Dn(this.e,this.lat0,a),this.B)):(this.B=1/t,this.A=this.k0,this.E=i=n=1),y||v?(y?(u=Math.asin(Math.sin(_)/i),v||(c=_)):(u=c,_=Math.asin(i*Math.sin(u))),this.lam0=d-Math.asin(.5*(n-1/n)*Math.tan(u))/this.B):(r=Math.pow(Dn(this.e,p,Math.sin(p)),this.B),o=Math.pow(Dn(this.e,m,Math.sin(m)),this.B),n=this.E/r,l=(o-r)/(o+r),h=this.E*this.E,h=(h-o*r)/(h+o*r),s=g-f,s<-Math.pi?f-=wd:s>Math.pi&&(f+=wd),this.lam0=nt(.5*(g+f)-Math.atan(h*Math.tan(.5*this.B*(g-f))/l)/this.B),u=Math.atan(2*Math.sin(this.B*nt(g-this.lam0))/(n-1/n)),c=_=Math.asin(i*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(c),this.cosrot=Math.cos(c),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(i*i-1)/Math.cos(_))),this.lat0<0&&(this.u_0=-this.u_0)),n=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(me-n)),this.v_pole_s=this.ArB*Math.log(Math.tan(me+n))}function Sj(s){var t={},e,i,n,r,o,a,l,h;if(s.x=s.x-this.lam0,Math.abs(Math.abs(s.y)-H)>Q){if(o=this.E/Math.pow(Dn(this.e,s.y,Math.sin(s.y)),this.B),a=1/o,e=.5*(o-a),i=.5*(o+a),r=Math.sin(this.B*s.x),n=(e*this.singam-r*this.cosgam)/i,Math.abs(Math.abs(n)-1)0?this.v_pole_n:this.v_pole_s,l=this.ArB*s.y;return this.no_rot?(t.x=l,t.y=h):(l-=this.u_0,t.x=h*this.cosrot+l*this.sinrot,t.y=l*this.cosrot-h*this.sinrot),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function Mj(s){var t,e,i,n,r,o,a,l={};if(s.x=(s.x-this.x0)*(1/this.a),s.y=(s.y-this.y0)*(1/this.a),this.no_rot?(e=s.y,t=s.x):(e=s.x*this.cosrot-s.y*this.sinrot,t=s.y*this.cosrot+s.x*this.sinrot+this.u_0),i=Math.exp(-this.BrA*e),n=.5*(i-1/i),r=.5*(i+1/i),o=Math.sin(this.BrA*t),a=(o*this.cosgam+n*this.singam)/r,Math.abs(Math.abs(a)-1)Q?this.ns=Math.log(i/a)/Math.log(n/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=i/(this.ns*Math.pow(n,this.ns)),this.rh=this.a*this.f0*Math.pow(h,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function Rj(s){var t=s.x,e=s.y;Math.abs(2*Math.abs(e)-Math.PI)<=Q&&(e=hg(e)*(H-2*Q));var i=Math.abs(Math.abs(e)-H),n,r;if(i>Q)n=Dn(this.e,e,Math.sin(e)),r=this.a*this.f0*Math.pow(n,this.ns);else{if(i=e*this.ns,i<=0)return null;r=0}var o=this.ns*nt(t-this.long0);return s.x=this.k0*(r*Math.sin(o))+this.x0,s.y=this.k0*(this.rh-r*Math.cos(o))+this.y0,s}function Ij(s){var t,e,i,n,r,o=(s.x-this.x0)/this.k0,a=this.rh-(s.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(o*o+a*a),e=1):(t=-Math.sqrt(o*o+a*a),e=-1);var l=0;if(t!==0&&(l=Math.atan2(e*o,e*a)),t!==0||this.ns>0){if(e=1/this.ns,i=Math.pow(t/(this.a*this.f0),e),n=Sd(this.e,i),n===-9999)return null}else n=-H;return r=nt(l/this.ns+this.long0),s.x=r,s.y=n,s}var Pj=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const Aj={init:Tj,forward:Rj,inverse:Ij,names:Pj};function Lj(){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 Oj(s){var t,e,i,n,r,o,a,l=s.x,h=s.y,c=nt(l-this.long0);return t=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),e=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/t)-this.s45),i=-c*this.alfa,n=Math.asin(Math.cos(this.ad)*Math.sin(e)+Math.sin(this.ad)*Math.cos(e)*Math.cos(i)),r=Math.asin(Math.cos(e)*Math.sin(i)/Math.cos(n)),o=this.n*r,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(n/2+this.s45),this.n),s.y=a*Math.cos(o)/1,s.x=a*Math.sin(o)/1,this.czech||(s.y*=-1,s.x*=-1),s}function Fj(s){var t,e,i,n,r,o,a,l,h=s.x;s.x=s.y,s.y=h,this.czech||(s.y*=-1,s.x*=-1),o=Math.sqrt(s.x*s.x+s.y*s.y),r=Math.atan2(s.y,s.x),n=r/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(n)),e=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(t)),s.x=this.long0-e/this.alfa,a=t,l=0;var c=0;do s.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-s.y)<1e-10&&(l=1),a=s.y,c+=1;while(l===0&&c<15);return c>=15?null:s}var Nj=["Krovak","krovak"];const Dj={init:Lj,forward:Oj,inverse:Fj,names:Nj};function oi(s,t,e,i,n){return s*n-t*Math.sin(2*n)+e*Math.sin(4*n)-i*Math.sin(6*n)}function cg(s){return 1-.25*s*(1+s/16*(3+1.25*s))}function ug(s){return .375*s*(1+.25*s*(1+.46875*s))}function dg(s){return .05859375*s*s*(1+.75*s)}function gg(s){return s*s*s*(35/3072)}function ec(s,t,e){var i=t*e;return s/Math.sqrt(1-i*i)}function Sc(s){return Math.abs(s)1e-7?(e=s*t,(1-s*s)*(t/(1-e*e)-.5/s*Math.log((1-e)/(1+e)))):2*t}var Uj=1,Bj=2,Wj=3,Xj=4;function Vj(){var s=Math.abs(this.lat0);if(Math.abs(s-H)0){var t;switch(this.qp=Ko(this.e,1),this.mmf=.5/(1-this.es),this.apa=e8(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),t=Math.sin(this.lat0),this.sinb1=Ko(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*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 Yj(s){var t,e,i,n,r,o,a,l,h,c,u=s.x,d=s.y;if(u=nt(u-this.long0),this.sphere){if(r=Math.sin(d),c=Math.cos(d),i=Math.cos(u),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e=this.mode===this.EQUIT?1+c*i:1+this.sinph0*r+this.cosph0*c*i,e<=Q)return null;e=Math.sqrt(2/e),t=e*c*Math.sin(u),e*=this.mode===this.EQUIT?r:this.cosph0*r-this.sinph0*c*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(d+this.lat0)=0?(t=(h=Math.sqrt(o))*n,e=i*(this.mode===this.S_POLE?h:-h)):t=e=0;break}}return s.x=this.a*t+this.x0,s.y=this.a*e+this.y0,s}function qj(s){s.x-=this.x0,s.y-=this.y0;var t=s.x/this.a,e=s.y/this.a,i,n,r,o,a,l,h;if(this.sphere){var c=0,u,d=0;if(u=Math.sqrt(t*t+e*e),n=u*.5,n>1)return null;switch(n=2*Math.asin(n),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(d=Math.sin(n),c=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(u)<=Q?0:Math.asin(e*d/u),t*=d,e=c*u;break;case this.OBLIQ:n=Math.abs(u)<=Q?this.lat0:Math.asin(c*this.sinph0+e*d*this.cosph0/u),t*=d*this.cosph0,e=(c-Math.sin(n)*this.sinph0)*u;break;case this.N_POLE:e=-e,n=H-n;break;case this.S_POLE:n-=H;break}i=e===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(t,e)}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t/=this.dd,e*=this.dd,l=Math.sqrt(t*t+e*e),l1&&(s=s>1?1:-1),Math.asin(s)}function r8(){Math.abs(this.lat1+this.lat2)Q?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 o8(s){var t=s.x,e=s.y;this.sin_phi=Math.sin(e),this.cos_phi=Math.cos(e);var i=Ko(this.e3,this.sin_phi),n=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,r=this.ns0*nt(t-this.long0),o=n*Math.sin(r)+this.x0,a=this.rh-n*Math.cos(r)+this.y0;return s.x=o,s.y=a,s}function a8(s){var t,e,i,n,r,o;return s.x-=this.x0,s.y=this.rh-s.y+this.y0,this.ns0>=0?(t=Math.sqrt(s.x*s.x+s.y*s.y),i=1):(t=-Math.sqrt(s.x*s.x+s.y*s.y),i=-1),n=0,t!==0&&(n=Math.atan2(i*s.x,i*s.y)),i=t*this.ns0/this.a,this.sphere?o=Math.asin((this.c-i*i)/(2*this.ns0)):(e=(this.c-i*i)/this.ns0,o=this.phi1z(this.e3,e)),r=nt(n/this.ns0+this.long0),s.x=r,s.y=o,s}function l8(s,t){var e,i,n,r,o,a=oa(.5*t);if(s0||Math.abs(o)<=Q?(a=this.x0+this.a*r*e*Math.sin(i)/o,l=this.y0+this.a*r*(this.cos_p14*t-this.sin_p14*e*n)/o):(a=this.x0+this.infinity_dist*e*Math.sin(i),l=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*e*n)),s.x=a,s.y=l,s}function g8(s){var t,e,i,n,r,o;return s.x=(s.x-this.x0)/this.a,s.y=(s.y-this.y0)/this.a,s.x/=this.k0,s.y/=this.k0,(t=Math.sqrt(s.x*s.x+s.y*s.y))?(n=Math.atan2(t,this.rc),e=Math.sin(n),i=Math.cos(n),o=oa(i*this.sin_p14+s.y*e*this.cos_p14/t),r=Math.atan2(s.x*e,t*this.cos_p14*i-s.y*this.sin_p14*e),r=nt(this.long0+r)):(o=this.phic0,r=0),s.x=r,s.y=o,s}var f8=["gnom"];const p8={init:u8,forward:d8,inverse:g8,names:f8};function m8(s,t){var e=1-(1-s*s)/(2*s)*Math.log((1-s)/(1+s));if(Math.abs(Math.abs(t)-e)<1e-6)return t<0?-1*H:H;for(var i=Math.asin(.5*t),n,r,o,a,l=0;l<30;l++)if(r=Math.sin(i),o=Math.cos(i),a=s*r,n=Math.pow(1-a*a,2)/(2*o)*(t/(1-s*s)-r/(1-a*a)+.5/s*Math.log((1-a)/(1+a))),i+=n,Math.abs(n)<=1e-10)return i;return NaN}function _8(){this.sphere||(this.k0=xr(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function y8(s){var t=s.x,e=s.y,i,n,r=nt(t-this.long0);if(this.sphere)i=this.x0+this.a*r*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(e)/Math.cos(this.lat_ts);else{var o=Ko(this.e,Math.sin(e));i=this.x0+this.a*this.k0*r,n=this.y0+this.a*o*.5/this.k0}return s.x=i,s.y=n,s}function x8(s){s.x-=this.x0,s.y-=this.y0;var t,e;return this.sphere?(t=nt(this.long0+s.x/this.a/Math.cos(this.lat_ts)),e=Math.asin(s.y/this.a*Math.cos(this.lat_ts))):(e=m8(this.e,2*s.y*this.k0/this.a),t=nt(this.long0+s.x/(this.a*this.k0))),s.x=t,s.y=e,s}var v8=["cea"];const w8={init:_8,forward:y8,inverse:x8,names:v8};function E8(){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 S8(s){var t=s.x,e=s.y,i=nt(t-this.long0),n=Sc(e-this.lat0);return s.x=this.x0+this.a*i*this.rc,s.y=this.y0+this.a*n,s}function M8(s){var t=s.x,e=s.y;return s.x=nt(this.long0+(t-this.x0)/(this.a*this.rc)),s.y=Sc(this.lat0+(e-this.y0)/this.a),s}var b8=["Equirectangular","Equidistant_Cylindrical","eqc"];const C8={init:E8,forward:S8,inverse:M8,names:b8};var US=20;function T8(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=cg(this.es),this.e1=ug(this.es),this.e2=dg(this.es),this.e3=gg(this.es),this.ml0=this.a*oi(this.e0,this.e1,this.e2,this.e3,this.lat0)}function R8(s){var t=s.x,e=s.y,i,n,r,o=nt(t-this.long0);if(r=o*Math.sin(e),this.sphere)Math.abs(e)<=Q?(i=this.a*o,n=-1*this.a*this.lat0):(i=this.a*Math.sin(r)/Math.tan(e),n=this.a*(Sc(e-this.lat0)+(1-Math.cos(r))/Math.tan(e)));else if(Math.abs(e)<=Q)i=this.a*o,n=-1*this.ml0;else{var a=ec(this.a,this.e,Math.sin(e))/Math.tan(e);i=a*Math.sin(r),n=this.a*oi(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+a*(1-Math.cos(r))}return s.x=i+this.x0,s.y=n+this.y0,s}function I8(s){var t,e,i,n,r,o,a,l,h;if(i=s.x-this.x0,n=s.y-this.y0,this.sphere)if(Math.abs(n+this.a*this.lat0)<=Q)t=nt(i/this.a+this.long0),e=0;else{o=this.lat0+n/this.a,a=i*i/this.a/this.a+o*o,l=o;var c;for(r=US;r;--r)if(c=Math.tan(l),h=-1*(o*(l*c+1)-l-.5*(l*l+a)*c)/((l-o)/c-1),l+=h,Math.abs(h)<=Q){e=l;break}t=nt(this.long0+Math.asin(i*Math.tan(l)/this.a)/Math.sin(e))}else if(Math.abs(n+this.ml0)<=Q)e=0,t=nt(this.long0+i/this.a);else{o=(this.ml0+n)/this.a,a=i*i/this.a/this.a+o*o,l=o;var u,d,g,f,p;for(r=US;r;--r)if(p=this.e*Math.sin(l),u=Math.sqrt(1-p*p)*Math.tan(l),d=this.a*oi(this.e0,this.e1,this.e2,this.e3,l),g=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),f=d/this.a,h=(o*(u*f+1)-f-.5*u*(f*f+a))/(this.es*Math.sin(2*l)*(f*f+a-2*o*f)/(4*u)+(o-f)*(u*g-2/Math.sin(2*l))-g),l-=h,Math.abs(h)<=Q){e=l;break}u=Math.sqrt(1-this.es*Math.pow(Math.sin(e),2))*Math.tan(e),t=nt(this.long0+Math.asin(i*u/this.a)/Math.sin(e))}return s.x=t,s.y=e,s}var P8=["Polyconic","poly"];const A8={init:T8,forward:R8,inverse:I8,names:P8};function L8(){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 O8(s){var t,e=s.x,i=s.y,n=i-this.lat0,r=e-this.long0,o=n/$u*1e-5,a=r,l=1,h=0;for(t=1;t<=10;t++)l=l*o,h=h+this.A[t]*l;var c=h,u=a,d=1,g=0,f,p,m=0,_=0;for(t=1;t<=6;t++)f=d*c-g*u,p=g*c+d*u,d=f,g=p,m=m+this.B_re[t]*d-this.B_im[t]*g,_=_+this.B_im[t]*d+this.B_re[t]*g;return s.x=_*this.a+this.x0,s.y=m*this.a+this.y0,s}function F8(s){var t,e=s.x,i=s.y,n=e-this.x0,r=i-this.y0,o=r/this.a,a=n/this.a,l=1,h=0,c,u,d=0,g=0;for(t=1;t<=6;t++)c=l*o-h*a,u=h*o+l*a,l=c,h=u,d=d+this.C_re[t]*l-this.C_im[t]*h,g=g+this.C_im[t]*l+this.C_re[t]*h;for(var f=0;f.999999999999&&(e=.999999999999),t=Math.asin(e);var i=nt(this.long0+s.x/(.900316316158*this.a*Math.cos(t)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),e=(2*t+Math.sin(2*t))/Math.PI,Math.abs(e)>1&&(e=1);var n=Math.asin(e);return s.x=i,s.y=n,s}var K8=["Mollweide","moll"];const J8={init:q8,forward:Z8,inverse:H8,names:K8};function Q8(){Math.abs(this.lat1+this.lat2)=0?(e=Math.sqrt(s.x*s.x+s.y*s.y),t=1):(e=-Math.sqrt(s.x*s.x+s.y*s.y),t=-1);var r=0;if(e!==0&&(r=Math.atan2(t*s.x,t*s.y)),this.sphere)return n=nt(this.long0+r/this.ns),i=Sc(this.g-e/this.a),s.x=n,s.y=i,s;var o=this.g-e/this.a;return i=wp(o,this.e0,this.e1,this.e2,this.e3),n=nt(this.long0+r/this.ns),s.x=n,s.y=i,s}var sz=["Equidistant_Conic","eqdc"];const iz={init:Q8,forward:tz,inverse:ez,names:sz};function nz(){this.R=this.a}function rz(s){var t=s.x,e=s.y,i=nt(t-this.long0),n,r;Math.abs(e)<=Q&&(n=this.x0+this.R*i,r=this.y0);var o=oa(2*Math.abs(e/Math.PI));(Math.abs(i)<=Q||Math.abs(Math.abs(e)-H)<=Q)&&(n=this.x0,e>=0?r=this.y0+Math.PI*this.R*Math.tan(.5*o):r=this.y0+Math.PI*this.R*-Math.tan(.5*o));var a=.5*Math.abs(Math.PI/i-i/Math.PI),l=a*a,h=Math.sin(o),c=Math.cos(o),u=c/(h+c-1),d=u*u,g=u*(2/h-1),f=g*g,p=Math.PI*this.R*(a*(u-f)+Math.sqrt(l*(u-f)*(u-f)-(f+l)*(d-f)))/(f+l);i<0&&(p=-p),n=this.x0+p;var m=l+u;return p=Math.PI*this.R*(g*m-a*Math.sqrt((f+l)*(l+1)-m*m))/(f+l),e>=0?r=this.y0+p:r=this.y0-p,s.x=n,s.y=r,s}function oz(s){var t,e,i,n,r,o,a,l,h,c,u,d,g;return s.x-=this.x0,s.y-=this.y0,u=Math.PI*this.R,i=s.x/u,n=s.y/u,r=i*i+n*n,o=-Math.abs(n)*(1+r),a=o-2*n*n+i*i,l=-2*o+1+2*n*n+r*r,g=n*n/l+(2*a*a*a/l/l/l-9*o*a/l/l)/27,h=(o-a*a/3/l)/l,c=2*Math.sqrt(-h/3),u=3*g/h/c,Math.abs(u)>1&&(u>=0?u=1:u=-1),d=Math.acos(u)/3,s.y>=0?e=(-c*Math.cos(d+Math.PI/3)-a/3/l)*Math.PI:e=-(-c*Math.cos(d+Math.PI/3)-a/3/l)*Math.PI,Math.abs(i)2*H*this.a?void 0:(e=t/this.a,i=Math.sin(e),n=Math.cos(e),r=this.long0,Math.abs(t)<=Q?o=this.lat0:(o=oa(n*this.sin_p12+s.y*i*this.cos_p12/t),a=Math.abs(this.lat0)-H,Math.abs(a)<=Q?this.lat0>=0?r=nt(this.long0+Math.atan2(s.x,-s.y)):r=nt(this.long0-Math.atan2(-s.x,s.y)):r=nt(this.long0+Math.atan2(s.x*i,t*this.cos_p12*n-s.y*this.sin_p12*i))),s.x=r,s.y=o,s)):(l=cg(this.es),h=ug(this.es),c=dg(this.es),u=gg(this.es),Math.abs(this.sin_p12-1)<=Q?(d=this.a*oi(l,h,c,u,H),t=Math.sqrt(s.x*s.x+s.y*s.y),g=d-t,o=wp(g/this.a,l,h,c,u),r=nt(this.long0+Math.atan2(s.x,-1*s.y)),s.x=r,s.y=o,s):Math.abs(this.sin_p12+1)<=Q?(d=this.a*oi(l,h,c,u,H),t=Math.sqrt(s.x*s.x+s.y*s.y),g=t-d,o=wp(g/this.a,l,h,c,u),r=nt(this.long0+Math.atan2(s.x,s.y)),s.x=r,s.y=o,s):(t=Math.sqrt(s.x*s.x+s.y*s.y),m=Math.atan2(s.x,s.y),f=ec(this.a,this.e,this.sin_p12),_=Math.cos(m),y=this.e*this.cos_p12*_,v=-y*y/(1-this.es),S=3*this.es*(1-v)*this.sin_p12*this.cos_p12*_/(1-this.es),w=t/f,C=w-v*(1+v)*Math.pow(w,3)/6-S*(1+3*v)*Math.pow(w,4)/24,M=1-v*C*C/2-w*C*C*C/6,p=Math.asin(this.sin_p12*Math.cos(C)+this.cos_p12*Math.sin(C)*_),r=nt(this.long0+Math.asin(Math.sin(m)*Math.sin(C)/Math.cos(p))),T=Math.sin(p),o=Math.atan2((T-this.es*M*this.sin_p12)*Math.tan(p),T*(1-this.es)),s.x=r,s.y=o,s))}var dz=["Azimuthal_Equidistant","aeqd"];const gz={init:hz,forward:cz,inverse:uz,names:dz};function fz(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function pz(s){var t,e,i,n,r,o,a,l,h=s.x,c=s.y;return i=nt(h-this.long0),t=Math.sin(c),e=Math.cos(c),n=Math.cos(i),o=this.sin_p14*t+this.cos_p14*e*n,r=1,(o>0||Math.abs(o)<=Q)&&(a=this.a*r*e*Math.sin(i),l=this.y0+this.a*r*(this.cos_p14*t-this.sin_p14*e*n)),s.x=a,s.y=l,s}function mz(s){var t,e,i,n,r,o,a;return s.x-=this.x0,s.y-=this.y0,t=Math.sqrt(s.x*s.x+s.y*s.y),e=oa(t/this.a),i=Math.sin(e),n=Math.cos(e),o=this.long0,Math.abs(t)<=Q?(a=this.lat0,s.x=o,s.y=a,s):(a=oa(n*this.sin_p14+s.y*i*this.cos_p14/t),r=Math.abs(this.lat0)-H,Math.abs(r)<=Q?(this.lat0>=0?o=nt(this.long0+Math.atan2(s.x,-s.y)):o=nt(this.long0-Math.atan2(-s.x,s.y)),s.x=o,s.y=a,s):(o=nt(this.long0+Math.atan2(s.x*i,t*this.cos_p14*n-s.y*this.sin_p14*i)),s.x=o,s.y=a,s))}var _z=["ortho"];const yz={init:fz,forward:pz,inverse:mz,names:_z};var ze={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},_e={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function xz(){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>=H-me/2?this.face=ze.TOP:this.lat0<=-(H-me/2)?this.face=ze.BOTTOM:Math.abs(this.long0)<=me?this.face=ze.FRONT:Math.abs(this.long0)<=H+me?this.face=this.long0>0?ze.RIGHT:ze.LEFT:this.face=ze.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 vz(s){var t={x:0,y:0},e,i,n,r,o,a,l={value:0};if(s.x-=this.long0,this.es!==0?e=Math.atan(this.one_minus_f_squared*Math.tan(s.y)):e=s.y,i=s.x,this.face===ze.TOP)r=H-e,i>=me&&i<=H+me?(l.value=_e.AREA_0,n=i-H):i>H+me||i<=-(H+me)?(l.value=_e.AREA_1,n=i>0?i-ts:i+ts):i>-(H+me)&&i<=-me?(l.value=_e.AREA_2,n=i+H):(l.value=_e.AREA_3,n=i);else if(this.face===ze.BOTTOM)r=H+e,i>=me&&i<=H+me?(l.value=_e.AREA_0,n=-i+H):i=-me?(l.value=_e.AREA_1,n=-i):i<-me&&i>=-(H+me)?(l.value=_e.AREA_2,n=-i-H):(l.value=_e.AREA_3,n=i>0?-i+ts:-i-ts);else{var h,c,u,d,g,f,p;this.face===ze.RIGHT?i=Ph(i,+H):this.face===ze.BACK?i=Ph(i,+ts):this.face===ze.LEFT&&(i=Ph(i,-H)),d=Math.sin(e),g=Math.cos(e),f=Math.sin(i),p=Math.cos(i),h=g*p,c=g*f,u=d,this.face===ze.FRONT?(r=Math.acos(h),n=cf(r,u,c,l)):this.face===ze.RIGHT?(r=Math.acos(c),n=cf(r,u,-h,l)):this.face===ze.BACK?(r=Math.acos(-h),n=cf(r,u,-c,l)):this.face===ze.LEFT?(r=Math.acos(-c),n=cf(r,u,h,l)):(r=n=0,l.value=_e.AREA_0)}return a=Math.atan(12/ts*(n+Math.acos(Math.sin(n)*Math.cos(me))-H)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(n))))),l.value===_e.AREA_1?a+=H:l.value===_e.AREA_2?a+=ts:l.value===_e.AREA_3&&(a+=1.5*ts),t.x=o*Math.cos(a),t.y=o*Math.sin(a),t.x=t.x*this.a+this.x0,t.y=t.y*this.a+this.y0,s.x=t.x,s.y=t.y,s}function wz(s){var t={lam:0,phi:0},e,i,n,r,o,a,l,h,c,u={value:0};if(s.x=(s.x-this.x0)/this.a,s.y=(s.y-this.y0)/this.a,i=Math.atan(Math.sqrt(s.x*s.x+s.y*s.y)),e=Math.atan2(s.y,s.x),s.x>=0&&s.x>=Math.abs(s.y)?u.value=_e.AREA_0:s.y>=0&&s.y>=Math.abs(s.x)?(u.value=_e.AREA_1,e-=H):s.x<0&&-s.x>=Math.abs(s.y)?(u.value=_e.AREA_2,e=e<0?e+ts:e-ts):(u.value=_e.AREA_3,e+=H),c=ts/12*Math.tan(e),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),n=Math.cos(e),r=Math.tan(i),l=1-n*n*r*r*(1-Math.cos(Math.atan(1/Math.cos(a)))),l<-1?l=-1:l>1&&(l=1),this.face===ze.TOP)h=Math.acos(l),t.phi=H-h,u.value===_e.AREA_0?t.lam=a+H:u.value===_e.AREA_1?t.lam=a<0?a+ts:a-ts:u.value===_e.AREA_2?t.lam=a-H:t.lam=a;else if(this.face===ze.BOTTOM)h=Math.acos(l),t.phi=h-H,u.value===_e.AREA_0?t.lam=-a+H:u.value===_e.AREA_1?t.lam=-a:u.value===_e.AREA_2?t.lam=-a-H:t.lam=a<0?-a-ts:-a+ts;else{var d,g,f;d=l,c=d*d,c>=1?f=0:f=Math.sqrt(1-c)*Math.sin(a),c+=f*f,c>=1?g=0:g=Math.sqrt(1-c),u.value===_e.AREA_1?(c=g,g=-f,f=c):u.value===_e.AREA_2?(g=-g,f=-f):u.value===_e.AREA_3&&(c=g,g=f,f=-c),this.face===ze.RIGHT?(c=d,d=-g,g=c):this.face===ze.BACK?(d=-d,g=-g):this.face===ze.LEFT&&(c=d,d=g,g=-c),t.phi=Math.acos(-f)-H,t.lam=Math.atan2(g,d),this.face===ze.RIGHT?t.lam=Ph(t.lam,-H):this.face===ze.BACK?t.lam=Ph(t.lam,-ts):this.face===ze.LEFT&&(t.lam=Ph(t.lam,+H))}if(this.es!==0){var p,m,_;p=t.phi<0?1:0,m=Math.tan(t.phi),_=this.b/Math.sqrt(m*m+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-_*_)/(this.one_minus_f*_)),p&&(t.phi=-t.phi)}return t.lam+=this.long0,s.x=t.lam,s.y=t.phi,s}function cf(s,t,e,i){var n;return sme&&n<=H+me?(i.value=_e.AREA_1,n-=H):n>H+me||n<=-(H+me)?(i.value=_e.AREA_2,n=n>=0?n-ts:n+ts):(i.value=_e.AREA_3,n+=H)),n}function Ph(s,t){var e=s+t;return e<-ts?e+=wd:e>+ts&&(e-=wd),e}var Ez=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const Sz={init:xz,forward:vz,inverse:wz,names:Ez};var G1=[[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]],xu=[[-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]],qR=.8487,ZR=1.3523,HR=lr/5,Mz=1/HR,dh=18,Ep=function(s,t){return s[0]+t*(s[1]+t*(s[2]+t*s[3]))},bz=function(s,t){return s[1]+t*(2*s[2]+t*3*s[3])};function Cz(s,t,e,i){for(var n=t;i;--i){var r=s(n);if(n-=r,Math.abs(r)=dh&&(i=dh-1),e=lr*(e-Mz*i);var n={x:Ep(G1[i],e)*t,y:Ep(xu[i],e)};return s.y<0&&(n.y=-n.y),n.x=n.x*this.a*qR+this.x0,n.y=n.y*this.a*ZR+this.y0,n}function Iz(s){var t={x:(s.x-this.x0)/(this.a*qR),y:Math.abs(s.y-this.y0)/(this.a*ZR)};if(t.y>=1)t.x/=G1[dh][0],t.y=s.y<0?-H:H;else{var e=Math.floor(t.y*dh);for(e<0?e=0:e>=dh&&(e=dh-1);;)if(xu[e][0]>t.y)--e;else if(xu[e+1][0]<=t.y)++e;else break;var i=xu[e],n=5*(t.y-i[0])/(xu[e+1][0]-i[0]);n=Cz(function(r){return(Ep(i,r)-t.y)/bz(i,r)},n,Q,100),t.x/=Ep(G1[e],n),t.y=(5*e+n)*As,s.y<0&&(t.y=-t.y)}return t.x=nt(t.x+this.long0),t}var Pz=["Robinson","robin"];const Az={init:Tz,forward:Rz,inverse:Iz,names:Pz};function Lz(){this.name="geocent"}function Oz(s){var t=NR(s,this.es,this.a);return t}function Fz(s){var t=DR(s,this.es,this.a,this.b);return t}var Nz=["Geocentric","geocentric","geocent","Geocent"];const Dz={init:Lz,forward:Oz,inverse:Fz,names:Nz};var Us={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Jc={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 kz(){if(Object.keys(Jc).forEach(function(e){if(typeof this[e]>"u")this[e]=Jc[e].def;else{if(Jc[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);Jc[e].num&&(this[e]=parseFloat(this[e]))}Jc[e].degrees&&(this[e]=this[e]*As)}.bind(this)),Math.abs(Math.abs(this.lat0)-H)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 s=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(s),this.sw=Math.sin(s)}function $z(s){s.x-=this.long0;var t=Math.sin(s.y),e=Math.cos(s.y),i=Math.cos(s.x),n,r;switch(this.mode){case Us.OBLIQ:r=this.sinph0*t+this.cosph0*e*i;break;case Us.EQUIT:r=e*i;break;case Us.S_POLE:r=-t;break;case Us.N_POLE:r=t;break}switch(r=this.pn1/(this.p-r),n=r*e*Math.sin(s.x),this.mode){case Us.OBLIQ:r*=this.cosph0*t-this.sinph0*e*i;break;case Us.EQUIT:r*=t;break;case Us.N_POLE:r*=-(e*i);break;case Us.S_POLE:r*=e*i;break}var o,a;return o=r*this.cg+n*this.sg,a=1/(o*this.sw*this.h1+this.cw),n=(n*this.cg-r*this.sg)*this.cw*a,r=o*a,s.x=n*this.a,s.y=r*this.a,s}function Gz(s){s.x/=this.a,s.y/=this.a;var t={x:s.x,y:s.y},e,i,n;n=1/(this.pn1-s.y*this.sw),e=this.pn1*s.x*n,i=this.pn1*s.y*this.cw*n,s.x=e*this.cg+i*this.sg,s.y=i*this.cg-e*this.sg;var r=rn(s.x,s.y);if(Math.abs(r)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var s=1-this.es,t=1/s;this.radius_p=Math.sqrt(s),this.radius_p2=s,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function Bz(s){var t=s.x,e=s.y,i,n,r,o;if(t=t-this.long0,this.shape==="ellipse"){e=Math.atan(this.radius_p2*Math.tan(e));var a=this.radius_p/rn(this.radius_p*Math.cos(e),Math.sin(e));if(n=a*Math.cos(t)*Math.cos(e),r=a*Math.sin(t)*Math.cos(e),o=a*Math.sin(e),(this.radius_g-n)*n-r*r-o*o*this.radius_p_inv2<0)return s.x=Number.NaN,s.y=Number.NaN,s;i=this.radius_g-n,this.flip_axis?(s.x=this.radius_g_1*Math.atan(r/rn(o,i)),s.y=this.radius_g_1*Math.atan(o/i)):(s.x=this.radius_g_1*Math.atan(r/i),s.y=this.radius_g_1*Math.atan(o/rn(r,i)))}else this.shape==="sphere"&&(i=Math.cos(e),n=Math.cos(t)*i,r=Math.sin(t)*i,o=Math.sin(e),i=this.radius_g-n,this.flip_axis?(s.x=this.radius_g_1*Math.atan(r/rn(o,i)),s.y=this.radius_g_1*Math.atan(o/i)):(s.x=this.radius_g_1*Math.atan(r/i),s.y=this.radius_g_1*Math.atan(o/rn(r,i))));return s.x=s.x*this.a,s.y=s.y*this.a,s}function Wz(s){var t=-1,e=0,i=0,n,r,o,a;if(s.x=s.x/this.a,s.y=s.y/this.a,this.shape==="ellipse"){this.flip_axis?(i=Math.tan(s.y/this.radius_g_1),e=Math.tan(s.x/this.radius_g_1)*rn(1,i)):(e=Math.tan(s.x/this.radius_g_1),i=Math.tan(s.y/this.radius_g_1)*rn(1,e));var l=i/this.radius_p;if(n=e*e+l*l+t*t,r=2*this.radius_g*t,o=r*r-4*n*this.C,o<0)return s.x=Number.NaN,s.y=Number.NaN,s;a=(-r-Math.sqrt(o))/(2*n),t=this.radius_g+a*t,e*=a,i*=a,s.x=Math.atan2(e,t),s.y=Math.atan(i*Math.cos(s.x)/t),s.y=Math.atan(this.radius_p_inv2*Math.tan(s.y))}else if(this.shape==="sphere"){if(this.flip_axis?(i=Math.tan(s.y/this.radius_g_1),e=Math.tan(s.x/this.radius_g_1)*Math.sqrt(1+i*i)):(e=Math.tan(s.x/this.radius_g_1),i=Math.tan(s.y/this.radius_g_1)*Math.sqrt(1+e*e)),n=e*e+i*i+t*t,r=2*this.radius_g*t,o=r*r-4*n*this.C,o<0)return s.x=Number.NaN,s.y=Number.NaN,s;a=(-r-Math.sqrt(o))/(2*n),t=this.radius_g+a*t,e*=a,i*=a,s.x=Math.atan2(e,t),s.y=Math.atan(i*Math.cos(s.x)/t)}return s.x=s.x+this.long0,s}var Xz=["Geostationary Satellite View","Geostationary_Satellite","geos"];const Vz={init:Uz,forward:Bz,inverse:Wz,names:Xz};var Gu=1.340264,ju=-.081106,zu=893e-6,Uu=.003796,Sp=Math.sqrt(3)/2;function Yz(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function qz(s){var t=nt(s.x-this.long0),e=s.y,i=Math.asin(Sp*Math.sin(e)),n=i*i,r=n*n*n;return s.x=t*Math.cos(i)/(Sp*(Gu+3*ju*n+r*(7*zu+9*Uu*n))),s.y=i*(Gu+ju*n+r*(zu+Uu*n)),s.x=this.a*s.x+this.x0,s.y=this.a*s.y+this.y0,s}function Zz(s){s.x=(s.x-this.x0)/this.a,s.y=(s.y-this.y0)/this.a;var t=1e-9,e=12,i=s.y,n,r,o,a,l,h;for(h=0;h1))return console.error("Multiple features detected!");r.forEach(h=>{const c=h.getGeometry();if(c instanceof pn){const d=hC(c,{radius:6378137,projection:"EPSG:3857"});h.set("measure",d)}else if(c instanceof ks){const d=cC(c,{radius:6378137,projection:"EPSG:3857"});h.set("measure",d)}const u=Lt(h);h.set("id",u),h.setId(u)}),!i&&r.length&&(t.getSource().addFeatures(r),e.map.getView().fit(t.getSource().getExtent(),{duration:750}));const a=new Em,l=JSON.parse(a.writeFeatures(r,$x));(i||n)&&BS(e,"drawend",s,l),BS(e,"addfeatures",s,l)}function eU(s,t,e,i=!1){try{const n=sU(s);if(!n){console.error("Unsupported format or invalid data");return}const r=n.readFeatures(s,$x);JR({features:r},t,e,!1,i)}catch(n){console.error("Error parsing data:",n)}}function sU(s){return iU(s)?new Em:nU(s)?new Ek({extractStyles:!1}):rU(s)?new w$:null}function iU(s){try{const t=JSON.parse(s);return t.type==="FeatureCollection"||t.type==="Feature"}catch{return!1}}function nU(s){return s.includes("")}function rU(s){try{const t=JSON.parse(s);return t.type==="Topology"&&t.objects}catch{return!1}}async function oU(s){return kx(hi),await tU(s)}function aU(s,t){hi.defs(s,t),kx(hi)}function WS(s){s.setRotation(s.getRotation())}function lU(s,t,e){const i=Object.assign({},e);if(s.interactions[i.id])throw Error(`Interaction with id: ${i.id} already exists.`);i.modify=typeof i.modify=="boolean"?i.modify:!0;const n=t.getSource();i.type==="Box"&&(i.geometryFunction=g4(),i.type="Circle");const r=new p4({...i,source:n});i.active===!1&&r.setActive(!1),r.on("drawend",l=>{t.get("isDrawingEnabled")&&JR(l,t,s,!0)}),s.map.addInteraction(r),s.interactions[i.id]=r;const o=new o4({source:n});o.setActive(i.modify),s.map.addInteraction(o),s.interactions[`${i.id}_modify`]=o;const a=()=>{s.getLayerById(t.get("id"))||(s.removeInteraction(i.id),s.removeInteraction(`${i.id}_modify`),s.map.getLayerGroup().un("change",a))};s.map.getLayerGroup().on("change",a)}let QR=class extends Mh{constructor(){super(...arguments),this.templates={},this._renderedTemplates={}}setBindingSyntax(t,e){this._startExpression=t,this._endExpression=e;const i=this.escapeRegex(this._startExpression),n=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${i}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${n}`,"g")}hasTemplate(t){return this.templates&&!!this.templates[t]}renderTemplate(t,e,i){if(!this.hasTemplate(t))return null;i=i||t;const n=Gr` `,r={[t]:{...e}};if(this._renderedTemplates.hasOwnProperty(i)){const{slot:a}=this._renderedTemplates[i];this.contains(a)&&this.removeChild(a)}const o=document.createElement("div");return o.slot=i,o.dataset.generated="template",this._renderTemplate(o,this.templates[t],r),this.appendChild(o),this._renderedTemplates[i]={context:r,slot:o},n}getTemplates(){const t={};for(let e=0;e{const r=this.evalInContext(n||this.trimExpression(i),e);return r?typeof r=="object"?JSON.stringify(r):r.toString():""})}get expression(){return this._expression||this.setBindingSyntax("{{","}}"),this._expression}escapeRegex(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}evalInContext(t,e){e={...e};const i=new Function("with(this) { return "+t+";}");let n;try{n=i.call(e)}catch{}return n}trimExpression(t){return t=t.trim(),t.startsWith(this._startExpression)&&t.endsWith(this._endExpression)&&(t=t.substr(this._startExpression.length,t.length-this._startExpression.length-this._endExpression.length),t=t.trim()),t}renderNode(t,e,i){if(t.nodeName==="#text")return t.textContent=this.expandExpressionsAsString(t.textContent,i),t;if(t.nodeName==="TEMPLATE")return t.$parentTemplateContext=i,t;for(let n=0;n{for(var n=void 0,r=s.length-1,o;r>=0;r--)(o=s[r])&&(n=o(t,e,n)||n);return n&&hU(t,e,n),n};let tI=class extends QR{constructor(){super(),this.propertyTransform=(t,e)=>t}renderContent(t){Kb(this.hasTemplate("properties")?Gr`${this.renderTemplate("properties",t.getProperties(),"tooltip-1")}`:Gr` -
          - ${Object.entries(t.getProperties()).map(([e,i])=>this.propertyTransform({key:e,value:i},t)).filter(e=>e).map(({key:e,value:i})=>Gr`
        • ${e}: ${i}
        • `)} -
        `,this.shadowRoot)}};cU([Er()],tI.prototype,"propertyTransform");customElements.define("eox-map-tooltip",tI);let uU=class{constructor(t,e,i){var n,r;this.eoxMap=t,this.selectLayer=e,this.options=i,this.active=i.active||e.getVisible(),this.panIn=i.panIn||!1;const o=this.eoxMap.map.getOverlayById("eox-map-tooltip");let a;this.selectedFids=[],o?(this.tooltip=o.getElement(),a=o):(this.tooltip=this.eoxMap.querySelector("eox-map-tooltip")||((n=i.overlay)==null?void 0:n.element),this.tooltip&&(a=new bR({element:this.tooltip,position:void 0,offset:[0,0],positioning:"top-left",className:"eox-map-tooltip",id:"eox-map-tooltip",...i.overlay}),this.eoxMap.map.addOverlay(a)));const l=()=>{a&&i.condition==="pointermove"&&a.setPosition(void 0)};t.map.on("change:target",f=>{var p,m;(p=f.oldValue)==null||p.removeEventListener("pointerleave",l),(m=f.target.getTargetElement())==null||m.addEventListener("pointerleave",l)}),(r=t.map.getTargetElement())==null||r.addEventListener("pointerleave",l);let h;if(this.options.layer)h=this.options.layer;else{const f=this.selectLayer.get("_jsonDefinition");h={...f,style:i.style,properties:{id:this.selectLayer.get("id")+"_select"},source:{type:f.type}}}h.renderMode="vector",delete h.interactions,this.selectStyleLayer=sc(t,h),this.selectStyleLayer.setSource(this.selectLayer.getSource()),this.selectStyleLayer.setMap(this.eoxMap.map);const c=this.selectStyleLayer.getStyleFunction();this.selectStyleLayer.setStyle((f,p)=>this.selectedFids.length&&this.selectedFids.includes(this.getId(f))?c(f,p):null);const u=f=>{this.panIn&&this.eoxMap.map.getView().fit(f.getGeometry().getExtent(),{duration:750})},d=f=>{if(!this.active)return;const p=this.eoxMap.map.getView().getZoom();f.dragging||!this.active||pthis.selectLayer.getMaxZoom()||this.selectLayer.getFeatures(f.pixel).then(m=>{const _=m.length?m[0]:null,y=_?[this.getId(_)]:[],v=this.selectedFids[0]!==y[0];if(this.selectedFids=y,v&&(this.selectStyleLayer.changed(),_&&u(_)),a){const w=f.pixel[0]>this.eoxMap.offsetWidth/2?"right":"left",C=f.pixel[1]>this.eoxMap.offsetHeight/2?"bottom":"top";a.setPositioning(`${C}-${w}`),a.setPosition(_?f.coordinate:null),_&&this.tooltip.renderContent&&this.tooltip.renderContent(_)}const S=new CustomEvent("select",{detail:{id:i.id,originalEvent:f,feature:_}});this.eoxMap.dispatchEvent(S)})};this.eoxMap.map.on(i.condition||"click",d),this.selectLayer.on("change:opacity",()=>{this.selectStyleLayer.setOpacity(this.selectLayer.getOpacity())}),this.selectLayer.on("change:visible",()=>{const f=this.selectLayer.getVisible();this.selectStyleLayer.setVisible(f),this.setActive(f)}),this.changeSourceListener=()=>{this.selectStyleLayer.setSource(this.selectLayer.getSource())},this.selectLayer.on("change:source",this.changeSourceListener);const g=()=>{var f,p,m,_;t.getLayerById(e.get("id"))?((f=t.selectInteractions[i.id])==null||f.setActive(!0),(p=this.selectStyleLayer)==null||p.setMap(this.eoxMap.map),a?.setMap(this.eoxMap.map)):((m=t.selectInteractions[i.id])==null||m.setActive(!1),(_=this.selectStyleLayer)==null||_.setMap(null),a?.setMap(null))};t.map.getLayerGroup().on("change",g)}setActive(t){this.active=t}highlightById(t){this.selectedFids=t,this.selectStyleLayer.changed()}remove(){this.selectStyleLayer.setMap(null),delete this.eoxMap.selectInteractions[this.options.id],this.selectLayer.un("change:source",this.changeSourceListener)}getId(t){if(this.options.idProperty)return t.get(this.options.idProperty);if(t.getId()!==void 0)return t.getId();if(t.get("id")!==void 0)return t.get("id");throw Error("No feature id found. Please provide which feature property should be taken instead using idProperty.")}};function dU(s,t,e){if(s.interactions[e.id])throw Error(`Interaction with id: ${e.id} already exists.`);return s.selectInteractions[e.id]=new uU(s,t,e),s.selectInteractions[e.id]}function gU(s){var t;let e;if((t=s.source)!=null&&t.tileGrid){if(s.source.tileGrid)if(s.source.type==="WMTS"){const i=Bt("EPSG:3857").getExtent(),n=Ht(i)/128,r=new Array(19),o=new Array(19);for(let a=0;a<19;++a)r[a]=n/Math.pow(2,a),o[a]=a;e=new RG({resolutions:r,origin:Vn(i),projection:s.source.tileGrid.projection||"EPSG:3857",matrixIds:o,...s.source.tileGrid})}else e=Px({...s.source.tileGrid});return e}}const fU={GeoJSON:Em,MVT:p$},pU={Group:el,Image:wG,Tile:MG,Vector:og,VectorTile:TG},mU={ImageWMS:qG,OSM:t4,Tile:_R,TileWMS:e4,Vector:Rm,VectorTile:KG,WMTS:s4,XYZ:wR};function sc(s,t,e=!0){var i,n;t=JSON.parse(JSON.stringify(t));const r={...window.eoxMapAdvancedOlFormats,...fU},o={...window.eoxMapAdvancedOlLayers,...pU},a={...window.eoxMapAdvancedOlSources,...mU},l=o[t.type],h=a[(i=t.source)==null?void 0:i.type];if(!l)throw window.eoxMapAdvancedOlLayers?new Error(`Layer type ${t.type} not supported!`):new Error(`Layer type ${t.type} not created! Forgot to import advanced layers & sources plugin from @eox/map/dist/eox-map-advanced-layers-and-sources.js?`);if(t.source&&!h)throw window.eoxMapAdvancedOlSources?new Error(`Source type ${t.source.type} not supported!`):new Error(`Source type ${t.source.type} not created! Forgot to import advanced layers & sources plugin from @eox/map/dist/eox-map-advanced-layers-and-sources.js?`);const c=gU(t),u=new l({...t,...t.source&&{source:new h({...t.source,...t.source.format&&t.source.type!=="WMTS"&&{format:new r[typeof t.source.format=="object"?t.source.format.type:t.source.format]({...typeof t.source.format=="object"&&{...t.source.format}})},...t.source.tileGrid&&{tileGrid:c},...t.source.projection&&{projection:Bt(t.source.projection)}})},...t.type==="Group"&&{layers:[]},...t.properties,style:void 0});if(u.set("_jsonDefinition",t,!0),t.type==="Group"){const d=t.layers.reverse().map(g=>sc(s,g));d.forEach(g=>g.set("_group",u,!0)),u.setLayers(new ni(d))}if(t.style&&u.setStyle(t.style),e&&(n=t.interactions)!=null&&n.length)for(let d=0,g=t.interactions.length;d{const c=t.interactions.find(u=>u.type===h.type);c?c.type==="draw"?(s.interactions[c.options.id].setActive(c.options.active),s.interactions[`${c.options.id}_modify`].setActive(c.options.modify)):s.selectInteractions[c.options.id].setActive(c.options.active):s.removeInteraction(h.options.id)}),(o=t.interactions)==null||o.forEach(h=>{a.interactions.find(c=>c.type===h.type)||eI(s,e,h)})),t.type==="Group"){const h=t.layers.map(u=>{var d;return(d=u.properties)==null?void 0:d.id}),c=e.getLayers();c.getArray().slice().forEach(u=>{h.includes(u.get("id"))||c.remove(u)}),t.layers.forEach(u=>{const d=u.properties.id;if(c.getArray().map(g=>g.get("id")).includes(d))sI(s,u,s.getLayerById(d));else{const g=sc(s,u);c.push(g)}}),c.getArray().sort((u,d)=>h.indexOf(u.get("id"))-h.indexOf(d.get("id"))),c.changed()}return iI(e,t),e.set("_jsonDefinition",t,!0),e}const _U=(s,t)=>t?[...t].reverse().map(e=>sc(s,e)):[];function iI(s,t){s.on("change:opacity",()=>{t.opacity=s.getOpacity()}),s.on("change:visible",()=>{t.visible=s.getVisible()}),s.on("change:zIndex",()=>{t.zIndex=s.getZIndex()}),s.on("propertychange",e=>{e.key!=="map"&&(t.properties[e.key]=e.target.get(e.key))})}function d_(s,t){return nI(s.map.getLayers().getArray()).find(e=>e.get("id")===t)}function nI(s){const t=[];t.push(...s);let e=t.filter(i=>i instanceof el);for(;e.length;){const i=[];for(let n=0,r=e.length;na instanceof el))}e=i}return t}function XS(s){if(s){const t=s;return!en(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90?f3(t):t}return[0,0]}const VS=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],YS={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"};let yU=class extends Yn{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target}),this.on,this.once,this.un,this.keys_=t.keys!==void 0?t.keys:!1,this.source_=t.source,this.isInFullscreen_=!1,this.boundHandleMapTargetChange_=this.handleMapTargetChange_.bind(this),this.cssClassName_=t.className!==void 0?t.className:"ol-full-screen",this.documentListeners_=[],this.activeClassName_=t.activeClassName!==void 0?t.activeClassName.split(" "):[this.cssClassName_+"-true"],this.inactiveClassName_=t.inactiveClassName!==void 0?t.inactiveClassName.split(" "):[this.cssClassName_+"-false"];const e=t.label!==void 0?t.label:"⤢";this.labelNode_=typeof e=="string"?document.createTextNode(e):e;const i=t.labelActive!==void 0?t.labelActive:"×";this.labelActiveNode_=typeof i=="string"?document.createTextNode(i):i;const n=t.tipLabel?t.tipLabel:"Toggle full-screen";this.button_=document.createElement("button"),this.button_.title=n,this.button_.setAttribute("type","button"),this.button_.appendChild(this.labelNode_),this.button_.addEventListener(_t.CLICK,this.handleClick_.bind(this),!1),this.setClassName_(this.button_,this.isInFullscreen_),this.element.className=`${this.cssClassName_} ${yr} ${pl}`,this.element.appendChild(this.button_)}handleClick_(t){t.preventDefault(),this.handleFullScreen_()}handleFullScreen_(){const t=this.getMap();if(!t)return;const e=t.getOwnerDocument();if(qS(e))if(ZS(e))vU(e);else{let i;this.source_?i=typeof this.source_=="string"?e.getElementById(this.source_):this.source_:i=t.getTargetElement(),this.keys_?xU(i):rI(i)}}handleFullScreenChange_(){const t=this.getMap();if(!t)return;const e=this.isInFullscreen_;this.isInFullscreen_=ZS(t.getOwnerDocument()),e!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Hh(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(YS.ENTERFULLSCREEN)):(Hh(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(YS.LEAVEFULLSCREEN)),t.updateSize())}setClassName_(t,e){e?(t.classList.remove(...this.inactiveClassName_),t.classList.add(...this.activeClassName_)):(t.classList.remove(...this.activeClassName_),t.classList.add(...this.inactiveClassName_))}setMap(t){const e=this.getMap();e&&e.removeChangeListener(Qe.TARGET,this.boundHandleMapTargetChange_),super.setMap(t),this.handleMapTargetChange_(),t&&t.addChangeListener(Qe.TARGET,this.boundHandleMapTargetChange_)}handleMapTargetChange_(){const t=this.documentListeners_;for(let i=0,n=t.length;iu*f_||c>d*f_?this.resetExtent_():ln(o,n)||this.recenter_()}resetExtent_(){const t=this.getMap(),e=this.ovmap_,i=t.getSize(),n=t.getView().calculateExtentInternal(i),r=e.getView(),o=Math.log(f_/uf)/Math.LN2,a=1/(Math.pow(2,o/2)*uf);r3(n,a),r.fitInternal(Qf(n))}recenter_(){const t=this.getMap(),e=this.ovmap_,i=t.getView();e.getView().setCenterInternal(i.getCenterInternal())}updateBox_(){const t=this.getMap(),e=this.ovmap_;if(!t.isRendered()||!e.isRendered())return;const i=t.getSize(),n=t.getView(),r=e.getView(),o=this.rotateWithView_?0:-n.getRotation(),a=this.boxOverlay_,l=this.boxOverlay_.getElement(),h=n.getCenter(),c=n.getResolution(),u=r.getResolution(),d=i[0]*c/u,g=i[1]*c/u;if(a.setPosition(h),l){l.style.width=d+"px",l.style.height=g+"px";const f="rotate("+o+"rad)";l.style.transform=f}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=od(this.ovmap_,sr.POSTRENDER,t=>{delete this.ovmapPostrenderKey_,this.updateBox_()}))}handleClick_(t){t.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(ep),this.collapsed_?Hh(this.collapseLabel_,this.label_):Hh(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const t=this.ovmap_;if(!this.collapsed_){if(t.isRendered()){this.viewExtent_=void 0,t.render();return}t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())}setCollapsed(t){!this.collapsible_||this.collapsed_===t||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(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_()))}getOverviewMap(){return this.ovmap_}render(t){this.validateExtent_(),this.updateBox_()}};const bU=MU,p_="units",CU=[1,2,5],Qc=25.4/.28;let TU=class extends Yn{constructor(t){t=t||{};const e=document.createElement("div");e.style.pointerEvents="none",super({element:e,render:t.render,target:t.target}),this.on,this.once,this.un;const i=t.className!==void 0?t.className:t.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=i+"-inner",this.element.className=i+" "+yr,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=t.minWidth!==void 0?t.minWidth:64,this.maxWidth_=t.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(p_,this.handleUnitsChanged_),this.setUnits(t.units||"metric"),this.scaleBar_=t.bar||!1,this.scaleBarSteps_=t.steps||4,this.scaleBarText_=t.text||!1,this.dpi_=t.dpi||void 0}getUnits(){return this.get(p_)}handleUnitsChanged_(){this.updateElement_()}setUnits(t){this.set(p_,t)}setDpi(t){this.dpi_=t}updateElement_(){const t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const e=t.center,i=t.projection,n=this.getUnits(),r=n=="degrees"?"degrees":"m";let o=Yh(i,t.resolution,e,r);const a=this.minWidth_*(this.dpi_||Qc)/Qc,l=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||Qc)/Qc:void 0;let h=a*o,c="";if(n=="degrees"){const v=Bh.degrees;h*=v,h=l){d=p,g=m,f=_;break}else if(g>=a)break;p=d,m=g,_=f,++u}const y=this.scaleBar_?this.createScaleBar(g,d,c):d.toFixed(f<0?-f:0)+" "+c;this.renderedHTML_!=y&&(this.innerElement_.innerHTML=y,this.renderedHTML_=y),this.renderedWidth_!=g&&(this.innerElement_.style.width=g+"px",this.renderedWidth_=g),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(t,e,i){const n=this.getScaleForResolution(),r=n<1?Math.round(1/n).toLocaleString()+" : 1":"1 : "+Math.round(n).toLocaleString(),o=this.scaleBarSteps_,a=t/o,l=[this.createMarker("absolute")];for(let h=0;h
        `+this.createMarker("relative")+(h%2===0||o===2?this.createStepText(h,t,!1,e,i):"")+"")}return l.push(this.createStepText(o,t,!0,e,i)),(this.scaleBarText_?`
        `+r+"
        ":"")+l.join("")}createMarker(t){return`
        `}createStepText(t,e,i,n,r){const o=(t===0?0:Math.round(n/this.scaleBarSteps_*t*100)/100)+(t===0?"":" "+r),a=t===0?-3:e/this.scaleBarSteps_*-1,l=t===0?0:e/this.scaleBarSteps_*2;return`
        `+o+"
        "}getScaleForResolution(){const t=Yh(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),e=this.dpi_||Qc,i=1e3/25.4;return t*i*e}render(t){const e=t.frameState;e?this.viewState_=e.viewState:this.viewState_=null,this.updateElement_()}};const RU=TU,tu={VERTICAL:0,HORIZONTAL:1};let IU=class extends Yn{constructor(t){t=t||{},super({target:t.target,element:document.createElement("div"),render:t.render}),this.dragListenerKeys_=[],this.currentResolution_=void 0,this.direction_=tu.VERTICAL,this.dragging_,this.heightLimit_=0,this.widthLimit_=0,this.startX_,this.startY_,this.thumbSize_=null,this.sliderInitialized_=!1,this.duration_=t.duration!==void 0?t.duration:200;const e=t.className!==void 0?t.className:"ol-zoomslider",i=document.createElement("button");i.setAttribute("type","button"),i.className=e+"-thumb "+yr;const n=this.element;n.className=e+" "+yr+" "+pl,n.appendChild(i),n.addEventListener(ir.POINTERDOWN,this.handleDraggerStart_.bind(this),!1),n.addEventListener(ir.POINTERMOVE,this.handleDraggerDrag_.bind(this),!1),n.addEventListener(ir.POINTERUP,this.handleDraggerEnd_.bind(this),!1),n.addEventListener(_t.CLICK,this.handleContainerClick_.bind(this),!1),i.addEventListener(_t.CLICK,GF,!1)}setMap(t){super.setMap(t),t&&t.render()}initSlider_(){const t=this.element;let e=t.offsetWidth,i=t.offsetHeight;if(e===0&&i===0)return this.sliderInitialized_=!1;const n=getComputedStyle(t);e-=parseFloat(n.paddingRight)+parseFloat(n.paddingLeft),i-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);const r=t.firstElementChild,o=getComputedStyle(r),a=r.offsetWidth+parseFloat(o.marginRight)+parseFloat(o.marginLeft),l=r.offsetHeight+parseFloat(o.marginTop)+parseFloat(o.marginBottom);return this.thumbSize_=[a,l],e>i?(this.direction_=tu.HORIZONTAL,this.widthLimit_=e-a):(this.direction_=tu.VERTICAL,this.heightLimit_=i-l),this.sliderInitialized_=!0}handleContainerClick_(t){const e=this.getMap().getView(),i=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),n=this.getResolutionForPosition_(i),r=e.getConstrainedZoom(e.getZoomForResolution(n));e.animateInternal({zoom:r,duration:this.duration_,easing:gl})}handleDraggerStart_(t){if(!this.dragging_&&t.target===this.element.firstElementChild){const e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,this.dragListenerKeys_.length===0){const i=this.handleDraggerDrag_,n=this.handleDraggerEnd_,r=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(zt(r,ir.POINTERMOVE,i,this),zt(r,ir.POINTERUP,n,this))}}}handleDraggerDrag_(t){if(this.dragging_){const e=t.clientX-this.startX_,i=t.clientY-this.startY_,n=this.getRelativePosition_(e,i);this.currentResolution_=this.getResolutionForPosition_(n),this.getMap().getView().setResolution(this.currentResolution_)}}handleDraggerEnd_(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(fe),this.dragListenerKeys_.length=0)}setThumbPosition_(t){const e=this.getPositionForResolution_(t),i=this.element.firstElementChild;this.direction_==tu.HORIZONTAL?i.style.left=this.widthLimit_*e+"px":i.style.top=this.heightLimit_*e+"px"}getRelativePosition_(t,e){let i;return this.direction_===tu.HORIZONTAL?i=t/this.widthLimit_:i=e/this.heightLimit_,Te(i,0,1)}getResolutionForPosition_(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)}getPositionForResolution_(t){const e=this.getMap().getView().getValueForResolutionFunction();return Te(1-e(t),0,1)}render(t){if(!t.frameState||!this.sliderInitialized_&&!this.initSlider_())return;const e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}};const PU=IU;let AU=class extends Yn{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target}),this.extent=t.extent?t.extent:null;const e=t.className!==void 0?t.className:"ol-zoom-extent",i=t.label!==void 0?t.label:"E",n=t.tipLabel!==void 0?t.tipLabel:"Fit to extent",r=document.createElement("button");r.setAttribute("type","button"),r.title=n,r.appendChild(typeof i=="string"?document.createTextNode(i):i),r.addEventListener(_t.CLICK,this.handleClick_.bind(this),!1);const o=e+" "+yr+" "+pl,a=this.element;a.className=o,a.appendChild(r)}handleClick_(t){t.preventDefault(),this.handleZoomToExtent()}handleZoomToExtent(){const t=this.getMap().getView(),e=this.extent?hn(this.extent,t.getProjection()):t.getProjection().getExtent();t.fitInternal(Qf(e))}};const LU=AU,OU=Object.freeze(Object.defineProperty({__proto__:null,Attribution:uT,Control:Yn,FullScreen:wU,MousePosition:SU,OverviewMap:bU,Rotate:dT,ScaleLine:RU,Zoom:gT,ZoomSlider:PU,ZoomToExtent:LU,defaults:fT},Symbol.toStringTag,{value:"Module"}));let FU=class extends Yn{constructor(t){const e=t||{},i=document.createElement("div");i.className="geolocation ol-unselectable ol-control";const n=document.createElement("button");n.title="Show your location";const r=document.createElement("img");if(e.buttonIcon)r.src=e.buttonIcon;else{const o=`url( - "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 36 36'%3E %3Cpath d='M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M3.05,13H1V11H3.05C3.5,6.83 6.83,3.5 11,3.05V1H13V3.05C17.17,3.5 20.5,6.83 20.95,11H23V13H20.95C20.5,17.17 17.17,20.5 13,20.95V23H11V20.95C6.83,20.5 3.5,17.17 3.05,13M12,5A7,7 0 0,0 5,12A7,7 0 0,0 12,19A7,7 0 0,0 19,12A7,7 0 0,0 12,5Z' /%3E%3C/svg%3E" - )`;r.style.background="var(--ol-subtle-foreground-color)",r.style.maskImage=o,r.style.webkitMaskImage=o}r.style.height="100%",r.style.width="100%",r.style.position="absolute",r.style.pointerEvents="none",i.appendChild(r),i.appendChild(n),super({element:i}),this._centerWhenReady=e.centerWhenReady,this._highAccuracy=e.highAccuracy,this._trackAccuracy=e.trackAccuracy,this._trackHeading=e.trackHeading,this._positionFeature=new Bi({geometry:new qi([NaN,NaN]),heading:0}),this._source=new Rm({features:[this._positionFeature]}),this._trackAccuracy&&(this._accuracyFeature=new Bi,this._accuracyFeature.setStyle(new Vs({fill:new to({color:"rgba(0, 0, 0, 0.2)"}),stroke:new Vr({width:2,color:"rgba(0, 0, 0, 0.7)"})})),this._source.addFeature(this._accuracyFeature)),this._layer=new og({source:this._source}),e.style&&this._layer.setStyle(e.style),n.addEventListener("click",this.centerOnPosition.bind(this),!1)}setMap(t){this._layer.setMap(t),super.setMap(t),t&&this._centerWhenReady&&this.initGeolocation()}initGeolocation(){return new Promise((t,e)=>{const i=this.getMap();i&&(this._geolocation=new r4({tracking:!0,trackingOptions:{enableHighAccuracy:this._highAccuracy},projection:i.getView().getProjection()})),this._centerWhenReady&&this._geolocation.once("change:position",n=>{i.getView().setCenter(n.target.getPosition())}),this._geolocation.on("error",function(n){e(n)}),this._geolocation.on("change:accuracyGeometry",()=>{this._trackAccuracy&&this._accuracyFeature.setGeometry(this._geolocation.getAccuracyGeometry())}),this._geolocation.on("change:heading",n=>{this._trackHeading&&this._highAccuracy&&this._positionFeature.set("heading",n.target.getHeading())}),this._geolocation.on("change:position",()=>{const n=this._geolocation.getPosition();this._positionFeature.getGeometry().setCoordinates(n||null),t(n)}),this._geolocation.on("change:accuracyGeometry",()=>{this._trackAccuracy&&this._accuracyFeature&&this._accuracyFeature.setGeometry(this._geolocation.getAccuracyGeometry())})})}getElement(){return this.element}async centerOnPosition(){var t,e;try{await this.initGeolocation();const i=(t=this._geolocation)==null?void 0:t.getPosition();i&&((e=this.getMap())==null||e.getView().setCenter(i))}catch(i){console.error(i)}}};const NU={...OU,Geolocation:FU};function DU(s,t,e,i){t&&t[e]?JSON.stringify(t[e])!==JSON.stringify(i)&&(s.removeControl(e),KS(s,e,i)):KS(s,e,i)}function KS(s,t,e){const i=Object.assign({},e);e&&e.layers&&(i.layers=_U(s,e.layers));const n=new NU[t](i);s.map.addControl(n),s.mapControls[t]=n}/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const kU=(s,t,e)=>{for(const i of t)if(i[0]===s)return(0,i[1])();return e?.()};var $U=Object.defineProperty,oI=(s,t,e,i)=>{for(var n=void 0,r=s.length-1,o;r>=0;r--)(o=s[r])&&(n=o(t,e,n)||n);return n&&$U(t,e,n),n};let Gx=class extends QR{constructor(){super(...arguments),this.value=50,this.enabled="true"}render(){return Gr` - - ${kU(this.enabled,[["first",()=>Gr``],["second",()=>Gr``]],()=>Gr` -
        -
        - -
        -
        - -
        - this.value=parseInt(t.target.value)} - /> -
        - `)} - `}};oI([Er()],Gx.prototype,"value");oI([Er({type:String})],Gx.prototype,"enabled");customElements.define("eox-map-compare",Gx);function GU(s,t,e=.001){let i=!0;for(let n=s.length-1;n>=0;--n)if(!jU(s[n],t[n],e)){i=!1;break}return i}function jU(s,t,e=.001){return Math.abs(s-t)0?s.addInteraction(new Ou({condition:function(e){return this.getPointerCount()===2||ZE(e)}})):s.addInteraction(new Ou)):(s.addInteraction(new ap),s.addInteraction(new Ou))}function zU(s){s.getInteractions().getArray().forEach(t=>{(t instanceof ap||t instanceof Ou)&&s.removeInteraction(t)})}const UU=s=>{let t;return typeof s=="string"?t=document.querySelector(s):t=s,t};var BU=Object.defineProperty,WU=Object.getOwnPropertyDescriptor,qn=(s,t,e,i)=>{for(var n=i>1?void 0:i?WU(t,e):t,r=s.length-1,o;r>=0;r--)(o=s[r])&&(n=(i?o(t,e,n):o(n))||n);return i&&n&&BU(t,e,n),n};let yn=class extends Mh{constructor(){super(...arguments),this._center=[0,0],this._zoom=0,this._animationOptions={},this.map=new ET({controls:[],layers:[],view:new nn({center:[0,0],zoom:0,projection:this.projection})}),this.interactions={},this.selectInteractions={},this.mapControls={},this.addOrUpdateLayer=t=>{var e;t.interactions||(t.interactions=[]);const i=(e=t.properties)==null?void 0:e.id,n=i?d_(this,i):!1;let r;return n?(sI(this,t,n),r=n):(r=sc(this,t),this.map.addLayer(r)),r},this.removeInteraction=t=>{this.map.removeInteraction(this.interactions[t]),delete this.interactions[t],this.interactions[`${t}_modify`]&&(this.map.removeInteraction(this.interactions[`${t}_modify`]),delete this.interactions[`${t}_modify`])},this.removeSelect=t=>{this.selectInteractions[t].remove(),delete this.selectInteractions[t]},this.removeControl=t=>{this.map.removeControl(this.mapControls[t]),delete this.mapControls[t]},this.getLayerById=t=>d_(this,t),this.parseFeature=t=>new Em().writeFeaturesObject(t,$x),this.parseTextToFeature=(t,e,i=!1)=>{eU(t,e,this,i)},this.registerProjectionFromCode=oU,this.registerProjection=aU,this.getFlatLayersArray=nI}set center(t){const e=t?.length&&GU(t,this.map.getView().getCenter());if(t&&!e){if(!this.projection||this.projection==="EPSG:3857"){const i=XS(t);this._center=i}else this._center=t;this._animateToState()}}get center(){return this._center}set zoom(t){t!==void 0&&(this._zoom=t,this._animateToState())}get zoom(){return this._zoom}set zoomExtent(t){if(!t||!t.length){this._zoomExtent=void 0;return}const e=this.map.getView();WS(e),setTimeout(()=>{e.fit(t,this.animationOptions)},0),this._zoomExtent=t}set controls(t){const e=this._controls,i=t;if(e){const n=Object.keys(e),r=Object.keys(i);for(let o=0,a=n.length;o{var o,a,l;if(!((o=r.properties)!=null&&o.id)||!i.find(h=>h.properties.id===r.properties.id)){const h=d_(this,(a=r.properties)==null?void 0:a.id);(l=h.get("_jsonDefinition").interactions)==null||l.forEach(c=>{c.type==="select"?this.removeSelect(c.options.id):this.removeInteraction(c.options.id)}),this.map.removeLayer(h)}}),i.forEach(r=>{this.addOrUpdateLayer(r)});const n=i.map(r=>{var o;return(o=r.properties)==null?void 0:o.id});this.map.getLayers().getArray().sort((r,o)=>n.indexOf(r.get("id"))-n.indexOf(o.get("id"))),this._layers=i}get layers(){return this._layers}set preventScroll(t){t?(zU(this.map),JS(this.map,!0)):JS(this.map),this._preventScroll=t}get preventScroll(){return this._preventScroll}set config(t){var e,i,n,r;this._config=t,t?.animationOptions!==void 0&&(this.animationOptions=t.animationOptions),this.projection=((e=t?.view)==null?void 0:e.projection)||"EPSG:3857",this.layers=t?.layers||[],this.controls=t?.controls||{},this.preventScroll===void 0&&(this.preventScroll=t?.preventScroll),this.zoom=((i=t?.view)==null?void 0:i.zoom)||0,this.center=((n=t?.view)==null?void 0:n.center)||[0,0],this.zoomExtent=(r=t?.view)==null?void 0:r.zoomExtent}set animationOptions(t){this._animationOptions=t}get animationOptions(){return this._animationOptions}get config(){return this._config}get projection(){return this._projection}set projection(t){const e=this.map.getView();if(t&&Bt(t)&&t!==e.getProjection().getCode()){const i=Qd(e.getCenter(),e.getProjection().getCode(),t),n=Bt(t),r=e.getResolution(),o=e.getProjection().getMetersPerUnit(),a=n.getMetersPerUnit(),l=Yh(e.getProjection(),1/o,e.getCenter(),"m")*o,h=Yh(n,1/a,i,"m")*a,c=r*l/h,u=new nn({zoom:e.getZoom(),center:i,resolution:c,rotation:e.getRotation(),projection:t});["change:center","change:resolution","change:rotation","propertychange"].forEach(d=>{const g=e.getListeners(d);if(g!=null&&g.length)for(let f=g.length-1;f>=0;f--){const p=g[f];e.un(d,p),u.on(d,p)}}),this.map.setView(u),this.getFlatLayersArray(this.map.getLayers().getArray()).filter(d=>d instanceof og).forEach(d=>d.getSource().refresh()),this._projection=t,this.center=i}}set sync(t){this._sync=t,t&&setTimeout(()=>{const e=UU(t);e&&this.map.setView(e.map.getView())})}get sync(){return this._sync}_animateToState(){const t=Object.assign({},this.animationOptions),e=this.map.getView();if(WS(e),!t||!Object.keys(t).length){e.setCenter(this.center),e.setZoom(this.zoom);return}t.center=XS(this.center),t.zoom=this.zoom,e.animate(t)}render(){return Gr` - -
        - - `}buffer(t,e){return gn(t,e)}firstUpdated(){this.map.once("change:target",t=>{t.target.getView().setCenter(this.center)}),this.map.setTarget(this.renderRoot.querySelector("div")),this._zoomExtent?this.map.getView().fit(this._zoomExtent,this.animationOptions):this._animateToState(),this.map.on("loadend",()=>{this.dispatchEvent(new CustomEvent("loadend",{detail:this.map}))}),this.dispatchEvent(new CustomEvent("mapmounted",{detail:this.map}))}updated(t){}};qn([Er({attribute:!1,type:Array})],yn.prototype,"center",1);qn([Er({attribute:!1,type:Array})],yn.prototype,"layers",1);qn([Er({attribute:"prevent-scroll",type:Boolean})],yn.prototype,"preventScroll",1);qn([Er({attribute:!1,type:Object})],yn.prototype,"config",1);qn([Er({attribute:"projection",type:String})],yn.prototype,"projection",1);qn([Er()],yn.prototype,"sync",1);qn([hm()],yn.prototype,"map",2);qn([hm()],yn.prototype,"interactions",2);qn([hm()],yn.prototype,"selectInteractions",2);qn([hm()],yn.prototype,"mapControls",2);yn=qn([DF("eox-map")],yn);var XU=Object.defineProperty,VU=(s,t,e)=>t in s?XU(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,jx=(s,t,e)=>VU(s,typeof t!="symbol"?t+"":t,e);class Sr{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const zx={PROPERTYCHANGE:"propertychange"};class Ux{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}function YU(s,t,e){let i,n;e=e||fr;let r=0,o=s.length,a=!1;for(;r>1),n=+e(s[i],t),n<0?r=i+1:(o=i,a=!n);return a?r:~r}function fr(s,t){return s>t?1:st?-1:0}function Om(s,t,e){if(s[0]<=t)return 0;const i=s.length;if(t<=s[i-1])return i-1;if(typeof e=="function"){for(let n=1;n0?n-1:n}return i-1}if(e>0){for(let n=1;n0||o===0)})}function KU(){return!0}function Md(){}function aI(s){let t,e,i;return function(){const n=Array.prototype.slice.call(arguments);return(!e||this!==i||!vl(n,e))&&(i=this,e=n,t=s.apply(this,arguments)),t}}function lI(s){function t(){let e;try{e=s()}catch(i){return Promise.reject(i)}return e instanceof Promise?e:Promise.resolve(e)}return t()}function Mc(s){for(const t in s)delete s[t]}function eo(s){let t;for(t in s)return!1;return!t}class fg extends Ux{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);n.includes(e)||n.push(e)}dispatchEvent(t){const e=typeof t=="string",i=e?t:t.type,n=this.listeners_&&this.listeners_[i];if(!n)return;const r=e?new Sr(t):t;r.target||(r.target=this.eventTarget_||this);const o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});i in o||(o[i]=0,a[i]=0),++o[i];let l;for(let h=0,c=n.length;h0:!1}removeEventListener(t,e){if(!this.listeners_)return;const i=this.listeners_[t];if(!i)return;const n=i.indexOf(e);n!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=Md,++this.pendingRemovals_[t]):(i.splice(n,1),i.length===0&&delete this.listeners_[t]))}}const Zt={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 We(s,t,e,i,n){if(n){const o=e;e=function(){s.removeEventListener(t,e),o.apply(i??this,arguments)}}else i&&i!==s&&(e=e.bind(i));const r={target:s,type:t,listener:e};return s.addEventListener(t,e),r}function bd(s,t,e,i){return We(s,t,e,i,!0)}function ms(s){s&&s.target&&(s.target.removeEventListener(s.type,s.listener),Mc(s))}class pg extends fg{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(Zt.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,n=new Array(i);for(let r=0;rMath.round(t*t2[e])/t2[e]).join(", ")+")"}const Ss={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function ic(s){const t=Zs();for(let e=0,i=s.length;en&&(l=l|Ss.RIGHT),ar&&(l=l|Ss.ABOVE),l===Ss.UNKNOWN&&(l=Ss.INTERSECTING),l}function Zs(){return[1/0,1/0,-1/0,-1/0]}function Un(s,t,e,i,n){return n?(n[0]=s,n[1]=t,n[2]=e,n[3]=i,n):[s,t,e,i]}function mg(s){return Un(1/0,1/0,-1/0,-1/0,s)}function Vx(s,t){const e=s[0],i=s[1];return Un(e,i,e,i,t)}function Yx(s,t,e,i,n){const r=mg(n);return uI(r,s,t,e,i)}function so(s,t){return s[0]==t[0]&&s[2]==t[2]&&s[1]==t[1]&&s[3]==t[3]}function a9(s,t,e){return Math.abs(s[0]-t[0])s[2]&&(s[2]=t[2]),t[1]s[3]&&(s[3]=t[3]),s}function Wu(s,t){t[0]s[2]&&(s[2]=t[0]),t[1]s[3]&&(s[3]=t[1])}function uI(s,t,e,i,n){for(;et[0]?i[0]=s[0]:i[0]=t[0],s[1]>t[1]?i[1]=s[1]:i[1]=t[1],s[2]=t[0]&&s[1]<=t[3]&&s[3]>=t[1]}function po(s){return s[2]=o&&p<=l),!i&&r&Ss.RIGHT&&!(n&Ss.RIGHT)&&(m=g-(d-l)*f,i=m>=a&&m<=h),!i&&r&Ss.BELOW&&!(n&Ss.BELOW)&&(p=d-(g-a)/f,i=p>=o&&p<=l),!i&&r&Ss.LEFT&&!(n&Ss.LEFT)&&(m=g-(d-o)*f,i=m>=a&&m<=h)}return i}function nc(s,t,e,i){if(po(s))return mg(e);let n=[];if(i>1){const a=s[2]-s[0],l=s[3]-s[1];for(let h=0;h=e[2])){const n=Rt(e),r=Math.floor((i[0]-e[0])/n)*n;s[0]-=r,s[2]-=r}return s}function Hx(s,t,e){if(t.canWrapX()){const i=t.getExtent();if(!isFinite(s[0])||!isFinite(s[2]))return[[i[0],s[1],i[2],s[3]]];Zx(s,t);const n=Rt(i);if(Rt(s)>n&&!e)return[[i[0],s[1],i[2],s[3]]];if(s[0]i[2])return[[s[0],s[1],i[2],s[3]],[i[0],s[1],s[2]-n,s[3]]]}return[s]}const g9={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function e2(s){return g9[s]}const Kx={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let rc=class{constructor(s){this.code_=s.code,this.units_=s.units,this.extent_=s.extent!==void 0?s.extent:null,this.worldExtent_=s.worldExtent!==void 0?s.worldExtent:null,this.axisOrientation_=s.axisOrientation!==void 0?s.axisOrientation:"enu",this.global_=s.global!==void 0?s.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=s.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=s.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Kx[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(s){this.global_=s,this.canWrapX_=!!(s&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(s){this.defaultTileGrid_=s}setExtent(s){this.extent_=s,this.canWrapX_=!!(this.global_&&s)}setWorldExtent(s){this.worldExtent_=s}setGetPointResolution(s){this.getPointResolutionFunc_=s}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const xg=6378137,gh=Math.PI*xg,f9=[-gh,-gh,gh,gh],p9=[-180,-85,180,85],df=xg*Math.log(Math.tan(Math.PI/2));class Fl extends rc{constructor(t){super({code:t,units:"m",extent:f9,global:!0,worldExtent:p9,getPointResolution:function(e,i){return e/Math.cosh(i[1]/xg)}})}}const s2=[new Fl("EPSG:3857"),new Fl("EPSG:102100"),new Fl("EPSG:102113"),new Fl("EPSG:900913"),new Fl("http://www.opengis.net/def/crs/EPSG/0/3857"),new Fl("http://www.opengis.net/gml/srs/epsg.xml#3857")];function m9(s,t,e){const i=s.length;e=e>1?e:2,t===void 0&&(e>2?t=s.slice():t=new Array(i));for(let n=0;ndf?r=df:r<-df&&(r=-df),t[n+1]=r}return t}function _9(s,t,e){const i=s.length;e=e>1?e:2,t===void 0&&(e>2?t=s.slice():t=new Array(i));for(let n=0;n1?(e=n,i=r):l>0&&(e+=o*l,i+=a*l)}return Xa(s,t,e,i)}function Xa(s,t,e,i){const n=e-s,r=i-t;return n*n+r*r}function E9(s){const t=s.length;for(let i=0;ir&&(r=l,n=a)}if(r===0)return null;const o=s[n];s[n]=s[i],s[i]=o;for(let a=i+1;a=0;i--){e[i]=s[i][t]/s[i][i];for(let n=i-1;n>=0;n--)s[n][t]-=s[n][i]*e[i]}return e}function Xu(s){return s*Math.PI/180}function kn(s,t){const e=s%t;return e*t<0?e+t:e}function Ui(s,t,e){return s+e*(t-s)}function vg(s,t){const e=Math.pow(10,t);return Math.round(s*e)/e}function Mp(s,t){return Math.round(vg(s,t))}function fh(s,t){return Math.floor(vg(s,t))}function Xo(s,t){return Math.ceil(vg(s,t))}function Oa(s,t,e){const i=e!==void 0?s.toFixed(e):""+s;let n=i.indexOf(".");return n=n===-1?i.length:n,n>t?i:new Array(1+t-n).join("0")+i}function Jx(s,t){const e=(""+s).split("."),i=(""+t).split(".");for(let n=0;no)return 1;if(o>r)return-1}return 0}function mI(s,t){return s[0]+=+t[0],s[1]+=+t[1],s}function r2(s,t,e){const i=kn(t+180,360)-180,n=Math.abs(3600*i),r=e||0;let o=Math.floor(n/3600),a=Math.floor((n-o*3600)/60),l=vg(n-o*3600-a*60,r);l>=60&&(l=0,a+=1),a>=60&&(a=0,o+=1);let h=o+"°";return(a!==0||l!==0)&&(h+=" "+Oa(a,2)+"′"),l!==0&&(h+=" "+Oa(l,2,r)+"″"),i!==0&&(h+=" "+s.charAt(i<0?1:0)),h}function bp(s,t){let e=!0;for(let i=s.length-1;i>=0;--i)if(s[i]!=t[i]){e=!1;break}return e}function S9(s,t){const e=Math.cos(t),i=Math.sin(t),n=s[0]*e-s[1]*i,r=s[1]*e+s[0]*i;return s[0]=n,s[1]=r,s}function M9(s,t){return s[0]*=t,s[1]*=t,s}function _I(s,t){if(t.canWrapX()){const e=Rt(t.getExtent()),i=yI(s,t,e);i&&(s[0]-=i*e)}return s}function yI(s,t,e){const i=t.getExtent();let n=0;return t.canWrapX()&&(s[0]i[2])&&(e=e||Rt(i),n=Math.floor((s[0]-i[0])/e)),n}const b9=63710088e-1;function o2(s,t,e){e=e||b9;const i=Xu(s[1]),n=Xu(t[1]),r=(n-i)/2,o=Xu(t[0]-s[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(n);return 2*e*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function C9(...s){console.warn(...s)}function Td(...s){console.error(...s)}let B1=!0;function T9(s){B1=!1}function Qx(s,t){if(t!==void 0){for(let e=0,i=s.length;e=a?t[r+l]:o[l]}return e}}function P9(s,t,e,i){const n=st(s),r=st(t);oc(n,r,l2(e)),oc(r,n,l2(i))}function h2(s,t){const e=Dm(s,t!==void 0?t:"EPSG:3857","EPSG:4326"),i=e[0];return(i<-180||i>180)&&(e[0]=kn(i+180,360)-180),e}function qs(s,t){if(s===t)return!0;const e=s.getUnits()===t.getUnits();return(s.getCode()===t.getCode()||Sl(s,t)===Qx)&&e}function Sl(s,t){const e=s.getCode(),i=t.getCode();let n=fI(e,i);return n||(n=xI),n}function vr(s,t){const e=st(s),i=st(t);return Sl(e,i)}function Dm(s,t,e){return vr(t,e)(s,void 0,s.length)}function ev(s,t,e,i){const n=vr(t,e);return nc(s,n,void 0,i)}let A9=null;function L9(){return A9}function X1(s,t){return s}function bo(s,t){return B1&&!bp(s,[0,0])&&s[0]>=-180&&s[0]<=180&&s[1]>=-90&&s[1]<=90&&(B1=!1,C9("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),s}function km(s,t){return s}function cn(s,t){return s}function c2(s,t,e){return function(i){let n,r;if(s.canWrapX()){const o=s.getExtent(),a=Rt(o);i=i.slice(0),r=yI(i,s,a),r&&(i[0]=i[0]-r*a),i[0]=Dt(i[0],o[0],o[2]),i[1]=Dt(i[1],o[1],o[3]),n=e(i)}else n=e(i);return r&&t.canWrapX()&&(n[0]+=r*Rt(t.getExtent())),n}}function O9(){W1(s2),W1(n2),I9(n2,s2,m9,_9)}O9();function Jo(s,t,e,i,n,r){r=r||[];let o=0;for(let a=t;a{if(!i)return this.getSimplifiedGeometry(e);const n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)})}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return vt()}closestPointXY(t,e,i,n){return vt()}containsXY(t,e){const i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return vt()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&mg(e),this.extentRevision_=this.getRevision()}return u9(this.extent_,t)}rotate(t,e){vt()}scale(t,e,i){vt()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return vt()}getType(){return vt()}applyTransform(t){vt()}intersectsExtent(t){return vt()}translate(t,e){vt()}transform(t,e){const i=st(t),n=i.getUnits()=="tile-pixels"?function(r,o,a){const l=i.getExtent(),h=i.getWorldExtent(),c=Ee(h)/Ee(l);return xn(u2,h[0],h[3],c,-c,0,0,0),Jo(r,0,r.length,a,u2,o),vr(i,e)(r,o,a)}:vr(i,e);return this.applyTransform(n),this}}class D9 extends sv{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return Yx(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return vt()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().lengtht.clone())}function d2(s,t,e,i,n,r,o){const a=s[t],l=s[t+1],h=s[e]-a,c=s[e+1]-l;let u;if(h===0&&c===0)u=t;else{const d=((n-a)*h+(r-l)*c)/(h*h+c*c);if(d>1)u=e;else if(d>0){for(let g=0;gn&&(n=h),r=a,o=l}return n}function nv(s,t,e,i,n){for(let r=0,o=e.length;r0;){const u=h.pop(),d=h.pop();let g=0;const f=s[d],p=s[d+1],m=s[u],_=s[u+1];for(let y=d+i;yg&&(c=y,g=w)}g>n&&(l[(c-t)/i]=1,d+i0&&p>g)&&(f<0&&m0&&m>f)){h=u,c=d;continue}r[o++]=h,r[o++]=c,a=h,l=c,h=u,c=d}return r[o++]=h,r[o++]=c,o}function av(s,t,e,i,n,r,o,a){for(let l=0,h=e.length;l1?o:2,r=r||new Array(o);for(let c=0;c>1;nr&&(h-a)*(r-l)-(n-a)*(c-l)>0&&o++:c<=r&&(h-a)*(r-l)-(n-a)*(c-l)<0&&o--,a=h,l=c}return o!==0}function lv(s,t,e,i,n,r){if(e.length===0||!ja(s,t,e[0],i,n,r))return!1;for(let o=1,a=e.length;o=n[0]&&r[2]<=n[2]||r[1]>=n[1]&&r[3]<=n[3]?!0:CI(s,t,e,i,function(o,a){return d9(n,o,a)}):!1}function Y9(s,t,e,i,n){for(let r=0,o=e.length;r_&&(h=(c+u)/2,lv(s,t,e,i,h,f)&&(m=h,_=y)),c=u}return isNaN(m)&&(m=n[r]),o?(o.push(m,f,_),o):[m,f,_]}function AI(s,t,e,i,n){let r=[];for(let o=0,a=e.length;o0}function cv(s,t,e,i,n){n=n!==void 0?n:!1;for(let r=0,o=e.length;r{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const i=this.simplifiedGeometry_.getFlatCoordinates();let n;switch(this.type_){case"LineString":i.length=$m(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,i,0),n=[i.length];break;case"MultiLineString":n=[],i.length=SI(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,i,0,n);break;case"Polygon":n=[],i.length=av(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),i,0,n);break}return n&&(this.simplifiedGeometry_=new si(this.type_,i,n,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_}),this}}si.prototype.getFlatCoordinates=si.prototype.getOrientedFlatCoordinates;class H9{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=ys,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let i=e.dataProjection?st(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()==="tile-pixels"&&(i=st(i),i.setWorldExtent(e.extent)),e={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},t)}getType(){return vt()}readFeature(t,e){return vt()}readFeatures(t,e){return vt()}readGeometry(t,e){return vt()}readProjection(t){return vt()}writeFeature(t,e){return vt()}writeFeatures(t,e){return vt()}writeGeometry(t,e){return vt()}}const Sg=H9;function De(s,t,e){const i=e?st(e.featureProjection):null,n=e?st(e.dataProjection):null;let r=s;if(i&&n&&!qs(i,n)){t&&(r=s.clone());const o=t?i:n,a=t?n:i;o.getUnits()==="tile-pixels"?r.transform(o,a):r.applyTransform(vr(o,a))}if(t&&e&&e.decimals!==void 0){const o=Math.pow(10,e.decimals),a=function(l){for(let h=0,c=l.length;hNI({...s,geometry:o})).flat();const n=i.type==="MultiPolygon"?"Polygon":i.type;if(n==="GeometryCollection"||n==="Circle")throw new Error("Unsupported geometry type: "+n);const r=i.layout.length;return De(new si(n,n==="Polygon"?J9(i.flatCoordinates,i.ends,r):i.flatCoordinates,(e=i.ends)==null?void 0:e.flat(),r,s.properties||{},s.id).enableSimplifyTransformed(),!1,t)}function dv(s,t){if(!s)return null;if(Array.isArray(s)){const i=s.map(n=>dv(n,t));return new _s(i)}const e=K9[s.type];return De(new e(s.flatCoordinates,s.layout,s.ends),!1,t)}class gv extends Sg{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(gf(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(gf(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return vt()}readFeaturesFromObject(t,e){return vt()}readGeometry(t,e){return this.readGeometryFromObject(gf(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return vt()}readProjection(t){return this.readProjectionFromObject(gf(t))}readProjectionFromObject(t){return vt()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return vt()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return vt()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return vt()}}function gf(s){return typeof s=="string"?JSON.parse(s)||null:s!==null?s:null}const Q9={Point:i7,LineString:n7,Polygon:l7,MultiPoint:o7,MultiLineString:r7,MultiPolygon:a7},t7={Point:h7,LineString:c7,Polygon:u7,MultiPoint:g7,MultiLineString:d7,MultiPolygon:f7};class e7 extends gv{constructor(t){t=t||{},super(),this.geometryName_=t.geometryName}readFeatureFromObject(t,e,i){const n=t,r=p2(n.geometry,e),o=new ys;if(this.geometryName_&&o.setGeometryName(this.geometryName_),o.setGeometry(r),n.attributes){o.setProperties(n.attributes,!0);const a=n.attributes[i];a!==void 0&&o.setId(a)}return o}readFeaturesFromObject(t,e){if(e=e||{},t.features){const i=t,n=[],r=i.features;for(let o=0,a=r.length;o=0;r--){const h=i[r][0];if(ai(new aa(h).getExtent(),new aa(a).getExtent())){i[r].push(a),l=!0;break}}l||i.push([a.reverse()])}return i}function i7(s){let t;return s.m!==void 0&&s.z!==void 0?t=new Cs([s.x,s.y,s.z,s.m],"XYZM"):s.z!==void 0?t=new Cs([s.x,s.y,s.z],"XYZ"):s.m!==void 0?t=new Cs([s.x,s.y,s.m],"XYM"):t=new Cs([s.x,s.y]),t}function n7(s){const t=Cc(s);return new ls(s.paths[0],t)}function r7(s){const t=Cc(s);return new Pi(s.paths,t)}function Cc(s){let t="XY";return s.hasZ===!0&&s.hasM===!0?t="XYZM":s.hasZ===!0?t="XYZ":s.hasM===!0&&(t="XYM"),t}function o7(s){const t=Cc(s);return new Zn(s.points,t)}function a7(s){const t=Cc(s);return new vn(s.rings,t)}function l7(s){const t=Cc(s);return new Hs(s.rings,t)}function h7(s,t){const e=s.getCoordinates();let i;const n=s.getLayout();if(n==="XYZ")i={x:e[0],y:e[1],z:e[2]};else if(n==="XYM")i={x:e[0],y:e[1],m:e[2]};else if(n==="XYZM")i={x:e[0],y:e[1],z:e[2],m:e[3]};else if(n==="XY")i={x:e[0],y:e[1]};else throw new Error("Invalid geometry layout");return i}function Mg(s){const t=s.getLayout();return{hasZ:t==="XYZ"||t==="XYZM",hasM:t==="XYM"||t==="XYZM"}}function c7(s,t){const e=Mg(s);return{hasZ:e.hasZ,hasM:e.hasM,paths:[s.getCoordinates()]}}function u7(s,t){const e=Mg(s);return{hasZ:e.hasZ,hasM:e.hasM,rings:s.getCoordinates(!1)}}function d7(s,t){const e=Mg(s);return{hasZ:e.hasZ,hasM:e.hasM,paths:s.getCoordinates()}}function g7(s,t){const e=Mg(s);return{hasZ:e.hasZ,hasM:e.hasM,points:s.getCoordinates()}}function f7(s,t){const e=Mg(s),i=s.getCoordinates(!1),n=[];for(let r=0;r=0;o--)n.push(i[r][o]);return{hasZ:e.hasZ,hasM:e.hasM,rings:n}}function m2(s,t){const e=t7[s.getType()];return e(De(s,!0,t),t)}const p7=e7;class m7 extends gv{constructor(t){t=t||{},super(),this.dataProjection=st(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=st(t.featureProjection)),t.featureClass&&(this.featureClass=t.featureClass),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let i=null;t.type==="Feature"?i=t:i={type:"Feature",geometry:t,properties:null};const n=fv(i.geometry);if(this.featureClass===si)return NI({geometry:n,id:i.id,properties:i.properties},e);const r=new ys;return this.geometryName_?r.setGeometryName(this.geometryName_):this.extractGeometryName_&&i.geometry_name&&r.setGeometryName(i.geometry_name),r.setGeometry(dv(n,e)),"id"in i&&r.setId(i.id),i.properties&&r.setProperties(i.properties,!0),r}readFeaturesFromObject(t,e){const i=t;let n=null;if(i.type==="FeatureCollection"){const r=t;n=[];const o=r.features;for(let a=0,l=o.length;a0?i[0]:null}readFeatureFromNode(t,e){return null}readFeatures(t,e){if(!t)return[];if(typeof t=="string"){const i=dn(t);return this.readFeaturesFromDocument(i,e)}return un(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}readFeaturesFromDocument(t,e){const i=[];for(let n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&ee(i,this.readFeaturesFromNode(n,e));return i}readFeaturesFromNode(t,e){return vt()}readGeometry(t,e){if(!t)return null;if(typeof t=="string"){const i=dn(t);return this.readGeometryFromDocument(i,e)}return un(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}readGeometryFromDocument(t,e){return null}readGeometryFromNode(t,e){return null}readProjection(t){if(!t)return null;if(typeof t=="string"){const e=dn(t);return this.readProjectionFromDocument(e)}return un(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}readProjectionFromDocument(t){return this.dataProjection}readProjectionFromNode(t){return this.dataProjection}writeFeature(t,e){const i=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(i)}writeFeatureNode(t,e){return null}writeFeatures(t,e){const i=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(i)}writeFeaturesNode(t,e){return null}writeGeometry(t,e){const i=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(i)}writeGeometryNode(t,e){return null}}const Zr="http://www.opengis.net/gml",F7=/^\s*$/;class ut extends bg{constructor(t){super(),t=t||{},this.featureType=t.featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:dt(this.readFeaturesInternal),featureMembers:xt(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(t,e){const i=t.localName;let n=null;if(i=="FeatureCollection")n=Y([],this.FEATURE_COLLECTION_PARSERS,t,e,this);else if(i=="featureMembers"||i=="featureMember"||i=="member"){const r=e[0];let o=r.featureType,a=r.featureNS;const l="p",h="p0";if(!o&&t.childNodes){o=[],a={};for(let d=0,g=t.childNodes.length;d0&&!(h instanceof sv)){h={_content_:h};for(let d=0;d1,i=e&&s.imageInfo.profile[1].supports?s.imageInfo.profile[1].supports:[],n=e&&s.imageInfo.profile[1].formats?s.imageInfo.profile[1].formats:[],r=e&&s.imageInfo.profile[1].qualities?s.imageInfo.profile[1].qualities:[];return{url:s.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:s.imageInfo.sizes===void 0?void 0:s.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:s.imageInfo.tiles===void 0?void 0:[s.imageInfo.tiles.map(function(o){return o.width})[0],s.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:s.imageInfo.tiles===void 0?void 0:s.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:[...t.supports,...i],formats:[...t.formats,...n],qualities:[...t.qualities,...r]}}function GB(s){const t=s.getComplianceLevelSupportedFeatures(),e=s.imageInfo.extraFormats===void 0?t.formats:[...t.formats,...s.imageInfo.extraFormats],i=s.imageInfo.preferredFormats!==void 0&&Array.isArray(s.imageInfo.preferredFormats)&&s.imageInfo.preferredFormats.length>0?s.imageInfo.preferredFormats.filter(function(n){return["jpg","png","gif"].includes(n)}).reduce(function(n,r){return n===void 0&&e.includes(r)?r:n},void 0):void 0;return{url:s.imageInfo.id,sizes:s.imageInfo.sizes===void 0?void 0:s.imageInfo.sizes.map(function(n){return[n.width,n.height]}),tileSize:s.imageInfo.tiles===void 0?void 0:[s.imageInfo.tiles.map(function(n){return n.width})[0],s.imageInfo.tiles.map(function(n){return n.height})[0]],resolutions:s.imageInfo.tiles===void 0?void 0:s.imageInfo.tiles.map(function(n){return n.scaleFactors})[0],supports:s.imageInfo.extraFeatures===void 0?t.supports:[...t.supports,...s.imageInfo.extraFeatures],formats:e,qualities:s.imageInfo.extraQualities===void 0?t.qualities:[...t.qualities,...s.imageInfo.extraQualities],preferredFormat:i}}const Bm={};Bm[os.VERSION1]=kB;Bm[os.VERSION2]=$B;Bm[os.VERSION3]=GB;class jB{constructor(t){this.setImageInfo(t)}setImageInfo(t){typeof t=="string"?this.imageInfo=JSON.parse(t):this.imageInfo=t}getImageApiVersion(){if(this.imageInfo===void 0)return;let t=this.imageInfo["@context"]||"ol-no-context";typeof t=="string"&&(t=[t]);for(let e=0;e0&&typeof this.imageInfo.profile[0]=="string"&&_2.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}}getComplianceLevelFromProfile(t){const e=this.getComplianceLevelEntryFromProfile(t);if(e===void 0)return;const i=e.match(/level[0-2](?:\.json)?$/g);return Array.isArray(i)?i[0].replace(".json",""):void 0}getComplianceLevelSupportedFeatures(){if(this.imageInfo===void 0)return;const t=this.getImageApiVersion(),e=this.getComplianceLevelFromProfile(t);return e===void 0?rl.none.none:rl[t][e]}getTileSourceOptions(t){const e=t||{},i=this.getImageApiVersion();if(i===void 0)return;const n=i===void 0?void 0:Bm[i](this);if(n!==void 0)return{url:n.url,version:i,size:[this.imageInfo.width,this.imageInfo.height],sizes:n.sizes,format:e.format!==void 0&&n.formats.includes(e.format)?e.format:n.preferredFormat!==void 0?n.preferredFormat:"jpg",supports:n.supports,quality:e.quality&&n.qualities.includes(e.quality)?e.quality:n.qualities.includes("native")?"native":"default",resolutions:Array.isArray(n.resolutions)?n.resolutions.sort(function(r,o){return o-r}):void 0,tileSize:n.tileSize}}}const zB=jB,it={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},Id={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var Ds={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"]};Ds.whitepoint={2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}};Ds.max=Ds.whitepoint[2].D65;Ds.rgb=function(s,t){t=t||Ds.whitepoint[2].E;var e=s[0]/t[0],i=s[1]/t[1],n=s[2]/t[2],r,o,a;return r=e*3.240969941904521+i*-1.537383177570093+n*-.498610760293,o=e*-.96924363628087+i*1.87596750150772+n*.041555057407175,a=e*.055630079696993+i*-.20397695888897+n*1.056971514242878,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o=o*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a=a*12.92,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[r*255,o*255,a*255]};Id.xyz=function(s,t){var e=s[0]/255,i=s[1]/255,n=s[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=e*.41239079926595+i*.35758433938387+n*.18048078840183,o=e*.21263900587151+i*.71516867876775+n*.072192315360733,a=e*.019330818715591+i*.11919477979462+n*.95053215224966;return t=t||Ds.whitepoint[2].E,[r*t[0],o*t[1],a*t[2]]};const wv={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(s,t,e){var i,n,r,o,a,l,h,c,u,d,g,f,p;if(r=s[0],o=s[1],a=s[2],r===0)return[0,0,0];var m=.0011070564598794539;return t=t||"D65",e=e||2,u=Ds.whitepoint[e][t][0],d=Ds.whitepoint[e][t][1],g=Ds.whitepoint[e][t][2],f=4*u/(u+15*d+3*g),p=9*d/(u+15*d+3*g),i=o/(13*r)+f||0,n=a/(13*r)+p||0,h=r>8?d*Math.pow((r+16)/116,3):d*r*m,l=h*9*i/(4*n)||0,c=h*(12-3*i-20*n)/(4*n)||0,[l,h,c]}};Ds.luv=function(s,t,e){var i,n,r,o,a,l,h,c,u,d,g,f,p,m=.008856451679035631,_=903.2962962962961;t=t||"D65",e=e||2,u=Ds.whitepoint[e][t][0],d=Ds.whitepoint[e][t][1],g=Ds.whitepoint[e][t][2],f=4*u/(u+15*d+3*g),p=9*d/(u+15*d+3*g),l=s[0],h=s[1],c=s[2],i=4*l/(l+15*h+3*c)||0,n=9*h/(l+15*h+3*c)||0;var y=h/d;return r=y<=m?_*y:116*Math.pow(y,1/3)-16,o=13*r*(i-f),a=13*r*(n-p),[r,o,a]};var BI={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(s){var t=s[0],e=s[1],i=s[2],n,r,o;return o=i/360*2*Math.PI,n=e*Math.cos(o),r=e*Math.sin(o),[t,n,r]},xyz:function(s){return wv.xyz(BI.luv(s))}};wv.lchuv=function(s){var t=s[0],e=s[1],i=s[2],n=Math.sqrt(e*e+i*i),r=Math.atan2(i,e),o=r*360/2/Math.PI;return o<0&&(o+=360),[t,n,o]};Ds.lchuv=function(s){return wv.lchuv(Ds.luv(s))};const y2={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var x2={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function UB(s){var t,e,i,n=[],r=1,o;if(typeof s=="number")return{space:"rgb",values:[s>>>16,(s&65280)>>>8,s&255],alpha:1};if(typeof s=="number")return{space:"rgb",values:[s>>>16,(s&65280)>>>8,s&255],alpha:1};if(s=String(s).toLowerCase(),y2[s])n=y2[s].slice(),o="rgb";else if(s==="transparent")r=0,o="rgb",n=[0,0,0];else if(s[0]==="#"){var a=s.slice(1),l=a.length,h=l<=4;r=1,h?(n=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],l===4&&(r=parseInt(a[3]+a[3],16)/255)):(n=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],l===8&&(r=parseInt(a[6]+a[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),o="rgb"}else if(i=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(s)){var c=i[1];o=c.replace(/a$/,"");var u=o==="cmyk"?4:o==="gray"?1:3;n=i[2].trim().split(/\s*[,\/]\s*|\s+/),o==="color"&&(o=n.shift()),n=n.map(function(d,g){if(d[d.length-1]==="%")return d=parseFloat(d)/100,g===3?d:o==="rgb"?d*255:o[0]==="h"||o[0]==="l"&&!g?d*100:o==="lab"?d*125:o==="lch"?g<2?d*150:d*360:o[0]==="o"&&!g?d:o==="oklab"?d*.4:o==="oklch"?g<2?d*.4:d*360:d;if(o[g]==="h"||g===2&&o[o.length-1]==="h"){if(x2[d]!==void 0)return x2[d];if(d.endsWith("deg"))return parseFloat(d);if(d.endsWith("turn"))return parseFloat(d)*360;if(d.endsWith("grad"))return parseFloat(d)*360/400;if(d.endsWith("rad"))return parseFloat(d)*180/Math.PI}return d==="none"?0:parseFloat(d)}),r=n.length>u?n.pop():1}else/[0-9](?:\s|\/|,)/.test(s)&&(n=s.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),o=((e=(t=s.match(/([a-z])/ig))==null?void 0:t.join(""))==null?void 0:e.toLowerCase())||"rgb");return{space:o,values:n,alpha:r}}const x_={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(s){var t=s[0]/360,e=s[1]/100,i=s[2]/100,n,r,o,a,l,h=0;if(e===0)return l=i*255,[l,l,l];for(r=i<.5?i*(1+e):i+e-i*e,n=2*i-r,a=[0,0,0];h<3;)o=t+1/3*-(h-1),o<0?o++:o>1&&o--,l=6*o<1?n+(r-n)*6*o:2*o<1?r:3*o<2?n+(r-n)*(2/3-o)*6:n,a[h++]=l*255;return a}};Id.hsl=function(s){var t=s[0]/255,e=s[1]/255,i=s[2]/255,n=Math.min(t,e,i),r=Math.max(t,e,i),o=r-n,a,l,h;return r===n?a=0:t===r?a=(e-i)/o:e===r?a=2+(i-t)/o:i===r&&(a=4+(t-e)/o),a=Math.min(a*60,360),a<0&&(a+=360),h=(n+r)/2,r===n?l=0:h<=.5?l=o/(r+n):l=o/(2-r-n),[a,l*100,h*100]};function BB(s){Array.isArray(s)&&s.raw&&(s=String.raw(...arguments)),s instanceof Number&&(s=+s);var t,e=UB(s);if(!e.space)return[];const i=e.space[0]==="h"?x_.min:Id.min,n=e.space[0]==="h"?x_.max:Id.max;return t=Array(3),t[0]=Math.min(Math.max(e.values[0],i[0]),n[0]),t[1]=Math.min(Math.max(e.values[1],i[1]),n[1]),t[2]=Math.min(Math.max(e.values[2],i[2]),n[2]),e.space[0]==="h"&&(t=x_.rgb(t)),t.push(Math.min(Math.max(e.alpha,0),1)),t}function WB(s){return typeof s=="string"?s:Sv(s)}const XB=1024,eu={};let v_=0;function VB(s){if(s.length===4)return s;const t=s.slice();return t[3]=1,t}function v2(s){const t=Ds.lchuv(Id.xyz(s));return t[3]=s[3],t}function YB(s){const t=Ds.rgb(BI.xyz(s));return t[3]=s[3],t}function Ev(s){if(eu.hasOwnProperty(s))return eu[s];if(v_>=XB){let e=0;for(const i in eu)e++&3||(delete eu[i],--v_)}const t=BB(s);if(t.length!==4)throw new Error('failed to parse "'+s+'" as color');for(const e of t)if(isNaN(e))throw new Error('failed to parse "'+s+'" as color');return WI(t),eu[s]=t,++v_,t}function Bn(s){return Array.isArray(s)?s:Ev(s)}function WI(s){return s[0]=Dt(s[0]+.5|0,0,255),s[1]=Dt(s[1]+.5|0,0,255),s[2]=Dt(s[2]+.5|0,0,255),s[3]=Dt(s[3],0,1),s}function Sv(s){let t=s[0];t!=(t|0)&&(t=t+.5|0);let e=s[1];e!=(e|0)&&(e=e+.5|0);let i=s[2];i!=(i|0)&&(i=i+.5|0);const n=s[3]===void 0?1:Math.round(s[3]*1e3)/1e3;return"rgba("+t+","+e+","+i+","+n+")"}const ha=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"";ha.includes("firefox");const qB=ha.includes("safari")&&!ha.includes("chrom"),ZB=qB&&(ha.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(ha));ha.includes("webkit")&&ha.includes("edge");ha.includes("macintosh");const XI=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,Mv=typeof Image<"u"&&Image.prototype.decode,HB=typeof createImageBitmap=="function";(function(){let s=!1;try{const t=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch{}return s})();function Se(s,t,e,i){let n;return e&&e.length?n=e.shift():XI?n=new OffscreenCanvas(s||300,t||300):n=document.createElement("canvas"),s&&(n.width=s),t&&(n.height=t),n.getContext("2d",i)}let w_;function Pp(){return w_||(w_=Se(1,1)),w_}function ol(s){const t=s.canvas;t.width=1,t.height=1,s.clearRect(0,0,1,1)}class Wm extends fg{constructor(t,e,i,n){super(),this.extent=t,this.pixelRatio_=i,this.resolution=e,this.state=typeof n=="function"?it.IDLE:n,this.image_=null,this.loader=typeof n=="function"?n:null}changed(){this.dispatchEvent(Zt.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==it.IDLE&&this.loader){this.state=it.LOADING,this.changed();const t=this.getResolution(),e=Array.isArray(t)?t[0]:t;lI(()=>this.loader(this.getExtent(),e,this.getPixelRatio())).then(i=>{"image"in i&&(this.image_=i.image),"extent"in i&&(this.extent=i.extent),"resolution"in i&&(this.resolution=i.resolution),"pixelRatio"in i&&(this.pixelRatio_=i.pixelRatio),(i instanceof HTMLImageElement||i instanceof ImageBitmap||i instanceof HTMLCanvasElement||i instanceof HTMLVideoElement)&&(this.image_=i),this.state=it.LOADED}).catch(i=>{this.state=it.ERROR,console.error(i)}).finally(()=>this.changed())}}setImage(t){this.image_=t}setResolution(t){this.resolution=t}}function KB(s,t,e){const i=s;let n=!0,r=!1,o=!1;const a=[bd(i,Zt.LOAD,function(){o=!0,r||t()})];return i.src&&Mv?(r=!0,i.decode().then(function(){n&&t()}).catch(function(l){n&&(o?t():e())})):a.push(bd(i,Zt.ERROR,e)),function(){n=!1,a.forEach(ms)}}function JB(s,t){return new Promise((e,i)=>{function n(){o(),e(s)}function r(){o(),i(new Error("Image load error"))}function o(){s.removeEventListener("load",n),s.removeEventListener("error",r)}s.addEventListener("load",n),s.addEventListener("error",r)})}function VI(s,t){return t&&(s.src=t),s.src&&Mv?new Promise((e,i)=>s.decode().then(()=>e(s)).catch(n=>s.complete&&s.width?e(s):i(n))):JB(s)}function pa(s,t){return t&&(s.src=t),s.src&&Mv&&HB?s.decode().then(()=>createImageBitmap(s)).catch(e=>{if(s.complete&&s.width)return s;throw e}):VI(s)}class QB{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];!(t++&3)&&!i.hasListener()&&(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e,i){const n=E_(t,e,i);return n in this.cache_?this.cache_[n]:null}getPattern(t,e,i){const n=E_(t,e,i);return n in this.patternCache_?this.patternCache_[n]:null}set(t,e,i,n,r){const o=E_(t,e,i),a=o in this.cache_;this.cache_[o]=n,r&&(n.getImageState()===it.IDLE&&n.load(),n.getImageState()===it.LOADING?n.ready().then(()=>{this.patternCache_[o]=Pp().createPattern(n.getImage(1),"repeat")}):this.patternCache_[o]=Pp().createPattern(n.getImage(1),"repeat")),a||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function E_(s,t,e){const i=e?Bn(e):"null";return t+":"+s+":"+i}const Vo=new QB;let su=null;class tW extends fg{constructor(t,e,i,n,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=r,this.imageState_=n===void 0?it.IDLE:n,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===it.LOADED){su||(su=Se(1,1,void 0,{willReadFrequently:!0})),su.drawImage(this.image_,0,0);try{su.getImageData(0,0,1,1),this.tainted_=!1}catch{su=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(Zt.CHANGE)}handleImageError_(){this.imageState_=it.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=it.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],i=Se(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===it.IDLE){this.image_||this.initializeImage_(),this.imageState_=it.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&VI(this.image_,this.src_).then(t=>{this.image_=t,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==it.LOADED)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const n=i.getContext("2d");n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=WB(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}ready(){return this.ready_||(this.ready_=new Promise(t=>{if(this.imageState_===it.LOADED||this.imageState_===it.ERROR)t();else{const e=()=>{(this.imageState_===it.LOADED||this.imageState_===it.ERROR)&&(this.removeEventListener(Zt.CHANGE,e),t())};this.addEventListener(Zt.CHANGE,e)}})),this.ready_}}function bv(s,t,e,i,n,r){let o=t===void 0?void 0:Vo.get(t,e,n);return o||(o=new tW(s,s&&"src"in s?s.src||void 0:t,e,i,n),Vo.set(t,e,n,o,r)),r&&o&&!Vo.getPattern(t,e,n)&&Vo.set(t,e,n,o,r),o}class Wn{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,t.color!==void 0&&this.setColor(t.color)}clone(){const t=this.getColor();return new Wn({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(t!==null&&typeof t=="object"&&"src"in t){const e=bv(null,t.src,"anonymous",void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then(()=>{this.patternImage_=null}),e.getImageState()===it.IDLE&&e.load(),e.getImageState()===it.LOADING&&(this.patternImage_=e)}this.color_=t}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}function YI(s,t,e){return e===void 0&&(e=[0,0]),e[0]=s[0]*t+.5|0,e[1]=s[1]*t+.5|0,e}function Re(s,t){return Array.isArray(s)?s:(t===void 0?t=[s,s]:(t[0]=s,t[1]=s),t)}class Xm{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Re(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Xm({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return vt()}getImage(t){return vt()}getHitDetectionImage(){return vt()}getPixelRatio(t){return 1}getImageState(){return vt()}getImageSize(){return vt()}getOrigin(){return vt()}getSize(){return vt()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=Re(t)}listenImageChange(t){vt()}load(){vt()}unlistenImageChange(t){vt()}ready(){return Promise.resolve()}}function w2(s,t,e,i){return e!==void 0&&i!==void 0?[e/s,i/t]:e!==void 0?e/s:i!==void 0?i/t:1}class Rc extends Xm{constructor(t){t=t||{};const e=t.opacity!==void 0?t.opacity:1,i=t.rotation!==void 0?t.rotation:0,n=t.scale!==void 0?t.scale:1,r=t.rotateWithView!==void 0?t.rotateWithView:!1;super({opacity:e,rotation:i,scale:n,displacement:t.displacement!==void 0?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=t.anchor!==void 0?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=t.anchorOrigin!==void 0?t.anchorOrigin:"top-left",this.anchorXUnits_=t.anchorXUnits!==void 0?t.anchorXUnits:"fraction",this.anchorYUnits_=t.anchorYUnits!==void 0?t.anchorYUnits:"fraction",this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null;const o=t.img!==void 0?t.img:null;let a=t.src;qt(!(a!==void 0&&o),"`image` and `src` cannot be provided at the same time"),(a===void 0||a.length===0)&&o&&(a=o.src||mt(o)),qt(a!==void 0&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),qt(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),"`width` or `height` cannot be provided together with `scale`");let l;if(t.src!==void 0?l=it.IDLE:o!==void 0&&("complete"in o?o.complete?l=o.src?it.LOADED:it.IDLE:l=it.LOADING:l=it.LOADED),this.color_=t.color!==void 0?Bn(t.color):null,this.iconImage_=bv(o,a,this.crossOrigin_,l,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,this.initialOptions_,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{const u=this.getImage(1);if(u.width&&u.height)h=u.width,c=u.height;else if(u instanceof HTMLImageElement){this.initialOptions_=t;const d=()=>{if(this.unlistenImageChange(d),!this.initialOptions_)return;const g=this.iconImage_.getSize();this.setScale(w2(g[0],g[1],t.width,t.height))};this.listenImageChange(d);return}}h!==void 0&&this.setScale(w2(h,c,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new Rc({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_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const n=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=n[0]),this.anchorYUnits_=="fraction"&&(t[1]*=n[1])}if(this.anchorOrigin_!="top-left"){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+n[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if(this.offsetOrigin_!="top-left"){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=i[0]-e[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==it.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){const t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==it.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(Zt.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(Zt.CHANGE,t)}ready(){return this.iconImage_.ready()}}class wn{constructor(t){t=t||{},this.color_=t.color!==void 0?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=t.lineDash!==void 0?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}clone(){const t=this.getColor();return new wn({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setWidth(t){this.width_=t}}function hr(s){return s?Array.isArray(s)?Sv(s):typeof s=="object"&&"src"in s?eW(s):s:null}function eW(s){if(!s.offset||!s.size)return Vo.getPattern(s.src,"anonymous",s.color);const t=s.src+":"+s.offset,e=Vo.getPattern(t,void 0,s.color);if(e)return e;const i=Vo.get(s.src,"anonymous",null);if(i.getImageState()!==it.LOADED)return null;const n=Se(s.size[0],s.size[1]);return n.drawImage(i.getImage(1),s.offset[0],s.offset[1],s.size[0],s.size[1],0,0,s.size[0],s.size[1]),bv(n.canvas,t,void 0,it.LOADED,s.color,!0),Vo.getPattern(t,void 0,s.color)}const sW=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"),E2=["style","variant","weight","size","lineHeight","family"],qI=function(s){const t=s.match(sW);if(!t)return null;const e={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,n=E2.length;iMath.max(n,Lp(s,r)),0);return e[t]=i,i}function rW(s,t){const e=[],i=[],n=[];let r=0,o=0,a=0,l=0;for(let h=0,c=t.length;h<=c;h+=2){const u=t[h];if(u===` -`||h===c){r=Math.max(r,o),n.push(o),o=0,a+=l,l=0;continue}const d=t[h+1]||s.font,g=Lp(d,u);e.push(g),o+=g;const f=nW(d);i.push(f),l=Math.max(l,f)}return{width:r,height:a,widths:e,heights:i,lineWidths:n}}function oW(s,t,e,i,n,r,o,a,l,h,c){s.save(),e!==1&&(s.globalAlpha===void 0?s.globalAlpha=u=>u.globalAlpha*=e:s.globalAlpha*=e),t&&s.transform.apply(s,t),i.contextInstructions?(s.translate(l,h),s.scale(c[0],c[1]),aW(i,s)):c[0]<0||c[1]<0?(s.translate(l,h),s.scale(c[0],c[1]),s.drawImage(i,n,r,o,a,0,0,o,a)):s.drawImage(i,n,r,o,a,l,h,o*c[0],a*c[1]),s.restore()}function aW(s,t){const e=s.contextInstructions;for(let i=0,n=e.length;ithis.imageState_=it.LOADED),this.render()}clone(){const t=this.getScale(),e=new Vm({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(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){let e=this.canvases_[t];if(!e){const i=this.renderOptions_,n=Se(i.size*t,i.size*t);this.draw_(i,n,t),e=n.canvas,this.canvases_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(e===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return e;let n=this.radius,r=this.radius2_===void 0?n:this.radius2_;if(n1?o.Document=t:t.length==1&&(o.Placemark=t[0]);const a=pW[i.namespaceURI],l=Ai(o,a);return Tt(r,mW,Is,l,[e],a,this),i}}function vW(s,t){const e=[0,0];let i="start";const n=s.getImage();if(n){const o=n.getSize();if(o&&o.length==2){const a=n.getScaleArray(),l=n.getAnchor();e[0]=a[0]*(o[0]-l[0]),e[1]=a[1]*(o[1]/2-l[1]),i="left"}}let r=s.getText();return r?(r=r.clone(),r.setFont(r.getFont()||Ua.getFont()),r.setScale(r.getScale()||Ua.getScale()),r.setFill(r.getFill()||Ua.getFill()),r.setStroke(r.getStroke()||sy)):r=Ua.clone(),r.setText(t),r.setOffsetX(e[0]),r.setOffsetY(e[1]),r.setTextAlign(i),new Ps({image:n,text:r})}function wW(s,t,e,i,n){return function(r,o){let a=n,l="",h=[];if(a){const u=r.getGeometry();if(u)if(u instanceof _s)h=u.getGeometriesArrayRecursive().filter(function(d){const g=d.getType();return g==="Point"||g==="MultiPoint"}),a=h.length>0;else{const d=u.getType();a=d==="Point"||d==="MultiPoint"}}a&&(l=r.get("name"),a=a&&!!l,a&&/&[^&]+;/.test(l)&&(pf||(pf=document.createElement("textarea")),pf.innerHTML=l,l=pf.value));let c=e;if(s?c=s:t&&(c=QI(t,e,i)),a){const u=vW(c[0],l);if(h.length>0){u.setGeometry(new _s(h));const d=new Ps({geometry:c[0].getGeometry(),image:null,fill:c[0].getFill(),stroke:c[0].getStroke(),text:null});return[u,d].concat(c.slice(1))}return u}return c}}function QI(s,t,e){return Array.isArray(s)?s:typeof s=="string"?QI(e[s],t,e):t}function qm(s){const t=ci(s,!1),e=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t);if(e){const i=e[1];return[parseInt(i.substr(6,2),16),parseInt(i.substr(4,2),16),parseInt(i.substr(2,2),16),parseInt(i.substr(0,2),16)/255]}}function tP(s){let t=ci(s,!1);const e=[];t=t.replace(/\s*,\s*/g,",");const i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;let n;for(;n=i.exec(t);){const r=parseFloat(n[1]),o=parseFloat(n[2]),a=n[3]?parseFloat(n[3]):0;e.push(r,o,a),t=t.substr(n[0].length)}if(t==="")return e}function eP(s){const t=ci(s,!1).trim();let e=s.baseURI;return(!e||e=="about:blank")&&(e=window.location.href),e?new URL(t,e).href:t}function sP(s){const t=ci(s,!1).trim().replace(/^(?!.*#)/,"#");let e=s.baseURI;return(!e||e=="about:blank")&&(e=window.location.href),e?new URL(t,e).href:t}function EW(s){const t=s.getAttribute("xunits"),e=s.getAttribute("yunits");let i;return t!=="insetPixels"?e!=="insetPixels"?i="bottom-left":i="top-left":e!=="insetPixels"?i="bottom-right":i="top-right",{x:parseFloat(s.getAttribute("x")),xunits:b2[t],y:parseFloat(s.getAttribute("y")),yunits:b2[e],origin:i}}function iP(s){return Yt(s)}const SW=B(ft,{Pair:YW});function nP(s,t){return Y(void 0,SW,s,t,this)}const MW=B(ft,{Icon:L($W),color:L(qm),heading:L(Yt),hotSpot:L(EW),scale:L(iP)});function bW(s,t){const e=Y({},MW,s,t);if(!e)return;const i=t[t.length-1],n="Icon"in e?e.Icon:{},r=!("Icon"in e)||Object.keys(n).length>0;let o;const a=n.href;a?o=a:r&&(o=Op);let l,h,c,u="bottom-left";const d=e.hotSpot;d?(l=[d.x,d.y],h=d.xunits,c=d.yunits,u=d.origin):/^https?:\/\/maps\.(?:google|gstatic)\.com\//.test(o)&&(o.includes("pushpin")?(l=Q1,h=Vu,c=Yu):o.includes("arrow-reverse")?(l=[54,42],h=Vu,c=Yu):o.includes("paddle")&&(l=[32,1],h=Vu,c=Yu));let g;const f=n.x,p=n.y;f!==void 0&&p!==void 0&&(g=[f,p]);let m;const _=n.w,y=n.h;_!==void 0&&y!==void 0&&(m=[_,y]);let v;const S=e.heading;S!==void 0&&(v=Xu(S));const w=e.scale,C=e.color;if(r){o==Op&&(m=qu);const M=new Rc({anchor:l,anchorOrigin:u,anchorXUnits:h,anchorYUnits:c,crossOrigin:this.crossOrigin_,offset:g,offsetOrigin:"bottom-left",rotation:v,scale:w,size:m,src:this.iconUrlFunction_(o),color:C}),T=M.getScaleArray()[0],I=M.getSize();if(I===null){const O=M.getImageState();if(O===it.IDLE||O===it.LOADING){const P=function(){const D=M.getImageState();if(!(D===it.IDLE||D===it.LOADING)){const x=M.getSize();if(x&&x.length==2){const E=Fp(x);M.setScale(T*E)}M.unlistenImageChange(P)}};M.listenImageChange(P),O===it.IDLE&&M.load()}}else if(I.length==2){const O=Fp(I);M.setScale(T*O)}i.imageStyle=M}else i.imageStyle=Cv}const CW=B(ft,{color:L(qm),scale:L(iP)});function TW(s,t){const e=Y({},CW,s,t);if(!e)return;const i=t[t.length-1],n=new al({fill:new Wn({color:"color"in e?e.color:Lh}),scale:e.scale});i.textStyle=n}const RW=B(ft,{color:L(qm),width:L(Yt)});function IW(s,t){const e=Y({},RW,s,t);if(!e)return;const i=t[t.length-1],n=new wn({color:"color"in e?e.color:Lh,width:"width"in e?e.width:1});i.strokeStyle=n}const PW=B(ft,{color:L(qm),fill:L(la),outline:L(la)});function AW(s,t){const e=Y({},PW,s,t);if(!e)return;const i=t[t.length-1],n=new Wn({color:"color"in e?e.color:Lh});i.fillStyle=n;const r=e.fill;r!==void 0&&(i.fill=r);const o=e.outline;o!==void 0&&(i.outline=o)}const LW=B(ft,{coordinates:xt(tP)});function rP(s,t){return Y(null,LW,s,t)}function OW(s,t){const e=t[t.length-1].coordinates,i=ci(s,!1),n=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(i);if(n){const r=parseFloat(n[1]),o=parseFloat(n[2]),a=parseFloat(n[3]);e.push([r,o,a])}else e.push([])}const FW=B(mo,{Track:dt(oP)});function NW(s,t){const e=Y([],FW,s,t);if(e)return new Pi(e)}const DW=B(ft,{when:aX},B(mo,{coord:OW}));function oP(s,t){const e=Y({coordinates:[],whens:[]},DW,s,t);if(!e)return;const i=[],n=e.coordinates,r=e.whens;for(let o=0,a=Math.min(n.length,r.length);o0&&t[t.length-1].push(...e)}const nX=B(ft,{LinearRing:xt(rP)});function rX(s,t){const e=Y(void 0,nX,s,t);if(e){const i=t[t.length-1];i[0]=e}}function oX(s,t){Ii(gW,s,t)}function aX(s,t){const e=t[t.length-1].whens,i=ci(s,!1),n=Date.parse(i);e.push(isNaN(n)?0:n)}function Hm(s,t){const e=Bn(t),i=[(e.length==4?e[3]:1)*255,e[2],e[1],e[0]];for(let n=0;n<4;++n){const r=Math.floor(i[n]).toString(16);i[n]=r.length==1?"0"+r:r}Ct(s,i.join(""))}function lX(s,t,e){const i=e[e.length-1],n=i.layout,r=i.stride;let o;if(n=="XY"||n=="XYM")o=2;else if(n=="XYZ"||n=="XYZM")o=3;else throw new Error("Invalid geometry layout");const a=t.length;let l="";if(a>0){l+=t[0];for(let h=1;h0){const g=Ai(n,o);Tt(i,b_,DX,[{names:o,values:g}],e)}const u=e[0];let d=t.getGeometry();d&&(d=De(d,!0,u)),Tt(i,b_,fP,[d],e)}const kX=B(ft,["extrude","tessellate","altitudeMode","coordinates"]),$X=B(ft,{extrude:N(ac),tessellate:N(ac),altitudeMode:N(Ct),coordinates:N(lX)});function Oh(s,t,e){const i=t.getFlatCoordinates(),n={node:s};n.layout=t.getLayout(),n.stride=t.getStride();const r=t.getProperties();r.coordinates=i;const o=e[e.length-1].node,a=kX[o.namespaceURI],l=Ai(r,a);Tt(n,$X,Is,l,e,a)}const GX=B(ft,["color","fill","outline"]),P2=B(ft,{outerBoundaryIs:N(I2),innerBoundaryIs:N(I2)}),jX=Xe("innerBoundaryIs"),zX=Xe("outerBoundaryIs");function _P(s,t,e){const i=t.getLinearRings(),n=i.shift(),r={node:s};Tt(r,P2,jX,i,e),Tt(r,P2,zX,[n],e)}const UX=B(ft,{color:N(Hm),fill:N(ac),outline:N(ac)});function BX(s,t,e){const i={node:s},n=t.getFill(),r=t.getStroke(),o={color:n?n.getColor():void 0,fill:n?void 0:!1,outline:r?void 0:!1},a=e[e.length-1].node,l=GX[a.namespaceURI],h=Ai(o,l);Tt(i,UX,Is,h,e,l)}function yP(s,t){vi(s,Math.round(t*1e6)/1e6)}const WX=B(ft,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),XX=B(ft,{IconStyle:N(wX),LabelStyle:N(MX),LineStyle:N(TX),PolyStyle:N(BX)});function VX(s,t,e){const i={node:s},n={};if(t.pointStyles.length){const l=t.pointStyles[0].getText();l&&(n.LabelStyle=l);const h=t.pointStyles[0].getImage();h&&typeof h.getSrc=="function"&&(n.IconStyle=h)}if(t.lineStyles.length){const l=t.lineStyles[0].getStroke();l&&(n.LineStyle=l)}if(t.polyStyles.length){const l=t.polyStyles[0].getStroke();l&&!n.LineStyle&&(n.LineStyle=l),n.PolyStyle=t.polyStyles[0]}const r=e[e.length-1].node,o=WX[r.namespaceURI],a=Ai(n,o);Tt(i,XX,Is,a,e,o)}function YX(s,t){s.setAttribute("x",String(t.x)),s.setAttribute("y",String(t.y)),s.setAttribute("xunits",t.xunits),s.setAttribute("yunits",t.yunits)}const qX=xW,ny=65536*65536,A2=1/ny,ZX=12,L2=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),C_=0,mf=1,iu=2,_f=5;class HX{constructor(t=new Uint8Array(16)){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(t,e,i=this.length){for(;this.pos>3,o=this.pos;this.type=n&7,t(r,e,this),this.pos===o&&this.skip(n)}return e}readMessage(t,e){return this.readFields(t,e,this.readVarint()+this.pos)}readFixed32(){const t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){const t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){const t=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*ny;return this.pos+=8,t}readSFixed64(){const t=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*ny;return this.pos+=8,t}readFloat(){const t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){const t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){const e=this.buf;let i,n;return n=e[this.pos++],i=n&127,n<128||(n=e[this.pos++],i|=(n&127)<<7,n<128)||(n=e[this.pos++],i|=(n&127)<<14,n<128)||(n=e[this.pos++],i|=(n&127)<<21,n<128)?i:(n=e[this.pos],i|=(n&15)<<28,KX(i,t,this))}readVarint64(){return this.readVarint(!0)}readSVarint(){const t=this.readVarint();return t%2===1?(t+1)/-2:t/2}readBoolean(){return!!this.readVarint()}readString(){const t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=ZX&&L2?L2.decode(this.buf.subarray(e,t)):uV(this.buf,e,t)}readBytes(){const t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e}readPackedVarint(t=[],e){const i=this.readPackedEnd();for(;this.pos127;);else if(e===iu)this.pos=this.readVarint()+this.pos;else if(e===_f)this.pos+=4;else if(e===mf)this.pos+=8;else throw new Error(`Unimplemented type: ${e}`)}writeTag(t,e){this.writeVarint(t<<3|e)}realloc(t){let e=this.length||16;for(;e268435455||t<0){QX(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))}writeSVarint(t){this.writeVarint(t<0?-t*2-1:t*2)}writeBoolean(t){this.writeVarint(+t)}writeString(t){t=String(t),this.realloc(t.length*4),this.pos++;const e=this.pos;this.pos=dV(this.buf,t,this.pos);const i=this.pos-e;i>=128&&O2(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i}writeFloat(t){this.realloc(4),this.dataView.setFloat32(this.pos,t,!0),this.pos+=4}writeDouble(t){this.realloc(8),this.dataView.setFloat64(this.pos,t,!0),this.pos+=8}writeBytes(t){const e=t.length;this.writeVarint(e),this.realloc(e);for(let i=0;i=128&&O2(i,n,this),this.pos=i-1,this.writeVarint(n),this.pos+=n}writeMessage(t,e,i){this.writeTag(t,iu),this.writeRawMessage(e,i)}writePackedVarint(t,e){e.length&&this.writeMessage(t,sV,e)}writePackedSVarint(t,e){e.length&&this.writeMessage(t,iV,e)}writePackedBoolean(t,e){e.length&&this.writeMessage(t,oV,e)}writePackedFloat(t,e){e.length&&this.writeMessage(t,nV,e)}writePackedDouble(t,e){e.length&&this.writeMessage(t,rV,e)}writePackedFixed32(t,e){e.length&&this.writeMessage(t,aV,e)}writePackedSFixed32(t,e){e.length&&this.writeMessage(t,lV,e)}writePackedFixed64(t,e){e.length&&this.writeMessage(t,hV,e)}writePackedSFixed64(t,e){e.length&&this.writeMessage(t,cV,e)}writeBytesField(t,e){this.writeTag(t,iu),this.writeBytes(e)}writeFixed32Field(t,e){this.writeTag(t,_f),this.writeFixed32(e)}writeSFixed32Field(t,e){this.writeTag(t,_f),this.writeSFixed32(e)}writeFixed64Field(t,e){this.writeTag(t,mf),this.writeFixed64(e)}writeSFixed64Field(t,e){this.writeTag(t,mf),this.writeSFixed64(e)}writeVarintField(t,e){this.writeTag(t,C_),this.writeVarint(e)}writeSVarintField(t,e){this.writeTag(t,C_),this.writeSVarint(e)}writeStringField(t,e){this.writeTag(t,iu),this.writeString(e)}writeFloatField(t,e){this.writeTag(t,_f),this.writeFloat(e)}writeDoubleField(t,e){this.writeTag(t,mf),this.writeDouble(e)}writeBooleanField(t,e){this.writeVarintField(t,+e)}}function KX(s,t,e){const i=e.buf;let n,r;if(r=i[e.pos++],n=(r&112)>>4,r<128||(r=i[e.pos++],n|=(r&127)<<3,r<128)||(r=i[e.pos++],n|=(r&127)<<10,r<128)||(r=i[e.pos++],n|=(r&127)<<17,r<128)||(r=i[e.pos++],n|=(r&127)<<24,r<128)||(r=i[e.pos++],n|=(r&1)<<31,r<128))return JX(s,n,t);throw new Error("Expected varint not more than 10 bytes")}function JX(s,t,e){return e?t*4294967296+(s>>>0):(t>>>0)*4294967296+(s>>>0)}function QX(s,t){let e,i;if(s>=0?(e=s%4294967296|0,i=s/4294967296|0):(e=~(-s%4294967296),i=~(-s/4294967296),e^4294967295?e=e+1|0:(e=0,i=i+1|0)),s>=18446744073709552e3||s<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),tV(e,i,t),eV(i,t)}function tV(s,t,e){e.buf[e.pos++]=s&127|128,s>>>=7,e.buf[e.pos++]=s&127|128,s>>>=7,e.buf[e.pos++]=s&127|128,s>>>=7,e.buf[e.pos++]=s&127|128,s>>>=7,e.buf[e.pos]=s&127}function eV(s,t){const e=(s&7)<<4;t.buf[t.pos++]|=e|((s>>>=3)?128:0),s&&(t.buf[t.pos++]=s&127|((s>>>=7)?128:0),s&&(t.buf[t.pos++]=s&127|((s>>>=7)?128:0),s&&(t.buf[t.pos++]=s&127|((s>>>=7)?128:0),s&&(t.buf[t.pos++]=s&127|((s>>>=7)?128:0),s&&(t.buf[t.pos++]=s&127)))))}function O2(s,t,e){const i=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(Math.LN2*7));e.realloc(i);for(let n=e.pos-1;n>=s;n--)e.buf[n+i]=e.buf[n]}function sV(s,t){for(let e=0;e239?4:r>223?3:r>191?2:1;if(n+a>e)break;let l,h,c;a===1?r<128&&(o=r):a===2?(l=s[n+1],(l&192)===128&&(o=(r&31)<<6|l&63,o<=127&&(o=null))):a===3?(l=s[n+1],h=s[n+2],(l&192)===128&&(h&192)===128&&(o=(r&15)<<12|(l&63)<<6|h&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):a===4&&(l=s[n+1],h=s[n+2],c=s[n+3],(l&192)===128&&(h&192)===128&&(c&192)===128&&(o=(r&15)<<18|(l&63)<<12|(h&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,a=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=a}return i}function dV(s,t,e){for(let i=0,n,r;i55295&&n<57344)if(r)if(n<56320){s[e++]=239,s[e++]=191,s[e++]=189,r=n;continue}else n=r-55296<<10|n-56320|65536,r=null;else{n>56319||i+1===t.length?(s[e++]=239,s[e++]=191,s[e++]=189):r=n;continue}else r&&(s[e++]=239,s[e++]=191,s[e++]=189,r=null);n<128?s[e++]=n:(n<2048?s[e++]=n>>6|192:(n<65536?s[e++]=n>>12|224:(s[e++]=n>>18|240,s[e++]=n>>12&63|128),s[e++]=n>>6&63|128),s[e++]=n&63|128)}return e}class gV extends Sg{constructor(t){super(),t=t||{},this.dataProjection=new rc({code:"",units:"tile-pixels"}),this.featureClass=t.featureClass?t.featureClass:si,this.geometryName_=t.geometryName,this.layerName_=t.layerName?t.layerName:"layer",this.layers_=t.layers?t.layers:null,this.idProperty_=t.idProperty,this.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"]}readRawGeometry_(t,e,i,n){t.pos=e.geometry;const r=t.readVarint()+t.pos;let o=1,a=0,l=0,h=0,c=0,u=0;for(;t.pos>3}if(a--,o===1||o===2)l+=t.readSVarint(),h+=t.readSVarint(),o===1&&c>u&&(n.push(c),u=c),i.push(l,h),c+=2;else if(o===7)c>u&&(i.push(i[u],i[u+1]),c+=2);else throw new Error("Invalid command found in the PBF")}c>u&&(n.push(c),u=c)}createFeature_(t,e,i){const n=e.type;if(n===0)return null;let r;const o=e.properties;let a;this.idProperty_?(a=o[this.idProperty_],delete o[this.idProperty_]):a=e.id,o[this.layerName_]=e.layer.name;const l=[],h=[];this.readRawGeometry_(t,e,l,h);const c=yV(n,h.length);if(this.featureClass===si)r=new this.featureClass(c,l,h,2,o,a),r.transform(i.dataProjection);else{let u;if(c=="Polygon"){const f=OI(l,h);u=f.length>1?new vn(l,"XY",f):new Hs(l,"XY",h)}else u=c==="Point"?new Cs(l,"XY"):c==="LineString"?new ls(l,"XY"):c==="MultiPoint"?new Zn(l,"XY"):c==="MultiLineString"?new Pi(l,"XY",h):null;const d=this.featureClass;r=new d,this.geometryName_&&r.setGeometryName(this.geometryName_);const g=De(u,!1,i);r.setGeometry(g),a!==void 0&&r.setId(a),r.setProperties(o,!0)}return r}getType(){return"arraybuffer"}readFeatures(t,e){const i=this.layers_;e=this.adaptOptions(e);const n=st(e.dataProjection);n.setWorldExtent(e.extent),e.dataProjection=n;const r=new HX(t),o=r.readFields(fV,{}),a=[];for(const l in o){if(i&&!i.includes(l))continue;const h=o[l],c=h?[0,0,h.extent,h.extent]:null;n.setExtent(c);for(let u=0,d=h.length;u>3,i=s===1?e.readString():s===2?e.readFloat():s===3?e.readDouble():s===4?e.readVarint64():s===5?e.readVarint():s===6?e.readSVarint():s===7?e.readBoolean():null;t.values.push(i)}}function mV(s,t,e){if(s==1)t.id=e.readVarint();else if(s==2){const i=e.readVarint()+e.pos;for(;e.pos>1):n>>1}return t}function sY(s){let t="";for(let e=0,i=s.length;e=32;)t=(32|s&31)+63,e+=String.fromCharCode(t),s>>=5;return t=s+63,e+=String.fromCharCode(t),e}const rY=ZV;class oY extends gv{constructor(t){super(),t=t||{},this.layerName_=t.layerName,this.layers_=t.layers?t.layers:null,this.dataProjection=st(t.dataProjection?t.dataProjection:"EPSG:4326")}readFeaturesFromObject(t,e){if(t.type=="Topology"){const i=t;let n,r=null,o=null;i.transform&&(n=i.transform,r=n.scale,o=n.translate);const a=i.arcs;n&&pY(a,r,o);const l=[],h=i.objects,c=this.layerName_;let u;for(const d in h)this.layers_&&!this.layers_.includes(d)||(h[d].type==="GeometryCollection"?(u=h[d],l.push.apply(l,fY(u,a,r,o,c,d,e))):(u=h[d],l.push(wP(u,a,r,o,c,d,e))));return l}return[]}readProjectionFromObject(t){return this.dataProjection}}const aY={Point:lY,LineString:cY,Polygon:dY,MultiPoint:hY,MultiLineString:uY,MultiPolygon:gY};function Km(s,t){const e=[];let i;for(let n=0,r=s.length;n0&&e.pop(),i>=0){const o=t[i];for(let a=0,l=o.length;a=0;--a)e.push(o[a].slice(0))}return e}function lY(s,t,e){const i=s.coordinates;return t&&e&&Pv(i,t,e),new Cs(i)}function hY(s,t,e){const i=s.coordinates;if(t&&e)for(let n=0,r=i.length;n=2,"At least 2 conditions are required")}}class xY extends yY{constructor(t){super("And",Array.prototype.slice.call(arguments))}}class vY extends EP{constructor(t,e,i){if(super("BBOX"),this.geometryName=t,this.extent=e,e.length!==4)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");this.srsName=i}}function wY(s){const t=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(xY,t))}function EY(s,t,e){return new vY(s,t,e)}const N2={"http://www.opengis.net/gml":{boundedBy:L(ut.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:dt(ut.prototype.readFeaturesInternal)}},SY={"http://www.opengis.net/wfs":{totalInserted:L(qe),totalUpdated:L(qe),totalDeleted:L(qe)},"http://www.opengis.net/wfs/2.0":{totalInserted:L(qe),totalUpdated:L(qe),totalDeleted:L(qe)}},MY={"http://www.opengis.net/wfs":{TransactionSummary:L(k2,"transactionSummary"),InsertResults:L(G2,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:L(k2,"transactionSummary"),InsertResults:L(G2,"insertIds")}},bY={"http://www.opengis.net/wfs":{PropertyName:N(Ct)},"http://www.opengis.net/wfs/2.0":{PropertyName:N(Ct)}},SP={"http://www.opengis.net/wfs":{Insert:N(j2),Update:N(U2),Delete:N(z2),Property:N(B2),Native:N(W2)},"http://www.opengis.net/wfs/2.0":{Insert:N(j2),Update:N(U2),Delete:N(z2),Property:N(B2),Native:N(W2)}},MP="feature",Av="http://www.w3.org/2000/xmlns/",Lv={"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"},ry={"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"},Ov={"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"},D2={"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"},Fv={"2.0.0":ne,"1.1.0":Z,"1.0.0":Vt},CY="1.1.0";class TY extends bg{constructor(t){super(),t=t||{},this.version_=t.version?t.version:CY,this.featureType_=t.featureType,this.featureNS_=t.featureNS,this.gmlFormat_=t.gmlFormat?t.gmlFormat:new Fv[this.version_],this.schemaLocation_=t.schemaLocation?t.schemaLocation:D2[this.version_]}getFeatureType(){return this.featureType_}setFeatureType(t){this.featureType_=t}readFeaturesFromNode(t,e){const i={node:t};Object.assign(i,{featureType:this.featureType_,featureNS:this.featureNS_}),Object.assign(i,this.getReadOptions(t,e||{}));const n=[i];let r;this.version_==="2.0.0"?r=N2:r=this.gmlFormat_.FEATURE_COLLECTION_PARSERS;let o=Y([],r,t,n,this.gmlFormat_);return o||(o=[]),o}readTransactionResponse(t){if(t){if(typeof t=="string"){const e=dn(t);return this.readTransactionResponseFromDocument(e)}return un(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t)}}readFeatureCollectionMetadata(t){if(t){if(typeof t=="string"){const e=dn(t);return this.readFeatureCollectionMetadataFromDocument(e)}return un(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t)}}readFeatureCollectionMetadataFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(e)}readFeatureCollectionMetadataFromNode(t){const e={},i=zr(t.getAttribute("numberOfFeatures"));return e.numberOfFeatures=i,Y(e,N2,t,[],this.gmlFormat_)}readTransactionResponseFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(e)}readTransactionResponseFromNode(t){return Y({},MY,t,[])}writeGetFeature(t){const e=It(ry[this.version_],"GetFeature");e.setAttribute("service","WFS"),e.setAttribute("version",this.version_),t.handle&&e.setAttribute("handle",t.handle),t.outputFormat&&e.setAttribute("outputFormat",t.outputFormat),t.maxFeatures!==void 0&&e.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&e.setAttribute("resultType",t.resultType),t.startIndex!==void 0&&e.setAttribute("startIndex",String(t.startIndex)),t.count!==void 0&&e.setAttribute("count",String(t.count)),t.viewParams!==void 0&&e.setAttribute("viewParams",t.viewParams),e.setAttributeNS(nl,"xsi:schemaLocation",this.schemaLocation_);const i={node:e};if(Object.assign(i,{version:this.version_,srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,propertyNames:t.propertyNames?t.propertyNames:[]}),qt(Array.isArray(t.featureTypes),"`options.featureTypes` must be an Array"),typeof t.featureTypes[0]=="string"){let n=t.filter;t.bbox&&(qt(t.geometryName,"`options.geometryName` must also be provided when `options.bbox` is set"),n=this.combineBboxAndFilter(t.geometryName,t.bbox,t.srsName,n)),Object.assign(i,{geometryName:t.geometryName,filter:n}),tM(e,t.featureTypes,[i])}else t.featureTypes.forEach(n=>{const r=this.combineBboxAndFilter(n.geometryName,n.bbox,t.srsName,t.filter);Object.assign(i,{geometryName:n.geometryName,filter:r}),tM(e,[n.name],[i])});return e}combineBboxAndFilter(t,e,i,n){const r=EY(t,e,i);return n?wY(n,r):r}writeTransaction(t,e,i,n){const r=[],o=n.version?n.version:this.version_,a=It(ry[o],"Transaction");a.setAttribute("service","WFS"),a.setAttribute("version",o);let l;n&&(l=n.gmlOptions?n.gmlOptions:{},n.handle&&a.setAttribute("handle",n.handle)),a.setAttributeNS(nl,"xsi:schemaLocation",D2[o]);const h=RY(a,l,o,n);return t&&yf("Insert",t,r,h),e&&yf("Update",e,r,h),i&&yf("Delete",i,r,h),n.nativeElements&&yf("Native",n.nativeElements,r,h),a}readProjectionFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(e);return null}readProjectionFromNode(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild){t=t.firstElementChild.firstElementChild;for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(!(e.childNodes.length===0||e.childNodes.length===1&&e.firstChild.nodeType===3)){const i=[{}];return this.gmlFormat_.readGeometryElement(e,i),st(i.pop().srsName)}}return null}}function RY(s,t,e,i){const n=i.featurePrefix?i.featurePrefix:MP;let r;return e==="1.0.0"?r=2:e==="1.1.0"?r=3:e==="2.0.0"&&(r=3.2),Object.assign({node:s},{version:e,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:n,gmlVersion:r,hasZ:i.hasZ,srsName:i.srsName},t)}function yf(s,t,e,i){Tt(i,SP,Xe(s),t,e)}function k2(s,t){return Y({},SY,s,t)}const IY={"http://www.opengis.net/ogc":{FeatureId:dt(function(s,t){return s.getAttribute("fid")})},"http://www.opengis.net/ogc/1.1":{FeatureId:dt(function(s,t){return s.getAttribute("fid")})}};function $2(s,t){Ii(IY,s,t)}const PY={"http://www.opengis.net/wfs":{Feature:$2},"http://www.opengis.net/wfs/2.0":{Feature:$2}};function G2(s,t){return Y([],PY,s,t)}function j2(s,t,e){const i=e[e.length-1],n=i.featureType,r=i.featureNS,o=i.gmlVersion,a=It(r,n);s.appendChild(a),o===2?Vt.prototype.writeFeatureElement(a,t,e):o===3?Z.prototype.writeFeatureElement(a,t,e):ne.prototype.writeFeatureElement(a,t,e)}function bP(s,t,e){const i=e[e.length-1].version,n=Lv[i],r=It(n,"Filter"),o=It(n,"FeatureId");r.appendChild(o),o.setAttribute("fid",t),s.appendChild(r)}function Nv(s,t){s=s||MP;const e=s+":";return t.startsWith(e)?t:e+t}function z2(s,t,e){const i=e[e.length-1];qt(t.getId()!==void 0,"Features must have an id set");const n=i.featureType,r=i.featurePrefix,o=i.featureNS,a=Nv(r,n);s.setAttribute("typeName",a),s.setAttributeNS(Av,"xmlns:"+r,o);const l=t.getId();l!==void 0&&bP(s,l,e)}function U2(s,t,e){const i=e[e.length-1];qt(t.getId()!==void 0,"Features must have an id set");const n=i.version,r=i.featureType,o=i.featurePrefix,a=i.featureNS,l=Nv(o,r),h=t.getGeometryName();s.setAttribute("typeName",l),s.setAttributeNS(Av,"xmlns:"+o,a);const c=t.getId();if(c!==void 0){const u=t.getKeys(),d=[];for(let g=0,f=u.length;g0,i=this.readUint32(e),n=Math.floor((i&268435455)/1e3),r=!!(i&2147483648)||n===1||n===3,o=!!(i&1073741824)||n===2||n===3,a=!!(i&536870912),l=(i&268435455)%1e3,h=["XY",r?"Z":"",o?"M":""].join(""),c=a?this.readUint32(e):null;if(t!==void 0&&t!==l)throw new Error("Unexpected WKB geometry type "+l);if(this.initialized_){if(this.isLittleEndian_!==e)throw new Error("Inconsistent endian");if(this.layout_!==h)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=e,this.hasZ_=r,this.hasM_=o,this.layout_=h,this.srid_=c,this.initialized_=!0;return l}readWkbPayload(t){switch(t){case pe.POINT:return this.readPoint();case pe.LINE_STRING:return this.readLineString();case pe.POLYGON:case pe.TRIANGLE:return this.readPolygon();case pe.MULTI_POINT:return this.readMultiPoint();case pe.MULTI_LINE_STRING:return this.readMultiLineString();case pe.MULTI_POLYGON:case pe.POLYHEDRAL_SURFACE:case pe.TIN:return this.readMultiPolygon();case pe.GEOMETRY_COLLECTION:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+t+" is found")}}readWkbBlock(t){return this.readWkbPayload(this.readWkbHeader(t))}readWkbCollection(t,e){const i=this.readUint32(),n=[];for(let r=0;r({[n]:t[r]})));for(const n of this.layout_)this.writeDouble(n in i?i[n]:this.nodata_[n])}writeLineString(t,e){this.writeUint32(t.length);for(let i=0;in===r?n:n==="XYZM"?r:r==="XYZM"?n:"XY";if(t instanceof io)return i(t.getLayout(),e);if(t instanceof _s){const n=t.getGeometriesArray();for(let r=0;rr+o[0],0),e=new ArrayBuffer(t),i=new DataView(e);let n=0;return this.writeQueue_.forEach(r=>{switch(r[0]){case 1:i.setUint8(n,r[1]);break;case 4:i.setUint32(n,r[1],this.isLittleEndian_);break;case 8:i.setFloat64(n,r[1],this.isLittleEndian_);break}n+=r[0]}),e}}class NY extends Sg{constructor(t){super(),t=t||{},this.splitCollection=!!t.splitCollection,this.viewCache_=null,this.hex_=t.hex!==!1,this.littleEndian_=t.littleEndian!==!1,this.ewkb_=t.ewkb!==!1,this.layout_=t.geometryLayout,this.nodataZ_=t.nodataZ||0,this.nodataM_=t.nodataM||0,this.srid_=t.srid}getType(){return this.hex_?"text":"arraybuffer"}readFeature(t,e){return new ys({geometry:this.readGeometry(t,e)})}readFeatures(t,e){let i=[];const n=this.readGeometry(t,e);return this.splitCollection&&n instanceof _s?i=n.getGeometriesArray():i=[n],i.map(r=>new ys({geometry:r}))}readGeometry(t,e){const i=sM(t);if(!i)return null;const n=new eM(i).readGeometry();return this.viewCache_=i,e=this.getReadOptions(t,e),this.viewCache_=null,De(n,!1,e)}readProjection(t){const e=this.viewCache_||sM(t);if(!e)return;const i=new eM(e);return i.readWkbHeader(),i.getSrid()&&st("EPSG:"+i.getSrid())||void 0}writeFeature(t,e){return this.writeGeometry(t.getGeometry(),e)}writeFeatures(t,e){return this.writeGeometry(new _s(t.map(i=>i.getGeometry())),e)}writeGeometry(t,e){e=this.adaptOptions(e);const i=new FY({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}});let n=Number.isInteger(this.srid_)?Number(this.srid_):null;if(this.srid_!==!1&&!Number.isInteger(this.srid_)){const o=e.dataProjection&&st(e.dataProjection);if(o){const a=o.getCode();a.startsWith("EPSG:")&&(n=Number(a.substring(5)))}}i.writeGeometry(De(t,!0,e),n);const r=i.getBuffer();return this.hex_?DY(r):r}}function DY(s){const t=new Uint8Array(s);return Array.from(t.values()).map(e=>(e<16?"0":"")+Number(e).toString(16).toUpperCase()).join("")}function kY(s){const t=new Uint8Array(s.length/2);for(let e=0;e="a"&&t<="z"||t>="A"&&t<="Z"}isNumeric_(t,e){return e=e!==void 0?e:!1,t>="0"&&t<="9"||t=="."&&!e}isWhiteSpace_(t){return t==" "||t==" "||t=="\r"||t==` -`}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const t=this.nextChar_(),e=this.index_;let i=t,n;if(t=="(")n=ce.LEFT_PAREN;else if(t==",")n=ce.COMMA;else if(t==")")n=ce.RIGHT_PAREN;else if(this.isNumeric_(t)||t=="-")n=ce.NUMBER,i=this.readNumber_();else if(this.isAlpha_(t))n=ce.TEXT,i=this.readText_();else{if(this.isWhiteSpace_(t))return this.nextToken();if(t==="")n=ce.EOF;else throw new Error("Unexpected character: "+t)}return{position:e,value:i,type:n}}readNumber_(){let t;const e=this.index_;let i=!1,n=!1;do t=="."?i=!0:(t=="e"||t=="E")&&(n=!0),t=this.nextChar_();while(this.isNumeric_(t,i)||!n&&(t=="e"||t=="E")||n&&(t=="-"||t=="+"));return parseFloat(this.wkt.substring(e,this.index_--))}readText_(){let t;const e=this.index_;do t=this.nextChar_();while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()}}let BY=class{constructor(s){this.lexer_=s,this.token_={position:0,type:ce.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(s){return this.token_.type==s}match(s){const t=this.isTokenType(s);return t&&this.consume_(),t}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let s="XY";const t=this.token_;if(this.isTokenType(ce.TEXT)){const e=t.value;e===TP?s="XYZ":e===RP?s="XYM":e===jY&&(s="XYZM"),s!=="XY"&&this.consume_()}return s}parseGeometryCollectionText_(){if(this.match(ce.LEFT_PAREN)){const s=[];do s.push(this.parseGeometry_());while(this.match(ce.COMMA));if(this.match(ce.RIGHT_PAREN))return s}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(ce.LEFT_PAREN)){const s=this.parsePoint_();if(this.match(ce.RIGHT_PAREN))return s}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(ce.LEFT_PAREN)){const s=this.parsePointList_();if(this.match(ce.RIGHT_PAREN))return s}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(ce.LEFT_PAREN)){const s=this.parseLineStringTextList_();if(this.match(ce.RIGHT_PAREN))return s}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(ce.LEFT_PAREN)){let s;if(this.token_.type==ce.LEFT_PAREN?s=this.parsePointTextList_():s=this.parsePointList_(),this.match(ce.RIGHT_PAREN))return s}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(ce.LEFT_PAREN)){const s=this.parseLineStringTextList_();if(this.match(ce.RIGHT_PAREN))return s}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(ce.LEFT_PAREN)){const s=this.parsePolygonTextList_();if(this.match(ce.RIGHT_PAREN))return s}throw new Error(this.formatErrorMessage_())}parsePoint_(){const s=[],t=this.layout_.length;for(let e=0;e0&&(n+=" "+r)}return i.length===0?n+" "+CP:n+"("+i+")"}const KY=WY,$s=[null,"http://www.opengis.net/wms"],JY=B($s,{Service:L(xq),Capability:L(yq)}),QY=B($s,{Request:L(Cq),Exception:L(Sq),Layer:L(Mq)});class tq extends Iv{constructor(){super(),this.version=void 0}readFromNode(t){return this.version=t.getAttribute("version").trim(),Y({version:this.version},JY,t,[])||null}}const eq=B($s,{Name:L(q),Title:L(q),Abstract:L(q),KeywordList:L(NP),OnlineResource:L(Ic),ContactInformation:L(vq),Fees:L(q),AccessConstraints:L(q),LayerLimit:L(qe),MaxWidth:L(qe),MaxHeight:L(qe)}),sq=B($s,{ContactPersonPrimary:L(wq),ContactPosition:L(q),ContactAddress:L(Eq),ContactVoiceTelephone:L(q),ContactFacsimileTelephone:L(q),ContactElectronicMailAddress:L(q)}),iq=B($s,{ContactPerson:L(q),ContactOrganization:L(q)}),nq=B($s,{AddressType:L(q),Address:L(q),City:L(q),StateOrProvince:L(q),PostCode:L(q),Country:L(q)}),rq=B($s,{Format:dt(q)}),LP=B($s,{Name:L(q),Title:L(q),Abstract:L(q),KeywordList:L(NP),CRS:Me(q),EX_GeographicBoundingBox:L(_q),BoundingBox:Me(mq),Dimension:Me(bq),Attribution:L(pq),AuthorityURL:Me(Iq),Identifier:Me(q),MetadataURL:Me(Pq),DataURL:Me(no),FeatureListURL:Me(no),Style:Me(Aq),MinScaleDenominator:L(Yt),MaxScaleDenominator:L(Yt),Layer:Me(OP)}),oq=B($s,{Title:L(q),OnlineResource:L(Ic),LogoURL:L(FP)}),aq=B($s,{westBoundLongitude:L(Yt),eastBoundLongitude:L(Yt),southBoundLatitude:L(Yt),northBoundLatitude:L(Yt)}),lq=B($s,{GetCapabilities:L(T_),GetMap:L(T_),GetFeatureInfo:L(T_)}),hq=B($s,{Format:Me(q),DCPType:Me(Tq)}),cq=B($s,{HTTP:L(Rq)}),uq=B($s,{Get:L(no),Post:L(no)}),dq=B($s,{Name:L(q),Title:L(q),Abstract:L(q),LegendURL:Me(FP),StyleSheetURL:L(no),StyleURL:L(no)}),gq=B($s,{Format:L(q),OnlineResource:L(Ic)}),fq=B($s,{Keyword:dt(q)});function pq(s,t){return Y({},oq,s,t)}function mq(s,t){const e=[Dr(s.getAttribute("minx")),Dr(s.getAttribute("miny")),Dr(s.getAttribute("maxx")),Dr(s.getAttribute("maxy"))],i=[Dr(s.getAttribute("resx")),Dr(s.getAttribute("resy"))];return{crs:s.getAttribute("CRS"),extent:e,res:i}}function _q(s,t){const e=Y({},aq,s,t);if(!e)return;const i=e.westBoundLongitude,n=e.southBoundLatitude,r=e.eastBoundLongitude,o=e.northBoundLatitude;if(!(i===void 0||n===void 0||r===void 0||o===void 0))return[i,n,r,o]}function yq(s,t){return Y({},QY,s,t)}function xq(s,t){return Y({},eq,s,t)}function vq(s,t){return Y({},sq,s,t)}function wq(s,t){return Y({},iq,s,t)}function Eq(s,t){return Y({},nq,s,t)}function Sq(s,t){return Y([],rq,s,t)}function Mq(s,t){const e=Y({},LP,s,t);return e.Layer===void 0?Object.assign(e,OP(s,t)):e}function OP(s,t){const e=t[t.length-1],i=Y({},LP,s,t);if(!i)return;let n=Va(s.getAttribute("queryable"));n===void 0&&(n=e.queryable),i.queryable=n!==void 0?n:!1;let r=zr(s.getAttribute("cascaded"));r===void 0&&(r=e.cascaded),i.cascaded=r;let o=Va(s.getAttribute("opaque"));o===void 0&&(o=e.opaque),i.opaque=o!==void 0?o:!1;let a=Va(s.getAttribute("noSubsets"));a===void 0&&(a=e.noSubsets),i.noSubsets=a!==void 0?a:!1;let l=Dr(s.getAttribute("fixedWidth"));l||(l=e.fixedWidth),i.fixedWidth=l;let h=Dr(s.getAttribute("fixedHeight"));return h||(h=e.fixedHeight),i.fixedHeight=h,["Style","CRS","AuthorityURL"].forEach(function(c){if(c in e){const u=i[c]||[];i[c]=u.concat(e[c])}}),["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"].forEach(function(c){if(!(c in i)){const u=e[c];i[c]=u}}),i}function bq(s,t){return{name:s.getAttribute("name"),units:s.getAttribute("units"),unitSymbol:s.getAttribute("unitSymbol"),default:s.getAttribute("default"),multipleValues:Va(s.getAttribute("multipleValues")),nearestValue:Va(s.getAttribute("nearestValue")),current:Va(s.getAttribute("current")),values:q(s)}}function no(s,t){return Y({},gq,s,t)}function Cq(s,t){return Y({},lq,s,t)}function Tq(s,t){return Y({},cq,s,t)}function Rq(s,t){return Y({},uq,s,t)}function T_(s,t){return Y({},hq,s,t)}function FP(s,t){const e=no(s,t);if(e){const i=[zr(s.getAttribute("width")),zr(s.getAttribute("height"))];return e.size=i,e}}function Iq(s,t){const e=no(s,t);if(e)return e.name=s.getAttribute("name"),e}function Pq(s,t){const e=no(s,t);if(e)return e.type=s.getAttribute("type"),e}function Aq(s,t){return Y({},dq,s,t)}function NP(s,t){return Y([],fq,s,t)}const Lq=tq,Oq="_feature",Fq="_layer";class Nq extends bg{constructor(t){super(),t=t||{},this.featureNS_="http://mapserver.gis.umn.edu/mapserver",this.gmlFormat_=new Vt,this.layers_=t.layers?t.layers:null}getLayers(){return this.layers_}setLayers(t){this.layers_=t}readFeatures_(t,e){t.setAttribute("namespaceURI",this.featureNS_);const i=t.localName;let n=[];if(t.childNodes.length===0)return n;if(i=="msGMLOutput")for(let r=0,o=t.childNodes.length;r0;)this.pop()}extend(s){for(let t=0,e=s.length;tthis.getLength())throw new Error("Index out of bounds: "+s);this.unique_&&this.assertUnique_(t),this.array_.splice(s,0,t),this.updateLength_(),this.dispatchEvent(new vf(Yo.ADD,t,s))}pop(){return this.removeAt(this.getLength()-1)}push(s){this.unique_&&this.assertUnique_(s);const t=this.getLength();return this.insertAt(t,s),this.getLength()}remove(s){const t=this.array_;for(let e=0,i=t.length;e=this.getLength())return;const t=this.array_[s];return this.array_.splice(s,1),this.updateLength_(),this.dispatchEvent(new vf(Yo.REMOVE,t,s)),t}setAt(s,t){const e=this.getLength();if(s>=e){this.insertAt(s,t);return}if(s<0)throw new Error("Index out of bounds: "+s);this.unique_&&this.assertUnique_(t,s);const i=this.array_[s];this.array_[s]=t,this.dispatchEvent(new vf(Yo.REMOVE,i,s)),this.dispatchEvent(new vf(Yo.ADD,t,s))}updateLength_(){this.set(iM.LENGTH,this.array_.length)}assertUnique_(s,t){for(let e=0,i=this.array_.length;eg&&(d=(g+d)/2,g=d),f>p&&(f=(p+f)/2,p=f);let m=Dt(i[0],d,g),_=Dt(i[1],f,p);if(o&&e&&n){const y=30*n;m+=-y*Math.log(1+Math.max(0,d-i[0])/y)+y*Math.log(1+Math.max(0,i[0]-g)/y),_+=-y*Math.log(1+Math.max(0,f-i[1])/y)+y*Math.log(1+Math.max(0,i[1]-p)/y)}return[m,_]}}function aZ(s){return s}function $v(s,t,e,i){const n=Rt(t)/e[0],r=Ee(t)/e[1];return i?Math.min(s,Math.max(n,r)):Math.min(s,Math.min(n,r))}function Gv(s,t,e){let i=Math.min(s,t);const n=50;return i*=Math.log(1+n*Math.max(0,s/t-1))/n+1,e&&(i=Math.max(i,e),i/=Math.log(1+n*Math.max(0,e/s-1))/n+1),Dt(i,e/2,t*2)}function lZ(s,t,e,i){return t=t!==void 0?t:!0,function(n,r,o,a){if(n!==void 0){const l=s[0],h=s[s.length-1],c=e?$v(l,e,o,i):l;if(a)return t?Gv(n,c,h):Dt(n,h,c);const u=Math.min(c,n),d=Math.floor(Om(s,u,r));return s[d]>c&&d1&&typeof arguments[e-1]=="function"&&(i=arguments[e-1],--e);let n=0;for(;n0}getInteracting(){return this.hints_[Ie.INTERACTING]>0}cancelAnimations(){this.setHint(Ie.ANIMATING,-this.hints_[Ie.ANIMATING]);let t;for(let e=0,i=this.animations_.length;e=0;--i){const n=this.animations_[i];let r=!0;for(let o=0,a=n.length;o0?h/l.duration:1;c>=1?(l.complete=!0,c=1):r=!1;const u=l.easing(c);if(l.sourceCenter){const d=l.sourceCenter[0],g=l.sourceCenter[1],f=l.targetCenter[0],p=l.targetCenter[1];this.nextCenter_=l.targetCenter;const m=d+u*(f-d),_=g+u*(p-g);this.targetCenter_=[m,_]}if(l.sourceResolution&&l.targetResolution){const d=u===1?l.targetResolution:l.sourceResolution+u*(l.targetResolution-l.sourceResolution);if(l.anchor){const g=this.getViewportSize_(this.getRotation()),f=this.constraints_.resolution(d,0,g,!0);this.targetCenter_=this.calculateCenterZoom(f,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){const d=u===1?kn(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+u*(l.targetRotation-l.sourceRotation);if(l.anchor){const g=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(g,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),e=!0,!l.complete)break}if(r){this.animations_[i]=null,this.setHint(Ie.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const o=n[0].callback;o&&wf(o,!0)}}this.animations_=this.animations_.filter(Boolean),e&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i;const n=this.getCenterInternal();return n!==void 0&&(i=[n[0]-e[0],n[1]-e[1]],S9(i,t-this.getRotation()),mI(i,e)),i}calculateCenterZoom(t,e){let i;const n=this.getCenterInternal(),r=this.getResolution();if(n!==void 0&&r!==void 0){const o=e[0]-t*(e[0]-n[0])/r,a=e[1]-t*(e[1]-n[1])/r;i=[o,a]}return i}getViewportSize_(t){const e=this.viewportSize_;if(t){const i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t&&X1(t,this.getProjection())}getCenterInternal(){return this.get(Rn.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return km(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();qt(e,"The view center is not defined");const i=this.getResolution();qt(i!==void 0,"The view resolution is not defined");const n=this.getRotation();return qt(n!==void 0,"The view rotation is not defined"),qx(e,i,n,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(Rn.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(cn(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=Rt(t)/e[0],n=Ee(t)/e[1];return Math.max(i,n)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,n=Math.log(e/i)/Math.log(t);return function(r){return e/Math.pow(t,r*n)}}getRotation(){return this.get(Rn.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(i/n)/e;return function(o){return Math.log(i/o)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let n=this.getCenterInternal();const r=this.padding_;if(r){const o=this.getViewportSizeMinusPadding_();n=I_(n,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],e,i)}return{center:n.slice(0),projection:t!==void 0?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return e!==void 0&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e=this.minZoom_||0,i,n;if(this.resolutions_){const r=Om(this.resolutions_,t,1);e=r,i=this.resolutions_[r],r==this.resolutions_.length-1?n=2:n=i/this.resolutions_[r+1]}else i=this.maxResolution_,n=this.zoomFactor_;return e+Math.log(i/t)/Math.log(n)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=Dt(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,Dt(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if(qt(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){qt(!po(t),"Cannot fit empty extent provided as `geometry`");const n=cn(t,this.getProjection());i=g2(n)}else if(t.getType()==="Circle"){const n=cn(t.getExtent(),this.getProjection());i=g2(n),i.rotate(this.getRotation(),Rs(n))}else i=t;this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride();let a=1/0,l=1/0,h=-1/0,c=-1/0;for(let u=0,d=r.length;u{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)}isVisible(t){let e;const i=this.getMapInternal();!t&&i&&(t=i.getView()),t instanceof aM?e={viewState:t.getState(),extent:t.calculateExtent()}:e=t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray());let n;e.layerStatesArray?n=e.layerStatesArray.find(o=>o.layer===this):n=this.getLayerState();const r=this.getExtent();return vZ(n,e.viewState)&&(!r||Ce(r,e.extent))}getAttributions(t){var e;if(!this.isVisible(t))return[];const i=(e=this.getSource())==null?void 0:e.getAttributions();if(!i)return[];const n=t instanceof aM?t.getViewStateAndExtent():t;let r=i(n);return Array.isArray(r)||(r=[r]),r}render(t,e){const i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(ue.MAP,t)}getMapInternal(){return this.get(ue.MAP)}setMap(t){this.mapPrecomposeKey_&&(ms(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(ms(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=We(t,Mi.PRECOMPOSE,e=>{const i=e.frameState.layerStatesArray,n=this.getLayerState(!1);qt(!i.some(function(r){return r.layer===n.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),i.push(n)}),this.mapRenderKey_=We(this,Zt.CHANGE,t.render,t),this.changed())}setSource(t){this.set(ue.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function vZ(s,t){if(!s.visible)return!1;const e=t.resolution;if(e=s.maxResolution)return!1;const i=t.zoom;return i>s.minZoom&&i<=s.maxZoom}const Tg=xZ;function wZ(s,t,e,i,n){zP(s,t,e||0,i||s.length-1,n||EZ)}function zP(s,t,e,i,n){for(;i>e;){if(i-e>600){var r=i-e+1,o=t-e+1,a=Math.log(r),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(r-l)/r)*(o-r/2<0?-1:1),c=Math.max(e,Math.floor(t-o*l/r+h)),u=Math.min(i,Math.floor(t+(r-o)*l/r+h));zP(s,t,c,u,n)}var d=s[t],g=e,f=i;for(nu(s,e,t),n(s[i],d)>0&&nu(s,e,i);g0;)f--}n(s[e],d)===0?nu(s,e,f):(f++,nu(s,f,i)),f<=t&&(e=f+1),t<=f&&(i=f-1)}}function nu(s,t,e){var i=s[t];s[t]=s[e],s[e]=i}function EZ(s,t){return st?1:0}let jv=class{constructor(s=9){this._maxEntries=Math.max(4,s),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(s){let t=this.data;const e=[];if(!Sf(s,t))return e;const i=this.toBBox,n=[];for(;t;){for(let r=0;r=0&&n[t].children.length>this._maxEntries;)this._split(n,t),t--;this._adjustParentBBoxes(i,n,t)}_split(s,t){const e=s[t],i=e.children.length,n=this._minEntries;this._chooseSplitAxis(e,n,i);const r=this._chooseSplitIndex(e,n,i),o=Kl(e.children.splice(r,e.children.length-r));o.height=e.height,o.leaf=e.leaf,Nl(e,this.toBBox),Nl(o,this.toBBox),t?s[t-1].children.push(o):this._splitRoot(e,o)}_splitRoot(s,t){this.data=Kl([s,t]),this.data.height=s.height+1,this.data.leaf=!1,Nl(this.data,this.toBBox)}_chooseSplitIndex(s,t,e){let i,n=1/0,r=1/0;for(let o=t;o<=e-t;o++){const a=vu(s,0,o,this.toBBox),l=vu(s,o,e,this.toBBox),h=TZ(a,l),c=P_(a)+P_(l);h=t;l--){const h=s.children[l];wu(o,s.leaf?n(h):h),a+=Ef(o)}return a}_adjustParentBBoxes(s,t,e){for(let i=e;i>=0;i--)wu(t[i],s)}_condense(s){for(let t=s.length-1,e;t>=0;t--)s[t].children.length===0?t>0?(e=s[t-1].children,e.splice(e.indexOf(s[t]),1)):this.clear():Nl(s[t],this.toBBox)}};function SZ(s,t,e){if(!e)return t.indexOf(s);for(let i=0;i=s.minX&&t.maxY>=s.minY}function Kl(s){return{children:s,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function lM(s,t,e,i,n){const r=[t,e];for(;r.length;){if(e=r.pop(),t=r.pop(),e-t<=i)continue;const o=t+Math.ceil((e-t)/i/2)*i;wZ(s,o,t,e,n),r.push(t,o,o,e)}}let bl=0;const Os=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string"},PZ={[U.Get]:Nt(Xt(1,1/0),AZ),[U.Var]:Nt(Xt(1,1),LZ),[U.Id]:Nt(OZ,ru),[U.Concat]:Nt(Xt(2,1/0),he(bs)),[U.GeometryType]:Nt(FZ,ru),[U.Resolution]:Nt(ru),[U.Zoom]:Nt(ru),[U.Time]:Nt(ru),[U.Any]:Nt(Xt(2,1/0),he(Os)),[U.All]:Nt(Xt(2,1/0),he(Os)),[U.Not]:Nt(Xt(1,1),he(Os)),[U.Equal]:Nt(Xt(2,2),he(Mf)),[U.NotEqual]:Nt(Xt(2,2),he(Mf)),[U.GreaterThan]:Nt(Xt(2,2),he(lt)),[U.GreaterThanOrEqualTo]:Nt(Xt(2,2),he(lt)),[U.LessThan]:Nt(Xt(2,2),he(lt)),[U.LessThanOrEqualTo]:Nt(Xt(2,2),he(lt)),[U.Multiply]:Nt(Xt(2,1/0),hM),[U.Coalesce]:Nt(Xt(2,1/0),hM),[U.Divide]:Nt(Xt(2,2),he(lt)),[U.Add]:Nt(Xt(2,1/0),he(lt)),[U.Subtract]:Nt(Xt(2,2),he(lt)),[U.Clamp]:Nt(Xt(3,3),he(lt)),[U.Mod]:Nt(Xt(2,2),he(lt)),[U.Pow]:Nt(Xt(2,2),he(lt)),[U.Abs]:Nt(Xt(1,1),he(lt)),[U.Floor]:Nt(Xt(1,1),he(lt)),[U.Ceil]:Nt(Xt(1,1),he(lt)),[U.Round]:Nt(Xt(1,1),he(lt)),[U.Sin]:Nt(Xt(1,1),he(lt)),[U.Cos]:Nt(Xt(1,1),he(lt)),[U.Atan]:Nt(Xt(1,2),he(lt)),[U.Sqrt]:Nt(Xt(1,1),he(lt)),[U.Match]:Nt(Xt(4,1/0),cM,DZ),[U.Between]:Nt(Xt(3,3),he(lt)),[U.Interpolate]:Nt(Xt(6,1/0),cM,kZ),[U.Case]:Nt(Xt(3,1/0),NZ,$Z),[U.In]:Nt(Xt(2,2),GZ),[U.Number]:Nt(Xt(1,1/0),he(Mf)),[U.String]:Nt(Xt(1,1/0),he(Mf)),[U.Array]:Nt(Xt(1,1/0),he(lt)),[U.Color]:Nt(Xt(1,4),he(lt)),[U.Band]:Nt(Xt(1,3),he(lt)),[U.Palette]:Nt(Xt(2,2),jZ),[U.ToString]:Nt(Xt(1,1),he(Os|lt|bs|$e))};function AZ(s,t,e){const i=s.length-1,n=new Array(i);for(let r=0;rt){const a=t===1/0?`${s} or more`:`${s} to ${t}`;throw new Error(`expected ${a} arguments for ${r}, got ${o}`)}}}function hM(s,t,e){const i=s.length-1,n=new Array(i);for(let r=0;ri.featureId;case U.GeometryType:return i=>i.geometryType;case U.Concat:{const i=s.args.map(n=>Xn(n));return n=>"".concat(...i.map(r=>r(n).toString()))}case U.Resolution:return i=>i.resolution;case U.Any:case U.All:case U.Between:case U.In:case U.Not:return XZ(s);case U.Equal:case U.NotEqual:case U.LessThan:case U.LessThanOrEqualTo:case U.GreaterThan:case U.GreaterThanOrEqualTo:return WZ(s);case U.Multiply:case U.Divide:case U.Add:case U.Subtract:case U.Clamp:case U.Mod:case U.Pow:case U.Abs:case U.Floor:case U.Ceil:case U.Round:case U.Sin:case U.Cos:case U.Atan:case U.Sqrt:return VZ(s);case U.Case:return YZ(s);case U.Match:return qZ(s);case U.Interpolate:return ZZ(s);case U.ToString:return HZ(s);default:throw new Error(`Unsupported operator ${e}`)}}function UZ(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o{const n=s.args;let r=i.properties[e];for(let o=1,a=n.length;oi.variables[e];default:throw new Error(`Unsupported accessor operator ${s.operator}`)}}function WZ(s,t){const e=s.operator,i=Xn(s.args[0]),n=Xn(s.args[1]);switch(e){case U.Equal:return r=>i(r)===n(r);case U.NotEqual:return r=>i(r)!==n(r);case U.LessThan:return r=>i(r)i(r)<=n(r);case U.GreaterThan:return r=>i(r)>n(r);case U.GreaterThanOrEqualTo:return r=>i(r)>=n(r);default:throw new Error(`Unsupported comparison operator ${e}`)}}function XZ(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{for(let o=0;o{for(let o=0;o{const o=n[0](r),a=n[1](r),l=n[2](r);return o>=a&&o<=l};case U.In:return r=>{const o=n[0](r);for(let a=1;a!n[0](r);default:throw new Error(`Unsupported logical operator ${e}`)}}function VZ(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{let o=1;for(let a=0;an[0](r)/n[1](r);case U.Add:return r=>{let o=0;for(let a=0;an[0](r)-n[1](r);case U.Clamp:return r=>{const o=n[0](r),a=n[1](r);if(ol?l:o};case U.Mod:return r=>n[0](r)%n[1](r);case U.Pow:return r=>Math.pow(n[0](r),n[1](r));case U.Abs:return r=>Math.abs(n[0](r));case U.Floor:return r=>Math.floor(n[0](r));case U.Ceil:return r=>Math.ceil(n[0](r));case U.Round:return r=>Math.round(n[0](r));case U.Sin:return r=>Math.sin(n[0](r));case U.Cos:return r=>Math.cos(n[0](r));case U.Atan:return i===2?r=>Math.atan2(n[0](r),n[1](r)):r=>Math.atan(n[0](r));case U.Sqrt:return r=>Math.sqrt(n[0](r));default:throw new Error(`Unsupported numeric operator ${e}`)}}function YZ(s,t){const e=s.args.length,i=new Array(e);for(let n=0;n{for(let r=0;r{const r=i[0](n);for(let o=1;o{const r=i[0](n),o=i[1](n);let a,l;for(let h=2;h=o)return h===2?u:d?KZ(r,o,a,l,c,u):Su(r,o,a,l,c,u);a=c,l=u}return l}}function HZ(s,t){const e=s.operator,i=s.args.length,n=new Array(i);for(let r=0;r{const o=n[0](r);return s.args[0].type===$e?Sv(o):o.toString()};default:throw new Error(`Unsupported convert operator ${e}`)}}function Su(s,t,e,i,n,r){const o=n-e;if(o===0)return i;const a=t-e,l=s===1?a/o:(Math.pow(s,a)-1)/(Math.pow(s,o)-1);return i+l*(r-i)}function KZ(s,t,e,i,n,r){if(n-e===0)return i;const o=v2(i),a=v2(r);let l=a[2]-o[2];l>180?l-=360:l<-180&&(l+=360);const h=[Su(s,t,e,o[0],n,a[0]),Su(s,t,e,o[1],n,a[1]),o[2]+Su(s,t,e,0,n,l),Su(s,t,e,i[3],n,r[3])];return WI(YB(h))}function JZ(s){return!0}function QZ(s){const t=Uv(),e=tH(s,t),i=BP();return function(n,r){if(i.properties=n.getPropertiesInternal(),i.resolution=r,t.featureId){const o=n.getId();o!==void 0?i.featureId=o:i.featureId=null}return t.geometryType&&(i.geometryType=Bv(n.getGeometry())),e(i)}}function uM(s){const t=Uv(),e=s.length,i=new Array(e);for(let o=0;onull;i=Wv(s,t+"fill-color",e)}if(!i)return null;const n=new Wn;return function(r){const o=i(r);return o==="none"?null:(n.setColor(o),n)}}function Nd(s,t,e){const i=Ti(s,t+"stroke-width",e),n=Wv(s,t+"stroke-color",e);if(!i&&!n)return null;const r=kr(s,t+"stroke-line-cap",e),o=kr(s,t+"stroke-line-join",e),a=WP(s,t+"stroke-line-dash",e),l=Ti(s,t+"stroke-line-dash-offset",e),h=Ti(s,t+"stroke-miter-limit",e),c=new wn;return function(u){if(n){const d=n(u);if(d==="none")return null;c.setColor(d)}if(i&&c.setWidth(i(u)),r){const d=r(u);if(d!=="butt"&&d!=="round"&&d!=="square")throw new Error("Expected butt, round, or square line cap");c.setLineCap(d)}if(o){const d=o(u);if(d!=="bevel"&&d!=="round"&&d!=="miter")throw new Error("Expected bevel, round, or miter line join");c.setLineJoin(d)}return a&&c.setLineDash(a(u)),l&&c.setLineDashOffset(l(u)),h&&c.setMiterLimit(h(u)),c}}function eH(s,t){const e="text-",i=kr(s,e+"value",t);if(!i)return null;const n=Fd(s,e,t),r=Fd(s,e+"background-",t),o=Nd(s,e,t),a=Nd(s,e+"background-",t),l=kr(s,e+"font",t),h=Ti(s,e+"max-angle",t),c=Ti(s,e+"offset-x",t),u=Ti(s,e+"offset-y",t),d=Dd(s,e+"overflow",t),g=kr(s,e+"placement",t),f=Ti(s,e+"repeat",t),p=t0(s,e+"scale",t),m=Dd(s,e+"rotate-with-view",t),_=Ti(s,e+"rotation",t),y=kr(s,e+"align",t),v=kr(s,e+"justify",t),S=kr(s,e+"baseline",t),w=WP(s,e+"padding",t),C=e0(s,e+"declutter-mode"),M=new al({declutterMode:C});return function(T){if(M.setText(i(T)),n&&M.setFill(n(T)),r&&M.setBackgroundFill(r(T)),o&&M.setStroke(o(T)),a&&M.setBackgroundStroke(a(T)),l&&M.setFont(l(T)),h&&M.setMaxAngle(h(T)),c&&M.setOffsetX(c(T)),u&&M.setOffsetY(u(T)),d&&M.setOverflow(d(T)),g){const I=g(T);if(I!=="point"&&I!=="line")throw new Error("Expected point or line for text-placement");M.setPlacement(I)}if(f&&M.setRepeat(f(T)),p&&M.setScale(p(T)),m&&M.setRotateWithView(m(T)),_&&M.setRotation(_(T)),y){const I=y(T);if(I!=="left"&&I!=="center"&&I!=="right"&&I!=="end"&&I!=="start")throw new Error("Expected left, right, center, start, or end for text-align");M.setTextAlign(I)}if(v){const I=v(T);if(I!=="left"&&I!=="right"&&I!=="center")throw new Error("Expected left, right, or center for text-justify");M.setJustify(I)}if(S){const I=S(T);if(I!=="bottom"&&I!=="top"&&I!=="middle"&&I!=="alphabetic"&&I!=="hanging")throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");M.setTextBaseline(I)}return w&&M.setPadding(w(T)),M}}function sH(s,t){return"icon-src"in s?iH(s,t):"shape-points"in s?nH(s,t):"circle-radius"in s?rH(s,t):null}function iH(s,t){const e="icon-",i=e+"src",n=XP(s[i],i),r=$p(s,e+"anchor",t),o=t0(s,e+"scale",t),a=Ti(s,e+"opacity",t),l=$p(s,e+"displacement",t),h=Ti(s,e+"rotation",t),c=Dd(s,e+"rotate-with-view",t),u=gM(s,e+"anchor-origin"),d=fM(s,e+"anchor-x-units"),g=fM(s,e+"anchor-y-units"),f=cH(s,e+"color"),p=lH(s,e+"cross-origin"),m=hH(s,e+"offset"),_=gM(s,e+"offset-origin"),y=Gp(s,e+"width"),v=Gp(s,e+"height"),S=aH(s,e+"size"),w=e0(s,e+"declutter-mode"),C=new Rc({src:n,anchorOrigin:u,anchorXUnits:d,anchorYUnits:g,color:f,crossOrigin:p,offset:m,offsetOrigin:_,height:v,width:y,size:S,declutterMode:w});return function(M){return a&&C.setOpacity(a(M)),l&&C.setDisplacement(l(M)),h&&C.setRotation(h(M)),c&&C.setRotateWithView(c(M)),o&&C.setScale(o(M)),r&&C.setAnchor(r(M)),C}}function nH(s,t){const e="shape-",i=e+"points",n=e+"radius",r=ly(s[i],i),o=ly(s[n],n),a=Fd(s,e,t),l=Nd(s,e,t),h=t0(s,e+"scale",t),c=$p(s,e+"displacement",t),u=Ti(s,e+"rotation",t),d=Dd(s,e+"rotate-with-view",t),g=Gp(s,e+"radius2"),f=Gp(s,e+"angle"),p=e0(s,e+"declutter-mode"),m=new Vm({points:r,radius:o,radius2:g,angle:f,declutterMode:p});return function(_){return a&&m.setFill(a(_)),l&&m.setStroke(l(_)),c&&m.setDisplacement(c(_)),u&&m.setRotation(u(_)),d&&m.setRotateWithView(d(_)),h&&m.setScale(h(_)),m}}function rH(s,t){const e="circle-",i=Fd(s,e,t),n=Nd(s,e,t),r=Ti(s,e+"radius",t),o=t0(s,e+"scale",t),a=$p(s,e+"displacement",t),l=Ti(s,e+"rotation",t),h=Dd(s,e+"rotate-with-view",t),c=e0(s,e+"declutter-mode"),u=new Ym({radius:5,declutterMode:c});return function(d){return r&&u.setRadius(r(d)),i&&u.setFill(i(d)),n&&u.setStroke(n(d)),a&&u.setDisplacement(a(d)),l&&u.setRotation(l(d)),h&&u.setRotateWithView(h(d)),o&&u.setScale(o(d)),u}}function Ti(s,t,e){if(!(t in s))return;const i=_o(s[t],lt,e);return function(n){return ly(i(n),t)}}function kr(s,t,e){if(!(t in s))return null;const i=_o(s[t],bs,e);return function(n){return XP(i(n),t)}}function oH(s,t,e){const i=kr(s,t+"pattern-src",e),n=dM(s,t+"pattern-offset",e),r=dM(s,t+"pattern-size",e),o=Wv(s,t+"color",e);return function(a){return{src:i(a),offset:n&&n(a),size:r&&r(a),color:o&&o(a)}}}function Dd(s,t,e){if(!(t in s))return null;const i=_o(s[t],Os,e);return function(n){const r=i(n);if(typeof r!="boolean")throw new Error(`Expected a boolean for ${t}`);return r}}function Wv(s,t,e){if(!(t in s))return null;const i=_o(s[t],$e,e);return function(n){return VP(i(n),t)}}function WP(s,t,e){if(!(t in s))return null;const i=_o(s[t],ui,e);return function(n){return Rg(i(n),t)}}function $p(s,t,e){if(!(t in s))return null;const i=_o(s[t],ui,e);return function(n){const r=Rg(i(n),t);if(r.length!==2)throw new Error(`Expected two numbers for ${t}`);return r}}function dM(s,t,e){if(!(t in s))return null;const i=_o(s[t],ui,e);return function(n){return YP(i(n),t)}}function t0(s,t,e){if(!(t in s))return null;const i=_o(s[t],ui|lt,e);return function(n){return uH(i(n),t)}}function Gp(s,t){const e=s[t];if(e!==void 0){if(typeof e!="number")throw new Error(`Expected a number for ${t}`);return e}}function aH(s,t){const e=s[t];if(e!==void 0){if(typeof e=="number")return Re(e);if(!Array.isArray(e))throw new Error(`Expected a number or size array for ${t}`);if(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number")throw new Error(`Expected a number or size array for ${t}`);return e}}function lH(s,t){const e=s[t];if(e!==void 0){if(typeof e!="string")throw new Error(`Expected a string for ${t}`);return e}}function gM(s,t){const e=s[t];if(e!==void 0){if(e!=="bottom-left"&&e!=="bottom-right"&&e!=="top-left"&&e!=="top-right")throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${t}`);return e}}function fM(s,t){const e=s[t];if(e!==void 0){if(e!=="pixels"&&e!=="fraction")throw new Error(`Expected pixels or fraction for ${t}`);return e}}function hH(s,t){const e=s[t];if(e!==void 0)return Rg(e,t)}function e0(s,t){const e=s[t];if(e!==void 0){if(typeof e!="string")throw new Error(`Expected a string for ${t}`);if(e!=="declutter"&&e!=="obstacle"&&e!=="none")throw new Error(`Expected declutter, obstacle, or none for ${t}`);return e}}function cH(s,t){const e=s[t];if(e!==void 0)return VP(e,t)}function Rg(s,t){if(!Array.isArray(s))throw new Error(`Expected an array for ${t}`);const e=s.length;for(let i=0;i4)throw new Error(`Expected a color with 3 or 4 values for ${t}`);return e}function YP(s,t){const e=Rg(s,t);if(e.length!==2)throw new Error(`Expected an array of two numbers for ${t}`);return e}function uH(s,t){return typeof s=="number"?s:YP(s,t)}const pM={RENDER_ORDER:"renderOrder"};class Ig extends Tg{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=t.renderBuffer!==void 0?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=t.updateWhileAnimating!==void 0?t.updateWhileAnimating:!1,this.updateWhileInteracting_=t.updateWhileInteracting!==void 0?t.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(pM.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const i=this.getDeclutter();i in t.declutter||(t.declutter[i]=new jv(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(pM.RENDER_ORDER,t)}setStyle(t){this.style_=t===void 0?KI:t;const e=dH(t);this.styleFunction_=t===null?void 0:lW(e),this.changed()}}function dH(s){if(s===void 0)return KI;if(!s)return null;if(typeof s=="function"||s instanceof Ps)return s;if(!Array.isArray(s))return uM([s]);if(s.length===0)return[];const t=s.length,e=s[0];if(e instanceof Ps){const i=new Array(t);for(let n=0;nl&&(this.instructions.push([Et.CUSTOM,l,c,t,i,jr,r]),this.hitDetectionInstructions.push([Et.CUSTOM,l,c,t,n||i,jr,r]));break;case"Point":h=t.getFlatCoordinates(),this.coordinates.push(h[0],h[1]),c=this.coordinates.length,this.instructions.push([Et.CUSTOM,l,c,t,i,void 0,r]),this.hitDetectionInstructions.push([Et.CUSTOM,l,c,t,n||i,void 0,r]);break}this.endGeometry(e)}beginGeometry(t,e,i){this.beginGeometryInstruction1_=[Et.BEGIN_GEOMETRY,e,0,t,i],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Et.BEGIN_GEOMETRY,e,0,t,i],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;t.reverse();let e;const i=t.length;let n,r,o=-1;for(e=0;ethis.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}createFill(t){const e=t.fillStyle,i=[Et.SET_FILL_STYLE,e];return typeof e!="string"&&i.push(t.fillPatternScale),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[Et.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){const i=t.strokeStyle,n=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,l=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!vl(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h)&&(i!==void 0&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=l,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[Et.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=o9(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;_n(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}class gH extends Pg{constructor(t,e,i,n){super(t,e,i,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e,i){if(!this.image_||this.maxExtent&&!Yi(this.maxExtent,t.getFlatCoordinates()))return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(n,r);this.instructions.push([Et.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,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.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Et.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e,i){if(!this.image_)return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),r=[];for(let l=0,h=n.length;l=s){const f=(s-a+g)/g,p=Ui(h,u,f),m=Ui(c,d,f);l.push(p,m),r.push(l),l=[p,m],a==s&&(o+=n),a=0}else if(a0&&r.push(l),r}function mH(s,t,e,i,n){let r=e,o=e,a=0,l=0,h=e,c,u,d,g,f,p,m,_,y,v;for(u=e;us&&(l>a&&(a=l,r=h,o=u),l=0,h=u-n)),d=g,m=y,_=v),f=S,p=w}return l+=g,l>a?[h,u]:[r,o]}const jp={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class _H extends Pg{constructor(t,e,i,n){super(t,e,i,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[Si]={fillStyle:Si},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e,i){const n=this.textFillState_,r=this.textStrokeState_,o=this.textState_;if(this.text_===""||!o||!n&&!r)return;const a=this.coordinates;let l=a.length;const h=t.getType();let c=null,u=t.getStride();if(o.placement==="line"&&(h=="LineString"||h=="MultiLineString"||h=="Polygon"||h=="MultiPolygon")){if(!Ce(this.maxExtent,t.getExtent()))return;let d;if(c=t.getFlatCoordinates(),h=="LineString")d=[c.length];else if(h=="MultiLineString")d=t.getEnds();else if(h=="Polygon")d=t.getEnds().slice(0,1);else if(h=="MultiPolygon"){const m=t.getEndss();d=[];for(let _=0,y=m.length;_{const w=a[(y+S)*2]===c[S*u]&&a[(y+S)*2+1]===c[S*u+1];return w||--y,w})}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&this.updateFillStyle(this.state,this.createFill),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e,i);let f=o.padding;if(f!=za&&(o.scale[0]<0||o.scale[1]<0)){let y=o.padding[0],v=o.padding[1],S=o.padding[2],w=o.padding[3];o.scale[0]<0&&(v=-v,w=-w),o.scale[1]<0&&(y=-y,S=-S),f=[y,v,S,w]}const p=this.pixelRatio;this.instructions.push([Et.DRAW_IMAGE,l,g,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,f==za?za:f.map(function(y){return y*p}),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,d]);const m=1/p,_=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=Si,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([Et.DRAW_IMAGE,l,g,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[m,m],NaN,this.declutterMode_,this.declutterImageWithText_,f,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?Si:this.fillKey_,this.textOffsetX_,this.textOffsetY_,d]),o.backgroundFill&&(this.state.fillStyle=_,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,n=this.strokeKey_;t&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||Ld,justify:e.justify,textBaseline:e.textBaseline||Ap,scale:e.scale});const o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,n=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const l=this.pixelRatio,h=jp[n.textBaseline],c=this.textOffsetY_*l,u=this.text_,d=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([Et.DRAW_CHARS,t,e,h,n.overflow,a,n.maxAngle,l,c,r,d*l,u,o,1,this.declutterMode_]),this.hitDetectionInstructions.push([Et.DRAW_CHARS,t,e,h,n.overflow,a&&Si,n.maxAngle,l,c,r,d*l,u,o,1/l,this.declutterMode_])}setTextStyle(t,e){let i,n,r;if(!t)this.text_="";else{const o=t.getFill();o?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=hr(o.getColor()||Si)):(n=null,this.textFillState_=n);const a=t.getStroke();if(!a)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const f=a.getLineDash(),p=a.getLineDashOffset(),m=a.getWidth(),_=a.getMiterLimit();r.lineCap=a.getLineCap()||lc,r.lineDash=f?f.slice():Hr,r.lineDashOffset=p===void 0?Kr:p,r.lineJoin=a.getLineJoin()||hc,r.lineWidth=m===void 0?Od:m,r.miterLimit=_===void 0?Pd:_,r.strokeStyle=hr(a.getColor()||Ad)}i=this.textState_;const l=t.getFont()||ZI;iW(l);const h=t.getScaleArray();i.overflow=t.getOverflow(),i.font=l,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||Ap,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||za,i.scale=h===void 0?[1,1]:h;const c=t.getOffsetX(),u=t.getOffsetY(),d=t.getRotateWithView(),g=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=u===void 0?0:u,this.textRotateWithView_=d===void 0?!1:d,this.textRotation_=g===void 0?0:g,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:mt(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=n&&n.fillStyle?typeof n.fillStyle=="string"?n.fillStyle:"|"+mt(n.fillStyle):""}this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}const yH={Circle:_M,Default:Pg,Image:gH,LineString:fH,Polygon:_M,Text:_H};class ZP{constructor(t,e,i,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const i=this.buildersByZIndex_[e];for(const n in i){const r=i[n].finish();t[e][n]=r}}return t}getBuilder(t,e){const i=t!==void 0?t.toString():"0";let n=this.buildersByZIndex_[i];n===void 0&&(n={},this.buildersByZIndex_[i]=n);let r=n[e];if(r===void 0){const o=yH[e];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=r}return r}}const xH=5;class HP extends pg{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.staleKeys_=new Array,this.maxStaleKeys=xH}getStaleKeys(){return this.staleKeys_}prependStaleKey(t){this.staleKeys_.unshift(t),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(t){return vt()}getData(t){return null}prepareFrame(t){return vt()}renderFrame(t,e){return vt()}forEachFeatureAtCoordinate(t,e,i,n,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;(e.getState()===it.LOADED||e.getState()===it.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=it.LOADED&&e!=it.ERROR&&t.addEventListener(Zt.CHANGE,this.boundHandleImageChange_),e==it.IDLE&&(t.load(),e=t.getState()),e==it.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}}class $f extends Sr{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}}class Xv{constructor(){jx(this,"pushMethodArgs_",(...t)=>(this.instructions_[this.zIndex+this.offset_].push(t),this)),this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy(Pp(),{get:(t,e)=>{if(typeof Pp()[e]=="function")return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e),this.pushMethodArgs_},set:(t,e,i)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e,i),!0)})}pushFunction(t){this.instructions_[this.zIndex+this.offset_].push(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach(e=>{for(let i=0,n=e.length;iR[2]}else P=S>I;const D=Math.PI,x=[],E=C+i===t;t=C,m=0,_=M,d=s[t],g=s[t+1];let b;if(E){y(),b=Math.atan2(g-p,d-f),P&&(b+=b>0?-D:D);const R=(I+S)/2,A=(O+w)/2;return x[0]=[R,A,(T-r)/2,b,n],x}n=n.replace(/\n/g," ");for(let R=0,A=n.length;R0?-D:D),b!==void 0){let F=$-b;if(F+=F>D?-2*D:F<-D?2*D:0,Math.abs(F)>o)return null}b=$;const G=R;let k=0;for(;R0&&s.push(` -`,""),s.push(t,""),s}class SH{constructor(t,e,i,n,r){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignAndScaleFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=ss(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=r?new Xv:null}getZIndexContext(){return this.zIndexContext_}createLabel(t,e,i,n){const r=t+e+i+n;if(this.labels_[r])return this.labels_[r];const o=n?this.strokeStates[n]:null,a=i?this.fillStates[i]:null,l=this.textStates[e],h=this.pixelRatio,c=[l.scale[0]*h,l.scale[1]*h],u=l.justify?jp[l.justify]:L_(Array.isArray(t)?t[0]:t,l.textAlign||Ld),d=n&&o.lineWidth?o.lineWidth:0,g=Array.isArray(t)?t:String(t).split(` -`).reduce(EH,[]),{width:f,height:p,widths:m,heights:_,lineWidths:y}=rW(l,g),v=f+d,S=[],w=(v+2)*c[0],C=(p+d)*c[1],M={width:w<0?Math.floor(w):Math.ceil(w),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:S};(c[0]!=1||c[1]!=1)&&S.push("scale",c),n&&(S.push("strokeStyle",o.strokeStyle),S.push("lineWidth",d),S.push("lineCap",o.lineCap),S.push("lineJoin",o.lineJoin),S.push("miterLimit",o.miterLimit),S.push("setLineDash",[o.lineDash]),S.push("lineDashOffset",o.lineDashOffset)),i&&S.push("fillStyle",a.fillStyle),S.push("textBaseline","middle"),S.push("textAlign","center");const T=.5-u;let I=u*v+T*d;const O=[],P=[];let D=0,x=0,E=0,b=0,R;for(let A=0,$=g.length;A<$;A+=2){const G=g[A];if(G===` -`){x+=D,D=0,I=u*v+T*d,++b;continue}const k=g[A+1]||l.font;k!==R&&(n&&O.push("font",k),i&&P.push("font",k),R=k),D=Math.max(D,_[E]);const z=[G,I+T*m[E]+u*(m[E]-y[b]),.5*(d+D)+x];I+=m[E],n&&O.push("strokeText",z),i&&P.push("fillText",z),++E}return Array.prototype.push.apply(S,O),Array.prototype.push.apply(S,P),this.labels_[r]=M,M}replayTextBackground_(t,e,i,n,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignAndScaleFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())}calculateImageOrLabelDimensions_(t,e,i,n,r,o,a,l,h,c,u,d,g,f,p,m){a*=d[0],l*=d[1];let _=i-a,y=n-l;const v=r+h>t?t-h:r,S=o+c>e?e-c:o,w=f[3]+v*d[0]+f[1],C=f[0]+S*d[1]+f[2],M=_-f[3],T=y-f[0];(p||u!==0)&&(Ro[0]=M,Io[0]=M,Ro[1]=T,Ir[1]=T,Ir[0]=M+w,Pr[0]=Ir[0],Pr[1]=T+C,Io[1]=Pr[1]);let I;return u!==0?(I=xn(ss(),i,n,1,1,u,-i,-n),Ye(I,Ro),Ye(I,Ir),Ye(I,Pr),Ye(I,Io),Un(Math.min(Ro[0],Ir[0],Pr[0],Io[0]),Math.min(Ro[1],Ir[1],Pr[1],Io[1]),Math.max(Ro[0],Ir[0],Pr[0],Io[0]),Math.max(Ro[1],Ir[1],Pr[1],Io[1]),Dl)):Un(Math.min(M,M+w),Math.min(T,T+C),Math.max(M,M+w),Math.max(T,T+C),Dl),g&&(_=Math.round(_),y=Math.round(y)),{drawImageX:_,drawImageY:y,drawImageW:v,drawImageH:S,originX:h,originY:c,declutterBox:{minX:Dl[0],minY:Dl[1],maxX:Dl[2],maxY:Dl[3],value:m},canvasTransform:I,scale:d}}replayImageOrLabel_(t,e,i,n,r,o,a){const l=!!(o||a),h=n.declutterBox,c=a?a[2]*n.scale[0]/2:0;return h.minX-c<=e[0]&&h.maxX+c>=0&&h.minY-c<=e[1]&&h.maxY+c>=0&&(l&&this.replayTextBackground_(t,Ro,Ir,Pr,Io,o,a),oW(t,n.canvasTransform,r,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){const e=this.alignAndScaleFill_;if(e){const i=Ye(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(i[0]%n,i[1]%n),e!==1&&t.scale(e,e),t.rotate(this.viewRotation_)}t.fill(),e&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,n){const r=this.textStates[e],o=this.createLabel(t,e,n,i),a=this.strokeStates[i],l=this.pixelRatio,h=L_(Array.isArray(t)?t[0]:t,r.textAlign||Ld),c=jp[r.textBaseline||Ap],u=a&&a.lineWidth?a.lineWidth:0,d=o.width/l-2*r.scale[0],g=h*d+2*(.5-h)*u,f=c*o.height/l+2*(.5-c)*u;return{label:o,anchorX:g,anchorY:f}}execute_(t,e,i,n,r,o,a,l){const h=this.zIndexContext_;let c;this.pixelCoordinates_&&vl(i,this.renderedTransform_)?c=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),c=Jo(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),e9(this.renderedTransform_,i));let u=0;const d=n.length;let g=0,f,p,m,_,y,v,S,w,C,M,T,I,O,P=0,D=0,x=null,E=null;const b=this.coordinateCache_,R=this.viewRotation_,A=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,$={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:R},G=this.instructions!=n||this.overlaps?0:200;let k,z,V,et;for(;uG&&(this.fill_(t),P=0),D>G&&(t.stroke(),D=0),!P&&!D&&(t.beginPath(),y=NaN,v=NaN),++u;break;case Et.CIRCLE:g=F[1];const ot=c[g],ht=c[g+1],pt=c[g+2],Gt=c[g+3],Kt=pt-ot,bt=Gt-ht,oe=Math.sqrt(Kt*Kt+bt*bt);t.moveTo(ot+oe,ht),t.arc(ot,ht,oe,0,2*Math.PI,!0),++u;break;case Et.CLOSE_PATH:t.closePath(),++u;break;case Et.CUSTOM:g=F[1],f=F[2];const Pe=F[3],hs=F[4],rs=F[5];$.geometry=Pe,$.feature=k,u in b||(b[u]=[]);const Ge=b[u];rs?rs(c,g,f,2,Ge):(Ge[0]=c[g],Ge[1]=c[g+1],Ge.length=2),h&&(h.zIndex=F[6]),hs(Ge,$),++u;break;case Et.DRAW_IMAGE:g=F[1],f=F[2],C=F[3],p=F[4],m=F[5];let ve=F[6];const Ke=F[7],Ni=F[8],Di=F[9],Mn=F[10];let Ks=F[11];const ki=F[12];let $i=F[13];_=F[14]||"declutter";const Jt=F[15];if(!C&&F.length>=20){M=F[19],T=F[20],I=F[21],O=F[22];const Ae=this.drawLabelWithPointPlacement_(M,T,I,O);C=Ae.label,F[3]=C;const Js=F[23];p=(Ae.anchorX-Js)*this.pixelRatio,F[4]=p;const Le=F[24];m=(Ae.anchorY-Le)*this.pixelRatio,F[5]=m,ve=C.height,F[6]=ve,$i=C.width,F[13]=$i}let xa;F.length>25&&(xa=F[25]);let va,br,Cr;F.length>17?(va=F[16],br=F[17],Cr=F[18]):(va=za,br=!1,Cr=!1),Mn&&A?Ks+=R:!Mn&&!A&&(Ks-=R);let S0=0;for(;g!zp.includes(s));class KP{constructor(t,e,i,n,r,o,a){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=ss(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(r,a)}clip(t,e){const i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()}createExecutors_(t,e){for(const i in t){let n=this.executorsByZIndex_[i];n===void 0&&(n={},this.executorsByZIndex_[i]=n);const r=t[i];for(const o in r){const a=r[o];n[o]=new SH(this.resolution_,this.pixelRatio_,this.overlaps_,a,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const i=this.executorsByZIndex_[e];for(let n=0,r=t.length;n0){if(!o||M==="none"||g!=="Image"&&g!=="Text"||o.includes(w)){const P=(d[I]-3)/4,D=n-P%a,x=n-(P/a|0),E=r(w,C,D*D+x*x);if(E)return E}c.clearRect(0,0,a,a);break}}const p=Object.keys(this.executorsByZIndex_).map(Number);p.sort(fr);let m,_,y,v,S;for(m=p.length-1;m>=0;--m){const w=p[m].toString();for(y=this.executorsByZIndex_[w],_=mh.length-1;_>=0;--_)if(g=mh[_],v=y[g],v!==void 0&&(S=v.executeHitDetection(c,l,i,f,u),S))return S}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],n=e[1],r=e[2],o=e[3],a=[i,n,i,o,r,o,r,n];return Jo(a,0,8,2,t,a),a}isEmpty(){return eo(this.executorsByZIndex_)}execute(t,e,i,n,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(fr),o=o||mh;const h=mh.length;let c,u,d,g,f;for(a&&l.reverse(),c=0,u=l.length;c_.execute(w,e,i,n,r,a)),S&&v.restore(),y){y.offset();const w=l[c]*h+d;this.deferredZIndexContexts_[w]||(this.deferredZIndexContexts_[w]=[]),this.deferredZIndexContexts_[w].push(y)}}}}this.renderedContext_=t}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const t=this.deferredZIndexContexts_,e=Object.keys(t).map(Number).sort(fr);for(let i=0,n=e.length;i{r.draw(this.renderedContext_),r.clear()}),t[e[i]].length=0}}const O_={};function bH(s){if(O_[s]!==void 0)return O_[s];const t=s*2+1,e=s*s,i=new Array(e+1);for(let r=0;r<=s;++r)for(let o=0;o<=s;++o){const a=r*r+o*o;if(a>e)break;let l=i[a];l||(l=[],i[a]=l),l.push(((s+r)*t+(s+o))*4+3),r>0&&l.push(((s-r)*t+(s+o))*4+3),o>0&&(l.push(((s+r)*t+(s-o))*4+3),r>0&&l.push(((s-r)*t+(s-o))*4+3))}const n=[];for(let r=0,o=i.length;ru*this.pixelRatio_),lineDashOffset:(o||Kr)*this.pixelRatio_,lineJoin:a!==void 0?a:hc,lineWidth:(l!==void 0?l:Od)*this.pixelRatio_,miterLimit:h!==void 0?h:Pd,strokeStyle:hr(i||Ad)}}}setImageStyle(t){let e;if(!t||!(e=t.getSize())){this.image_=null;return}const i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*i,this.imageAnchorY_=n[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/i,o[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(!t)this.text_="";else{const e=t.getFill();if(!e)this.textFillState_=null;else{const g=e.getColor();this.textFillState_={fillStyle:hr(g||Si)}}const i=t.getStroke();if(!i)this.textStrokeState_=null;else{const g=i.getColor(),f=i.getLineCap(),p=i.getLineDash(),m=i.getLineDashOffset(),_=i.getLineJoin(),y=i.getWidth(),v=i.getMiterLimit();this.textStrokeState_={lineCap:f!==void 0?f:lc,lineDash:p||Hr,lineDashOffset:m||Kr,lineJoin:_!==void 0?_:hc,lineWidth:y!==void 0?y:Od,miterLimit:v!==void 0?v:Pd,strokeStyle:hr(g||Ad)}}const n=t.getFont(),r=t.getOffsetX(),o=t.getOffsetY(),a=t.getRotateWithView(),l=t.getRotation(),h=t.getScaleArray(),c=t.getText(),u=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:n!==void 0?n:ZI,textAlign:u!==void 0?u:Ld,textBaseline:d!==void 0?d:Ap},this.text_=c!==void 0?Array.isArray(c)?c.reduce((g,f,p)=>g+=p%2?" ":f,""):c:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=o!==void 0?this.pixelRatio_*o:0,this.textRotateWithView_=a!==void 0?a:!1,this.textRotation_=l!==void 0?l:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}}}const Xi=.5;function QP(s,t,e,i,n,r,o,a,l){const h=l?km(n):n,c=s[0]*Xi,u=s[1]*Xi,d=Se(c,u);d.imageSmoothingEnabled=!1;const g=d.canvas,f=new JP(d,Xi,n,null,o,a,l?Sl(L9(),l):null),p=e.length,m=Math.floor((256*256*256-1)/p),_={};for(let v=1;v<=p;++v){const S=e[v-1],w=S.getStyleFunction()||i;if(!w)continue;let C=w(S,r);if(!C)continue;Array.isArray(C)||(C=[C]);const M=(v*m).toString(16).padStart(7,"#00000");for(let T=0,I=C.length;T0;return u&&Promise.all(l).then(()=>n(null)),IH(s,t,e,i,r,o,a),u}function IH(s,t,e,i,n,r,o){const a=e.getGeometryFunction()(t);if(!a)return;const l=a.simplifyTransformed(i,n);if(e.getRenderer())iA(s,l,e,t,o);else{const h=eA[l.getType()];h(s,l,e,t,o,r)}}function iA(s,t,e,i,n){if(t.getType()=="GeometryCollection"){const r=t.getGeometries();for(let o=0,a=r.length;o{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const i=this.frameState.size.slice(),n=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,l=this.wrappedRenderedExtent_,h=this.getLayer(),c=[],u=i[0]*Xi,d=i[1]*Xi;c.push(this.getRenderTransform(n,r,o,Xi,u,d,0).slice());const g=h.getSource(),f=a.getExtent();if(g.getWrapX()&&a.canWrapX()&&!ai(f,l)){let p=l[0];const m=Rt(f);let _=0,y;for(;pf[2];)++_,y=m*_,c.push(this.getRenderTransform(n,r,o,Xi,u,d,y).slice()),p-=m}this.hitDetectionImageData_=QP(i,c,this.renderedFeatures_,h.getStyleFunction(),l,r,o,Up(r,this.renderedPixelRatio_),null)}e(tA(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,i,n,r){if(!this.replayGroup_)return;const o=e.viewState.resolution,a=e.viewState.rotation,l=this.getLayer(),h={},c=function(f,p,m){const _=mt(f),y=h[_];if(y){if(y!==!0&&mu=f.forEachFeatureAtCoordinate(t,o,a,i,c,g&&e.declutter[g]?e.declutter[g].all().map(p=>p.value):null)),u}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const n=t.viewHints[Ie.ANIMATING],r=t.viewHints[Ie.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&n||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=t.extent,h=t.viewState,c=h.projection,u=h.resolution,d=t.pixelRatio,g=e.getRevision(),f=e.getRenderBuffer();let p=e.getRenderOrder();p===void 0&&(p=TH);const m=h.center.slice(),_=_n(l,f*u),y=_.slice(),v=[_.slice()],S=c.getExtent();if(i.getWrapX()&&c.canWrapX()&&!ai(S,t.extent)){const E=Rt(S),b=Math.max(Rt(_)/2,E);_[0]=S[0]-b,_[2]=S[2]+b,_I(m,c);const R=Zx(v[0],c);R[0]S[0]&&R[2]>S[2]&&v.push([R[0]-E,R[1],R[2]-E,R[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==g&&this.renderedRenderOrder_==p&&this.renderedFrameDeclutter_===!!t.declutter&&ai(this.wrappedRenderedExtent_,_))return vl(this.renderedExtent_,y)||(this.hitDetectionImageData_=null,this.renderedExtent_=y),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const w=new ZP(sA(u,d),_,u,d);let C;for(let E=0,b=v.length;E{let R;const A=E.getStyleFunction()||e.getStyleFunction();if(A&&(R=A(E,u)),R){const $=this.renderFeature(E,M,R,w,C,this.getLayer().getDeclutter(),b);T=T&&!$}},O=km(_),P=i.getFeaturesInExtent(O);p&&P.sort(p);for(let E=0,b=P.length;Es):null}const Lc=kH,zs={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function $H(s,t){return[[-1/0,-1/0,1/0,1/0]]}let GH=!1;function rA(s,t,e,i,n,r,o){const a=new XMLHttpRequest;a.open("GET",typeof s=="function"?s(e,i,n):s,!0),t.getType()=="arraybuffer"&&(a.responseType="arraybuffer"),a.withCredentials=GH,a.onload=function(l){if(!a.status||a.status>=200&&a.status<300){const h=t.getType();try{let c;h=="text"||h=="json"?c=a.responseText:h=="xml"?c=a.responseXML||a.responseText:h=="arraybuffer"&&(c=a.response),c?r(t.readFeatures(c,{extent:e,featureProjection:n}),t.readProjection(c)):o()}catch{o()}}else o()},a.onerror=o,a.send()}function SM(s,t){return function(e,i,n,r,o){const a=this;rA(s,t,e,i,n,function(l,h){a.addFeatures(l),r!==void 0&&r(l)},o||Md)}}class Po extends Sr{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class s0 extends Lc{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:t.wrapX!==void 0?t.wrapX:!0}),this.on,this.once,this.un,this.loader_=Md,this.format_=t.format||null,this.overlaps_=t.overlaps===void 0?!0:t.overlaps,this.url_=t.url,t.loader!==void 0?this.loader_=t.loader:this.url_!==void 0&&(qt(this.format_,"`format` must be set when `url` is set"),this.loader_=SM(this.url_,this.format_)),this.strategy_=t.strategy!==void 0?t.strategy:$H;const e=t.useSpatialIndex!==void 0?t.useSpatialIndex:!0;this.featuresRtree_=e?new wM:null,this.loadedExtentsRtree_=new wM,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let i,n;Array.isArray(t.features)?n=t.features:t.features&&(i=t.features,n=i.getArray()),!e&&i===void 0&&(i=new kp(n)),n!==void 0&&this.addFeaturesInternal(n),i!==void 0&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=mt(t);if(!this.addToIndex_(e,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const n=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new Po(zs.ADDFEATURE,t))}setupChangeEvents_(t,e){e instanceof si||(this.featureChangeKeys_[t]=[We(e,Zt.CHANGE,this.handleFeatureChange_,this),We(e,zx.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(e.getId()!==void 0){const n=String(e.getId());if(!(n in this.idIndex_))this.idIndex_[n]=e;else if(e instanceof si){const r=this.idIndex_[n];r instanceof si?Array.isArray(r)?r.push(e):this.idIndex_[n]=[r,e]:i=!1}else i=!1}return i&&(qt(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],n=[];for(let r=0,o=t.length;r{e||(e=!0,this.addFeature(i.element),e=!1)}),t.addEventListener(Yo.REMOVE,i=>{e||(e=!0,this.removeFeature(i.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(const i in this.featureChangeKeys_)this.featureChangeKeys_[i].forEach(ms);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const i=n=>{this.removeFeatureInternal(n)};this.featuresRtree_.forEach(i);for(const n in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new Po(zs.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(n){const r=n.getGeometry();if(r instanceof si||r.intersectsCoordinate(t))return e(n)})}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,function(i){const n=i.getGeometry();if(n instanceof si||n.intersectsExtent(t)){const r=e(i);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),eo(this.nullGeometryFeatures_)||ee(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,function(i){e.push(i)}),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const i=Hx(t,e);return[].concat(...i.map(n=>this.featuresRtree_.getInExtent(n)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],n=t[1];let r=null;const o=[NaN,NaN];let a=1/0;const l=[-1/0,-1/0,1/0,1/0];return e=e||KU,this.featuresRtree_.forEachInExtent(l,function(h){if(e(h)){const c=h.getGeometry(),u=a;if(a=c instanceof si?0:c.closestPointXY(i,n,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new Po(zs.FEATURESLOADEND,void 0,h))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new Po(zs.FEATURESLOADERROR))}),n.insert(l,{extent:l.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let i;e.forEachInExtent(t,function(n){if(so(n.extent,t))return i=n,!0}),i&&e.remove(i)}removeFeatures(t){let e=!1;for(let i=0,n=t.length;i0&&c.length>0;)p=c.pop(),n=l.pop(),o=h.pop(),y=p.toString(),y in u||(i.push(o[0],o[1]),u[y]=!0),m=c.pop(),r=l.pop(),a=h.pop(),_=(p+m)/2,g=s(_),f=t(g),pI(f[0],f[1],o[0],o[1],a[0],a[1]){const n=i.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(n),this.lonLabelStyleBase_},this.latLabelStyleBase_=new Ps({text:t.latLabelStyle!==void 0?t.latLabelStyle.clone():new al({font:"12px Calibri,sans-serif",textAlign:"right",fill:new Wn({color:"rgba(0,0,0,1)"}),stroke:new wn({color:"rgba(255,255,255,1)",width:3})})}),this.latLabelStyle_=i=>{const n=i.get("graticule_label");return this.latLabelStyleBase_.getText().setText(n),this.latLabelStyleBase_},this.meridiansLabels_=[],this.parallelsLabels_=[],this.addEventListener(Mi.POSTRENDER,this.drawLabels_.bind(this))),this.intervals_=t.intervals!==void 0?t.intervals:WH,this.setSource(new s0({loader:this.loaderFunction.bind(this),strategy:this.strategyFunction.bind(this),features:new kp,overlaps:!1,useSpatialIndex:!1,wrapX:t.wrapX})),this.featurePool_=[],this.lineStyle_=new Ps({stroke:this.strokeStyle_}),this.loadedExtent_=null,this.renderedExtent_=null,this.renderedResolution_=null,this.setRenderOrder(null)}strategyFunction(t,e){let i=t.slice();return this.projection_&&this.getSource().getWrapX()&&Zx(i,this.projection_),this.loadedExtent_&&(a9(this.loadedExtent_,i,e)?i=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[i]}loaderFunction(t,e,i){this.loadedExtent_=t;const n=this.getSource(),r=this.getExtent()||[-1/0,-1/0,1/0,1/0],o=He(r,t);if(this.renderedExtent_&&so(this.renderedExtent_,o)&&this.renderedResolution_===e||(this.renderedExtent_=o,this.renderedResolution_=e,po(o)))return;const a=Rs(o),l=e*e/4;(!this.projection_||!qs(this.projection_,i))&&this.updateProjectionInfo_(i),this.createGraticule_(o,a,e,l);let h=this.meridians_.length+this.parallels_.length;this.meridiansLabels_&&(h+=this.meridians_.length),this.parallelsLabels_&&(h+=this.parallels_.length);let c;for(;h>this.featurePool_.length;)c=new ys,this.featurePool_.push(c);const u=n.getFeaturesCollection();u.clear();let d=0,g,f;for(g=0,f=this.meridians_.length;gMath.PI/2;c=c!==f}const g=jH(t);for(let f=l;f<=h;++f){let p=this.meridians_.length+this.parallels_.length,m,_,y,v;if(this.meridiansLabels_)for(_=0,y=this.meridiansLabels_.length;_=l?(t[0]=a[0],t[2]=a[2]):o=!0);const h=[Dt(e[0],this.minX_,this.maxX_),Dt(e[1],this.minY_,this.maxY_)],c=this.toLonLatTransform_(h);isNaN(c[1])&&(c[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);let u=Dt(c[0],this.minLon_,this.maxLon_),d=Dt(c[1],this.minLat_,this.maxLat_);const g=this.maxLines_;let f,p,m,_,y=t;o||(y=[Dt(t[0],this.minX_,this.maxX_),Dt(t[1],this.minY_,this.maxY_),Dt(t[2],this.minX_,this.maxX_),Dt(t[3],this.minY_,this.maxY_)]);const v=nc(y,this.toLonLatTransform_,void 0,8);let S=v[3],w=v[2],C=v[1],M=v[0];if(o||(Yi(y,this.bottomLeft_)&&(M=this.minLon_,C=this.minLat_),Yi(y,this.bottomRight_)&&(w=this.maxLon_,C=this.minLat_),Yi(y,this.topLeft_)&&(M=this.minLon_,S=this.maxLat_),Yi(y,this.topRight_)&&(w=this.maxLon_,S=this.maxLat_),S=Dt(S,d,this.maxLat_),w=Dt(w,u,this.maxLon_),C=Dt(C,this.minLat_,d),M=Dt(M,this.minLon_,u)),u=Math.floor(u/r)*r,_=Dt(u,this.minLon_,this.maxLon_),p=this.addMeridian_(_,C,S,n,t,0),f=0,o)for(;(_-=r)>=M&&f++n[o]&&(r=o,o=1);const a=Math.max(e[1],n[r]),l=Math.min(e[3],n[o]),h=Dt(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,a,l),c=[n[r-1]+(n[o-1]-n[r-1])*(h-n[r])/(n[o]-n[r]),h],u=this.meridiansLabels_[i].geom;return u.setCoordinates(c),u}getMeridians(){return this.meridians_}getParallel_(t,e,i,n,r){const o=UH(t,e,i,this.projection_,n);let a=this.parallels_[r];return a?(a.setFlatCoordinates("XY",o),a.changed()):a=new ls(o,"XY"),a}getParallelPoint_(t,e,i){const n=t.getFlatCoordinates();let r=0,o=n.length-2;n[r]>n[o]&&(r=o,o=0);const a=Math.max(e[0],n[r]),l=Math.min(e[2],n[o]),h=Dt(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,a,l),c=n[r+1]+(n[o+1]-n[r+1])*(h-n[r])/(n[o]-n[r]),u=[h,c],d=this.parallelsLabels_[i].geom;return d.setCoordinates(u),d}getParallels(){return this.parallels_}updateProjectionInfo_(t){const e=st("EPSG:4326"),i=t.getWorldExtent();this.maxLat_=i[3],this.maxLon_=i[2],this.minLat_=i[1],this.minLon_=i[0];const n=vr(t,e);if(this.minLon_=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t}}const VH=XH;class kl extends Sr{constructor(t,e){super(t),this.layer=e}}const F_={LAYERS:"layers"};class i0 extends $P{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(F_.LAYERS,this.handleLayersChanged_),i?Array.isArray(i)?i=new kp(i.slice(),{unique:!0}):qt(typeof i.getArray=="function","Expected `layers` to be an array or a `Collection`"):i=new kp(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(ms),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(We(t,Yo.ADD,this.handleLayersAdd_,this),We(t,Yo.REMOVE,this.handleLayersRemove_,this));for(const i in this.listenerKeys_)this.listenerKeys_[i].forEach(ms);Mc(this.listenerKeys_);const e=t.getArray();for(let i=0,n=e.length;i{this.uniforms_.push({value:t.uniforms[o],location:e.getUniformLocation(this.renderTargetProgram_,o)})})}getGL(){return this.gl_}init(t){const e=this.getGL(),i=[e.drawingBufferWidth*this.scaleRatio_,e.drawingBufferHeight*this.scaleRatio_];if(e.bindFramebuffer(e.FRAMEBUFFER,this.getFrameBuffer()),e.bindRenderbuffer(e.RENDERBUFFER,this.getDepthBuffer()),e.viewport(0,0,i[0],i[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==i[0]||this.renderTargetTextureSize_[1]!==i[1]){this.renderTargetTextureSize_=i;const n=0,r=e.RGBA,o=0,a=e.RGBA,l=e.UNSIGNED_BYTE;e.bindTexture(e.TEXTURE_2D,this.renderTargetTexture_),e.texImage2D(e.TEXTURE_2D,n,r,i[0],i[1],o,a,l,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),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.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.renderTargetTexture_,0),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,i[0],i[1]),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.depthBuffer_)}}apply(t,e,i,n){const r=this.getGL(),o=t.size;if(r.bindFramebuffer(r.FRAMEBUFFER,e?e.getFrameBuffer():null),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,this.renderTargetTexture_),!e){const l=mt(r.canvas);if(!t.renderTargets[l]){const h=r.getContextAttributes();h&&h.preserveDrawingBuffer&&(r.clearColor(0,0,0,0),r.clearDepth(1),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT)),t.renderTargets[l]=!0}}r.disable(r.DEPTH_TEST),r.enable(r.BLEND),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.viewport(0,0,r.drawingBufferWidth,r.drawingBufferHeight),r.bindBuffer(r.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),r.useProgram(this.renderTargetProgram_),r.enableVertexAttribArray(this.renderTargetAttribLocation_),r.vertexAttribPointer(this.renderTargetAttribLocation_,2,r.FLOAT,!1,0,0),r.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),r.uniform1i(this.renderTargetTextureLocation_,0);const a=t.layerStatesArray[t.layerIndex].opacity;r.uniform1f(this.renderTargetOpacityLocation_,a),this.applyUniforms(t),i&&i(r,t),r.drawArrays(r.TRIANGLES,0,6),n&&n(r,t)}getFrameBuffer(){return this.frameBuffer_}getDepthBuffer(){return this.depthBuffer_}applyUniforms(t){const e=this.getGL();let i,n=1;this.uniforms_.forEach(function(r){if(i=typeof r.value=="function"?r.value(t):r.value,i instanceof HTMLCanvasElement||i instanceof ImageData)r.texture||(r.texture=e.createTexture()),e.activeTexture(e[`TEXTURE${n}`]),e.bindTexture(e.TEXTURE_2D,r.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),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),i instanceof ImageData?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,i.width,i.height,0,e.UNSIGNED_BYTE,new Uint8Array(i.data)):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,i),e.uniform1i(r.location,n++);else if(Array.isArray(i))switch(i.length){case 2:e.uniform2f(r.location,i[0],i[1]);return;case 3:e.uniform3f(r.location,i[0],i[1],i[2]);return;case 4:e.uniform4f(r.location,i[0],i[1],i[2],i[3]);return;default:return}else typeof i=="number"&&e.uniform1f(r.location,i)})}}function lA(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function hA(s,t){return s[0]=t[0],s[1]=t[1],s[4]=t[2],s[5]=t[3],s[12]=t[4],s[13]=t[5],s}const Or={PROJECTION_MATRIX:"u_projectionMatrix",SCREEN_TO_WORLD_MATRIX:"u_screenToWorldMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution",ROTATION:"u_rotation",VIEWPORT_SIZE_PX:"u_viewportSizePx",PIXEL_RATIO:"u_pixelRatio",HIT_DETECTION:"u_hitDetection"},nr={UNSIGNED_BYTE:qH,UNSIGNED_SHORT:ZH,UNSIGNED_INT:HH,FLOAT:aA},Xp={};function CM(s){return"shared/"+s}let TM=0;function eK(){const s="unique/"+TM;return TM+=1,s}function sK(s){let t=Xp[s];if(!t){const e=document.createElement("canvas");e.width=1,e.height=1,e.style.position="absolute",e.style.left="0",t={users:0,context:KH(e)},Xp[s]=t}return t.users+=1,t.context}function iK(s){const t=Xp[s];if(!t||(t.users-=1,t.users>0))return;const e=t.context,i=e.getExtension("WEBGL_lose_context");i&&i.loseContext();const n=e.canvas;n.width=1,n.height=1,delete Xp[s]}class nK extends Ux{constructor(t){super(),t=t||{},this.boundHandleWebGLContextLost_=this.handleWebGLContextLost.bind(this),this.boundHandleWebGLContextRestored_=this.handleWebGLContextRestored.bind(this),this.canvasCacheKey_=t.canvasCacheKey?CM(t.canvasCacheKey):eK(),this.gl_=sK(this.canvasCacheKey_),this.bufferCache_={},this.extensionCache_={},this.currentProgram_=null,this.needsToBeRecreated_=!1;const e=this.gl_.canvas;e.addEventListener(Cf.LOST,this.boundHandleWebGLContextLost_),e.addEventListener(Cf.RESTORED,this.boundHandleWebGLContextRestored_),this.offsetRotateMatrix_=ss(),this.offsetScaleMatrix_=ss(),this.tmpMat4_=lA(),this.uniformLocationsByProgram_={},this.attribLocationsByProgram_={},this.uniforms_=[],t.uniforms&&this.setUniforms(t.uniforms),this.postProcessPasses_=t.postProcesses?t.postProcesses.map(i=>new bM({webGlContext:this.gl_,scaleRatio:i.scaleRatio,vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,uniforms:i.uniforms})):[new bM({webGlContext:this.gl_})],this.shaderCompileErrors_=null,this.startTime_=Date.now()}setUniforms(t){this.uniforms_=[],this.addUniforms(t)}addUniforms(t){for(const e in t)this.uniforms_.push({name:e,value:t[e]})}canvasCacheKeyMatches(t){return this.canvasCacheKey_===CM(t)}getExtension(t){if(t in this.extensionCache_)return this.extensionCache_[t];const e=this.gl_.getExtension(t);return this.extensionCache_[t]=e,e}bindBuffer(t){const e=this.gl_,i=mt(t);let n=this.bufferCache_[i];if(!n){const r=e.createBuffer();n={buffer:t,webGlBuffer:r},this.bufferCache_[i]=n}e.bindBuffer(t.getType(),n.webGlBuffer)}flushBufferData(t){const e=this.gl_;this.bindBuffer(t),e.bufferData(t.getType(),t.getArray(),t.getUsage())}deleteBuffer(t){const e=this.gl_,i=mt(t),n=this.bufferCache_[i];n&&!e.isContextLost()&&e.deleteBuffer(n.webGlBuffer),delete this.bufferCache_[i]}disposeInternal(){const t=this.gl_.canvas;t.removeEventListener(Cf.LOST,this.boundHandleWebGLContextLost_),t.removeEventListener(Cf.RESTORED,this.boundHandleWebGLContextRestored_),iK(this.canvasCacheKey_),delete this.gl_}prepareDraw(t,e,i){const n=this.gl_,r=this.getCanvas(),o=t.size,a=t.pixelRatio;(r.width!==o[0]*a||r.height!==o[1]*a)&&(r.width=o[0]*a,r.height=o[1]*a,r.style.width=o[0]+"px",r.style.height=o[1]+"px");for(let l=this.postProcessPasses_.length-1;l>=0;l--)this.postProcessPasses_[l].init(t);n.bindTexture(n.TEXTURE_2D,null),n.clearColor(0,0,0,0),n.depthRange(0,1),n.clearDepth(1),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,e?n.ZERO:n.ONE_MINUS_SRC_ALPHA),i?(n.enable(n.DEPTH_TEST),n.depthFunc(n.LEQUAL)):n.disable(n.DEPTH_TEST)}bindTexture(t,e,i){const n=this.gl_;n.activeTexture(n.TEXTURE0+e),n.bindTexture(n.TEXTURE_2D,t),n.uniform1i(this.getUniformLocation(i),e)}prepareDrawToRenderTarget(t,e,i,n){const r=this.gl_,o=e.getSize();r.bindFramebuffer(r.FRAMEBUFFER,e.getFramebuffer()),r.bindRenderbuffer(r.RENDERBUFFER,e.getDepthbuffer()),r.viewport(0,0,o[0],o[1]),r.bindTexture(r.TEXTURE_2D,e.getTexture()),r.clearColor(0,0,0,0),r.depthRange(0,1),r.clearDepth(1),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,i?r.ZERO:r.ONE_MINUS_SRC_ALPHA),n?(r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL)):r.disable(r.DEPTH_TEST)}drawElements(t,e){const i=this.gl_;this.getExtension("OES_element_index_uint");const n=i.UNSIGNED_INT,r=4,o=e-t,a=t*r;i.drawElements(i.TRIANGLES,o,n,a)}finalizeDraw(t,e,i){for(let n=0,r=this.postProcessPasses_.length;n{if(i=typeof r.value=="function"?r.value(t):r.value,i instanceof HTMLCanvasElement||i instanceof HTMLImageElement||i instanceof ImageData||i instanceof WebGLTexture){i instanceof WebGLTexture&&!r.texture?(r.prevValue=void 0,r.texture=i):r.texture||(r.prevValue=void 0,r.texture=e.createTexture()),this.bindTexture(r.texture,n,r.name),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),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);const o=!(i instanceof HTMLImageElement)||i.complete;!(i instanceof WebGLTexture)&&o&&r.prevValue!==i&&(r.prevValue=i,e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,i)),n++}else if(Array.isArray(i)&&i.length===6)this.setUniformMatrixValue(r.name,hA(this.tmpMat4_,i));else if(Array.isArray(i)&&i.length<=4)switch(i.length){case 2:e.uniform2f(this.getUniformLocation(r.name),i[0],i[1]);return;case 3:e.uniform3f(this.getUniformLocation(r.name),i[0],i[1],i[2]);return;case 4:e.uniform4f(this.getUniformLocation(r.name),i[0],i[1],i[2],i[3]);return;default:return}else typeof i=="number"&&e.uniform1f(this.getUniformLocation(r.name),i)})}useProgram(t,e){this.gl_.useProgram(t),this.currentProgram_=t,this.applyFrameState(e),this.applyUniforms(e)}compileShader(t,e){const i=this.gl_,n=i.createShader(e);return i.shaderSource(n,t),i.compileShader(n),n}getProgram(t,e){const i=this.gl_,n=this.compileShader(t,i.FRAGMENT_SHADER),r=this.compileShader(e,i.VERTEX_SHADER),o=i.createProgram();if(i.attachShader(o,n),i.attachShader(o,r),i.linkProgram(o),!i.getShaderParameter(n,i.COMPILE_STATUS)){const a=`Fragment shader compilation failed: ${i.getShaderInfoLog(n)}`;throw new Error(a)}if(i.deleteShader(n),!i.getShaderParameter(r,i.COMPILE_STATUS)){const a=`Vertex shader compilation failed: ${i.getShaderInfoLog(r)}`;throw new Error(a)}if(i.deleteShader(r),!i.getProgramParameter(o,i.LINK_STATUS)){const a=`GL program linking failed: ${i.getProgramInfoLog(o)}`;throw new Error(a)}return o}getUniformLocation(t){const e=mt(this.currentProgram_);return this.uniformLocationsByProgram_[e]===void 0&&(this.uniformLocationsByProgram_[e]={}),this.uniformLocationsByProgram_[e][t]===void 0&&(this.uniformLocationsByProgram_[e][t]=this.gl_.getUniformLocation(this.currentProgram_,t)),this.uniformLocationsByProgram_[e][t]}getAttributeLocation(t){const e=mt(this.currentProgram_);return this.attribLocationsByProgram_[e]===void 0&&(this.attribLocationsByProgram_[e]={}),this.attribLocationsByProgram_[e][t]===void 0&&(this.attribLocationsByProgram_[e][t]=this.gl_.getAttribLocation(this.currentProgram_,t)),this.attribLocationsByProgram_[e][t]}makeProjectionTransform(t,e){const i=t.size,n=t.viewState.rotation,r=t.viewState.resolution,o=t.viewState.center;return xn(e,0,0,2/(r*i[0]),2/(r*i[1]),-n,-o[0],-o[1]),e}setUniformFloatValue(t,e){this.gl_.uniform1f(this.getUniformLocation(t),e)}setUniformFloatVec2(t,e){this.gl_.uniform2fv(this.getUniformLocation(t),e)}setUniformFloatVec4(t,e){this.gl_.uniform4fv(this.getUniformLocation(t),e)}setUniformMatrixValue(t,e){this.gl_.uniformMatrix4fv(this.getUniformLocation(t),!1,e)}enableAttributeArray_(t,e,i,n,r){const o=this.getAttributeLocation(t);o<0||(this.gl_.enableVertexAttribArray(o),this.gl_.vertexAttribPointer(o,e,i,!1,n,r))}enableAttributes(t){const e=rK(t);let i=0;for(let n=0;nthis.size_[0]||e>=this.size_[1])return Kn[0]=0,Kn[1]=0,Kn[2]=0,Kn[3]=0,Kn;this.readAll();const i=Math.floor(t)+(this.size_[1]-Math.floor(e)-1)*this.size_[0];return Kn[0]=this.data_[i*4],Kn[1]=this.data_[i*4+1],Kn[2]=this.data_[i*4+2],Kn[3]=this.data_[i*4+3],Kn}getTexture(){return this.texture_}getFramebuffer(){return this.framebuffer_}getDepthbuffer(){return this.depthbuffer_}updateSize_(){const t=this.size_,e=this.helper_.getGL();this.texture_=this.helper_.createTexture(t,null,this.texture_),e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer_),e.viewport(0,0,t[0],t[1]),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.texture_,0),e.bindRenderbuffer(e.RENDERBUFFER,this.depthbuffer_),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,t[0],t[1]),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.depthbuffer_),this.data_=new Uint8Array(t[0]*t[1]*4)}}const RM={GENERATE_POLYGON_BUFFERS:"GENERATE_POLYGON_BUFFERS",GENERATE_POINT_BUFFERS:"GENERATE_POINT_BUFFERS",GENERATE_LINE_STRING_BUFFERS:"GENERATE_LINE_STRING_BUFFERS"},IM=.985;function aK(s,t){t=t||[];const e=256,i=e-1;return t[0]=Math.floor(s/e/e/e)/i,t[1]=Math.floor(s/e/e)%e/i,t[2]=Math.floor(s/e)%e/i,t[3]=s%e/i,t}function lK(s){let t=0;const e=256,i=e-1;return t+=Math.round(s[0]*e*e*e*i),t+=Math.round(s[1]*e*e*i),t+=Math.round(s[2]*e*i),t+=Math.round(s[3]*i),t}function hK(){const s='const t="GENERATE_POLYGON_BUFFERS",e="GENERATE_POINT_BUFFERS",n="GENERATE_LINE_STRING_BUFFERS";function r(t,e){const n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function x(t,e){const n=(r=e)[0]*r[3]-r[1]*r[2];var r;!function(t,e){if(!t)throw new Error(e)}(0!==n,"Transformation matrix cannot be inverted");const x=e[0],o=e[1],u=e[2],i=e[3],f=e[4],s=e[5];return t[0]=i/n,t[1]=-o/n,t[2]=-u/n,t[3]=x/n,t[4]=(u*s-i*f)/n,t[5]=-(x*s-o*f)/n,t}function o(t,e,n=2){const r=e&&e.length,x=r?e[0]*n:t.length;let o=u(t,0,x,n,!0);const i=[];if(!o||o.next===o.prev)return i;let s,l,c;if(r&&(o=function(t,e,n,r){const x=[];for(let n=0,o=e.length;n80*n){s=1/0,l=1/0;let e=-1/0,r=-1/0;for(let o=n;oe&&(e=n),x>r&&(r=x)}c=Math.max(e-s,r-l),c=0!==c?32767/c:0}return f(o,i,n,s,l,c,0),i}function u(t,e,n,r,x){let o;if(x===function(t,e,n,r){let x=0;for(let o=e,u=n-r;o0)for(let x=e;x=e;x-=r)o=z(x/r|0,t[x],t[x+1],o);return o&&M(o,o.next)&&(F(o),o=o.next),o}function i(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!M(r,r.next)&&0!==d(r.prev,r,r.next))r=r.next;else{if(F(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function f(t,e,n,r,x,o,u){if(!t)return;!u&&o&&function(t,e,n,r){let x=t;do{0===x.z&&(x.z=v(x.x,x.y,e,n,r)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next}while(x!==t);x.prevZ.nextZ=null,x.prevZ=null,function(t){let e,n=1;do{let r,x=t;t=null;let o=null;for(e=0;x;){e++;let u=x,i=0;for(let t=0;t0||f>0&&u;)0!==i&&(0===f||!u||x.z<=u.z)?(r=x,x=x.nextZ,i--):(r=u,u=u.nextZ,f--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;x=u}o.nextZ=null,n*=2}while(e>1)}(x)}(t,r,x,o);let y=t;for(;t.prev!==t.next;){const h=t.prev,p=t.next;if(o?l(t,r,x,o):s(t))e.push(h.i,t.i,p.i),F(t),t=p.next,y=p.next;else if((t=p)===y){u?1===u?f(t=c(i(t),e),e,n,r,x,o,2):2===u&&a(t,e,n,r,x,o):f(i(t),e,n,r,x,o,1);break}}}function s(t){const e=t.prev,n=t,r=t.next;if(d(e,n,r)>=0)return!1;const x=e.x,o=n.x,u=r.x,i=e.y,f=n.y,s=r.y,l=xo?x>u?x:u:o>u?o:u,y=i>f?i>s?i:s:f>s?f:s;let h=r.next;for(;h!==e;){if(h.x>=l&&h.x<=a&&h.y>=c&&h.y<=y&&b(x,i,o,f,u,s,h.x,h.y)&&d(h.prev,h,h.next)>=0)return!1;h=h.next}return!0}function l(t,e,n,r){const x=t.prev,o=t,u=t.next;if(d(x,o,u)>=0)return!1;const i=x.x,f=o.x,s=u.x,l=x.y,c=o.y,a=u.y,y=if?i>s?i:s:f>s?f:s,g=l>c?l>a?l:a:c>a?c:a,Z=v(y,h,e,n,r),M=v(p,g,e,n,r);let w=t.prevZ,m=t.nextZ;for(;w&&w.z>=Z&&m&&m.z<=M;){if(w.x>=y&&w.x<=p&&w.y>=h&&w.y<=g&&w!==x&&w!==u&&b(i,l,f,c,s,a,w.x,w.y)&&d(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,m.x>=y&&m.x<=p&&m.y>=h&&m.y<=g&&m!==x&&m!==u&&b(i,l,f,c,s,a,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;w&&w.z>=Z;){if(w.x>=y&&w.x<=p&&w.y>=h&&w.y<=g&&w!==x&&w!==u&&b(i,l,f,c,s,a,w.x,w.y)&&d(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;m&&m.z<=M;){if(m.x>=y&&m.x<=p&&m.y>=h&&m.y<=g&&m!==x&&m!==u&&b(i,l,f,c,s,a,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function c(t,e){let n=t;do{const r=n.prev,x=n.next.next;!M(r,x)&&w(r,n,n.next,x)&&E(r,x)&&E(x,r)&&(e.push(r.i,n.i,x.i),F(n),F(n.next),n=t=x),n=n.next}while(n!==t);return i(n)}function a(t,e,n,r,x,o){let u=t;do{let t=u.next.next;for(;t!==u.prev;){if(u.i!==t.i&&Z(u,t)){let s=I(u,t);return u=i(u,u.next),s=i(s,s.next),f(u,e,n,r,x,o,0),void f(s,e,n,r,x,o,0)}t=t.next}u=u.next}while(u!==t)}function y(t,e){return t.x-e.x}function h(t,e){const n=function(t,e){let n=e;const r=t.x,x=t.y;let o,u=-1/0;do{if(x<=n.y&&x>=n.next.y&&n.next.y!==n.y){const t=n.x+(x-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>u&&(u=t,o=n.x=n.x&&n.x>=f&&r!==n.x&&b(xo.x||n.x===o.x&&p(o,n)))&&(o=n,l=e)}n=n.next}while(n!==i);return o}(t,e);if(!n)return e;const r=I(n,t);return i(r,r.next),i(n,n.next)}function p(t,e){return d(t.prev,t,e.prev)<0&&d(e.next,t,t.next)<0}function v(t,e,n,r,x){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*x|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*x|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){let e=t,n=t;do{(e.x=(t-u)*(o-i)&&(t-u)*(r-i)>=(n-u)*(e-i)&&(n-u)*(o-i)>=(x-u)*(r-i)}function Z(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(E(t,e)&&E(e,t)&&function(t,e){let n=t,r=!1;const x=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&x<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(d(t.prev,t,e.prev)||d(t,e.prev,e))||M(t,e)&&d(t.prev,t,t.next)>0&&d(e.prev,e,e.next)>0)}function d(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function M(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){const x=A(d(t,e,n)),o=A(d(t,e,r)),u=A(d(n,r,t)),i=A(d(n,r,e));return x!==o&&u!==i||(!(0!==x||!m(t,n,e))||(!(0!==o||!m(t,r,e))||(!(0!==u||!m(n,t,r))||!(0!==i||!m(n,e,r)))))}function m(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function A(t){return t>0?1:t<0?-1:0}function E(t,e){return d(t.prev,t,t.next)<0?d(t,e,t.next)>=0&&d(t,t.prev,e)>=0:d(t,e,t.prev)<0||d(t,t.next,e)<0}function I(t,e){const n=P(t.i,t.x,t.y),r=P(e.i,e.x,e.y),x=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=x,x.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function z(t,e,n,r){const x=P(t,e,n);return r?(x.next=r.next,x.prev=r,r.next.prev=x,r.next=x):(x.prev=x,x.next=x),x}function F(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function P(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}new Array(6);const B=[],N={vertexPosition:0,indexPosition:0};function R(t,e,n,r,x){t[e+0]=n,t[e+1]=r,t[e+2]=x}function S(t,e,n,r,x,o){const u=3+x,i=t[e+0],f=t[e+1],s=B;s.length=x;for(let n=0;n0?f:2*Math.PI-f}let Z=-1,d=-1,M=c;const w=null!==o;if(null!==x){Z=b(v,g,r(s,[...[t[x],t[x+1]]])),Math.cos(Z)<=.985&&(M+=Math.tan((Z-Math.PI)/2))}if(w){d=b(g,v,r(s,[...[t[o],t[o+1]]])),Math.cos(d)<=.985&&(M+=Math.tan((Math.PI-d)/2))}function m(t,e){return 0===e?1e4*t:Math.sign(e)*(1e4*t+Math.abs(e))}return u.push(h[0],h[1],p[0],p[1],Z,d,l,m(0,c)),u.push(...f),u.push(h[0],h[1],p[0],p[1],Z,d,l,m(1,c)),u.push(...f),u.push(h[0],h[1],p[0],p[1],Z,d,l,m(2,c)),u.push(...f),u.push(h[0],h[1],p[0],p[1],Z,d,l,m(3,c)),u.push(...f),i.push(y,y+1,y+2,y+1,y+3,y+2),{length:l+Math.sqrt((g[0]-v[0])*(g[0]-v[0])+(g[1]-v[1])*(g[1]-v[1])),angle:M}}function _(t,e,n,r,x){const u=2+x;let i=e;const f=t.slice(i,i+x);i+=x;const s=t[i++];let l=0;const c=new Array(s-1);for(let e=0;e{const o=r.data;switch(o.type){case e:{const t=3,e=2,n=o.customAttributesSize,r=e+n,x=new Float32Array(o.renderInstructions),u=x.length/r,i=4*u*(n+t),f=new Uint32Array(6*u),s=new Float32Array(i);let l;for(let t=0;t0?h=i+(n-1)*r:c&&(h=o-r);let p=null;n"u"?"data:application/javascript;base64,"+Buffer.from(s,"binary").toString("base64"):URL.createObjectURL(new Blob([s],{type:"application/javascript"})))}function cK(s,t){const e=s.viewState.projection,i=t.getSource().getWrapX()&&e.canWrapX(),n=e.getExtent(),r=s.extent,o=i?Rt(n):null,a=i?Math.ceil((r[2]-n[2])/o)+1:1;return[i?Math.floor((r[0]-n[0])/o):0,a,o]}class uA extends o0{constructor(t,e){const i=e.uniforms||{},n=ss();i[Or.PROJECTION_MATRIX]=n,super(t,{uniforms:i,postProcesses:e.postProcesses}),this.sourceRevision_=-1,this.verticesBuffer_=new Wp(n0,hy),this.indicesBuffer_=new Wp(r0,hy),this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.program_,this.hitDetectionEnabled_=e.hitDetectionEnabled??!0;const r=e.attributes?e.attributes.map(function(a){return{name:"a_prop_"+a.name,size:1,type:nr.FLOAT}}):[];this.attributes=[{name:"a_position",size:2,type:nr.FLOAT},{name:"a_index",size:1,type:nr.FLOAT}],this.hitDetectionEnabled_&&(this.attributes.push({name:"a_prop_hitColor",size:4,type:nr.FLOAT}),this.attributes.push({name:"a_featureUid",size:1,type:nr.FLOAT})),this.attributes.push(...r),this.customAttributes=e.attributes?e.attributes:[],this.previousExtent_=Zs(),this.currentTransform_=n,this.renderTransform_=ss(),this.invertRenderTransform_=ss(),this.renderInstructions_=new Float32Array(0),this.hitRenderTarget_,this.lastSentId=0,this.worker_=hK(),this.worker_.addEventListener("message",a=>{const l=a.data;if(l.type===RM.GENERATE_POINT_BUFFERS){const h=l.projectionTransform;this.verticesBuffer_.fromArrayBuffer(l.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_),this.indicesBuffer_.fromArrayBuffer(l.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=h,hI(this.invertRenderTransform_,this.renderTransform_),this.renderInstructions_=new Float32Array(a.data.renderInstructions),l.id===this.lastSentId&&(this.ready=!0),this.getLayer().changed()}}),this.featureCache_={},this.featureCount_=0;const o=this.getLayer().getSource();this.sourceListenKeys_=[We(o,zs.ADDFEATURE,this.handleSourceFeatureAdded_,this),We(o,zs.CHANGEFEATURE,this.handleSourceFeatureChanged_,this),We(o,zs.REMOVEFEATURE,this.handleSourceFeatureDelete_,this),We(o,zs.CLEAR,this.handleSourceFeatureClear_,this)],o.forEachFeature(a=>{this.featureCache_[mt(a)]={feature:a,properties:a.getProperties(),geometry:a.getGeometry()},this.featureCount_++})}afterHelperCreated(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitRenderTarget_=new oK(this.helper))}handleSourceFeatureAdded_(t){const e=t.feature;this.featureCache_[mt(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++}handleSourceFeatureChanged_(t){const e=t.feature;this.featureCache_[mt(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()}}handleSourceFeatureDelete_(t){const e=t.feature;delete this.featureCache_[mt(e)],this.featureCount_--}handleSourceFeatureClear_(){this.featureCache_={},this.featureCount_=0}renderFrame(t){const e=this.helper.getGL();this.preRender(e,t);const[i,n,r]=cK(t,this.getLayer());return this.renderWorlds(t,!1,i,n,r),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent),this.hitDetectionEnabled_&&(this.renderWorlds(t,!0,i,n,r),this.hitRenderTarget_.clearCachedData()),this.postRender(e,t),this.helper.getCanvas()}prepareFrameInternal(t){const e=this.getLayer(),i=e.getSource(),n=t.viewState,r=!t.viewHints[Ie.ANIMATING]&&!t.viewHints[Ie.INTERACTING],o=!so(this.previousExtent_,t.extent),a=this.sourceRevision_t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){vt()}getAlpha(t,e){if(!this.transition_)return 1;let i=this.transitionStarts_[t];if(!i)i=e,this.transitionStarts_[t]=i;else if(i===-1)return 1;const n=e-i+1e3/60;return n>=this.transition_?1:jP(n/this.transition_)}inTransition(t){return this.transition_?this.transitionStarts_[t]!==-1:!1}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}function uc(s){return s instanceof Image||s instanceof HTMLCanvasElement||s instanceof HTMLVideoElement||s instanceof ImageBitmap?s:null}function cy(s){return s instanceof Uint8Array||s instanceof Uint8ClampedArray||s instanceof Float32Array||s instanceof DataView?s:null}const dK=new Error("disposed");let $l=null;function gK(s){$l||($l=Se(s.width,s.height,void 0,{willReadFrequently:!0}));const t=$l.canvas,e=s.width;t.width!==e&&(t.width=e);const i=s.height;return t.height!==i&&(t.height=i),$l.clearRect(0,0,e,i),$l.drawImage(s,0,0),$l.getImageData(0,0,e,i).data}const fK=[256,256];class kd extends Oc{constructor(t){const e=X.IDLE;super(t.tileCoord,e,{transition:t.transition,interpolate:t.interpolate}),this.loader_=t.loader,this.data_=null,this.error_=null,this.size_=t.size||null,this.controller_=t.controller||null}getSize(){if(this.size_)return this.size_;const t=uc(this.data_);return t?[t.width,t.height]:fK}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==X.IDLE&&this.state!==X.ERROR)return;this.state=X.LOADING,this.changed();const t=this;this.loader_().then(function(e){t.data_=e,t.state=X.LOADED,t.changed()}).catch(function(e){t.error_=e,t.state=X.ERROR,t.changed()})}disposeInternal(){this.controller_&&(this.controller_.abort(dK),this.controller_=null),super.disposeInternal()}}const pK=10,PM=.25;class Hv{constructor(t,e,i,n,r,o){this.sourceProj_=t,this.targetProj_=e;let a={};const l=vr(this.targetProj_,this.sourceProj_);this.transformInv_=function(y){const v=y[0]+"/"+y[1];return a[v]||(a[v]=l(y)),a[v]},this.maxSourceExtent_=n,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&Rt(n)>=Rt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Rt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Rt(this.targetProj_.getExtent()):null;const h=fo(i),c=yg(i),u=Nm(i),d=_g(i),g=this.transformInv_(h),f=this.transformInv_(c),p=this.transformInv_(u),m=this.transformInv_(d),_=pK+(o?Math.max(0,Math.ceil(Math.log2(Cd(i)/(o*o*256*256)))):0);if(this.addQuad_(h,c,u,d,g,f,p,m,_),this.wrapsXInSource_){let y=1/0;this.triangles_.forEach(function(v,S,w){y=Math.min(y,v.source[0][0],v.source[1][0],v.source[2][0])}),this.triangles_.forEach(v=>{if(Math.max(v.source[0][0],v.source[1][0],v.source[2][0])-y>this.sourceWorldWidth_/2){const S=[[v.source[0][0],v.source[0][1]],[v.source[1][0],v.source[1][1]],[v.source[2][0],v.source[2][1]]];S[0][0]-y>this.sourceWorldWidth_/2&&(S[0][0]-=this.sourceWorldWidth_),S[1][0]-y>this.sourceWorldWidth_/2&&(S[1][0]-=this.sourceWorldWidth_),S[2][0]-y>this.sourceWorldWidth_/2&&(S[2][0]-=this.sourceWorldWidth_);const w=Math.min(S[0][0],S[1][0],S[2][0]);Math.max(S[0][0],S[1][0],S[2][0])-w.5&&u<1;let f=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const m=ic([t,e,i,n]);f=Rt(m)/this.targetWorldWidth_>PM||f}!g&&this.sourceProj_.isGlobal()&&u&&(f=u>PM||f)}if(!f&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!Ce(c,this.maxSourceExtent_))return;let p=0;if(!f&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1]))){if(h>0)f=!0;else if(p=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(a[0])||!isFinite(a[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),p!=1&&p!=2&&p!=4&&p!=8)return}if(h>0){if(!f){const m=[(t[0]+i[0])/2,(t[1]+i[1])/2],_=this.transformInv_(m);let y;g?y=(kn(r[0],d)+kn(a[0],d))/2-kn(_[0],d):y=(r[0]+a[0])/2-_[0];const v=(r[1]+a[1])/2-_[1];f=y*y+v*v>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const m=[(e[0]+i[0])/2,(e[1]+i[1])/2],_=this.transformInv_(m),y=[(n[0]+t[0])/2,(n[1]+t[1])/2],v=this.transformInv_(y);this.addQuad_(t,e,m,y,r,o,_,v,h-1),this.addQuad_(y,m,i,n,v,_,a,l,h-1)}else{const m=[(t[0]+e[0])/2,(t[1]+e[1])/2],_=this.transformInv_(m),y=[(i[0]+n[0])/2,(i[1]+n[1])/2],v=this.transformInv_(y);this.addQuad_(t,m,y,n,r,_,v,l,h-1),this.addQuad_(m,e,i,y,_,o,a,v,h-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}p&11||this.addTriangle_(t,i,n,r,a,l),p&14||this.addTriangle_(t,i,e,r,a,o),p&&(p&13||this.addTriangle_(e,n,t,o,l,r),p&7||this.addTriangle_(e,n,i,o,l,a))}calculateSourceExtent(){const t=Zs();return this.triangles_.forEach(function(e,i,n){const r=e.source;Wu(t,r[0]),Wu(t,r[1]),Wu(t,r[2])}),t}getTriangles(){return this.triangles_}}let D_;const Jr=[];function AM(s,t,e,i,n){s.beginPath(),s.moveTo(0,0),s.lineTo(t,e),s.lineTo(i,n),s.closePath(),s.save(),s.clip(),s.fillRect(0,0,Math.max(t,i)+1,Math.max(e,n)),s.restore()}function k_(s,t){return Math.abs(s[t*4]-210)>2||Math.abs(s[t*4+3]-.75*255)>2}function mK(){if(D_===void 0){const s=Se(6,6,Jr);s.globalCompositeOperation="lighter",s.fillStyle="rgba(210, 0, 0, 0.75)",AM(s,4,5,4,0),AM(s,4,5,0,5);const t=s.getImageData(0,0,3,3).data;D_=k_(t,0)||k_(t,4)||k_(t,8),ol(s),Jr.push(s.canvas)}return D_}function $d(s,t,e,i){const n=Dm(e,t,s);let r=a2(t,i,e);const o=t.getMetersPerUnit();o!==void 0&&(r*=o);const a=s.getMetersPerUnit();a!==void 0&&(r/=a);const l=s.getExtent();if(!l||Yi(l,n)){const h=a2(s,r,n)/r;isFinite(h)&&h>0&&(r/=h)}return r}function dA(s,t,e,i){const n=Rs(e);let r=$d(s,t,n,i);return(!isFinite(r)||r<=0)&&dI(e,function(o){return r=$d(s,t,o,i),isFinite(r)&&r>0}),r}function Kv(s,t,e,i,n,r,o,a,l,h,c,u,d,g){const f=Se(Math.round(e*s),Math.round(e*t),Jr);if(u||(f.imageSmoothingEnabled=!1),l.length===0)return f.canvas;f.scale(e,e);function p(w){return Math.round(w*e)/e}f.globalCompositeOperation="lighter";const m=Zs();l.forEach(function(w,C,M){cI(m,w.extent)});let _;const y=e/i,v=(u?1:1+Math.pow(2,-24))/y;if(!d||l.length!==1||h!==0){if(_=Se(Math.round(Rt(m)*y),Math.round(Ee(m)*y),Jr),u||(_.imageSmoothingEnabled=!1),n&&g){const w=(n[0]-m[0])*y,C=-(n[3]-m[3])*y,M=Rt(n)*y,T=Ee(n)*y;_.rect(w,C,M,T),_.clip()}l.forEach(function(w,C,M){if(w.image.width>0&&w.image.height>0){if(w.clipExtent){_.save();const D=(w.clipExtent[0]-m[0])*y,x=-(w.clipExtent[3]-m[3])*y,E=Rt(w.clipExtent)*y,b=Ee(w.clipExtent)*y;_.rect(u?D:Math.round(D),u?x:Math.round(x),u?E:Math.round(D+E)-Math.round(D),u?b:Math.round(x+b)-Math.round(x)),_.clip()}const T=(w.extent[0]-m[0])*y,I=-(w.extent[3]-m[3])*y,O=Rt(w.extent)*y,P=Ee(w.extent)*y;_.drawImage(w.image,h,h,w.image.width-2*h,w.image.height-2*h,u?T:Math.round(T),u?I:Math.round(I),u?O:Math.round(T+O)-Math.round(T),u?P:Math.round(I+P)-Math.round(I)),w.clipExtent&&_.restore()}})}const S=fo(o);return a.getTriangles().forEach(function(w,C,M){const T=w.source,I=w.target;let O=T[0][0],P=T[0][1],D=T[1][0],x=T[1][1],E=T[2][0],b=T[2][1];const R=p((I[0][0]-S[0])/r),A=p(-(I[0][1]-S[1])/r),$=p((I[1][0]-S[0])/r),G=p(-(I[1][1]-S[1])/r),k=p((I[2][0]-S[0])/r),z=p(-(I[2][1]-S[1])/r),V=O,et=P;O=0,P=0,D-=V,x-=et,E-=V,b-=et;const F=[[D,x,0,0,$-R],[E,b,0,0,k-R],[0,0,D,x,G-A],[0,0,E,b,z-A]],ot=E9(F);if(!ot)return;if(f.save(),f.beginPath(),mK()||!u){f.moveTo($,G);const pt=4,Gt=R-$,Kt=A-G;for(let bt=0;btPromise.resolve(new Uint8ClampedArray(4)),interpolate:t.interpolate,transition:t.transition}),this.pixelRatio_=t.pixelRatio,this.gutter_=t.gutter,this.reprojData_=null,this.reprojError_=null,this.reprojSize_=void 0,this.sourceTileGrid_=t.sourceTileGrid,this.targetTileGrid_=t.targetTileGrid,this.wrappedTileCoord_=t.wrappedTileCoord||t.tileCoord,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const e=t.sourceProj,i=e.getExtent(),n=t.sourceTileGrid.getExtent();this.clipExtent_=e.canWrapX()?n?He(i,n):i:n;const r=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),o=this.targetTileGrid_.getExtent();let a=this.sourceTileGrid_.getExtent();const l=o?He(r,o):r;if(Cd(l)===0){this.state=X.EMPTY;return}i&&(a?a=He(a,i):a=i);const h=this.targetTileGrid_.getResolution(this.wrappedTileCoord_[0]),c=t.targetProj,u=dA(e,c,l,h);if(!isFinite(u)||u<=0){this.state=X.EMPTY;return}const d=t.errorThreshold!==void 0?t.errorThreshold:Zv;if(this.triangulation_=new Hv(e,c,l,a,u*d,h),this.triangulation_.getTriangles().length===0){this.state=X.EMPTY;return}this.sourceZ_=this.sourceTileGrid_.getZForResolution(u);let g=this.triangulation_.calculateSourceExtent();if(a&&(e.canWrapX()?(g[1]=Dt(g[1],a[1],a[3]),g[3]=Dt(g[3],a[1],a[3])):g=He(g,a)),!Cd(g))this.state=X.EMPTY;else{let f=0,p=0;e.canWrapX()&&(f=Rt(i),p=Math.floor((g[0]-i[0])/f)),Hx(g.slice(),e,!0).forEach(m=>{const _=this.sourceTileGrid_.getTileRangeForExtentAndZ(m,this.sourceZ_),y=t.getTileFunction;for(let v=_.minX;v<=_.maxX;v++)for(let S=_.minY;S<=_.maxY;S++){const w=y(this.sourceZ_,v,S,this.pixelRatio_);if(w){const C=p*f;this.sourceTiles_.push({tile:w,offset:C})}}++p}),this.sourceTiles_.length===0&&(this.state=X.EMPTY)}}getSize(){return this.reprojSize_}getData(){return this.reprojData_}getError(){return this.reprojError_}reproject_(){const t=[];let e=!1;if(this.sourceTiles_.forEach(f=>{var p;const m=f.tile;if(!m||m.getState()!==X.LOADED)return;const _=m.getSize(),y=this.gutter_;let v;const S=cy(m.getData());S?v=S:(e=!0,v=gK(uc(m.getData())));const w=[_[0]+2*y,_[1]+2*y],C=v instanceof Float32Array,M=w[0]*w[1],T=C?Float32Array:Uint8ClampedArray,I=new T(v.buffer),O=T.BYTES_PER_ELEMENT,P=O*I.length/M,D=I.byteLength/w[1],x=Math.floor(D/O/w[0]),E=M*x;let b=I;if(I.length!==E){b=new T(E);let $=0,G=0;const k=w[0]*x;for(let z=0;z=0;--f){const p=[];for(let w=0,C=t.length;w{const i=e.getState();if(i!==X.IDLE&&i!==X.LOADING)return;t++;const n=We(e,Zt.CHANGE,()=>{const r=e.getState();(r==X.LOADED||r==X.ERROR||r==X.EMPTY)&&(ms(n),t--,t===0&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(n)}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:e}){e.getState()==X.IDLE&&e.load()})}unlistenSources_(){this.sourcesListenerKeys_.forEach(ms),this.sourcesListenerKeys_=null}}class Ag extends Oc{constructor(t,e,i,n,r,o,a,l,h,c,u,d){super(r,X.IDLE,d),this.renderEdges_=u!==void 0?u:!1,this.pixelRatio_=a,this.gutter_=l,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=n,this.wrappedTileCoord_=o||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=t.canWrapX()?t.getExtent():void 0;const g=n.getTileCoordExtent(this.wrappedTileCoord_),f=this.targetTileGrid_.getExtent();let p=this.sourceTileGrid_.getExtent();const m=f?He(g,f):g;if(Cd(m)===0){this.state=X.EMPTY;return}const _=t.getExtent();_&&(p?p=He(p,_):p=_);const y=n.getResolution(this.wrappedTileCoord_[0]),v=dA(t,i,m,y);if(!isFinite(v)||v<=0){this.state=X.EMPTY;return}const S=c!==void 0?c:Zv;if(this.triangulation_=new Hv(t,i,m,p,v*S,y),this.triangulation_.getTriangles().length===0){this.state=X.EMPTY;return}this.sourceZ_=e.getZForResolution(v);let w=this.triangulation_.calculateSourceExtent();if(p&&(t.canWrapX()?(w[1]=Dt(w[1],p[1],p[3]),w[3]=Dt(w[3],p[1],p[3])):w=He(w,p)),!Cd(w))this.state=X.EMPTY;else{let C=0,M=0;t.canWrapX()&&(C=Rt(_),M=Math.floor((w[0]-_[0])/C)),Hx(w.slice(),t,!0).forEach(T=>{const I=e.getTileRangeForExtentAndZ(T,this.sourceZ_);for(let O=I.minX;O<=I.maxX;O++)for(let P=I.minY;P<=I.maxY;P++){const D=h(this.sourceZ_,O,P,a);if(D){const x=M*C;this.sourceTiles_.push({tile:D,offset:x})}}++M}),this.sourceTiles_.length===0&&(this.state=X.EMPTY)}}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach(e=>{var i;const n=e.tile;if(n&&n.getState()==X.LOADED){const r=this.sourceTileGrid_.getTileCoordExtent(n.tileCoord);r[0]+=e.offset,r[2]+=e.offset;const o=(i=this.clipExtent_)==null?void 0:i.slice();o&&(o[0]+=e.offset,o[2]+=e.offset),t.push({extent:r,clipExtent:o,image:n.getImage()})}}),this.sourceTiles_.length=0,t.length===0)this.state=X.ERROR;else{const e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n=typeof i=="number"?i:i[0],r=typeof i=="number"?i:i[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Kv(n,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=X.LOADED}this.changed()}load(){if(this.state==X.IDLE){this.state=X.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(({tile:e})=>{const i=e.getState();if(i==X.IDLE||i==X.LOADING){t++;const n=We(e,Zt.CHANGE,r=>{const o=e.getState();(o==X.LOADED||o==X.ERROR||o==X.EMPTY)&&(ms(n),t--,t===0&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(n)}}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:e},i,n){e.getState()==X.IDLE&&e.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(ms),this.sourcesListenerKeys_=null}release(){this.canvas_&&(ol(this.canvas_.getContext("2d")),Jr.push(this.canvas_),this.canvas_=null),super.release()}}class Lg extends Oc{constructor(t,e,i,n,r,o){super(t,e,o),this.crossOrigin_=n,this.src_=i,this.key=i,this.image_=new Image,n!==null&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=X.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=X.ERROR,this.unlistenImage_(),this.image_=_K(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=X.LOADED:this.state=X.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==X.ERROR&&(this.state=X.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==X.IDLE&&(this.state=X.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=KB(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function _K(){const s=Se(1,1);return s.fillStyle="rgba(0,0,0,0)",s.fillRect(0,0,1,1),s.canvas}class yK extends fg{constructor(t){super(),this.tile,this.handleTileChange_=this.handleTileChange_.bind(this),this.gutter=t.gutter||0,this.helper=t.helper,this.loaded=!1,this.ready=!1}setTile(t){if(t!==this.tile)if(this.tile&&this.tile.removeEventListener(Zt.CHANGE,this.handleTileChange_),this.tile=t,this.loaded=t.getState()===X.LOADED,this.loaded)this.uploadTile();else{if(t instanceof Lg){const e=t.getImage();e instanceof Image&&!e.crossOrigin&&(e.crossOrigin="anonymous")}t.addEventListener(Zt.CHANGE,this.handleTileChange_)}}uploadTile(){vt()}setReady(){this.ready=!0,this.dispatchEvent(Zt.CHANGE)}handleTileChange_(){this.tile.getState()===X.LOADED&&(this.loaded=!0,this.uploadTile())}disposeInternal(){this.tile.removeEventListener(Zt.CHANGE,this.handleTileChange_)}}function gA(s,t,e){const i=e?s.LINEAR:s.NEAREST;s.bindTexture(s.TEXTURE_2D,t),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,i),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,i)}function xK(s,t,e,i){gA(s,t,i),s.texImage2D(s.TEXTURE_2D,0,s.RGBA,s.RGBA,s.UNSIGNED_BYTE,e)}function LM(s,t,e,i,n,r){const o=s.getGL();let a,l;e instanceof Float32Array?(a=o.FLOAT,s.getExtension("OES_texture_float"),l=s.getExtension("OES_texture_float_linear")!==null):(a=o.UNSIGNED_BYTE,l=!0),gA(o,t,r&&l);const h=e.byteLength/i[1];let c=1;h%8===0?c=8:h%4===0?c=4:h%2===0&&(c=2);let u;switch(n){case 1:{u=o.LUMINANCE;break}case 2:{u=o.LUMINANCE_ALPHA;break}case 3:{u=o.RGB;break}case 4:{u=o.RGBA;break}default:throw new Error(`Unsupported number of bands: ${n}`)}const d=o.getParameter(o.UNPACK_ALIGNMENT);o.pixelStorei(o.UNPACK_ALIGNMENT,c),o.texImage2D(o.TEXTURE_2D,0,u,i[0],i[1],0,u,a,e),o.pixelStorei(o.UNPACK_ALIGNMENT,d)}let Ql=null;function vK(){Ql=Se(1,1,void 0,{willReadFrequently:!0})}class wK extends yK{constructor(t){super(t),this.textures=[],this.renderSize_=Re(t.grid.getTileSize(t.tile.tileCoord[0])),this.bandCount=NaN;const e=new Wp(n0,qv);e.fromArray([0,1,1,1,1,0,0,0]),this.helper.flushBufferData(e),this.coords=e,this.setTile(t.tile)}uploadTile(){const t=this.helper,e=t.getGL(),i=this.tile;this.textures.length=0;let n;i instanceof Lg||i instanceof Ag?n=i.getImage():n=i.getData();const r=uc(n);if(r){const y=e.createTexture();this.textures.push(y),this.bandCount=4,xK(e,y,r,i.interpolate),this.setReady();return}n=cy(n);const o=i.getSize(),a=[o[0]+2*this.gutter,o[1]+2*this.gutter],l=n instanceof Float32Array,h=a[0]*a[1],c=l?Float32Array:Uint8Array,u=c.BYTES_PER_ELEMENT,d=n.byteLength/a[1];this.bandCount=Math.floor(d/u/a[0]);const g=Math.ceil(this.bandCount/4);if(g===1){const y=e.createTexture();this.textures.push(y),LM(t,y,n,a,this.bandCount,i.interpolate),this.setReady();return}const f=new Array(g);for(let y=0;y0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const i=this.entries_[t];return qt(i!==void 0,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(t){const e=this.entries_[t];return qt(e!==void 0,"Tried to get a value for a key that does not exist in the cache"),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e=0,i;for(i=this.newest_;i;i=i.older)t[e++]=i.key_;return t}getValues(){const t=new Array(this.count_);let e=0,i;for(i=this.newest_;i;i=i.older)t[e++]=i.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){var e;return(e=this.entries_[t])==null?void 0:e.value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){qt(!(t in this.entries_),"Tried to set a value for a key that is used already");const i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_}setSize(t){this.highWaterMark=t}}class h0{constructor(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function Gl(s,t,e,i,n){return n!==void 0?(n.minX=s,n.maxX=t,n.minY=e,n.maxY=i,n):new h0(s,t,e,i)}function ll(s,t,e,i){return i!==void 0?(i[0]=s,i[1]=t,i[2]=e,i):[s,t,e]}function ro(s,t,e){return s+"/"+t+"/"+e}function Do(s){return ro(s[0],s[1],s[2])}function EK(s){const[t,e,i]=s.substring(s.lastIndexOf("/")+1,s.length).split(",").map(Number);return ro(t,e,i)}function SK(s){return s.split("/").map(Number)}function Jv(s){return fA(s[0],s[1],s[2])}function fA(s,t,e){return(t<e||e>t.getMaxZoom())return!1;const r=t.getFullTileRange(e);return r?r.containsXY(i,n):!0}const bK={TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",RENDER_EXTENT:"u_renderExtent",PATTERN_ORIGIN:"u_patternOrigin",RESOLUTION:"u_resolution",ZOOM:"u_zoom",GLOBAL_ALPHA:"u_globalAlpha",PROJECTION_MATRIX:"u_projectionMatrix",SCREEN_TO_WORLD_MATRIX:"u_screenToWorldMatrix"},CK={};function OM(s){return 1/(s+2)}function TK(){return{tileIds:new Set,representationsByZ:{}}}function FM(s,t){return s.tileIds.has(mt(t))}function NM(s,t,e){const i=s.representationsByZ;e in i||(i[e]=new Set),i[e].add(t),s.tileIds.add(mt(t.tile))}function $_(s,t){const e=s.layerStatesArray[s.layerIndex];e.extent&&(t=He(t,cn(e.extent,s.viewState.projection)));const i=e.layer.getRenderSource();if(!i.getWrapX()){const n=i.getTileGridForProjection(s.viewState.projection).getExtent();n&&(t=He(t,n))}return t}function uy(s,t){return`${s.getKey()},${Do(t)}`}class RK extends o0{constructor(t,e){super(t,{uniforms:e.uniforms,postProcesses:e.postProcesses}),this.renderComplete=!1,this.tileTransform_=ss(),this.tempMat4=lA(),this.tempTileRange_=new h0(0,0,0,0),this.tempTileCoord_=ll(0,0,0),this.tempSize_=[0,0];const i=e.cacheSize!==void 0?e.cacheSize:512;this.tileRepresentationCache=new l0(i),this.frameState=null,this.projection_=void 0}reset(t){super.reset({uniforms:t.uniforms})}prepareFrameInternal(t){this.projection_?t.viewState.projection!==this.projection_&&(this.clearCache(),this.projection_=t.viewState.projection):this.projection_=t.viewState.projection;const e=this.getLayer().getRenderSource();return!e||po($_(t,t.extent))?!1:e.getState()==="ready"}createTileRepresentation(t){return vt()}enqueueTiles(t,e,i,n,r){const o=t.viewState,a=this.getLayer(),l=a.getRenderSource(),h=l.getTileGridForProjection(o.projection),c=l.getGutterForProjection(o.projection),u=mt(l);u in t.wantedTiles||(t.wantedTiles[u]={});const d=t.wantedTiles[u],g=this.tileRepresentationCache,f=a.getMapInternal(),p=Math.max(i-r,h.getMinZoom(),h.getZForResolution(Math.min(a.getMaxResolution(),f?f.getView().getResolutionForZoom(Math.max(a.getMinZoom(),0)):h.getResolution(0)),l.zDirection));for(let m=i;m>=p;--m){const _=h.getTileRangeForExtentAndZ(e,m,this.tempTileRange_),y=h.getResolution(m);for(let v=_.minX;v<=_.maxX;++v)for(let S=_.minY;S<=_.maxY;++S){const w=ll(m,v,S,this.tempTileCoord_),C=uy(l,w);let M,T;if(g.containsKey(C)&&(M=g.get(C),T=M.tile),(!M||M.tile.key!==l.getKey())&&(T=l.getTile(m,v,S,t.pixelRatio,o.projection),!T)||FM(n,T))continue;M?M.setTile(T):(M=this.createTileRepresentation({tile:T,grid:h,helper:this.helper,gutter:c}),g.set(C,M)),NM(n,M,m);const I=T.getKey();d[I]=!0,T.getState()===X.IDLE&&(t.tileQueue.isKeyQueued(I)||t.tileQueue.enqueue([T,u,h.getTileCoordCenter(w),y]))}}}beforeTilesRender(t,e){this.helper.prepareDraw(this.frameState,!e,!0)}beforeTilesMaskRender(t){return!1}renderTile(t,e,i,n,r,o,a,l,h,c,u){}renderTileMask(t,e,i,n){}drawTile_(t,e,i,n,r,o,a){if(!e.ready)return;const l=e.tile.tileCoord,h=Do(l),c=h in o?o[h]:1,u=a.getResolution(i),d=Re(a.getTileSize(i),this.tempSize_),g=a.getOrigin(i),f=a.getTileCoordExtent(l),p=c<1?-1:OM(i);c<1&&(t.animate=!0);const m=t.viewState,_=m.center[0],y=m.center[1],v=d[0]+2*n,S=d[1]+2*n,w=v/S,C=(_-g[0])/(d[0]*u),M=(g[1]-y)/(d[1]*u),T=m.resolution/u,I=l[1],O=l[2];j1(this.tileTransform_),Bu(this.tileTransform_,2/(t.size[0]*T/v),-2/(t.size[1]*T/v)),s9(this.tileTransform_,m.rotation),Bu(this.tileTransform_,1,1/w),Wx(this.tileTransform_,(d[0]*(I-C)-n)/v,(d[1]*(O-M)-n)/S),this.renderTile(e,this.tileTransform_,t,r,u,d,g,f,p,n,c)}renderFrame(t){this.frameState=t,this.renderComplete=!0;const e=this.helper.getGL();this.preRender(e,t);const i=t.viewState,n=this.getLayer(),r=n.getRenderSource(),o=r.getTileGridForProjection(i.projection),a=r.getGutterForProjection(i.projection),l=$_(t,t.extent),h=o.getZForResolution(i.resolution,r.zDirection),c=TK(),u=n.getPreload();if(t.nextExtent){const w=o.getZForResolution(i.nextResolution,r.zDirection),C=$_(t,t.nextExtent);this.enqueueTiles(t,C,w,c,u)}this.enqueueTiles(t,l,h,c,0),u>0&&setTimeout(()=>{this.enqueueTiles(t,l,h-1,c,u-1)},0);const d={},g=mt(this),f=t.time;let p=!1;const m=c.representationsByZ;if(h in m)for(const w of m[h]){const C=w.tile;if((C instanceof Ag||C instanceof a0)&&C.getState()===X.EMPTY)continue;const M=C.tileCoord;if(w.ready){const I=C.getAlpha(g,f);if(I===1){C.endTransition(g);continue}p=!0;const O=Do(M);d[O]=I}if(this.renderComplete=!1,this.findAltTiles_(o,M,h+1,c))continue;const T=o.getMinZoom();for(let I=h-1;I>=T&&!this.findAltTiles_(o,M,I,c);--I);}const _=Object.keys(m).map(Number).sort(qU);if(this.beforeTilesMaskRender(t))for(let w=0,C=_.length;we.dispose()),t.clear()}removeHelper(){this.helper&&this.clearCache(),super.removeHelper()}disposeInternal(){super.disposeInternal(),delete this.frameState}}const jt={...bK,TILE_TEXTURE_ARRAY:"u_tileTextures",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY"},Gf={TEXTURE_COORD:"a_textureCoord"},IK=[{name:Gf.TEXTURE_COORD,size:2,type:nr.FLOAT}];class PK extends RK{constructor(t,e){super(t,e),this.program_,this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.indices_=new Wp(r0,qv),this.indices_.fromArray([0,1,3,1,2,3]),this.paletteTextures_=e.paletteTextures||[]}reset(t){if(super.reset(t),this.helper){const e=this.helper.getGL();for(const i of this.paletteTextures_)i.delete(e)}this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.paletteTextures_=t.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))}afterHelperCreated(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)}removeHelper(){if(this.helper){const t=this.helper.getGL();for(const e of this.paletteTextures_)e.delete(t)}super.removeHelper()}createTileRepresentation(t){return new wK(t)}beforeTilesRender(t,e){super.beforeTilesRender(t,e),this.helper.useProgram(this.program_,t)}renderTile(t,e,i,n,r,o,a,l,h,c,u){const d=this.helper.getGL();this.helper.bindBuffer(t.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(IK);let g=0;for(;g0&&(S=l,He(S,n,S)),this.helper.setUniformFloatVec4(jt.RENDER_EXTENT,S),this.helper.setUniformFloatValue(jt.RESOLUTION,f.resolution),this.helper.setUniformFloatValue(jt.ZOOM,f.zoom),this.helper.setUniformFloatValue(jt.TEXTURE_PIXEL_WIDTH,p),this.helper.setUniformFloatValue(jt.TEXTURE_PIXEL_HEIGHT,m),this.helper.setUniformFloatValue(jt.TEXTURE_RESOLUTION,r),this.helper.setUniformFloatValue(jt.TEXTURE_ORIGIN_X,a[0]+y*o[0]*r-c*r),this.helper.setUniformFloatValue(jt.TEXTURE_ORIGIN_Y,a[1]-v*o[1]*r+c*r),this.helper.drawElements(0,this.indices_.getSize())}getData(t){if(!this.helper.getGL())return null;const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=Ye(e.pixelToCoordinateTransform,t.slice()),r=e.viewState,o=i.getExtent();if(o&&!Yi(cn(o,r.projection),n))return null;const a=i.getSources(ic([n]),r.resolution);let l,h,c;for(l=a.length-1;l>=0;--l)if(h=a[l],h.getState()==="ready"){if(c=h.getTileGridForProjection(r.projection),h.getWrapX())break;const d=c.getExtent();if(!d||Yi(d,n))break}if(l<0)return null;const u=this.tileRepresentationCache;for(let d=c.getZForResolution(r.resolution);d>=c.getMinZoom();--d){const g=c.getTileCoordForCoordAndZ(n,d),f=uy(h,g);if(!u.containsKey(f))continue;const p=u.get(f),m=p.tile;if((m instanceof Ag||m instanceof a0)&&m.getState()===X.EMPTY)return null;if(!p.loaded)continue;const _=c.getOrigin(d),y=Re(c.getTileSize(d)),v=c.getResolution(d),S=(n[0]-_[0])/v-g[1]*y[0],w=(_[1]-n[1])/v-g[2]*y[1];return p.getPixelData(S,w)}return null}disposeInternal(){const t=this.helper;if(t){const e=t.getGL();for(const i of this.paletteTextures_)i.delete(e);this.paletteTextures_.length=0,e.deleteProgram(this.program_),delete this.program_,t.deleteBuffer(this.indices_)}super.disposeInternal(),delete this.indices_}}function AK(s,t){return`operator_${s}_${Object.keys(t.functions).length}`}function Ya(s){const t=s.toString();return t.includes(".")?t:t+".0"}function c0(s){if(s.length<2||s.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return`vec${s.length}(${s.map(Ya).join(", ")})`}function jf(s){const t=Bn(s),e=t.length>3?t[3]:1;return c0([t[0]/255*e,t[1]/255*e,t[2]/255*e,e])}function LK(s){const t=Re(s);return c0(t)}const G_={};let OK=0;function Vp(s){return s in G_||(G_[s]=OK++),G_[s]}function $r(s){return Ya(Vp(s))}function Qv(s){return"u_var_"+s}function FK(){return{inFragmentShader:!1,variables:{},properties:{},functions:{},bandCount:0,style:{}}}const j_="getBandValue",pA="u_paletteTextures";function NK(s,t,e,i){const n=Ts(s,t,e);return tw(n,t,i)}function re(s){return(t,e,i)=>{const n=e.args.length,r=new Array(n);for(let o=0;o{const e=t.args[0].value;return e in s.properties||(s.properties[e]={name:e,type:t.type}),(s.inFragmentShader?"v_prop_":"a_prop_")+e},[U.GeometryType]:(s,t,e)=>{const i="geometryType";return i in s.properties||(s.properties[i]={name:i,type:bs,evaluator:n=>Bv(n.getGeometry())}),(s.inFragmentShader?"v_prop_":"a_prop_")+i},[U.Var]:(s,t)=>{const e=t.args[0].value;return e in s.variables||(s.variables[e]={name:e,type:t.type}),Qv(e)},[U.Resolution]:()=>"u_resolution",[U.Zoom]:()=>"u_zoom",[U.Time]:()=>"u_time",[U.Any]:re(s=>`(${s.join(" || ")})`),[U.All]:re(s=>`(${s.join(" && ")})`),[U.Not]:re(([s])=>`(!${s})`),[U.Equal]:re(([s,t])=>`(${s} == ${t})`),[U.NotEqual]:re(([s,t])=>`(${s} != ${t})`),[U.GreaterThan]:re(([s,t])=>`(${s} > ${t})`),[U.GreaterThanOrEqualTo]:re(([s,t])=>`(${s} >= ${t})`),[U.LessThan]:re(([s,t])=>`(${s} < ${t})`),[U.LessThanOrEqualTo]:re(([s,t])=>`(${s} <= ${t})`),[U.Multiply]:re(s=>`(${s.join(" * ")})`),[U.Divide]:re(([s,t])=>`(${s} / ${t})`),[U.Add]:re(s=>`(${s.join(" + ")})`),[U.Subtract]:re(([s,t])=>`(${s} - ${t})`),[U.Clamp]:re(([s,t,e])=>`clamp(${s}, ${t}, ${e})`),[U.Mod]:re(([s,t])=>`mod(${s}, ${t})`),[U.Pow]:re(([s,t])=>`pow(${s}, ${t})`),[U.Abs]:re(([s])=>`abs(${s})`),[U.Floor]:re(([s])=>`floor(${s})`),[U.Ceil]:re(([s])=>`ceil(${s})`),[U.Round]:re(([s])=>`floor(${s} + 0.5)`),[U.Sin]:re(([s])=>`sin(${s})`),[U.Cos]:re(([s])=>`cos(${s})`),[U.Atan]:re(([s,t])=>t!==void 0?`atan(${s}, ${t})`:`atan(${s})`),[U.Sqrt]:re(([s])=>`sqrt(${s})`),[U.Match]:re(s=>{const t=s[0],e=s[s.length-1];let i=null;for(let n=s.length-3;n>=1;n-=2){const r=s[n],o=s[n+1];i=`(${t} == ${r} ? ${o} : ${i||e})`}return i}),[U.Between]:re(([s,t,e])=>`(${s} >= ${t} && ${s} <= ${e})`),[U.Interpolate]:re(([s,t,...e])=>{let i="";for(let n=0;n{const t=s[s.length-1];let e=null;for(let i=s.length-3;i>=0;i-=2){const n=s[i],r=s[i+1];e=`(${n} ? ${r} : ${e||t})`}return e}),[U.In]:re(([s,...t],e)=>{const i=AK("in",e),n=[];for(let r=0;r`vec${s.length}(${s.join(", ")})`),[U.Color]:re(s=>{if(s.length===1)return`vec4(vec3(${s[0]} / 255.0), 1.0)`;if(s.length===2)return`(${s[1]} * vec4(vec3(${s[0]} / 255.0), 1.0))`;const t=s.slice(0,3).map(e=>`${e} / 255.0`);return s.length===3?`vec4(${t.join(", ")}, 1.0)`:`(${s[3]} * vec4(${t.join(", ")}, 1.0))`}),[U.Band]:re(([s,t,e],i)=>{if(!(j_ in i.functions)){let n="";const r=i.bandCount||1;for(let o=0;o{const[e,...i]=t.args,n=i.length,r=new Uint8Array(n*4);for(let h=0;h0)return Ya(s.value);if((s.type&Os)>0)return s.value.toString();if((s.type&bs)>0)return $r(s.value.toString());if((s.type&$e)>0)return jf(s.value);if((s.type&ui)>0)return c0(s.value);if((s.type&Fn)>0)return LK(s.value);throw new Error(`Unexpected expression ${s.value} (expected type ${ph(t)})`)}function kK(){return{"fill-color":"rgba(255,255,255,0.4)","stroke-color":"#3399CC","stroke-width":1.25,"circle-radius":5,"circle-fill-color":"rgba(255,255,255,0.4)","circle-stroke-width":1.25,"circle-stroke-color":"#3399CC"}}const jl=`#ifdef GL_FRAGMENT_PRECISION_HIGH -precision highp float; -#else -precision mediump float; -#endif -uniform mat4 u_projectionMatrix; -uniform mat4 u_screenToWorldMatrix; -uniform vec2 u_viewportSizePx; -uniform float u_pixelRatio; -uniform float u_globalAlpha; -uniform float u_time; -uniform float u_zoom; -uniform float u_resolution; -uniform float u_rotation; -uniform vec4 u_renderExtent; -uniform vec2 u_patternOrigin; -uniform float u_depth; -uniform mediump int u_hitDetection; - -const float PI = 3.141592653589793238; -const float TWO_PI = 2.0 * PI; - -// this used to produce an alpha-premultiplied color from a texture -vec4 samplePremultiplied(sampler2D sampler, vec2 texCoord) { - vec4 color = texture2D(sampler, texCoord); - return vec4(color.rgb * color.a, color.a); -} -`,zl=kK();class mA{constructor(){this.uniforms_=[],this.attributes_=[],this.varyings_=[],this.hasSymbol_=!1,this.symbolSizeExpression_=`vec2(${Ya(zl["circle-radius"])} + ${Ya(zl["circle-stroke-width"]*.5)})`,this.symbolRotationExpression_="0.0",this.symbolOffsetExpression_="vec2(0.0)",this.symbolColorExpression_=jf(zl["circle-fill-color"]),this.texCoordExpression_="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression_="false",this.symbolRotateWithView_=!1,this.hasStroke_=!1,this.strokeWidthExpression_=Ya(zl["stroke-width"]),this.strokeColorExpression_=jf(zl["stroke-color"]),this.strokeOffsetExpression_="0.",this.strokeCapExpression_=$r("round"),this.strokeJoinExpression_=$r("round"),this.strokeMiterLimitExpression_="10.",this.strokeDistanceFieldExpression_="-1000.",this.hasFill_=!1,this.fillColorExpression_=jf(zl["fill-color"]),this.vertexShaderFunctions_=[],this.fragmentShaderFunctions_=[]}addUniform(t){return this.uniforms_.push(t),this}addAttribute(t){return this.attributes_.push(t),this}addVarying(t,e,i){return this.varyings_.push({name:t,type:e,expression:i}),this}setSymbolSizeExpression(t){return this.hasSymbol_=!0,this.symbolSizeExpression_=t,this}getSymbolSizeExpression(){return this.symbolSizeExpression_}setSymbolRotationExpression(t){return this.symbolRotationExpression_=t,this}setSymbolOffsetExpression(t){return this.symbolOffsetExpression_=t,this}getSymbolOffsetExpression(){return this.symbolOffsetExpression_}setSymbolColorExpression(t){return this.hasSymbol_=!0,this.symbolColorExpression_=t,this}getSymbolColorExpression(){return this.symbolColorExpression_}setTextureCoordinateExpression(t){return this.texCoordExpression_=t,this}setFragmentDiscardExpression(t){return this.discardExpression_=t,this}getFragmentDiscardExpression(){return this.discardExpression_}setSymbolRotateWithView(t){return this.symbolRotateWithView_=t,this}setStrokeWidthExpression(t){return this.hasStroke_=!0,this.strokeWidthExpression_=t,this}setStrokeColorExpression(t){return this.hasStroke_=!0,this.strokeColorExpression_=t,this}getStrokeColorExpression(){return this.strokeColorExpression_}setStrokeOffsetExpression(t){return this.strokeOffsetExpression_=t,this}setStrokeCapExpression(t){return this.strokeCapExpression_=t,this}setStrokeJoinExpression(t){return this.strokeJoinExpression_=t,this}setStrokeMiterLimitExpression(t){return this.strokeMiterLimitExpression_=t,this}setStrokeDistanceFieldExpression(t){return this.strokeDistanceFieldExpression_=t,this}setFillColorExpression(t){return this.hasFill_=!0,this.fillColorExpression_=t,this}getFillColorExpression(){return this.fillColorExpression_}addVertexShaderFunction(t){this.vertexShaderFunctions_.includes(t)||this.vertexShaderFunctions_.push(t)}addFragmentShaderFunction(t){this.fragmentShaderFunctions_.includes(t)||this.fragmentShaderFunctions_.push(t)}getSymbolVertexShader(){return this.hasSymbol_?`${jl} -${this.uniforms_.map(function(t){return"uniform "+t+";"}).join(` -`)} -attribute vec2 a_position; -attribute float a_index; -attribute vec4 a_prop_hitColor; -${this.attributes_.map(function(t){return"attribute "+t+";"}).join(` -`)} -varying vec2 v_texCoord; -varying vec2 v_quadCoord; -varying vec4 v_prop_hitColor; -varying vec2 v_centerPx; -varying float v_angle; -varying vec2 v_quadSizePx; -${this.varyings_.map(function(t){return"varying "+t.type+" "+t.name+";"}).join(` -`)} -${this.vertexShaderFunctions_.join(` -`)} -vec2 pxToScreen(vec2 coordPx) { - vec2 scaled = coordPx / u_viewportSizePx / 0.5; - return scaled; -} - -vec2 screenToPx(vec2 coordScreen) { - return (coordScreen * 0.5 + 0.5) * u_viewportSizePx; -} - -void main(void) { - v_quadSizePx = ${this.symbolSizeExpression_}; - vec2 halfSizePx = v_quadSizePx * 0.5; - vec2 centerOffsetPx = ${this.symbolOffsetExpression_}; - vec2 offsetPx = centerOffsetPx; - if (a_index == 0.0) { - offsetPx -= halfSizePx; - } else if (a_index == 1.0) { - offsetPx += halfSizePx * vec2(1., -1.); - } else if (a_index == 2.0) { - offsetPx += halfSizePx; - } else { - offsetPx += halfSizePx * vec2(-1., 1.); - } - float angle = ${this.symbolRotationExpression_}; - ${this.symbolRotateWithView_?"angle += u_rotation;":""} - float c = cos(-angle); - float s = sin(-angle); - offsetPx = vec2(c * offsetPx.x - s * offsetPx.y, s * offsetPx.x + c * offsetPx.y); - vec4 center = u_projectionMatrix * vec4(a_position, 0.0, 1.0); - gl_Position = center + vec4(pxToScreen(offsetPx), u_depth, 0.); - vec4 texCoord = ${this.texCoordExpression_}; - float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p; - float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q; - v_texCoord = vec2(u, v); - v_prop_hitColor = a_prop_hitColor; - v_angle = angle; - c = cos(-v_angle); - s = sin(-v_angle); - centerOffsetPx = vec2(c * centerOffsetPx.x - s * centerOffsetPx.y, s * centerOffsetPx.x + c * centerOffsetPx.y); - v_centerPx = screenToPx(center.xy) + centerOffsetPx; -${this.varyings_.map(function(t){return" "+t.name+" = "+t.expression+";"}).join(` -`)} -}`:null}getSymbolFragmentShader(){return this.hasSymbol_?`${jl} -${this.uniforms_.map(function(t){return"uniform "+t+";"}).join(` -`)} -varying vec2 v_texCoord; -varying vec4 v_prop_hitColor; -varying vec2 v_centerPx; -varying float v_angle; -varying vec2 v_quadSizePx; -${this.varyings_.map(function(t){return"varying "+t.type+" "+t.name+";"}).join(` -`)} -${this.fragmentShaderFunctions_.join(` -`)} - -void main(void) { - if (${this.discardExpression_}) { discard; } - vec2 coordsPx = gl_FragCoord.xy / u_pixelRatio - v_centerPx; // relative to center - float c = cos(v_angle); - float s = sin(v_angle); - coordsPx = vec2(c * coordsPx.x - s * coordsPx.y, s * coordsPx.x + c * coordsPx.y); - gl_FragColor = ${this.symbolColorExpression_}; - if (u_hitDetection > 0) { - if (gl_FragColor.a < 0.05) { discard; }; - gl_FragColor = v_prop_hitColor; - } -}`:null}getStrokeVertexShader(){return this.hasStroke_?`${jl} -${this.uniforms_.map(function(t){return"uniform "+t+";"}).join(` -`)} -attribute vec2 a_position; -attribute float a_index; -attribute vec2 a_segmentStart; -attribute vec2 a_segmentEnd; -attribute float a_parameters; -attribute float a_distance; -attribute vec2 a_joinAngles; -attribute vec4 a_prop_hitColor; -${this.attributes_.map(function(t){return"attribute "+t+";"}).join(` -`)} -varying vec2 v_segmentStart; -varying vec2 v_segmentEnd; -varying float v_angleStart; -varying float v_angleEnd; -varying float v_width; -varying vec4 v_prop_hitColor; -varying float v_distanceOffsetPx; -${this.varyings_.map(function(t){return"varying "+t.type+" "+t.name+";"}).join(` -`)} -${this.vertexShaderFunctions_.join(` -`)} -vec2 worldToPx(vec2 worldPos) { - vec4 screenPos = u_projectionMatrix * vec4(worldPos, 0.0, 1.0); - return (0.5 * screenPos.xy + 0.5) * u_viewportSizePx; -} - -vec4 pxToScreen(vec2 pxPos) { - vec2 screenPos = 2.0 * pxPos / u_viewportSizePx - 1.0; - return vec4(screenPos, u_depth, 1.0); -} - -bool isCap(float joinAngle) { - return joinAngle < -0.1; -} - -vec2 getJoinOffsetDirection(vec2 normalPx, float joinAngle) { - float halfAngle = joinAngle / 2.0; - float c = cos(halfAngle); - float s = sin(halfAngle); - vec2 angleBisectorNormal = vec2(s * normalPx.x + c * normalPx.y, -c * normalPx.x + s * normalPx.y); - float length = 1.0 / s; - return angleBisectorNormal * length; -} - -vec2 getOffsetPoint(vec2 point, vec2 normal, float joinAngle, float offsetPx) { - // if on a cap or the join angle is too high, offset the line along the segment normal - if (cos(joinAngle) > 0.998 || isCap(joinAngle)) { - return point - normal * offsetPx; - } - // offset is applied along the inverted normal (positive offset goes "right" relative to line direction) - return point - getJoinOffsetDirection(normal, joinAngle) * offsetPx; -} - -void main(void) { - v_angleStart = a_joinAngles.x; - v_angleEnd = a_joinAngles.y; - float vertexNumber = floor(abs(a_parameters) / 10000. + 0.5); - // we're reading the fractional part while keeping the sign (so -4.12 gives -0.12, 3.45 gives 0.45) - float angleTangentSum = fract(abs(a_parameters) / 10000.) * 10000. * sign(a_parameters); - - float lineWidth = ${this.strokeWidthExpression_}; - float lineOffsetPx = ${this.strokeOffsetExpression_}; - - // compute segment start/end in px with offset - vec2 segmentStartPx = worldToPx(a_segmentStart); - vec2 segmentEndPx = worldToPx(a_segmentEnd); - vec2 tangentPx = normalize(segmentEndPx - segmentStartPx); - vec2 normalPx = vec2(-tangentPx.y, tangentPx.x); - segmentStartPx = getOffsetPoint(segmentStartPx, normalPx, v_angleStart, lineOffsetPx), - segmentEndPx = getOffsetPoint(segmentEndPx, normalPx, v_angleEnd, lineOffsetPx); - - // compute current vertex position - float normalDir = vertexNumber < 0.5 || (vertexNumber > 1.5 && vertexNumber < 2.5) ? 1.0 : -1.0; - float tangentDir = vertexNumber < 1.5 ? 1.0 : -1.0; - float angle = vertexNumber < 1.5 ? v_angleStart : v_angleEnd; - vec2 joinDirection; - vec2 positionPx = vertexNumber < 1.5 ? segmentStartPx : segmentEndPx; - // if angle is too high, do not make a proper join - if (cos(angle) > ${IM} || isCap(angle)) { - joinDirection = normalPx * normalDir - tangentPx * tangentDir; - } else { - joinDirection = getJoinOffsetDirection(normalPx * normalDir, angle); - } - positionPx = positionPx + joinDirection * (lineWidth * 0.5 + 1.); // adding 1 pixel for antialiasing - gl_Position = pxToScreen(positionPx); - - v_segmentStart = segmentStartPx; - v_segmentEnd = segmentEndPx; - v_width = lineWidth; - v_prop_hitColor = a_prop_hitColor; - v_distanceOffsetPx = a_distance / u_resolution - (lineOffsetPx * angleTangentSum); -${this.varyings_.map(function(t){return" "+t.name+" = "+t.expression+";"}).join(` -`)} -}`:null}getStrokeFragmentShader(){return this.hasStroke_?`${jl} -${this.uniforms_.map(function(t){return"uniform "+t+";"}).join(` -`)} -varying vec2 v_segmentStart; -varying vec2 v_segmentEnd; -varying float v_angleStart; -varying float v_angleEnd; -varying float v_width; -varying vec4 v_prop_hitColor; -varying float v_distanceOffsetPx; -${this.varyings_.map(function(t){return"varying "+t.type+" "+t.name+";"}).join(` -`)} -${this.fragmentShaderFunctions_.join(` -`)} - -vec2 pxToWorld(vec2 pxPos) { - vec2 screenPos = 2.0 * pxPos / u_viewportSizePx - 1.0; - return (u_screenToWorldMatrix * vec4(screenPos, 0.0, 1.0)).xy; -} - -bool isCap(float joinAngle) { - return joinAngle < -0.1; -} - -float segmentDistanceField(vec2 point, vec2 start, vec2 end, float width) { - vec2 tangent = normalize(end - start); - vec2 normal = vec2(-tangent.y, tangent.x); - vec2 startToPoint = point - start; - return abs(dot(startToPoint, normal)) - width * 0.5; -} - -float buttCapDistanceField(vec2 point, vec2 start, vec2 end) { - vec2 startToPoint = point - start; - vec2 tangent = normalize(end - start); - return dot(startToPoint, -tangent); -} - -float squareCapDistanceField(vec2 point, vec2 start, vec2 end, float width) { - return buttCapDistanceField(point, start, end) - width * 0.5; -} - -float roundCapDistanceField(vec2 point, vec2 start, vec2 end, float width) { - float onSegment = max(0., 1000. * dot(point - start, end - start)); // this is very high when inside the segment - return length(point - start) - width * 0.5 - onSegment; -} - -float roundJoinDistanceField(vec2 point, vec2 start, vec2 end, float width) { - return roundCapDistanceField(point, start, end, width); -} - -float bevelJoinField(vec2 point, vec2 start, vec2 end, float width, float joinAngle) { - vec2 startToPoint = point - start; - vec2 tangent = normalize(end - start); - float c = cos(joinAngle * 0.5); - float s = sin(joinAngle * 0.5); - float direction = -sign(sin(joinAngle)); - vec2 bisector = vec2(c * tangent.x - s * tangent.y, s * tangent.x + c * tangent.y); - float radius = width * 0.5 * s; - return dot(startToPoint, bisector * direction) - radius; -} - -float miterJoinDistanceField(vec2 point, vec2 start, vec2 end, float width, float joinAngle) { - if (cos(joinAngle) > ${IM}) { // avoid risking a division by zero - return bevelJoinField(point, start, end, width, joinAngle); - } - float miterLength = 1. / sin(joinAngle * 0.5); - float miterLimit = ${this.strokeMiterLimitExpression_}; - if (miterLength > miterLimit) { - return bevelJoinField(point, start, end, width, joinAngle); - } - return -1000.; -} - -float capDistanceField(vec2 point, vec2 start, vec2 end, float width, float capType) { - if (capType == ${$r("butt")}) { - return buttCapDistanceField(point, start, end); - } else if (capType == ${$r("square")}) { - return squareCapDistanceField(point, start, end, width); - } - return roundCapDistanceField(point, start, end, width); -} - -float joinDistanceField(vec2 point, vec2 start, vec2 end, float width, float joinAngle, float joinType) { - if (joinType == ${$r("bevel")}) { - return bevelJoinField(point, start, end, width, joinAngle); - } else if (joinType == ${$r("miter")}) { - return miterJoinDistanceField(point, start, end, width, joinAngle); - } - return roundJoinDistanceField(point, start, end, width); -} - -float computeSegmentPointDistance(vec2 point, vec2 start, vec2 end, float width, float joinAngle, float capType, float joinType) { - if (isCap(joinAngle)) { - return capDistanceField(point, start, end, width, capType); - } - return joinDistanceField(point, start, end, width, joinAngle, joinType); -} - -void main(void) { - vec2 currentPoint = gl_FragCoord.xy / u_pixelRatio; - #ifdef GL_FRAGMENT_PRECISION_HIGH - vec2 worldPos = pxToWorld(currentPoint); - if ( - abs(u_renderExtent[0] - u_renderExtent[2]) > 0.0 && ( - worldPos[0] < u_renderExtent[0] || - worldPos[1] < u_renderExtent[1] || - worldPos[0] > u_renderExtent[2] || - worldPos[1] > u_renderExtent[3] - ) - ) { - discard; - } - #endif - if (${this.discardExpression_}) { discard; } - - float segmentLength = length(v_segmentEnd - v_segmentStart); - vec2 segmentTangent = (v_segmentEnd - v_segmentStart) / segmentLength; - vec2 segmentNormal = vec2(-segmentTangent.y, segmentTangent.x); - vec2 startToPoint = currentPoint - v_segmentStart; - float currentLengthPx = max(0., min(dot(segmentTangent, startToPoint), segmentLength)) + v_distanceOffsetPx; - float currentRadiusPx = abs(dot(segmentNormal, startToPoint)); - float currentRadiusRatio = dot(segmentNormal, startToPoint) * 2. / v_width; - vec4 color = ${this.strokeColorExpression_} * u_globalAlpha; - float capType = ${this.strokeCapExpression_}; - float joinType = ${this.strokeJoinExpression_}; - float segmentStartDistance = computeSegmentPointDistance(currentPoint, v_segmentStart, v_segmentEnd, v_width, v_angleStart, capType, joinType); - float segmentEndDistance = computeSegmentPointDistance(currentPoint, v_segmentEnd, v_segmentStart, v_width, v_angleEnd, capType, joinType); - float distance = max( - segmentDistanceField(currentPoint, v_segmentStart, v_segmentEnd, v_width), - max(segmentStartDistance, segmentEndDistance) - ); - distance = max(distance, ${this.strokeDistanceFieldExpression_}); - gl_FragColor = color * smoothstep(0.5, -0.5, distance); - if (u_hitDetection > 0) { - if (gl_FragColor.a < 0.1) { discard; }; - gl_FragColor = v_prop_hitColor; - } -}`:null}getFillVertexShader(){return this.hasFill_?`${jl} -${this.uniforms_.map(function(t){return"uniform "+t+";"}).join(` -`)} -attribute vec2 a_position; -attribute vec4 a_prop_hitColor; -${this.attributes_.map(function(t){return"attribute "+t+";"}).join(` -`)} -varying vec4 v_prop_hitColor; -${this.varyings_.map(function(t){return"varying "+t.type+" "+t.name+";"}).join(` -`)} -${this.vertexShaderFunctions_.join(` -`)} -void main(void) { - gl_Position = u_projectionMatrix * vec4(a_position, u_depth, 1.0); - v_prop_hitColor = a_prop_hitColor; -${this.varyings_.map(function(t){return" "+t.name+" = "+t.expression+";"}).join(` -`)} -}`:null}getFillFragmentShader(){return this.hasFill_?`${jl} -${this.uniforms_.map(function(t){return"uniform "+t+";"}).join(` -`)} -varying vec4 v_prop_hitColor; -${this.varyings_.map(function(t){return"varying "+t.type+" "+t.name+";"}).join(` -`)} -${this.fragmentShaderFunctions_.join(` -`)} -vec2 pxToWorld(vec2 pxPos) { - vec2 screenPos = 2.0 * pxPos / u_viewportSizePx - 1.0; - return (u_screenToWorldMatrix * vec4(screenPos, 0.0, 1.0)).xy; -} - -vec2 worldToPx(vec2 worldPos) { - vec4 screenPos = u_projectionMatrix * vec4(worldPos, 0.0, 1.0); - return (0.5 * screenPos.xy + 0.5) * u_viewportSizePx; -} - -void main(void) { - vec2 pxPos = gl_FragCoord.xy / u_pixelRatio; - vec2 pxOrigin = worldToPx(u_patternOrigin); - #ifdef GL_FRAGMENT_PRECISION_HIGH - vec2 worldPos = pxToWorld(pxPos); - if ( - abs(u_renderExtent[0] - u_renderExtent[2]) > 0.0 && ( - worldPos[0] < u_renderExtent[0] || - worldPos[1] < u_renderExtent[1] || - worldPos[0] > u_renderExtent[2] || - worldPos[1] > u_renderExtent[3] - ) - ) { - discard; - } - #endif - if (${this.discardExpression_}) { discard; } - gl_FragColor = ${this.fillColorExpression_} * u_globalAlpha; - if (u_hitDetection > 0) { - if (gl_FragColor.a < 0.1) { discard; }; - gl_FragColor = v_prop_hitColor; - } -}`:null}}const In={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},$K=["#00f","#0ff","#0f0","#ff0","#f00"];class GK extends Ig{constructor(t){t=t||{};const e=Object.assign({},t);delete e.gradient,delete e.radius,delete e.blur,delete e.weight,super(e),this.gradient_=null,this.addChangeListener(In.GRADIENT,this.handleGradientChanged_),this.setGradient(t.gradient?t.gradient:$K),this.setBlur(t.blur!==void 0?t.blur:15),this.setRadius(t.radius!==void 0?t.radius:8);const i=t.weight?t.weight:"weight";this.weightFunction_=typeof i=="string"?n=>n.get(i):i,this.setRenderOrder(null)}getBlur(){return this.get(In.BLUR)}getGradient(){return this.get(In.GRADIENT)}getRadius(){return this.get(In.RADIUS)}handleGradientChanged_(){this.gradient_=jK(this.getGradient())}setBlur(t){this.set(In.BLUR,t)}setGradient(t){this.set(In.GRADIENT,t)}setRadius(t){this.set(In.RADIUS,t)}createRenderer(){const t=new mA().addAttribute("float a_prop_weight").addVarying("v_prop_weight","float","a_prop_weight").addUniform("float u_size").addUniform("float u_blurSlope").setSymbolSizeExpression("vec2(u_size)").setSymbolColorExpression("vec4(smoothstep(0., 1., (1. - length(coordsPx * 2. / v_quadSizePx)) * u_blurSlope) * v_prop_weight)");return new uA(this,{className:this.getClassName(),attributes:[{name:"weight",callback:e=>{const i=this.weightFunction_(e);return i!==void 0?Dt(i,0,1):1}}],uniforms:{u_size:()=>(this.get(In.RADIUS)+this.get(In.BLUR))*2,u_blurSlope:()=>this.get(In.RADIUS)/Math.max(1,this.get(In.BLUR))},hitDetectionEnabled:!0,vertexShader:t.getSymbolVertexShader(),fragmentShader:t.getSymbolFragmentShader(),postProcesses:[{fragmentShader:` - precision mediump float; - - uniform sampler2D u_image; - uniform sampler2D u_gradientTexture; - uniform float u_opacity; - - varying vec2 v_texCoord; - - void main() { - vec4 color = texture2D(u_image, v_texCoord); - 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:()=>this.gradient_,u_opacity:()=>this.getOpacity()}}]})}renderDeclutter(){}}function jK(s){const t=Se(1,256),e=t.createLinearGradient(0,0,1,256),i=1/(s.length-1);for(let n=0,r=s.length;n=a.width)return null;const c=Ee(o),u=Math.floor(a.height*((o[3]-n[1])/c));return u<0||u>=a.height?null:this.getImageData(a,h,u)}renderFrame(t,e){const i=this.image,n=i.getExtent(),r=i.getResolution(),[o,a]=Array.isArray(r)?r:[r,r],l=i.getPixelRatio(),h=t.layerStatesArray[t.layerIndex],c=t.pixelRatio,u=t.viewState,d=u.center,g=u.resolution,f=c*o/(g*l),p=c*a/(g*l);this.prepareContainer(t,e);const m=this.context.canvas.width,_=this.context.canvas.height,y=this.getRenderContext(t);let v=!1,S=!0;if(h.extent){const I=cn(h.extent,u.projection);S=Ce(I,t.extent),v=S&&!ai(I,t.extent),v&&this.clipUnrotated(y,t,I)}const w=i.getImage(),C=xn(this.tempTransform,m/2,_/2,f,p,0,l*(n[0]-d[0])/o,l*(d[1]-n[3])/a);this.renderedResolution=a*c/l;const M=w.width*C[0],T=w.height*C[3];if(this.getLayer().getSource().getInterpolate()||(y.imageSmoothingEnabled=!1),this.preRender(y,t),S&&M>=.5&&T>=.5){const I=C[4],O=C[5],P=h.opacity;P!==1&&(y.save(),y.globalAlpha=P),y.drawImage(w,0,0,+w.width,+w.height,I,O,M,T),P!==1&&y.restore()}return this.postRender(this.context,t),v&&y.restore(),y.imageSmoothingEnabled=!0,this.container}}class ew extends UK{constructor(t){super(t)}createRenderer(){return new _A(this)}getData(t){return super.getData(t)}}const Zo={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class yA extends Tg{constructor(t){t=t||{};const e=Object.assign({},t),i=t.cacheSize;delete t.cacheSize,delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.cacheSize_=i,this.setPreload(t.preload!==void 0?t.preload:0),this.setUseInterimTilesOnError(t.useInterimTilesOnError!==void 0?t.useInterimTilesOnError:!0)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(Zo.PRELOAD)}setPreload(t){this.set(Zo.PRELOAD,t)}getUseInterimTilesOnError(){return this.get(Zo.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(t){this.set(Zo.USE_INTERIM_TILES_ON_ERROR,t)}getData(t){return super.getData(t)}}function z_(s,t,e,i){return`${s},${ro(t,e,i)}`}function U_(s,t,e){if(!(e in s))return s[e]=new Set([t]),!0;const i=s[e],n=i.has(t);return n||i.add(t),!n}function BK(s,t,e){const i=s[e];return i?i.delete(t):!1}function DM(s,t){const e=s.layerStatesArray[s.layerIndex];e.extent&&(t=He(t,cn(e.extent,s.viewState.projection)));const i=e.layer.getRenderSource();if(!i.getWrapX()){const n=i.getTileGridForProjection(s.viewState.projection).getExtent();n&&(t=He(t,n))}return t}class xA extends Vv{constructor(t,e){super(t),e=e||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=Zs(),this.tempTileRange_=new h0(0,0,0,0),this.tempTileCoord_=ll(0,0,0);const i=e.cacheSize!==void 0?e.cacheSize:512;this.tileCache_=new l0(i),this.maxStaleKeys=i*.5}getTileCache(){return this.tileCache_}getOrCreateTile(t,e,i,n){const r=this.tileCache_,o=this.getLayer().getSource(),a=z_(o.getKey(),t,e,i);let l;if(r.containsKey(a))l=r.get(a);else{if(l=o.getTile(t,e,i,n.pixelRatio,n.viewState.projection),!l)return null;r.set(a,l)}return l}getTile(t,e,i,n){return this.getOrCreateTile(t,e,i,n)||null}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=Ye(e.pixelToCoordinateTransform,t.slice()),r=i.getExtent();if(r&&!Yi(r,n))return null;const o=e.viewState,a=i.getRenderSource(),l=a.getTileGridForProjection(o.projection),h=a.getTilePixelRatio(e.pixelRatio);for(let c=l.getZForResolution(o.resolution);c>=l.getMinZoom();--c){const u=l.getTileCoordForCoordAndZ(n,c),d=this.getTile(c,u[1],u[2],e);if(!d||d.getState()!==X.LOADED)continue;const g=l.getOrigin(c),f=Re(l.getTileSize(c)),p=l.getResolution(c);let m;if(d instanceof Lg)m=d.getImage();else if(d instanceof kd){if(m=uc(d.getData()),!m)continue}else continue;const _=Math.floor(h*((n[0]-g[0])/p-u[1]*f[0])),y=Math.floor(h*((g[1]-n[1])/p-u[2]*f[1])),v=Math.round(h*a.getGutterForProjection(o.projection));return this.getImageData(m,_+v,y+v)}return null}prepareFrame(t){const e=this.getLayer().getSource();if(!e)return!1;const i=this.getLayer().getSource().getRevision();return this.renderedRevision_?this.renderedRevision_!==i&&(this.renderedRevision_=i,this.renderedSourceKey_===e.getKey()&&this.tileCache_.clear()):this.renderedRevision_=i,!0}enqueueTiles(t,e,i,n,r){const o=t.viewState,a=this.getLayer(),l=a.getRenderSource(),h=l.getTileGridForProjection(o.projection),c=mt(l);c in t.wantedTiles||(t.wantedTiles[c]={});const u=t.wantedTiles[c],d=a.getMapInternal(),g=Math.max(i-r,h.getMinZoom(),h.getZForResolution(Math.min(a.getMaxResolution(),d?d.getView().getResolutionForZoom(Math.max(a.getMinZoom(),0)):h.getResolution(0)),l.zDirection));for(let f=i;f>=g;--f){const p=h.getTileRangeForExtentAndZ(e,f,this.tempTileRange_),m=h.getResolution(f);for(let _=p.minX;_<=p.maxX;++_)for(let y=p.minY;y<=p.maxY;++y){const v=this.getTile(f,_,y,t);if(!v||!U_(n,v,f))continue;const S=v.getKey();if(u[S]=!0,v.getState()===X.IDLE&&!t.tileQueue.isKeyQueued(S)){const w=ll(f,_,y,this.tempTileCoord_);t.tileQueue.enqueue([v,c,h.getTileCoordCenter(w),m])}}}}findStaleTile_(t,e){const i=this.tileCache_,n=t[0],r=t[1],o=t[2],a=this.getStaleKeys();for(let l=0;l0&&setTimeout(()=>{this.enqueueTiles(t,O,g-1,T,I-1)},0);const P=mt(this),D=t.time;for(const k of T[g]){const z=k.getState();if((k instanceof Ag||k instanceof a0)&&z===X.EMPTY)continue;const V=k.tileCoord;if(z===X.LOADED&&k.getAlpha(P,D)===1){k.endTransition(P);continue}if(this.renderComplete=!1,this.findStaleTile_(V,T)){BK(T,k,g),t.animate=!0;continue}if(this.findAltTiles_(d,V,g+1,T))continue;const et=d.getMinZoom();for(let F=g-1;F>=et&&!this.findAltTiles_(d,V,F,T);--F);}const x=f/o*l/_,E=this.getRenderContext(t);xn(this.tempTransform,y/2,v/2,x,x,0,-y/2,-v/2),i.extent&&this.clipUnrotated(E,t,S),c.getInterpolate()||(E.imageSmoothingEnabled=!1),this.preRender(E,t),this.renderedTiles.length=0;const b=Object.keys(T).map(Number);b.sort(fr);let R;const A=[],$=[];for(let k=b.length-1;k>=0;--k){const z=b[k],V=c.getTilePixelSize(z,l,r),et=d.getResolution(z)/f,F=V[0]*et*x,ot=V[1]*et*x,ht=d.getTileCoordForCoordAndZ(fo(M),z),pt=d.getTileCoordExtent(ht),Gt=Ye(this.tempTransform,[_*(pt[0]-M[0])/f,_*(M[3]-pt[3])/f]),Kt=_*c.getGutterForProjection(r);for(const bt of T[z]){if(bt.getState()!==X.LOADED)continue;const oe=bt.tileCoord,Pe=ht[1]-oe[1],hs=Math.round(Gt[0]-(Pe-1)*F),rs=ht[2]-oe[2],Ge=Math.round(Gt[1]-(rs-1)*ot),ve=Math.round(Gt[0]-Pe*F),Ke=Math.round(Gt[1]-rs*ot),Ni=hs-ve,Di=Ge-Ke,Mn=b.length===1;let Ks=!1;R=[ve,Ke,ve+Ni,Ke,ve+Ni,Ke+Di,ve,Ke+Di];for(let ki=0,$i=A.length;ki<$i;++ki)if(!Mn&&z<$[ki]){const Jt=A[ki];Ce([ve,Ke,ve+Ni,Ke+Di],[Jt[0],Jt[3],Jt[4],Jt[7]])&&(Ks||(E.save(),Ks=!0),E.beginPath(),E.moveTo(R[0],R[1]),E.lineTo(R[2],R[3]),E.lineTo(R[4],R[5]),E.lineTo(R[6],R[7]),E.moveTo(Jt[6],Jt[7]),E.lineTo(Jt[4],Jt[5]),E.lineTo(Jt[2],Jt[3]),E.lineTo(Jt[0],Jt[1]),E.clip())}A.push(R),$.push(z),this.drawTile(bt,t,ve,Ke,Ni,Di,Kt,Mn),Ks&&E.restore(),this.renderedTiles.unshift(bt),this.updateUsedTiles(t.usedTiles,c,bt)}}this.renderedRevision=u,this.renderedResolution=f,this.extentChanged=!this.renderedExtent_||!so(this.renderedExtent_,M),this.renderedExtent_=M,this.renderedPixelRatio=l,this.renderedProjection=r,this.postRender(this.context,t),i.extent&&E.restore(),E.imageSmoothingEnabled=!0;const G=(k,z)=>{const V=mt(c),et=z.wantedTiles[V],F=et?Object.keys(et).length:0;this.updateCacheSize(F),this.tileCache_.expireCache()};return t.postRenderFunctions.push(G),this.container}updateCacheSize(t){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,t*2)}drawTile(t,e,i,n,r,o,a,l){let h;if(t instanceof kd){if(h=uc(t.getData()),!h)throw new Error("Rendering array data is not yet supported")}else h=this.getTileImage(t);if(!h)return;const c=this.getRenderContext(e),u=mt(this),d=e.layerStatesArray[e.layerIndex],g=d.opacity*(l?t.getAlpha(u,e.time):1),f=g!==c.globalAlpha;f&&(c.save(),c.globalAlpha=g),c.drawImage(h,a,a,h.width-2*a,h.height-2*a,i,n,r,o),f&&c.restore(),g!==d.opacity?e.animate=!0:l&&t.endTransition(u)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}updateUsedTiles(t,e,i){const n=mt(e);n in t||(t[n]={}),t[n][i.getKey()]=!0}}class Yp extends yA{constructor(t){super(t)}createRenderer(){return new xA(this,{cacheSize:this.getCacheSize()})}}class sw extends Wm{constructor(t,e,i,n,r){const o=r!==void 0?it.IDLE:it.LOADED;super(t,e,i,o),this.loader_=r!==void 0?r:null,this.canvas_=n,this.error_=null}getError(){return this.error_}handleLoad_(t){t?(this.error_=t,this.state=it.ERROR):this.state=it.LOADED,this.changed()}load(){this.state==it.IDLE&&(this.state=it.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}function qp(s){return Array.isArray(s)?Math.min(...s):s}class WK extends _A{constructor(t){super(t),this.vectorRenderer_=new nA(t),this.layerImageRatio_=t.getImageRatio(),this.coordinateToVectorPixelTransform_=ss(),this.renderedPixelToCoordinateTransform_=null}disposeInternal(){this.vectorRenderer_.dispose(),super.disposeInternal()}getFeatures(t){if(!this.vectorRenderer_)return Promise.resolve([]);const e=Ye(this.coordinateToVectorPixelTransform_,Ye(this.renderedPixelToCoordinateTransform_,t.slice()));return this.vectorRenderer_.getFeatures(e)}handleFontsChanged(){this.vectorRenderer_.handleFontsChanged()}prepareFrame(t){const e=t.pixelRatio,i=t.viewState,n=i.resolution,r=t.viewHints,o=this.vectorRenderer_;let a=t.extent;this.layerImageRatio_!==1&&(a=a.slice(0),gI(a,this.layerImageRatio_));const l=Rt(a)/n,h=Ee(a)/n;if(!r[Ie.ANIMATING]&&!r[Ie.INTERACTING]&&!po(a)){o.useContainer(null,null);const c=o.context,u=t.layerStatesArray[t.layerIndex],d=Object.assign({},u,{opacity:1}),g=Object.assign({},t,{extent:a,size:[l,h],viewState:Object.assign({},t.viewState,{rotation:0}),layerStatesArray:[d],layerIndex:0,declutter:null}),f=this.getLayer().getDeclutter();f&&(g.declutter={[f]:new jv(9)});let p=!0;const m=new sw(a,n,e,c.canvas,function(_){o.prepareFrame(g)&&o.replayGroupChanged&&(o.clipping=!1,o.renderFrame(g,null)&&(o.renderDeclutter(g),o.renderDeferred(g),p=!1),_())});m.addEventListener(Zt.CHANGE,()=>{if(m.getState()!==it.LOADED)return;this.image=p?null:m;const _=m.getPixelRatio(),y=qp(m.getResolution())*e/_;this.renderedResolution=y,this.coordinateToVectorPixelTransform_=xn(this.coordinateToVectorPixelTransform_,l/2,h/2,1/y,-1/y,0,-i.center[0],-i.center[1])}),m.load()}return this.image&&(this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice()),!!this.image}preRender(){}postRender(){}renderDeclutter(){}forEachFeatureAtCoordinate(t,e,i,n,r){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(t,e,i,n,r):super.forEachFeatureAtCoordinate(t,e,i,n,r)}}class XK extends Ig{constructor(t){t=t||{};const e=Object.assign({},t);delete e.imageRatio,super(e),this.imageRatio_=t.imageRatio!==void 0?t.imageRatio:1}getImageRatio(){return this.imageRatio_}createRenderer(){return new WK(this)}}const VK=XK,YK={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},kM={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]};class qK extends xA{constructor(t,e){super(t,e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.renderedLayerRevision_,this.renderedPixelToCoordinateTransform_=null,this.renderedRotation_,this.renderedOpacity_=1,this.tmpTransform_=ss(),this.tileClipContexts_=null}drawTile(t,e,i,n,r,o,a,l){this.updateExecutorGroup_(t,e.pixelRatio,e.viewState.projection),this.tileImageNeedsRender_(t)&&this.renderTileImage_(t,e),super.drawTile(t,e,i,n,r,o,a,l)}getTile(t,e,i,n){const r=this.getOrCreateTile(t,e,i,n);if(!r)return null;const o=n.viewState.resolution,a=n.viewHints;return(!(a[Ie.ANIMATING]||a[Ie.INTERACTING])||!r.wantedResolution)&&(r.wantedResolution=o),r}prepareFrame(t){const e=this.getLayer().getRevision();return this.renderedLayerRevision_!==e&&(this.renderedLayerRevision_=e,this.renderedTiles.length=0),super.prepareFrame(t)}updateExecutorGroup_(t,e,i){const n=this.getLayer(),r=n.getRevision(),o=n.getRenderOrder()||null,a=t.wantedResolution,l=t.getReplayState(n);if(!l.dirty&&l.renderedResolution===a&&l.renderedRevision==r&&l.renderedRenderOrder==o)return;const h=n.getSource(),c=!!n.getDeclutter(),u=h.getTileGrid(),d=h.getTileGridForProjection(i).getTileCoordExtent(t.wrappedTileCoord),g=h.getSourceTiles(e,i,t),f=mt(n);delete t.hitDetectionImageData[f],t.executorGroups[f]=[],l.dirty=!1;for(let p=0,m=g.length;p{const M=w?e.declutter[w].all().map(T=>T.value):null;for(let T=0,I=C.length;T{const n=this.getLayer(),r=mt(n),o=n.getSource(),a=this.renderedProjection,l=a.getExtent(),h=this.renderedResolution,c=o.getTileGridForProjection(a),u=Ye(this.renderedPixelToCoordinateTransform_,t.slice()),d=c.getTileCoordForCoordAndResolution(u,h);let g;for(let v=0,S=this.renderedTiles.length;v0){e([]);return}const f=c.getTileCoordExtent(g.wrappedTileCoord),p=fo(f),m=[(u[0]-p[0])/h,(p[1]-u[1])/h],_=g.getSourceTiles().reduce(function(v,S){return v.concat(S.getFeatures())},[]);let y=g.hitDetectionImageData[r];if(!y){const v=Re(c.getTileSize(c.getZForResolution(h,o.zDirection))),S=this.renderedRotation_,w=[this.getRenderTransform(c.getTileCoordCenter(g.wrappedTileCoord),h,0,Xi,v[0]*Xi,v[1]*Xi,0)];y=QP(v,w,_,n.getStyleFunction(),c.getTileCoordExtent(g.wrappedTileCoord),g.getReplayState(n).renderedResolution,S),g.hitDetectionImageData[r]=y}e(tA(m,_,y))})}getFeaturesInExtent(t){const e=[],i=this.getTileCache();if(i.getCount()===0)return e;const n=this.getLayer().getSource().tileGrid,r=n.getZForResolution(this.renderedResolution);return i.forEach(o=>{if(o.tileCoord[0]!==r||o.getState()!==X.LOADED)return;const a=o.getSourceTiles();for(let l=0,h=a.length;l=0;--g)u[g].execute(this.context,[this.context.canvas.width,this.context.canvas.height],this.getTileRenderTransform(c,t),t.viewState.rotation,o,zp,d?t.declutter[d]:void 0)}i.globalAlpha=n}renderDeferredInternal(t){const e=this.renderedTiles.reduce((r,o,a)=>(o.executorGroups[mt(this.getLayer())].forEach(l=>r.push({executorGroup:l,index:a})),r),[]),i=e.map(({executorGroup:r})=>r.getDeferredZIndexContexts()),n={};for(let r=0,o=e.length;r{i.forEach((o,a)=>{o[r]&&(o[r].forEach(l=>{const{executorGroup:h,index:c}=e[a],u=h.getRenderedContext(),d=u.globalAlpha;u.globalAlpha=this.renderedOpacity_;const g=this.tileClipContexts_[c];g&&g.draw(u),l.draw(u),g&&u.restore(),u.globalAlpha=d,l.clear()}),o[r].length=0)})})}getTileRenderTransform(t,e){const i=e.pixelRatio,n=e.viewState,r=n.center,o=n.resolution,a=n.rotation,l=e.size,h=Math.round(l[0]*i),c=Math.round(l[1]*i),u=this.getLayer().getSource().getTileGridForProjection(e.viewState.projection),d=t.tileCoord,g=u.getTileCoordExtent(t.wrappedTileCoord),f=u.getTileCoordExtent(d,this.tempExtent)[0]-g[0];return bc(Bu(this.inversePixelTransform.slice(),1/i,1/i),this.getRenderTransform(r,o,a,i,h,c,f))}postRender(t,e){var i;const n=e.viewHints,r=!(n[Ie.ANIMATING]||n[Ie.INTERACTING]);this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation,this.renderedOpacity_=e.layerStatesArray[e.layerIndex].opacity;const o=this.getLayer(),a=o.getRenderMode(),l=t.globalAlpha;t.globalAlpha=this.renderedOpacity_;const h=o.getDeclutter(),c=h?kM[a].filter(S=>!zp.includes(S)):kM[a],u=e.viewState,d=u.rotation,g=o.getSource(),f=g.getTileGridForProjection(u.projection).getZForResolution(u.resolution,g.zDirection),p=this.renderedTiles,m=[],_=[],y=[];let v=!0;for(let S=p.length-1;S>=0;--S){const w=p[S];v=v&&!w.getReplayState(o).dirty;const C=w.executorGroups[mt(o)].filter(x=>x.hasExecutors(c));if(C.length===0)continue;const M=this.getTileRenderTransform(w,e),T=w.tileCoord[0];let I=!1;const O=C[0].getClipCoords(M);let P=t,D;if(O){D=new Xv,P=D.getContext();for(let x=0,E=m.length;x1?`vec${t}`:"float"}function Zp(s){return(JSON.stringify(s).split("").reduce((t,e)=>(t<<5)-t+e.charCodeAt(0),0)>>>0).toString()}function iw(s,t,e,i){if(`${i}radius`in s&&i!=="icon-"){let n=At(e,s[`${i}radius`],lt);if(`${i}radius2`in s){const r=At(e,s[`${i}radius2`],lt);n=`max(${n}, ${r})`}`${i}stroke-width`in s&&(n=`(${n} + ${At(e,s[`${i}stroke-width`],lt)} * 0.5)`),t.setSymbolSizeExpression(`vec2(${n} * 2. + 0.5)`)}if(`${i}scale`in s){const n=At(e,s[`${i}scale`],Fn);t.setSymbolSizeExpression(`${t.getSymbolSizeExpression()} * ${n}`)}`${i}displacement`in s&&t.setSymbolOffsetExpression(At(e,s[`${i}displacement`],ui)),`${i}rotation`in s&&t.setSymbolRotationExpression(At(e,s[`${i}rotation`],lt)),`${i}rotate-with-view`in s&&t.setSymbolRotateWithView(!!s[`${i}rotate-with-view`])}function EA(s,t,e,i,n){let r="vec4(0.)";if(t!==null&&(r=t),e!==null&&i!==null){const l=`smoothstep(-${i} + 0.63, -${i} - 0.58, ${s})`;r=`mix(${e}, ${r}, ${l})`}const o=`(1.0 - smoothstep(-0.63, 0.58, ${s}))`;let a=`${r} * ${o}`;return n!==null&&(a=`${a} * ${n}`),a}function nw(s,t,e,i,n){const r=new Image;let o;return r.crossOrigin=s[`${i}cross-origin`]===void 0?"anonymous":s[`${i}cross-origin`],r.src=s[`${i}src`],r.complete&&r.width&&r.height?o=c0([r.width,r.height]):(e[`u_texture${n}_size`]=()=>r.complete?[r.width,r.height]:[0,0],t.addUniform(`vec2 u_texture${n}_size`),o=`u_texture${n}_size`),e[`u_texture${n}`]=r,t.addUniform(`sampler2D u_texture${n}`),o}function rw(s,t,e,i,n){let r=At(e,s[`${t}offset`],ui);if(`${t}offset-origin`in s)switch(s[`${t}offset-origin`]){case"top-right":r=`vec2(${i}.x, 0.) + ${n} * vec2(-1., 0.) + ${r} * vec2(-1., 1.)`;break;case"bottom-left":r=`vec2(0., ${i}.y) + ${n} * vec2(0., -1.) + ${r} * vec2(1., -1.)`;break;case"bottom-right":r=`${i} - ${n} - ${r}`;break}return r}function HK(s,t,e,i,n){n.functions.circleDistanceField=`float circleDistanceField(vec2 point, float radius) { - return length(point) - radius; -}`,iw(s,t,i,"circle-");let r=null;"circle-opacity"in s&&(r=At(n,s["circle-opacity"],lt));let o="coordsPx";"circle-scale"in s&&(o=`coordsPx / ${At(n,s["circle-scale"],Fn)}`);let a=null;"circle-fill-color"in s&&(a=At(n,s["circle-fill-color"],$e));let l=null;"circle-stroke-color"in s&&(l=At(n,s["circle-stroke-color"],$e));let h=At(n,s["circle-radius"],lt),c=null;"circle-stroke-width"in s&&(c=At(n,s["circle-stroke-width"],lt),h=`(${h} + ${c} * 0.5)`);const u=`circleDistanceField(${o}, ${h})`,d=EA(u,a,l,c,r);t.setSymbolColorExpression(d)}function KK(s,t,e,i,n){n.functions.round=`float round(float v) { - return sign(v) * floor(abs(v) + 0.5); -}`,n.functions.starDistanceField=`float starDistanceField(vec2 point, float numPoints, float radius, float radius2, float angle) { - float startAngle = -PI * 0.5 + angle; // tip starts upwards and rotates clockwise with angle - float c = cos(startAngle); - float s = sin(startAngle); - vec2 pointRotated = vec2(c * point.x - s * point.y, s * point.x + c * point.y); - float alpha = TWO_PI / numPoints; // the angle of one sector - float beta = atan(pointRotated.y, pointRotated.x); - float gamma = round(beta / alpha) * alpha; // angle in sector - c = cos(-gamma); - s = sin(-gamma); - vec2 inSector = vec2(c * pointRotated.x - s * pointRotated.y, abs(s * pointRotated.x + c * pointRotated.y)); - vec2 tipToPoint = inSector + vec2(-radius, 0.); - vec2 edgeNormal = vec2(radius2 * sin(alpha * 0.5), -radius2 * cos(alpha * 0.5) + radius); - return dot(normalize(edgeNormal), tipToPoint); -}`,n.functions.regularDistanceField=`float regularDistanceField(vec2 point, float numPoints, float radius, float angle) { - float startAngle = -PI * 0.5 + angle; // tip starts upwards and rotates clockwise with angle - float c = cos(startAngle); - float s = sin(startAngle); - vec2 pointRotated = vec2(c * point.x - s * point.y, s * point.x + c * point.y); - float alpha = TWO_PI / numPoints; // the angle of one sector - float radiusIn = radius * cos(PI / numPoints); - float beta = atan(pointRotated.y, pointRotated.x); - float gamma = round((beta - alpha * 0.5) / alpha) * alpha + alpha * 0.5; // angle in sector from mid - c = cos(-gamma); - s = sin(-gamma); - vec2 inSector = vec2(c * pointRotated.x - s * pointRotated.y, abs(s * pointRotated.x + c * pointRotated.y)); - return inSector.x - radiusIn; -}`,iw(s,t,i,"shape-");let r=null;"shape-opacity"in s&&(r=At(n,s["shape-opacity"],lt));let o="coordsPx";"shape-scale"in s&&(o=`coordsPx / ${At(n,s["shape-scale"],Fn)}`);let a=null;"shape-fill-color"in s&&(a=At(n,s["shape-fill-color"],$e));let l=null;"shape-stroke-color"in s&&(l=At(n,s["shape-stroke-color"],$e));let h=null;"shape-stroke-width"in s&&(h=At(n,s["shape-stroke-width"],lt));const c=At(n,s["shape-points"],lt);let u="0.";"shape-angle"in s&&(u=At(n,s["shape-angle"],lt));let d,g=At(n,s["shape-radius"],lt);if(h!==null&&(g=`${g} + ${h} * 0.5`),"shape-radius2"in s){let p=At(n,s["shape-radius2"],lt);h!==null&&(p=`${p} + ${h} * 0.5`),d=`starDistanceField(${o}, ${c}, ${g}, ${p}, ${u})`}else d=`regularDistanceField(${o}, ${c}, ${g}, ${u})`;const f=EA(d,a,l,h,r);t.setSymbolColorExpression(f)}function JK(s,t,e,i,n){let r="vec4(1.0)";"icon-color"in s&&(r=At(n,s["icon-color"],$e)),"icon-opacity"in s&&(r=`${r} * ${At(n,s["icon-opacity"],lt)}`);const o=Zp(s["icon-src"]),a=nw(s,t,e,"icon-",o);if(t.setSymbolColorExpression(`${r} * samplePremultiplied(u_texture${o}, v_texCoord)`).setSymbolSizeExpression(a),"icon-width"in s&&"icon-height"in s&&t.setSymbolSizeExpression(`vec2(${At(i,s["icon-width"],lt)}, ${At(i,s["icon-height"],lt)})`),"icon-offset"in s&&"icon-size"in s){const l=At(i,s["icon-size"],ui),h=t.getSymbolSizeExpression();t.setSymbolSizeExpression(l);const c=rw(s,"icon-",i,"v_quadSizePx",l);t.setTextureCoordinateExpression(`(vec4((${c}).xyxy) + vec4(0., 0., ${l})) / (${h}).xyxy`)}if(iw(s,t,i,"icon-"),"icon-anchor"in s){const l=At(i,s["icon-anchor"],ui);let h="1.0";"icon-scale"in s&&(h=At(i,s["icon-scale"],Fn));let c;s["icon-anchor-x-units"]==="pixels"&&s["icon-anchor-y-units"]==="pixels"?c=`${l} * ${h}`:s["icon-anchor-x-units"]==="pixels"?c=`${l} * vec2(vec2(${h}).x, v_quadSizePx.y)`:s["icon-anchor-y-units"]==="pixels"?c=`${l} * vec2(v_quadSizePx.x, vec2(${h}).x)`:c=`${l} * v_quadSizePx`;let u=`v_quadSizePx * vec2(0.5, -0.5) + ${c} * vec2(-1., 1.)`;if("icon-anchor-origin"in s)switch(s["icon-anchor-origin"]){case"top-right":u=`v_quadSizePx * -0.5 + ${c}`;break;case"bottom-left":u=`v_quadSizePx * 0.5 - ${c}`;break;case"bottom-right":u=`v_quadSizePx * vec2(-0.5, 0.5) + ${c} * vec2(1., -1.)`;break}t.setSymbolOffsetExpression(`${t.getSymbolOffsetExpression()} + ${u}`)}}function QK(s,t,e,i,n){if("stroke-color"in s&&t.setStrokeColorExpression(At(n,s["stroke-color"],$e)),"stroke-pattern-src"in s){const r=Zp(s["stroke-pattern-src"]),o=nw(s,t,e,"stroke-pattern-",r);let a=o,l="vec2(0.)";"stroke-pattern-offset"in s&&"stroke-pattern-size"in s&&(a=At(n,s["stroke-pattern-size"],ui),l=rw(s,"stroke-pattern-",n,o,a));let h="0.";"stroke-pattern-spacing"in s&&(h=At(n,s["stroke-pattern-spacing"],lt)),n.functions.sampleStrokePattern=`vec4 sampleStrokePattern(sampler2D texture, vec2 textureSize, vec2 textureOffset, vec2 sampleSize, float spacingPx, float currentLengthPx, float currentRadiusRatio, float lineWidth) { - float currentLengthScaled = currentLengthPx * sampleSize.y / lineWidth; - float spacingScaled = spacingPx * sampleSize.y / lineWidth; - float uCoordPx = mod(currentLengthScaled, (sampleSize.x + spacingScaled)); - // make sure that we're not sampling too close to the borders to avoid interpolation with outside pixels - uCoordPx = clamp(uCoordPx, 0.5, sampleSize.x - 0.5); - float vCoordPx = (-currentRadiusRatio * 0.5 + 0.5) * sampleSize.y; - vec2 texCoord = (vec2(uCoordPx, vCoordPx) + textureOffset) / textureSize; - return samplePremultiplied(texture, texCoord); -}`;const c=`u_texture${r}`;let u="1.";"stroke-color"in s&&(u=t.getStrokeColorExpression()),t.setStrokeColorExpression(`${u} * sampleStrokePattern(${c}, ${o}, ${l}, ${a}, ${h}, currentLengthPx, currentRadiusRatio, v_width)`)}if("stroke-width"in s&&t.setStrokeWidthExpression(At(i,s["stroke-width"],lt)),"stroke-offset"in s&&t.setStrokeOffsetExpression(At(i,s["stroke-offset"],lt)),"stroke-line-cap"in s&&t.setStrokeCapExpression(At(i,s["stroke-line-cap"],bs)),"stroke-line-join"in s&&t.setStrokeJoinExpression(At(i,s["stroke-line-join"],bs)),"stroke-miter-limit"in s&&t.setStrokeMiterLimitExpression(At(i,s["stroke-miter-limit"],lt)),"stroke-line-dash"in s){n.functions.getSingleDashDistance=`float getSingleDashDistance(float distance, float radius, float dashOffset, float dashLength, float dashLengthTotal, float capType) { - float localDistance = mod(distance, dashLengthTotal); - float distanceSegment = abs(localDistance - dashOffset - dashLength * 0.5) - dashLength * 0.5; - distanceSegment = min(distanceSegment, dashLengthTotal - localDistance); - if (capType == ${$r("square")}) { - distanceSegment -= v_width * 0.5; - } else if (capType == ${$r("round")}) { - distanceSegment = min(distanceSegment, sqrt(distanceSegment * distanceSegment + radius * radius) - v_width * 0.5); - } - return distanceSegment; -}`;let r=s["stroke-line-dash"].map(d=>At(n,d,lt));r.length%2===1&&(r=[...r,...r]);let o="0.";"stroke-line-dash-offset"in s&&(o=At(i,s["stroke-line-dash-offset"],lt));const a=`dashDistanceField_${Zp(s["stroke-line-dash"])}`,l=r.map((d,g)=>`float dashLength${g} = ${d};`),h=r.map((d,g)=>`dashLength${g}`).join(" + ");let c="0.",u=`getSingleDashDistance(distance, radius, ${c}, dashLength0, totalDashLength, capType)`;for(let d=2;d{const h=s.variables[a.name];return typeof h=="number"?h:typeof h=="boolean"?h?1:0:a.type===$e?$M([...Bn(h||"#eee")]):typeof h=="string"?Vp(h):h}}for(const o in e.properties){const a=e.properties[o];t.properties[o]||(t.properties[o]=a);let l=B_(a.type),h=`a_prop_${a.name}`;a.type===$e&&(l="vec4",h=`unpackColor(${h})`,i.addVertexShaderFunction(ZK)),i.addVarying(`v_prop_${a.name}`,l,h)}for(const o in t.properties){const a=t.properties[o];i.addAttribute(`${B_(a.type)} a_prop_${a.name}`)}for(const o in t.functions)i.addVertexShaderFunction(t.functions[o]);for(const o in e.functions)i.addFragmentShaderFunction(e.functions[o]);const r={};for(const o in t.properties){const a=t.properties[o];let l;a.evaluator?l=a.evaluator:l=h=>{const c=h.get(a.name);return a.type===$e?$M([...Bn(c||"#eee")]):typeof c=="string"?Vp(c):typeof c=="boolean"?c?1:0:c},r[a.name]={size:wA(a.type),callback:l}}return{builder:i,attributes:r,uniforms:n}}class sJ extends Tg{constructor(t){const e=Object.assign({},t);super(e),this.parseResult_=eJ(t.style),this.styleVariables_=t.style.variables||{},this.hitDetectionDisabled_=!!t.disableHitDetection}createRenderer(){const t=Object.keys(this.parseResult_.attributes).map(e=>({name:e,...this.parseResult_.attributes[e]}));return new uA(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitDetectionEnabled:!this.hitDetectionDisabled_,uniforms:this.parseResult_.uniforms,attributes:t})}updateStyleVariables(t){Object.assign(this.styleVariables_,t),this.changed()}}const iJ=sJ;function GM(s,t){const e=` - attribute vec2 ${Gf.TEXTURE_COORD}; - uniform mat4 ${jt.TILE_TRANSFORM}; - uniform float ${jt.TEXTURE_PIXEL_WIDTH}; - uniform float ${jt.TEXTURE_PIXEL_HEIGHT}; - uniform float ${jt.TEXTURE_RESOLUTION}; - uniform float ${jt.TEXTURE_ORIGIN_X}; - uniform float ${jt.TEXTURE_ORIGIN_Y}; - uniform float ${jt.DEPTH}; - - varying vec2 v_textureCoord; - varying vec2 v_mapCoord; - - void main() { - v_textureCoord = ${Gf.TEXTURE_COORD}; - v_mapCoord = vec2( - ${jt.TEXTURE_ORIGIN_X} + ${jt.TEXTURE_RESOLUTION} * ${jt.TEXTURE_PIXEL_WIDTH} * v_textureCoord[0], - ${jt.TEXTURE_ORIGIN_Y} - ${jt.TEXTURE_RESOLUTION} * ${jt.TEXTURE_PIXEL_HEIGHT} * v_textureCoord[1] - ); - gl_Position = ${jt.TILE_TRANSFORM} * vec4(${Gf.TEXTURE_COORD}, ${jt.DEPTH}, 1.0); - } - `,i={...FK(),inFragmentShader:!0,bandCount:t,style:s},n=[];if(s.color!==void 0){const u=At(i,s.color,$e);n.push(`color = ${u};`)}if(s.contrast!==void 0){const u=At(i,s.contrast,lt);n.push(`color.rgb = clamp((${u} + 1.0) * color.rgb - (${u} / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}if(s.exposure!==void 0){const u=At(i,s.exposure,lt);n.push(`color.rgb = clamp((${u} + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}if(s.saturation!==void 0){const u=At(i,s.saturation,lt);n.push(` - float saturation = ${u} + 1.0; - float sr = (1.0 - saturation) * 0.2126; - float sg = (1.0 - saturation) * 0.7152; - float sb = (1.0 - saturation) * 0.0722; - mat3 saturationMatrix = mat3( - sr + saturation, sr, sr, - sg, sg + saturation, sg, - 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(s.gamma!==void 0){const u=At(i,s.gamma,lt);n.push(`color.rgb = pow(color.rgb, vec3(1.0 / ${u}));`)}if(s.brightness!==void 0){const u=At(i,s.brightness,lt);n.push(`color.rgb = clamp(color.rgb + ${u}, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}const r={},o=Object.keys(i.variables).length;if(o>1&&!s.variables)throw new Error(`Missing variables in style (expected ${i.variables})`);for(let u=0;u ${jt.RENDER_EXTENT}[2] || - v_mapCoord[1] > ${jt.RENDER_EXTENT}[3] - ) { - discard; - } - - vec4 color = texture2D(${jt.TILE_TEXTURE_ARRAY}[0], v_textureCoord); - - ${n.join(` -`)} - - gl_FragColor = color; - gl_FragColor.rgb *= gl_FragColor.a; - gl_FragColor *= ${jt.TRANSITION_ALPHA}; - }`;return{vertexShader:e,fragmentShader:c,uniforms:r,paletteTextures:i.paletteTextures}}class Hp extends yA{constructor(t){t=t?Object.assign({},t):{};const e=t.style||{};delete t.style,super(t),this.sources_=t.sources,this.renderedSource_=null,this.renderedResolution_=NaN,this.style_=e,this.styleVariables_=this.style_.variables||{},this.addChangeListener(ue.SOURCE,this.handleSourceUpdate_)}getSources(t,e){const i=this.getSource();return this.sources_?typeof this.sources_=="function"?this.sources_(t,e):this.sources_:i?[i]:[]}getRenderSource(){return this.renderedSource_||this.getSource()}getSourceState(){const t=this.getRenderSource();return t?t.getState():"undefined"}handleSourceUpdate_(){this.hasRenderer()&&this.getRenderer().clearCache(),this.getSource()&&this.setStyle(this.style_)}getSourceBandCount_(){const t=Number.MAX_SAFE_INTEGER,e=this.getSources([-t,-t,t,t],t);return e&&e.length&&"bandCount"in e[0]?e[0].bandCount:4}createRenderer(){const t=GM(this.style_,this.getSourceBandCount_());return new PK(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.getCacheSize(),paletteTextures:t.paletteTextures})}renderSources(t,e){const i=this.getRenderer();let n;for(let r=0,o=e.length;r{h.getState()=="ready"&&(h.removeEventListener("change",u),this.changed())};h.addEventListener("change",u)}r=r&&c=="ready"}const o=this.renderSources(t,n);if(this.getRenderer().renderComplete&&r)return this.renderedResolution_=i.resolution,o;if(this.renderedResolution_>.5*i.resolution){const a=this.getSources(t.extent,this.renderedResolution_).filter(l=>!n.includes(l));if(a.length>0)return this.renderSources(t,a)}return o}setStyle(t){if(this.styleVariables_=t.variables||{},this.style_=t,this.hasRenderer()){const e=GM(this.style_,this.getSourceBandCount_());this.getRenderer().reset({vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,paletteTextures:e.paletteTextures}),this.changed()}}updateStyleVariables(t){Object.assign(this.styleVariables_,t),this.changed()}}Hp.prototype.dispose;const nJ=Object.freeze(Object.defineProperty({__proto__:null,Graticule:VH,Group:i0,Heatmap:zK,Image:ew,Layer:Tg,Tile:Yp,Vector:Yv,VectorImage:VK,VectorTile:vA,WebGLPoints:iJ,WebGLTile:Hp},Symbol.toStringTag,{value:"Module"}));var ii=(s,t,e)=>new Promise((i,n)=>{var r=l=>{try{a(e.next(l))}catch(h){n(h)}},o=l=>{try{a(e.throw(l))}catch(h){n(h)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,o);a((e=e.apply(s,t)).next())}),Vi=Uint8Array,Zu=Uint16Array,rJ=Int32Array,SA=new Vi([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]),MA=new Vi([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]),oJ=new Vi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bA=function(s,t){for(var e=new Zu(31),i=0;i<31;++i)e[i]=t+=1<>1|(ge&21845)<<1,Ar=(Ar&52428)>>2|(Ar&13107)<<2,Ar=(Ar&61680)>>4|(Ar&3855)<<4,RA[ge]=((Ar&65280)>>8|(Ar&255)<<8)>>1;var Ar,ge,Hu=function(s,t,e){for(var i=s.length,n=0,r=new Zu(t);n>l]=h}return a},Og=new Vi(288);for(ge=0;ge<144;++ge)Og[ge]=8;var ge;for(ge=144;ge<256;++ge)Og[ge]=9;var ge;for(ge=256;ge<280;++ge)Og[ge]=7;var ge;for(ge=280;ge<288;++ge)Og[ge]=8;var ge,IA=new Vi(32);for(ge=0;ge<32;++ge)IA[ge]=5;var ge,cJ=Hu(Og,9),uJ=Hu(IA,5),W_=function(s){for(var t=s[0],e=1;et&&(t=s[e]);return t},Pn=function(s,t,e){var i=t/8|0;return(s[i]|s[i+1]<<8)>>(t&7)&e},X_=function(s,t){var e=t/8|0;return(s[e]|s[e+1]<<8|s[e+2]<<16)>>(t&7)},dJ=function(s){return(s+7)/8|0},gJ=function(s,t,e){(e==null||e>s.length)&&(e=s.length);var i=new Vi(e-t);return i.set(s.subarray(t,e)),i},fJ=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ji=function(s,t,e){var i=new Error(t||fJ[s]);if(i.code=s,Error.captureStackTrace&&Error.captureStackTrace(i,ji),!e)throw i;return i},ow=function(s,t,e,i){var n=s.length,r=0;if(!n||t.f&&!t.l)return e||new Vi(0);var o=!e||t.i!=2,a=t.i;e||(e=new Vi(n*3));var l=function(bt){var oe=e.length;if(bt>oe){var Pe=new Vi(Math.max(oe*2,bt));Pe.set(e),e=Pe}},h=t.f||0,c=t.p||0,u=t.b||0,d=t.l,g=t.d,f=t.m,p=t.n,m=n*8;do{if(!d){h=Pn(s,c,1);var _=Pn(s,c+1,3);if(c+=3,_)if(_==1)d=cJ,g=uJ,f=9,p=5;else if(_==2){var y=Pn(s,c,31)+257,v=Pn(s,c+10,15)+4,S=y+Pn(s,c+5,31)+1;c+=14;for(var w=new Vi(S),C=new Vi(19),M=0;M>4;if(D<16)w[M++]=D;else{var x=0,E=0;for(D==16?(E=3+Pn(s,c,3),c+=2,x=w[M-1]):D==17?(E=3+Pn(s,c,7),c+=3):D==18&&(E=11+Pn(s,c,127),c+=7);E--;)w[M++]=x}}var b=w.subarray(0,y),R=w.subarray(y);f=W_(b),p=W_(R),d=Hu(b,f),g=Hu(R,p)}else ji(1);else{var D=dJ(c)+4,A=s[D-4]|s[D-3]<<8,$=D+A;if($>n){a&&ji(0);break}o&&l(u+A),e.set(s.subarray(D,$),u),t.b=u+=A,t.p=c=$*8,t.f=h;continue}if(c>m){a&&ji(0);break}}o&&l(u+131072);for(var G=(1<>4;if(c+=x&15,c>m){a&&ji(0);break}if(x||ji(2),V<256)e[u++]=V;else if(V==256){z=c,d=null;break}else{var et=V-254;if(V>264){var M=V-257,F=SA[M];et=Pn(s,c,(1<>4;ot||ji(3),c+=ot&15;var R=hJ[ht];if(ht>3){var F=MA[ht];R+=X_(s,c)&(1<m){a&&ji(0);break}o&&l(u+131072);var pt=u+et;if(u>3&1)+(t>>4&1);i>0;i-=!s[e++]);return e+(t&2)},_J=function(s){var t=s.length;return(s[t-4]|s[t-3]<<8|s[t-2]<<16|s[t-1]<<24)>>>0},yJ=function(s,t){return((s[0]&15)!=8||s[0]>>4>7||(s[0]<<8|s[1])%31)&&ji(6,"invalid zlib data"),(s[1]>>5&1)==+!t&&ji(6,"invalid zlib data: "+(s[1]&32?"need":"unexpected")+" dictionary"),(s[1]>>3&4)+2};function xJ(s,t){return ow(s,{i:2},t,t)}function vJ(s,t){var e=mJ(s);return e+8>s.length&&ji(6,"invalid gzip data"),ow(s.subarray(e,-8),{i:2},new Vi(_J(s)),t)}function wJ(s,t){return ow(s.subarray(yJ(s,t),-4),{i:2},t,t)}function dy(s,t){return s[0]==31&&s[1]==139&&s[2]==8?vJ(s,t):(s[0]&15)!=8||s[0]>>4>7||(s[0]<<8|s[1])%31?xJ(s,t):wJ(s,t)}var EJ=typeof TextDecoder<"u"&&new TextDecoder,SJ=0;try{EJ.decode(pJ,{stream:!0}),SJ=1}catch{}var PA=(s,t)=>s*Math.pow(2,t),ou=(s,t)=>Math.floor(s/Math.pow(2,t)),Kp=(s,t)=>PA(s.getUint16(t+1,!0),8)+s.getUint8(t),AA=(s,t)=>PA(s.getUint32(t+2,!0),16)+s.getUint16(t,!0),MJ=(s,t,e,i,n)=>{if(s!=i.getUint8(n))return s-i.getUint8(n);const r=Kp(i,n+1);if(t!=r)return t-r;const o=Kp(i,n+4);return e!=o?e-o:0},bJ=(s,t,e,i)=>{const n=LA(s,t|128,e,i);return n?{z:t,x:e,y:i,offset:n[0],length:n[1],is_dir:!0}:null},jM=(s,t,e,i)=>{const n=LA(s,t,e,i);return n?{z:t,x:e,y:i,offset:n[0],length:n[1],is_dir:!1}:null},LA=(s,t,e,i)=>{let n=0,r=s.byteLength/17-1;for(;n<=r;){const o=r+n>>1,a=MJ(t,e,i,s,o*17);if(a>0)n=o+1;else if(a<0)r=o-1;else return[AA(s,o*17+7),s.getUint32(o*17+13,!0)]}return null},CJ=(s,t)=>s.is_dir&&!t.is_dir?1:!s.is_dir&&t.is_dir?-1:s.z!==t.z?s.z-t.z:s.x!==t.x?s.x-t.x:s.y-t.y,OA=(s,t)=>{const e=s.getUint8(t*17);return{z:e&127,x:Kp(s,t*17+1),y:Kp(s,t*17+4),offset:AA(s,t*17+7),length:s.getUint32(t*17+13,!0),is_dir:e>>7===1}},zM=s=>{const t=[],e=new DataView(s);for(let i=0;i{s.sort(CJ);const t=new ArrayBuffer(17*s.length),e=new Uint8Array(t);for(let i=0;i>8&255,e[i*17+3]=n.x>>16&255,e[i*17+4]=n.y&255,e[i*17+5]=n.y>>8&255,e[i*17+6]=n.y>>16&255,e[i*17+7]=n.offset&255,e[i*17+8]=ou(n.offset,8)&255,e[i*17+9]=ou(n.offset,16)&255,e[i*17+10]=ou(n.offset,24)&255,e[i*17+11]=ou(n.offset,32)&255,e[i*17+12]=ou(n.offset,48)&255,e[i*17+13]=n.length&255,e[i*17+14]=n.length>>8&255,e[i*17+15]=n.length>>16&255,e[i*17+16]=n.length>>24&255}return t},RJ=(s,t)=>{if(s.byteLength<17)return null;const e=s.byteLength/17,i=OA(s,e-1);if(i.is_dir){const n=i.z,r=t.z-n,o=Math.trunc(t.x/(1<>>0)*4294967296+(s>>>0)}function LJ(s,t){const e=t.buf;let i,n;if(n=e[t.pos++],i=(n&112)>>4,n<128||(n=e[t.pos++],i|=(n&127)<<3,n<128)||(n=e[t.pos++],i|=(n&127)<<10,n<128)||(n=e[t.pos++],i|=(n&127)<<17,n<128)||(n=e[t.pos++],i|=(n&127)<<24,n<128)||(n=e[t.pos++],i|=(n&1)<<31,n<128))return AJ(s,i);throw new Error("Expected varint not more than 10 bytes")}function au(s){const t=s.buf;let e,i;return i=t[s.pos++],e=i&127,i<128||(i=t[s.pos++],e|=(i&127)<<7,i<128)||(i=t[s.pos++],e|=(i&127)<<14,i<128)||(i=t[s.pos++],e|=(i&127)<<21,i<128)?e:(i=t[s.pos],e|=(i&15)<<28,LJ(e,s))}function OJ(s,t,e,i){if(i==0){e==1&&(t[0]=s-1-t[0],t[1]=s-1-t[1]);const n=t[0];t[0]=t[1],t[1]=n}}var FJ=[0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,22369621,89478485,357913941,1431655765,5726623061,22906492245,91625968981,366503875925,1466015503701,5864062014805,23456248059221,93824992236885,375299968947541,0x5555555555555];function NJ(s,t,e){if(s>26)throw Error("Tile zoom level exceeds max safe number limit (26)");if(t>Math.pow(2,s)-1||e>Math.pow(2,s)-1)throw Error("tile x/y outside zoom level bounds");const i=FJ[s],n=Math.pow(2,s);let r=0,o=0,a=0;const l=[t,e];let h=n/2;for(;h>0;)r=(l[0]&h)>0?1:0,o=(l[1]&h)>0?1:0,a+=h*h*(3*r^o),OJ(h,l,r,o),h=h/2;return i+a}function NA(s,t){return ii(this,null,function*(){if(t===1||t===0)return s;if(t===2){if(typeof globalThis.DecompressionStream>"u")return dy(new Uint8Array(s));{let e=new Response(s).body.pipeThrough(new globalThis.DecompressionStream("gzip"));return new Response(e).arrayBuffer()}}else throw Error("Compression method not supported")})}var th=(s=>(s[s.Unknown=0]="Unknown",s[s.Mvt=1]="Mvt",s[s.Png=2]="Png",s[s.Jpeg=3]="Jpeg",s[s.Webp=4]="Webp",s[s.Avif=5]="Avif",s))(th||{}),DJ=127;function kJ(s,t){let e=0,i=s.length-1;for(;e<=i;){const n=i+e>>1,r=t-s[n].tileId;if(r>0)e=n+1;else if(r<0)i=n-1;else return s[n]}return i>=0&&(s[i].runLength===0||t-s[i].tileId=300)throw Error("Bad response code: "+r.status);const o=r.headers.get("Content-Length");if(r.status===200&&(!o||+o>t))throw i&&i.abort(),Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield r.arrayBuffer(),etag:r.headers.get("ETag")||void 0,cacheControl:r.headers.get("Cache-Control")||void 0,expires:r.headers.get("Expires")||void 0}})}};function An(s,t){const e=s.getUint32(t+4,!0),i=s.getUint32(t+0,!0);return e*Math.pow(2,32)+i}function GJ(s,t){const e=new DataView(s),i=e.getUint8(7);if(i>3)throw Error(`Archive is spec version ${i} but this library supports up to spec version 3`);return{specVersion:i,rootDirectoryOffset:An(e,8),rootDirectoryLength:An(e,16),jsonMetadataOffset:An(e,24),jsonMetadataLength:An(e,32),leafDirectoryOffset:An(e,40),leafDirectoryLength:An(e,48),tileDataOffset:An(e,56),tileDataLength:An(e,64),numAddressedTiles:An(e,72),numTileEntries:An(e,80),numTileContents:An(e,88),clustered:e.getUint8(96)===1,internalCompression:e.getUint8(97),tileCompression:e.getUint8(98),tileType:e.getUint8(99),minZoom:e.getUint8(100),maxZoom:e.getUint8(101),minLon:e.getInt32(102,!0)/1e7,minLat:e.getInt32(106,!0)/1e7,maxLon:e.getInt32(110,!0)/1e7,maxLat:e.getInt32(114,!0)/1e7,centerZoom:e.getUint8(118),centerLon:e.getInt32(119,!0)/1e7,centerLat:e.getInt32(123,!0)/1e7,etag:t}}function DA(s){const t={buf:new Uint8Array(s),pos:0},e=au(t),i=[];let n=0;for(let r=0;r0?i[r].offset=i[r-1].offset+i[r-1].length:i[r].offset=o-1}return i}function jJ(s){const t=new DataView(s);return t.getUint16(2,!0)===2?(console.warn("PMTiles spec version 2 has been deprecated; please see github.com/protomaps/PMTiles for tools to upgrade"),2):t.getUint16(2,!0)===1?(console.warn("PMTiles spec version 1 has been deprecated; please see github.com/protomaps/PMTiles for tools to upgrade"),1):3}var _h=class extends Error{};function zJ(s,t,e,i){return ii(this,null,function*(){const n=yield s.getBytes(0,16384);if(new DataView(n.data).getUint16(0,!0)!==19792)throw new Error("Wrong magic number for PMTiles archive");if(jJ(n.data)<3)return[yield FA.getHeader(s)];const r=n.data.slice(0,DJ);let o=n.etag;i&&n.etag!=i&&(console.warn("ETag conflict detected; your HTTP server might not support content-based ETag headers. ETags disabled for "+s.getKey()),o=void 0);const a=GJ(r,o);if(e){const l=n.data.slice(a.rootDirectoryOffset,a.rootDirectoryOffset+a.rootDirectoryLength),h=s.getKey()+"|"+(a.etag||"")+"|"+a.rootDirectoryOffset+"|"+a.rootDirectoryLength,c=DA(yield t(l,a.internalCompression));return[a,[h,c.length,c]]}return[a,void 0]})}function UJ(s,t,e,i,n){return ii(this,null,function*(){const r=yield s.getBytes(e,i);if(n.etag&&n.etag!==r.etag)throw new _h(r.etag);const o=yield t(r.data,n.internalCompression),a=DA(o);if(a.length===0)throw new Error("Empty directory is invalid");return a})}var BJ=class{constructor(s=100,t=!0,e=NA){this.cache=new Map,this.maxCacheEntries=s,this.counter=1,this.prefetch=t,this.decompress=e}getHeader(s,t){return ii(this,null,function*(){const e=s.getKey();if(this.cache.has(e))return this.cache.get(e).lastUsed=this.counter++,yield this.cache.get(e).data;const i=new Promise((n,r)=>{zJ(s,this.decompress,this.prefetch,t).then(o=>{o[1]&&this.cache.set(o[1][0],{lastUsed:this.counter++,data:Promise.resolve(o[1][2])}),n(o[0]),this.prune()}).catch(o=>{r(o)})});return this.cache.set(e,{lastUsed:this.counter++,data:i}),i})}getDirectory(s,t,e,i){return ii(this,null,function*(){const n=s.getKey()+"|"+(i.etag||"")+"|"+t+"|"+e;if(this.cache.has(n))return this.cache.get(n).lastUsed=this.counter++,yield this.cache.get(n).data;const r=new Promise((o,a)=>{UJ(s,this.decompress,t,e,i).then(l=>{o(l),this.prune()}).catch(l=>{a(l)})});return this.cache.set(n,{lastUsed:this.counter++,data:r}),r})}getArrayBuffer(s,t,e,i){return ii(this,null,function*(){const n=s.getKey()+"|"+(i.etag||"")+"|"+t+"|"+e;if(this.cache.has(n))return this.cache.get(n).lastUsed=this.counter++,yield this.cache.get(n).data;const r=new Promise((o,a)=>{s.getBytes(t,e).then(l=>{if(i.etag&&i.etag!==l.etag)throw new _h(l.etag);o(l.data),this.cache.has(n),this.prune()}).catch(l=>{a(l)})});return this.cache.set(n,{lastUsed:this.counter++,data:r}),r})}prune(){if(this.cache.size>=this.maxCacheEntries){let s=1/0,t;this.cache.forEach((e,i)=>{e.lastUsedr.maxZoom)return;let o=r.rootDirectoryOffset,a=r.rootDirectoryLength;for(let l=0;l<=3;l++){const h=yield this.cache.getDirectory(this.source,o,a,r),c=kJ(h,n);if(c)if(c.runLength>0){const u=yield this.source.getBytes(r.tileDataOffset+c.offset,c.length,i);if(r.etag&&r.etag!==u.etag)throw new _h(u.etag);return{data:yield this.decompress(u.data,r.tileCompression),cacheControl:u.cacheControl,expires:u.expires}}else o=r.leafDirectoryOffset+c.offset,a=c.length;else return}throw Error("Maximum directory depth exceeded")})}getZxy(s,t,e,i){return ii(this,null,function*(){try{return yield this.getZxyAttempt(s,t,e,i)}catch(n){if(n instanceof _h)return this.cache.invalidate(this.source,n.message),yield this.getZxyAttempt(s,t,e,i);throw n}})}getMetadataAttempt(){return ii(this,null,function*(){const s=yield this.cache.getHeader(this.source),t=yield this.source.getBytes(s.jsonMetadataOffset,s.jsonMetadataLength);if(s.etag&&s.etag!==t.etag)throw new _h(t.etag);const e=yield this.decompress(t.data,s.internalCompression),i=new TextDecoder("utf-8");return JSON.parse(i.decode(e))})}getMetadata(){return ii(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(s){if(s instanceof _h)return this.cache.invalidate(this.source,s.message),yield this.getMetadataAttempt();throw s}})}};class WJ extends Sr{constructor(t){super(Zt.ERROR),this.error=t}}class u0 extends l0{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;const t=this.peekFirstKey(),e=SK(t)[0];this.forEach(i=>{i.tileCoord[0]!==e&&(this.remove(Do(i.tileCoord)),i.release())})}}const Fh={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},Ul=[0,0,0],Ao=5;class ma{constructor(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,qt(HU(this.resolutions_,(n,r)=>r-n),"`resolutions` must be sorted in descending order");let e;if(!t.origins){for(let n=0,r=this.resolutions_.length-1;n{const o=new h0(Math.min(0,n[0]),Math.max(n[0]-1,-1),Math.min(0,n[1]),Math.max(n[1]-1,-1));if(i){const a=this.getTileRangeForExtentAndZ(i,r);o.minX=Math.max(a.minX,o.minX),o.maxX=Math.min(a.maxX,o.maxX),o.minY=Math.max(a.minY,o.minY),o.maxY=Math.min(a.maxY,o.maxY)}return o}):i&&this.calculateTileRanges_(i)}forEachTileCoord(t,e,i){const n=this.getTileRangeForExtentAndZ(t,e);for(let r=n.minX,o=n.maxX;r<=o;++r)for(let a=n.minY,l=n.maxY;a<=l;++a)i([e,r,a])}forEachTileCoordParentTileRange(t,e,i,n){let r,o,a,l=null,h=t[0]-1;for(this.zoomFactor_===2?(o=t[1],a=t[2]):l=this.getTileCoordExtent(t,n);h>=this.minZoom;){if(o!==void 0&&a!==void 0?(o=Math.floor(o/2),a=Math.floor(a/2),r=Gl(o,o,a,a,i)):r=this.getTileRangeForExtentAndZ(l,h,i),e(h,r))return!0;--h}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,i){if(t[0]this.maxZoom||e0?S=e.find(function(w){return v[c]==w[h]?!0:v[c].includes(":")?!1:s[c]+":"+v[c]===w[h]}):S=!0,S){n.push(v[c]);const w=v[u]*28e-5/_,C=v[g],M=v[f];y?r.push([v[d][1],v[d][0]]):r.push(v[d]),i.push(w),o.push(C==M?C:[C,M]),a.push([v.MatrixWidth,v.MatrixHeight])}}),new XJ({extent:t,origins:r,resolutions:i,matrixIds:n,tileSizes:o,sizes:a})}function lw(s){let t=s.getDefaultTileGrid();return t||(t=ZJ(s),s.setDefaultTileGrid(t)),t}function YJ(s,t,e){const i=t[0],n=s.getTileCoordCenter(t),r=yo(e);if(!Yi(r,n)){const o=Rt(r),a=Math.ceil((r[0]-n[0])/o);return n[0]+=o*a,s.getTileCoordForCoordAndZ(n,i)}return t}function qJ(s,t,e,i){i=i!==void 0?i:"top-left";const n=kA(s,t,e);return new ma({extent:s,origin:h9(s,i),resolutions:n,tileSize:e})}function Cl(s){const t=s||{},e=t.extent||st("EPSG:3857").getExtent(),i={extent:e,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:kA(e,t.maxZoom,t.tileSize,t.maxResolution)};return new ma(i)}function kA(s,t,e,i){t=t!==void 0?t:GP,e=Re(e!==void 0?e:cc);const n=Ee(s),r=Rt(s);i=i>0?i:Math.max(r/e[0],n/e[1]);const o=t+1,a=new Array(o);for(let l=0;l{const y=Re(l.getTileSize(_)),v=this.getTileSize(_);return Math.max(v[0]/y[0],v[1]/y[1])})),c=this.getTileGridForProjection(r),u=this.getTileGridForProjection(n),d=[t,e,i],g=this.getTileCoordForTileUrlFunction(d,n),f=Object.assign({sourceProj:r,sourceTileGrid:c,targetProj:n,targetTileGrid:u,tileCoord:d,wrappedTileCoord:g,pixelRatio:h,gutter:this.getGutterForProjection(r),getTileFunction:(m,_,y,v)=>this.getTile(m,_,y,v,r)},this.tileOptions),p=new a0(f);return p.key=this.getKey(),p}getTile(t,e,i,n,r){const o=this.getProjection();if(o&&r&&!qs(o,r))return this.getReprojTile_(t,e,i,r,o);const a=this.getTileSize(t),l=ro(t,e,i);if(this.tileCache.containsKey(l))return this.tileCache.get(l);const h=this.loader_,c=new AbortController,u={signal:c.signal,crossOrigin:this.crossOrigin_},d=this.getTileCoordForTileUrlFunction([t,e,i]);if(!d)return null;const g=d[0],f=d[1],p=d[2];function m(){return lI(function(){return h(g,f,p,u)})}const _=Object.assign({tileCoord:[t,e,i],loader:m,size:a,controller:c},this.tileOptions),y=new kd(_);return y.key=this.getKey(),y.addEventListener(Zt.CHANGE,this.handleTileChange_),this.tileCache.set(l,y),y}handleTileChange_(t){const e=t.target,i=mt(e),n=e.getState();let r;n==X.LOADING?(this.tileLoadingKeys_[i]=!0,r=Fh.TILELOADSTART):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],r=n==X.ERROR?Fh.TILELOADERROR:n==X.LOADED?Fh.TILELOADEND:void 0),r&&this.dispatchEvent(new $A(r,e))}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||qs(e,t)))return this.tileGrid;const i=mt(t);return i in this.tileGridForProjection_||(this.tileGridForProjection_[i]=lw(t)),this.tileGridForProjection_[i]}setTileGridForProjection(t,e){const i=st(t);if(i){const n=mt(i);n in this.tileGridForProjection_||(this.tileGridForProjection_[n]=e)}}getTileCacheForProjection(t){const e=this.getProjection();if(!e||qs(e,t))return this.tileCache;const i=mt(t);return i in this.tileCacheForProjection_||(this.tileCacheForProjection_[i]=new u0(.1)),this.tileCacheForProjection_[i]}expireCache(t,e){const i=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==i?e:{});for(const n in this.tileCacheForProjection_){const r=this.tileCacheForProjection_[n];r.expireCache(r==i?e:{})}}clear(){super.clear();for(const t in this.tileCacheForProjection_)this.tileCacheForProjection_[t].clear()}}function Gs(s){return(t,...e)=>KJ(s,t,e)}function Fc(s,t){return Gs(GA(s,t).get)}const{apply:KJ,construct:mct,defineProperty:_ct,get:yct,getOwnPropertyDescriptor:GA,getPrototypeOf:hw,has:xct,ownKeys:JJ,set:vct,setPrototypeOf:wct}=Reflect,{iterator:Ng,species:Ect,toStringTag:QJ,for:Sct}=Symbol,tQ=Object,{create:cw,defineProperty:eQ,freeze:Mct,is:bct}=tQ,sQ=Array,iQ=sQ.prototype,jA=iQ[Ng],nQ=Gs(jA),zA=ArrayBuffer,rQ=zA.prototype;Fc(rQ,"byteLength");const UM=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:null;UM&&Fc(UM.prototype,"byteLength");const UA=hw(Uint8Array);UA.from;const di=UA.prototype;di[Ng];Gs(di.keys);Gs(di.values);Gs(di.entries);Gs(di.set);Gs(di.reverse);Gs(di.fill);Gs(di.copyWithin);Gs(di.sort);Gs(di.slice);Gs(di.subarray);Fc(di,"buffer");Fc(di,"byteOffset");Fc(di,"length");Fc(di,QJ);const oQ=Uint8Array,BA=Uint16Array,uw=Uint32Array,aQ=Float32Array,Gd=hw([][Ng]()),WA=Gs(Gd.next),lQ=Gs(function*(){}().next),hQ=hw(Gd),cQ=DataView.prototype,uQ=Gs(cQ.getUint16),dw=WeakMap,XA=dw.prototype,VA=Gs(XA.get),dQ=Gs(XA.set),YA=new dw,gQ=cw(null,{next:{value:function(){const s=VA(YA,this);return WA(s)}},[Ng]:{value:function(){return this}}});function fQ(s){if(s[Ng]===jA&&Gd.next===WA)return s;const t=cw(gQ);return dQ(YA,t,nQ(s)),t}const pQ=new dw,mQ=cw(hQ,{next:{value:function(){const s=VA(pQ,this);return lQ(s)},writable:!0,configurable:!0}});for(const s of JJ(Gd))s!=="next"&&eQ(mQ,s,GA(Gd,s));const qA=new zA(4),_Q=new aQ(qA),yQ=new uw(qA),Jn=new BA(512),Qn=new oQ(512);for(let s=0;s<256;++s){const t=s-127;t<-24?(Jn[s]=0,Jn[s|256]=32768,Qn[s]=24,Qn[s|256]=24):t<-14?(Jn[s]=1024>>-t-14,Jn[s|256]=1024>>-t-14|32768,Qn[s]=-t-1,Qn[s|256]=-t-1):t<=15?(Jn[s]=t+15<<10,Jn[s|256]=t+15<<10|32768,Qn[s]=13,Qn[s|256]=13):t<128?(Jn[s]=31744,Jn[s|256]=64512,Qn[s]=24,Qn[s|256]=24):(Jn[s]=31744,Jn[s|256]=64512,Qn[s]=13,Qn[s|256]=13)}const gw=new uw(2048);for(let s=1;s<1024;++s){let t=s<<13,e=0;for(;!(t&8388608);)t<<=1,e-=8388608;t&=-8388609,e+=947912704,gw[s]=t|e}for(let s=1024;s<2048;++s)gw[s]=939524096+(s-1024<<13);const Nc=new uw(64);for(let s=1;s<31;++s)Nc[s]=s<<23;Nc[31]=1199570944;Nc[32]=2147483648;for(let s=33;s<63;++s)Nc[s]=2147483648+(s-32<<23);Nc[63]=3347054592;const ZA=new BA(64);for(let s=1;s<64;++s)s!==32&&(ZA[s]=1024);function xQ(s){const t=s>>10;return yQ[0]=gw[ZA[t]+(s&1023)]+Nc[t],_Q[0]}function HA(s,t,...e){return xQ(uQ(s,t,...fQ(e)))}var qa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function g0(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var fw={exports:{}};function KA(s,t,e){const i=e&&e.debug||!1;i&&console.log("[xml-utils] getting "+t+" in "+s);const n=typeof s=="object"?s.outer:s,r=n.slice(0,n.indexOf(">")+1),o=['"',"'"];for(let a=0;a/]`,r);if(i&&console.log("[xml-utils] start:",o),o===-1)return;const a=s.slice(o+t.length);let l=Y_(a,"^[^<]*[ /]>",0);const h=l!==-1&&a[l-1]==="/";if(i&&console.log("[xml-utils] selfClosing:",h),h===!1)if(n){let g=0,f=1,p=0;for(;(l=Y_(a,"[ /]"+t+">",g))!==-1;){const m=a.substring(g,l+1);if(f+=BM(m,"<"+t+`[ - >]`),p+=BM(m,""),p>=f)break;g=l}}else l=Y_(a,"[ /]"+t+">",0);const c=o+t.length+l+1;if(i&&console.log("[xml-utils] end:",c),c===-1)return;const u=s.slice(o,c);let d;return h?d=null:d=u.slice(u.indexOf(">")+1,u.lastIndexOf("<")),{inner:d,outer:u,start:o,end:c}}mw.exports=eL;mw.exports.default=eL;var bQ=mw.exports;const CQ=bQ;function sL(s,t,e){const i=[],n=e&&e.debug||!1,r=e&&typeof e.nested=="boolean"?e.nested:!0;let o=e&&e.startIndex||0,a;for(;a=CQ(s,t,{debug:n,startIndex:o});)r?o=a.start+1+t.length:o=a.end,i.push(a);return n&&console.log("findTagsByName found",i.length,"tags"),i}pw.exports=sL;pw.exports.default=sL;var TQ=pw.exports;const RQ=g0(TQ),Ku={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},er={};for(const s in Ku)Ku.hasOwnProperty(s)&&(er[Ku[s]]=parseInt(s,10));const IQ=[er.BitsPerSample,er.ExtraSamples,er.SampleFormat,er.StripByteCounts,er.StripOffsets,er.StripRowCounts,er.TileByteCounts,er.TileOffsets,er.SubIFDs],q_={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},Ut={};for(const s in q_)q_.hasOwnProperty(s)&&(Ut[q_[s]]=parseInt(s,10));const gi={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},PQ={Unspecified:0,Assocalpha:1,Unassalpha:2},Cct={Version:0,AddCompression:1},Tct={None:0,Deflate:1,Zstandard:2},AQ={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"};function LQ(s,t){const{width:e,height:i}=s,n=new Uint8Array(e*i*3);let r;for(let o=0,a=0;o>24,l=s[n+2]<<24>>24;let h=(o+16)/116,c=a/500+h,u=h-l/200,d,g,f;c=kQ*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),h=$Q*(h*h*h>.008856?h*h*h:(h-16/116)/7.787),u=GQ*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),d=c*3.2406+h*-1.5372+u*-.4986,g=c*-.9689+h*1.8758+u*.0415,f=c*.0557+h*-.204+u*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:12.92*d,g=g>.0031308?1.055*g**(1/2.4)-.055:12.92*g,f=f>.0031308?1.055*f**(1/2.4)-.055:12.92*f,i[r]=Math.max(0,Math.min(1,d))*255,i[r+1]=Math.max(0,Math.min(1,g))*255,i[r+2]=Math.max(0,Math.min(1,f))*255}return i}const iL=new Map;function _a(s,t){Array.isArray(s)||(s=[s]),s.forEach(e=>iL.set(e,t))}async function nL(s){const t=iL.get(s.Compression);if(!t)throw new Error(`Unknown compression method identifier: ${s.Compression}`);const e=await t();return new e(s)}_a([void 0,1],()=>da(()=>import("./raw-CMGvRjfu-Blplg0lv.js"),__vite__mapDeps([0,1])).then(s=>s.default));_a(5,()=>da(()=>import("./lzw-LAGDNbSC-uvu3SnH0.js"),__vite__mapDeps([2,1])).then(s=>s.default));_a(6,()=>{throw new Error("old style JPEG compression is not supported.")});_a(7,()=>da(()=>import("./jpeg-BAgeD1d3-DG6CHa_P.js"),__vite__mapDeps([3,1])).then(s=>s.default));_a([8,32946],()=>da(()=>import("./deflate-BXt-9JA_-CoW5SAcn.js"),__vite__mapDeps([4,5,1])).then(s=>s.default));_a(32773,()=>da(()=>import("./packbits-BlDR4Kj5-myqVpMVP.js"),__vite__mapDeps([6,1])).then(s=>s.default));_a(34887,()=>da(()=>import("./lerc-B4lXefGh-AVOSkc8n.js"),__vite__mapDeps([7,5,1,8,9,10,11])).then(async s=>(await s.zstd.init(),s)).then(s=>s.default));_a(50001,()=>da(()=>import("./webimage-BM_pbLN3-BOB8pnha.js"),__vite__mapDeps([12,1])).then(s=>s.default));function f0(s,t,e,i=1){return new(Object.getPrototypeOf(s)).constructor(t*e*i)}function zQ(s,t,e,i,n){const r=t/i,o=e/n;return s.map(a=>{const l=f0(a,i,n);for(let h=0;h{const l=f0(a,i,n);for(let h=0;h>8-n-C&u;else if(C+n<=16)c[S]=a.getUint16(w)>>16-n-C&u;else if(C+n<=24){const M=a.getUint16(w)<<8|a.getUint8(w+2);c[S]=M>>24-n-C&u}else c[S]=a.getUint32(w)>>32-n-C&u}}}}return c.buffer}class rL{constructor(t,e,i,n,r,o){this.fileDirectory=t,this.geoKeys=e,this.dataView=i,this.littleEndian=n,this.tiles=r?{}:null,this.isTiled=!t.StripOffsets;const a=t.PlanarConfiguration;if(this.planarConfiguration=typeof a>"u"?1:a,this.planarConfiguration!==1&&this.planarConfiguration!==2)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return typeof this.fileDirectory.SamplesPerPixel<"u"?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:typeof this.fileDirectory.RowsPerStrip<"u"?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let e=0;e=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const e=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,i=this.fileDirectory.BitsPerSample[t];switch(e){case 1:if(i<=8)return DataView.prototype.getUint8;if(i<=16)return DataView.prototype.getUint16;if(i<=32)return DataView.prototype.getUint32;break;case 2:if(i<=8)return DataView.prototype.getInt8;if(i<=16)return DataView.prototype.getInt16;if(i<=32)return DataView.prototype.getInt32;break;case 3:switch(i){case 16:return function(n,r){return HA(this,n,r)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,e){const i=this.getSampleFormat(t),n=this.getBitsPerSample(t);return gy(i,n,e)}async getTileOrStrip(t,e,i,n,r){const o=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let l;const{tiles:h}=this;this.planarConfiguration===1?l=e*o+t:this.planarConfiguration===2&&(l=i*o*a+e*o+t);let c,u;this.isTiled?(c=this.fileDirectory.TileOffsets[l],u=this.fileDirectory.TileByteCounts[l]):(c=this.fileDirectory.StripOffsets[l],u=this.fileDirectory.StripByteCounts[l]);const d=(await this.source.fetch([{offset:c,length:u}],r))[0];let g;return h===null||!h[l]?(g=(async()=>{let f=await n.decode(this.fileDirectory,d);const p=this.getSampleFormat(),m=this.getBitsPerSample();return qQ(p,m)&&(f=ZQ(f,p,this.planarConfiguration,this.getSamplesPerPixel(),m,this.getTileWidth(),this.getBlockHeight(e))),f})(),h!==null&&(h[l]=g)):g=h[l],{x:t,y:e,sample:i,data:await g}}async _readRaster(t,e,i,n,r,o,a,l,h){const c=this.getTileWidth(),u=this.getTileHeight(),d=this.getWidth(),g=this.getHeight(),f=Math.max(Math.floor(t[0]/c),0),p=Math.min(Math.ceil(t[2]/c),Math.ceil(d/c)),m=Math.max(Math.floor(t[1]/u),0),_=Math.min(Math.ceil(t[3]/u),Math.ceil(g/u)),y=t[2]-t[0];let v=this.getBytesPerPixel();const S=[],w=[];for(let T=0;T{const R=b.data,A=new DataView(R),$=this.getBlockHeight(b.y),G=b.y*u,k=b.x*c,z=G+$,V=(b.x+1)*c,et=w[D],F=Math.min($,$-(z-t[3]),g-G),ot=Math.min(c,c-(V-t[2]),d-k);for(let ht=Math.max(0,t[1]-G);htc[2]||c[1]>c[3])throw new Error("Invalid subsets");const u=c[2]-c[0],d=c[3]-c[1],g=u*d,f=this.getSamplesPerPixel();if(!e||!e.length)for(let _=0;_=f)return Promise.reject(new RangeError(`Invalid sample index '${e[_]}'.`));let p;if(i){const _=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,y=Math.max.apply(null,this.fileDirectory.BitsPerSample);p=gy(_,y,g*e.length),l&&p.fill(l)}else{p=[];for(let _=0;_h[2]||h[1]>h[3])throw new Error("Invalid subsets");const c=this.fileDirectory.PhotometricInterpretation;if(c===gi.RGB){let _=[0,1,2];if(this.fileDirectory.ExtraSamples!==PQ.Unspecified&&a){_=[];for(let y=0;yV_(r,"sample")===void 0):n=n.filter(r=>Number(V_(r,"sample"))===t);for(let r=0;r[a+n*p+r*m,u+l*p+h*m]),g=d.map(p=>p[0]),f=d.map(p=>p[1]);return[Math.min(...g),Math.min(...f),Math.max(...g),Math.max(...f)]}else{const n=this.getOrigin(),r=this.getResolution(),o=n[0],a=n[1],l=o+r[0]*i,h=a+r[1]*e;return[Math.min(o,l),Math.min(a,h),Math.max(o,l),Math.max(a,h)]}}}class HQ{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,e){const i=this.getUint32(t,e),n=this.getUint32(t+4,e);let r;if(e){if(r=i+2**32*n,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}if(r=2**32*i+n,!Number.isSafeInteger(r))throw new Error(`${r} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return r}getInt64(t,e){let i=0;const n=(this._dataView.getUint8(t+(e?7:0))&128)>0;let r=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(t+(e?o:7-o));n&&(r?a!==0&&(a=~(a-1)&255,r=!1):a=~a&255),i+=a*256**o}return n&&(i=-i),i}getUint8(t,e){return this._dataView.getUint8(t,e)}getInt8(t,e){return this._dataView.getInt8(t,e)}getUint16(t,e){return this._dataView.getUint16(t,e)}getInt16(t,e){return this._dataView.getInt16(t,e)}getUint32(t,e){return this._dataView.getUint32(t,e)}getInt32(t,e){return this._dataView.getInt32(t,e)}getFloat16(t,e){return HA(this._dataView,t,e)}getFloat32(t,e){return this._dataView.getFloat32(t,e)}getFloat64(t,e){return this._dataView.getFloat64(t,e)}}class KQ{constructor(t,e,i,n){this._dataView=new DataView(t),this._sliceOffset=e,this._littleEndian=i,this._bigTiff=n}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(t,e){return this.sliceOffset<=t&&this.sliceTop>=t+e}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const e=this.readUint32(t),i=this.readUint32(t+4);let n;if(this._littleEndian){if(n=e+2**32*i,!Number.isSafeInteger(n))throw new Error(`${n} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return n}if(n=2**32*e+i,!Number.isSafeInteger(n))throw new Error(`${n} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return n}readInt64(t){let e=0;const i=(this._dataView.getUint8(t+(this._littleEndian?7:0))&128)>0;let n=!0;for(let r=0;r<8;r++){let o=this._dataView.getUint8(t+(this._littleEndian?r:7-r));i&&(n?o!==0&&(o=~(o-1)&255,n=!1):o=~o&255),e+=o*256**r}return i&&(e=-e),e}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const JQ=typeof navigator<"u"&&navigator.hardwareConcurrency||2;class QQ{constructor(t=JQ,e){this.workers=null,this._awaitingDecoder=null,this.size=t,this.messageId=0,t&&(this._awaitingDecoder=e?Promise.resolve(e):new Promise(i=>{da(()=>import("./decoder-DJlmx386-CaSv2t6h.js"),[]).then(n=>{i(n.create)})}),this._awaitingDecoder.then(i=>{this._awaitingDecoder=null,this.workers=[];for(let n=0;ni.decode(t,e)):new Promise(i=>{const n=this.workers.find(a=>a.idle)||this.workers[Math.floor(Math.random()*this.size)];n.idle=!1;const r=this.messageId++,o=a=>{a.data.id===r&&(n.idle=!0,i(a.data.decoded),n.worker.removeEventListener("message",o))};n.worker.addEventListener("message",o),n.worker.postMessage({fileDirectory:t,buffer:e,id:r},[e])})}destroy(){this.workers&&(this.workers.forEach(t=>{t.worker.terminate()}),this.workers=null)}}const WM=`\r -\r -`;function oL(s){if(typeof Object.fromEntries<"u")return Object.fromEntries(s);const t={};for(const[e,i]of s)t[e.toLowerCase()]=i;return t}function ttt(s){const t=s.split(`\r -`).map(e=>{const i=e.split(":").map(n=>n.trim());return i[0]=i[0].toLowerCase(),i});return oL(t)}function ett(s){const[t,...e]=s.split(";").map(n=>n.trim()),i=e.map(n=>n.split("="));return{type:t,params:oL(i)}}function fy(s){let t,e,i;return s&&([,t,e,i]=s.match(/bytes (\d+)-(\d+)\/(\d+)/),t=parseInt(t,10),e=parseInt(e,10),i=parseInt(i,10)),{start:t,end:e,total:i}}function stt(s,t){let e=null;const i=new TextDecoder("ascii"),n=[],r=`--${t}`,o=`${r}--`;for(let a=0;a<10;++a)i.decode(new Uint8Array(s,a,r.length))===r&&(e=a);if(e===null)throw new Error("Could not find initial boundary");for(;ethis.fetchSlice(i,e)))}async fetchSlice(t){throw new Error(`fetching of slice ${t} not possible, not implemented`)}get fileSize(){return null}async close(){}}class itt extends Map{constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=t.maxSize,this.maxAge=t.maxAge||Number.POSITIVE_INFINITY,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(t){if(typeof this.onEviction=="function")for(const[e,i]of t)this.onEviction(e,i.value)}_deleteIfExpired(t,e){return typeof e.expiry=="number"&&e.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(t,e.value),this.delete(t)):!1}_getOrDeleteIfExpired(t,e){if(this._deleteIfExpired(t,e)===!1)return e.value}_getItemValue(t,e){return e.expiry?this._getOrDeleteIfExpired(t,e):e.value}_peek(t,e){const i=e.get(t);return this._getItemValue(t,i)}_set(t,e){this.cache.set(t,e),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(t,e){this.oldCache.delete(t),this._set(t,e)}*_entriesAscending(){for(const t of this.oldCache){const[e,i]=t;this.cache.has(e)||this._deleteIfExpired(e,i)===!1&&(yield t)}for(const t of this.cache){const[e,i]=t;this._deleteIfExpired(e,i)===!1&&(yield t)}}get(t){if(this.cache.has(t)){const e=this.cache.get(t);return this._getItemValue(t,e)}if(this.oldCache.has(t)){const e=this.oldCache.get(t);if(this._deleteIfExpired(t,e)===!1)return this._moveToRecent(t,e),e.value}}set(t,e,{maxAge:i=this.maxAge}={}){const n=typeof i=="number"&&i!==Number.POSITIVE_INFINITY?Date.now()+i:void 0;return this.cache.has(t)?this.cache.set(t,{value:e,expiry:n}):this._set(t,{value:e,expiry:n}),this}has(t){return this.cache.has(t)?!this._deleteIfExpired(t,this.cache.get(t)):this.oldCache.has(t)?!this._deleteIfExpired(t,this.oldCache.get(t)):!1}peek(t){if(this.cache.has(t))return this._peek(t,this.cache);if(this.oldCache.has(t))return this._peek(t,this.oldCache)}delete(t){const e=this.cache.delete(t);return e&&this._size--,this.oldCache.delete(t)||e}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const e=[...this._entriesAscending()],i=e.length-t;i<0?(this.cache=new Map(e),this.oldCache=new Map,this._size=e.length):(i>0&&this._emitEvictions(e.slice(0,i)),this.oldCache=new Map(e.slice(i)),this.cache=new Map,this._size=0),this.maxSize=t}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.cache){const[e,i]=t;this._deleteIfExpired(e,i)===!1&&(yield[e,i.value])}for(const t of this.oldCache){const[e,i]=t;this.cache.has(e)||this._deleteIfExpired(e,i)===!1&&(yield[e,i.value])}}*entriesDescending(){let t=[...this.cache];for(let e=t.length-1;e>=0;--e){const i=t[e],[n,r]=i;this._deleteIfExpired(n,r)===!1&&(yield[n,r.value])}t=[...this.oldCache];for(let e=t.length-1;e>=0;--e){const i=t[e],[n,r]=i;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield[n,r.value])}}*entriesAscending(){for(const[t,e]of this._entriesAscending())yield[t,e.value]}get size(){if(!this._size)return this.oldCache.size;let t=0;for(const e of this.oldCache.keys())this.cache.has(e)||t++;return Math.min(this._size+t,this.maxSize)}entries(){return this.entriesAscending()}forEach(t,e=this){for(const[i,n]of this.entriesAscending())t.call(e,n,i,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}async function ntt(s){return new Promise(t=>setTimeout(t,s))}function rtt(s,t){const e=Array.isArray(s)?s:Array.from(s),i=Array.isArray(t)?t:Array.from(t);return e.map((n,r)=>[n,i[r]])}class dc extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,dc),this.name="AbortError"}}class ott extends Error{constructor(t,e){super(e),this.errors=t,this.message=e,this.name="AggregateError"}}const att=ott;class ltt{constructor(t,e,i=null){this.offset=t,this.length=e,this.data=i}get top(){return this.offset+this.length}}class XM{constructor(t,e,i){this.offset=t,this.length=e,this.blockIds=i}}class htt extends vw{constructor(t,{blockSize:e=65536,cacheSize:i=100}={}){super(),this.source=t,this.blockSize=e,this.blockCache=new itt({maxSize:i,onEviction:(n,r)=>{this.evictedBlocks.set(n,r)}}),this.evictedBlocks=new Map,this.blockRequests=new Map,this.blockIdsToFetch=new Set,this.abortedBlockIds=new Set}get fileSize(){return this.source.fileSize}async fetch(t,e){const i=[],n=[],r=[];this.evictedBlocks.clear();for(const{offset:d,length:g}of t){let f=d+g;const{fileSize:p}=this;p!==null&&(f=Math.min(f,p));const m=Math.floor(d/this.blockSize)*this.blockSize;for(let _=m;_this.abortedBlockIds.has(d)||!this.blockCache.has(d));if(l.forEach(d=>this.blockIdsToFetch.add(d)),l.length>0&&e&&!e.aborted){this.fetchBlocks(null);for(const d of l){const g=this.blockRequests.get(d);if(!g)throw new Error(`Block ${d} is not in the block requests`);a.push(g)}await Promise.allSettled(a)}if(e&&e.aborted)throw new dc("Request was aborted");const h=r.map(d=>this.blockCache.get(d)||this.evictedBlocks.get(d)),c=h.filter(d=>!d);if(c.length)throw new att(c,"Request failed");const u=new Map(rtt(r,h));return this.readSliceData(t,u)}fetchBlocks(t){if(this.blockIdsToFetch.size>0){const e=this.groupBlocks(this.blockIdsToFetch),i=this.source.fetch(e,t);for(let n=0;n{try{const a=(await i)[n],l=o*this.blockSize,h=l-a.offset,c=Math.min(h+this.blockSize,a.data.byteLength),u=a.data.slice(h,c),d=new ltt(l,u.byteLength,u,o);this.blockCache.set(o,d),this.abortedBlockIds.delete(o)}catch(a){if(a.name==="AbortError")a.signal=t,this.blockCache.delete(o),this.abortedBlockIds.add(o);else throw a}finally{this.blockRequests.delete(o)}})())}this.blockIdsToFetch.clear()}}groupBlocks(t){const e=Array.from(t).sort((o,a)=>o-a);if(e.length===0)return[];let i=[],n=null;const r=[];for(const o of e)n===null||n+1===o?(i.push(o),n=o):(r.push(new XM(i[0]*this.blockSize,i.length*this.blockSize,i)),i=[o],n=o);return r.push(new XM(i[0]*this.blockSize,i.length*this.blockSize,i)),r}readSliceData(t,e){return t.map(i=>{let n=i.offset+i.length;this.fileSize!==null&&(n=Math.min(this.fileSize,n));const r=Math.floor(i.offset/this.blockSize),o=Math.floor(n/this.blockSize),a=new ArrayBuffer(i.length),l=new Uint8Array(a);for(let h=r;h<=o;++h){const c=e.get(h),u=c.offset-i.offset,d=c.top-n;let g=0,f=0,p;u<0?g=-u:u>0&&(f=u),d<0?p=c.length-g:p=n-c.offset-g;const m=new Uint8Array(c.data,g,p);l.set(m,f)}return a})}}class ww{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(t){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class Ew{constructor(t){this.url=t}async request({headers:t,signal:e}={}){throw new Error("request is not implemented")}}class ctt extends ww{constructor(t){super(),this.response=t}get status(){return this.response.status}getHeader(t){return this.response.headers.get(t)}async getData(){return this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer}}class utt extends Ew{constructor(t,e){super(t),this.credentials=e}async request({headers:t,signal:e}={}){const i=await fetch(this.url,{headers:t,credentials:this.credentials,signal:e});return new ctt(i)}}class dtt extends ww{constructor(t,e){super(),this.xhr=t,this.data=e}get status(){return this.xhr.status}getHeader(t){return this.xhr.getResponseHeader(t)}async getData(){return this.data}}class gtt extends Ew{constructRequest(t,e){return new Promise((i,n)=>{const r=new XMLHttpRequest;r.open("GET",this.url),r.responseType="arraybuffer";for(const[o,a]of Object.entries(t))r.setRequestHeader(o,a);r.onload=()=>{const o=r.response;i(new dtt(r,o))},r.onerror=n,r.onabort=()=>n(new dc("Request aborted")),r.send(),e&&(e.aborted&&r.abort(),e.addEventListener("abort",()=>r.abort()))})}async request({headers:t,signal:e}={}){return await this.constructRequest(t,e)}}const VM={};class ftt extends ww{constructor(t,e){super(),this.response=t,this.dataPromise=e}get status(){return this.response.statusCode}getHeader(t){return this.response.headers[t]}async getData(){return await this.dataPromise}}class ptt extends Ew{constructor(t){super(t),this.parsedUrl=VM.parse(this.url),this.httpApi=(this.parsedUrl.protocol,VM)}constructRequest(t,e){return new Promise((i,n)=>{const r=this.httpApi.get({...this.parsedUrl,headers:t},o=>{const a=new Promise(l=>{const h=[];o.on("data",c=>{h.push(c)}),o.on("end",()=>{const c=Buffer.concat(h).buffer;l(c)}),o.on("error",n)});i(new ftt(o,a))});r.on("error",n),e&&(e.aborted&&r.destroy(new dc("Request aborted")),e.addEventListener("abort",()=>r.destroy(new dc("Request aborted"))))})}async request({headers:t,signal:e}={}){return await this.constructRequest(t,e)}}class Sw extends vw{constructor(t,e,i,n){super(),this.client=t,this.headers=e,this.maxRanges=i,this.allowFullFile=n,this._fileSize=null}async fetch(t,e){return this.maxRanges>=t.length?this.fetchSlices(t,e):(this.maxRanges>0&&t.length>1,Promise.all(t.map(i=>this.fetchSlice(i,e))))}async fetchSlices(t,e){const i=await this.client.request({headers:{...this.headers,Range:`bytes=${t.map(({offset:n,length:r})=>`${n}-${n+r}`).join(",")}`},signal:e});if(i.ok)if(i.status===206){const{type:n,params:r}=ett(i.getHeader("content-type"));if(n==="multipart/byteranges"){const u=stt(await i.getData(),r.boundary);return this._fileSize=u[0].fileSize||null,u}const o=await i.getData(),{start:a,end:l,total:h}=fy(i.getHeader("content-range"));this._fileSize=h||null;const c=[{data:o,offset:a,length:l-a}];if(t.length>1){const u=await Promise.all(t.slice(1).map(d=>this.fetchSlice(d,e)));return c.concat(u)}return c}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const n=await i.getData();return this._fileSize=n.byteLength,[{data:n,offset:0,length:n.byteLength}]}else throw new Error("Error fetching data.")}async fetchSlice(t,e){const{offset:i,length:n}=t,r=await this.client.request({headers:{...this.headers,Range:`bytes=${i}-${i+n}`},signal:e});if(r.ok)if(r.status===206){const o=await r.getData(),{total:a}=fy(r.getHeader("content-range"));return this._fileSize=a||null,{data:o,offset:i,length:n}}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const o=await r.getData();return this._fileSize=o.byteLength,{data:o,offset:0,length:o.byteLength}}else throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function Mw(s,{blockSize:t,cacheSize:e}){return t===null?s:new htt(s,{blockSize:t,cacheSize:e})}function mtt(s,{headers:t={},credentials:e,maxRanges:i=0,allowFullFile:n=!1,...r}={}){const o=new utt(s,e),a=new Sw(o,t,i,n);return Mw(a,r)}function _tt(s,{headers:t={},maxRanges:e=0,allowFullFile:i=!1,...n}={}){const r=new gtt(s),o=new Sw(r,t,e,i);return Mw(o,n)}function ytt(s,{headers:t={},maxRanges:e=0,allowFullFile:i=!1,...n}={}){const r=new ptt(s),o=new Sw(r,t,e,i);return Mw(o,n)}function py(s,{forceXHR:t=!1,...e}={}){return typeof fetch=="function"&&!t?mtt(s,e):typeof XMLHttpRequest<"u"?_tt(s,e):ytt(s,e)}class xtt extends vw{constructor(t){super(),this.file=t}async fetchSlice(t,e){return new Promise((i,n)=>{const r=this.file.slice(t.offset,t.offset+t.length),o=new FileReader;o.onload=a=>i(a.target.result),o.onerror=n,o.onabort=n,o.readAsArrayBuffer(r),e&&e.addEventListener("abort",()=>o.abort())})}}function vtt(s){return new xtt(s)}function my(s){switch(s){case Ut.BYTE:case Ut.ASCII:case Ut.SBYTE:case Ut.UNDEFINED:return 1;case Ut.SHORT:case Ut.SSHORT:return 2;case Ut.LONG:case Ut.SLONG:case Ut.FLOAT:case Ut.IFD:return 4;case Ut.RATIONAL:case Ut.SRATIONAL:case Ut.DOUBLE:case Ut.LONG8:case Ut.SLONG8:case Ut.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${s}`)}}function wtt(s){const t=s.GeoKeyDirectory;if(!t)return null;const e={};for(let i=4;i<=t[3]*4;i+=4){const n=AQ[t[i]],r=t[i+1]?Ku[t[i+1]]:null,o=t[i+2],a=t[i+3];let l=null;if(!r)l=a;else{if(l=s[r],typeof l>"u"||l===null)throw new Error(`Could not get value of geoKey '${n}'.`);typeof l=="string"?l=l.substring(a,a+o-1):l.subarray&&(l=l.subarray(a,a+o),o===1&&(l=l[0]))}e[n]=l}return e}function Bl(s,t,e,i){let n=null,r=null;const o=my(t);switch(t){case Ut.BYTE:case Ut.ASCII:case Ut.UNDEFINED:n=new Uint8Array(e),r=s.readUint8;break;case Ut.SBYTE:n=new Int8Array(e),r=s.readInt8;break;case Ut.SHORT:n=new Uint16Array(e),r=s.readUint16;break;case Ut.SSHORT:n=new Int16Array(e),r=s.readInt16;break;case Ut.LONG:case Ut.IFD:n=new Uint32Array(e),r=s.readUint32;break;case Ut.SLONG:n=new Int32Array(e),r=s.readInt32;break;case Ut.LONG8:case Ut.IFD8:n=new Array(e),r=s.readUint64;break;case Ut.SLONG8:n=new Array(e),r=s.readInt64;break;case Ut.RATIONAL:n=new Uint32Array(e*2),r=s.readUint32;break;case Ut.SRATIONAL:n=new Int32Array(e*2),r=s.readInt32;break;case Ut.FLOAT:n=new Float32Array(e),r=s.readFloat32;break;case Ut.DOUBLE:n=new Float64Array(e),r=s.readFloat64;break;default:throw new RangeError(`Invalid field type: ${t}`)}if(t===Ut.RATIONAL||t===Ut.SRATIONAL)for(let a=0;af.getWidth()-p.getWidth());for(let f=0;fm||o&&o>_)break}}let d=e;if(a){const[g,f]=l.getOrigin(),[p,m]=h.getResolution(l);d=[Math.round((a[0]-g)/p),Math.round((a[1]-f)/m),Math.round((a[2]-g)/p),Math.round((a[3]-f)/m)],d=[Math.min(d[0],d[2]),Math.min(d[1],d[3]),Math.max(d[0],d[2]),Math.max(d[1],d[3])]}return h.readRasters({...t,window:d})}}class gc extends aL{constructor(t,e,i,n,r={}){super(),this.source=t,this.littleEndian=e,this.bigTiff=i,this.firstIFDOffset=n,this.cache=r.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(t,e){const i=this.bigTiff?4048:1024;return new KQ((await this.source.fetch([{offset:t,length:typeof e<"u"?e:i}]))[0],t,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(t){const e=this.bigTiff?20:12,i=this.bigTiff?8:2;let n=await this.getSlice(t);const r=this.bigTiff?n.readUint64(t):n.readUint16(t),o=r*e+(this.bigTiff?16:6);n.covers(t,o)||(n=await this.getSlice(t,o));const a={};let l=t+(this.bigTiff?8:2);for(let u=0;u{const e=await this.ifdRequests[t-1];if(e.nextIFDByteOffset===0)throw new Tf(t);return this.parseFileDirectoryAt(e.nextIFDByteOffset)})(),this.ifdRequests[t]}async getImage(t=0){const e=await this.requestIFD(t);return new rL(e.fileDirectory,e.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let t=0,e=!0;for(;e;)try{await this.requestIFD(t),++t}catch(i){if(i instanceof Tf)e=!1;else throw i}return t}async getGhostValues(){const t=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const e="GDAL_STRUCTURAL_METADATA_SIZE=",i=e.length+100;let n=await this.getSlice(t,i);if(e===Bl(n,Ut.ASCII,e.length,t)){const r=Bl(n,Ut.ASCII,i,t).split(` -`)[0],o=Number(r.split("=")[1].split(" ")[0])+r.length;o>i&&(n=await this.getSlice(t,o));const a=Bl(n,Ut.ASCII,o,t);this.ghostValues={},a.split(` -`).filter(l=>l.length>0).map(l=>l.split("=")).forEach(([l,h])=>{this.ghostValues[l]=h})}return this.ghostValues}static async fromSource(t,e,i){const n=(await t.fetch([{offset:0,length:1024}],i))[0],r=new HQ(n),o=r.getUint16(0,0);let a;if(o===18761)a=!0;else if(o===19789)a=!1;else throw new TypeError("Invalid byte order value.");const l=r.getUint16(2,a);let h;if(l===42)h=!1;else if(l===43){if(h=!0,r.getUint16(4,a)!==8)throw new Error("Unsupported offset byte-size.")}else throw new TypeError("Invalid magic number.");const c=h?r.getUint64(8,a):r.getUint32(4,a);return new gc(t,a,h,c,e)}close(){return typeof this.source.close=="function"?this.source.close():!1}}class Stt extends aL{constructor(t,e){super(),this.mainFile=t,this.overviewFiles=e,this.imageFiles=[t].concat(e),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}async parseFileDirectoriesPerFile(){const t=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map(e=>e.parseFileDirectoryAt(e.firstIFDOffset)));return this.fileDirectoriesPerFile=await Promise.all(t),this.fileDirectoriesPerFile}async getImage(t=0){await this.getImageCount(),await this.parseFileDirectoriesPerFile();let e=0,i=0;for(let n=0;ne.getImageCount()));return this.imageCounts=await Promise.all(t),this.imageCount=this.imageCounts.reduce((e,i)=>e+i,0),this.imageCount}}async function Mtt(s,t={},e){return gc.fromSource(py(s,t),e)}async function btt(s,t){return gc.fromSource(vtt(s),t)}async function Ctt(s,t=[],e={},i){const n=await gc.fromSource(py(s,e),i),r=await Promise.all(t.map(o=>gc.fromSource(py(o,e))));return new Stt(n,r)}function Ttt(s){return((s.fileDirectory.NewSubfileType||0)&4)===4}function Rtt(s,t){if(!s)return!1;if(s===!0)return!0;if(t.getSamplesPerPixel()!==3)return!1;const e=t.fileDirectory.PhotometricInterpretation,i=gi;return e===i.CMYK||e===i.YCbCr||e===i.CIELab||e===i.ICCLab}const YM="STATISTICS_MAXIMUM",qM="STATISTICS_MINIMUM",Z_=256;let H_;function Itt(){return H_||(H_=new QQ),H_}function Ptt(s){try{return s.getBoundingBox()}catch{return[0,0,s.getWidth(),s.getHeight()]}}function Att(s){try{return s.getOrigin().slice(0,2)}catch{return[0,s.getHeight()]}}function Ltt(s,t){try{return s.getResolution(t)}catch{return[t.getWidth()/s.getWidth(),t.getHeight()/s.getHeight()]}}function Ott(s){const t=s.geoKeys;if(!t)return null;if(t.ProjectedCSTypeGeoKey&&t.ProjectedCSTypeGeoKey!==32767){const e="EPSG:"+t.ProjectedCSTypeGeoKey;let i=st(e);if(!i){const n=e2(t.ProjLinearUnitsGeoKey);n&&(i=new rc({code:e,units:n}))}return i}if(t.GeographicTypeGeoKey&&t.GeographicTypeGeoKey!==32767){const e="EPSG:"+t.GeographicTypeGeoKey;let i=st(e);if(!i){const n=e2(t.GeogAngularUnitsGeoKey);n&&(i=new rc({code:e,units:n}))}return i}return null}function Ftt(s){return s.getImageCount().then(function(t){const e=new Array(t);for(let i=0;ie*s)throw new Error(i)}function Dtt(s){return s instanceof Int8Array?-128:s instanceof Int16Array?-32768:s instanceof Int32Array?-2147483648:s instanceof Float32Array?12e-39:0}function ktt(s){return s instanceof Int8Array?127:s instanceof Uint8Array||s instanceof Uint8ClampedArray?255:s instanceof Int16Array?32767:s instanceof Uint16Array?65535:s instanceof Int32Array?2147483647:s instanceof Uint32Array?4294967295:s instanceof Float32Array?34e37:255}class bw extends d0{constructor(t){super({state:"loading",tileGrid:null,projection:t.projection||null,transition:t.transition,interpolate:t.interpolate!==!1,wrapX:t.wrapX}),this.sourceInfo_=t.sources;const e=this.sourceInfo_.length;this.sourceOptions_=t.sourceOptions,this.sourceImagery_=new Array(e),this.sourceMasks_=new Array(e),this.resolutionFactors_=new Array(e),this.samplesPerPixel_,this.nodataValues_,this.metadata_,this.normalize_=t.normalize!==!1,this.addAlpha_=!1,this.error_=null,this.convertToRGB_=t.convertToRGB||!1,this.setKey(this.sourceInfo_.map(r=>r.url).join(","));const i=this,n=new Array(e);for(let r=0;r=0;--i){const n=e[i],r=Ott(n);if(r){this.projection=r;break}}}configure_(t){let e,i,n,r,o;const a=new Array(t.length),l=new Array(t.length),h=new Array(t.length);let c=0;const u=t.length;for(let p=0;p{Ttt(T)?_.push(T):m.push(T)});const y=m.length;if(_.length>0&&_.length!==y)throw new Error(`Expected one mask per image found ${_.length} masks and ${y} images`);let v,S;const w=new Array(y),C=new Array(y),M=new Array(y);l[p]=new Array(y),h[p]=new Array(y);for(let T=0;TM.length&&(c=o.length-M.length);const T=o[o.length-1]/M[M.length-1];this.resolutionFactors_[p]=T;const I=M.map(P=>P*=T),O=`Resolution mismatch for source ${p}, got [${I}] but expected [${o}]`;Mu(o.slice(c,o.length),I,.02,O,this.viewRejector)}n?Mu(n.slice(c,n.length),C,.01,`Tile size mismatch for source ${p}`,this.viewRejector):n=C,r?Mu(r.slice(c,r.length),w,0,`Tile size mismatch for source ${p}`,this.viewRejector):r=w,this.sourceImagery_[p]=m.reverse(),this.sourceMasks_[p]=_.reverse()}for(let p=0,m=this.sourceImagery_.length;p{const i=this.sourceImage_.getState();(i==it.LOADED||i==it.ERROR)&&(this.unlistenSource_(),this.reproject_())}),this.sourceImage_.load())}}unlistenSource_(){ms(this.sourceListenerKey_),this.sourceListenerKey_=null}}const cr=4,K_={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"};class Gtt extends Sr{constructor(t,e){super(t),this.image=e}}class jtt extends Lc{constructor(t){super({attributions:t.attributions,projection:t.projection,state:t.state,interpolate:t.interpolate!==void 0?t.interpolate:!0}),this.on,this.once,this.un,this.loader=t.loader||null,this.resolutions_=t.resolutions!==void 0?t.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0,this.image=null,this.wantedExtent_,this.wantedResolution_,this.static_=t.loader?t.loader.length===0:!1,this.wantedProjection_=null}getResolutions(){return this.resolutions_}setResolutions(t){this.resolutions_=t}findNearestResolution(t){const e=this.getResolutions();if(e){const i=Om(e,t,0);t=e[i]}return t}getImage(t,e,i,n){const r=this.getProjection();if(!r||!n||qs(r,n))return r&&(n=r),this.getImageInternal(t,e,i,n);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&qs(this.reprojectedImage_.getProjection(),n)&&this.reprojectedImage_.getResolution()==e&&so(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new $tt(r,n,t,e,i,(o,a,l)=>this.getImageInternal(o,a,l,r),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(t,e,i,n){if(this.loader){const r=m0(t,e,i,1),o=this.findNearestResolution(e);if(this.image&&(this.static_||this.wantedProjection_===n&&(this.wantedExtent_&&ai(this.wantedExtent_,r)||ai(this.image.getExtent(),r))&&(this.wantedResolution_&&qp(this.wantedResolution_)===o||qp(this.image.getResolution())===o)))return this.image;this.wantedProjection_=n,this.wantedExtent_=r,this.wantedResolution_=o,this.image=new Wm(r,o,i,this.loader),this.image.addEventListener(Zt.CHANGE,this.handleImageChange.bind(this))}return this.image}handleImageChange(t){const e=t.target;let i;switch(e.getState()){case it.LOADING:this.loading=!0,i=K_.IMAGELOADSTART;break;case it.LOADED:this.loading=!1,i=K_.IMAGELOADEND;break;case it.ERROR:this.loading=!1,i=K_.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new Gtt(i,e))}}function p0(s,t){s.getImage().src=t}function m0(s,t,e,i){const n=t/e,r=Rs(s),o=Xo(Rt(s)/n,cr),a=Xo(Ee(s)/n,cr),l=Xo((i-1)*o/2,cr),h=o+2*l,c=Xo((i-1)*a/2,cr),u=a+2*c;return qx(r,n,0,[h,u])}const ya=jtt;function lL(s){const t=s.load||pa,e=s.imageExtent,i=s.crossOrigin??null;return()=>{const n=new Image;return n.crossOrigin=i,t(n,s.url).then(r=>{const o=Rt(e)/r.width,a=Ee(e)/r.height;return{image:r,extent:e,resolution:o!==a?[o,a]:a,pixelRatio:1}})}}class hL extends ya{constructor(t){const e=t.crossOrigin!==void 0?t.crossOrigin:null,i=t.imageLoadFunction!==void 0?t.imageLoadFunction:p0;super({attributions:t.attributions,interpolate:t.interpolate,projection:st(t.projection)}),this.url_=t.url,this.imageExtent_=t.imageExtent,this.image=null,this.image=new Wm(this.imageExtent_,void 0,1,lL({url:t.url,imageExtent:t.imageExtent,crossOrigin:e,load:(n,r)=>(this.image.setImage(n),i(this.image,r),pa(n))})),this.image.addEventListener(Zt.CHANGE,this.handleImageChange.bind(this))}getImageExtent(){return this.imageExtent_}getImageInternal(t,e,i,n){return Ce(t,this.image.getExtent())?this.image:null}getUrl(){return this.url_}}function oo(s,t){const e=[];Object.keys(t).forEach(function(n){t[n]!==null&&t[n]!==void 0&&e.push(n+"="+encodeURIComponent(t[n]))});const i=e.join("&");return s=s.replace(/[?&]$/,""),s+=s.includes("?")?"&":"?",s+i}const ztt=/\{z\}/g,Utt=/\{x\}/g,Btt=/\{y\}/g,Wtt=/\{-y\}/g;function cL(s,t,e,i,n){return s.replace(ztt,t.toString()).replace(Utt,e.toString()).replace(Btt,i.toString()).replace(Wtt,function(){if(n===void 0)throw new Error("If the URL template has a {-y} placeholder, the grid extent must be known");return(n-i).toString()})}function Xtt(s,t,e,i){const n=fA(t,e,i),r=kn(n,s.length);return s[r]}function _0(s){const t=[];let e=/\{([a-z])-([a-z])\}/.exec(s);if(e){const i=e[1].charCodeAt(0),n=e[2].charCodeAt(0);let r;for(r=i;r<=n;++r)t.push(s.replace(e[0],String.fromCharCode(r)));return t}if(e=/\{(\d+)-(\d+)\}/.exec(s),e){const i=parseInt(e[2],10);for(let n=parseInt(e[1],10);n<=i;n++)t.push(s.replace(e[0],n.toString()));return t}return t.push(s),t}function Vtt(s,t){return function(e,i,n){if(!e)return;let r;const o=e[0];if(t){const a=t.getFullTileRange(o);a&&(r=a.getHeight()-1)}return cL(s,o,e[1],e[2],r)}}function Cw(s,t){const e=s.length,i=new Array(e);for(let n=0;nthis.getTileInternal(m,_,y,v,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return p.key=u,h?a.replace(c,p):a.set(c,p),p}getTileInternal(t,e,i,n,r){const o=ro(t,e,i),a=this.getKey();if(!this.tileCache.containsKey(o)){const h=this.createTile_(t,e,i,n,r,a);return this.tileCache.set(o,h),h}let l=this.tileCache.get(o);return l.key!=a&&(l=this.createTile_(t,e,i,n,r,a),this.tileCache.replace(o,l)),l}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(t,e){const i=st(t);if(i){const n=mt(i);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}}function qtt(s,t){s.getImage().src=t}function Iw(s,t,e,i){const n=document.createElement("script"),r="olc_"+mt(t);function o(){delete window[r],n.parentNode.removeChild(n)}n.async=!0,n.src=s+(s.includes("?")?"&":"?")+"callback="+r;const a=setTimeout(function(){o(),e&&e()},1e4);window[r]=function(l){clearTimeout(a),o(),t(l)},document.head.appendChild(n)}class Ztt extends Error{constructor(t){const e="Unexpected response status: "+t.status;super(e),this.name="ResponseError",this.response=t}}class Htt extends Error{constructor(t){super("Failed to issue request"),this.name="ClientError",this.client=t}}function uL(s){return new Promise(function(t,e){function i(o){const a=o.target;if(!a.status||a.status>=200&&a.status<300){let l;try{l=JSON.parse(a.responseText)}catch(h){const c="Error parsing response text as JSON: "+h.message;e(new Error(c));return}t(l);return}e(new Ztt(a))}function n(o){e(new Htt(o.target))}const r=new XMLHttpRequest;r.addEventListener("load",i),r.addEventListener("error",n),r.open("GET",s),r.setRequestHeader("Accept","application/json"),r.send()})}function dL(s,t){return t.includes("://")?t:new URL(t,s).href}class gL extends Sn{constructor(t){if(super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:st("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection}),this.tileJSON_=null,this.tileSize_=t.tileSize,t.url)if(t.jsonp)Iw(t.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const e=new XMLHttpRequest;e.addEventListener("load",this.onXHRLoad_.bind(this)),e.addEventListener("error",this.onXHRError_.bind(this)),e.open("GET",t.url),e.send()}else if(t.tileJSON)this.handleTileJSONResponse(t.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(t){const e=t.target;if(!e.status||e.status>=200&&e.status<300){let i;try{i=JSON.parse(e.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(t){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(t){const e=st("EPSG:4326"),i=this.getProjection();let n;if(t.bounds!==void 0){const h=Sl(e,i);n=nc(t.bounds,h)}const r=yo(i),o=t.minzoom||0,a=t.maxzoom||22,l=Cl({extent:r,maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=l,this.tileUrlFunction=Cw(t.tiles,l),t.attribution&&!this.getAttributions()){const h=n!==void 0?n:r;this.setAttributions(function(c){return Ce(h,c.extent)?[t.attribution]:null})}this.tileJSON_=t,this.setState("ready")}handleTileJSONError(){this.setState("error")}}let Ktt=class extends Oc{constructor(s,t,e,i,n,r){super(s,t,r),this.extent=null,this.format_=i,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=n,this.url_=e,this.key=e}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==X.IDLE&&(this.setState(X.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(s,t){this.setFeatures(s)}onError(){this.setState(X.ERROR)}setFeatures(s){this.features_=s,this.setState(X.LOADED)}setLoader(s){this.loader_=s}};const ZM=[];class Jtt extends Oc{constructor(t,e,i,n){super(t,e,{transition:0}),this.context_=null,this.executorGroups=[],this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=n.bind(void 0,this),this.wrappedTileCoord=i}getContext(){return this.context_||(this.context_=Se(1,1,ZM)),this.context_}hasContext(){return!!this.context_}getImage(){return this.hasContext()?this.getContext().canvas:null}getReplayState(t){const e=mt(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]}load(){this.getSourceTiles()}release(){ol(this.context_),ZM.push(this.context_.canvas),this.context_=null,super.release()}}class y0 extends Rw{constructor(t){const e=t.projection||"EPSG:3857",i=t.extent||yo(e),n=t.tileGrid||Cl({extent:i,maxResolution:t.maxResolution,maxZoom:t.maxZoom!==void 0?t.maxZoom:22,minZoom:t.minZoom,tileSize:t.tileSize||512});super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,interpolate:!0,projection:e,state:t.state,tileGrid:n,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:Qtt,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX===void 0?!0:t.wrapX,transition:t.transition,zDirection:t.zDirection===void 0?1:t.zDirection}),this.format_=t.format?t.format:null,this.sourceTileCache_=new u0(128),this.overlaps_=t.overlaps==null?!0:t.overlaps,this.tileClass=t.tileClass?t.tileClass:Ktt,this.tileGrids_={}}getOverlaps(){return this.overlaps_}clear(){this.sourceTileCache_.clear()}expireCache(t,e){const i=this.getTileCacheForProjection(t),n=Object.keys(e).reduce((r,o)=>{const a=EK(o),l=i.peek(a);if(l){const h=l.sourceTiles;for(let c=0,u=h.length;c{const g=this.tileUrlFunction(d,t,e),f=this.sourceTileCache_.containsKey(g)?this.sourceTileCache_.get(g):new this.tileClass(d,g?X.IDLE:X.EMPTY,g,this.format_,this.tileLoadFunction);i.sourceTiles.push(f);const p=f.getState();if(p{this.handleTileChange(_);const y=f.getState();if(y===X.LOADED||y===X.ERROR){const v=f.getKey();v in i.errorTileKeys?f.getState()===X.LOADED&&delete i.errorTileKeys[v]:i.loadingSourceTiles--,y===X.ERROR?i.errorTileKeys[v]=!0:f.removeEventListener(Zt.CHANGE,m),i.loadingSourceTiles===0&&i.setState(eo(i.errorTileKeys)?X.LOADED:X.ERROR)}};f.addEventListener(Zt.CHANGE,m),i.loadingSourceTiles++}p===X.IDLE&&(f.extent=h.getTileCoordExtent(d),f.projection=e,f.resolution=h.getResolution(d[0]),this.sourceTileCache_.set(g,f),f.load())}),i.loadingSourceTiles||i.setState(i.sourceTiles.some(d=>d.getState()===X.ERROR)?X.ERROR:X.LOADED)}return i.sourceTiles}getTile(t,e,i,n,r){const o=[t,e,i];let a=this.getTileCoordForTileUrlFunction(o,r);const l=this.getTileGrid().getExtent(),h=this.getTileGridForProjection(r);if(a&&l){const d=h.getTileCoordExtent(a);_n(d,-h.getResolution(t),d),Ce(l,d)||(a=null)}let c=!0;if(a!==null){const d=this.tileGrid,g=h.getResolution(t),f=d.getZForResolution(g,1),p=h.getTileCoordExtent(a);_n(p,-g,p),d.forEachTileCoord(p,f,m=>{c=c&&!this.tileUrlFunction(m,n,r)})}const u=new Jtt(o,c?X.EMPTY:X.IDLE,a,this.getSourceTiles.bind(this,n,r));return u.key=this.getKey(),u}getTileGridForProjection(t){const e=t.getCode();let i=this.tileGrids_[e];if(!i){const n=this.tileGrid,r=n.getResolutions().slice(),o=r.map(function(h,c){return n.getOrigin(c)}),a=r.map(function(h,c){return n.getTileSize(c)}),l=GP+1;for(let h=r.length;h=0;n[o?"CRS":"SRS"]=i.getCode();const a=o&&r.startsWith("ne")?[t[1],t[0],t[3],t[2]]:t;return n.BBOX=a.join(","),oo(s,n)}function pL(s,t,e,i,n,r,o){r=Object.assign({REQUEST:"GetMap"},r);const a=t/e,l=[Mp(Rt(s)/a,cr),Mp(Ee(s)/a,cr)];if(e!=1)switch(o){case"geoserver":const h=90*e+.5|0;"FORMAT_OPTIONS"in r?r.FORMAT_OPTIONS+=";dpi:"+h:r.FORMAT_OPTIONS="dpi:"+h;break;case"mapserver":r.MAP_RESOLUTION=90*e;break;case"carmentaserver":case"qgis":r.DPI=90*e;break;default:throw new Error("Unknown `serverType` configured")}return fL(n,s,l,i,r)}function Qp(s,t){return Object.assign({REQUEST:t,SERVICE:"WMS",VERSION:Jp,FORMAT:"image/png",STYLES:"",TRANSPARENT:!0},s)}function mL(s){const t=s.hidpi===void 0?!0:s.hidpi,e=st(s.projection||"EPSG:3857"),i=s.ratio||1.5,n=s.load||pa,r=s.crossOrigin??null;return(o,a,l)=>{o=m0(o,a,l,i),l!=1&&(!t||s.serverType===void 0)&&(l=1);const h=pL(o,a,l,e,s.url,Qp(s.params,"GetMap"),s.serverType),c=new Image;return c.crossOrigin=r,n(c,h).then(u=>({image:u,extent:o,pixelRatio:l}))}}function tet(s,t,e){if(s.url===void 0)return;const i=st(s.projection||"EPSG:3857"),n=qx(t,e,0,HM),r={QUERY_LAYERS:s.params.LAYERS,INFO_FORMAT:"application/json"};Object.assign(r,Qp(s.params,"GetFeatureInfo"),s.params);const o=fh((t[0]-n[0])/e,cr),a=fh((n[3]-t[1])/e,cr),l=Jx(r.VERSION,"1.3")>=0;return r[l?"I":"X"]=o,r[l?"J":"Y"]=a,fL(s.url,n,HM,i,r)}function eet(s,t){if(s.url===void 0)return;const e={SERVICE:"WMS",VERSION:Jp,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(t!==void 0){const i=st(s.projection||"EPSG:3857").getMetersPerUnit()||1,n=28e-5;e.SCALE=t*i/n}if(Object.assign(e,s.params),s.params!==void 0&&e.LAYER===void 0){const i=e.LAYERS;if(!(!Array.isArray(i)||i.length!==1))return;e.LAYER=i}return oo(s.url,e)}class _L extends Sn{constructor(t){t=t||{};const e=Object.assign({},t.params);super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0,this.params_=e,this.v13_=!0,this.serverType_=t.serverType,this.hidpi_=t.hidpi!==void 0?t.hidpi:!0,this.tmpExtent_=Zs(),this.updateV13_(),this.setKey(this.getKeyForParams_())}getFeatureInfoUrl(t,e,i,n){const r=st(i),o=this.getProjection()||r;let a=this.getTileGrid();a||(a=this.getTileGridForProjection(o));const l=Dm(t,r,o),h=$d(o,r,t,e),c=a.getZForResolution(h,this.zDirection),u=a.getResolution(c),d=a.getTileCoordForCoordAndZ(l,c);if(a.getResolutions().length<=d[0])return;let g=a.getTileCoordExtent(d,this.tmpExtent_);const f=this.gutter_;f!==0&&(g=_n(g,u*f,g));const p={QUERY_LAYERS:this.params_.LAYERS};Object.assign(p,Qp(this.params_,"GetFeatureInfo"),n);const m=Math.floor((l[0]-g[0])/u),_=Math.floor((g[3]-l[1])/u);return p[this.v13_?"I":"X"]=m,p[this.v13_?"J":"Y"]=_,this.getRequestUrl_(d,g,1,o||r,p)}getLegendUrl(t,e){if(this.urls[0]===void 0)return;const i={SERVICE:"WMS",VERSION:Jp,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(e===void 0||e.LAYER===void 0){const n=this.params_.LAYERS;if(!(!Array.isArray(n)||n.length===1))return;i.LAYER=n}if(t!==void 0){const n=this.getProjection()?this.getProjection().getMetersPerUnit():1,r=28e-5;i.SCALE=t*n/r}return Object.assign(i,e),oo(this.urls[0],i)}getGutter(){return this.gutter_}getParams(){return this.params_}getRequestUrl_(t,e,i,n,r){const o=this.urls;if(!o)return;let a;if(o.length==1)a=o[0];else{const l=kn(Jv(t),o.length);a=o[l]}return pL(e,(this.tileGrid||this.getTileGridForProjection(n)).getResolution(t[0]),i,n,a,r,this.serverType_)}getTilePixelRatio(t){return!this.hidpi_||this.serverType_===void 0?1:t}getKeyForParams_(){let t=0;const e=[];for(const i in this.params_)e[t++]=i+"-"+this.params_[i];return e.join("/")}updateParams(t){Object.assign(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())}updateV13_(){const t=this.params_.VERSION||Jp;this.v13_=Jx(t,"1.3")>=0}tileUrlFunction(t,e,i){let n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(i)),n.getResolutions().length<=t[0])return;e!=1&&(!this.hidpi_||this.serverType_===void 0)&&(e=1);const r=n.getResolution(t[0]);let o=n.getTileCoordExtent(t,this.tmpExtent_);const a=this.gutter_;a!==0&&(o=_n(o,r*a,o));const l=Object.assign({},Qp(this.params_,"GetMap"));return this.getRequestUrl_(t,o,e,i,l)}}class yL extends Sn{constructor(t){const e=t.requestEncoding!==void 0?t.requestEncoding:"KVP",i=t.tileGrid;let n=t.urls;n===void 0&&t.url!==void 0&&(n=_0(t.url)),super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:n,wrapX:t.wrapX!==void 0?t.wrapX:!1,transition:t.transition,zDirection:t.zDirection}),this.version_=t.version!==void 0?t.version:"1.0.0",this.format_=t.format!==void 0?t.format:"image/jpeg",this.dimensions_=t.dimensions!==void 0?t.dimensions:{},this.layer_=t.layer,this.matrixSet_=t.matrixSet,this.style_=t.style,this.requestEncoding_=e,this.setKey(this.getKeyForDimensions_()),n&&n.length>0&&(this.tileUrlFunction=fc(n.map(this.createFromWMTSTemplate.bind(this))))}setUrls(t){this.urls=t;const e=t.join(` -`);this.setTileUrlFunction(fc(t.map(this.createFromWMTSTemplate.bind(this))),e)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const t=this.urls?this.urls.slice(0):[];for(const e in this.dimensions_)t.push(e+"-"+this.dimensions_[e]);return t.join("/")}updateDimensions(t){Object.assign(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(t){const e=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};e=="KVP"&&Object.assign(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=e=="KVP"?oo(t,i):t.replace(/\{(\w+?)\}/g,function(o,a){return a.toLowerCase()in i?i[a.toLowerCase()]:o});const n=this.tileGrid,r=this.dimensions_;return function(o,a,l){if(!o)return;const h={TileMatrix:n.getMatrixId(o[0]),TileCol:o[1],TileRow:o[2]};Object.assign(h,r);let c=t;return e=="KVP"?c=oo(c,h):c=c.replace(/\{(\w+?)\}/g,function(u,d){return h[d]}),c}}}function xL(s,t){const e=s.Contents.Layer,i=e?.find(function(P){return P.Identifier==t.layer});if(!i)return null;const n=s.Contents.TileMatrixSet;let r;i.TileMatrixSetLink.length>1?"projection"in t?r=i.TileMatrixSetLink.findIndex(function(P){const D=n.find(function(b){return b.Identifier==P.TileMatrixSet}).SupportedCRS,x=st(D),E=st(t.projection);return x&&E?qs(x,E):D==t.projection}):r=i.TileMatrixSetLink.findIndex(function(P){return P.TileMatrixSet==t.matrixSet}):r=0,r<0&&(r=0);const o=i.TileMatrixSetLink[r].TileMatrixSet,a=i.TileMatrixSetLink[r].TileMatrixSetLimits;let l=i.Format[0];"format"in t&&(l=t.format),r=i.Style.findIndex(function(P){return"style"in t?P.Title==t.style:P.isDefault}),r<0&&(r=0);const h=i.Style[r].Identifier,c={};"Dimension"in i&&i.Dimension.forEach(function(P,D,x){const E=P.Identifier;let b=P.Default;b===void 0&&(b=P.Value[0]),c[E]=b});const u=s.Contents.TileMatrixSet.find(function(P){return P.Identifier==o});let d;const g=u.SupportedCRS;if(g&&(d=st(g)),"projection"in t){const P=st(t.projection);P&&(!d||qs(P,d))&&(d=P)}let f=!1;const p=d.getAxisOrientation().startsWith("ne");let m=u.TileMatrix[0],_={MinTileCol:0,MinTileRow:0,MaxTileCol:m.MatrixWidth-1,MaxTileRow:m.MatrixHeight-1};if(a){_=a[a.length-1];const P=u.TileMatrix.find(D=>D.Identifier===_.TileMatrix||u.Identifier+":"+D.Identifier===_.TileMatrix);P&&(m=P)}const y=m.ScaleDenominator*28e-5/d.getMetersPerUnit(),v=p?[m.TopLeftCorner[1],m.TopLeftCorner[0]]:m.TopLeftCorner,S=m.TileWidth*y,w=m.TileHeight*y;let C=u.BoundingBox;C&&p&&(C=[C[1],C[0],C[3],C[2]]);let M=[v[0]+S*_.MinTileCol,v[1]-w*(1+_.MaxTileRow),v[0]+S*(1+_.MaxTileCol),v[1]-w*_.MinTileRow];if(C!==void 0&&!ai(C,M)){const P=i.WGS84BoundingBox,D=st("EPSG:4326").getExtent();if(M=C,P)f=P[0]===D[0]&&P[2]===D[2];else{const x=ev(C,u.SupportedCRS,"EPSG:4326");f=x[0]-1e-10<=D[0]&&x[2]+1e-10>=D[2]}}const T=VJ(u,M,a),I=[];let O=t.requestEncoding;if(O=O!==void 0?O:"","OperationsMetadata"in s&&"GetTile"in s.OperationsMetadata){const P=s.OperationsMetadata.GetTile.DCP.HTTP.Get;for(let D=0,x=P.length;D_)return 1;if(_>m)return-1}var y=g[g.length-1],v=f[f.length-1];if(y&&v){var S=y.split(".").map(r),w=v.split(".").map(r);for(p=0;pw[p])return 1;if(w[p]>S[p])return-1}}else if(y||v)return y?-1:1;return 0}var l=[">",">=","=","<","<="],h={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};function c(u){if(typeof u!="string")throw new TypeError("Invalid operator type, expected string but got "+typeof u);if(l.indexOf(u)===-1)throw new TypeError("Invalid operator, expected one of "+l.join("|"))}return a.validate=function(u){return typeof u=="string"&&e.test(u)},a.compare=function(u,d,g){c(g);var f=a(u,d);return h[g].indexOf(f)>-1},a})})(vL);var set=vL.exports,_y=set;const Pw="1.0.0",St={classification:"https://stac-extensions.github.io/classification/v1.1.0/schema.json",datacube:"https://stac-extensions.github.io/datacube/v2.1.0/schema.json",eo:"https://stac-extensions.github.io/eo/v1.0.0/schema.json",file:"https://stac-extensions.github.io/file/v1.0.0/schema.json","item-assets":"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",label:"https://stac-extensions.github.io/label/v1.0.1/schema.json",pointcloud:"https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json",processing:"https://stac-extensions.github.io/processing/v1.1.0/schema.json",projection:"https://stac-extensions.github.io/projection/v1.0.0/schema.json",raster:"https://stac-extensions.github.io/raster/v1.1.0/schema.json",sar:"https://stac-extensions.github.io/sar/v1.0.0/schema.json",sat:"https://stac-extensions.github.io/sat/v1.0.0/schema.json",scientific:"https://stac-extensions.github.io/scientific/v1.0.0/schema.json",table:"https://stac-extensions.github.io/table/v1.2.0/schema.json",timestamps:"https://stac-extensions.github.io/timestamps/v1.0.0/schema.json",version:"https://stac-extensions.github.io/version/v1.0.0/schema.json",view:"https://stac-extensions.github.io/view/v1.0.0/schema.json"},Za={itemAndCollection:{"cube:":St.datacube,"eo:":St.eo,"file:":St.file,"label:":St.label,"pc:":St.pointcloud,"processing:":St.processing,"proj:":St.projection,"raster:":St.raster,"sar:":St.sar,"sat:":St.sat,"sci:":St.scientific,"view:":St.view,version:St.version,deprecated:St.version,published:St.timestamps,expires:St.timestamps,unpublished:St.timestamps},catalog:{},collection:{item_assets:St["item-assets"]},item:{}};Za.collection=Object.assign(Za.collection,Za.itemAndCollection);Za.item=Object.assign(Za.item,Za.itemAndCollection);var bu={parseUrl(s){let t=s.match(/^https?:\/\/stac-extensions.github.io\/([^\/]+)\/v([^\/]+)\/[^.]+.json$/i);if(t)return{id:t[1],version:t[2]}}},se={version:Pw,extensions:{},set(s){if(typeof s.stac_version!="string"?se.version="0.6.0":se.version=s.stac_version,Array.isArray(s.stac_extensions))for(let t of s.stac_extensions){let e=bu.parseUrl(t);e&&(se.extensions[e.id]=e.version)}},before(s,t=null){let e=t?se.extensions[t]:se.version;return typeof e>"u"?!1:_y.compare(e,s,"<")}},j={type(s){let t=typeof s;if(t==="object"){if(s===null)return"null";if(Array.isArray(s))return"array"}return t},is(s,t){return j.type(s)===t},isDefined(s){return typeof s<"u"},isObject(s){return typeof s=="object"&&s===Object(s)&&!Array.isArray(s)},rename(s,t,e){return typeof s[t]<"u"&&typeof s[e]>"u"?(s[e]=s[t],delete s[t],!0):!1},forAll(s,t,e){if(s[t]&&typeof s[t]=="object")for(let i in s[t])e(s[t][i])},toArray(s,t){return typeof s[t]<"u"&&!Array.isArray(s[t])?(s[t]=[s[t]],!0):!1},flattenArray(s,t,e,i=!1){if(Array.isArray(s[t])){for(let n in s[t])if(typeof e[n]=="string"){let r=s[t][n];s[e[n]]=i?[r]:r}return delete s[t],!0}return!1},flattenOneElementArray(s,t,e=!1){return!e&&Array.isArray(s[t])?s[t].length===1?(s[t]=s[t][0],!0):!1:!0},removeFromArray(s,t,e){if(Array.isArray(s[t])){let i=s[t].indexOf(e);return i>-1&&s[t].splice(i,1),!0}return!1},ensure(s,t,e){return j.type(e)!==j.type(s[t])&&(s[t]=e),!0},upgradeExtension(s,t){let{id:e,version:i}=bu.parseUrl(t),n=s.stac_extensions.findIndex(r=>{let o=bu.parseUrl(r);return o&&o.id===e&&_y.compare(o.version,i,"<")});return n!==-1?(s.stac_extensions[n]=t,!0):!1},addExtension(s,t){let{id:e,version:i}=bu.parseUrl(t),n=s.stac_extensions.findIndex(r=>{if(r===t)return!0;let o=bu.parseUrl(r);return!!(o&&o.id===e&&_y.compare(o.version,i,"<"))});return n===-1?s.stac_extensions.push(t):s.stac_extensions[n]=t,s.stac_extensions.sort(),!0},removeExtension(s,t){return j.removeFromArray(s,"stac_extensions",t)},migrateExtensionShortnames(s){let t=Object.keys(St),e=Object.values(St);return j.mapValues(s,"stac_extensions",t,e)},populateExtensions(s,t){let e=[];(t=="catalog"||t=="collection")&&e.push(s),(t=="item"||t=="collection")&&j.isObject(s.assets)&&(e=e.concat(Object.values(s.assets))),t=="collection"&&j.isObject(s.item_assets)&&(e=e.concat(Object.values(s.item_assets))),t=="collection"&&j.isObject(s.summaries)&&e.push(s.summaries),t=="item"&&j.isObject(s.properties)&&e.push(s.properties);for(let i of e)Object.keys(i).forEach(n=>{let r=n.match(/^(\w+:|[^:]+$)/i);if(Array.isArray(r)){let o=Za[t][r[0]];j.is(o,"string")&&j.addExtension(s,o)}})},mapValues(s,t,e,i){let n=r=>{let o=e.indexOf(r);return o>=0?i[o]:r};return Array.isArray(s[t])?s[t]=s[t].map(n):typeof s[t]<"u"&&(s[t]=n(s[t])),!0},mapObject(s,t){for(let e in s)s[e]=t(s[e],e)},moveTo(s,t,e,i=!1,n=!1){let r;return i?n?r=o=>Array.isArray(o):r=o=>Array.isArray(o)&&o.length===1:r=j.isDefined,r(s[t])?(e[t]=i&&!n?s[t][0]:s[t],delete s[t],!0):!1},runAll(s,t,e,i){for(let n in s)n.startsWith("migrate")||s[n](t,e,i)},toUTC(s,t){if(typeof s[t]=="string")try{return s[t]=this.toISOString(s[t]),!0}catch{}return delete s[t],!1},toISOString(s){return s instanceof Date||(s=new Date(s)),s.toISOString().replace(".000","")}},rr={multihash:null,hexToUint8(s){if(s.length===0||s.length%2!==0)throw new Error(`The string "${s}" is not valid hex.`);return new Uint8Array(s.match(/.{1,2}/g).map(t=>parseInt(t,16)))},uint8ToHex(s){return s.reduce((t,e)=>t+e.toString(16).padStart(2,"0"),"")},toMultihash(s,t,e){if(!rr.multihash||!j.is(s[t],"string"))return!1;try{const i=rr.multihash.encode(rr.hexToUint8(s[t]),e);return s[t]=rr.uint8ToHex(i),!0}catch(i){return console.warn(i),!1}}},Aw={migrate(s,t=!0){return se.set(s),t&&(s.stac_version=Pw),s.type="Catalog",j.ensure(s,"stac_extensions",[]),se.before("1.0.0-rc.1")&&j.migrateExtensionShortnames(s),j.ensure(s,"id",""),j.ensure(s,"description",""),j.ensure(s,"links",[]),j.runAll(Aw,s,s),se.before("0.8.0")&&j.populateExtensions(s,"catalog"),s}},Lw={migrate(s,t=!0){return Aw.migrate(s,t),s.type="Collection",se.before("1.0.0-rc.1")&&j.migrateExtensionShortnames(s),j.ensure(s,"license","proprietary"),j.ensure(s,"extent",{spatial:{bbox:[]},temporal:{interval:[]}}),j.runAll(Lw,s,s),j.isObject(s.properties)&&(j.removeFromArray(s,"stac_extensions","commons"),delete s.properties),se.before("0.8.0")&&j.populateExtensions(s,"collection"),se.before("1.0.0-beta.1")&&j.mapValues(s,"stac_extensions",["assets"],["item-assets"]),s},extent(s){if(j.ensure(s,"extent",{}),se.before("0.8.0")&&(Array.isArray(s.extent.spatial)&&(s.extent.spatial={bbox:[s.extent.spatial]}),Array.isArray(s.extent.temporal)&&(s.extent.temporal={interval:[s.extent.temporal]})),j.ensure(s.extent,"spatial",{}),j.ensure(s.extent.spatial,"bbox",[]),j.ensure(s.extent,"temporal",{}),j.ensure(s.extent.temporal,"interval",[]),se.before("1.0.0-rc.3")){if(s.extent.temporal.interval.length>1){let t,e;for(let i of s.extent.temporal.interval){if(i[0]===null)t=null;else if(typeof i[0]=="string"&&t!==null)try{let n=new Date(i[0]);(typeof t>"u"||n"u"||n>e)&&(e=n)}catch{}}s.extent.temporal.interval.unshift([t?j.toISOString(t):null,e?j.toISOString(e):null])}if(s.extent.spatial.bbox.length>1){let t=s.extent.spatial.bbox.reduce((e,i)=>Array.isArray(i)?Math.max(i.length,e):e,4);if(t>=4){let e=new Array(t).fill(null),i=t/2;for(let n of s.extent.spatial.bbox){if(!Array.isArray(n)||n.length<4)break;for(let r in n){let o=n[r];e[r]===null?e[r]=o:rn===null)===-1&&s.extent.spatial.bbox.unshift(e)}}}},collectionAssets(s){se.before("1.0.0-rc.1")&&j.removeExtension(s,"collection-assets"),jd.migrateAll(s)},itemAsset(s){se.before("1.0.0-beta.2")&&j.rename(s,"item_assets","assets"),jd.migrateAll(s,"item_assets")},summaries(s){if(j.ensure(s,"summaries",{}),se.before("0.8.0")&&j.isObject(s.other_properties)){for(let t in s.other_properties){let e=s.other_properties[t];Array.isArray(e.extent)&&e.extent.length===2?s.summaries[t]={minimum:e.extent[0],maximum:e.extent[1]}:Array.isArray(e.values)&&(e.values.filter(i=>Array.isArray(i)).length===e.values.length?s.summaries[t]=e.values.reduce((i,n)=>i.concat(n),[]):s.summaries[t]=e.values)}delete s.other_properties}if(se.before("1.0.0-beta.1")&&j.isObject(s.properties)&&!s.links.find(t=>["child","item"].includes(t.rel)))for(let t in s.properties){let e=s.properties[t];Array.isArray(e)||(e=[e]),s.summaries[t]=e}se.before("1.0.0-rc.1")&&j.mapObject(s.summaries,t=>(j.rename(t,"min","minimum"),j.rename(t,"max","maximum"),t)),x0.migrate(s.summaries,s,!0),j.moveTo(s.summaries,"sci:doi",s,!0)&&j.addExtension(s,St.scientific),j.moveTo(s.summaries,"sci:publications",s,!0,!0)&&j.addExtension(s,St.scientific),j.moveTo(s.summaries,"sci:citation",s,!0)&&j.addExtension(s,St.scientific),j.moveTo(s.summaries,"cube:dimensions",s,!0)&&j.addExtension(s,St.datacube),Object.keys(s.summaries).length===0&&delete s.summaries}},Ow={migrate(s,t=null,e=!0){se.set(s),e&&(s.stac_version=Pw),j.ensure(s,"stac_extensions",[]),se.before("1.0.0-rc.1")&&j.migrateExtensionShortnames(s),j.ensure(s,"id",""),j.ensure(s,"type","Feature"),j.isObject(s.geometry)||(s.geometry=null),s.geometry!==null&&j.ensure(s,"bbox",[]),j.ensure(s,"properties",{}),j.ensure(s,"links",[]),j.ensure(s,"assets",{});let i=!1;return j.isObject(t)&&j.isObject(t.properties)&&(j.removeFromArray(s,"stac_extensions","commons"),s.properties=Object.assign({},t.properties,s.properties),i=!0),j.runAll(Ow,s,s),x0.migrate(s.properties,s),jd.migrateAll(s),(se.before("0.8.0")||i)&&j.populateExtensions(s,"item"),s}},wL={migrate(s,t=!0){return j.ensure(s,"collections",[]),j.ensure(s,"links",[]),j.runAll(wL,s,s),s.collections=s.collections.map(e=>Lw.migrate(e,t)),s}},EL={migrate(s,t=!0){return j.ensure(s,"type","FeatureCollection"),j.ensure(s,"features",[]),j.ensure(s,"links",[]),j.runAll(EL,s,s),s.features=s.features.map(e=>Ow.migrate(e,null,t)),s}},jd={migrateAll(s,t="assets"){for(let e in s[t])jd.migrate(s[t][e],s)},migrate(s,t){return j.runAll(jd,s,t),x0.migrate(s,t),s},mediaTypes(s){j.is(s.type,"string")&&j.mapValues(s,"type",["image/vnd.stac.geotiff","image/vnd.stac.geotiff; cloud-optimized=true"],["image/tiff; application=geotiff","image/tiff; application=geotiff; profile=cloud-optimized"])},eo(s,t){let e=j.isObject(t.properties)&&Array.isArray(t.properties["eo:bands"])?t.properties["eo:bands"]:[];if(Array.isArray(s["eo:bands"]))for(let i in s["eo:bands"]){let n=s["eo:bands"][i];j.is(n,"number")&&j.isObject(e[n])?n=e[n]:j.isObject(n)||(n={}),s["eo:bands"][i]=n}}},x0={migrate(s,t,e=!1){return j.runAll(x0,s,t,e),s},_commonMetadata(s){se.before("1.0.0-rc.3")&&(j.toUTC(s,"created"),j.toUTC(s,"updated"))},_timestamps(s,t){j.toUTC(s,"published"),j.toUTC(s,"expires"),j.toUTC(s,"unpublished"),j.upgradeExtension(t,St.timestamps)},_versioningIndicator(s,t){j.upgradeExtension(t,St.version)},checksum(s,t){se.before("0.9.0")&&rr.multihash&&(j.rename(s,"checksum:md5","checksum:multihash")&&rr.toMultihash(s,"checksum:multihash","md5"),j.rename(s,"checksum:sha1","checksum:multihash")&&rr.toMultihash(s,"checksum:multihash","sha1"),j.rename(s,"checksum:sha2","checksum:multihash")&&rr.toMultihash(s,"checksum:multihash","sha2-256"),j.rename(s,"checksum:sha3","checksum:multihash")&&rr.toMultihash(s,"checksum:multihash","sha3-256")),se.before("1.0.0-rc.1")&&j.rename(s,"checksum:multihash","file:checksum")&&j.addExtension(t,St.file),j.removeExtension(t,"checksum")},classification(s,t){se.before("1.1.0","classification")&&j.forAll(s,"classification:classes",e=>j.rename(e,"color-hint","color_hint")),j.upgradeExtension(t,St.classification)},cube(s,t){j.upgradeExtension(t,St.datacube)},dtr(s,t){se.before("0.9.0")&&(j.rename(s,"dtr:start_datetime","start_datetime"),j.rename(s,"dtr:end_datetime","end_datetime"),j.removeExtension(t,"datetime-range"))},eo(s,t){se.before("0.9.0")&&(j.rename(s,"eo:epsg","proj:epsg")&&j.addExtension(t,St.projection),j.rename(s,"eo:platform","platform"),j.rename(s,"eo:instrument","instruments")&&j.toArray(s,"instruments"),j.rename(s,"eo:constellation","constellation"),j.rename(s,"eo:off_nadir","view:off_nadir")&&j.addExtension(t,St.view),j.rename(s,"eo:azimuth","view:azimuth")&&j.addExtension(t,St.view),j.rename(s,"eo:incidence_angle","view:incidence_angle")&&j.addExtension(t,St.view),j.rename(s,"eo:sun_azimuth","view:sun_azimuth")&&j.addExtension(t,St.view),j.rename(s,"eo:sun_elevation","view:sun_elevation")&&j.addExtension(t,St.view)),se.before("1.0.0-beta.1")&&j.rename(s,"eo:gsd","gsd"),j.upgradeExtension(t,St.eo)},file(s,t){j.upgradeExtension(t,St.file)},label(s,t){se.before("0.8.0")&&(j.rename(s,"label:property","label:properties"),j.rename(s,"label:task","label:tasks"),j.rename(s,"label:overview","label:overviews")&&j.toArray(s,"label:overviews"),j.rename(s,"label:method","label:methods"),j.toArray(s,"label:classes")),j.upgradeExtension(t,St.label)},pc(s,t){se.before("0.8.0")&&j.rename(s,"pc:schema","pc:schemas"),j.upgradeExtension(t,St.pointcloud)},processing(s,t){j.upgradeExtension(t,St.processing)},proj(s,t){j.upgradeExtension(t,St.projection)},raster(s,t){j.upgradeExtension(t,St.raster)},sar(s,t,e){j.rename(s,"sar:incidence_angle","view:incidence_angle")&&j.addExtension(t,St.view),j.rename(s,"sar:pass_direction","sat:orbit_state")&&j.mapValues(s,"sat:orbit_state",[null],["geostationary"])&&j.addExtension(t,St.sat),se.before("0.7.0")&&(j.flattenArray(s,"sar:resolution",["sar:resolution_range","sar:resolution_azimuth"],e),j.flattenArray(s,"sar:pixel_spacing",["sar:pixel_spacing_range","sar:pixel_spacing_azimuth"],e),j.flattenArray(s,"sar:looks",["sar:looks_range","sar:looks_azimuth","sar:looks_equivalent_number"],e),j.rename(s,"sar:off_nadir","view:off_nadir")&&j.addExtension(t,St.view)),se.before("0.9.0")&&(j.rename(s,"sar:platform","platform"),j.rename(s,"sar:instrument","instruments")&&j.toArray(s,"instruments"),j.rename(s,"sar:constellation","constellation"),j.rename(s,"sar:type","sar:product_type"),j.rename(s,"sar:polarization","sar:polarizations"),j.flattenOneElementArray(s,"sar:absolute_orbit",e)&&j.rename(s,"sar:absolute_orbit","sat:absolute_orbit")&&j.addExtension(t,St.sat),j.flattenOneElementArray(s,"sar:relative_orbit",e)&&j.rename(s,"sar:relative_orbit","sat:relative_orbit")&&j.addExtension(t,St.sat)),j.upgradeExtension(t,St.sar)},sat(s,t){se.before("0.9.0")&&(j.rename(s,"sat:off_nadir_angle","sat:off_nadir"),j.rename(s,"sat:azimuth_angle","sat:azimuth"),j.rename(s,"sat:sun_azimuth_angle","sat:sun_azimuth"),j.rename(s,"sat:sun_elevation_angle","sat:sun_elevation")),j.upgradeExtension(t,St.sat)},sci(s,t){j.upgradeExtension(t,St.scientific)},item(s){se.before("0.8.0")&&(j.rename(s,"item:license","license"),j.rename(s,"item:providers","providers"))},table(s,t){j.upgradeExtension(t,St.table)},view(s,t){j.upgradeExtension(t,St.view)}},eh={item(s,t=null,e=!0){return Ow.migrate(s,t,e)},catalog(s,t=!0){return Aw.migrate(s,t)},collection(s,t=!0){return Lw.migrate(s,t)},collectionCollection(s,t=!0){return wL.migrate(s,t)},itemCollection(s,t=!0){return EL.migrate(s,t)},stac(s,t=!0){return s.type==="Feature"?eh.item(s,null,t):s.type==="FeatureCollection"?eh.itemCollection(s,t):s.type==="Collection"||!s.type&&j.isDefined(s.extent)&&j.isDefined(s.license)?eh.collection(s,t):!s.type&&Array.isArray(s.collections)?eh.collectionCollection(s,t):eh.catalog(s,t)},enableMultihash(s){rr.multihash=s}},iet=eh;const net=g0(iet);function Dc(s){let t=s.length>=6,e=s[0],i=s[t?3:2],n=s[1],r=s[t?4:3],o={west:e,east:i,south:n,north:r};return t&&(o.base=s[2],o.height=s[5]),o}function J_(s){let{west:t,east:e,south:i,north:n}=Dc(s);return[[[t,n],[t,i],[e,i],[e,n],[t,n]]]}function ret(s){if(!$n(s))return null;let t=Dc(s),e=[];if(ML(s)){let i=(t.west+360+t.east)/2;i>180&&(i-=360),e.push(i)}else e.push((t.west+t.east)/2);return e.push((t.south+t.north)/2),typeof t.base<"u"&&e.push((t.base+t.height)/2),e}function SL(s){if($n(s)?s=[s]:Array.isArray(s)&&(s=s.filter(i=>$n(i))),!Array.isArray(s)||s.length===0)return null;let t=s.reduce((i,n)=>{if(ML(n)){let{west:r,east:o,south:a,north:l}=Dc(n);i.push(J_([-180,a,o,l])),i.push(J_([r,a,180,l]))}else i.push(J_(n));return i},[]),e=null;if(t.length===1?e={type:"Polygon",coordinates:t[0]}:t.length>1&&(e={type:"MultiPolygon",coordinates:t}),e)return{type:"Feature",geometry:e,properties:{}}}function $n(s){if(!Array.isArray(s)||![4,6].includes(s.length)||s.some(r=>typeof r!="number"))return!1;let{west:t,east:e,south:i,north:n}=Dc(s);return i<=n&&t>=-180&&t<=180&&i>=-90&&e<=180&&e>=-180&&n<=90}function ML(s){if(!$n(s))return!1;let{west:t,east:e}=Dc(s);return t>e}function bL(s){if(!Array.isArray(s)||s.length===0)return null;let t={west:180,south:90,east:-180,north:-90};s.forEach(i=>{if(!$n(i))return;let n=Dc(i),r=["west","south"];for(let o in n){let a=r.includes(o)?Math.min:Math.max;t[o]=a(t[o],n[o])}});let e=[t.west,t.south,t.east,t.north];return $n(e)?e:null}function Ri(s){return typeof s=="string"&&s.length>0}function xi(s){return typeof s=="object"&&s===Object(s)&&!Array.isArray(s)}function CL(...s){if(s=s.filter(t=>Array.isArray(t)),s.length>1){let t=Math.max(...s.map(i=>i.length)),e=[];for(let i=0;in[i])));return e}else if(s.length===1)return s[0];return[]}function oet(s){switch(s){case"int8":return-128;case"int16":return-32768;case"int32":return-2147483648}return s.startsWith("u")?0:null}function aet(s){switch(s){case"int8":return 127;case"uint8":return 255;case"int16":return 32767;case"uint16":return 65535;case"int32":return 2147483647;case"uint32":return 4294967295}return null}class v0{constructor(t,e={},i=[]){if(!xi(t))throw new Error("Given data is not an object");if(t instanceof v0){for(let n of i)this[n]=t[n];t=t.toJSON()}this._keyMap=e,this._privateKeys=["_keyMap","_privateKeys"].concat(i);for(let n in t)typeof this[n]>"u"&&(n in e?this[n]=e[n](t[n],this):this[n]=t[n])}isItem(){return this.type==="Feature"}isCatalog(){return this.type==="Catalog"}isCatalogLike(){return this.isCatalog()||this.isCollection()}isCollection(){return this.type==="Collection"}isItemCollection(){return this.type==="FeatureCollection"}isCollectionCollection(){return!1}isAsset(){return!1}isLink(){return!1}getObjectType(){}getAbsoluteUrl(){return null}getMetadata(t){return this[t]}toGeoJSON(){return null}getBoundingBox(){return null}getCenter(){return ret(this.getBoundingBox())}getBoundingBoxes(){return[]}toJSON(){let t={};return Object.keys(this).forEach(e=>{if(typeof this[e]=="function"||this._privateKeys.includes(e))return;let i=this[e];if(e in this._keyMap){let n=Array.isArray(i)?[]:{};for(let r in i)n[r]=i[r].toJSON();i=n}t[e]=i}),t}}var TL={exports:{}},zf={exports:{}};/*! https://mths.be/punycode v1.4.0 by @mathias */zf.exports;var KM;function het(){return KM||(KM=1,function(s,t){(function(e){var i=t&&!t.nodeType&&t,n=s&&!s.nodeType&&s,r=typeof qa=="object"&&qa;(r.global===r||r.window===r||r.self===r)&&(e=r);var o,a=2147483647,l=36,h=1,c=26,u=38,d=700,g=72,f=128,p="-",m=/^xn--/,_=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=l-h,w=Math.floor,C=String.fromCharCode,M;function T(k){throw new RangeError(v[k])}function I(k,z){for(var V=k.length,et=[];V--;)et[V]=z(k[V]);return et}function O(k,z){var V=k.split("@"),et="";V.length>1&&(et=V[0]+"@",k=V[1]),k=k.replace(y,".");var F=k.split("."),ot=I(F,z).join(".");return et+ot}function P(k){for(var z=[],V=0,et=k.length,F,ot;V=55296&&F<=56319&&V65535&&(z-=65536,V+=C(z>>>10&1023|55296),z=56320|z&1023),V+=C(z),V}).join("")}function x(k){return k-48<10?k-22:k-65<26?k-65:k-97<26?k-97:l}function E(k,z){return k+22+75*(k<26)-((z!=0)<<5)}function b(k,z,V){var et=0;for(k=V?w(k/d):k>>1,k+=w(k/z);k>S*c>>1;et+=l)k=w(k/S);return w(et+(S+1)*k/(k+u))}function R(k){var z=[],V=k.length,et,F=0,ot=f,ht=g,pt,Gt,Kt,bt,oe,Pe,hs,rs,Ge;for(pt=k.lastIndexOf(p),pt<0&&(pt=0),Gt=0;Gt=128&&T("not-basic"),z.push(k.charCodeAt(Gt));for(Kt=pt>0?pt+1:0;Kt=V&&T("invalid-input"),hs=x(k.charCodeAt(Kt++)),(hs>=l||hs>w((a-F)/oe))&&T("overflow"),F+=hs*oe,rs=Pe<=ht?h:Pe>=ht+c?c:Pe-ht,!(hsw(a/Ge)&&T("overflow"),oe*=Ge;et=z.length+1,ht=b(F-bt,et,bt==0),w(F/et)>a-ot&&T("overflow"),ot+=w(F/et),F%=et,z.splice(F++,0,ot)}return D(z)}function A(k){var z,V,et,F,ot,ht,pt,Gt,Kt,bt,oe,Pe=[],hs,rs,Ge,ve;for(k=P(k),hs=k.length,z=f,V=0,ot=g,ht=0;ht=z&&oew((a-V)/rs)&&T("overflow"),V+=(pt-z)*rs,z=pt,ht=0;hta&&T("overflow"),oe==z){for(Gt=V,Kt=l;bt=Kt<=ot?h:Kt>=ot+c?c:Kt-ot,!(Gt1;g++)u.splice(0,1);a[d]=u.join("")}var f=-1,p=0,m=0,_=-1,y=!1;for(d=0;dp&&(f=_,p=m)):a[d]==="0"&&(y=!0,_=d,m=1);m>p&&(f=_,p=m),p>1&&a.splice(f,p,""),l=a.length;var v="";for(a[0]===""&&(v=":"),d=0;d=n.length-1)return!1;var o=n.lastIndexOf(".",r-1);if(o<=0||o>=r-1)return!1;var a=i.list[n.slice(r+1)];return a?a.indexOf(" "+n.slice(o+1,r)+" ")>=0:!1},is:function(n){var r=n.lastIndexOf(".");if(r<=0||r>=n.length-1)return!1;var o=n.lastIndexOf(".",r-1);if(o>=0)return!1;var a=i.list[n.slice(r+1)];return a?a.indexOf(" "+n.slice(0,r)+" ")>=0:!1},get:function(n){var r=n.lastIndexOf(".");if(r<=0||r>=n.length-1)return null;var o=n.lastIndexOf(".",r-1);if(o<=0||o>=r-1)return null;var a=i.list[n.slice(r+1)];return!a||a.indexOf(" "+n.slice(o+1,r)+" ")<0?null:n.slice(o+1)},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return i})}(tb)),tb.exports}/*! - * URI.js - Mutating URLs - * - * Version: 1.19.11 - * - * Author: Rodney Rehm - * Web: http://medialize.github.io/URI.js/ - * - * Licensed under - * MIT License http://www.opensource.org/licenses/mit-license - * - */(function(s){(function(t,e){s.exports?s.exports=e(het(),cet(),uet()):t.URI=e(t.punycode,t.IPv6,t.SecondLevelDomains,t)})(qa,function(t,e,i,n){var r=n&&n.URI;function o(x,E){var b=arguments.length>=1,R=arguments.length>=2;if(!(this instanceof o))return b?R?new o(x,E):new o(x):new o;if(x===void 0){if(b)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?x=location.href+"":x=""}if(x===null&&b)throw new TypeError("null is not a valid argument for URI");return this.href(x),E!==void 0?this.absoluteTo(E):this}function a(x){return/^[0-9]+$/.test(x)}o.version="1.19.11";var l=o.prototype,h=Object.prototype.hasOwnProperty;function c(x){return x.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function u(x){return x===void 0?"Undefined":String(Object.prototype.toString.call(x)).slice(8,-1)}function d(x){return u(x)==="Array"}function g(x,E){var b={},R,A;if(u(E)==="RegExp")b=null;else if(d(E))for(R=0,A=E.length;R]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(x){if(!(!x||!x.nodeName)){var E=x.nodeName.toLowerCase();if(!(E==="input"&&x.type!=="image"))return o.domAttributes[E]}};function _(x){return escape(x)}function y(x){return encodeURIComponent(x).replace(/[!'()*]/g,_).replace(/\*/g,"%2A")}o.encode=y,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=y,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(x,E){var b=o.encode(x+"");return E===void 0&&(E=o.escapeQuerySpace),E?b.replace(/%20/g,"+"):b},o.decodeQuery=function(x,E){x+="",E===void 0&&(E=o.escapeQuerySpace);try{return o.decode(E?x.replace(/\+/g,"%20"):x)}catch{return x}};var v={encode:"encode",decode:"decode"},S,w=function(x,E){return function(b){try{return o[E](b+"").replace(o.characters[x][E].expression,function(R){return o.characters[x][E].map[R]})}catch{return b}}};for(S in v)o[S+"PathSegment"]=w("pathname",v[S]),o[S+"UrnPathSegment"]=w("urnpath",v[S]);var C=function(x,E,b){return function(R){var A;b?A=function(z){return o[E](o[b](z))}:A=o[E];for(var $=(R+"").split(x),G=0,k=$.length;G-1&&(E.fragment=x.substring(b+1)||null,x=x.substring(0,b)),b=x.indexOf("?"),b>-1&&(E.query=x.substring(b+1)||null,x=x.substring(0,b)),x=x.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),x=x.replace(/^[/\\]{2,}/i,"//"),x.substring(0,2)==="//"?(E.protocol=null,x=x.substring(2),x=o.parseAuthority(x,E)):(b=x.indexOf(":"),b>-1&&(E.protocol=x.substring(0,b)||null,E.protocol&&!E.protocol.match(o.protocol_expression)?E.protocol=void 0:x.substring(b+1,b+3).replace(/\\/g,"/")==="//"?(x=x.substring(b+3),x=o.parseAuthority(x,E)):(x=x.substring(b+1),E.urn=!0))),E.path=x,E},o.parseHost=function(x,E){x||(x=""),x=x.replace(/\\/g,"/");var b=x.indexOf("/"),R,A;if(b===-1&&(b=x.length),x.charAt(0)==="[")R=x.indexOf("]"),E.hostname=x.substring(1,R)||null,E.port=x.substring(R+2,b)||null,E.port==="/"&&(E.port=null);else{var $=x.indexOf(":"),G=x.indexOf("/"),k=x.indexOf(":",$+1);k!==-1&&(G===-1||k-1?A:x.length-1),G;return $>-1&&(A===-1||$-1?ot=ot.slice(0,ht)+ot.slice(ht).replace($,""):ot=ot.replace($,""),!(ot.length<=z[0].length)&&!(b.ignore&&b.ignore.test(ot))){F=V+ot.length;var Kt=E(ot,V,F,x);if(Kt===void 0){R.lastIndex=F;continue}Kt=String(Kt),x=x.slice(0,V)+Kt+x.slice(F),R.lastIndex=V+Kt.length}}return R.lastIndex=0,x},o.ensureValidHostname=function(x,E){var b=!!x,R=!!E,A=!1;if(R&&(A=f(o.hostProtocols,E)),A&&!b)throw new TypeError("Hostname cannot be empty, if protocol is "+E);if(x&&x.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+x+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(x).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+x+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(x){if(x){var E=Number(x);if(!(a(E)&&E>0&&E<65536))throw new TypeError('Port "'+x+'" is not a valid port')}},o.noConflict=function(x){if(x){var E={URI:this.noConflict()};return n.URITemplate&&typeof n.URITemplate.noConflict=="function"&&(E.URITemplate=n.URITemplate.noConflict()),n.IPv6&&typeof n.IPv6.noConflict=="function"&&(E.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&typeof n.SecondLevelDomains.noConflict=="function"&&(E.SecondLevelDomains=n.SecondLevelDomains.noConflict()),E}else n.URI===this&&(n.URI=r);return this},l.build=function(x){return x===!0?this._deferred_build=!0:(x===void 0||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},l.clone=function(){return new o(this)},l.valueOf=l.toString=function(){return this.build(!1)._string};function M(x){return function(E,b){return E===void 0?this._parts[x]||"":(this._parts[x]=E||null,this.build(!b),this)}}function T(x,E){return function(b,R){return b===void 0?this._parts[x]||"":(b!==null&&(b=b+"",b.charAt(0)===E&&(b=b.substring(1))),this._parts[x]=b,this.build(!R),this)}}l.protocol=M("protocol"),l.username=M("username"),l.password=M("password"),l.hostname=M("hostname"),l.port=M("port"),l.query=T("query","?"),l.fragment=T("fragment","#"),l.search=function(x,E){var b=this.query(x,E);return typeof b=="string"&&b.length?"?"+b:b},l.hash=function(x,E){var b=this.fragment(x,E);return typeof b=="string"&&b.length?"#"+b:b},l.pathname=function(x,E){if(x===void 0||x===!0){var b=this._parts.path||(this._parts.hostname?"/":"");return x?(this._parts.urn?o.decodeUrnPath:o.decodePath)(b):b}else return this._parts.urn?this._parts.path=x?o.recodeUrnPath(x):"":this._parts.path=x?o.recodePath(x):"/",this.build(!E),this},l.path=l.pathname,l.href=function(x,E){var b;if(x===void 0)return this.toString();this._string="",this._parts=o._parts();var R=x instanceof o,A=typeof x=="object"&&(x.hostname||x.path||x.pathname);if(x.nodeName){var $=o.getDomAttribute(x);x=x[$]||"",A=!1}if(!R&&A&&x.pathname!==void 0&&(x=x.toString()),typeof x=="string"||x instanceof String)this._parts=o.parse(String(x),this._parts);else if(R||A){var G=R?x._parts:x;for(b in G)b!=="query"&&h.call(this._parts,b)&&(this._parts[b]=G[b]);G.query&&this.query(G.query,!1)}else throw new TypeError("invalid input");return this.build(!E),this},l.is=function(x){var E=!1,b=!1,R=!1,A=!1,$=!1,G=!1,k=!1,z=!this._parts.urn;switch(this._parts.hostname&&(z=!1,b=o.ip4_expression.test(this._parts.hostname),R=o.ip6_expression.test(this._parts.hostname),E=b||R,A=!E,$=A&&i&&i.has(this._parts.hostname),G=A&&o.idn_expression.test(this._parts.hostname),k=A&&o.punycode_expression.test(this._parts.hostname)),x.toLowerCase()){case"relative":return z;case"absolute":return!z;case"domain":case"name":return A;case"sld":return $;case"ip":return E;case"ip4":case"ipv4":case"inet4":return b;case"ip6":case"ipv6":case"inet6":return R;case"idn":return G;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return k}return null};var I=l.protocol,O=l.port,P=l.hostname;l.protocol=function(x,E){if(x&&(x=x.replace(/:(\/\/)?$/,""),!x.match(o.protocol_expression)))throw new TypeError('Protocol "'+x+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return I.call(this,x,E)},l.scheme=l.protocol,l.port=function(x,E){return this._parts.urn?x===void 0?"":this:(x!==void 0&&(x===0&&(x=null),x&&(x+="",x.charAt(0)===":"&&(x=x.substring(1)),o.ensureValidPort(x))),O.call(this,x,E))},l.hostname=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(x!==void 0){var b={preventInvalidHostname:this._parts.preventInvalidHostname},R=o.parseHost(x,b);if(R!=="/")throw new TypeError('Hostname "'+x+'" contains characters other than [A-Z0-9.-]');x=b.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(x,this._parts.protocol)}return P.call(this,x,E)},l.origin=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(x===void 0){var b=this.protocol(),R=this.authority();return R?(b?b+"://":"")+this.authority():""}else{var A=o(x);return this.protocol(A.protocol()).authority(A.authority()).build(!E),this}},l.host=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(x===void 0)return this._parts.hostname?o.buildHost(this._parts):"";var b=o.parseHost(x,this._parts);if(b!=="/")throw new TypeError('Hostname "'+x+'" contains characters other than [A-Z0-9.-]');return this.build(!E),this},l.authority=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(x===void 0)return this._parts.hostname?o.buildAuthority(this._parts):"";var b=o.parseAuthority(x,this._parts);if(b!=="/")throw new TypeError('Hostname "'+x+'" contains characters other than [A-Z0-9.-]');return this.build(!E),this},l.userinfo=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(x===void 0){var b=o.buildUserinfo(this._parts);return b&&b.substring(0,b.length-1)}else return x[x.length-1]!=="@"&&(x+="@"),o.parseUserinfo(x,this._parts),this.build(!E),this},l.resource=function(x,E){var b;return x===void 0?this.path()+this.search()+this.hash():(b=o.parse(x),this._parts.path=b.path,this._parts.query=b.query,this._parts.fragment=b.fragment,this.build(!E),this)},l.subdomain=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(x===void 0){if(!this._parts.hostname||this.is("IP"))return"";var b=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,b)||""}else{var R=this._parts.hostname.length-this.domain().length,A=this._parts.hostname.substring(0,R),$=new RegExp("^"+c(A));if(x&&x.charAt(x.length-1)!=="."&&(x+="."),x.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return x&&o.ensureValidHostname(x,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace($,x),this.build(!E),this}},l.domain=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(typeof x=="boolean"&&(E=x,x=void 0),x===void 0){if(!this._parts.hostname||this.is("IP"))return"";var b=this._parts.hostname.match(/\./g);if(b&&b.length<2)return this._parts.hostname;var R=this._parts.hostname.length-this.tld(E).length-1;return R=this._parts.hostname.lastIndexOf(".",R-1)+1,this._parts.hostname.substring(R)||""}else{if(!x)throw new TypeError("cannot set domain empty");if(x.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(x,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=x;else{var A=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(A,x)}return this.build(!E),this}},l.tld=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(typeof x=="boolean"&&(E=x,x=void 0),x===void 0){if(!this._parts.hostname||this.is("IP"))return"";var b=this._parts.hostname.lastIndexOf("."),R=this._parts.hostname.substring(b+1);return E!==!0&&i&&i.list[R.toLowerCase()]&&i.get(this._parts.hostname)||R}else{var A;if(x)if(x.match(/[^a-zA-Z0-9-]/))if(i&&i.is(x))A=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(A,x);else throw new TypeError('TLD "'+x+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");A=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(A,x)}else throw new TypeError("cannot set TLD empty");return this.build(!E),this}},l.directory=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(x===void 0||x===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var b=this._parts.path.length-this.filename().length-1,R=this._parts.path.substring(0,b)||(this._parts.hostname?"/":"");return x?o.decodePath(R):R}else{var A=this._parts.path.length-this.filename().length,$=this._parts.path.substring(0,A),G=new RegExp("^"+c($));return this.is("relative")||(x||(x="/"),x.charAt(0)!=="/"&&(x="/"+x)),x&&x.charAt(x.length-1)!=="/"&&(x+="/"),x=o.recodePath(x),this._parts.path=this._parts.path.replace(G,x),this.build(!E),this}},l.filename=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(typeof x!="string"){if(!this._parts.path||this._parts.path==="/")return"";var b=this._parts.path.lastIndexOf("/"),R=this._parts.path.substring(b+1);return x?o.decodePathSegment(R):R}else{var A=!1;x.charAt(0)==="/"&&(x=x.substring(1)),x.match(/\.?\//)&&(A=!0);var $=new RegExp(c(this.filename())+"$");return x=o.recodePath(x),this._parts.path=this._parts.path.replace($,x),A?this.normalizePath(E):this.build(!E),this}},l.suffix=function(x,E){if(this._parts.urn)return x===void 0?"":this;if(x===void 0||x===!0){if(!this._parts.path||this._parts.path==="/")return"";var b=this.filename(),R=b.lastIndexOf("."),A,$;return R===-1?"":(A=b.substring(R+1),$=/^[a-z0-9%]+$/i.test(A)?A:"",x?o.decodePathSegment($):$)}else{x.charAt(0)==="."&&(x=x.substring(1));var G=this.suffix(),k;if(G)x?k=new RegExp(c(G)+"$"):k=new RegExp(c("."+G)+"$");else{if(!x)return this;this._parts.path+="."+o.recodePath(x)}return k&&(x=o.recodePath(x),this._parts.path=this._parts.path.replace(k,x)),this.build(!E),this}},l.segment=function(x,E,b){var R=this._parts.urn?":":"/",A=this.path(),$=A.substring(0,1)==="/",G=A.split(R);if(x!==void 0&&typeof x!="number"&&(b=E,E=x,x=void 0),x!==void 0&&typeof x!="number")throw new Error('Bad segment "'+x+'", must be 0-based integer');if($&&G.shift(),x<0&&(x=Math.max(G.length+x,0)),E===void 0)return x===void 0?G:G[x];if(x===null||G[x]===void 0)if(d(E)){G=[];for(var k=0,z=E.length;k"u"?!0:typeof s!="string"?!1:(t=t.map(i=>i.toLowerCase()),t.includes(s.toLowerCase()))}function yet(s,t=!1){return Fw(s,_et,t)}class PL extends v0{constructor(t,e=null,i={},n=[]){super(t,i,["_context"].concat(n)),this._context||(this._context=e)}getAbsoluteUrl(t=!0){return this._context?fet(this.href,this._context.getAbsoluteUrl(),t):this.href.includes("://")?this.href:null}getContext(){return this._context}canBrowserDisplayImage(t=!1){if(typeof this.href!="string"||!t&&typeof this.type>"u")return!1;let e=new yy(this.href),i=e.protocol().toLowerCase(),n=e.suffix().toLowerCase();return Ri(i)&&!sb.includes(i)?!1:Ri(this.type)&&ib.includes(this.type.toLowerCase())?!0:!!(typeof this.type>"u"&&Ri(n)&&(n==="jpg"||ib.includes("image/"+n)))}isType(t){return Ri(this.type)&&Fw(this.type,t)}isGeoTIFF(){return this.isType(IL)}isCOG(){return this.isType(RL)}isHTTP(){let t=this.getAbsoluteUrl(!1).protocol().toLowerCase();return Ri(t)&&sb.includes(t)}}class Nw extends PL{constructor(t,e=null){super(t,e)}isLink(){return!0}getObjectType(){return"Link"}static fromLinks(t,e=null){return Array.isArray(t)?t.map(i=>xi(i)?new Nw(i,e):i):[]}}class AL extends v0{constructor(t,e=null,i={},n=[]){if(super(t,Object.assign({links:Nw.fromLinks},i),["_url"].concat(n)),!this._url&&(this._url=e,!this._url)){let r=this.getSelfLink();r&&(this._url=r.href)}}getAbsoluteUrl(){return this._url}setAbsoluteUrl(t){this._url=t}getStacLinksWithRel(t,e=!0){return this.getLinksWithRels([t]).filter(i=>yet(i.type,e))}getStacLinkWithRel(t,e=!0){const i=this.getStacLinksWithRel(t,e);return i.length>0?i[0]:null}getLinks(){return Array.isArray(this.links)?this.links.filter(t=>xi(t)&&Ri(t.href)):[]}getLinkWithRel(t){return this.getLinks().find(e=>e.rel===t)||null}getLinksWithRels(t){return this.getLinks().filter(e=>t.includes(e.rel))}getLinksWithOtherRels(t){return this.getLinks().filter(e=>!t.includes(e.rel))}getSelfLink(){return this.getStacLinkWithRel("self")}getRootLink(){return this.getStacLinkWithRel("root")}getParentLink(){return this.getStacLinkWithRel("parent")}}class LL extends AL{constructor(t,e=null,i={},n=[]){super(t,e,i,n)}getAll(){return[]}}class Qo extends PL{constructor(t,e=null,i=null){super(t,i,{},["_key"]),this._key||(this._key=e)}getObjectType(){return"Asset"}isAsset(){return!0}getAbsoluteUrl(t=!0){return this.isDefinition()?null:super.getAbsoluteUrl(t)}getKey(){return this._key}getMetadata(t){if(typeof this[t]<"u")return this[t];if(this._context)return this._context.getMetadata(t)}getBands(){return CL(this["eo:bands"],this["raster:bands"])}findVisualBands(){let t={red:null,green:null,blue:null},e=this.getBands();for(let i in e){let n=parseInt(i,10),r=e[n];xi(r)&&Ri(r.common_name)&&r.common_name in t&&(t[r.common_name]={index:n,band:r})}return Object.values(t).every(i=>i!==null)?t:null}findBand(t,e="name",i=null){Array.isArray(t)||(t=[t]),xi(i)||(i=this.getBands());let n=i.findIndex(r=>xi(r)&&t.includes(r[e]));return n>=0?{index:n,band:i[n]}:null}getBand(t){return xi(t)||t===null?t:this.getBands()[t]||null}getMinMaxValues(t=null){t=this.getBand(t);const e={minimum:null,maximum:null},i=a=>a.minimum!==null&&a.maximum!==null;if(t&&(xi(t.statistics)&&(typeof t.statistics.minimum=="number"&&(e.minimum=t.statistics.minimum),typeof t.statistics.maximum=="number"&&(e.maximum=t.statistics.maximum),i(e))||xi(t.histogram)&&(typeof t.histogram.min=="number"&&(e.minimum=t.histogram.min),typeof t.histogram.max=="number"&&(e.maximum=t.histogram.max),i(e))))return e;let n=this.getMetadata("classification:classes");if(Array.isArray(n)&&(n.reduce((a,l)=>(a.minimum=Math.min(a.minimum,l.value),a.maximum=Math.max(a.maximum,l.value),a),e),i(e)))return e;let r=this.getMetadata("file:values");if(Array.isArray(r)&&(r.reduce((a,l)=>(a.minimum=Math.min(a.minimum,...l.values),a.maximum=Math.max(a.maximum,...l.values),a),e),i(e)))return e;let o=xi(t)&&t.data_type||this.getMetadata("file:data_type");return o&&(e.minimum=oet(o),e.maximum=aet(o)),e}getNoDataValues(t=null){t=this.getBand(t);let e=[];if(t&&typeof t.nodata<"u")e.push(t.nodata);else{let i=this.getMetadata("file:nodata");if(typeof i<"u")e=i;else{let n=this.getMetadata("classification:classes");Array.isArray(n)&&(e=n.filter(r=>!!r.nodata).map(r=>r.value))}}return e.map(i=>i==="nan"?NaN:i==="+inf"?1/0:i==="-inf"?-1/0:i)}isDefinition(){return!Ri(this.href)}isHTTP(){return this.isDefinition()?null:super.isHTTP()}hasRole(t,e=!1){return Array.isArray(t)||(t=[t]),e&&t.includes(this.getKey())?!0:Array.isArray(this.roles)&&!!this.roles.find(i=>t.includes(i))}static fromAssets(t,e=null){let i={};if(xi(t))for(let n in t)i[n]=new Qo(t[n],n,e);return i}}class Dg extends AL{constructor(t,e=null,i={},n=[]){super(t,e,i,n)}getTemporalExtent(){return null}getTemporalExtents(){return[]}getIcons(t=!0){return this.getLinksWithRels(["icon"]).filter(e=>e.canBrowserDisplayImage(t))}getThumbnails(t=!0,e=null){let i=this.getAssetsWithRoles(["thumbnail","overview"],!0);if(i.length===0&&(i=this.getLinksWithRels(["preview"])),t&&(i=i.filter(n=>n.canBrowserDisplayImage())),e&&i.length>1){let n=r=>Array.isArray(r.roles)&&r.roles.includes(e)||r.getKey()===e;i=i.filter(n).concat(i.filter(r=>!n(r)))}return i}getDefaultGeoTIFF(t=!0,e=!1){var i;return(i=this.rankGeoTIFFs(t,e)[0])==null?void 0:i.asset}rankGeoTIFFs(t=!0,e=!1,i=null,n=null){xi(i)||(i={data:1,visual:2,thumbnail:2,overview:3});let r=[],o=this.getAssetsByTypes(IL);t&&(o=o.filter(l=>l.isHTTP()&&(!e||l.isCOG())));let a=Object.entries(i);for(let l of o){let h=0;if(a.length>0){let c=a.filter(([u])=>l.hasRole(u,!0)).map(([,u])=>u);c.length>0&&(h+=Math.max(...c))}!e&&l.isCOG()&&(h+=2),l.findVisualBands()&&(h+=1),typeof n=="function"&&(h+=n(l)),r.push({asset:l,score:h})}return r.sort((l,h)=>h.score-l.score),r}findVisualAssets(){let t={red:null,green:null,blue:null},e=Object.keys(t),i=this.getAssets();for(let n of i){let r=n.getBands();if(r.length!==1)continue;let o=n.findBand(e,"common_name",r);o&&(t[o.band.common_name]=n)}return Object.values(t).every(n=>n!==null)?t:null}getAsset(t){return xi(this.assets)&&this.assets[t]||null}getAssets(){return xi(this.assets)?Object.values(this.assets):[]}getAssetsWithRoles(t,e=!1){return this.getAssets().filter(i=>i.hasRole(t,e))}getAssetWithRole(t,e=!1){return this.getAssetsWithRoles([t],e)[0]||null}getAssetsByTypes(t){return this.getAssets().filter(e=>Fw(e.type,t))}equals(t){return this===t?!0:!(t instanceof Dg)||this.getObjectType()!==t.getObjectType()?!1:!!(this.id&&this.id===t.id)}}class OL extends Dg{constructor(t,e=null,i={},n=[]){super(t,e,i,n)}getObjectType(){return this.type}getSearchLink(t=null){let e=this.getStacLinksWithRel("search");return t?e[0]||null:e.find(i=>i.method===t||!t&&!i.method)||null}getApiCollectionsLink(){return this.getStacLinkWithRel("data")}getApiItemsLink(){return this.getStacLinkWithRel("items")}getChildLinks(){return this.getStacLinksWithRel("child")}getItemLinks(){return this.getStacLinksWithRel("item")}}class xet extends OL{constructor(t,e=null){super(t,e)}}function Cu(s){if(Ri(s)&&s.length>=10)try{let t=s.match(/^(-?\d{1,})-(\d\d)-(\d\d)[T ](\d\d):(\d\d):(\d\d)(?:\.(\d*))?(?:Z|[+-]00:00)?$/i).slice(1).map(e=>parseInt(e,10));return new Date(Date.UTC(t[0],t[1]-1,t[2],t[3],t[4],t[5],t[6]||0))}catch{return null}return null}function vet(s,t){return new Date(s.valueOf()+(t-s)/2)}function FL(s){if(!Array.isArray(s)||s.length===0)return null;let t,e;const i=(n,r,o)=>typeof n>"u"?r:n===null||r===null?null:o(n,r);return s.forEach(([n,r])=>{t=i(t,n,Math.min),e=i(e,r,Math.max)}),[t===null?null:new Date(t),e===null?null:new Date(e)]}class NL extends OL{constructor(t,e=null){const i={assets:Qo.fromAssets,item_assets:Qo.fromAssets};super(t,e,i)}toGeoJSON(){let t=SL(this.getBoundingBoxes());return t&&(t.id=this.id),t}getBoundingBox(){let t=this.getRawBoundingBoxes();return t.length>0&&$n(t[0])?t[0]:null}getBoundingBoxes(){let t=this.getRawBoundingBoxes();return t.length===1&&$n(t[0])?t:t.length>1?t.filter((e,i)=>i>0&&$n(e)):[]}getRawBoundingBoxes(){var t,e;let i=(e=(t=this.extent)==null?void 0:t.spatial)==null?void 0:e.bbox;return Array.isArray(i)&&i.length>0?i:[]}getTemporalExtent(){return this.getTemporalExtents()[0]||null}getTemporalExtents(){var t,e;let i=(e=(t=this.extent)==null?void 0:t.temporal)==null?void 0:e.interval;return Array.isArray(i)&&i.length>0?i.filter(n=>Array.isArray(n)&&(Ri(n[0])||Ri(n[1]))).map(n=>n.map(r=>Cu(r))):[]}getSummary(t){return this.summaries[t]}getBands(){let t=this.getSummary("eo:bands"),e=this.getSummary("raster:bands"),i=[t,e].filter(n=>Array.isArray(n));return i.length>=2?CL(...i):i.length===1?i[0]:[]}}class wet extends LL{constructor(t,e=null){const i={collections:n=>n.map(r=>new NL(r))};super(t,e,i)}getObjectType(){return"CollectionCollection"}getAll(){return this.collections}isCollectionCollection(){return!0}toGeoJSON(){return{type:"FeatureCollection",features:this.collections.map(t=>t.toGeoJSON()).filter(t=>t!==null)}}getBoundingBox(){return bL(this.getBoundingBoxes())}getBoundingBoxes(){return this.collections.map(t=>t.getBoundingBox())}getTemporalExtent(){return FL(this.getTemporalExtents())}getTemporalExtents(){return this.collections.map(t=>t.getTemporalExtent())}}class DL extends Dg{constructor(t,e=null){super(t,e,{assets:Qo.fromAssets})}getObjectType(){return"Item"}toGeoJSON(){return this.toJSON()}getBoundingBox(){return $n(this.bbox)?this.bbox:null}getBoundingBoxes(){return $n(this.bbox)?[this.bbox]:[]}getDateTime(){let t=Cu(this.properties.datetime);if(!t){let e=Cu(this.properties.start_datetime),i=Cu(this.properties.end_datetime);return e&&i?vet(e,i):e||i}return t}getTemporalExtent(){return this.getTemporalExtents()[0]||null}getTemporalExtents(){let t=[];return Ri(this.properties.start_datetime)||Ri(this.properties.end_datetime)?t=[[this.properties.start_datetime||null,this.properties.end_datetime||null]]:Ri(this.properties.datetime)&&(t=[[this.properties.datetime,this.properties.datetime]]),t.map(e=>e.map(i=>Cu(i)))}getMetadata(t){return this.properties[t]}getBands(){let t=this.getMetadata("eo:bands");return Array.isArray(t)?t:[]}getCollectionLink(){return this.getStacLinkWithRel("collection")}}class Eet extends LL{constructor(t,e=null){const i={features:n=>n.map(r=>new DL(r))};super(t,e,i)}getObjectType(){return"ItemCollection"}getAll(){return this.features}toGeoJSON(){return this.toJSON()}getBoundingBox(){return bL(this.getBoundingBoxes())}getBoundingBoxes(){return this.features.map(t=>t.getBoundingBox())}getTemporalExtent(){return FL(this.getTemporalExtents())}getTemporalExtents(){return this.features.map(t=>t.getTemporalExtent())}}function Met(s,t=!0,e=!1){return t&&(s=net.stac(s,e)),s.type==="Feature"?new DL(s):s.type==="FeatureCollection"?new Eet(s):s.type==="Collection"||!s.type&&typeof s.extent<"u"&&typeof s.license<"u"?new NL(s):!s.type&&Array.isArray(s.collections)?new wet(s):new xet(s)}class nb extends d0{constructor(t){super({...t,state:"loading"}),jx(this,"loadImage",i=>new Promise((n,r)=>{const o=new Image;o.addEventListener("load",()=>n(o)),o.addEventListener("error",()=>r(new Error("load failed"))),o.src=i}));const e=new aw(t.url);e.getHeader().then(i=>{this.tileGrid.minZoom=i.minZoom,this.tileGrid.maxZoom=i.maxZoom,this.setLoader(async(n,r,o)=>{const a=await e.getZxy(n,r,o),l=URL.createObjectURL(new Blob([a.data])),h=await this.loadImage(l);return URL.revokeObjectURL(l),h}),this.setState("ready")})}}class bet extends y0{constructor(t){super({...t,state:"loading",url:"pmtiles://"+t.url+"/{z}/{x}/{y}",format:new xP}),jx(this,"tileLoadFunction",(e,i)=>{const n=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),r=i.match(n),o=+r[2],a=+r[3],l=+r[4];e.setLoader((h,c,u)=>{e.setState(X.LOADING),this.pmtiles_.getZxy(o,a,l).then(d=>{if(d){const g=e.getFormat();e.setFeatures(g.readFeatures(d.data,{extent:h,featureProjection:u})),e.setState(X.LOADED)}else e.setFeatures([]),e.setState(X.EMPTY)}).catch(d=>{e.setFeatures([]),e.setState(X.ERROR)})})}),this.pmtiles_=new aw(t.url),this.pmtiles_.getHeader().then(e=>{this.tileGrid.minZoom=e.minZoom,this.tileGrid.maxZoom=e.maxZoom,this.setTileLoadFunction(this.tileLoadFunction),this.setState("ready")})}}let Dw=null;function Cet(){return!!Dw}function kL(s){Dw=s;const t=Object.keys(s.defs),e=t.length;let i,n;for(i=0;i0&&(e.nodata=o[0]),t.length>0&&(e.bands=t),e}async function rb(s,t=void 0){let e=t;if(Cet()){const i=s.getMetadata("proj:epsg");if(i)try{e=await Ret(i)}catch{}}return e}function ob(s,t){const e=s.clone();return t.hasOnlyBounds()||e.setFill(null),e}function Let(s){let t=s.href;if(t.includes("{s}"))if(Array.isArray(s["href:servers"])&&s["href:servers"].length>0){const e=Math.random()*s["href:servers"].length|0;t=t.replace("{s}",s["href:servers"][e])}else return null;return t}async function Oet(s){try{const t=new URL(s);t.searchParams.set("service","wmts"),t.searchParams.set("request","GetCapabilities");const e=await fetch(t);return new kv().read(await e.text())}catch{return null}}class kw extends i0{constructor(t){const e={};if(["opacity","visible","zIndex","minResolution","maxResolution","minZoom","maxZoom","properties"].forEach(i=>e[i]=t[i]),super(e),this.getSourceOptions_=t.getSourceOptions,this.data_,this.assets_=null,this.bands_=[],this.crossOrigin_=t.crossOrigin||null,this.displayFootprint_=t.displayFootprint!==!1,this.displayGeoTiffByDefault_=!!t.displayGeoTiffByDefault,this.displayPreview_=!!t.displayPreview,this.displayOverview_=t.displayOverview!==!1,this.displayWebMapLink_=t.displayWebMapLink||!1,this.buildTileUrlTemplate_=t.buildTileUrlTemplate||null,this.useTileLayerAsFallback_=t.useTileLayerAsFallback||!1,this.boundsStyle_=t.boundsStyle||Iet,this.collectionStyle_=t.collectionStyle||Pet,this.boundsLayer_=null,t.data){try{this.configure_(t.data,t.url,t.assets,t.bands)}catch(i){this.handleError_(i)}return}if(!t.url)throw new Error("Either url or data must be provided");fetch(t.url).then(i=>i.json()).then(i=>this.configure_(i,t.url,t.assets,t.bands)).catch(i=>this.handleError_(i))}getBoundsLayer(){return this.boundsLayer_}handleError_(t){this.dispatchEvent(new WJ(t))}configure_(t,e=null,i=null,n=[]){t instanceof Qo||t instanceof Dg?this.data_=t:this.data_=Met(t),e&&e.includes("://")&&this.data_.setAbsoluteUrl(e),this.bands_=n,this.boundsLayer_=this.addFootprint_();const r=()=>{this.boundsLayer_&&this.boundsLayer_.setStyle(ob(this.boundsStyle_,this))};this.getLayers().on("add",r),this.getLayers().on("remove",r),this.setAssets(i).then(()=>this.dispatchEvent("assetsready")).catch(o=>this.handleError_(o)),this.dispatchEvent("sourceready")}async addApiCollection_(){const t=this.getData().getAll().map(e=>{const i=new kw({data:e,crossOrigin:this.crossOrigin_,boundsStyle:this.collectionStyle_,displayGeoTiffByDefault:this.displayGeoTiffByDefault_,displayOverview:this.displayOverview_,displayPreview:this.displayPreview_,displayFootprint:this.displayFootprint_});return this.addLayer_(i),i});return await Promise.all(t)}async addStacAssets_(){let t=this.getAssets();if(t===null){t=[];const i=this.getData().getDefaultGeoTIFF(!0,!this.displayGeoTiffByDefault_);if(i)t.push(i);else{const n=this.getData().getThumbnails().filter(r=>!Array.isArray(r.roles)||!r.roles.includes("example"));n.length>0&&t.push(n[0])}}const e=t.map(i=>this.addImagery_(i));return await Promise.all(e)}async addImagery_(t){if(t){if(t.isGeoTIFF())return await this.addGeoTiff_(t);if(t.canBrowserDisplayImage())return await this.addThumbnail_(t)}}async addThumbnail_(t){if(!this.displayPreview_)return;let e={url:t.getAbsoluteUrl(),projection:await rb(t,"EPSG:4326"),imageExtent:t.getContext().getBoundingBox(),crossOrigin:this.crossOrigin_};this.getSourceOptions_&&(e=await this.getSourceOptions_(Fe.ImageStatic,e,t));const i=new ew({source:new hL(e)});return this.addLayer_(i,t),i}async addWebMapLinks_(){const t=this.getWebMapLinks();if(t.length>0)return await this.addLayerForLink(t[0])}async addLayerForLink(t){const e=Let(t);if(!e)return;const i={attributions:t.getMetadata("attribution")||this.data_.getMetadata("attribution"),crossOrigin:this.crossOrigin_,url:e},n=async(o,a)=>(this.getSourceOptions_&&(a=await this.getSourceOptions_(o,a,t)),a),r=[];switch(t.rel){case"pmtiles":const o=await new aw(i.url).getHeader();let a;switch(o.tileType){case th.Mvt:a=new bet(await n(Fe.PMTilesVector,i));break;case th.Avif:case th.Jpeg:case th.Png:case th.Webp:a=new nb(await n(Fe.PMTilesRaster,i));break;default:return}r.push(a);break;case"tilejson":r.push(new gL(await n(Fe.TileJSON,i)));break;case"wms":if(!Array.isArray(t["wms:layers"]))break;for(const c in t["wms:layers"]){const u=t["wms:layers"][c]||"";let d="";Array.isArray(t["wms:styles"])&&typeof t["wms:styles"][c]=="string"&&(d=t["wms:styles"][c]);const g=Object.assign({LAYERS:u,STYLES:d},t["wms:dimensions"]);typeof t["wms:transparent"]=="boolean"&&(g.TRANSPARENT=String(t["wms:transparent"])),typeof t.type=="string"&&t.type.startsWith("image/")&&(g.FORMAT=t.type);const f=await n(Fe.TileWMS,Object.assign({},i,{params:g}));r.push(new _L(f))}break;case"wmts":const l=await Oet(e);if(!l)return;const h=Array.isArray(t["wmts:layer"])?t["wmts:layer"]:[t["wmts:layer"]];for(const c of h){let u=Object.assign({},i,{layer:c});typeof t.type=="string"&&t.type.startsWith("image/")&&(u.format=t.type),u=await n(Fe.WMTS,u),r.push(new yL(xL(l,u)))}break;case"xyz":r.push(new hl(await n(Fe.XYZ,i)));break;default:return}return r.map(o=>{let a;return o instanceof y0?a=new vA({source:o,declutter:!0}):o instanceof nb?a=new Hp({source:o}):a=new Yp({source:o}),this.addLayer_(a,t),a})}async addGeoTiff_(t){if(!this.displayOverview_)return;if(this.buildTileUrlTemplate_&&!this.useTileLayerAsFallback_)return await this.addTileLayerForImagery_(t);let e={sources:[Aet(t,this.bands_)]};const i=await rb(t);i&&(e.projection=i),this.getSourceOptions_&&(e=await this.getSourceOptions_(Fe.GeoTIFF,e,t));const n=async(r,o)=>(o&&this.getLayers().remove(o),await this.addTileLayerForImagery_(r));try{const r=new bw(e),o=new Hp({source:r});if(this.useTileLayerAsFallback_){const a=()=>n(t,o);r.on("error",a),r.on("tileloaderror",a),r.on("change",()=>{r.getState()==="error"&&n(t,o)}),o.on("error",a),await r.getView()}return this.addLayer_(o,t),o}catch(r){if(this.useTileLayerAsFallback_)return await n(t,null);this.handleError_(r)}}async addTileLayerForImagery_(t){let e={crossOrigin:this.crossOrigin_,url:this.buildTileUrlTemplate_(t)};this.getSourceOptions_&&(e=await this.getSourceOptions_(Fe.XYZ,e,t));const i=new Yp({source:new hl(e)});return this.addLayer_(i,t),i}addLayer_(t,e,i=0){t.set("stac",e),t.setZIndex(i),this.getLayers().push(t)}addFootprint_(){let t=null;const e=this.getData();if(e.isItemCollection()||e.isCollectionCollection()?t=SL(e.getBoundingBox()):t=e.toGeoJSON(),t){const i=new DI,n=new s0({format:i,loader:(o,a,l)=>{const h=i.readFeatures(t,{featureProjection:l});n.addFeatures(h)}}),r=new Yv({source:n,style:ob(this.boundsStyle_,this),visible:this.displayFootprint_});return r.set("bounds",!0),this.addLayer_(r,e,1),r}return null}async updateLayers_(){const t=this.getLayers();for(let i=t.getLength()-1;i>=0;i--){const n=t.item(i).get("stac");n&&(n.isLink()||n.isAsset())&&t.removeAt(i)}const e=this.getData();e.isItemCollection()||e.isCollectionCollection()?await this.addApiCollection_():(e.isItem()||e.isCollection())&&await this.addStacAssets_(),this.displayWebMapLink_&&(Array.isArray(this.displayWebMapLink_)||this.hasOnlyBounds())&&await this.addWebMapLinks_()}hasOnlyBounds(){const t=this.getBoundsLayer();return typeof this.getLayersArray().find(e=>e!==t)>"u"}getWebMapLinks(){let t=["xyz","tilejson","pmtiles","wmts","wms"];typeof this.displayWebMapLink_=="string"&&(t=[this.displayWebMapLink_]);let e=this.data_.getLinksWithRels(t);return Array.isArray(this.displayWebMapLink_)?e=this.displayWebMapLink_.map(i=>typeof i=="string"?e.find(r=>r.id===i)||null:i).filter(i=>!!i):e.sort((i,n)=>{const r=t.indexOf(i.rel),o=t.indexOf(n.rel);return r-o}),e}async setAssets(t){Array.isArray(t)?this.assets_=t.map(e=>typeof e=="string"?this.getData().getAsset(e):e instanceof Qo?e:new Qo(e)):this.assets_=null,await this.updateLayers_()}getData(){return this.data_}getAssets(){return this.assets_}getExtent(){if(!this.boundsLayer_)return;const t=this.boundsLayer_.getMapInternal();if(!t)return;const e=t.getView();if(!e)return;const i=this.getData();if(!i)return;const n=i.getBoundingBox();if(n)return ev(n,"EPSG:4326",e.getProjection())}}function Fet(s){s("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),s("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),s("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"),s.WGS84=s["EPSG:4326"],s["EPSG:3785"]=s["EPSG:3857"],s.GOOGLE=s["EPSG:3857"],s["EPSG:900913"]=s["EPSG:3857"],s["EPSG:102113"]=s["EPSG:3857"]}var cl=1,ul=2,Dh=3,Net=4,xy=5,ab=6378137,Det=6356752314e-3,lb=.0066943799901413165,Ju=484813681109536e-20,K=Math.PI/2,ket=.16666666666666666,$et=.04722222222222222,Get=.022156084656084655,tt=1e-10,Ls=.017453292519943295,ur=57.29577951308232,ye=Math.PI/4,zd=Math.PI*2,es=3.14159265359,Fi={};Fi.greenwich=0;Fi.lisbon=-9.131906111111;Fi.paris=2.337229166667;Fi.bogota=-74.080916666667;Fi.madrid=-3.687938888889;Fi.rome=12.452333333333;Fi.bern=7.439583333333;Fi.jakarta=106.807719444444;Fi.ferro=-17.666666666667;Fi.brussels=4.367975;Fi.stockholm=18.058277777778;Fi.athens=23.7163375;Fi.oslo=10.722916666667;const jet={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var hb=/[\s_\-\/\(\)]/g;function ca(s,t){if(s[t])return s[t];for(var e=Object.keys(s),i=t.toLowerCase().replace(hb,""),n=-1,r,o;++n=this.text.length)return;s=this.text[this.place++]}switch(this.state){case Ud:return this.neutral(s);case $L:return this.keyword(s);case tm:return this.quoted(s);case jL:return this.afterquote(s);case GL:return this.number(s);case $w:return}};xo.prototype.afterquote=function(s){if(s==='"'){this.word+='"',this.state=tm;return}if(w0.test(s)){this.word=this.word.trim(),this.afterItem(s);return}throw new Error(`havn't handled "`+s+'" in afterquote yet, index '+this.place)};xo.prototype.afterItem=function(s){if(s===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Ud;return}if(s==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Ud,this.currentObject=this.stack.pop(),this.currentObject||(this.state=$w);return}};xo.prototype.number=function(s){if(zL.test(s)){this.word+=s;return}if(w0.test(s)){this.word=parseFloat(this.word),this.afterItem(s);return}throw new Error(`havn't handled "`+s+'" in number yet, index '+this.place)};xo.prototype.quoted=function(s){if(s==='"'){this.state=jL;return}this.word+=s};xo.prototype.keyword=function(s){if(Bet.test(s)){this.word+=s;return}if(s==="["){var t=[];t.push(this.word),this.level++,this.root===null?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,this.state=Ud;return}if(w0.test(s)){this.afterItem(s);return}throw new Error(`havn't handled "`+s+'" in keyword yet, index '+this.place)};xo.prototype.neutral=function(s){if(Uet.test(s)){this.word=s,this.state=$L;return}if(s==='"'){this.word="",this.state=tm;return}if(zL.test(s)){this.word=s,this.state=GL;return}if(w0.test(s)){this.afterItem(s);return}throw new Error(`havn't handled "`+s+'" in neutral yet, index '+this.place)};xo.prototype.output=function(){for(;this.place0?90:-90),s.lat_ts=s.lat1):!s.lat_ts&&s.lat0&&s.projName==="Polar_Stereographic"&&(s.lat_ts=s.lat0,s.lat0=tr(s.lat0>0?90:-90))}function UL(s){var t=Wet(s),e=t.shift(),i=t.shift();t.unshift(["name",i]),t.unshift(["type",e]);var n={};return yh(t,n),Yet(n),n}function ti(s){var t=this;if(arguments.length===2){var e=arguments[1];typeof e=="string"?e.charAt(0)==="+"?ti[s]=vy(arguments[1]):ti[s]=UL(arguments[1]):ti[s]=e}else if(arguments.length===1){if(Array.isArray(s))return s.map(function(i){Array.isArray(i)?ti.apply(t,i):ti(i)});if(typeof s=="string"){if(s in ti)return ti[s]}else"EPSG"in s?ti["EPSG:"+s.EPSG]=s:"ESRI"in s?ti["ESRI:"+s.ESRI]=s:"IAU2000"in s?ti["IAU2000:"+s.IAU2000]=s:console.log(s);return}}Fet(ti);function qet(s){return typeof s=="string"}function Zet(s){return s in ti}var Het=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function Ket(s){return Het.some(function(t){return s.indexOf(t)>-1})}var Jet=["3857","900913","3785","102113"];function Qet(s){var t=ca(s,"authority");if(t){var e=ca(t,"epsg");return e&&Jet.indexOf(e)>-1}}function tst(s){var t=ca(s,"extension");if(t)return ca(t,"proj4")}function est(s){return s[0]==="+"}function sst(s){if(qet(s)){if(Zet(s))return ti[s];if(Ket(s)){var t=UL(s);if(Qet(t))return ti["EPSG:3857"];var e=tst(t);return e?vy(e):t}if(est(s))return vy(s)}else return s}function ub(s,t){s=s||{};var e,i;if(!t)return s;for(i in t)e=t[i],e!==void 0&&(s[i]=e);return s}function wr(s,t,e){var i=s*t;return e/Math.sqrt(1-i*i)}function kg(s){return s<0?-1:1}function rt(s){return Math.abs(s)<=es?s:s-kg(s)*zd}function Gn(s,t,e){var i=s*e,n=.5*s;return i=Math.pow((1-i)/(1+i),n),Math.tan(.5*(K-t))/i}function Bd(s,t){for(var e=.5*s,i,n,r=K-2*Math.atan(t),o=0;o<=15;o++)if(i=s*Math.sin(r),n=K-2*Math.atan(t*Math.pow((1-i)/(1+i),e))-r,r+=n,Math.abs(n)<=1e-10)return r;return-9999}function ist(){var s=this.b/this.a;this.es=1-s*s,"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=wr(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function nst(s){var t=s.x,e=s.y;if(e*ur>90&&e*ur<-90&&t*ur>180&&t*ur<-180)return null;var i,n;if(Math.abs(Math.abs(e)-K)<=tt)return null;if(this.sphere)i=this.x0+this.a*this.k0*rt(t-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(ye+.5*e));else{var r=Math.sin(e),o=Gn(this.e,e,r);i=this.x0+this.a*this.k0*rt(t-this.long0),n=this.y0-this.a*this.k0*Math.log(o)}return s.x=i,s.y=n,s}function rst(s){var t=s.x-this.x0,e=s.y-this.y0,i,n;if(this.sphere)n=K-2*Math.atan(Math.exp(-e/(this.a*this.k0)));else{var r=Math.exp(-e/(this.a*this.k0));if(n=Bd(this.e,r),n===-9999)return null}return i=rt(this.long0+t/(this.a*this.k0)),s.x=i,s.y=n,s}var ost=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const ast={init:ist,forward:nst,inverse:rst,names:ost};function lst(){}function db(s){return s}var hst=["longlat","identity"];const cst={init:lst,forward:db,inverse:db,names:hst};var ust=[ast,cst],Uf={},em=[];function BL(s,t){var e=em.length;return s.names?(em[e]=s,s.names.forEach(function(i){Uf[i.toLowerCase()]=e}),this):(console.log(t),!0)}function dst(s){if(!s)return!1;var t=s.toLowerCase();if(typeof Uf[t]<"u"&&em[Uf[t]])return em[Uf[t]]}function gst(){ust.forEach(BL)}const fst={start:gst,add:BL,get:dst};var $t={};$t.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};$t.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};$t.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};$t.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};$t.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};$t.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};$t.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};$t.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};$t.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};$t.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};$t.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};$t.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};$t.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};$t.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};$t.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};$t.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};$t.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};$t.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};$t.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};$t.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};$t.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};$t.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};$t.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};$t.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};$t.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};$t.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};$t.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};$t.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};$t.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};$t.hough={a:6378270,rf:297,ellipseName:"Hough"};$t.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};$t.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};$t.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};$t.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};$t.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};$t.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};$t.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};$t.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};$t.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};$t.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};$t.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};$t.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var pst=$t.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};$t.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function mst(s,t,e,i){var n=s*s,r=t*t,o=(n-r)/n,a=0;i?(s*=1-o*(ket+o*($et+o*Get)),n=s*s,o=0):a=Math.sqrt(o);var l=(n-r)/r;return{es:o,e:a,ep2:l}}function _st(s,t,e,i,n){if(!s){var r=ca($t,i);r||(r=pst),s=r.a,t=r.b,e=r.rf}return e&&!t&&(t=(1-1/e)*s),(e===0||Math.abs(s-t)3&&(a.datum_params[3]!==0||a.datum_params[4]!==0||a.datum_params[5]!==0||a.datum_params[6]!==0)&&(a.datum_type=ul,a.datum_params[3]*=Ju,a.datum_params[4]*=Ju,a.datum_params[5]*=Ju,a.datum_params[6]=a.datum_params[6]/1e6+1)),o&&(a.datum_type=Dh,a.grids=o),a.a=e,a.b=i,a.es=n,a.ep2=r,a}var WL={};function xst(s,t){var e=new DataView(t),i=Est(e),n=Sst(e,i),r=Mst(e,n,i),o={header:n,subgrids:r};return WL[s]=o,o}function vst(s){if(s===void 0)return null;var t=s.split(",");return t.map(wst)}function wst(s){if(s.length===0)return null;var t=s[0]==="@";return t&&(s=s.slice(1)),s==="null"?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:s,mandatory:!t,grid:WL[s]||null,isNull:!1}}function xh(s){return s/3600*Math.PI/180}function Est(s){var t=s.getInt32(8,!1);return t===11?!1:(t=s.getInt32(8,!0),t!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Sst(s,t){return{nFields:s.getInt32(8,t),nSubgridFields:s.getInt32(24,t),nSubgrids:s.getInt32(40,t),shiftType:wy(s,56,64).trim(),fromSemiMajorAxis:s.getFloat64(120,t),fromSemiMinorAxis:s.getFloat64(136,t),toSemiMajorAxis:s.getFloat64(152,t),toSemiMinorAxis:s.getFloat64(168,t)}}function wy(s,t,e){return String.fromCharCode.apply(null,new Uint8Array(s.buffer.slice(t,e)))}function Mst(s,t,e){for(var i=176,n=[],r=0;r5e-11?!1:s.datum_type===cl?s.datum_params[0]===t.datum_params[0]&&s.datum_params[1]===t.datum_params[1]&&s.datum_params[2]===t.datum_params[2]:s.datum_type===ul?s.datum_params[0]===t.datum_params[0]&&s.datum_params[1]===t.datum_params[1]&&s.datum_params[2]===t.datum_params[2]&&s.datum_params[3]===t.datum_params[3]&&s.datum_params[4]===t.datum_params[4]&&s.datum_params[5]===t.datum_params[5]&&s.datum_params[6]===t.datum_params[6]:!0}function XL(s,t,e){var i=s.x,n=s.y,r=s.z?s.z:0,o,a,l,h;if(n<-K&&n>-1.001*K)n=-K;else if(n>K&&n<1.001*K)n=K;else{if(n<-K)return{x:-1/0,y:-1/0,z:s.z};if(n>K)return{x:1/0,y:1/0,z:s.z}}return i>Math.PI&&(i-=2*Math.PI),a=Math.sin(n),h=Math.cos(n),l=a*a,o=e/Math.sqrt(1-t*l),{x:(o+r)*h*Math.cos(i),y:(o+r)*h*Math.sin(i),z:(o*(1-t)+r)*a}}function VL(s,t,e,i){var n=1e-12,r=n*n,o=30,a,l,h,c,u,d,g,f,p,m,_,y,v,S=s.x,w=s.y,C=s.z?s.z:0,M,T,I;if(a=Math.sqrt(S*S+w*w),l=Math.sqrt(S*S+w*w+C*C),a/er&&vi.y||g>i.x||ma&&Math.abs(l.y)>a);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=rt(r.x+e.ll[0]),i.y=r.y+e.ll[1]}else isNaN(r.x)||(i.x=s.x+r.x,i.y=s.y+r.y);return i}function fb(s,t){var e={x:s.x/t.del[0],y:s.y/t.del[1]},i={x:Math.floor(e.x),y:Math.floor(e.y)},n={x:e.x-1*i.x,y:e.y-1*i.y},r={x:Number.NaN,y:Number.NaN},o;if(i.x<0||i.x>=t.lim[0]||i.y<0||i.y>=t.lim[1])return r;o=i.y*t.lim[0]+i.x;var a={x:t.cvs[o][0],y:t.cvs[o][1]};o++;var l={x:t.cvs[o][0],y:t.cvs[o][1]};o+=t.lim[0];var h={x:t.cvs[o][0],y:t.cvs[o][1]};o--;var c={x:t.cvs[o][0],y:t.cvs[o][1]},u=n.x*n.y,d=n.x*(1-n.y),g=(1-n.x)*(1-n.y),f=(1-n.x)*n.y;return r.x=g*a.x+d*l.x+f*c.x+u*h.x,r.y=g*a.y+d*l.y+f*c.y+u*h.y,r}function pb(s,t,e){var i=e.x,n=e.y,r=e.z||0,o,a,l,h={};for(l=0;l<3;l++)if(!(t&&l===2&&e.z===void 0))switch(l===0?(o=i,"ew".indexOf(s.axis[l])!==-1?a="x":a="y"):l===1?(o=n,"ns".indexOf(s.axis[l])!==-1?a="y":a="x"):(o=r,a="z"),s.axis[l]){case"e":h[a]=o;break;case"w":h[a]=-o;break;case"n":h[a]=o;break;case"s":h[a]=-o;break;case"u":e[a]!==void 0&&(h.z=o);break;case"d":e[a]!==void 0&&(h.z=-o);break;default:return null}return h}function YL(s){var t={x:s[0],y:s[1]};return s.length>2&&(t.z=s[2]),s.length>3&&(t.m=s[3]),t}function Ost(s){mb(s.x),mb(s.y)}function mb(s){if(typeof Number.isFinite=="function"){if(Number.isFinite(s))return;throw new TypeError("coordinates must be finite numbers")}if(typeof s!="number"||s!==s||!isFinite(s))throw new TypeError("coordinates must be finite numbers")}function Fst(s,t){return(s.datum.datum_type===cl||s.datum.datum_type===ul||s.datum.datum_type===Dh)&&t.datumCode!=="WGS84"||(t.datum.datum_type===cl||t.datum.datum_type===ul||t.datum.datum_type===Dh)&&s.datumCode!=="WGS84"}function sm(s,t,e,i){var n;Array.isArray(e)?e=YL(e):e={x:e.x,y:e.y,z:e.z,m:e.m};var r=e.z!==void 0;if(Ost(e),s.datum&&t.datum&&Fst(s,t)&&(n=new pr("WGS84"),e=sm(s,n,e,i),s=n),i&&s.axis!=="enu"&&(e=pb(s,!1,e)),s.projName==="longlat")e={x:e.x*Ls,y:e.y*Ls,z:e.z||0};else if(s.to_meter&&(e={x:e.x*s.to_meter,y:e.y*s.to_meter,z:e.z||0}),e=s.inverse(e),!e)return;if(s.from_greenwich&&(e.x+=s.from_greenwich),e=Ast(s.datum,t.datum,e),!!e)return t.from_greenwich&&(e={x:e.x-t.from_greenwich,y:e.y,z:e.z||0}),t.projName==="longlat"?e={x:e.x*ur,y:e.y*ur,z:e.z||0}:(e=t.forward(e),t.to_meter&&(e={x:e.x/t.to_meter,y:e.y/t.to_meter,z:e.z||0})),i&&t.axis!=="enu"?pb(t,!0,e):(e&&!r&&delete e.z,e)}var _b=pr("WGS84");function Q_(s,t,e,i){var n,r,o;return Array.isArray(e)?(n=sm(s,t,e,i)||{x:NaN,y:NaN},e.length>2?typeof s.name<"u"&&s.name==="geocent"||typeof t.name<"u"&&t.name==="geocent"?typeof n.z=="number"?[n.x,n.y,n.z].concat(e.splice(3)):[n.x,n.y,e[2]].concat(e.splice(3)):[n.x,n.y].concat(e.splice(2)):[n.x,n.y]):(r=sm(s,t,e,i),o=Object.keys(e),o.length===2||o.forEach(function(a){if(typeof s.name<"u"&&s.name==="geocent"||typeof t.name<"u"&&t.name==="geocent"){if(a==="x"||a==="y"||a==="z")return}else if(a==="x"||a==="y")return;r[a]=e[a]}),r)}function yb(s){return s instanceof pr?s:s.oProj?s.oProj:pr(s)}function Hi(s,t,e){s=yb(s);var i=!1,n;return typeof t>"u"?(t=s,s=_b,i=!0):(typeof t.x<"u"||Array.isArray(t))&&(e=t,t=s,s=_b,i=!0),t=yb(t),e?Q_(s,t,e):(n={forward:function(r,o){return Q_(s,t,r,o)},inverse:function(r,o){return Q_(t,s,r,o)}},i&&(n.oProj=t),n)}var xb=6,qL="AJSAJS",ZL="AFAFAF",vh=65,mi=73,tn=79,Tu=86,Ru=90;const Nst={forward:HL,inverse:Dst,toPoint:KL};function HL(s,t){return t=t||5,Gst(kst({lat:s[1],lon:s[0]}),t)}function Dst(s){var t=Gw(QL(s.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function KL(s){var t=Gw(QL(s.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function t1(s){return s*(Math.PI/180)}function vb(s){return 180*(s/Math.PI)}function kst(s){var t=s.lat,e=s.lon,i=6378137,n=.00669438,r=.9996,o,a,l,h,c,u,d,g=t1(t),f=t1(e),p,m;m=Math.floor((e+180)/6)+1,e===180&&(m=60),t>=56&&t<64&&e>=3&&e<12&&(m=32),t>=72&&t<84&&(e>=0&&e<9?m=31:e>=9&&e<21?m=33:e>=21&&e<33?m=35:e>=33&&e<42&&(m=37)),o=(m-1)*6-180+3,p=t1(o),a=n/(1-n),l=i/Math.sqrt(1-n*Math.sin(g)*Math.sin(g)),h=Math.tan(g)*Math.tan(g),c=a*Math.cos(g)*Math.cos(g),u=Math.cos(g)*(f-p),d=i*((1-n/4-3*n*n/64-5*n*n*n/256)*g-(3*n/8+3*n*n/32+45*n*n*n/1024)*Math.sin(2*g)+(15*n*n/256+45*n*n*n/1024)*Math.sin(4*g)-35*n*n*n/3072*Math.sin(6*g));var _=r*l*(u+(1-h+c)*u*u*u/6+(5-18*h+h*h+72*c-58*a)*u*u*u*u*u/120)+5e5,y=r*(d+l*Math.tan(g)*(u*u/2+(5-h+9*c+4*c*c)*u*u*u*u/24+(61-58*h+h*h+600*c-330*a)*u*u*u*u*u*u/720));return t<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(_),zoneNumber:m,zoneLetter:$st(t)}}function Gw(s){var t=s.northing,e=s.easting,i=s.zoneLetter,n=s.zoneNumber;if(n<0||n>60)return null;var r=.9996,o=6378137,a=.00669438,l,h=(1-Math.sqrt(1-a))/(1+Math.sqrt(1-a)),c,u,d,g,f,p,m,_,y,v=e-5e5,S=t;i<"N"&&(S-=1e7),m=(n-1)*6-180+3,l=a/(1-a),p=S/r,_=p/(o*(1-a/4-3*a*a/64-5*a*a*a/256)),y=_+(3*h/2-27*h*h*h/32)*Math.sin(2*_)+(21*h*h/16-55*h*h*h*h/32)*Math.sin(4*_)+151*h*h*h/96*Math.sin(6*_),c=o/Math.sqrt(1-a*Math.sin(y)*Math.sin(y)),u=Math.tan(y)*Math.tan(y),d=l*Math.cos(y)*Math.cos(y),g=o*(1-a)/Math.pow(1-a*Math.sin(y)*Math.sin(y),1.5),f=v/(c*r);var w=y-c*Math.tan(y)/g*(f*f/2-(5+3*u+10*d-4*d*d-9*l)*f*f*f*f/24+(61+90*u+298*d+45*u*u-252*l-3*d*d)*f*f*f*f*f*f/720);w=vb(w);var C=(f-(1+2*u+d)*f*f*f/6+(5-2*d+28*u-3*d*d+8*l+24*u*u)*f*f*f*f*f/120)/Math.cos(y);C=m+vb(C);var M;if(s.accuracy){var T=Gw({northing:s.northing+s.accuracy,easting:s.easting+s.accuracy,zoneLetter:s.zoneLetter,zoneNumber:s.zoneNumber});M={top:T.lat,right:T.lon,bottom:w,left:C}}else M={lat:w,lon:C};return M}function $st(s){var t="Z";return 84>=s&&s>=72?t="X":72>s&&s>=64?t="W":64>s&&s>=56?t="V":56>s&&s>=48?t="U":48>s&&s>=40?t="T":40>s&&s>=32?t="S":32>s&&s>=24?t="R":24>s&&s>=16?t="Q":16>s&&s>=8?t="P":8>s&&s>=0?t="N":0>s&&s>=-8?t="M":-8>s&&s>=-16?t="L":-16>s&&s>=-24?t="K":-24>s&&s>=-32?t="J":-32>s&&s>=-40?t="H":-40>s&&s>=-48?t="G":-48>s&&s>=-56?t="F":-56>s&&s>=-64?t="E":-64>s&&s>=-72?t="D":-72>s&&s>=-80&&(t="C"),t}function Gst(s,t){var e="00000"+s.easting,i="00000"+s.northing;return s.zoneNumber+s.zoneLetter+jst(s.easting,s.northing,s.zoneNumber)+e.substr(e.length-5,t)+i.substr(i.length-5,t)}function jst(s,t,e){var i=JL(e),n=Math.floor(s/1e5),r=Math.floor(t/1e5)%20;return zst(n,r,i)}function JL(s){var t=s%xb;return t===0&&(t=xb),t}function zst(s,t,e){var i=e-1,n=qL.charCodeAt(i),r=ZL.charCodeAt(i),o=n+s-1,a=r+t,l=!1;o>Ru&&(o=o-Ru+vh-1,l=!0),(o===mi||nmi||(o>mi||ntn||(o>tn||nRu&&(o=o-Ru+vh-1),a>Tu?(a=a-Tu+vh-1,l=!0):l=!1,(a===mi||rmi||(a>mi||rtn||(a>tn||rTu&&(a=a-Tu+vh-1);var h=String.fromCharCode(o)+String.fromCharCode(a);return h}function QL(s){if(s&&s.length===0)throw"MGRSPoint coverting from nothing";for(var t=s.length,e=null,i="",n,r=0;!/[A-Z]/.test(n=s.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+s;i+=n,r++}var o=parseInt(i,10);if(r===0||r+3>t)throw"MGRSPoint bad conversion from: "+s;var a=s.charAt(r++);if(a<="A"||a==="B"||a==="Y"||a>="Z"||a==="I"||a==="O")throw"MGRSPoint zone letter "+a+" not handled: "+s;e=s.substring(r,r+=2);for(var l=JL(o),h=Ust(e.charAt(0),l),c=Bst(e.charAt(1),l);c0&&(p=1e5/Math.pow(10,d),m=s.substring(r,r+d),g=parseFloat(m)*p,_=s.substring(r+d),f=parseFloat(_)*p),y=g+h,v=f+c,{easting:y,northing:v,zoneLetter:a,zoneNumber:o,accuracy:p}}function Ust(s,t){for(var e=qL.charCodeAt(t-1),i=1e5,n=!1;e!==s.charCodeAt(0);){if(e++,e===mi&&e++,e===tn&&e++,e>Ru){if(n)throw"Bad character: "+s;e=vh,n=!0}i+=1e5}return i}function Bst(s,t){if(s>"V")throw"MGRSPoint given invalid Northing "+s;for(var e=ZL.charCodeAt(t-1),i=0,n=!1;e!==s.charCodeAt(0);){if(e++,e===mi&&e++,e===tn&&e++,e>Tu){if(n)throw"Bad character: "+s;e=vh,n=!0}i+=1e5}return i}function Wst(s){var t;switch(s){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+s}function pc(s,t,e){if(!(this instanceof pc))return new pc(s,t,e);if(Array.isArray(s))this.x=s[0],this.y=s[1],this.z=s[2]||0;else if(typeof s=="object")this.x=s.x,this.y=s.y,this.z=s.z||0;else if(typeof s=="string"&&typeof t>"u"){var i=s.split(",");this.x=parseFloat(i[0],10),this.y=parseFloat(i[1],10),this.z=parseFloat(i[2],10)||0}else this.x=s,this.y=t,this.z=e||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}pc.fromMGRS=function(s){return new pc(KL(s))};pc.prototype.toMGRS=function(s){return HL([this.x,this.y],s)};var Xst=1,Vst=.25,wb=.046875,Eb=.01953125,Sb=.01068115234375,Yst=.75,qst=.46875,Zst=.013020833333333334,Hst=.007120768229166667,Kst=.3645833333333333,Jst=.005696614583333333,Qst=.3076171875;function tO(s){var t=[];t[0]=Xst-s*(Vst+s*(wb+s*(Eb+s*Sb))),t[1]=s*(Yst-s*(wb+s*(Eb+s*Sb)));var e=s*s;return t[2]=e*(qst-s*(Zst+s*Hst)),e*=s,t[3]=e*(Kst-s*Jst),t[4]=e*s*Qst,t}function E0(s,t,e,i){return e*=t,t*=t,i[0]*s-e*(i[1]+t*(i[2]+t*(i[3]+t*i[4])))}var tit=20;function eO(s,t,e){for(var i=1/(1-t),n=s,r=tit;r;--r){var o=Math.sin(n),a=1-t*o*o;if(a=(E0(n,o,Math.cos(n),e)-s)*(a*Math.sqrt(a))*i,n-=a,Math.abs(a)tt?Math.tan(e):0,f=Math.pow(g,2),p=Math.pow(f,2);n=1-this.es*Math.pow(a,2),h=h/Math.sqrt(n);var m=E0(e,a,l,this.en);r=this.a*(this.k0*h*(1+c/6*(1-f+u+c/20*(5-18*f+p+14*u-58*f*u+c/42*(61+179*p-p*f-479*f)))))+this.x0,o=this.a*(this.k0*(m-this.ml0+a*i*h/2*(1+c/12*(5-f+9*u+4*d+c/30*(61+p-58*f+270*u-330*f*u+c/56*(1385+543*p-p*f-3111*f))))))+this.y0}else{var _=l*Math.sin(i);if(Math.abs(Math.abs(_)-1)=1){if(_-1>tt)return 93;o=0}else o=Math.acos(o);e<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return s.x=r,s.y=o,s}function iit(s){var t,e,i,n,r=(s.x-this.x0)*(1/this.a),o=(s.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+o/this.k0,e=eO(t,this.es,this.en),Math.abs(e)tt?Math.tan(e):0,c=this.ep2*Math.pow(l,2),u=Math.pow(c,2),d=Math.pow(h,2),g=Math.pow(d,2);t=1-this.es*Math.pow(a,2);var f=r*Math.sqrt(t)/this.k0,p=Math.pow(f,2);t=t*h,i=e-t*p/(1-this.es)*.5*(1-p/12*(5+3*d-9*c*d+c-4*u-p/30*(61+90*d-252*c*d+45*g+46*c-p/56*(1385+3633*d+4095*g+1574*g*d)))),n=rt(this.long0+f*(1-p/6*(1+2*d+c-p/20*(5+28*d+24*g+8*c*d+6*c-p/42*(61+662*d+1320*g+720*g*d))))/l)}else i=K*kg(o),n=0;else{var m=Math.exp(r/this.k0),_=.5*(m-1/m),y=this.lat0+o/this.k0,v=Math.cos(y);t=Math.sqrt((1-Math.pow(v,2))/(1+Math.pow(_,2))),i=Math.asin(t),o<0&&(i=-i),_===0&&v===0?n=0:n=rt(Math.atan2(_,v)+this.long0)}return s.x=n,s.y=i,s}var nit=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const Bf={init:eit,forward:sit,inverse:iit,names:nit};function sO(s){var t=Math.exp(s);return t=(t-1/t)/2,t}function on(s,t){s=Math.abs(s),t=Math.abs(t);var e=Math.max(s,t),i=Math.min(s,t)/(e||1);return e*Math.sqrt(1+Math.pow(i,2))}function rit(s){var t=1+s,e=t-1;return e===0?s:s*Math.log(t)/e}function oit(s){var t=Math.abs(s);return t=rit(t*(1+t/(on(1,t)+1))),s<0?-t:t}function jw(s,t){for(var e=2*Math.cos(2*t),i=s.length-1,n=s[i],r=0,o;--i>=0;)o=-r+e*n+s[i],r=n,n=o;return t+o*Math.sin(2*t)}function ait(s,t){for(var e=2*Math.cos(t),i=s.length-1,n=s[i],r=0,o;--i>=0;)o=-r+e*n+s[i],r=n,n=o;return Math.sin(t)*o}function lit(s){var t=Math.exp(s);return t=(t+1/t)/2,t}function iO(s,t,e){for(var i=Math.sin(t),n=Math.cos(t),r=sO(e),o=lit(e),a=2*n*o,l=-2*i*r,h=s.length-1,c=s[h],u=0,d=0,g=0,f,p;--h>=0;)f=d,p=u,d=c,u=g,c=-f+a*d-l*u+s[h],g=-p+l*d+a*u;return a=i*o,l=n*r,[a*c-l*g,a*g+l*c]}function hit(){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&&(Bf.init.apply(this),this.forward=Bf.forward,this.inverse=Bf.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 s=this.es/(1+Math.sqrt(1-this.es)),t=s/(2-s),e=t;this.cgb[0]=t*(2+t*(-2/3+t*(-2+t*(116/45+t*(26/45+t*(-2854/675)))))),this.cbg[0]=t*(-2+t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))),e=e*t,this.cgb[1]=e*(7/3+t*(-8/5+t*(-227/45+t*(2704/315+t*(2323/945))))),this.cbg[1]=e*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),e=e*t,this.cgb[2]=e*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=e*(-26/15+t*(34/21+t*(8/5+t*(-12686/2835)))),e=e*t,this.cgb[3]=e*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=e*(1237/630+t*(-12/5+t*(-24832/14175))),e=e*t,this.cgb[4]=e*(4174/315+t*(-144838/6237)),this.cbg[4]=e*(-734/315+t*(109598/31185)),e=e*t,this.cgb[5]=e*(601676/22275),this.cbg[5]=e*(444337/155925),e=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+e*(1/4+e*(1/64+e/256))),this.utg[0]=t*(-.5+t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=e*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=e*(13/48+t*(-3/5+t*(557/1440+t*(281/630+t*(-1983433/1935360))))),e=e*t,this.utg[2]=e*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=e*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),e=e*t,this.utg[3]=e*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=e*(49561/161280+t*(-179/168+t*(6601661/7257600))),e=e*t,this.utg[4]=e*(-4583/161280+t*(108847/3991680)),this.gtu[4]=e*(34729/80640+t*(-3418889/1995840)),e=e*t,this.utg[5]=e*(-20648693/638668800),this.gtu[5]=e*(212378941/319334400);var i=jw(this.cbg,this.lat0);this.Zb=-this.Qn*(i+ait(this.gtu,2*i))}function cit(s){var t=rt(s.x-this.long0),e=s.y;e=jw(this.cbg,e);var i=Math.sin(e),n=Math.cos(e),r=Math.sin(t),o=Math.cos(t);e=Math.atan2(i,o*n),t=Math.atan2(r*n,on(i,n*o)),t=oit(Math.tan(t));var a=iO(this.gtu,2*e,2*t);e=e+a[0],t=t+a[1];var l,h;return Math.abs(t)<=2.623395162778?(l=this.a*(this.Qn*t)+this.x0,h=this.a*(this.Qn*e+this.Zb)+this.y0):(l=1/0,h=1/0),s.x=l,s.y=h,s}function uit(s){var t=(s.x-this.x0)*(1/this.a),e=(s.y-this.y0)*(1/this.a);e=(e-this.Zb)/this.Qn,t=t/this.Qn;var i,n;if(Math.abs(t)<=2.623395162778){var r=iO(this.utg,2*e,2*t);e=e+r[0],t=t+r[1],t=Math.atan(sO(t));var o=Math.sin(e),a=Math.cos(e),l=Math.sin(t),h=Math.cos(t);e=Math.atan2(o*h,on(l,h*a)),t=Math.atan2(l,h*a),i=rt(t+this.long0),n=jw(this.cgb,e)}else i=1/0,n=1/0;return s.x=i,s.y=n,s}var dit=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const Wf={init:hit,forward:cit,inverse:uit,names:dit};function git(s,t){if(s===void 0){if(s=Math.floor((rt(t)+Math.PI)*30/Math.PI)+1,s<0)return 0;if(s>60)return 60}return s}var fit="etmerc";function pit(){var s=git(this.zone,this.long0);if(s===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(s)-183)*Ls,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Wf.init.apply(this),this.forward=Wf.forward,this.inverse=Wf.inverse}var mit=["Universal Transverse Mercator System","utm"];const _it={init:pit,names:mit,dependsOn:fit};function zw(s,t){return Math.pow((1-s)/(1+s),t)}var yit=20;function xit(){var s=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*s*s),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(s/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+ye)/(Math.pow(Math.tan(.5*this.lat0+ye),this.C)*zw(this.e*s,this.ratexp))}function vit(s){var t=s.x,e=s.y;return s.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*e+ye),this.C)*zw(this.e*Math.sin(e),this.ratexp))-K,s.x=this.C*t,s}function wit(s){for(var t=1e-14,e=s.x/this.C,i=s.y,n=Math.pow(Math.tan(.5*i+ye)/this.K,1/this.C),r=yit;r>0&&(i=2*Math.atan(n*zw(this.e*Math.sin(s.y),-.5*this.e))-K,!(Math.abs(i-s.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)<=tt&&Math.abs(Math.cos(this.lat_ts))>tt&&(this.k0=.5*this.cons*wr(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Gn(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=wr(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-K,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Pit(s){var t=s.x,e=s.y,i=Math.sin(e),n=Math.cos(e),r,o,a,l,h,c,u=rt(t-this.long0);return Math.abs(Math.abs(t-this.long0)-Math.PI)<=tt&&Math.abs(e+this.lat0)<=tt?(s.x=NaN,s.y=NaN,s):this.sphere?(r=2*this.k0/(1+this.sinlat0*i+this.coslat0*n*Math.cos(u)),s.x=this.a*r*n*Math.sin(u)+this.x0,s.y=this.a*r*(this.coslat0*i-this.sinlat0*n*Math.cos(u))+this.y0,s):(o=2*Math.atan(this.ssfn_(e,i,this.e))-K,l=Math.cos(o),a=Math.sin(o),Math.abs(this.coslat0)<=tt?(h=Gn(this.e,e*this.con,this.con*i),c=2*this.a*this.k0*h/this.cons,s.x=this.x0+c*Math.sin(t-this.long0),s.y=this.y0-this.con*c*Math.cos(t-this.long0),s):(Math.abs(this.sinlat0)0?t=rt(this.long0+Math.atan2(s.x,-1*s.y)):t=rt(this.long0+Math.atan2(s.x,s.y)):t=rt(this.long0+Math.atan2(s.x*Math.sin(a),o*this.coslat0*Math.cos(a)-s.y*this.sinlat0*Math.sin(a))),s.x=t,s.y=e,s)}else if(Math.abs(this.coslat0)<=tt){if(o<=tt)return e=this.lat0,t=this.long0,s.x=t,s.y=e,s;s.x*=this.con,s.y*=this.con,i=o*this.cons/(2*this.a*this.k0),e=this.con*Bd(this.e,i),t=this.con*rt(this.con*this.long0+Math.atan2(s.x,-1*s.y))}else n=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,o<=tt?r=this.X0:(r=Math.asin(Math.cos(n)*this.sinX0+s.y*Math.sin(n)*this.cosX0/o),t=rt(this.long0+Math.atan2(s.x*Math.sin(n),o*this.cosX0*Math.cos(n)-s.y*this.sinX0*Math.sin(n)))),e=-1*Bd(this.e,Math.tan(.5*(K+r)));return s.x=t,s.y=e,s}var Lit=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const Oit={init:Iit,forward:Pit,inverse:Ait,names:Lit,ssfn_:Rit};function Fit(){var s=this.lat0;this.lambda0=this.long0;var t=Math.sin(s),e=this.a,i=this.rf,n=1/i,r=2*n-Math.pow(n,2),o=this.e=Math.sqrt(r);this.R=this.k0*e*Math.sqrt(1-r)/(1-r*Math.pow(t,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(s),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+s/2)),h=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*l+this.alpha*o/2*h}function Nit(s){var t=Math.log(Math.tan(Math.PI/4-s.y/2)),e=this.e/2*Math.log((1+this.e*Math.sin(s.y))/(1-this.e*Math.sin(s.y))),i=-this.alpha*(t+e)+this.K,n=2*(Math.atan(Math.exp(i))-Math.PI/4),r=this.alpha*(s.x-this.lambda0),o=Math.atan(Math.sin(r)/(Math.sin(this.b0)*Math.tan(n)+Math.cos(this.b0)*Math.cos(r))),a=Math.asin(Math.cos(this.b0)*Math.sin(n)-Math.sin(this.b0)*Math.cos(n)*Math.cos(r));return s.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,s.x=this.R*o+this.x0,s}function Dit(s){for(var t=s.x-this.x0,e=s.y-this.y0,i=t/this.R,n=2*(Math.atan(Math.exp(e/this.R))-Math.PI/4),r=Math.asin(Math.cos(this.b0)*Math.sin(n)+Math.sin(this.b0)*Math.cos(n)*Math.cos(i)),o=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(n))),a=this.lambda0+o/this.alpha,l=0,h=r,c=-1e3,u=0;Math.abs(h-c)>1e-7;){if(++u>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+r/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(h))/2)),c=h,h=2*Math.atan(Math.exp(l))-Math.PI/2}return s.x=a,s.y=h,s}var kit=["somerc"];const $it={init:Fit,forward:Nit,inverse:Dit,names:kit};var sh=1e-7;function Git(s){var t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],e=typeof s.PROJECTION=="object"?Object.keys(s.PROJECTION)[0]:s.PROJECTION;return"no_uoff"in s||"no_off"in s||t.indexOf(e)!==-1}function jit(){var s,t,e,i,n,r,o,a,l,h,c=0,u,d=0,g=0,f=0,p=0,m=0,_=0;this.no_off=Git(this),this.no_rot="no_rot"in this;var y=!1;"alpha"in this&&(y=!0);var v=!1;if("rectified_grid_angle"in this&&(v=!0),y&&(_=this.alpha),v&&(c=this.rectified_grid_angle*Ls),y||v)d=this.longc;else if(g=this.long1,p=this.lat1,f=this.long2,m=this.lat2,Math.abs(p-m)<=sh||(s=Math.abs(p))<=sh||Math.abs(s-K)<=sh||Math.abs(Math.abs(this.lat0)-K)<=sh||Math.abs(Math.abs(m)-K)<=sh)throw new Error;var S=1-this.es;t=Math.sqrt(S),Math.abs(this.lat0)>tt?(a=Math.sin(this.lat0),e=Math.cos(this.lat0),s=1-this.es*a*a,this.B=e*e,this.B=Math.sqrt(1+this.es*this.B*this.B/S),this.A=this.B*this.k0*t/s,i=this.B*t/(e*Math.sqrt(s)),n=i*i-1,n<=0?n=0:(n=Math.sqrt(n),this.lat0<0&&(n=-n)),this.E=n+=i,this.E*=Math.pow(Gn(this.e,this.lat0,a),this.B)):(this.B=1/t,this.A=this.k0,this.E=i=n=1),y||v?(y?(u=Math.asin(Math.sin(_)/i),v||(c=_)):(u=c,_=Math.asin(i*Math.sin(u))),this.lam0=d-Math.asin(.5*(n-1/n)*Math.tan(u))/this.B):(r=Math.pow(Gn(this.e,p,Math.sin(p)),this.B),o=Math.pow(Gn(this.e,m,Math.sin(m)),this.B),n=this.E/r,l=(o-r)/(o+r),h=this.E*this.E,h=(h-o*r)/(h+o*r),s=g-f,s<-Math.pi?f-=zd:s>Math.pi&&(f+=zd),this.lam0=rt(.5*(g+f)-Math.atan(h*Math.tan(.5*this.B*(g-f))/l)/this.B),u=Math.atan(2*Math.sin(this.B*rt(g-this.lam0))/(n-1/n)),c=_=Math.asin(i*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(c),this.cosrot=Math.cos(c),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(i*i-1)/Math.cos(_))),this.lat0<0&&(this.u_0=-this.u_0)),n=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(ye-n)),this.v_pole_s=this.ArB*Math.log(Math.tan(ye+n))}function zit(s){var t={},e,i,n,r,o,a,l,h;if(s.x=s.x-this.lam0,Math.abs(Math.abs(s.y)-K)>tt){if(o=this.E/Math.pow(Gn(this.e,s.y,Math.sin(s.y)),this.B),a=1/o,e=.5*(o-a),i=.5*(o+a),r=Math.sin(this.B*s.x),n=(e*this.singam-r*this.cosgam)/i,Math.abs(Math.abs(n)-1)0?this.v_pole_n:this.v_pole_s,l=this.ArB*s.y;return this.no_rot?(t.x=l,t.y=h):(l-=this.u_0,t.x=h*this.cosrot+l*this.sinrot,t.y=l*this.cosrot-h*this.sinrot),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function Uit(s){var t,e,i,n,r,o,a,l={};if(s.x=(s.x-this.x0)*(1/this.a),s.y=(s.y-this.y0)*(1/this.a),this.no_rot?(e=s.y,t=s.x):(e=s.x*this.cosrot-s.y*this.sinrot,t=s.y*this.cosrot+s.x*this.sinrot+this.u_0),i=Math.exp(-this.BrA*e),n=.5*(i-1/i),r=.5*(i+1/i),o=Math.sin(this.BrA*t),a=(o*this.cosgam+n*this.singam)/r,Math.abs(Math.abs(a)-1)tt?this.ns=Math.log(i/a)/Math.log(n/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=i/(this.ns*Math.pow(n,this.ns)),this.rh=this.a*this.f0*Math.pow(h,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function Vit(s){var t=s.x,e=s.y;Math.abs(2*Math.abs(e)-Math.PI)<=tt&&(e=kg(e)*(K-2*tt));var i=Math.abs(Math.abs(e)-K),n,r;if(i>tt)n=Gn(this.e,e,Math.sin(e)),r=this.a*this.f0*Math.pow(n,this.ns);else{if(i=e*this.ns,i<=0)return null;r=0}var o=this.ns*rt(t-this.long0);return s.x=this.k0*(r*Math.sin(o))+this.x0,s.y=this.k0*(this.rh-r*Math.cos(o))+this.y0,s}function Yit(s){var t,e,i,n,r,o=(s.x-this.x0)/this.k0,a=this.rh-(s.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(o*o+a*a),e=1):(t=-Math.sqrt(o*o+a*a),e=-1);var l=0;if(t!==0&&(l=Math.atan2(e*o,e*a)),t!==0||this.ns>0){if(e=1/this.ns,i=Math.pow(t/(this.a*this.f0),e),n=Bd(this.e,i),n===-9999)return null}else n=-K;return r=rt(l/this.ns+this.long0),s.x=r,s.y=n,s}var qit=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const Zit={init:Xit,forward:Vit,inverse:Yit,names:qit};function Hit(){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 Kit(s){var t,e,i,n,r,o,a,l=s.x,h=s.y,c=rt(l-this.long0);return t=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),e=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/t)-this.s45),i=-c*this.alfa,n=Math.asin(Math.cos(this.ad)*Math.sin(e)+Math.sin(this.ad)*Math.cos(e)*Math.cos(i)),r=Math.asin(Math.cos(e)*Math.sin(i)/Math.cos(n)),o=this.n*r,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(n/2+this.s45),this.n),s.y=a*Math.cos(o)/1,s.x=a*Math.sin(o)/1,this.czech||(s.y*=-1,s.x*=-1),s}function Jit(s){var t,e,i,n,r,o,a,l,h=s.x;s.x=s.y,s.y=h,this.czech||(s.y*=-1,s.x*=-1),o=Math.sqrt(s.x*s.x+s.y*s.y),r=Math.atan2(s.y,s.x),n=r/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(n)),e=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(t)),s.x=this.long0-e/this.alfa,a=t,l=0;var c=0;do s.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-s.y)<1e-10&&(l=1),a=s.y,c+=1;while(l===0&&c<15);return c>=15?null:s}var Qit=["Krovak","krovak"];const tnt={init:Hit,forward:Kit,inverse:Jit,names:Qit};function li(s,t,e,i,n){return s*n-t*Math.sin(2*n)+e*Math.sin(4*n)-i*Math.sin(6*n)}function $g(s){return 1-.25*s*(1+s/16*(3+1.25*s))}function Gg(s){return .375*s*(1+.25*s*(1+.46875*s))}function jg(s){return .05859375*s*s*(1+.75*s)}function zg(s){return s*s*s*(35/3072)}function mc(s,t,e){var i=t*e;return s/Math.sqrt(1-i*i)}function kc(s){return Math.abs(s)1e-7?(e=s*t,(1-s*s)*(t/(1-e*e)-.5/s*Math.log((1-e)/(1+e)))):2*t}var ont=1,ant=2,lnt=3,hnt=4;function cnt(){var s=Math.abs(this.lat0);if(Math.abs(s-K)0){var t;switch(this.qp=ta(this.e,1),this.mmf=.5/(1-this.es),this.apa=xnt(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),t=Math.sin(this.lat0),this.sinb1=ta(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*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 unt(s){var t,e,i,n,r,o,a,l,h,c,u=s.x,d=s.y;if(u=rt(u-this.long0),this.sphere){if(r=Math.sin(d),c=Math.cos(d),i=Math.cos(u),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e=this.mode===this.EQUIT?1+c*i:1+this.sinph0*r+this.cosph0*c*i,e<=tt)return null;e=Math.sqrt(2/e),t=e*c*Math.sin(u),e*=this.mode===this.EQUIT?r:this.cosph0*r-this.sinph0*c*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(d+this.lat0)=0?(t=(h=Math.sqrt(o))*n,e=i*(this.mode===this.S_POLE?h:-h)):t=e=0;break}}return s.x=this.a*t+this.x0,s.y=this.a*e+this.y0,s}function dnt(s){s.x-=this.x0,s.y-=this.y0;var t=s.x/this.a,e=s.y/this.a,i,n,r,o,a,l,h;if(this.sphere){var c=0,u,d=0;if(u=Math.sqrt(t*t+e*e),n=u*.5,n>1)return null;switch(n=2*Math.asin(n),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(d=Math.sin(n),c=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(u)<=tt?0:Math.asin(e*d/u),t*=d,e=c*u;break;case this.OBLIQ:n=Math.abs(u)<=tt?this.lat0:Math.asin(c*this.sinph0+e*d*this.cosph0/u),t*=d*this.cosph0,e=(c-Math.sin(n)*this.sinph0)*u;break;case this.N_POLE:e=-e,n=K-n;break;case this.S_POLE:n-=K;break}i=e===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(t,e)}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t/=this.dd,e*=this.dd,l=Math.sqrt(t*t+e*e),l1&&(s=s>1?1:-1),Math.asin(s)}function Snt(){Math.abs(this.lat1+this.lat2)tt?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 Mnt(s){var t=s.x,e=s.y;this.sin_phi=Math.sin(e),this.cos_phi=Math.cos(e);var i=ta(this.e3,this.sin_phi),n=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,r=this.ns0*rt(t-this.long0),o=n*Math.sin(r)+this.x0,a=this.rh-n*Math.cos(r)+this.y0;return s.x=o,s.y=a,s}function bnt(s){var t,e,i,n,r,o;return s.x-=this.x0,s.y=this.rh-s.y+this.y0,this.ns0>=0?(t=Math.sqrt(s.x*s.x+s.y*s.y),i=1):(t=-Math.sqrt(s.x*s.x+s.y*s.y),i=-1),n=0,t!==0&&(n=Math.atan2(i*s.x,i*s.y)),i=t*this.ns0/this.a,this.sphere?o=Math.asin((this.c-i*i)/(2*this.ns0)):(e=(this.c-i*i)/this.ns0,o=this.phi1z(this.e3,e)),r=rt(n/this.ns0+this.long0),s.x=r,s.y=o,s}function Cnt(s,t){var e,i,n,r,o,a=ua(.5*t);if(s0||Math.abs(o)<=tt?(a=this.x0+this.a*r*e*Math.sin(i)/o,l=this.y0+this.a*r*(this.cos_p14*t-this.sin_p14*e*n)/o):(a=this.x0+this.infinity_dist*e*Math.sin(i),l=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*e*n)),s.x=a,s.y=l,s}function Ant(s){var t,e,i,n,r,o;return s.x=(s.x-this.x0)/this.a,s.y=(s.y-this.y0)/this.a,s.x/=this.k0,s.y/=this.k0,(t=Math.sqrt(s.x*s.x+s.y*s.y))?(n=Math.atan2(t,this.rc),e=Math.sin(n),i=Math.cos(n),o=ua(i*this.sin_p14+s.y*e*this.cos_p14/t),r=Math.atan2(s.x*e,t*this.cos_p14*i-s.y*this.sin_p14*e),r=rt(this.long0+r)):(o=this.phic0,r=0),s.x=r,s.y=o,s}var Lnt=["gnom"];const Ont={init:Int,forward:Pnt,inverse:Ant,names:Lnt};function Fnt(s,t){var e=1-(1-s*s)/(2*s)*Math.log((1-s)/(1+s));if(Math.abs(Math.abs(t)-e)<1e-6)return t<0?-1*K:K;for(var i=Math.asin(.5*t),n,r,o,a,l=0;l<30;l++)if(r=Math.sin(i),o=Math.cos(i),a=s*r,n=Math.pow(1-a*a,2)/(2*o)*(t/(1-s*s)-r/(1-a*a)+.5/s*Math.log((1-a)/(1+a))),i+=n,Math.abs(n)<=1e-10)return i;return NaN}function Nnt(){this.sphere||(this.k0=wr(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Dnt(s){var t=s.x,e=s.y,i,n,r=rt(t-this.long0);if(this.sphere)i=this.x0+this.a*r*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(e)/Math.cos(this.lat_ts);else{var o=ta(this.e,Math.sin(e));i=this.x0+this.a*this.k0*r,n=this.y0+this.a*o*.5/this.k0}return s.x=i,s.y=n,s}function knt(s){s.x-=this.x0,s.y-=this.y0;var t,e;return this.sphere?(t=rt(this.long0+s.x/this.a/Math.cos(this.lat_ts)),e=Math.asin(s.y/this.a*Math.cos(this.lat_ts))):(e=Fnt(this.e,2*s.y*this.k0/this.a),t=rt(this.long0+s.x/(this.a*this.k0))),s.x=t,s.y=e,s}var $nt=["cea"];const Gnt={init:Nnt,forward:Dnt,inverse:knt,names:$nt};function jnt(){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 znt(s){var t=s.x,e=s.y,i=rt(t-this.long0),n=kc(e-this.lat0);return s.x=this.x0+this.a*i*this.rc,s.y=this.y0+this.a*n,s}function Unt(s){var t=s.x,e=s.y;return s.x=rt(this.long0+(t-this.x0)/(this.a*this.rc)),s.y=kc(this.lat0+(e-this.y0)/this.a),s}var Bnt=["Equirectangular","Equidistant_Cylindrical","eqc"];const Wnt={init:jnt,forward:znt,inverse:Unt,names:Bnt};var Mb=20;function Xnt(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=$g(this.es),this.e1=Gg(this.es),this.e2=jg(this.es),this.e3=zg(this.es),this.ml0=this.a*li(this.e0,this.e1,this.e2,this.e3,this.lat0)}function Vnt(s){var t=s.x,e=s.y,i,n,r,o=rt(t-this.long0);if(r=o*Math.sin(e),this.sphere)Math.abs(e)<=tt?(i=this.a*o,n=-1*this.a*this.lat0):(i=this.a*Math.sin(r)/Math.tan(e),n=this.a*(kc(e-this.lat0)+(1-Math.cos(r))/Math.tan(e)));else if(Math.abs(e)<=tt)i=this.a*o,n=-1*this.ml0;else{var a=mc(this.a,this.e,Math.sin(e))/Math.tan(e);i=a*Math.sin(r),n=this.a*li(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+a*(1-Math.cos(r))}return s.x=i+this.x0,s.y=n+this.y0,s}function Ynt(s){var t,e,i,n,r,o,a,l,h;if(i=s.x-this.x0,n=s.y-this.y0,this.sphere)if(Math.abs(n+this.a*this.lat0)<=tt)t=rt(i/this.a+this.long0),e=0;else{o=this.lat0+n/this.a,a=i*i/this.a/this.a+o*o,l=o;var c;for(r=Mb;r;--r)if(c=Math.tan(l),h=-1*(o*(l*c+1)-l-.5*(l*l+a)*c)/((l-o)/c-1),l+=h,Math.abs(h)<=tt){e=l;break}t=rt(this.long0+Math.asin(i*Math.tan(l)/this.a)/Math.sin(e))}else if(Math.abs(n+this.ml0)<=tt)e=0,t=rt(this.long0+i/this.a);else{o=(this.ml0+n)/this.a,a=i*i/this.a/this.a+o*o,l=o;var u,d,g,f,p;for(r=Mb;r;--r)if(p=this.e*Math.sin(l),u=Math.sqrt(1-p*p)*Math.tan(l),d=this.a*li(this.e0,this.e1,this.e2,this.e3,l),g=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),f=d/this.a,h=(o*(u*f+1)-f-.5*u*(f*f+a))/(this.es*Math.sin(2*l)*(f*f+a-2*o*f)/(4*u)+(o-f)*(u*g-2/Math.sin(2*l))-g),l-=h,Math.abs(h)<=tt){e=l;break}u=Math.sqrt(1-this.es*Math.pow(Math.sin(e),2))*Math.tan(e),t=rt(this.long0+Math.asin(i*u/this.a)/Math.sin(e))}return s.x=t,s.y=e,s}var qnt=["Polyconic","poly"];const Znt={init:Xnt,forward:Vnt,inverse:Ynt,names:qnt};function Hnt(){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 Knt(s){var t,e=s.x,i=s.y,n=i-this.lat0,r=e-this.long0,o=n/Ju*1e-5,a=r,l=1,h=0;for(t=1;t<=10;t++)l=l*o,h=h+this.A[t]*l;var c=h,u=a,d=1,g=0,f,p,m=0,_=0;for(t=1;t<=6;t++)f=d*c-g*u,p=g*c+d*u,d=f,g=p,m=m+this.B_re[t]*d-this.B_im[t]*g,_=_+this.B_im[t]*d+this.B_re[t]*g;return s.x=_*this.a+this.x0,s.y=m*this.a+this.y0,s}function Jnt(s){var t,e=s.x,i=s.y,n=e-this.x0,r=i-this.y0,o=r/this.a,a=n/this.a,l=1,h=0,c,u,d=0,g=0;for(t=1;t<=6;t++)c=l*o-h*a,u=h*o+l*a,l=c,h=u,d=d+this.C_re[t]*l-this.C_im[t]*h,g=g+this.C_im[t]*l+this.C_re[t]*h;for(var f=0;f.999999999999&&(e=.999999999999),t=Math.asin(e);var i=rt(this.long0+s.x/(.900316316158*this.a*Math.cos(t)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),e=(2*t+Math.sin(2*t))/Math.PI,Math.abs(e)>1&&(e=1);var n=Math.asin(e);return s.x=i,s.y=n,s}var prt=["Mollweide","moll"];const mrt={init:drt,forward:grt,inverse:frt,names:prt};function _rt(){Math.abs(this.lat1+this.lat2)=0?(e=Math.sqrt(s.x*s.x+s.y*s.y),t=1):(e=-Math.sqrt(s.x*s.x+s.y*s.y),t=-1);var r=0;if(e!==0&&(r=Math.atan2(t*s.x,t*s.y)),this.sphere)return n=rt(this.long0+r/this.ns),i=kc(this.g-e/this.a),s.x=n,s.y=i,s;var o=this.g-e/this.a;return i=im(o,this.e0,this.e1,this.e2,this.e3),n=rt(this.long0+r/this.ns),s.x=n,s.y=i,s}var vrt=["Equidistant_Conic","eqdc"];const wrt={init:_rt,forward:yrt,inverse:xrt,names:vrt};function Ert(){this.R=this.a}function Srt(s){var t=s.x,e=s.y,i=rt(t-this.long0),n,r;Math.abs(e)<=tt&&(n=this.x0+this.R*i,r=this.y0);var o=ua(2*Math.abs(e/Math.PI));(Math.abs(i)<=tt||Math.abs(Math.abs(e)-K)<=tt)&&(n=this.x0,e>=0?r=this.y0+Math.PI*this.R*Math.tan(.5*o):r=this.y0+Math.PI*this.R*-Math.tan(.5*o));var a=.5*Math.abs(Math.PI/i-i/Math.PI),l=a*a,h=Math.sin(o),c=Math.cos(o),u=c/(h+c-1),d=u*u,g=u*(2/h-1),f=g*g,p=Math.PI*this.R*(a*(u-f)+Math.sqrt(l*(u-f)*(u-f)-(f+l)*(d-f)))/(f+l);i<0&&(p=-p),n=this.x0+p;var m=l+u;return p=Math.PI*this.R*(g*m-a*Math.sqrt((f+l)*(l+1)-m*m))/(f+l),e>=0?r=this.y0+p:r=this.y0-p,s.x=n,s.y=r,s}function Mrt(s){var t,e,i,n,r,o,a,l,h,c,u,d,g;return s.x-=this.x0,s.y-=this.y0,u=Math.PI*this.R,i=s.x/u,n=s.y/u,r=i*i+n*n,o=-Math.abs(n)*(1+r),a=o-2*n*n+i*i,l=-2*o+1+2*n*n+r*r,g=n*n/l+(2*a*a*a/l/l/l-9*o*a/l/l)/27,h=(o-a*a/3/l)/l,c=2*Math.sqrt(-h/3),u=3*g/h/c,Math.abs(u)>1&&(u>=0?u=1:u=-1),d=Math.acos(u)/3,s.y>=0?e=(-c*Math.cos(d+Math.PI/3)-a/3/l)*Math.PI:e=-(-c*Math.cos(d+Math.PI/3)-a/3/l)*Math.PI,Math.abs(i)2*K*this.a?void 0:(e=t/this.a,i=Math.sin(e),n=Math.cos(e),r=this.long0,Math.abs(t)<=tt?o=this.lat0:(o=ua(n*this.sin_p12+s.y*i*this.cos_p12/t),a=Math.abs(this.lat0)-K,Math.abs(a)<=tt?this.lat0>=0?r=rt(this.long0+Math.atan2(s.x,-s.y)):r=rt(this.long0-Math.atan2(-s.x,s.y)):r=rt(this.long0+Math.atan2(s.x*i,t*this.cos_p12*n-s.y*this.sin_p12*i))),s.x=r,s.y=o,s)):(l=$g(this.es),h=Gg(this.es),c=jg(this.es),u=zg(this.es),Math.abs(this.sin_p12-1)<=tt?(d=this.a*li(l,h,c,u,K),t=Math.sqrt(s.x*s.x+s.y*s.y),g=d-t,o=im(g/this.a,l,h,c,u),r=rt(this.long0+Math.atan2(s.x,-1*s.y)),s.x=r,s.y=o,s):Math.abs(this.sin_p12+1)<=tt?(d=this.a*li(l,h,c,u,K),t=Math.sqrt(s.x*s.x+s.y*s.y),g=t-d,o=im(g/this.a,l,h,c,u),r=rt(this.long0+Math.atan2(s.x,s.y)),s.x=r,s.y=o,s):(t=Math.sqrt(s.x*s.x+s.y*s.y),m=Math.atan2(s.x,s.y),f=mc(this.a,this.e,this.sin_p12),_=Math.cos(m),y=this.e*this.cos_p12*_,v=-y*y/(1-this.es),S=3*this.es*(1-v)*this.sin_p12*this.cos_p12*_/(1-this.es),w=t/f,C=w-v*(1+v)*Math.pow(w,3)/6-S*(1+3*v)*Math.pow(w,4)/24,M=1-v*C*C/2-w*C*C*C/6,p=Math.asin(this.sin_p12*Math.cos(C)+this.cos_p12*Math.sin(C)*_),r=rt(this.long0+Math.asin(Math.sin(m)*Math.sin(C)/Math.cos(p))),T=Math.sin(p),o=Math.atan2((T-this.es*M*this.sin_p12)*Math.tan(p),T*(1-this.es)),s.x=r,s.y=o,s))}var Prt=["Azimuthal_Equidistant","aeqd"];const Art={init:Trt,forward:Rrt,inverse:Irt,names:Prt};function Lrt(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Ort(s){var t,e,i,n,r,o,a,l,h=s.x,c=s.y;return i=rt(h-this.long0),t=Math.sin(c),e=Math.cos(c),n=Math.cos(i),o=this.sin_p14*t+this.cos_p14*e*n,r=1,(o>0||Math.abs(o)<=tt)&&(a=this.a*r*e*Math.sin(i),l=this.y0+this.a*r*(this.cos_p14*t-this.sin_p14*e*n)),s.x=a,s.y=l,s}function Frt(s){var t,e,i,n,r,o,a;return s.x-=this.x0,s.y-=this.y0,t=Math.sqrt(s.x*s.x+s.y*s.y),e=ua(t/this.a),i=Math.sin(e),n=Math.cos(e),o=this.long0,Math.abs(t)<=tt?(a=this.lat0,s.x=o,s.y=a,s):(a=ua(n*this.sin_p14+s.y*i*this.cos_p14/t),r=Math.abs(this.lat0)-K,Math.abs(r)<=tt?(this.lat0>=0?o=rt(this.long0+Math.atan2(s.x,-s.y)):o=rt(this.long0-Math.atan2(-s.x,s.y)),s.x=o,s.y=a,s):(o=rt(this.long0+Math.atan2(s.x*i,t*this.cos_p14*n-s.y*this.sin_p14*i)),s.x=o,s.y=a,s))}var Nrt=["ortho"];const Drt={init:Lrt,forward:Ort,inverse:Frt,names:Nrt};var Ue={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},xe={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function krt(){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>=K-ye/2?this.face=Ue.TOP:this.lat0<=-(K-ye/2)?this.face=Ue.BOTTOM:Math.abs(this.long0)<=ye?this.face=Ue.FRONT:Math.abs(this.long0)<=K+ye?this.face=this.long0>0?Ue.RIGHT:Ue.LEFT:this.face=Ue.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 $rt(s){var t={x:0,y:0},e,i,n,r,o,a,l={value:0};if(s.x-=this.long0,this.es!==0?e=Math.atan(this.one_minus_f_squared*Math.tan(s.y)):e=s.y,i=s.x,this.face===Ue.TOP)r=K-e,i>=ye&&i<=K+ye?(l.value=xe.AREA_0,n=i-K):i>K+ye||i<=-(K+ye)?(l.value=xe.AREA_1,n=i>0?i-es:i+es):i>-(K+ye)&&i<=-ye?(l.value=xe.AREA_2,n=i+K):(l.value=xe.AREA_3,n=i);else if(this.face===Ue.BOTTOM)r=K+e,i>=ye&&i<=K+ye?(l.value=xe.AREA_0,n=-i+K):i=-ye?(l.value=xe.AREA_1,n=-i):i<-ye&&i>=-(K+ye)?(l.value=xe.AREA_2,n=-i-K):(l.value=xe.AREA_3,n=i>0?-i+es:-i-es);else{var h,c,u,d,g,f,p;this.face===Ue.RIGHT?i=kh(i,+K):this.face===Ue.BACK?i=kh(i,+es):this.face===Ue.LEFT&&(i=kh(i,-K)),d=Math.sin(e),g=Math.cos(e),f=Math.sin(i),p=Math.cos(i),h=g*p,c=g*f,u=d,this.face===Ue.FRONT?(r=Math.acos(h),n=If(r,u,c,l)):this.face===Ue.RIGHT?(r=Math.acos(c),n=If(r,u,-h,l)):this.face===Ue.BACK?(r=Math.acos(-h),n=If(r,u,-c,l)):this.face===Ue.LEFT?(r=Math.acos(-c),n=If(r,u,h,l)):(r=n=0,l.value=xe.AREA_0)}return a=Math.atan(12/es*(n+Math.acos(Math.sin(n)*Math.cos(ye))-K)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(n))))),l.value===xe.AREA_1?a+=K:l.value===xe.AREA_2?a+=es:l.value===xe.AREA_3&&(a+=1.5*es),t.x=o*Math.cos(a),t.y=o*Math.sin(a),t.x=t.x*this.a+this.x0,t.y=t.y*this.a+this.y0,s.x=t.x,s.y=t.y,s}function Grt(s){var t={lam:0,phi:0},e,i,n,r,o,a,l,h,c,u={value:0};if(s.x=(s.x-this.x0)/this.a,s.y=(s.y-this.y0)/this.a,i=Math.atan(Math.sqrt(s.x*s.x+s.y*s.y)),e=Math.atan2(s.y,s.x),s.x>=0&&s.x>=Math.abs(s.y)?u.value=xe.AREA_0:s.y>=0&&s.y>=Math.abs(s.x)?(u.value=xe.AREA_1,e-=K):s.x<0&&-s.x>=Math.abs(s.y)?(u.value=xe.AREA_2,e=e<0?e+es:e-es):(u.value=xe.AREA_3,e+=K),c=es/12*Math.tan(e),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),n=Math.cos(e),r=Math.tan(i),l=1-n*n*r*r*(1-Math.cos(Math.atan(1/Math.cos(a)))),l<-1?l=-1:l>1&&(l=1),this.face===Ue.TOP)h=Math.acos(l),t.phi=K-h,u.value===xe.AREA_0?t.lam=a+K:u.value===xe.AREA_1?t.lam=a<0?a+es:a-es:u.value===xe.AREA_2?t.lam=a-K:t.lam=a;else if(this.face===Ue.BOTTOM)h=Math.acos(l),t.phi=h-K,u.value===xe.AREA_0?t.lam=-a+K:u.value===xe.AREA_1?t.lam=-a:u.value===xe.AREA_2?t.lam=-a-K:t.lam=a<0?-a-es:-a+es;else{var d,g,f;d=l,c=d*d,c>=1?f=0:f=Math.sqrt(1-c)*Math.sin(a),c+=f*f,c>=1?g=0:g=Math.sqrt(1-c),u.value===xe.AREA_1?(c=g,g=-f,f=c):u.value===xe.AREA_2?(g=-g,f=-f):u.value===xe.AREA_3&&(c=g,g=f,f=-c),this.face===Ue.RIGHT?(c=d,d=-g,g=c):this.face===Ue.BACK?(d=-d,g=-g):this.face===Ue.LEFT&&(c=d,d=g,g=-c),t.phi=Math.acos(-f)-K,t.lam=Math.atan2(g,d),this.face===Ue.RIGHT?t.lam=kh(t.lam,-K):this.face===Ue.BACK?t.lam=kh(t.lam,-es):this.face===Ue.LEFT&&(t.lam=kh(t.lam,+K))}if(this.es!==0){var p,m,_;p=t.phi<0?1:0,m=Math.tan(t.phi),_=this.b/Math.sqrt(m*m+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-_*_)/(this.one_minus_f*_)),p&&(t.phi=-t.phi)}return t.lam+=this.long0,s.x=t.lam,s.y=t.phi,s}function If(s,t,e,i){var n;return sye&&n<=K+ye?(i.value=xe.AREA_1,n-=K):n>K+ye||n<=-(K+ye)?(i.value=xe.AREA_2,n=n>=0?n-es:n+es):(i.value=xe.AREA_3,n+=K)),n}function kh(s,t){var e=s+t;return e<-es?e+=zd:e>+es&&(e-=zd),e}var jrt=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const zrt={init:krt,forward:$rt,inverse:Grt,names:jrt};var Ey=[[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]],Iu=[[-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]],nO=.8487,rO=1.3523,oO=ur/5,Urt=1/oO,wh=18,nm=function(s,t){return s[0]+t*(s[1]+t*(s[2]+t*s[3]))},Brt=function(s,t){return s[1]+t*(2*s[2]+t*3*s[3])};function Wrt(s,t,e,i){for(var n=t;i;--i){var r=s(n);if(n-=r,Math.abs(r)=wh&&(i=wh-1),e=ur*(e-Urt*i);var n={x:nm(Ey[i],e)*t,y:nm(Iu[i],e)};return s.y<0&&(n.y=-n.y),n.x=n.x*this.a*nO+this.x0,n.y=n.y*this.a*rO+this.y0,n}function Yrt(s){var t={x:(s.x-this.x0)/(this.a*nO),y:Math.abs(s.y-this.y0)/(this.a*rO)};if(t.y>=1)t.x/=Ey[wh][0],t.y=s.y<0?-K:K;else{var e=Math.floor(t.y*wh);for(e<0?e=0:e>=wh&&(e=wh-1);;)if(Iu[e][0]>t.y)--e;else if(Iu[e+1][0]<=t.y)++e;else break;var i=Iu[e],n=5*(t.y-i[0])/(Iu[e+1][0]-i[0]);n=Wrt(function(r){return(nm(i,r)-t.y)/Brt(i,r)},n,tt,100),t.x/=nm(Ey[e],n),t.y=(5*e+n)*Ls,s.y<0&&(t.y=-t.y)}return t.x=rt(t.x+this.long0),t}var qrt=["Robinson","robin"];const Zrt={init:Xrt,forward:Vrt,inverse:Yrt,names:qrt};function Hrt(){this.name="geocent"}function Krt(s){var t=XL(s,this.es,this.a);return t}function Jrt(s){var t=VL(s,this.es,this.a,this.b);return t}var Qrt=["Geocentric","geocentric","geocent","Geocent"];const tot={init:Hrt,forward:Krt,inverse:Jrt,names:Qrt};var Bs={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},lu={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 eot(){if(Object.keys(lu).forEach(function(e){if(typeof this[e]>"u")this[e]=lu[e].def;else{if(lu[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);lu[e].num&&(this[e]=parseFloat(this[e]))}lu[e].degrees&&(this[e]=this[e]*Ls)}.bind(this)),Math.abs(Math.abs(this.lat0)-K)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 s=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(s),this.sw=Math.sin(s)}function sot(s){s.x-=this.long0;var t=Math.sin(s.y),e=Math.cos(s.y),i=Math.cos(s.x),n,r;switch(this.mode){case Bs.OBLIQ:r=this.sinph0*t+this.cosph0*e*i;break;case Bs.EQUIT:r=e*i;break;case Bs.S_POLE:r=-t;break;case Bs.N_POLE:r=t;break}switch(r=this.pn1/(this.p-r),n=r*e*Math.sin(s.x),this.mode){case Bs.OBLIQ:r*=this.cosph0*t-this.sinph0*e*i;break;case Bs.EQUIT:r*=t;break;case Bs.N_POLE:r*=-(e*i);break;case Bs.S_POLE:r*=e*i;break}var o,a;return o=r*this.cg+n*this.sg,a=1/(o*this.sw*this.h1+this.cw),n=(n*this.cg-r*this.sg)*this.cw*a,r=o*a,s.x=n*this.a,s.y=r*this.a,s}function iot(s){s.x/=this.a,s.y/=this.a;var t={x:s.x,y:s.y},e,i,n;n=1/(this.pn1-s.y*this.sw),e=this.pn1*s.x*n,i=this.pn1*s.y*this.cw*n,s.x=e*this.cg+i*this.sg,s.y=i*this.cg-e*this.sg;var r=on(s.x,s.y);if(Math.abs(r)1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var s=1-this.es,t=1/s;this.radius_p=Math.sqrt(s),this.radius_p2=s,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function aot(s){var t=s.x,e=s.y,i,n,r,o;if(t=t-this.long0,this.shape==="ellipse"){e=Math.atan(this.radius_p2*Math.tan(e));var a=this.radius_p/on(this.radius_p*Math.cos(e),Math.sin(e));if(n=a*Math.cos(t)*Math.cos(e),r=a*Math.sin(t)*Math.cos(e),o=a*Math.sin(e),(this.radius_g-n)*n-r*r-o*o*this.radius_p_inv2<0)return s.x=Number.NaN,s.y=Number.NaN,s;i=this.radius_g-n,this.flip_axis?(s.x=this.radius_g_1*Math.atan(r/on(o,i)),s.y=this.radius_g_1*Math.atan(o/i)):(s.x=this.radius_g_1*Math.atan(r/i),s.y=this.radius_g_1*Math.atan(o/on(r,i)))}else this.shape==="sphere"&&(i=Math.cos(e),n=Math.cos(t)*i,r=Math.sin(t)*i,o=Math.sin(e),i=this.radius_g-n,this.flip_axis?(s.x=this.radius_g_1*Math.atan(r/on(o,i)),s.y=this.radius_g_1*Math.atan(o/i)):(s.x=this.radius_g_1*Math.atan(r/i),s.y=this.radius_g_1*Math.atan(o/on(r,i))));return s.x=s.x*this.a,s.y=s.y*this.a,s}function lot(s){var t=-1,e=0,i=0,n,r,o,a;if(s.x=s.x/this.a,s.y=s.y/this.a,this.shape==="ellipse"){this.flip_axis?(i=Math.tan(s.y/this.radius_g_1),e=Math.tan(s.x/this.radius_g_1)*on(1,i)):(e=Math.tan(s.x/this.radius_g_1),i=Math.tan(s.y/this.radius_g_1)*on(1,e));var l=i/this.radius_p;if(n=e*e+l*l+t*t,r=2*this.radius_g*t,o=r*r-4*n*this.C,o<0)return s.x=Number.NaN,s.y=Number.NaN,s;a=(-r-Math.sqrt(o))/(2*n),t=this.radius_g+a*t,e*=a,i*=a,s.x=Math.atan2(e,t),s.y=Math.atan(i*Math.cos(s.x)/t),s.y=Math.atan(this.radius_p_inv2*Math.tan(s.y))}else if(this.shape==="sphere"){if(this.flip_axis?(i=Math.tan(s.y/this.radius_g_1),e=Math.tan(s.x/this.radius_g_1)*Math.sqrt(1+i*i)):(e=Math.tan(s.x/this.radius_g_1),i=Math.tan(s.y/this.radius_g_1)*Math.sqrt(1+e*e)),n=e*e+i*i+t*t,r=2*this.radius_g*t,o=r*r-4*n*this.C,o<0)return s.x=Number.NaN,s.y=Number.NaN,s;a=(-r-Math.sqrt(o))/(2*n),t=this.radius_g+a*t,e*=a,i*=a,s.x=Math.atan2(e,t),s.y=Math.atan(i*Math.cos(s.x)/t)}return s.x=s.x+this.long0,s}var hot=["Geostationary Satellite View","Geostationary_Satellite","geos"];const cot={init:oot,forward:aot,inverse:lot,names:hot};var Qu=1.340264,td=-.081106,ed=893e-6,sd=.003796,rm=Math.sqrt(3)/2;function uot(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function dot(s){var t=rt(s.x-this.long0),e=s.y,i=Math.asin(rm*Math.sin(e)),n=i*i,r=n*n*n;return s.x=t*Math.cos(i)/(rm*(Qu+3*td*n+r*(7*ed+9*sd*n))),s.y=i*(Qu+td*n+r*(ed+sd*n)),s.x=this.a*s.x+this.x0,s.y=this.a*s.y+this.y0,s}function got(s){s.x=(s.x-this.x0)/this.a,s.y=(s.y-this.y0)/this.a;var t=1e-9,e=12,i=s.y,n,r,o,a,l,h;for(h=0;h>=1;return e.join("")}const yot='
        Terms of Use';class xot extends Sn{constructor(t){const e=t.hidpi!==void 0?t.hidpi:!1;super({cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:t.interpolate,projection:st("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:e?2:1,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection}),this.hidpi_=e,this.culture_=t.culture!==void 0?t.culture:"en-us",this.maxZoom_=t.maxZoom!==void 0?t.maxZoom:-1,this.apiKey_=t.key,this.imagerySet_=t.imagerySet,this.placeholderTiles_=t.placeholderTiles;const i="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+this.apiKey_+"&c="+this.culture_;fetch(i).then(n=>n.json()).then(n=>this.handleImageryMetadataResponse(n))}getApiKey(){return this.apiKey_}getImagerySet(){return this.imagerySet_}handleImageryMetadataResponse(t){if(t.statusCode!=200||t.statusDescription!="OK"||t.authenticationResultCode!="ValidCredentials"||t.resourceSets.length!=1||t.resourceSets[0].resources.length!=1){this.setState("error");return}const e=t.resourceSets[0].resources[0],i=this.maxZoom_==-1?e.zoomMax:this.maxZoom_,n=this.getProjection(),r=yo(n),o=this.hidpi_?2:1,a=e.imageWidth==e.imageHeight?e.imageWidth/o:[e.imageWidth/o,e.imageHeight/o],l=Cl({extent:r,minZoom:e.zoomMin,maxZoom:i,tileSize:a});this.tileGrid=l;const h=this.culture_,c=this.hidpi_,u=this.placeholderTiles_;if(this.tileUrlFunction=fc(e.imageUrlSubdomains.map(function(d){const g=[0,0,0],f=e.imageUrl.replace("{subdomain}",d).replace("{culture}",h);return function(p,m,_){if(!p)return;ll(p[0],p[1],p[2],g);const y=new URL(f.replace("{quadkey}",_ot(g))),v=y.searchParams;return c&&(v.set("dpi","d1"),v.set("device","mobile")),u===!0?v.delete("n"):u===!1&&v.set("n","z"),y.toString()}})),e.imageryProviders){const d=Sl(st("EPSG:4326"),this.getProjection());this.setAttributions(g=>{const f=[],p=g.viewState,m=this.getTileGrid(),_=m.getZForResolution(p.resolution,this.zDirection),y=m.getTileCoordForCoordAndZ(p.center,_)[0];return e.imageryProviders.map(function(v){let S=!1;const w=v.coverageAreas;for(let C=0,M=w.length;C=T.zoomMin&&y<=T.zoomMax){const I=T.bbox,O=[I[1],I[0],I[3],I[2]],P=nc(O,d);if(Ce(P,g.extent)){S=!0;break}}}S&&f.push(v.attribution)}),f.push(yot),f})}this.setState("ready")}}const vot=xot;class wot extends hl{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,maxZoom:t.maxZoom!==void 0?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,transition:t.transition,wrapX:t.wrapX,zDirection:t.zDirection}),this.account_=t.account,this.mapId_=t.map||"",this.config_=t.config||{},this.templateCache_={},this.initializeMap_()}getConfig(){return this.config_}updateConfig(t){Object.assign(this.config_,t),this.initializeMap_()}setConfig(t){this.config_=t||{},this.initializeMap_()}initializeMap_(){const t=JSON.stringify(this.config_);if(this.templateCache_[t]){this.applyTemplate_(this.templateCache_[t]);return}let e="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(e+="/named/"+this.mapId_);const i=new XMLHttpRequest;i.addEventListener("load",this.handleInitResponse_.bind(this,t)),i.addEventListener("error",this.handleInitError_.bind(this)),i.open("POST",e),i.setRequestHeader("Content-type","application/json"),i.send(JSON.stringify(this.config_))}handleInitResponse_(t,e){const i=e.target;if(!i.status||i.status>=200&&i.status<300){let n;try{n=JSON.parse(i.responseText)}catch{this.setState("error");return}this.applyTemplate_(n),this.templateCache_[t]=n,this.setState("ready")}else this.setState("error")}handleInitError_(t){this.setState("error")}applyTemplate_(t){const e="https://"+t.cdn_url.https+"/"+this.account_+"/api/v1/map/"+t.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(e)}}const Eot=wot;class Sot extends s0{constructor(t){t=t||{},super({attributions:t.attributions,wrapX:t.wrapX}),this.resolution=void 0,this.distance=t.distance!==void 0?t.distance:20,this.minDistance=t.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=t.geometryFunction||function(e){const i=e.getGeometry();return qt(!i||i.getType()==="Point","The default `geometryFunction` can only handle `Point` or null geometries"),i},this.createCustomCluster_=t.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(t.source||null)}clear(t){this.features.length=0,super.clear(t)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(t,e,i){var n;(n=this.source)==null||n.loadFeatures(t,e,i),e!==this.resolution&&(this.resolution=e,this.refresh())}setDistance(t){this.updateDistance(t,this.minDistance)}setMinDistance(t){this.updateDistance(this.distance,t)}getMinDistance(){return this.minDistance}setSource(t){this.source&&this.source.removeEventListener(Zt.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(Zt.CHANGE,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(t,e){const i=t===0?0:Math.min(e,t)/t,n=t!==this.distance||this.interpolationRatio!==i;this.distance=t,this.minDistance=e,this.interpolationRatio=i,n&&this.refresh()}cluster(){if(this.resolution===void 0||!this.source)return;const t=Zs(),e=this.distance*this.resolution,i=this.source.getFeatures(),n={};for(let r=0,o=i.length;r=0;--a){const l=this.geometryFunction(t[a]);l?mI(i,l.getCoordinates()):t.splice(a,1)}M9(i,1/t.length);const n=Rs(e),r=this.interpolationRatio,o=new Cs([i[0]*(1-r)+n[0]*r,i[1]*(1-r)+n[1]*r]);return this.createCustomCluster_?this.createCustomCluster_(o,t):new ys({geometry:o,features:t})}}const Mot=Sot,bot="https://tile.googleapis.com/v1/createSession",Cot="https://tile.googleapis.com/v1/2dtiles",Tot="https://tile.googleapis.com/tile/v1/viewport",Rot=22;class Iot extends Sn{constructor(t){const e=!!t.highDpi;super({attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:t.interpolate,projection:"EPSG:3857",reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:e?2:1,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection}),this.apiKey_=t.key,this.error_=null;const i={mapType:t.mapType||"roadmap",language:t.language||"en-US",region:t.region||"US"};t.imageFormat&&(i.imageFormat=t.imageFormat),t.scale&&(i.scale=t.scale),e&&(i.highDpi=!0),t.layerTypes&&(i.layerTypes=t.layerTypes),t.styles&&(i.styles=t.styles),t.overlay===!0&&(i.overlay=!0),t.apiOptions&&(i.apiOptions=t.apiOptions),this.sessionTokenRequest_=i,this.sessionTokenValue_,this.sessionRefreshId_,this.previousViewportAttribution_,this.previousViewportExtent_,this.createSession_()}getError(){return this.error_}fetchSessionToken(t,e){return fetch(t,e)}async createSession_(){const t=bot+"?key="+this.apiKey_,e={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(this.sessionTokenRequest_)},i=await this.fetchSessionToken(t,e);if(!i.ok){try{const u=await i.json();this.error_=new Error(u.error.message)}catch{this.error_=new Error("Error fetching session token")}this.setState("error");return}const n=await i.json(),r=this.getTilePixelRatio(1),o=[n.tileWidth/r,n.tileHeight/r];this.tileGrid=Cl({extent:yo(this.getProjection()),maxZoom:Rot,tileSize:o});const a=n.session;this.sessionTokenValue_=a;const l=this.apiKey_;this.tileUrlFunction=function(u,d,g){const f=u[0],p=u[1],m=u[2];return`${Cot}/${f}/${p}/${m}?session=${a}&key=${l}`};const h=parseInt(n.expiry,10)*1e3,c=Math.max(h-Date.now()-60*1e3,1);this.sessionRefreshId_=setTimeout(()=>this.createSession_(),c),this.setAttributions(this.fetchAttributions_.bind(this)),this.setState("ready")}async fetchAttributions_(t){if(t.viewHints[Ie.ANIMATING]||t.viewHints[Ie.INTERACTING]||t.animate)return this.previousViewportAttribution_;const[e,i]=h2(_g(t.extent),t.viewState.projection),[n,r]=h2(yg(t.extent),t.viewState.projection),o=`zoom=${this.getTileGrid().getZForResolution(t.viewState.resolution,this.zDirection)}&north=${r}&south=${i}&east=${n}&west=${e}`;if(this.previousViewportExtent_==o)return this.previousViewportAttribution_;this.previousViewportExtent_=o;const a=this.sessionTokenValue_,l=this.apiKey_,h=`${Tot}?session=${a}&key=${l}&${o}`;return this.previousViewportAttribution_=await fetch(h).then(c=>c.json()).then(c=>c.copyright),this.previousViewportAttribution_}disposeInternal(){clearTimeout(this.sessionRefreshId_),super.disposeInternal()}}const Pot=Iot;let aO=class extends Lg{constructor(s,t,e,i,n,r,o){super(t,e,i,n,r,o),this.zoomifyImage_=null,this.tileSize_=s}getImage(){if(this.zoomifyImage_)return this.zoomifyImage_;const s=super.getImage();if(this.state==X.LOADED){const t=this.tileSize_;if(s.width==t[0]&&s.height==t[1])return this.zoomifyImage_=s,s;const e=Se(t[0],t[1]);return e.drawImage(s,0,0),this.zoomifyImage_=e.canvas,e.canvas}return s}};class Aot extends Sn{constructor(t){const e=t.size,i=t.tierSizeCalculation!==void 0?t.tierSizeCalculation:"default",n=t.tilePixelRatio||1,r=e[0],o=e[1],a=[],l=t.tileSize||cc;let h=l*n;switch(i){case"default":for(;r>h||o>h;)a.push([Math.ceil(r/h),Math.ceil(o/h)]),h+=h;break;case"truncated":let C=r,M=o;for(;C>h||M>h;)a.push([Math.ceil(C/h),Math.ceil(M/h)]),C>>=1,M>>=1;break;default:throw new Error("Unknown `tierSizeCalculation` configured")}a.push([1,1]),a.reverse();const c=[n],u=[0];for(let C=1,M=a.length;C{p=l,this.changed()}),w.src=S}}const Lot=Aot;function hu(s){return s.toLocaleString("en",{maximumFractionDigits:10})}class Oot extends Sn{constructor(t){const e=t||{};let i=e.url||"";i=i+(i.lastIndexOf("/")===i.length-1||i===""?"":"/");const n=e.version||os.VERSION2,r=e.sizes||[],o=e.size;qt(o!=null&&Array.isArray(o)&&o.length==2&&!isNaN(o[0])&&o[0]>0&&!isNaN(o[1])&&o[1]>0,"Missing or invalid `size`");const a=o[0],l=o[1],h=e.tileSize,c=e.tilePixelRatio||1,u=e.format||"jpg",d=e.quality||(e.version==os.VERSION1?"native":"default");let g=e.resolutions||[];const f=e.supports||[],p=e.extent||[0,-l,a,0],m=r!=null&&Array.isArray(r)&&r.length>0,_=h!==void 0&&(typeof h=="number"&&Number.isInteger(h)&&h>0||Array.isArray(h)&&h.length>0),y=f!=null&&Array.isArray(f)&&(f.includes("regionByPx")||f.includes("regionByPct"))&&(f.includes("sizeByWh")||f.includes("sizeByH")||f.includes("sizeByW")||f.includes("sizeByPct"));let v,S,w;if(g.sort(function(I,O){return O-I}),_||y)if(h!=null&&(typeof h=="number"&&Number.isInteger(h)&&h>0?(v=h,S=h):Array.isArray(h)&&h.length>0&&((h.length==1||h[1]==null&&Number.isInteger(h[0]))&&(v=h[0],S=h[0]),h.length==2&&(Number.isInteger(h[0])&&Number.isInteger(h[1])?(v=h[0],S=h[1]):h[0]==null&&Number.isInteger(h[1])&&(v=h[1],S=h[1])))),(v===void 0||S===void 0)&&(v=cc,S=cc),g.length==0){w=Math.max(Math.ceil(Math.log(a/v)/Math.LN2),Math.ceil(Math.log(l/S)/Math.LN2));for(let I=w;I>=0;I--)g.push(Math.pow(2,I))}else{const I=Math.max(...g);w=Math.round(Math.log(I)/Math.LN2)}else if(v=a,S=l,g=[],m){r.sort(function(O,P){return O[0]-P[0]}),w=-1;const I=[];for(let O=0;O0&&g[g.length-1]==P){I.push(O);continue}g.push(P),w++}if(I.length>0)for(let O=0;Ow)return;const b=I[1],R=I[2],A=g[E];if(!(b===void 0||R===void 0||A===void 0||b<0||Math.ceil(a/A/v)<=b||R<0||Math.ceil(l/A/S)<=R)){if(y||_){const $=b*v*A,G=R*S*A;let k=v*A,z=S*A,V=v,et=S;if($+k>a&&(k=a-$),G+z>l&&(z=l-G),$+v*A>a&&(V=Math.floor((a-$+A-1)/A)),G+S*A>l&&(et=Math.floor((l-G+A-1)/A)),$==0&&k==a&&G==0&&z==l)D="full";else if(!y||f.includes("regionByPx"))D=$+","+G+","+k+","+z;else if(f.includes("regionByPct")){const F=hu($/a*100),ot=hu(G/l*100),ht=hu(k/a*100),pt=hu(z/l*100);D="pct:"+F+","+ot+","+ht+","+pt}n==os.VERSION3&&(!y||f.includes("sizeByWh"))?x=V+","+et:!y||f.includes("sizeByW")?x=V+",":f.includes("sizeByH")?x=","+et:f.includes("sizeByWh")?x=V+","+et:f.includes("sizeByPct")&&(x="pct:"+hu(100/A))}else if(D="full",m){const $=r[E][0],G=r[E][1];n==os.VERSION3?$==a&&G==l?x="max":x=$+","+G:$==a?x="full":x=$+","}else x=n==os.VERSION3?"max":"full";return i+D+"/"+x+"/0/"+d+"."+u}},T=aO.bind(null,Re(h||256).map(function(I){return I*c}));super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:e.state,tileClass:T,tileGrid:C,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:M,transition:e.transition}),this.zDirection=e.zDirection}}const Fot=Oot;function lO(s,t,e,i,n,r){const o=n.getCode().split(/:(?=\d+$)/).pop(),a=e/i,l=[Mp(Rt(t)/a,cr),Mp(Ee(t)/a,cr)];r.SIZE=l[0]+","+l[1],r.BBOX=t.join(","),r.BBOXSR=o,r.IMAGESR=o,r.DPI=Math.round(r.DPI?r.DPI*i:90*i);const h=s.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return oo(h,r)}function hO(s){const t=s.load?s.load:pa,e=st(s.projection||"EPSG:3857"),i=s.ratio??1.5,n=s.crossOrigin??null;return function(r,o,a){a=s.hidpi?a:1;const l={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Object.assign(l,s.params),r=m0(r,o,a,i);const h=lO(s.url,r,o,a,e,l),c=new Image;return c.crossOrigin=n,t(c,h).then(u=>{const d=Rt(r)/u.width*a;return{image:u,extent:r,resolution:d,pixelRatio:a}})}}class Not extends ya{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:t.interpolate,projection:t.projection,resolutions:t.resolutions}),this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null,this.hidpi_=t.hidpi!==void 0?t.hidpi:!0,this.url_=t.url,this.imageLoadFunction_=t.imageLoadFunction!==void 0?t.imageLoadFunction:p0,this.params_=Object.assign({},t.params),this.imageSize_=[0,0],this.renderedRevision_=0,this.ratio_=t.ratio!==void 0?t.ratio:1.5,this.loaderProjection_=null}getParams(){return this.params_}getImageInternal(t,e,i,n){return this.url_===void 0?null:((!this.loader||this.loaderProjection_!==n)&&(this.loaderProjection_=n,this.loader=hO({crossOrigin:this.crossOrigin_,params:this.params_,projection:n,hidpi:this.hidpi_,url:this.url_,ratio:this.ratio_,load:(r,o)=>(this.image.setImage(r),this.imageLoadFunction_(this.image,o),pa(r))})),super.getImageInternal(t,e,i,n))}getImageLoadFunction(){return this.imageLoadFunction_}getUrl(){return this.url_}setImageLoadFunction(t){this.imageLoadFunction_=t,this.changed()}setUrl(t){t!=this.url_&&(this.url_=t,this.loader=null,this.changed())}updateParams(t){Object.assign(this.params_,t),this.changed()}changed(){this.image=null,super.changed()}}const Dot=Not;class kot extends ya{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:t.interpolate,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.canvasFunction_=t.canvasFunction,this.canvas_=null,this.renderedRevision_=0,this.ratio_=t.ratio!==void 0?t.ratio:1.5}getImageInternal(t,e,i,n){e=this.findNearestResolution(e);let r=this.canvas_;if(r&&this.renderedRevision_==this.getRevision()&&r.getResolution()==e&&r.getPixelRatio()==i&&ai(r.getExtent(),t))return r;t=t.slice(),gI(t,this.ratio_);const o=Rt(t)/e,a=Ee(t)/e,l=[o*i,a*i],h=this.canvasFunction_.call(this,t,e,i,l,n);return h&&(r=new sw(t,e,i,h)),this.canvas_=r,this.renderedRevision_=this.getRevision(),r}}const $ot=kot;function Got(s,t,e,i){const n=Rt(s),r=Ee(s),o=t[0],a=t[1],l=.0254/i;return a*n>o*r?n*e/(o*l):r*e/(a*l)}function jot(s,t,e,i,n,r,o){const a=Got(e,i,r,o),l=Rs(e),h={OPERATION:n?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:o,SETDISPLAYWIDTH:Math.round(i[0]),SETDISPLAYHEIGHT:Math.round(i[1]),SETVIEWSCALE:a,SETVIEWCENTERX:l[0],SETVIEWCENTERY:l[1]};return Object.assign(h,t),oo(s,h)}function cO(s){const t=s.load||pa,e=s.useOverlay??!1,i=s.metersPerUnit||1,n=s.displayDpi||96,r=s.ratio??1,o=s.crossOrigin??null;return function(a,l,h){const c=new Image;c.crossOrigin=o,a=m0(a,l,h,r);const u=Rt(a)/l,d=Ee(a)/l,g=[u*h,d*h],f=jot(s.url,s.params,a,g,e,i,n);return t(c,f).then(p=>({image:p,extent:a,pixelRatio:h}))}}class zot extends ya{constructor(t){super({interpolate:t.interpolate,projection:t.projection,resolutions:t.resolutions}),this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null,this.displayDpi_=t.displayDpi!==void 0?t.displayDpi:96,this.params_=Object.assign({},t.params),this.url_=t.url,this.imageLoadFunction_=t.imageLoadFunction!==void 0?t.imageLoadFunction:p0,this.hidpi_=t.hidpi!==void 0?t.hidpi:!0,this.metersPerUnit_=t.metersPerUnit!==void 0?t.metersPerUnit:1,this.ratio_=t.ratio!==void 0?t.ratio:1,this.useOverlay_=t.useOverlay!==void 0?t.useOverlay:!1,this.renderedRevision_=0,this.loaderProjection_=null}getParams(){return this.params_}getImageInternal(t,e,i,n){return this.url_===void 0?null:((!this.loader||this.loaderProjection_!==n)&&(this.loaderProjection_=n,this.loader=cO({crossOrigin:this.crossOrigin_,params:this.params_,hidpi:this.hidpi_,metersPerUnit:this.metersPerUnit_,url:this.url_,useOverlay:this.useOverlay_,ratio:this.ratio_,load:(r,o)=>(this.image.setImage(r),this.imageLoadFunction_(this.image,o),pa(r))})),super.getImageInternal(t,e,i,n))}getImageLoadFunction(){return this.imageLoadFunction_}updateParams(t){Object.assign(this.params_,t),this.changed()}setImageLoadFunction(t){this.imageLoadFunction_=t,this.changed()}changed(){this.image=null,super.changed()}}const Uot=zot,Bot=new Error("Image failed to load");function uO(s,t,e,i,n){return new Promise((r,o)=>{const a=new Image;a.crossOrigin=n.crossOrigin??null,a.addEventListener("load",()=>r(a)),a.addEventListener("error",()=>o(Bot)),a.src=cL(s,t,e,i,n.maxY)})}function bb(s){return function(t,e,i,n){const r=Xtt(s,t,e,i);return uO(r,t,e,i,n)}}function Wot(s){return function(t,e,i,n){const r=s(t,e,i,n);return uO(r,t,e,i,n)}}function Cb(s){let t;if(Array.isArray(s))t=bb(s);else if(typeof s=="string"){const e=_0(s);t=bb(e)}else if(typeof s=="function")t=Wot(s);else throw new Error("The url option must be a single template, an array of templates, or a function for getting a URL");return t}let Tb=0;function Rb(s){return Array.isArray(s)?s.join(` -`):typeof s=="string"?s:(++Tb,"url-function-key-"+Tb)}class Xot extends d0{constructor(t){t=t||{};let e=t.loader,i;t.url&&(e=Cb(t.url),i=Rb(t.url));const n=e?t.state:"loading",r=t.wrapX===void 0?!0:t.wrapX;super({loader:e,key:i,attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize,gutter:t.gutter,maxResolution:t.maxResolution,projection:t.projection,tileGrid:t.tileGrid,state:n,wrapX:r,transition:t.transition,interpolate:t.interpolate!==!1,crossOrigin:t.crossOrigin})}setUrl(t){const e=Cb(t);this.setLoader(e),this.setKey(Rb(t)),this.getState()!=="ready"&&this.setState("ready")}}const Vot=Xot;class Yot extends ya{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:t.interpolate,projection:t.projection,resolutions:t.resolutions}),this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null,this.url_=t.url,this.imageLoadFunction_=t.imageLoadFunction!==void 0?t.imageLoadFunction:p0,this.params_=Object.assign({},t.params),this.serverType_=t.serverType,this.hidpi_=t.hidpi!==void 0?t.hidpi:!0,this.renderedRevision_=0,this.ratio_=t.ratio!==void 0?t.ratio:1.5,this.loaderProjection_=null}getFeatureInfoUrl(t,e,i,n){const r=st(i),o=this.getProjection();o&&o!==r&&(e=$d(o,r,t,e),t=Dm(t,r,o));const a={url:this.url_,params:{...this.params_,...n},projection:o||r};return tet(a,t,e)}getLegendUrl(t,e){return eet({url:this.url_,params:{...this.params_,...e}},t)}getParams(){return this.params_}getImageInternal(t,e,i,n){return this.url_===void 0?null:((!this.loader||this.loaderProjection_!==n)&&(this.loaderProjection_=n,this.loader=mL({crossOrigin:this.crossOrigin_,params:this.params_,projection:n,serverType:this.serverType_,hidpi:this.hidpi_,url:this.url_,ratio:this.ratio_,load:(r,o)=>(this.image.setImage(r),this.imageLoadFunction_(this.image,o),pa(r))})),super.getImageInternal(t,e,i,n))}getImageLoadFunction(){return this.imageLoadFunction_}getUrl(){return this.url_}setImageLoadFunction(t){this.imageLoadFunction_=t,this.changed()}setUrl(t){t!=this.url_&&(this.url_=t,this.loader=null,this.changed())}updateParams(t){Object.assign(this.params_,t),this.changed()}changed(){this.image=null,super.changed()}}const qot=Yot,Zot={"image/png":!0,"image/jpeg":!0,"image/gif":!0,"image/webp":!0},Hot={"application/vnd.mapbox-vector-tile":!0,"application/geo+json":!0};function dO(s,t){if(!t.length)return s;const e=new URL(s,"file:/");if(e.pathname.split("/").includes("collections"))return Td('The "collections" query parameter cannot be added to collection endpoints'),s;const i=t.map(o=>encodeURIComponent(o)).join(",");e.searchParams.append("collections",i);const n=s.split("?")[0],r=decodeURIComponent(e.searchParams.toString());return`${n}?${r}`}function Kot(s,t,e){let i,n;for(let r=0;rw.replace(/E|X|Lon/i,"e").replace(/N|Y|Lat/i,"n")).join(""):n.getAxisOrientation()).startsWith("en"),a=t.tileMatrices,l={};for(let w=0;wx.maxTileCol||P.tileRowx.maxTileRow)return}Object.assign(P,y);const D=e.replace(/\{(\w+?)\}/g,function(x,E){return P[E]});return dL(v,D)}return{grid:_,urlTemplate:e,urlFunction:S}}function Qot(s,t){const e=t.tileMatrixSetLimits;let i;if(t.dataType==="map")i=Kot(t.links,s.mediaType,s.collections);else if(t.dataType==="vector")i=Jot(t.links,s.mediaType,s.supportedMediaTypes,s.collections);else throw new Error('Expected tileset data type to be "map" or "vector"');if(t.tileMatrixSet)return Ib(s,t.tileMatrixSet,i,e);const n=t.links.find(a=>a.rel==="http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme");if(!n)throw new Error("Expected http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme link or tileMatrixSet");const r=n.href,o=dL(s.url,r);return uL(o).then(function(a){return Ib(s,a,i,e)})}function gO(s){return uL(s.url).then(function(t){return Qot(s,t)})}class tat extends Sn{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition});const e={url:t.url,projection:this.getProjection(),mediaType:t.mediaType,context:t.context||null,collections:t.collections};gO(e).then(this.handleTileSetInfo_.bind(this)).catch(this.handleError_.bind(this))}handleTileSetInfo_(t){this.tileGrid=t.grid,this.setTileUrlFunction(t.urlFunction,t.urlTemplate),this.setState("ready")}handleError_(t){Td(t),this.setState("error")}}const eat=tat;class sat extends y0{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,format:t.format,overlaps:t.overlaps,projection:t.projection,tileClass:t.tileClass,transition:t.transition,wrapX:t.wrapX,zDirection:t.zDirection,state:"loading"});const e={url:t.url,projection:this.getProjection(),mediaType:t.mediaType,supportedMediaTypes:t.format.supportedMediaTypes,context:t.context||null,collections:t.collections};gO(e).then(this.handleTileSetInfo_.bind(this)).catch(this.handleError_.bind(this))}handleTileSetInfo_(t){this.tileGrid=t.grid,this.setTileUrlFunction(t.urlFunction,t.urlTemplate),this.setState("ready")}handleError_(t){Td(t),this.setState("error")}}const iat=sat,fO='© OpenStreetMap contributors.';class nat extends hl{constructor(t){t=t||{};let e;t.attributions!==void 0?e=t.attributions:e=[fO];const i=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",n=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:i,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:n,wrapX:t.wrapX,zDirection:t.zDirection})}}const rat=nat,Pb=1/0;class oat{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Mc(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,i=t[0];t.length==1?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){qt(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=Pb?(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(t){return t*2+1}getRightChildIndex_(t){return t*2+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return this.elements_.length===0}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,i=this.priorities_,n=e.length,r=e[t],o=i[t],a=t;for(;t>1;){const l=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),c=ht;){const a=this.getParentIndex_(e);if(n[a]>o)i[e]=i[a],n[e]=n[a],e=a;else break}i[e]=r,n[e]=o}reprioritize(){const t=this.priorityFunction_,e=this.elements_,i=this.priorities_;let n=0;const r=e.length;let o,a,l;for(a=0;a0;){const n=this.dequeue()[0],r=n.getKey();n.getState()===X.IDLE&&!(r in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++i,n.load())}}}function pO(s){return function(t){const e=t.buffers,i=t.meta,n=t.imageOps,r=t.width,o=t.height,a=e.length,l=e[0].byteLength;if(n){const d=new Array(a);for(let g=0;g"u"?"data:text/javascript;base64,"+Buffer.from(e.join(` -`),"binary").toString("base64"):URL.createObjectURL(new Blob(e,{type:"text/javascript"})));return i.addEventListener("message",t),i}function hat(s,t){const e=pO(s.operation);let i=!1;return{postMessage:function(n){setTimeout(function(){i||t({data:{buffer:e(n),meta:n.meta}})},0)},terminate:function(){i=!0}}}class cat extends Ux{constructor(t){super(),this.imageOps_=!!t.imageOps;let e;t.threads===0?e=0:this.imageOps_?e=1:e=t.threads||1;const i=new Array(e);if(e)for(let n=0;nthis.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const t=this.queue_.shift();this.job_=t;const e=t.inputs[0].width,i=t.inputs[0].height,n=t.inputs.map(function(l){return l.data.buffer}),r=this.workers_.length;if(this.running_=r,r===1){this.workers_[0].postMessage({buffers:n,meta:t.meta,imageOps:this.imageOps_,width:e,height:i},n);return}const o=t.inputs[0].data.length,a=4*Math.ceil(o/4/r);for(let l=0;lStadia Maps',_at='© OpenMapTiles',yat='© Stamen Design',xat={stamen_terrain:{extension:"png"},stamen_terrain_background:{extension:"png"},stamen_terrain_labels:{extension:"png"},stamen_terrain_lines:{extension:"png"},stamen_toner_background:{extension:"png"},stamen_toner:{extension:"png"},stamen_toner_labels:{extension:"png"},stamen_toner_lines:{extension:"png"},stamen_toner_lite:{extension:"png"},stamen_watercolor:{extension:"jpg"},alidade_smooth:{extension:"png"},alidade_smooth_dark:{extension:"png"},alidade_satellite:{extension:"png"},outdoors:{extension:"png"},osm_bright:{extension:"png"}},vat={stamen_terrain:{minZoom:0,maxZoom:18,retina:!0},stamen_toner:{minZoom:0,maxZoom:20,retina:!0},stamen_watercolor:{minZoom:1,maxZoom:18,retina:!1}};class wat extends hl{constructor(t){const e=t.layer.indexOf("-"),i=e==-1?t.layer:t.layer.slice(0,e),n=vat[i]||{minZoom:0,maxZoom:20,retina:!0},r=xat[t.layer],o=t.apiKey?"?api_key="+t.apiKey:"",a=n.retina&&t.retina?"@2x":"",l=t.url!==void 0?t.url:"https://tiles.stadiamaps.com/tiles/"+t.layer+"/{z}/{x}/{y}"+a+"."+r.extension+o,h=[mat,_at,fO];t.layer.startsWith("stamen_")&&h.splice(1,0,yat),super({attributions:h,cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:n.maxZoom,minZoom:t.minZoom!==void 0?t.minZoom:n.minZoom,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:l,tilePixelRatio:a?2:1,wrapX:t.wrapX,zDirection:t.zDirection})}}const Eat=wat;class Sat extends Sn{constructor(t){t=t||{},super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection}),this.params_=Object.assign({},t.params),this.hidpi_=t.hidpi!==void 0?t.hidpi:!0,this.tmpExtent_=Zs(),this.setKey(this.getKeyForParams_())}getKeyForParams_(){let t=0;const e=[];for(const i in this.params_)e[t++]=i+"-"+this.params_[i];return e.join("/")}getParams(){return this.params_}getRequestUrl_(t,e,i,n,r,o){const a=this.urls;if(!a)return;let l;if(a.length==1)l=a[0];else{const h=kn(Jv(t),a.length);l=a[h]}return lO(l,i,(this.tileGrid||this.getTileGridForProjection(r)).getResolution(t[0]),n,r,o)}getTilePixelRatio(t){return this.hidpi_?t:1}updateParams(t){Object.assign(this.params_,t),this.setKey(this.getKeyForParams_())}tileUrlFunction(t,e,i){let n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(i)),n.getResolutions().length<=t[0])return;e!=1&&!this.hidpi_&&(e=1);const r=n.getTileCoordExtent(t,this.tmpExtent_);let o=Re(n.getTileSize(t[0]),this.tmpSize);e!=1&&(o=YI(o,e,this.tmpSize));const a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return Object.assign(a,this.params_),this.getRequestUrl_(t,o,r,e,i,a)}}const Mat=Sat;class bat extends hl{constructor(t){t=t||{},super({projection:t.projection,tileGrid:t.tileGrid,wrapX:t.wrapX!==void 0?t.wrapX:!0,zDirection:t.zDirection,url:t.template||"z:{z} x:{x} y:{y}",tileLoadFunction:(e,i)=>{const n=e.getTileCoord()[0],r=Re(this.tileGrid.getTileSize(n)),o=Se(r[0],r[1]);o.strokeStyle="grey",o.strokeRect(.5,.5,r[0]+.5,r[1]+.5),o.fillStyle="grey",o.strokeStyle="white",o.textAlign="center",o.textBaseline="middle",o.font="24px sans-serif",o.lineWidth=4,o.strokeText(i,r[0]/2,r[1]/2,r[0]),o.fillText(i,r[0]/2,r[1]/2,r[0]),e.setImage(o.canvas)}})}}const Cat=bat;class Tat extends Oc{constructor(t,e,i,n,r,o){super(t,e),this.src_=i,this.extent_=n,this.preemptive_=r,this.grid_=null,this.keys_=null,this.data_=null,this.jsonp_=o}getImage(){return null}getData(t){if(!this.grid_||!this.keys_)return null;const e=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),i=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),n=this.grid_[Math.floor((1-i)*this.grid_.length)];if(typeof n!="string")return null;let r=n.charCodeAt(Math.floor(e*n.length));r>=93&&r--,r>=35&&r--,r-=32;let o=null;if(r in this.keys_){const a=this.keys_[r];this.data_&&a in this.data_?o=this.data_[a]:o=a}return o}forDataAtCoordinate(t,e,i){this.state==X.EMPTY&&i===!0?(this.state=X.IDLE,bd(this,Zt.CHANGE,n=>{e(this.getData(t))}),this.loadInternal_()):i===!0?setTimeout(()=>{e(this.getData(t))},0):e(this.getData(t))}getKey(){return this.src_}handleError_(){this.state=X.ERROR,this.changed()}handleLoad_(t){this.grid_=t.grid,this.keys_=t.keys,this.data_=t.data,this.state=X.LOADED,this.changed()}loadInternal_(){if(this.state==X.IDLE)if(this.state=X.LOADING,this.jsonp_)Iw(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}}onXHRLoad_(t){const e=t.target;if(!e.status||e.status>=200&&e.status<300){let i;try{i=JSON.parse(e.responseText)}catch{this.handleError_();return}this.handleLoad_(i)}else this.handleError_()}onXHRError_(t){this.handleError_()}load(){this.preemptive_?this.loadInternal_():this.setState(X.EMPTY)}}class Rat extends Fg{constructor(t){if(super({projection:st("EPSG:3857"),state:"loading",wrapX:t.wrapX!==void 0?t.wrapX:!0,zDirection:t.zDirection}),this.preemptive_=t.preemptive!==void 0?t.preemptive:!0,this.tileUrlFunction_=Ytt,this.template_=void 0,this.jsonp_=t.jsonp||!1,t.url)if(this.jsonp_)Iw(t.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const e=new XMLHttpRequest;e.addEventListener("load",this.onXHRLoad_.bind(this)),e.addEventListener("error",this.onXHRError_.bind(this)),e.open("GET",t.url),e.send()}else if(t.tileJSON)this.handleTileJSONResponse(t.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(t){const e=t.target;if(!e.status||e.status>=200&&e.status<300){let i;try{i=JSON.parse(e.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(t){this.handleTileJSONError()}getTemplate(){return this.template_}forDataAtCoordinateAndResolution(t,e,i,n){if(this.tileGrid){const r=this.tileGrid.getZForResolution(e,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(t,r);this.getTile(o[0],o[1],o[2],1,this.getProjection()).forDataAtCoordinate(t,i,n)}else n===!0?setTimeout(function(){i(null)},0):i(null)}handleTileJSONError(){this.setState("error")}handleTileJSONResponse(t){const e=st("EPSG:4326"),i=this.getProjection();let n;if(t.bounds!==void 0){const c=Sl(e,i);n=nc(t.bounds,c)}const r=yo(i),o=t.minzoom||0,a=t.maxzoom||22,l=Cl({extent:r,maxZoom:a,minZoom:o});this.tileGrid=l,this.template_=t.template;const h=t.grids;if(!h){this.setState("error");return}if(this.tileUrlFunction_=Cw(h,l),t.attribution){const c=n!==void 0?n:r;this.setAttributions(function(u){return Ce(c,u.extent)?[t.attribution]:null})}this.setState("ready")}getTile(t,e,i,n,r){const o=ro(t,e,i);if(this.tileCache.containsKey(o))return this.tileCache.get(o);const a=[t,e,i],l=this.getTileCoordForTileUrlFunction(a,r),h=this.tileUrlFunction_(l,n,r),c=new Tat(a,h!==void 0?X.IDLE:X.EMPTY,h!==void 0?h:"",this.tileGrid.getTileCoordExtent(a),this.preemptive_,this.jsonp_);return this.tileCache.set(o,c),c}useTile(t,e,i){const n=ro(t,e,i);this.tileCache.containsKey(n)&&this.tileCache.get(n)}}const Iat=Rat;function Pat(s,t){const e=new l0(32),i=s.getExtent();return function(n,r){e.expireCache(),i&&(n=He(i,n));const o=s.getZForResolution(r),a=[];return s.forEachTileCoord(n,o,l=>{const h=l.toString();if(!e.containsKey(h)){const c=t(l);e.set(h,c)}a.push(e.get(h))}),a}}const Aat=Object.freeze(Object.defineProperty({__proto__:null,BingMaps:vot,CartoDB:Eot,Cluster:Mot,DataTile:d0,GeoTIFF:bw,Google:Pot,IIIF:Fot,Image:ya,ImageArcGISRest:Dot,ImageCanvas:$ot,ImageMapGuide:Uot,ImageStatic:hL,ImageTile:Vot,ImageWMS:qot,OGCMapTile:eat,OGCVectorTile:iat,OSM:rat,Raster:pat,Source:Lc,StadiaMaps:Eat,Tile:Fg,TileArcGISRest:Mat,TileDebug:Cat,TileImage:Sn,TileJSON:gL,TileWMS:_L,UTFGrid:Iat,UrlTile:Rw,Vector:s0,VectorTile:y0,WMTS:yL,XYZ:hl,Zoomify:Lot,createArcGISRestLoader:hO,createMapGuideLoader:cO,createStaticLoader:lL,createWMSLoader:mL,sourcesFromTileGrid:Pat},Symbol.toStringTag,{value:"Module"}));class Lat extends Sn{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,tilePixelRatio:t.tilePixelRatio,transition:t.transition,interpolate:t.interpolate!==void 0?t.interpolate:!0,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection,wrapX:t.wrapX}),this.version_=t.version!==void 0?t?.version:"1.0.0",this.dimensions_=t.dimensions!==void 0?t.dimensions:{},this.layer_=t.layer,fetch(t.url).then(e=>e.text()).then(e=>new window.DOMParser().parseFromString(e,"application/xml")).then(e=>{this.handleCapabilitiesResponse(e,t)})}handleCapabilitiesResponse(t,e){const i=new kv().read(t),n=xL(i,e);this.crossOrigin=n.crossOrigin,this.projection=n.projection,this.tileGrid=n.tileGrid,this.requestEncoding_=n.requestEncoding,this.matrixSet_=n.matrixSet,this.style_=n.style,this.format_=n.format,this.dimensions_=n.dimensions,this.setUrls(n.urls),this.urls&&this.urls.length>0&&(this.tileUrlFunction=fc(this.urls.map(this.createFromWMTSTemplate.bind(this)))),this.setState("ready")}createFromWMTSTemplate(t){const e=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};e=="KVP"&&Object.assign(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=e=="KVP"?oo(t,i):t.replace(/\{(\w+?)\}/g,function(o,a){return a.toLowerCase()in i?i[a.toLowerCase()]:o});const n=this.tileGrid,r=this.dimensions_;return function(o){if(!o)return;const a={TileMatrix:n.getMatrixId(o[0]),TileCol:o[1],TileRow:o[2]};Object.assign(a,r);let l=t;return e=="KVP"?l=oo(l,a):l=l.replace(/\{(\w+?)\}/g,function(h,c){return a[c]}),l}}}window.eoxMapAdvancedOlSources={...Aat,WMTSCapabilities:Lat};const Oat=["enabled"],Fat=["config"],Nat=["config"],Dat={__name:"EodashMap",props:{enableCompare:{type:Boolean,default:!1}},setup(s){const t=s,e=R0(null),i=R0(null),n=R0("first"),r=Ww({center:[15,48],zoom:4,layers:[{type:"Tile",properties:{id:"osm",title:"Background"},source:{type:"OSM"}}]}),o=Ww({center:[15,48],zoom:4,layers:[]});Ma&&Ma.value&&Ma.value.length===3&&(r.center=[Ma.value?.[0],Ma.value[1]],r.zoom=Ma.value[2]);const a=c=>{const u=c.map,[d,g]=u?.getView().getCenter()??[0,0],f=u?.getView().getZoom();!Number.isNaN(d)&&!Number.isNaN(g)&&!Number.isNaN(f)&&(Ma.value=[d,g,f])},l=MO(),h=async(c,u,d)=>{const f=SO(d.value,c.value).map(M=>new Zw(M)),p=[],m={type:"Group",properties:{id:"AnalysisGroup",title:"Analysis Layers",layerControlExpand:!0},layers:[]};for(const M of f){let T;u?T=await M.createLayersJson(new Date(u)):T=await M.createLayersJson(),T&&m.layers.push(...T)}m.layers.forEach(M=>{M.properties.layerControlExpand=!0,M.properties.layerControlToolsExpand=!0}),p.push(m);const y=await new Zw(I0.value).buildJsonArray(d.value,I0.value,d.value?.title??"",d.value?.endpointtype??!1),v={type:"Group",properties:{id:"BaseLayersGroup",title:"Base Layers"},layers:[]},S=y.filter(M=>M.properties.group==="baselayer");S.length?(v.layers.push(...S),v.layers.forEach(M=>{M.properties.layerControlExclusive=!0})):v.layers.push({type:"Tile",properties:{id:"osm",title:"Background",layerControlExclusive:!0},source:{type:"OSM"}}),v.layers.length&&p.push(v);const w={type:"Group",properties:{id:"OverlayGroup",title:"Overlay Layers"},layers:[]},C=y.filter(M=>M.properties.group==="overlay");return C.length&&(w.layers.push(...C),p.unshift(w)),p};return bO(()=>{CO.value=e.value,e.value?.map?.on("moveend",a);const{selectedStac:c,selectedCompareStac:u}=TO(l);t.enableCompare&&Xw([u,Yw],async([d,g],[f,p])=>{if(d){const m=await h(AO,g,u);i.value.layers=m,n.value=""}}),Xw([c,Yw],async([d,g],[f,p])=>{if(d){const m=await h(I0,g,c);if(e.value.layers=m,f?.id!==d.id){n.value="first";const _=d.extent?.spatial.bbox[0],y=[_[0]>-180?_[0]:-180,_[1]>-90?_[1]:-90,_[2]<180?_[2]:180,_[3]<90?_[3]:90],v=dF(y,"EPSG:4326",e.value?.map?.getView().getProjection());e.value.zoomExtent=v}}},{immediate:!0})}),RO(()=>{e.value?.map?.un("moveend",a)}),(c,u)=>(IO(),PO("eox-map-compare",{class:"fill-height fill-width overflow-none",enabled:n.value},[Vw("eox-map",{class:"fill-height fill-width overflow-none",slot:"first",sync:"eox-map#compare",ref_key:"eoxMap",ref:e,id:"main",config:r},null,8,Fat),Vw("eox-map",{class:"fill-height fill-width overflow-none",id:"compare",slot:"second",ref_key:"compareMap",ref:i,config:o},null,8,Nat)],8,Oat))}},Rct=Object.freeze(Object.defineProperty({__proto__:null,default:Dat},Symbol.toStringTag,{value:"Module"}));export{Rct as E,Tct as a,Cct as o,g0 as x}; diff --git a/pr-preview/pr-17/assets/EodashMapBtns-BBddO65x.js b/pr-preview/pr-17/assets/EodashMapBtns-BBddO65x.js deleted file mode 100644 index f28ac2d..0000000 --- a/pr-preview/pr-17/assets/EodashMapBtns-BBddO65x.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as c,r as i,aT as f,$ as o,a6 as d,a0 as r,a3 as e,V as u,a5 as s,aU as v,aR as m,aV as k,aS as x}from"./index-Dvu417lt.js";import B from"./ExportState-D-Xz2LGJ.js";import"./PopUp-5-tUIM9N.js";import"./VOverlay-DGc1wXYF.js";import"./forwardRefs-DzUtZcD3.js";import"./transition-BKtsYhmO.js";import"./index-CIIeHcTL.js";import"./VImg-CLLthewK.js";const M={__name:"EodashMapBtns",props:{exportMap:{type:Boolean,default:!0},changeProjection:{type:Boolean,default:!0}},setup(n){const t=i(!1),p=i(null);return f(p),(y,a)=>(o(),d("div",{ref_key:"rootRef",ref:p,class:"d-flex flex-column align-end justify-end my-3 pa-2"},[n.exportMap?(o(),r(u,{key:0,class:"map-btn",icon:[e(v)],onClick:a[0]||(a[0]=l=>t.value=!t.value)},null,8,["icon"])):s("v-if",!0),n.exportMap?(o(),r(B,{key:1,modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=l=>t.value=l)},null,8,["modelValue"])):s("v-if",!0),n.changeProjection&&e(m)?(o(),r(u,{key:2,class:"map-btn",icon:[e(k)],onClick:a[2]||(a[2]=l=>e(x)(e(m)))},null,8,["icon"])):s("v-if",!0)],512))}},S=c(M,[["__scopeId","data-v-d7a01370"]]);export{S as default}; diff --git a/pr-preview/pr-17/assets/EodashMapBtns-CPcoqvv5.css b/pr-preview/pr-17/assets/EodashMapBtns-CPcoqvv5.css deleted file mode 100644 index 70f519e..0000000 --- a/pr-preview/pr-17/assets/EodashMapBtns-CPcoqvv5.css +++ /dev/null @@ -1 +0,0 @@ -.map-btn[data-v-d7a01370]{width:36px;height:36px;border-radius:25%;margin:4px} diff --git a/pr-preview/pr-17/assets/ExportState-C78fNrFy.css b/pr-preview/pr-17/assets/ExportState-C78fNrFy.css deleted file mode 100644 index 389a707..0000000 --- a/pr-preview/pr-17/assets/ExportState-C78fNrFy.css +++ /dev/null @@ -1 +0,0 @@ -.code-block[data-v-98028b8c]{background-color:#ddd;font-family:monospace;font-size:small}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0}.v-card{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card{border-radius:4px}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;inset:0;pointer-events:none}.v-card .v-card__underlay{position:absolute}.v-card--disabled{pointer-events:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;content:"";display:block;inset:0;pointer-events:none;position:absolute;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1}.v-card--hover:before{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0}.v-card--hover:after{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--hover:hover{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend,.v-card-item__append{align-items:center;display:flex}.v-card-item__prepend{grid-area:prepend;padding-inline-end:.5rem}.v-card-item__append{grid-area:append;padding-inline-start:.5rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:1.6}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.425}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-text-opacity, 1);padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.425}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{inset:0 0 auto;position:absolute;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar{border-radius:50%}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;inset:0;pointer-events:none}.v-avatar .v-avatar__underlay{position:absolute}.v-avatar--rounded{border-radius:4px}.v-avatar--start{margin-inline-end:8px}.v-avatar--end{margin-inline-start:8px}.v-avatar .v-img{height:100%;width:100%}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit}.v-divider{border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:auto;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-divider__content{padding:0 16px;text-wrap:nowrap}.v-divider__wrapper--vertical .v-divider__content{padding:4px 0}.v-divider__wrapper{display:flex;align-items:center;justify-content:center}.v-divider__wrapper--vertical{flex-direction:column;height:100%}.v-divider__wrapper--vertical .v-divider{margin:0 auto} diff --git a/pr-preview/pr-17/assets/ExportState-D-Xz2LGJ.js b/pr-preview/pr-17/assets/ExportState-D-Xz2LGJ.js deleted file mode 100644 index 2078c86..0000000 --- a/pr-preview/pr-17/assets/ExportState-D-Xz2LGJ.js +++ /dev/null @@ -1,4 +0,0 @@ -import{aW as M,g as m,e as y,S as ve,a as g,b as a,p as f,f as x,I as k,O as T,ag as j,aX as me,h as B,aY as J,i as N,aZ as W,P as U,aj as q,a_ as ye,M as S,ak as _,a$ as H,F as P,ae as ge,ac as fe,af as be,b0 as ke,b1 as he,b2 as Ce,b3 as pe,b4 as Ve,ah as Se,ad as _e,ai as xe,b5 as Ie,b6 as Ae,b7 as Pe,b8 as Te,c as h,t as Be,v as Ne,b9 as we,u as Le,R as $e,C as L,_ as De,ba as ze,bb as Fe,r as Re,$ as I,a0 as Ee,a1 as c,bc as Oe,a9 as C,aa as $,a6 as D,a3 as z,bd as Me,a5 as je,aD as Je,be as We,a7 as Ue,V as F,bf as qe,a8 as R,bg as A,aN as E,as as He,at as Xe}from"./index-Dvu417lt.js";import Ye from"./PopUp-5-tUIM9N.js";import{a as Ze}from"./index-CIIeHcTL.js";import{V as X}from"./VImg-CLLthewK.js";import"./VOverlay-DGc1wXYF.js";import"./forwardRefs-DzUtZcD3.js";import"./transition-BKtsYhmO.js";const Ge=M("v-spacer","div","VSpacer"),Y=m()({name:"VCardActions",props:y(),setup(e,l){let{slots:n}=l;return ve({VBtn:{slim:!0,variant:"text"}}),g(()=>a("div",{class:["v-card-actions",e.class],style:e.style},[n.default?.()])),{}}}),Ke=f({opacity:[Number,String],...y(),...x()},"VCardSubtitle"),Qe=m()({name:"VCardSubtitle",props:Ke(),setup(e,l){let{slots:n}=l;return g(()=>a(e.tag,{class:["v-card-subtitle",e.class],style:[{"--v-card-subtitle-opacity":e.opacity},e.style]},n)),{}}}),Z=M("v-card-title"),ea=f({start:Boolean,end:Boolean,icon:k,image:String,text:String,...y(),...T(),...j(),...me(),...x(),...B(),...J({variant:"flat"})},"VAvatar"),O=m()({name:"VAvatar",props:ea(),setup(e,l){let{slots:n}=l;const{themeClasses:t}=N(e),{colorClasses:r,colorStyles:o,variantClasses:u}=W(e),{densityClasses:d}=U(e),{roundedClasses:s}=q(e),{sizeClasses:i,sizeStyles:v}=ye(e);return g(()=>a(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},t.value,r.value,d.value,s.value,i.value,u.value,e.class],style:[o.value,v.value,e.style]},{default:()=>[n.default?a(_,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?a(X,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?a(S,{key:"icon",icon:e.icon},null):e.text,H(!1,"v-avatar")]})),{}}}),aa=f({appendAvatar:String,appendIcon:k,prependAvatar:String,prependIcon:k,subtitle:[String,Number],title:[String,Number],...y(),...T()},"VCardItem"),ta=m()({name:"VCardItem",props:aa(),setup(e,l){let{slots:n}=l;return g(()=>{const t=!!(e.prependAvatar||e.prependIcon),r=!!(t||n.prepend),o=!!(e.appendAvatar||e.appendIcon),u=!!(o||n.append),d=!!(e.title!=null||n.title),s=!!(e.subtitle!=null||n.subtitle);return a("div",{class:["v-card-item",e.class],style:e.style},[r&&a("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?a(_,{key:"prepend-defaults",disabled:!t,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):a(P,null,[e.prependAvatar&&a(O,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&a(S,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),a("div",{class:"v-card-item__content"},[d&&a(Z,{key:"title"},{default:()=>[n.title?.()??e.title]}),s&&a(Qe,{key:"subtitle"},{default:()=>[n.subtitle?.()??e.subtitle]}),n.default?.()]),u&&a("div",{key:"append",class:"v-card-item__append"},[n.append?a(_,{key:"append-defaults",disabled:!o,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):a(P,null,[e.appendIcon&&a(S,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&a(O,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])])}),{}}}),na=f({opacity:[Number,String],...y(),...x()},"VCardText"),G=m()({name:"VCardText",props:na(),setup(e,l){let{slots:n}=l;return g(()=>a(e.tag,{class:["v-card-text",e.class],style:[{"--v-card-text-opacity":e.opacity},e.style]},n)),{}}}),sa=f({appendAvatar:String,appendIcon:k,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:k,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...ge(),...y(),...T(),...fe(),...be(),...ke(),...he(),...Ce(),...j(),...pe(),...x(),...B(),...J({variant:"elevated"})},"VCard"),la=m()({name:"VCard",directives:{Ripple:Ve},props:sa(),setup(e,l){let{attrs:n,slots:t}=l;const{themeClasses:r}=N(e),{borderClasses:o}=Se(e),{colorClasses:u,colorStyles:d,variantClasses:s}=W(e),{densityClasses:i}=U(e),{dimensionStyles:v}=_e(e),{elevationClasses:b}=xe(e),{loaderClasses:K}=Ie(e),{locationStyles:Q}=Ae(e),{positionClasses:ee}=Pe(e),{roundedClasses:ae}=q(e),p=Te(e,n),te=h(()=>e.link!==!1&&p.isLink.value),V=h(()=>!e.disabled&&e.link!==!1&&(e.link||p.isClickable.value));return g(()=>{const ne=te.value?"a":e.tag,se=!!(t.title||e.title!=null),le=!!(t.subtitle||e.subtitle!=null),ie=se||le,de=!!(t.append||e.appendAvatar||e.appendIcon),oe=!!(t.prepend||e.prependAvatar||e.prependIcon),ce=!!(t.image||e.image),re=ie||oe||de,ue=!!(t.text||e.text!=null);return Be(a(ne,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":V.value},r.value,o.value,u.value,i.value,b.value,K.value,ee.value,ae.value,s.value,e.class],style:[d.value,v.value,Q.value,e.style],href:p.href.value,onClick:V.value&&p.navigate,tabindex:e.disabled?-1:void 0},{default:()=>[ce&&a("div",{key:"image",class:"v-card__image"},[t.image?a(_,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},t.image):a(X,{key:"image-img",cover:!0,src:e.image},null)]),a(we,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:t.loader}),re&&a(ta,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:t.item,prepend:t.prepend,title:t.title,subtitle:t.subtitle,append:t.append}),ue&&a(G,{key:"text"},{default:()=>[t.text?.()??e.text]}),t.default?.(),t.actions&&a(Y,null,{default:t.actions}),H(V.value,"v-card")]}),[[Ne("ripple"),V.value&&e.ripple]])}),{}}}),ia=f({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...y(),...B()},"VDivider"),da=m()({name:"VDivider",props:ia(),setup(e,l){let{attrs:n,slots:t}=l;const{themeClasses:r}=N(e),{textColorClasses:o,textColorStyles:u}=Le($e(e,"color")),d=h(()=>{const s={};return e.length&&(s[e.vertical?"height":"width"]=L(e.length)),e.thickness&&(s[e.vertical?"borderRightWidth":"borderTopWidth"]=L(e.thickness)),s});return g(()=>{const s=a("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},r.value,o.value,e.class],style:[d.value,u.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return t.default?a("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[s,a("div",{class:"v-divider__content"},[t.default()]),s]):s}),{}}}),w=e=>(He("data-v-98028b8c"),e=e(),Xe(),e),oa=w(()=>C("h5",{class:"text-h5"},"Storytelling map configuration",-1)),ca=w(()=>C("p",{class:"text-body-2"}," Copy and paste this code into the map layers field of the storytelling editor: ",-1)),ra={class:"pa-3 code-block"},ua={style:{position:"absolute",bottom:"15px"}},va={key:0,class:"text-success mr-3"},ma=w(()=>C("small",null,"copied!",-1)),ya={__name:"ExportState",props:ze({getLayers:{type:Function,default:Oe}},{modelValue:{type:Boolean,required:!0,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const l=Fe(e,"modelValue"),n=e,t=Re(!1),r=[{id:Symbol(),copyFn:async()=>await A(u.value,t),copyAs:"simple map"},{id:Symbol(),copyFn:async()=>await A(JSON.stringify(n.getLayers()),t),copyAs:"layers configuration"},{id:Symbol(),copyFn:async()=>await A(o.value,t),copyAs:"map tour section"}],o=h(()=>{const[d,s,i]=E.value,v="### -#### Tour step title -Text describing the current step of the tour and why it is interesting what the map shows currently -`;return`${v}'${JSON.stringify(n.getLayers())}' ${b}`}),u=h(()=>{const[d,s,i]=E.value,v='## Map Example `;return`${v}'${JSON.stringify(n.getLayers())}' ${b}`});return(d,s)=>(I(),Ee(Ye,{modelValue:l.value,"onUpdate:modelValue":s[1]||(s[1]=i=>l.value=i)},{default:c(()=>[a(la,null,{default:c(()=>[a(Z,{class:"bg-primary"},{default:c(()=>[oa]),_:1}),a(G,{class:"py-5"},{default:c(()=>[ca,C("div",ra,$(e.getLayers()),1),C("div",ua,[a(Ze,null,{default:c(()=>[t.value?(I(),D("div",va,[a(S,{color:"success",left:"",icon:[z(Me)]},null,8,["icon"]),ma])):je("v-if",!0)]),_:1})]),a(Je,{class:"d-flex pt-3 justify-end"},{default:c(()=>[a(We,{cols:"6",class:"flex-column align-center text-end"},{default:c(()=>[(I(),D(P,null,Ue(r,i=>a(F,{class:"text-body-2",onClick:i.copyFn,key:i.id,small:"",variant:"text","prepend-icon":[z(qe)]},{default:c(()=>[R(" copy as "+$(i.copyAs),1)]),_:2},1032,["onClick","prepend-icon"])),64))]),_:1})]),_:1})]),_:1}),a(da),a(Y,null,{default:c(()=>[a(Ge),a(F,{variant:"text",onClick:s[0]||(s[0]=i=>l.value=!l.value)},{default:c(()=>[R(" Close ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},Va=De(ya,[["__scopeId","data-v-98028b8c"]]);export{Va as default}; diff --git a/pr-preview/pr-17/assets/Footer-B-aywIir.css b/pr-preview/pr-17/assets/Footer-B-aywIir.css deleted file mode 100644 index 53a1e36..0000000 --- a/pr-preview/pr-17/assets/Footer-B-aywIir.css +++ /dev/null @@ -1 +0,0 @@ -.footer-text[data-v-7ea19f1b]{font-size:.8rem}.v-footer{align-items:center;display:flex;flex:1 1 auto;padding:8px 16px;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom}.v-footer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-footer--border{border-width:thin;box-shadow:none}.v-footer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-footer--absolute{position:absolute}.v-footer--fixed{position:fixed}.v-footer{border-radius:0}.v-footer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-footer--rounded{border-radius:4px} diff --git a/pr-preview/pr-17/assets/Footer-Bbz6BUHt.js b/pr-preview/pr-17/assets/Footer-Bbz6BUHt.js deleted file mode 100644 index 2584826..0000000 --- a/pr-preview/pr-17/assets/Footer-Bbz6BUHt.js +++ /dev/null @@ -1 +0,0 @@ -import{p as w,ae as k,e as b,af as C,an as I,ag as S,f as R,h as B,g as P,r as p,s as f,i as z,Q as F,R as g,ah as M,ai as T,aj as V,J as X,c as t,ao as Z,aq as j,ap as L,a as N,b as D,C as E,_ as H,x as $,W as q,H as A,$ as J,a0 as K,a1 as O,a9 as a,aa as Q,a3 as r,a8 as U,as as W,at as G}from"./index-Dvu417lt.js";const Y=w({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...k(),...b(),...C(),...I(),...S(),...R({tag:"footer"}),...B()},"VFooter"),l0=P()({name:"VFooter",props:Y(),setup(l,c){let{slots:n}=c;const o=p(),s=f(),{themeClasses:i}=z(l),{backgroundColorClasses:d,backgroundColorStyles:m}=F(g(l,"color")),{borderClasses:v}=M(l),{elevationClasses:y}=T(l),{roundedClasses:_}=V(l),h=f(32),{resizeRef:x}=X(e=>{e.length&&(h.value=e[0].target.clientHeight)}),u=t(()=>l.height==="auto"?h.value:parseInt(l.height,10));return Z(()=>l.app,()=>{const e=j({id:l.name,order:t(()=>parseInt(l.order,10)),position:t(()=>"bottom"),layoutSize:u,elementSize:t(()=>l.height==="auto"?void 0:u.value),active:t(()=>l.app),absolute:g(l,"absolute")});L(()=>{o.value=e.layoutItemStyles.value,s.value=e.layoutIsReady})}),N(()=>D(l.tag,{ref:x,class:["v-footer",i.value,d.value,v.value,y.value,_.value,l.class],style:[m.value,l.app?o.value:{height:E(l.height)},l.style]},n)),l.app?s.value:{}}}),e0=l=>(W("data-v-7ea19f1b"),l=l(),G(),l),t0={class:"pt-0 footer-text"},a0=e0(()=>a("a",{href:"https://github.com/eodash/eodash",class:"text-white",target:"_blank"},"eodash",-1)),o0={href:"https://eox.at",target:"_blank",class:"text-white"},s0=["src"],c0='',n0={__name:"Footer",setup(l){const c=p(null),n=$(q),{mdAndDown:o}=A(),s=window.btoa(c0);return(i,d)=>(J(),K(l0,{ref_key:"footer",ref:c,height:r(o)?"48px":"auto",color:"secondary",app:"",class:"d-flex justify-space-between"},{default:O(()=>[a("p",t0,Q(r(n).brand.footerText??""),1),a("div",null,[a0,U(" by "),a("a",o0,[a("img",{src:`data:image/svg+xml;base64,${r(s)}`,height:"11px"},null,8,s0)])])]),_:1},8,["height"]))}},i0=H(n0,[["__scopeId","data-v-7ea19f1b"]]);export{i0 as default}; diff --git a/pr-preview/pr-17/assets/Header-L0dTPwgQ.css b/pr-preview/pr-17/assets/Header-L0dTPwgQ.css deleted file mode 100644 index 60c73ee..0000000 --- a/pr-preview/pr-17/assets/Header-L0dTPwgQ.css +++ /dev/null @@ -1 +0,0 @@ -.logo[data-v-d3a5e05e]{max-width:140px}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%}.v-toolbar{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar{border-radius:0}.v-toolbar{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden;border-end-end-radius:24px}.v-toolbar--collapse .v-toolbar-title{display:none}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content{overflow:hidden}.v-toolbar__content>.v-btn:first-child{margin-inline-start:4px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:4px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:20px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline:4px auto}.v-toolbar__append{margin-inline:auto 4px}.v-toolbar-title{flex:1 1;font-size:1.25rem;min-width:0}.v-toolbar-title{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px}.v-toolbar--density-prominent .v-toolbar-title{font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0} diff --git a/pr-preview/pr-17/assets/Header-LhvQ5ty7.js b/pr-preview/pr-17/assets/Header-LhvQ5ty7.js deleted file mode 100644 index 1cda30d..0000000 --- a/pr-preview/pr-17/assets/Header-LhvQ5ty7.js +++ /dev/null @@ -1 +0,0 @@ -import{p as V,e as w,f as N,g as _,a as p,b as o,ae as z,af as F,ag as W,h as $,Q as K,R as k,ah as O,ai as Q,aj as Y,i as Z,j as G,s as y,c as n,S as J,ak as B,C as T,r as R,al as X,w as x,Z as ee,am as te,an as ae,y as le,ao as oe,ap as se,aq as ne,d as E,_ as re,x as ue,W as ie,$ as ce,a0 as de,a1 as P,a8 as ve,aa as me,a3 as C}from"./index-Dvu417lt.js";import{V as A}from"./VImg-CLLthewK.js";import{a as ge}from"./index-CIIeHcTL.js";import{u as fe}from"./ssrBoot-Uu_-yAhn.js";import"./transition-BKtsYhmO.js";const L=V({text:String,...w(),...N()},"VToolbarTitle"),D=_()({name:"VToolbarTitle",props:L(),setup(e,r){let{slots:t}=r;return p(()=>{const d=!!(t.default||t.text||e.text);return o(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>[d&&o("div",{class:"v-toolbar-title__placeholder"},[t.text?t.text():e.text,t.default?.()])]})}),{}}}),he=[null,"prominent","default","comfortable","compact"],U=V({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>he.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...z(),...w(),...F(),...W(),...N({tag:"header"}),...$()},"VToolbar"),I=_()({name:"VToolbar",props:U(),setup(e,r){let{slots:t}=r;const{backgroundColorClasses:d,backgroundColorStyles:u}=K(k(e,"color")),{borderClasses:a}=O(e),{elevationClasses:v}=Q(e),{roundedClasses:i}=Y(e),{themeClasses:f}=Z(e),{rtlClasses:S}=G(),c=y(!!(e.extended||t.extension?.())),m=n(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),b=n(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return J({VBtn:{variant:"text"}}),p(()=>{const h=!!(e.title||t.title),s=!!(t.image||e.image),g=t.extension?.();return c.value=!!(e.extended||g),o(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,a.value,v.value,i.value,f.value,S.value,e.class],style:[u.value,e.style]},{default:()=>[s&&o("div",{key:"image",class:"v-toolbar__image"},[t.image?o(B,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},t.image):o(A,{key:"image-img",cover:!0,src:e.image},null)]),o(B,{defaults:{VTabs:{height:T(m.value)}}},{default:()=>[o("div",{class:"v-toolbar__content",style:{height:T(m.value)}},[t.prepend&&o("div",{class:"v-toolbar__prepend"},[t.prepend?.()]),h&&o(D,{key:"title",text:e.title},{text:t.title}),t.default?.(),t.append&&o("div",{class:"v-toolbar__append"},[t.append?.()])])]}),o(B,{defaults:{VTabs:{height:T(b.value)}}},{default:()=>[o(ge,null,{default:()=>[c.value&&o("div",{class:"v-toolbar__extension",style:{height:T(b.value)}},[g])]})]})]})}),{contentHeight:m,extensionHeight:b}}}),be=V({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function ye(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:t}=r;let d=0,u=0;const a=R(null),v=y(0),i=y(0),f=y(0),S=y(!1),c=y(!1),m=n(()=>Number(e.scrollThreshold)),b=n(()=>X((m.value-v.value)/m.value||0)),h=()=>{const s=a.value;if(!s||t&&!t.value)return;d=v.value,v.value="window"in s?s.pageYOffset:s.scrollTop;const g=s instanceof Window?document.documentElement.scrollHeight:s.scrollHeight;if(u!==g){u=g;return}c.value=v.value{i.value=i.value||v.value}),x(S,()=>{i.value=0}),ee(()=>{x(()=>e.scrollTarget,s=>{const g=s?document.querySelector(s):window;g&&g!==a.value&&(a.value?.removeEventListener("scroll",h),a.value=g,a.value.addEventListener("scroll",h,{passive:!0}))},{immediate:!0})}),te(()=>{a.value?.removeEventListener("scroll",h)}),t&&x(t,h,{immediate:!0}),{scrollThreshold:m,currentScroll:v,currentThreshold:f,isScrollActive:S,scrollRatio:b,isScrollingUp:c,savedScroll:i}}const Se=V({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...U(),...ae(),...be(),height:{type:[Number,String],default:64}},"VAppBar"),Te=_()({name:"VAppBar",props:Se(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:t}=r;const d=R(),u=le(e,"modelValue"),a=n(()=>{const l=new Set(e.scrollBehavior?.split(" ")??[]);return{hide:l.has("hide"),fullyHide:l.has("fully-hide"),inverted:l.has("inverted"),collapse:l.has("collapse"),elevate:l.has("elevate"),fadeImage:l.has("fade-image")}}),v=n(()=>{const l=a.value;return l.hide||l.fullyHide||l.inverted||l.collapse||l.elevate||l.fadeImage||!u.value}),{currentScroll:i,scrollThreshold:f,isScrollingUp:S,scrollRatio:c}=ye(e,{canScroll:v}),m=n(()=>a.value.hide||a.value.fullyHide),b=n(()=>e.collapse||a.value.collapse&&(a.value.inverted?c.value>0:c.value===0)),h=n(()=>e.flat||a.value.fullyHide&&!u.value||a.value.elevate&&(a.value.inverted?i.value>0:i.value===0)),s=n(()=>a.value.fadeImage?a.value.inverted?1-c.value:c.value:void 0),g=n(()=>{const l=Number(d.value?.contentHeight??e.height),H=Number(d.value?.extensionHeight??0);return m.value?i.value!!e.scrollBehavior),()=>{se(()=>{m.value?a.value.inverted?u.value=i.value>f.value:u.value=S.value||i.valueparseInt(e.order,10)),position:k(e,"location"),layoutSize:g,elementSize:y(void 0),active:u,absolute:k(e,"absolute")});return p(()=>{const l=I.filterProps(e);return o(I,E({ref:d,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...M.value,"--v-toolbar-image-opacity":s.value,height:void 0,...j.value},e.style]},l,{collapse:b.value,flat:h.value}),t)}),q}}),xe=_()({name:"VAppBarTitle",props:L(),setup(e,r){let{slots:t}=r;return p(()=>o(D,E(e,{class:"v-app-bar-title"}),t)),{}}}),Ve={__name:"Header",setup(e){const r=ue(ie),t=r.brand?.name;return(d,u)=>(ce(),de(Te,{color:"primary"},{default:P(()=>[o(xe,null,{default:P(()=>[ve(me(C(t)),1)]),_:1}),o(A,{class:"mx-12 logo",src:C(r).brand?.logo},null,8,["src"])]),_:1}))}},Pe=re(Ve,[["__scopeId","data-v-d3a5e05e"]]);export{Pe as default}; diff --git a/pr-preview/pr-17/assets/IframeWrapper-CJivyMgq.js b/pr-preview/pr-17/assets/IframeWrapper-CJivyMgq.js deleted file mode 100644 index 4679e3a..0000000 --- a/pr-preview/pr-17/assets/IframeWrapper-CJivyMgq.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as r,a6 as t}from"./index-Dvu417lt.js";const s=["src"],i={__name:"IframeWrapper",props:{src:{type:String,required:!0}},setup(e){return(c,a)=>(r(),t("iframe",{src:e.src,class:"fill-height fill-width"},null,8,s))}};export{i as default}; diff --git a/pr-preview/pr-17/assets/MobileLayout-BK_cuoYT.css b/pr-preview/pr-17/assets/MobileLayout-BK_cuoYT.css deleted file mode 100644 index 76ed830..0000000 --- a/pr-preview/pr-17/assets/MobileLayout-BK_cuoYT.css +++ /dev/null @@ -1 +0,0 @@ -.main[data-v-e69b9875]{height:91dvh}.panel[data-v-e69b9875]{top:var(--fbf7b91a);bottom:var(--2c845582);position:absolute;overflow:hidden;width:100%;left:0;z-index:1}.component-container[data-v-e69b9875]{height:90%}.close-btn[data-v-e69b9875]{height:5%;position:relative}.tabs[data-v-e69b9875]{bottom:var(--fdee920e);position:relative;z-index:10}.v-tab.v-tab.v-btn{height:var(--v-tabs-height);border-radius:0;min-width:90px}.v-slide-group--horizontal .v-tab{max-width:360px}.v-slide-group--vertical .v-tab{justify-content:start}.v-tab__slider{position:absolute;bottom:0;left:0;height:2px;width:100%;background:currentColor;pointer-events:none;opacity:0}.v-tab--selected .v-tab__slider{opacity:1}.v-slide-group--vertical .v-tab__slider{top:0;height:100%;width:2px}.v-tabs{display:flex;height:var(--v-tabs-height)}.v-tabs--density-default{--v-tabs-height: 48px}.v-tabs--density-default.v-tabs--stacked{--v-tabs-height: 72px}.v-tabs--density-comfortable{--v-tabs-height: 44px}.v-tabs--density-comfortable.v-tabs--stacked{--v-tabs-height: 68px}.v-tabs--density-compact{--v-tabs-height: 36px}.v-tabs--density-compact.v-tabs--stacked{--v-tabs-height: 60px}.v-tabs.v-slide-group--vertical{height:auto;flex:none;--v-tabs-height: 48px}.v-tabs--align-tabs-title:not(.v-slide-group--has-affixes) .v-tab:first-child{margin-inline-start:42px}.v-tabs--fixed-tabs .v-slide-group__content>*:last-child,.v-tabs--align-tabs-center .v-slide-group__content>*:last-child{margin-inline-end:auto}.v-tabs--fixed-tabs .v-slide-group__content>*:first-child,.v-tabs--align-tabs-center .v-slide-group__content>*:first-child{margin-inline-start:auto}.v-tabs--grow{flex-grow:1}.v-tabs--grow .v-tab{flex:1 0 auto;max-width:none}.v-tabs--align-tabs-end .v-tab:first-child{margin-inline-start:auto}.v-tabs--align-tabs-end .v-tab:last-child{margin-inline-end:0}@media (max-width: 1279.98px){.v-tabs.v-slide-group--is-overflowing.v-slide-group--horizontal:not(.v-slide-group--has-affixes) .v-tab:first-child{margin-inline-start:52px}.v-tabs.v-slide-group--is-overflowing.v-slide-group--horizontal:not(.v-slide-group--has-affixes) .v-tab:last-child{margin-inline-end:52px}}.v-window{overflow:hidden}.v-window__container{display:flex;flex-direction:column;height:inherit;position:relative;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window__controls{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 16px;pointer-events:none}.v-window__controls>*{pointer-events:auto}.v-window--show-arrows-on-hover{overflow:hidden}.v-window--show-arrows-on-hover .v-window__left{transform:translate(-200%)}.v-window--show-arrows-on-hover .v-window__right{transform:translate(200%)}.v-window--show-arrows-on-hover:hover .v-window__left,.v-window--show-arrows-on-hover:hover .v-window__right{transform:translate(0)}.v-window-x-transition-enter-active,.v-window-x-transition-leave-active,.v-window-x-reverse-transition-enter-active,.v-window-x-reverse-transition-leave-active,.v-window-y-transition-enter-active,.v-window-y-transition-leave-active,.v-window-y-reverse-transition-enter-active,.v-window-y-reverse-transition-leave-active{transition:.3s cubic-bezier(.25,.8,.5,1)}.v-window-x-transition-leave-from,.v-window-x-transition-leave-to,.v-window-x-reverse-transition-leave-from,.v-window-x-reverse-transition-leave-to,.v-window-y-transition-leave-from,.v-window-y-transition-leave-to,.v-window-y-reverse-transition-leave-from,.v-window-y-reverse-transition-leave-to{position:absolute!important;top:0;width:100%}.v-window-x-transition-enter-from{transform:translate(100%)}.v-window-x-transition-leave-to,.v-window-x-reverse-transition-enter-from{transform:translate(-100%)}.v-window-x-reverse-transition-leave-to{transform:translate(100%)}.v-window-y-transition-enter-from{transform:translateY(100%)}.v-window-y-transition-leave-to,.v-window-y-reverse-transition-enter-from{transform:translateY(-100%)}.v-window-y-reverse-transition-leave-to{transform:translateY(100%)}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:rgba(0,0,0,0)}.v-slide-group__container::-webkit-scrollbar{display:none}.v-slide-group--vertical{max-height:inherit}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-slide-group--vertical .v-slide-group__container{overflow-x:hidden;overflow-y:auto} diff --git a/pr-preview/pr-17/assets/MobileLayout-DtBtTe7v.js b/pr-preview/pr-17/assets/MobileLayout-DtBtTe7v.js deleted file mode 100644 index 03bbdeb..0000000 --- a/pr-preview/pr-17/assets/MobileLayout-DtBtTe7v.js +++ /dev/null @@ -1 +0,0 @@ -import{k as Ie,p as R,o as Pe,m as Xe,g as $,u as Ye,r as I,c as y,a as M,V as G,b as v,F as O,d as z,e as ie,f as ue,h as Ge,i as De,j as pe,l as Ue,n as Be,s as E,w as Ee,q as je,t as q,v as Ne,x as re,y as ze,z as qe,A as Ke,B as le,C as ae,D as Qe,I as fe,E as Je,G as Ze,H as et,J as me,K as tt,L as he,M as ge,N as nt,O as ot,P as st,Q as lt,R as W,S as at,T as it,_ as ut,U as rt,W as ct,X as be,Y as dt,Z as vt,$ as C,a0 as A,a1 as F,a2 as ye,a3 as X,a4 as Se,a5 as se,a6 as Y,a7 as we,a8 as xe,a9 as ft,aa as mt}from"./index-Dvu417lt.js";import{f as ht,a as gt,s as bt,m as yt,u as St,b as wt}from"./forwardRefs-DzUtZcD3.js";import{u as xt}from"./ssrBoot-Uu_-yAhn.js";import{M as kt}from"./transition-BKtsYhmO.js";import{V as ke}from"./index-CIIeHcTL.js";import{V as Tt}from"./VMain-CoSaaYTf.js";const Vt=e=>{const{touchstartX:n,touchendX:s,touchstartY:t,touchendY:l}=e,u=.5,o=16;e.offsetX=s-n,e.offsetY=l-t,Math.abs(e.offsetY)n+o&&e.right(e)),Math.abs(e.offsetX)t+o&&e.down(e))};function Ct(e,n){const s=e.changedTouches[0];n.touchstartX=s.clientX,n.touchstartY=s.clientY,n.start?.({originalEvent:e,...n})}function _t(e,n){const s=e.changedTouches[0];n.touchendX=s.clientX,n.touchendY=s.clientY,n.end?.({originalEvent:e,...n}),Vt(n)}function It(e,n){const s=e.changedTouches[0];n.touchmoveX=s.clientX,n.touchmoveY=s.clientY,n.move?.({originalEvent:e,...n})}function Pt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:s=>Ct(s,n),touchend:s=>_t(s,n),touchmove:s=>It(s,n)}}function pt(e,n){const s=n.value,t=s?.parent?e.parentElement:e,l=s?.options??{passive:!0},u=n.instance?.$.uid;if(!t||!u)return;const o=Pt(n.value);t._touchHandlers=t._touchHandlers??Object.create(null),t._touchHandlers[u]=o,Ie(o).forEach(f=>{t.addEventListener(f,o[f],l)})}function Bt(e,n){const s=n.value?.parent?e.parentElement:e,t=n.instance?.$.uid;if(!s?._touchHandlers||!t)return;const l=s._touchHandlers[t];Ie(l).forEach(u=>{s.removeEventListener(u,l[u])}),delete s._touchHandlers[t]}const We={mounted:pt,unmounted:Bt},Et=We,ce=Symbol.for("vuetify:v-tabs"),zt=R({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...Pe(Xe({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Re=$()({name:"VTab",props:zt(),setup(e,n){let{slots:s,attrs:t}=n;const{textColorClasses:l,textColorStyles:u}=Ye(e,"sliderColor"),o=I(),f=I(),r=y(()=>e.direction==="horizontal"),h=y(()=>o.value?.group?.isSelected.value??!1);function x(m){let{value:a}=m;if(a){const g=o.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"),d=f.value;if(!g||!d)return;const _=getComputedStyle(g).color,T=g.getBoundingClientRect(),V=d.getBoundingClientRect(),P=r.value?"x":"y",p=r.value?"X":"Y",b=r.value?"right":"bottom",S=r.value?"width":"height",k=T[P],H=V[P],B=k>H?T[b]-V[b]:T[P]-V[P],K=Math.sign(B)>0?r.value?"right":"bottom":Math.sign(B)<0?r.value?"left":"top":"center",Q=(Math.abs(B)+(Math.sign(B)<0?T[S]:V[S]))/Math.max(T[S],V[S])||0,j=T[S]/V[S]||0,N=1.5;gt(d,{backgroundColor:[_,"currentcolor"],transform:[`translate${p}(${B}px) scale${p}(${j})`,`translate${p}(${B/N}px) scale${p}(${(Q-1)/N+1})`,"none"],transformOrigin:Array(3).fill(K)},{duration:225,easing:bt})}}return M(()=>{const m=G.filterProps(e);return v(G,z({symbol:ce,ref:o,class:["v-tab",e.class],style:e.style,tabindex:h.value?0:-1,role:"tab","aria-selected":String(h.value),active:!1},m,t,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":x}),{...s,default:()=>v(O,null,[s.default?.()??e.text,!e.hideSlider&&v("div",{ref:f,class:["v-tab__slider",l.value],style:u.value},null)])})}),ht({},o)}}),$e=Symbol.for("vuetify:v-window"),Me=Symbol.for("vuetify:v-window-group"),He=R({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...ie(),...ue(),...Ge()},"VWindow"),Te=$()({name:"VWindow",directives:{Touch:We},props:He(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:s}=n;const{themeClasses:t}=De(e),{isRtl:l}=pe(),{t:u}=Ue(),o=Be(e,Me),f=I(),r=y(()=>l.value?!e.reverse:e.reverse),h=E(!1),x=y(()=>{const b=e.direction==="vertical"?"y":"x",k=(r.value?!h.value:h.value)?"-reverse":"";return`v-window-${b}${k}-transition`}),m=E(0),a=I(void 0),g=y(()=>o.items.value.findIndex(b=>o.selected.value.includes(b.id)));Ee(g,(b,S)=>{const k=o.items.value.length,H=k-1;k<=2?h.value=be.continuous||g.value!==0),_=y(()=>e.continuous||g.value!==o.items.value.length-1);function T(){d.value&&o.prev()}function V(){_.value&&o.next()}const P=y(()=>{const b=[],S={icon:l.value?e.nextIcon:e.prevIcon,class:`v-window__${r.value?"right":"left"}`,onClick:o.prev,"aria-label":u("$vuetify.carousel.prev")};b.push(d.value?s.prev?s.prev({props:S}):v(G,S,null):v("div",null,null));const k={icon:l.value?e.prevIcon:e.nextIcon,class:`v-window__${r.value?"left":"right"}`,onClick:o.next,"aria-label":u("$vuetify.carousel.next")};return b.push(_.value?s.next?s.next({props:k}):v(G,k,null):v("div",null,null)),b}),p=y(()=>e.touch===!1?e.touch:{...{left:()=>{r.value?T():V()},right:()=>{r.value?V():T()},start:S=>{let{originalEvent:k}=S;k.stopPropagation()}},...e.touch===!0?{}:e.touch});return M(()=>q(v(e.tag,{ref:f,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},t.value,e.class],style:e.style},{default:()=>[v("div",{class:"v-window__container",style:{height:a.value}},[s.default?.({group:o}),e.showArrows!==!1&&v("div",{class:"v-window__controls"},[P.value])]),s.additional?.({group:o})]}),[[Ne("touch"),p.value]])),{group:o}}}),Wt=R({...Pe(He(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Rt=$()({name:"VTabsWindow",props:Wt(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:s}=n;const t=re(ce,null),l=ze(e,"modelValue"),u=y({get(){return l.value!=null||!t?l.value:t.items.value.find(o=>t.selected.value.includes(o.id))?.value},set(o){l.value=o}});return M(()=>{const o=Te.filterProps(e);return v(Te,z({_as:"VTabsWindow"},o,{modelValue:u.value,"onUpdate:modelValue":f=>u.value=f,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),s)}),{}}}),Ae=R({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...ie(),...qe(),...yt()},"VWindowItem"),Ve=$()({name:"VWindowItem",directives:{Touch:Et},props:Ae(),emits:{"group:selected":e=>!0},setup(e,n){let{slots:s}=n;const t=re($e),l=Ke(e,Me),{isBooted:u}=xt();if(!t||!l)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=E(!1),f=y(()=>u.value&&(t.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function r(){!o.value||!t||(o.value=!1,t.transitionCount.value>0&&(t.transitionCount.value-=1,t.transitionCount.value===0&&(t.transitionHeight.value=void 0)))}function h(){o.value||!t||(o.value=!0,t.transitionCount.value===0&&(t.transitionHeight.value=ae(t.rootRef.value?.clientHeight)),t.transitionCount.value+=1)}function x(){r()}function m(d){o.value&&Qe(()=>{!f.value||!o.value||!t||(t.transitionHeight.value=ae(d.clientHeight))})}const a=y(()=>{const d=t.isReversed.value?e.reverseTransition:e.transition;return f.value?{name:typeof d!="string"?t.transition.value:d,onBeforeEnter:h,onAfterEnter:r,onEnterCancelled:x,onBeforeLeave:h,onAfterLeave:r,onLeaveCancelled:x,onEnter:m}:!1}),{hasContent:g}=St(e,l.isSelected);return M(()=>v(kt,{transition:a.value,disabled:!u.value},{default:()=>[q(v("div",{class:["v-window-item",l.selectedClass.value,e.class],style:e.style},[g.value&&s.default?.()]),[[le,l.isSelected.value]])]})),{groupItem:l}}}),$t=R({...Ae()},"VTabsWindowItem"),Mt=$()({name:"VTabsWindowItem",props:$t(),setup(e,n){let{slots:s}=n;return M(()=>{const t=Ve.filterProps(e);return v(Ve,z({_as:"VTabsWindowItem"},t,{class:["v-tabs-window-item",e.class],style:e.style}),s)}),{}}});function Ht(e){let{selectedElement:n,containerElement:s,isRtl:t,isHorizontal:l}=e;const u=D(l,s),o=Fe(l,t,s),f=D(l,n),r=Oe(l,n),h=f*.4;return o>r?r-h:o+utypeof e=="boolean"||["always","desktop","mobile"].includes(e)},...ie(),...Je({mobile:null}),...ue(),...Ze({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),_e=$()({name:"VSlideGroup",props:Le(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:s}=n;const{isRtl:t}=pe(),{displayClasses:l,mobile:u}=et(e),o=Be(e,e.symbol),f=E(!1),r=E(0),h=E(0),x=E(0),m=y(()=>e.direction==="horizontal"),{resizeRef:a,contentRect:g}=me(),{resizeRef:d,contentRect:_}=me(),T=tt(),V=y(()=>({container:a.el,duration:200,easing:"easeOutQuart"})),P=y(()=>o.selected.value.length?o.items.value.findIndex(i=>i.id===o.selected.value[0]):-1),p=y(()=>o.selected.value.length?o.items.value.findIndex(i=>i.id===o.selected.value[o.selected.value.length-1]):-1);if(he){let i=-1;Ee(()=>[o.selected.value,g.value,_.value,m.value],()=>{cancelAnimationFrame(i),i=requestAnimationFrame(()=>{if(g.value&&_.value){const c=m.value?"width":"height";h.value=g.value[c],x.value=_.value[c],f.value=h.value+1=0&&d.el){const c=d.el.children[p.value];S(c,e.centerActive)}})})}const b=E(!1);function S(i,c){let w=0;c?w=At({containerElement:a.el,isHorizontal:m.value,selectedElement:i}):w=Ht({containerElement:a.el,isHorizontal:m.value,isRtl:t.value,selectedElement:i}),k(w)}function k(i){if(!he||!a.el)return;const c=D(m.value,a.el),w=Fe(m.value,t.value,a.el);if(!(Ce(m.value,a.el)<=c||Math.abs(i-w)<16)){if(m.value&&t.value&&a.el){const{scrollWidth:ne,offsetWidth:oe}=a.el;i=ne-oe-i}m.value?T.horizontal(i,V.value):T(i,V.value)}}function H(i){const{scrollTop:c,scrollLeft:w}=i.target;r.value=m.value?w:c}function B(i){if(b.value=!0,!(!f.value||!d.el)){for(const c of i.composedPath())for(const w of d.el.children)if(w===c){S(w);return}}}function K(i){b.value=!1}let U=!1;function Q(i){!U&&!b.value&&!(i.relatedTarget&&d.el?.contains(i.relatedTarget))&&L(),U=!1}function j(){U=!0}function N(i){if(!d.el)return;function c(w){i.preventDefault(),L(w)}m.value?i.key==="ArrowRight"?c(t.value?"prev":"next"):i.key==="ArrowLeft"&&c(t.value?"next":"prev"):i.key==="ArrowDown"?c("next"):i.key==="ArrowUp"&&c("prev"),i.key==="Home"?c("first"):i.key==="End"&&c("last")}function L(i){if(!d.el)return;let c;if(!i)c=nt(d.el)[0];else if(i==="next"){if(c=d.el.querySelector(":focus")?.nextElementSibling,!c)return L("first")}else if(i==="prev"){if(c=d.el.querySelector(":focus")?.previousElementSibling,!c)return L("last")}else i==="first"?c=d.el.firstElementChild:i==="last"&&(c=d.el.lastElementChild);c&&c.focus({preventScroll:!0})}function J(i){const c=m.value&&t.value?-1:1,w=(i==="prev"?-c:c)*h.value;let te=r.value+w;if(m.value&&t.value&&a.el){const{scrollWidth:ne,offsetWidth:oe}=a.el;te+=ne-oe}k(te)}const Z=y(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),ee=y(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!u.value;case!0:return f.value||Math.abs(r.value)>0;case"mobile":return u.value||f.value||Math.abs(r.value)>0;default:return!u.value&&(f.value||Math.abs(r.value)>0)}}),de=y(()=>Math.abs(r.value)>1),ve=y(()=>{if(!a.value)return!1;const i=Ce(m.value,a.el),c=Ft(m.value,a.el);return i-c-Math.abs(r.value)>1});return M(()=>v(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!m.value,"v-slide-group--has-affixes":ee.value,"v-slide-group--is-overflowing":f.value},l.value,e.class],style:e.style,tabindex:b.value||o.selected.value.length?-1:0,onFocus:Q},{default:()=>[ee.value&&v("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!de.value}],onMousedown:j,onClick:()=>de.value&&J("prev")},[s.prev?.(Z.value)??v(ke,null,{default:()=>[v(ge,{icon:t.value?e.nextIcon:e.prevIcon},null)]})]),v("div",{key:"container",ref:a,class:"v-slide-group__container",onScroll:H},[v("div",{ref:d,class:"v-slide-group__content",onFocusin:B,onFocusout:K,onKeydown:N},[s.default?.(Z.value)])]),ee.value&&v("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!ve.value}],onMousedown:j,onClick:()=>ve.value&&J("next")},[s.next?.(Z.value)??v(ke,null,{default:()=>[v(ge,{icon:t.value?e.prevIcon:e.nextIcon},null)]})])]})),{selected:o.selected,scrollTo:J,scrollOffset:r,focus:L}}});function Lt(e){return e?e.map(n=>it(n)?n:{text:n,value:n}):[]}const Xt=R({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Le({mandatory:"force",selectedClass:"v-tab-item--selected"}),...ot(),...ue()},"VTabs"),Yt=$()({name:"VTabs",props:Xt(),emits:{"update:modelValue":e=>!0},setup(e,n){let{attrs:s,slots:t}=n;const l=ze(e,"modelValue"),u=y(()=>Lt(e.items)),{densityClasses:o}=st(e),{backgroundColorClasses:f,backgroundColorStyles:r}=lt(W(e,"bgColor")),{scopeId:h}=wt();return at({VTab:{color:W(e,"color"),direction:W(e,"direction"),stacked:W(e,"stacked"),fixed:W(e,"fixedTabs"),sliderColor:W(e,"sliderColor"),hideSlider:W(e,"hideSlider")}}),M(()=>{const x=_e.filterProps(e),m=!!(t.window||e.items.length>0);return v(O,null,[v(_e,z(x,{modelValue:l.value,"onUpdate:modelValue":a=>l.value=a,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},o.value,f.value,e.class],style:[{"--v-tabs-height":ae(e.height)},r.value,e.style],role:"tablist",symbol:ce},h,s),{default:()=>[t.default?.()??u.value.map(a=>t.tab?.({item:a})??v(Re,z(a,{key:a.text,value:a.value}),{default:t[`tab.${a.value}`]?()=>t[`tab.${a.value}`]?.({item:a}):void 0}))]}),m&&v(Rt,z({modelValue:l.value,"onUpdate:modelValue":a=>l.value=a,key:"tabs-window"},h),{default:()=>[u.value.map(a=>t.item?.({item:a})??v(Mt,{value:a.value},{default:()=>t[`item.${a.value}`]?.({item:a})})),t.window?.()]})])}),{}}}),Gt={key:0,id:"overlay",class:"pa-2 panel bg-surface"},Dt={class:"component-container"},Ut={__name:"MobileLayout",setup(e){rt(m=>({fbf7b91a:h.value,"2c845582":r.value,fdee920e:x.value}));const n=re(ct),s=n.template.widgets,t=be(s),[l]=be([n.template?.background]),{mainRect:u}=dt(),o=I(-1),f=I(null),r=I(""),h=I(""),x=I("");return vt(()=>{h.value=u.value.top+"px",x.value=(u.value.bottom||48)+"px",r.value=u.value.bottom+(f.value?.$el?.clientHeight??0)+"px"}),(m,a)=>(C(),A(Tt,{class:"overflow-hidden main"},{default:F(()=>[(C(),A(ye,{suspensible:""},{default:F(()=>[X(l).component?(C(),A(Se(X(l).component),z({key:0,id:"bg-widget"},X(l).props),null,16)):se("v-if",!0)]),_:1})),(C(!0),Y(O,null,we(X(t),(g,d)=>(C(),Y(O,{key:d},[g.value.component?q((C(),Y("div",Gt,[v(G,{icon:"",variant:"text",class:"close-btn",onClick:a[0]||(a[0]=_=>o.value=-1)},{default:F(()=>[xe("✕")]),_:1}),(C(),A(ye,{suspensible:""},{default:F(()=>[q(ft("div",Dt,[(C(),A(Se(g.value.component),z({key:g.value.id,ref_for:!0},g.value.props),null,16))],512),[[le,o.value===d]])]),_:2},1024))],512)),[[le,o.value===d]]):se("v-if",!0)],64))),128)),v(Yt,{ref_key:"tabs",ref:f,"align-tabs":"center","bg-color":"surface",class:"tabs","show-arrows":"",modelValue:o.value,"onUpdate:modelValue":a[1]||(a[1]=g=>o.value=g)},{default:F(()=>[(C(!0),Y(O,null,we(X(t),(g,d)=>(C(),Y(O,{key:d},[g.value.component?(C(),A(Re,{key:0,value:d},{default:F(()=>[xe(mt(g.value.title),1)]),_:2},1032,["value"])):se("v-if",!0)],64))),128))]),_:1},8,["modelValue"])]),_:1}))}},Zt=ut(Ut,[["__scopeId","data-v-e69b9875"]]);export{Zt as default}; diff --git a/pr-preview/pr-17/assets/PopUp-5-tUIM9N.js b/pr-preview/pr-17/assets/PopUp-5-tUIM9N.js deleted file mode 100644 index 9a10fbc..0000000 --- a/pr-preview/pr-17/assets/PopUp-5-tUIM9N.js +++ /dev/null @@ -1 +0,0 @@ -import{g as E,b as p,d as h,ab as w,p as V,y as R,r as O,L as M,w as x,a as T,D as q,ak as I,N,ae as W,e as j,ac as U,af as X,b1 as Y,b2 as z,ag as H,f as Q,h as G,i as J,Q as K,R as Z,ah as _,ad as ee,ai as te,b6 as ae,b7 as oe,aj as se,ba as ne,bb as re,X as ie,$ as b,a6 as k,a1 as S,a0 as le,a3 as P,a4 as ce,a5 as C,bm as ue}from"./index-Dvu417lt.js";import{m as de,V as B}from"./VOverlay-DGc1wXYF.js";import{a as y,d as me,s as D,c as fe,g as ge,n as ve,b as pe,f as he}from"./forwardRefs-DzUtZcD3.js";import"./transition-BKtsYhmO.js";const ye=V({target:[Object,Array]},"v-dialog-transition"),be=E()({name:"VDialogTransition",props:ye(),setup(e,i){let{slots:o}=i;const r={onBeforeEnter(t){t.style.pointerEvents="none",t.style.visibility="hidden"},async onEnter(t,c){await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),t.style.visibility="";const{x:a,y:l,sx:d,sy:m,speed:s}=L(e.target,t),u=y(t,[{transform:`translate(${a}px, ${l}px) scale(${d}, ${m})`,opacity:0},{}],{duration:225*s,easing:me});A(t)?.forEach(n=>{y(n,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*s,easing:D})}),u.finished.then(()=>c())},onAfterEnter(t){t.style.removeProperty("pointer-events")},onBeforeLeave(t){t.style.pointerEvents="none"},async onLeave(t,c){await new Promise(n=>requestAnimationFrame(n));const{x:a,y:l,sx:d,sy:m,speed:s}=L(e.target,t);y(t,[{},{transform:`translate(${a}px, ${l}px) scale(${d}, ${m})`,opacity:0}],{duration:125*s,easing:fe}).finished.then(()=>c()),A(t)?.forEach(n=>{y(n,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*s,easing:D})})},onAfterLeave(t){t.style.removeProperty("pointer-events")}};return()=>e.target?p(w,h({name:"dialog-transition"},r,{css:!1}),o):p(w,{name:"dialog-transition"},o)}});function A(e){const i=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;return i&&[...i]}function L(e,i){const o=ge(e),r=ve(i),[t,c]=getComputedStyle(i).transformOrigin.split(" ").map(F=>parseFloat(F)),[a,l]=getComputedStyle(i).getPropertyValue("--v-overlay-anchor-origin").split(" ");let d=o.left+o.width/2;a==="left"||l==="left"?d-=o.width/2:(a==="right"||l==="right")&&(d+=o.width/2);let m=o.top+o.height/2;a==="top"||l==="top"?m-=o.height/2:(a==="bottom"||l==="bottom")&&(m+=o.height/2);const s=o.width/r.width,u=o.height/r.height,n=Math.max(1,s,u),f=s/n||0,v=u/n||0,g=r.width*r.height/(window.innerWidth*window.innerHeight),$=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:d-(t+r.left),y:m-(c+r.top),sx:f,sy:v,speed:$}}const Pe=V({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...de({origin:"center center",scrollStrategy:"block",transition:{component:be},zIndex:2400})},"VDialog"),Ee=E()({name:"VDialog",props:Pe(),emits:{"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,i){let{emit:o,slots:r}=i;const t=R(e,"modelValue"),{scopeId:c}=pe(),a=O();function l(s){const u=s.relatedTarget,n=s.target;if(u!==n&&a.value?.contentEl&&a.value?.globalTop&&![document,a.value.contentEl].includes(n)&&!a.value.contentEl.contains(n)){const f=N(a.value.contentEl);if(!f.length)return;const v=f[0],g=f[f.length-1];u===v?g.focus():v.focus()}}M&&x(()=>t.value&&e.retainFocus,s=>{s?document.addEventListener("focusin",l):document.removeEventListener("focusin",l)},{immediate:!0});function d(){a.value?.contentEl&&!a.value.contentEl.contains(document.activeElement)&&a.value.contentEl.focus({preventScroll:!0})}function m(){o("afterLeave")}return x(t,async s=>{s||(await q(),a.value.activatorEl?.focus({preventScroll:!0}))}),T(()=>{const s=B.filterProps(e),u=h({"aria-haspopup":"dialog","aria-expanded":String(t.value)},e.activatorProps),n=h({tabindex:-1},e.contentProps);return p(B,h({ref:a,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},s,{modelValue:t.value,"onUpdate:modelValue":f=>t.value=f,"aria-modal":"true",activatorProps:u,contentProps:n,role:"dialog",onAfterEnter:d,onAfterLeave:m},c),{activator:r.activator,default:function(){for(var f=arguments.length,v=new Array(f),g=0;g[r.default?.(...v)]})}})}),he({},a)}}),Ve=V({color:String,...W(),...j(),...U(),...X(),...Y(),...z(),...H(),...Q(),...G()},"VSheet"),we=E()({name:"VSheet",props:Ve(),setup(e,i){let{slots:o}=i;const{themeClasses:r}=J(e),{backgroundColorClasses:t,backgroundColorStyles:c}=K(Z(e,"color")),{borderClasses:a}=_(e),{dimensionStyles:l}=ee(e),{elevationClasses:d}=te(e),{locationStyles:m}=ae(e),{positionClasses:s}=oe(e),{roundedClasses:u}=se(e);return T(()=>p(e.tag,{class:["v-sheet",r.value,t.value,a.value,d.value,s.value,u.value,e.class],style:[c.value,l.value,m.value,e.style]},o)),{}}}),xe={key:1},De={__name:"PopUp",props:ne({widget:{type:Object,default:void 0}},{modelValue:{type:Boolean,required:!0,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const i=re(e,"modelValue"),o=e,[r]=ie([o?.widget]);return(t,c)=>(b(),k("span",null,[p(Ee,{"max-width":"500px","max-height":"500px",absolute:"",scrollable:"","scroll-strategy":"block","close-on-back":"",modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=a=>i.value=a)},{default:S(()=>[p(we,null,{default:S(()=>[e.widget?(b(),le(ce(P(r).component),h({key:P(r).id},P(r).props),null,16)):C("v-if",!0),t.$slots.default?(b(),k("span",xe,[ue(t.$slots,"default")])):C("v-if",!0)]),_:3})]),_:3},8,["modelValue"])]))}};export{De as default}; diff --git a/pr-preview/pr-17/assets/PopUp-C7scL-fp.css b/pr-preview/pr-17/assets/PopUp-C7scL-fp.css deleted file mode 100644 index c3021ae..0000000 --- a/pr-preview/pr-17/assets/PopUp-C7scL-fp.css +++ /dev/null @@ -1 +0,0 @@ -.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px}.v-dialog>.v-overlay__content,.v-dialog>.v-overlay__content>form{display:flex;flex-direction:column;min-height:0}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:16px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:0}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-actions,.v-dialog>.v-overlay__content>form>.v-card>.v-card-actions{justify-content:flex-end}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-sheet{display:block}.v-sheet{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-sheet--border{border-width:thin;box-shadow:none}.v-sheet{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-sheet--absolute{position:absolute}.v-sheet--fixed{position:fixed}.v-sheet--relative{position:relative}.v-sheet--sticky{position:sticky}.v-sheet{border-radius:0}.v-sheet{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-sheet--rounded{border-radius:4px} diff --git a/pr-preview/pr-17/assets/VImg-BzNflMvG.css b/pr-preview/pr-17/assets/VImg-BzNflMvG.css deleted file mode 100644 index 07529bb..0000000 --- a/pr-preview/pr-17/assets/VImg-BzNflMvG.css +++ /dev/null @@ -1 +0,0 @@ -.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img--rounded{border-radius:4px}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none} diff --git a/pr-preview/pr-17/assets/VImg-CLLthewK.js b/pr-preview/pr-17/assets/VImg-CLLthewK.js deleted file mode 100644 index 395d1c3..0000000 --- a/pr-preview/pr-17/assets/VImg-CLLthewK.js +++ /dev/null @@ -1 +0,0 @@ -import{bh as O,p as W,e as D,ac as G,g as $,ad as J,a as E,b as n,c as h,ag as K,Q as X,R as Y,aj as Z,bi as p,s as f,r as ee,w as C,bj as te,D as ne,am as re,t as U,v as ae,F as se,d as ie,C as le,B as oe}from"./index-Dvu417lt.js";import{m as ue,M as b}from"./transition-BKtsYhmO.js";function ce(e,s){if(!O)return;const i=s.modifiers||{},l=s.value,{handler:v,options:R}=typeof l=="object"?l:{handler:l,options:{}},S=new IntersectionObserver(function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=arguments.length>1?arguments[1]:void 0;const r=e._observe?.[s.instance.$.uid];if(!r)return;const a=c.some(d=>d.isIntersecting);v&&(!i.quiet||r.init)&&(!i.once||a||r.init)&&v(a,c,_),a&&i.once?M(e,s):r.init=!0},R);e._observe=Object(e._observe),e._observe[s.instance.$.uid]={init:!1,observer:S},S.observe(e)}function M(e,s){const i=e._observe?.[s.instance.$.uid];i&&(i.observer.unobserve(e),delete e._observe[s.instance.$.uid])}const de={mounted:ce,unmounted:M};function ve(e){return{aspectStyles:h(()=>{const s=Number(e.aspectRatio);return s?{paddingBottom:String(1/s*100)+"%"}:void 0})}}const q=W({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...D(),...G()},"VResponsive"),F=$()({name:"VResponsive",props:q(),setup(e,s){let{slots:i}=s;const{aspectStyles:l}=ve(e),{dimensionStyles:v}=J(e);return E(()=>n("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[v.value,e.style]},[n("div",{class:"v-responsive__sizer",style:l.value},null),i.additional?.(),i.default&&n("div",{class:["v-responsive__content",e.contentClass]},[i.default()])])),{}}}),ge=W({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...q(),...D(),...K(),...ue()},"VImg"),Se=$()({name:"VImg",directives:{intersect:de},props:ge(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,s){let{emit:i,slots:l}=s;const{backgroundColorClasses:v,backgroundColorStyles:R}=X(Y(e,"color")),{roundedClasses:S}=Z(e),c=p("VImg"),_=f(""),r=ee(),a=f(e.eager?"loading":"idle"),d=f(),y=f(),o=h(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),g=h(()=>o.value.aspect||d.value/y.value||0);C(()=>e.src,()=>{z(a.value!=="idle")}),C(g,(t,u)=>{!t&&u&&r.value&&m(r.value)}),te(()=>z());function z(t){if(!(e.eager&&t)&&!(O&&!t&&!e.eager)){if(a.value="loading",o.value.lazySrc){const u=new Image;u.src=o.value.lazySrc,m(u,null)}o.value.src&&ne(()=>{i("loadstart",r.value?.currentSrc||o.value.src),setTimeout(()=>{if(!c.isUnmounted)if(r.value?.complete){if(r.value.naturalWidth||w(),a.value==="error")return;g.value||m(r.value,null),a.value==="loading"&&P()}else g.value||m(r.value),k()})})}}function P(){c.isUnmounted||(k(),m(r.value),a.value="loaded",i("load",r.value?.currentSrc||o.value.src))}function w(){c.isUnmounted||(a.value="error",i("error",r.value?.currentSrc||o.value.src))}function k(){const t=r.value;t&&(_.value=t.currentSrc||t.src)}let I=-1;re(()=>{clearTimeout(I)});function m(t){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const B=()=>{if(clearTimeout(I),c.isUnmounted)return;const{naturalHeight:j,naturalWidth:N}=t;j||N?(d.value=N,y.value=j):!t.complete&&a.value==="loading"&&u!=null?I=window.setTimeout(B,u):(t.currentSrc.endsWith(".svg")||t.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,y.value=1)};B()}const T=h(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),x=()=>{if(!o.value.src||a.value==="idle")return null;const t=n("img",{class:["v-img__img",T.value],style:{objectPosition:e.position},src:o.value.src,srcset:o.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:r,onLoad:P,onError:w},null),u=l.sources?.();return n(b,{transition:e.transition,appear:!0},{default:()=>[U(u?n("picture",{class:"v-img__picture"},[u,t]):t,[[oe,a.value==="loaded"]])]})},A=()=>n(b,{transition:e.transition},{default:()=>[o.value.lazySrc&&a.value!=="loaded"&&n("img",{class:["v-img__img","v-img__img--preload",T.value],style:{objectPosition:e.position},src:o.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),H=()=>l.placeholder?n(b,{transition:e.transition,appear:!0},{default:()=>[(a.value==="loading"||a.value==="error"&&!l.error)&&n("div",{class:"v-img__placeholder"},[l.placeholder()])]}):null,L=()=>l.error?n(b,{transition:e.transition,appear:!0},{default:()=>[a.value==="error"&&n("div",{class:"v-img__error"},[l.error()])]}):null,Q=()=>e.gradient?n("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,V=f(!1);{const t=C(g,u=>{u&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{V.value=!0})}),t())})}return E(()=>{const t=F.filterProps(e);return U(n(F,ie({class:["v-img",{"v-img--booting":!V.value},v.value,S.value,e.class],style:[{width:le(e.width==="auto"?d.value:e.width)},R.value,e.style]},t,{aspectRatio:g.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>n(se,null,[n(x,null,null),n(A,null,null),n(Q,null,null),n(H,null,null),n(L,null,null)]),default:l.default}),[[ae("intersect"),{handler:z,options:e.options},null,{once:!0}]])}),{currentSrc:_,image:r,state:a,naturalWidth:d,naturalHeight:y}}});export{Se as V}; diff --git a/pr-preview/pr-17/assets/VMain-BbSmdCG_.css b/pr-preview/pr-17/assets/VMain-BbSmdCG_.css deleted file mode 100644 index 7166582..0000000 --- a/pr-preview/pr-17/assets/VMain-BbSmdCG_.css +++ /dev/null @@ -1 +0,0 @@ -.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px} diff --git a/pr-preview/pr-17/assets/VMain-CoSaaYTf.js b/pr-preview/pr-17/assets/VMain-CoSaaYTf.js deleted file mode 100644 index f8f7fc6..0000000 --- a/pr-preview/pr-17/assets/VMain-CoSaaYTf.js +++ /dev/null @@ -1 +0,0 @@ -import{p as i,e as m,ac as c,f as u,g as d,ad as y,Y as v,a as f,b as e}from"./index-Dvu417lt.js";import{u as V}from"./ssrBoot-Uu_-yAhn.js";const b=i({scrollable:Boolean,...m(),...c(),...u({tag:"main"})},"VMain"),k=d()({name:"VMain",props:b(),setup(a,o){let{slots:s}=o;const{dimensionStyles:l}=y(a),{mainStyles:t,layoutIsReady:n}=v(),{ssrBootStyles:r}=V();return f(()=>e(a.tag,{class:["v-main",{"v-main--scrollable":a.scrollable},a.class],style:[t.value,r.value,l.value,a.style]},{default:()=>[a.scrollable?e("div",{class:"v-main__scroller"},[s.default?.()]):s.default?.()]})),n}});export{k as V}; diff --git a/pr-preview/pr-17/assets/VOverlay-7P9ZDRB1.css b/pr-preview/pr-17/assets/VOverlay-7P9ZDRB1.css deleted file mode 100644 index fa70609..0000000 --- a/pr-preview/pr-17/assets/VOverlay-7P9ZDRB1.css +++ /dev/null @@ -1 +0,0 @@ -.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;inset:0;pointer-events:none;position:fixed}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;inset:0;opacity:var(--v-overlay-opacity, .32);position:fixed}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)} diff --git a/pr-preview/pr-17/assets/VOverlay-DGc1wXYF.js b/pr-preview/pr-17/assets/VOverlay-DGc1wXYF.js deleted file mode 100644 index 464b8c0..0000000 --- a/pr-preview/pr-17/assets/VOverlay-DGc1wXYF.js +++ /dev/null @@ -1 +0,0 @@ -import{bn as Oe,bo as ke,p as G,r as V,L as q,ao as se,w as L,bp as _,bq as De,br as ve,bs as te,bt as ne,bu as de,c as P,D as ce,bv as me,C as F,al as ye,ap as ue,bw as Pe,bx as Ve,bi as Ce,x as pe,by as ge,d as W,bz as Ie,s as Y,H as We,Z as qe,aM as Ae,q as je,ar as ze,bA as $e,e as Ye,ac as Ge,h as Ue,g as Xe,y as Ze,i as Ke,j as Qe,Q as Je,R as et,ad as tt,am as nt,bB as ot,a as at,b as D,bC as rt,t as it,B as lt,v as st,F as ct,ab as ut,bD as ft}from"./index-Dvu417lt.js";import{g as vt,B as oe,e as he,n as dt,m as mt,u as yt,b as gt,a as ht,s as bt}from"./forwardRefs-DzUtZcD3.js";import{m as wt,M as Et}from"./transition-BKtsYhmO.js";const Z=new WeakMap;function St(e,t){Object.keys(t).forEach(n=>{if(Oe(n)){const o=ke(n),r=Z.get(e);if(t[n]==null)r?.forEach(l=>{const[a,s]=l;a===o&&(e.removeEventListener(o,s),r.delete(l))});else if(!r||![...r].some(l=>l[0]===o&&l[1]===t[n])){e.addEventListener(o,t[n]);const l=r||new Set;l.add([o,t[n]]),Z.has(e)||Z.set(e,l)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function xt(e,t){Object.keys(t).forEach(n=>{if(Oe(n)){const o=ke(n),r=Z.get(e);r?.forEach(l=>{const[a,s]=l;a===o&&(e.removeEventListener(o,s),r.delete(l))})}else e.removeAttribute(n)})}function Te(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}function Ot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?kt(e):fe(e))return e;e=e.parentElement}return document.scrollingElement}function K(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(fe(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function fe(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function kt(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function Pt(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Ct(){return!0}function Le(e,t,n){if(!e||Be(e,n)===!1)return!1;const o=Te(t);if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&o.host===e.target)return!1;const r=(typeof n.value=="object"&&n.value.include||(()=>[]))();return r.push(t),!r.some(l=>l?.contains(e.target))}function Be(e,t){return(typeof t.value=="object"&&t.value.closeConditional||Ct)(e)}function pt(e,t,n){const o=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&Le(e,t,n)&&setTimeout(()=>{Be(e,n)&&o&&o(e)},0)}function be(e,t){const n=Te(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const At={mounted(e,t){const n=r=>pt(r,e,t),o=r=>{e._clickOutside.lastMousedownWasOutside=Le(r,e,t)};be(e,r=>{r.addEventListener("click",n,!0),r.addEventListener("mousedown",o,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:o}},unmounted(e,t){e._clickOutside&&(be(e,n=>{if(!n||!e._clickOutside?.[t.instance.$.uid])return;const{onClick:o,onMousedown:r}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",o,!0),n.removeEventListener("mousedown",r,!0)}),delete e._clickOutside[t.instance.$.uid])}};function ae(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Tt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function we(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:o}=e,r=o==="left"?0:o==="center"?t.width/2:o==="right"?t.width:o,l=n==="top"?0:n==="bottom"?t.height:n;return ae({x:r,y:l},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:o}=e,r=n==="left"?0:n==="right"?t.width:n,l=o==="top"?0:o==="center"?t.height/2:o==="bottom"?t.height:o;return ae({x:r,y:l},t)}return ae({x:t.width/2,y:t.height/2},t)}const Me={static:Mt,connected:Ft},Lt=G({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in Me},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Bt(e,t){const n=V({}),o=V();q&&se(()=>!!(t.isActive.value&&e.locationStrategy),l=>{L(()=>e.locationStrategy,l),_(()=>{window.removeEventListener("resize",r),o.value=void 0}),window.addEventListener("resize",r,{passive:!0}),typeof e.locationStrategy=="function"?o.value=e.locationStrategy(t,e,n)?.updateLocation:o.value=Me[e.locationStrategy](t,e,n)?.updateLocation});function r(l){o.value?.(l)}return{contentStyles:n,updateLocation:o}}function Mt(){}function Rt(e,t){t?e.style.removeProperty("left"):e.style.removeProperty("right");const n=dt(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function Ft(e,t,n){(Array.isArray(e.target.value)||Pt(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:r,preferredOrigin:l}=De(()=>{const u=ve(t.location,e.isRtl.value),c=t.origin==="overlap"?u:t.origin==="auto"?te(u):ve(t.origin,e.isRtl.value);return u.side===c.side&&u.align===ne(c).align?{preferredAnchor:de(u),preferredOrigin:de(c)}:{preferredAnchor:u,preferredOrigin:c}}),[a,s,d,m]=["minWidth","minHeight","maxWidth","maxHeight"].map(u=>P(()=>{const c=parseFloat(t[u]);return isNaN(c)?1/0:c})),y=P(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const u=t.offset.split(" ").map(parseFloat);return u.length<2&&u.push(0),u}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let C=!1;const O=new ResizeObserver(()=>{C&&S()});L([e.target,e.contentEl],(u,c)=>{let[x,A]=u,[h,w]=c;h&&!Array.isArray(h)&&O.unobserve(h),x&&!Array.isArray(x)&&O.observe(x),w&&O.unobserve(w),A&&O.observe(A)},{immediate:!0}),_(()=>{O.disconnect()});function S(){if(C=!1,requestAnimationFrame(()=>C=!0),!e.target.value||!e.contentEl.value)return;const u=vt(e.target.value),c=Rt(e.contentEl.value,e.isRtl.value),x=K(e.contentEl.value),A=12;x.length||(x.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(c.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),c.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const h=x.reduce((E,g)=>{const f=g.getBoundingClientRect(),v=new oe({x:g===document.documentElement?0:f.x,y:g===document.documentElement?0:f.y,width:g.clientWidth,height:g.clientHeight});return E?new oe({x:Math.max(E.left,v.left),y:Math.max(E.top,v.top),width:Math.min(E.right,v.right)-Math.max(E.left,v.left),height:Math.min(E.bottom,v.bottom)-Math.max(E.top,v.top)}):v},void 0);h.x+=A,h.y+=A,h.width-=A*2,h.height-=A*2;let w={anchor:r.value,origin:l.value};function H(E){const g=new oe(c),f=we(E.anchor,u),v=we(E.origin,g);let{x:M,y:T}=Tt(f,v);switch(E.anchor.side){case"top":T-=y.value[0];break;case"bottom":T+=y.value[0];break;case"left":M-=y.value[0];break;case"right":M+=y.value[0];break}switch(E.anchor.align){case"top":T-=y.value[1];break;case"bottom":T+=y.value[1];break;case"left":M-=y.value[1];break;case"right":M+=y.value[1];break}return g.x+=M,g.y+=T,g.width=Math.min(g.width,d.value),g.height=Math.min(g.height,m.value),{overflows:he(g,h),x:M,y:T}}let B=0,p=0;const i={x:0,y:0},N={x:!1,y:!1};let J=-1;for(;!(J++>10);){const{x:E,y:g,overflows:f}=H(w);B+=E,p+=g,c.x+=E,c.y+=g;{const v=me(w.anchor),M=f.x.before||f.x.after,T=f.y.before||f.y.after;let z=!1;if(["x","y"].forEach(k=>{if(k==="x"&&M&&!N.x||k==="y"&&T&&!N.y){const R={anchor:{...w.anchor},origin:{...w.origin}},U=k==="x"?v==="y"?ne:te:v==="y"?te:ne;R.anchor=U(R.anchor),R.origin=U(R.origin);const{overflows:I}=H(R);(I[k].before<=f[k].before&&I[k].after<=f[k].after||I[k].before+I[k].after<(f[k].before+f[k].after)/2)&&(w=R,z=N[k]=!0)}}),z)continue}f.x.before&&(B+=f.x.before,c.x+=f.x.before),f.x.after&&(B-=f.x.after,c.x-=f.x.after),f.y.before&&(p+=f.y.before,c.y+=f.y.before),f.y.after&&(p-=f.y.after,c.y-=f.y.after);{const v=he(c,h);i.x=h.width-v.x.before-v.x.after,i.y=h.height-v.y.before-v.y.after,B+=v.x.before,c.x+=v.x.before,p+=v.y.before,c.y+=v.y.before}break}const ee=me(w.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${w.anchor.side} ${w.anchor.align}`,transformOrigin:`${w.origin.side} ${w.origin.align}`,top:F(re(p)),left:e.isRtl.value?void 0:F(re(B)),right:e.isRtl.value?F(re(-B)):void 0,minWidth:F(ee==="y"?Math.min(a.value,u.width):a.value),maxWidth:F(Ee(ye(i.x,a.value===1/0?0:a.value,d.value))),maxHeight:F(Ee(ye(i.y,s.value===1/0?0:s.value,m.value)))}),{available:i,contentBox:c}}return L(()=>[r.value,l.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>S()),ce(()=>{const u=S();if(!u)return;const{available:c,contentBox:x}=u;x.height>c.y&&requestAnimationFrame(()=>{S(),requestAnimationFrame(()=>{S()})})}),{updateLocation:S}}function re(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Ee(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let ie=!0;const Q=[];function Nt(e){!ie||Q.length?(Q.push(e),le()):(ie=!1,e(),le())}let Se=-1;function le(){cancelAnimationFrame(Se),Se=requestAnimationFrame(()=>{const e=Q.shift();e&&e(),Q.length?le():ie=!0})}const Re={none:null,close:Dt,block:Vt,reposition:It},_t=G({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Re}},"VOverlay-scroll-strategies");function Ht(e,t){if(!q)return;let n;ue(async()=>{n?.stop(),t.isActive.value&&e.scrollStrategy&&(n=Pe(),await new Promise(o=>setTimeout(o)),n.active&&n.run(()=>{typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):Re[e.scrollStrategy]?.(t,e,n)}))}),_(()=>{n?.stop()})}function Dt(e){function t(n){e.isActive.value=!1}Fe(e.targetEl.value??e.contentEl.value,t)}function Vt(e,t){const n=e.root.value?.offsetParent,o=[...new Set([...K(e.targetEl.value,t.contained?n:void 0),...K(e.contentEl.value,t.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),r=window.innerWidth-document.documentElement.offsetWidth,l=(a=>fe(a)&&a)(n||document.documentElement);l&&e.root.value.classList.add("v-overlay--scroll-blocked"),o.forEach((a,s)=>{a.style.setProperty("--v-body-scroll-x",F(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",F(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",F(r)),a.classList.add("v-overlay-scroll-blocked")}),_(()=>{o.forEach((a,s)=>{const d=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),m=parseFloat(a.style.getPropertyValue("--v-body-scroll-y")),y=a.style.scrollBehavior;a.style.scrollBehavior="auto",a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-d,a.scrollTop=-m,a.style.scrollBehavior=y}),l&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function It(e,t,n){let o=!1,r=-1,l=-1;function a(s){Nt(()=>{const d=performance.now();e.updateLocation.value?.(s),o=(performance.now()-d)/(1e3/60)>2})}l=(typeof requestIdleCallback>"u"?s=>s():requestIdleCallback)(()=>{n.run(()=>{Fe(e.targetEl.value??e.contentEl.value,s=>{o?(cancelAnimationFrame(r),r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{a(s)})})):a(s)})})}),_(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(l),cancelAnimationFrame(r)})}function Fe(e,t){const n=[document,...K(e)];n.forEach(o=>{o.addEventListener("scroll",t,{passive:!0})}),_(()=>{n.forEach(o=>{o.removeEventListener("scroll",t)})})}const Wt=Symbol.for("vuetify:v-menu"),qt=G({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function jt(e,t){let n=()=>{};function o(a){n?.();const s=Number(a?e.openDelay:e.closeDelay);return new Promise(d=>{n=Ve(s,()=>{t?.(a),d(a)})})}function r(){return o(!0)}function l(){return o(!1)}return{clearDelay:n,runOpenDelay:r,runCloseDelay:l}}const zt=G({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...qt()},"VOverlay-activator");function $t(e,t){let{isActive:n,isTop:o}=t;const r=Ce("useActivator"),l=V();let a=!1,s=!1,d=!0;const m=P(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),y=P(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!m.value),{runOpenDelay:C,runCloseDelay:O}=jt(e,i=>{i===(e.openOnHover&&a||m.value&&s)&&!(e.openOnHover&&n.value&&!o.value)&&(n.value!==i&&(d=!0),n.value=i)}),S=V(),u={onClick:i=>{i.stopPropagation(),l.value=i.currentTarget||i.target,n.value||(S.value=[i.clientX,i.clientY]),n.value=!n.value},onMouseenter:i=>{i.sourceCapabilities?.firesTouchEvents||(a=!0,l.value=i.currentTarget||i.target,C())},onMouseleave:i=>{a=!1,O()},onFocus:i=>{Ie(i.target,":focus-visible")!==!1&&(s=!0,i.stopPropagation(),l.value=i.currentTarget||i.target,C())},onBlur:i=>{s=!1,i.stopPropagation(),O()}},c=P(()=>{const i={};return y.value&&(i.onClick=u.onClick),e.openOnHover&&(i.onMouseenter=u.onMouseenter,i.onMouseleave=u.onMouseleave),m.value&&(i.onFocus=u.onFocus,i.onBlur=u.onBlur),i}),x=P(()=>{const i={};if(e.openOnHover&&(i.onMouseenter=()=>{a=!0,C()},i.onMouseleave=()=>{a=!1,O()}),m.value&&(i.onFocusin=()=>{s=!0,C()},i.onFocusout=()=>{s=!1,O()}),e.closeOnContentClick){const N=pe(Wt,null);i.onClick=()=>{n.value=!1,N?.closeParents()}}return i}),A=P(()=>{const i={};return e.openOnHover&&(i.onMouseenter=()=>{d&&(a=!0,d=!1,C())},i.onMouseleave=()=>{a=!1,O()}),i});L(o,i=>{i&&(e.openOnHover&&!a&&(!m.value||!s)||m.value&&!s&&(!e.openOnHover||!a))&&(n.value=!1)}),L(n,i=>{i||setTimeout(()=>{S.value=void 0})},{flush:"post"});const h=ge();ue(()=>{h.value&&ce(()=>{l.value=h.el})});const w=ge(),H=P(()=>e.target==="cursor"&&S.value?S.value:w.value?w.el:Ne(e.target,r)||l.value),B=P(()=>Array.isArray(H.value)?void 0:H.value);let p;return L(()=>!!e.activator,i=>{i&&q?(p=Pe(),p.run(()=>{Yt(e,r,{activatorEl:l,activatorEvents:c})})):p&&p.stop()},{flush:"post",immediate:!0}),_(()=>{p?.stop()}),{activatorEl:l,activatorRef:h,target:H,targetEl:B,targetRef:w,activatorEvents:c,contentEvents:x,scrimEvents:A}}function Yt(e,t,n){let{activatorEl:o,activatorEvents:r}=n;L(()=>e.activator,(d,m)=>{if(m&&d!==m){const y=s(m);y&&a(y)}d&&ce(()=>l())},{immediate:!0}),L(()=>e.activatorProps,()=>{l()}),_(()=>{a()});function l(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;d&&St(d,W(r.value,m))}function a(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;d&&xt(d,W(r.value,m))}function s(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const m=Ne(d,t);return o.value=m?.nodeType===Node.ELEMENT_NODE?m:void 0,o.value}}function Ne(e,t){if(!e)return;let n;if(e==="parent"){let o=t?.proxy?.$el?.parentNode;for(;o?.hasAttribute("data-no-activator");)o=o.parentNode;n=o}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function Gt(){if(!q)return Y(!1);const{ssr:e}=We();if(e){const t=Y(!1);return qe(()=>{t.value=!0}),t}else return Y(!0)}const xe=Symbol.for("vuetify:stack"),$=Ae([]);function Ut(e,t,n){const o=Ce("useStack"),r=!n,l=pe(xe,void 0),a=Ae({activeChildren:new Set});je(xe,a);const s=Y(+t.value);se(e,()=>{const y=$.at(-1)?.[1];s.value=y?y+10:+t.value,r&&$.push([o.uid,s.value]),l?.activeChildren.add(o.uid),_(()=>{if(r){const C=$e($).findIndex(O=>O[0]===o.uid);$.splice(C,1)}l?.activeChildren.delete(o.uid)})});const d=Y(!0);r&&ue(()=>{const y=$.at(-1)?.[0]===o.uid;setTimeout(()=>d.value=y)});const m=P(()=>!a.activeChildren.size);return{globalTop:ze(d),localTop:m,stackStyles:P(()=>({zIndex:s.value}))}}function Xt(e){return{teleportTarget:P(()=>{const n=e();if(n===!0||!q)return;const o=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(o==null)return;let r=o.querySelector(":scope > .v-overlay-container");return r||(r=document.createElement("div"),r.className="v-overlay-container",o.appendChild(r)),r})}}function Zt(e){const{modelValue:t,color:n,...o}=e;return D(ut,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&D("div",W({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},o),null)]})}const Kt=G({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...zt(),...Ye(),...Ge(),...mt(),...Lt(),..._t(),...Ue(),...wt()},"VOverlay"),tn=Xe()({name:"VOverlay",directives:{ClickOutside:At},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Kt()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:o,emit:r}=t;const l=Ze(e,"modelValue"),a=P({get:()=>l.value,set:b=>{b&&e.disabled||(l.value=b)}}),{themeClasses:s}=Ke(e),{rtlClasses:d,isRtl:m}=Qe(),{hasContent:y,onAfterLeave:C}=yt(e,a),O=Je(P(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:S,localTop:u,stackStyles:c}=Ut(a,et(e,"zIndex"),e._disableGlobalStack),{activatorEl:x,activatorRef:A,target:h,targetEl:w,targetRef:H,activatorEvents:B,contentEvents:p,scrimEvents:i}=$t(e,{isActive:a,isTop:u}),{teleportTarget:N}=Xt(()=>{const b=e.attach||e.contained;if(b)return b;const j=x?.value?.getRootNode();return j instanceof ShadowRoot?j:!1}),{dimensionStyles:J}=tt(e),ee=Gt(),{scopeId:E}=gt();L(()=>e.disabled,b=>{b&&(a.value=!1)});const g=V(),f=V(),v=V(),{contentStyles:M,updateLocation:T}=Bt(e,{isRtl:m,contentEl:v,target:h,isActive:a});Ht(e,{root:g,contentEl:v,targetEl:w,isActive:a,updateLocation:T});function z(b){r("click:outside",b),e.persistent?X():a.value=!1}function k(b){return a.value&&S.value&&(!e.scrim||b.target===f.value)}q&&L(a,b=>{b?window.addEventListener("keydown",R):window.removeEventListener("keydown",R)},{immediate:!0}),nt(()=>{q&&window.removeEventListener("keydown",R)});function R(b){b.key==="Escape"&&S.value&&(e.persistent?X():(a.value=!1,v.value?.contains(document.activeElement)&&x.value?.focus()))}const U=ot();se(()=>e.closeOnBack,()=>{ft(U,b=>{S.value&&a.value?(b(!1),e.persistent?X():a.value=!1):b()})});const I=V();L(()=>a.value&&(e.absolute||e.contained)&&N.value==null,b=>{if(b){const j=Ot(g.value);j&&j!==document.scrollingElement&&(I.value=j.scrollTop)}});function X(){e.noClickAnimation||v.value&&ht(v.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:bt})}function _e(){r("afterEnter")}function He(){C(),r("afterLeave")}return at(()=>D(ct,null,[n.activator?.({isActive:a.value,targetRef:H,props:W({ref:A},B.value,e.activatorProps)}),ee.value&&y.value&&D(rt,{disabled:!N.value,to:N.value},{default:()=>[D("div",W({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":a.value,"v-overlay--contained":e.contained},s.value,d.value,e.class],style:[c.value,{"--v-overlay-opacity":e.opacity,top:F(I.value)},e.style],ref:g},E,o),[D(Zt,W({color:O,modelValue:a.value&&!!e.scrim,ref:f},i.value),null),D(Et,{appear:!0,persisted:!0,transition:e.transition,target:h.value,onAfterEnter:_e,onAfterLeave:He},{default:()=>[it(D("div",W({ref:v,class:["v-overlay__content",e.contentClass],style:[J.value,M.value]},p.value,e.contentProps),[n.default?.({isActive:a})]),[[lt,a.value],[st("click-outside"),{handler:z,closeConditional:k,include:()=>[x.value]}]])]})])]})])),{activatorEl:x,scrimEl:f,target:h,animateClick:X,contentEl:v,globalTop:S,localTop:u,updateLocation:T}}});export{tn as V,Kt as m}; diff --git a/pr-preview/pr-17/assets/WidgetsContainer-CFwZEFgj.js b/pr-preview/pr-17/assets/WidgetsContainer-CFwZEFgj.js deleted file mode 100644 index ad76ace..0000000 --- a/pr-preview/pr-17/assets/WidgetsContainer-CFwZEFgj.js +++ /dev/null @@ -1 +0,0 @@ -import{X as g,r as i,Y as y,Z as x,D as v,$ as n,a6 as m,a7 as E,a3 as H,F as k,a9 as f,aa as C,a0 as _,d as w,a4 as A,bE as D}from"./index-Dvu417lt.js";class F extends HTMLDetailsElement{constructor(){super()}connectedCallback(){this.el=this,this.summary=this.querySelector("summary"),this.content=this.lastElementChild,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.summary.addEventListener("click",e=>this.onClick(e))}onClick(e){e?.preventDefault(),this.el.style.overflow="hidden",this.isClosing||!this.el.open?this.doOpen():(this.isExpanding||this.el.open)&&this.shrink()}shrink(){this.isClosing=!0;const e=`${this.el.offsetHeight}px`,t=`${this.summary.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[e,t]},{duration:300,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>this.isClosing=!1}doOpen(){this.el.style.height=`${this.el.offsetHeight}px`,this.el.open=!0,window.requestAnimationFrame(()=>this.expand()),this.parentElement.querySelectorAll("details[open][exclusive]").forEach(t=>{t!==this&&t.onClick()})}expand(){this.isExpanding=!0;const e=`${this.el.offsetHeight}px`,t=`${this.summary.offsetHeight+this.content.offsetHeight}px`;this.animation&&this.animation.cancel(),this.animation=this.el.animate({height:[e,t]},{duration:300,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>this.isExpanding=!1}onAnimationFinish(e){this.el.open=e,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.height=this.el.style.overflow=""}}customElements.define("animated-details",F,{extends:"details"});const b={__name:"WidgetsContainer",props:{widgets:{type:Array,required:!0}},setup(a){const t=g(a.widgets),l=i([]),o=i([]),h=i(""),r=i(0),{mainRect:d}=y();return x(async()=>{await v(()=>{r.value=o.value.reduce((c,u)=>c+=u.clientHeight,0),h.value=(l.value[0].parentElement?.scrollHeight??0)-r.value-d.value.top+"px"})}),(c,u)=>(n(!0),m(k,null,E(H(t),(s,p)=>(n(),m("details",{is:"animated-details",ref_for:!0,ref_key:"detailsEls",ref:l,key:p,class:"overflow-auto",exclusive:""},[f("summary",{ref_for:!0,ref_key:"summaryEls",ref:o},C(s.value.title),513),f("span",{style:D({height:h.value}),class:"d-flex flex-column"},[(n(),_(A(s.value.component),w({ref_for:!0},s.value.props),null,16))],4)]))),128))}};export{b as default}; diff --git a/pr-preview/pr-17/assets/_commonjsHelpers-Cpj98o6Y.js b/pr-preview/pr-17/assets/_commonjsHelpers-Cpj98o6Y.js deleted file mode 100644 index b285ce5..0000000 --- a/pr-preview/pr-17/assets/_commonjsHelpers-Cpj98o6Y.js +++ /dev/null @@ -1 +0,0 @@ -var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{o as c,l as g}; diff --git a/pr-preview/pr-17/assets/basedecoder-DHcBySSe-gdlnpIMU.js b/pr-preview/pr-17/assets/basedecoder-DHcBySSe-gdlnpIMU.js deleted file mode 100644 index 383733d..0000000 --- a/pr-preview/pr-17/assets/basedecoder-DHcBySSe-gdlnpIMU.js +++ /dev/null @@ -1 +0,0 @@ -function h(i,e){let t=i.length-e,c=0;do{for(let l=e;l>0;l--)i[c+e]+=i[c],c++;t-=e}while(t>0)}function f(i,e,t){let c=0,l=i.length;const n=l/t;for(;l>e;){for(let r=e;r>0;--r)i[c+e]+=i[c],++c;l-=e}const o=i.slice();for(let r=0;r=i.byteLength);++s){let a;if(e===2){switch(l[0]){case 8:a=new Uint8Array(i,s*r*t*o,r*t*o);break;case 16:a=new Uint16Array(i,s*r*t*o,r*t*o/2);break;case 32:a=new Uint32Array(i,s*r*t*o,r*t*o/4);break;default:throw new Error(`Predictor 2 not allowed with ${l[0]} bits per sample.`)}h(a,r)}else e===3&&(a=new Uint8Array(i,s*r*t*o,r*t*o),f(a,r,o))}return i}class w{async decode(e,t){const c=await this.decodeBlock(t),l=e.Predictor||1;if(l!==1){const n=!e.StripOffsets,o=n?e.TileWidth:e.ImageWidth,r=n?e.TileLength:e.RowsPerStrip||e.ImageLength;return d(c,l,o,r,e.BitsPerSample,e.PlanarConfiguration)}return c}}export{w as g}; diff --git a/pr-preview/pr-17/assets/decoder-DJlmx386-CaSv2t6h.js b/pr-preview/pr-17/assets/decoder-DJlmx386-CaSv2t6h.js deleted file mode 100644 index b19bf68..0000000 --- a/pr-preview/pr-17/assets/decoder-DJlmx386-CaSv2t6h.js +++ /dev/null @@ -1 +0,0 @@ -const e=Worker;function t(){const A='function A(A,e,t,i,r,I,g){try{var n=A[I](g),a=n.value}catch(A){return void t(A)}n.done?e(a):Promise.resolve(a).then(i,r)}function e(e){return function(){var t=this,i=arguments;return new Promise((function(r,I){var g=e.apply(t,i);function n(e){A(g,r,I,n,a,"next",e)}function a(e){A(g,r,I,n,a,"throw",e)}n(void 0)}))}}function t(A){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(A)}var i={exports:{}};!function(A){var e=function(A){var e,i=Object.prototype,r=i.hasOwnProperty,I="function"==typeof Symbol?Symbol:{},g=I.iterator||"@@iterator",n=I.asyncIterator||"@@asyncIterator",a=I.toStringTag||"@@toStringTag";function o(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{o({},"")}catch(A){o=function(A,e,t){return A[e]=t}}function B(A,e,t,i){var r=e&&e.prototype instanceof h?e:h,I=Object.create(r.prototype),g=new S(i||[]);return I._invoke=function(A,e,t){var i=Q;return function(r,I){if(i===s)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw I;return R()}for(t.method=r,t.arg=I;;){var g=t.delegate;if(g){var n=m(g,t);if(n){if(n===c)continue;return n}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(i===Q)throw i=f,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);i=s;var a=C(A,e,t);if("normal"===a.type){if(i=t.done?f:E,a.arg===c)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(i=f,t.method="throw",t.arg=a.arg)}}}(A,t,g),I}function C(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(A){return{type:"throw",arg:A}}}A.wrap=B;var Q="suspendedStart",E="suspendedYield",s="executing",f="completed",c={};function h(){}function l(){}function u(){}var w={};o(w,g,(function(){return this}));var d=Object.getPrototypeOf,D=d&&d(d(v([])));D&&D!==i&&r.call(D,g)&&(w=D);var y=u.prototype=h.prototype=Object.create(w);function k(A){["next","throw","return"].forEach((function(e){o(A,e,(function(A){return this._invoke(e,A)}))}))}function p(A,e){function i(I,g,n,a){var o=C(A[I],A,g);if("throw"!==o.type){var B=o.arg,Q=B.value;return Q&&"object"===t(Q)&&r.call(Q,"__await")?e.resolve(Q.__await).then((function(A){i("next",A,n,a)}),(function(A){i("throw",A,n,a)})):e.resolve(Q).then((function(A){B.value=A,n(B)}),(function(A){return i("throw",A,n,a)}))}a(o.arg)}var I;this._invoke=function(A,t){function r(){return new e((function(e,r){i(A,t,e,r)}))}return I=I?I.then(r,r):r()}}function m(A,t){var i=A.iterator[t.method];if(i===e){if(t.delegate=null,"throw"===t.method){if(A.iterator.return&&(t.method="return",t.arg=e,m(A,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a \'throw\' method")}return c}var r=C(i,A.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var I=r.arg;return I?I.done?(t[A.resultName]=I.value,t.next=A.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,c):I:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function G(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function F(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function S(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(G,this),this.reset(!0)}function v(A){if(A){var t=A[g];if(t)return t.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var i=-1,I=function t(){for(;++i=0;--I){var g=this.tryEntries[I],n=g.completion;if("root"===g.tryLoc)return i("end");if(g.tryLoc<=this.prev){var a=r.call(g,"catchLoc"),o=r.call(g,"finallyLoc");if(a&&o){if(this.prev=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),F(t),c}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var i=t.completion;if("throw"===i.type){var r=i.arg;F(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,t,i){return this.delegate={iterator:v(A),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),c}},A}(A.exports);try{regeneratorRuntime=e}catch(A){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(i);var r=i.exports,I=new Map;function g(A,e){Array.isArray(A)||(A=[A]),A.forEach((function(A){return I.set(A,e)}))}function n(A){return a.apply(this,arguments)}function a(){return(a=e(r.mark((function A(e){var t,i;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(t=I.get(e.Compression)){A.next=3;break}throw new Error("Unknown compression method identifier: ".concat(e.Compression));case 3:return A.next=5,t();case 5:return i=A.sent,A.abrupt("return",new i(e));case 7:case"end":return A.stop()}}),A)})))).apply(this,arguments)}g([void 0,1],(function(){return Promise.resolve().then((function(){return y})).then((function(A){return A.default}))})),g(5,(function(){return Promise.resolve().then((function(){return F})).then((function(A){return A.default}))})),g(6,(function(){throw new Error("old style JPEG compression is not supported.")})),g(7,(function(){return Promise.resolve().then((function(){return N})).then((function(A){return A.default}))})),g([8,32946],(function(){return Promise.resolve().then((function(){return OA})).then((function(A){return A.default}))})),g(32773,(function(){return Promise.resolve().then((function(){return _A})).then((function(A){return A.default}))})),g(34887,(function(){return Promise.resolve().then((function(){return le})).then(function(){var A=e(r.mark((function A(e){return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,e.zstd.init();case 2:return A.abrupt("return",e);case 3:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}()).then((function(A){return A.default}))})),g(50001,(function(){return Promise.resolve().then((function(){return de})).then((function(A){return A.default}))}));var o=globalThis;function B(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function C(A,e){for(var t=0;t0;r--)A[i+e]+=A[i],i++;t-=e}while(t>0)}function l(A,e,t){for(var i=0,r=A.length,I=r/t;r>e;){for(var g=e;g>0;--g)A[i+e]+=A[i],++i;r-=e}for(var n=A.slice(),a=0;a=A.byteLength);++o){var B=void 0;if(2===e){switch(r[0]){case 8:B=new Uint8Array(A,o*a*t*n,a*t*n);break;case 16:B=new Uint16Array(A,o*a*t*n,a*t*n/2);break;case 32:B=new Uint32Array(A,o*a*t*n,a*t*n/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(r[0]," bits per sample."))}h(B,a)}else 3===e&&l(B=new Uint8Array(A,o*a*t*n,a*t*n),a,n)}return A}o.addEventListener("message",function(){var A=e(r.mark((function A(e){var t,i,I,g,a,B;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.data,i=t.id,I=t.fileDirectory,g=t.buffer,A.next=3,n(I);case 3:return a=A.sent,A.next=6,a.decode(I,g);case 6:B=A.sent,o.postMessage({decoded:B,id:i},[B]);case 8:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}());var w=function(){function A(){B(this,A)}var t;return Q(A,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n,a;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.decodeBlock(t);case 2:if(i=A.sent,1===(I=e.Predictor||1)){A.next=9;break}return g=!e.StripOffsets,n=g?e.TileWidth:e.ImageWidth,a=g?e.TileLength:e.RowsPerStrip||e.ImageLength,A.abrupt("return",u(i,I,n,a,e.BitsPerSample,e.PlanarConfiguration));case 9:return A.abrupt("return",i);case 10:case"end":return A.stop()}}),A,this)}))),function(A,e){return t.apply(this,arguments)})}]),A}();function d(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var D=function(A){s(t,w);var e=d(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return A}}]),t}(),y=Object.freeze({__proto__:null,default:D});function k(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}function p(A,e){for(var t=e.length-1;t>=0;t--)A.push(e[t]);return A}function m(A){for(var e=new Uint16Array(4093),t=new Uint8Array(4093),i=0;i<=257;i++)e[i]=4096,t[i]=i;var r=258,I=9,g=0;function n(){r=258,I=9}function a(A){var e=function(A,e,t){var i=e%8,r=Math.floor(e/8),I=8-i,g=e+t-8*(r+1),n=8*(r+2)-(e+t),a=8*(r+2)-e;if(n=Math.max(0,n),r>=A.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),257;var o=A[r]&Math.pow(2,8-i)-1,B=o<<=t-I;if(r+1>>n;B+=C<<=Math.max(0,t-a)}if(g>8&&r+2>>Q}return B}(A,g,I);return g+=I,e}function o(A,i){return t[r]=i,e[r]=A,++r-1}function B(A){for(var i=[],r=A;4096!==r;r=e[r])i.push(t[r]);return i}var C=[];n();for(var Q,E=new Uint8Array(A),s=a(E);257!==s;){if(256===s){for(n(),s=a(E);256===s;)s=a(E);if(257===s)break;if(s>256)throw new Error("corrupted code at scanline ".concat(s));p(C,B(s)),Q=s}else if(s=Math.pow(2,I)&&(12===I?Q=void 0:I++),s=a(E)}return new Uint8Array(C)}var G=function(A){s(t,w);var e=k(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return m(A).buffer}}]),t}(),F=Object.freeze({__proto__:null,default:G});function S(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var v=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);function R(A,e){for(var t=0,i=[],r=16;r>0&&!A[r-1];)--r;i.push({children:[],index:0});for(var I,g=i[0],n=0;n0;)g=i.pop();for(g.index++,i.push(g);i.length<=n;)i.push(I={children:[],index:0}),g.children[g.index]=I.children,g=I;t++}n+10)return f--,s>>f&1;if(255===(s=A[E++])){var e=A[E++];if(e)throw new Error("unexpected marker: ".concat((s<<8|e).toString(16)))}return f=7,s>>>7}function h(A){for(var e,i=A;null!==(e=c());){if("number"==typeof(i=i[e]))return i;if("object"!==t(i))throw new Error("invalid huffman sequence")}return null}function l(A){for(var e=A,t=0;e>0;){var i=c();if(null===i)return;t=t<<1|i,--e}return t}function u(A){var e=l(A);return e>=1<0)w--;else for(var t=g,i=n;t<=i;){var r=h(A.huffmanTableAC),I=15&r,a=r>>4;if(0===I){if(a<15){w=l(a)+(1<>4,0===C)r<15?(w=l(r)+(1<>4;if(0===g){if(n<15)break;r+=16}else e[v[r+=n]]=u(g),r++}};var L,b,M=0;b=1===U?r[0].blocksPerLine*r[0].blocksPerColumn:B*i.mcusPerColumn;for(var N=I||b;M=65488&&L<=65495))break;E+=2}return E-Q}function L(A,e){var t=[],i=e.blocksPerLine,r=e.blocksPerColumn,I=i<<3,g=new Int32Array(64),n=new Uint8Array(64);function a(A,t,i){var r,I,g,n,a,o,B,C,Q,E,s=e.quantizationTable,f=i;for(E=0;E<64;E++)f[E]=A[E]*s[E];for(E=0;E<8;++E){var c=8*E;0!==f[1+c]||0!==f[2+c]||0!==f[3+c]||0!==f[4+c]||0!==f[5+c]||0!==f[6+c]||0!==f[7+c]?(r=5793*f[0+c]+128>>8,I=5793*f[4+c]+128>>8,g=f[2+c],n=f[6+c],a=2896*(f[1+c]-f[7+c])+128>>8,C=2896*(f[1+c]+f[7+c])+128>>8,o=f[3+c]<<4,Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+128>>8,g=1567*g-3784*n+128>>8,n=Q,Q=a-(B=f[5+c]<<4)+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+c]=r+C,f[7+c]=r-C,f[1+c]=I+B,f[6+c]=I-B,f[2+c]=g+o,f[5+c]=g-o,f[3+c]=n+a,f[4+c]=n-a):(Q=5793*f[0+c]+512>>10,f[0+c]=Q,f[1+c]=Q,f[2+c]=Q,f[3+c]=Q,f[4+c]=Q,f[5+c]=Q,f[6+c]=Q,f[7+c]=Q)}for(E=0;E<8;++E){var h=E;0!==f[8+h]||0!==f[16+h]||0!==f[24+h]||0!==f[32+h]||0!==f[40+h]||0!==f[48+h]||0!==f[56+h]?(r=5793*f[0+h]+2048>>12,I=5793*f[32+h]+2048>>12,g=f[16+h],n=f[48+h],a=2896*(f[8+h]-f[56+h])+2048>>12,C=2896*(f[8+h]+f[56+h])+2048>>12,o=f[24+h],Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+2048>>12,g=1567*g-3784*n+2048>>12,n=Q,Q=a-(B=f[40+h])+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+h]=r+C,f[56+h]=r-C,f[8+h]=I+B,f[48+h]=I-B,f[16+h]=g+o,f[40+h]=g-o,f[24+h]=n+a,f[32+h]=n-a):(Q=5793*i[E+0]+8192>>14,f[0+h]=Q,f[8+h]=Q,f[16+h]=Q,f[24+h]=Q,f[32+h]=Q,f[40+h]=Q,f[48+h]=Q,f[56+h]=Q)}for(E=0;E<64;++E){var l=128+(f[E]+8>>4);t[E]=l<0?0:l>255?255:l}}for(var o=0;o>4==0)for(var C=0;C<64;C++){B[v[C]]=A[e++]}else{if(o>>4!=1)throw new Error("DQT: invalid table spec");for(var Q=0;Q<64;Q++){B[v[Q]]=t()}}this.quantizationTables[15&o]=B}break;case 65472:case 65473:case 65474:t();for(var E={extended:65473===g,progressive:65474===g,precision:A[e++],scanLines:t(),samplesPerLine:t(),components:{},componentsOrder:[]},s=A[e++],f=void 0,c=0;c>4,l=15&A[e+1],u=A[e+2];E.componentsOrder.push(f),E.components[f]={h:h,v:l,quantizationIdx:u},e+=3}i(E),this.frames.push(E);break;case 65476:for(var w=t(),d=2;d>4==0?this.huffmanTablesDC[15&D]=R(y,m):this.huffmanTablesAC[15&D]=R(y,m)}break;case 65501:t(),this.resetInterval=t();break;case 65498:t();for(var F=A[e++],S=[],L=this.frames[0],b=0;b>4],M.huffmanTableAC=this.huffmanTablesAC[15&N],S.push(M)}var x=A[e++],J=A[e++],q=A[e++],Y=U(A,e,L,S,this.resetInterval,x,J,q>>4,15&q);e+=Y;break;case 65535:255!==A[e]&&e--;break;default:if(255===A[e-3]&&A[e-2]>=192&&A[e-2]<=254){e-=3;break}throw new Error("unknown JPEG marker ".concat(g.toString(16)))}g=t()}}},{key:"getResult",value:function(){var A=this.frames;if(0===this.frames.length)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(var e=0;e=0;)A[e]=0}x(new Array(576)),x(new Array(60)),x(new Array(512)),x(new Array(256)),x(new Array(29)),x(new Array(30));var J=function(A,e,t,i){for(var r=65535&A|0,I=A>>>16&65535|0,g=0;0!==t;){t-=g=t>2e3?2e3:t;do{I=I+(r=r+e[i++]|0)|0}while(--g);r%=65521,I%=65521}return r|I<<16|0},q=new Uint32Array(function(){for(var A,e=[],t=0;t<256;t++){A=t;for(var i=0;i<8;i++)A=1&A?3988292384^A>>>1:A>>>1;e[t]=A}return e}()),Y=function(A,e,t,i){var r=q,I=i+t;A^=-1;for(var g=i;g>>8^r[255&(A^e[g])];return-1^A},K={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},H={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},O=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},P=function(A){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!==t(i))throw new TypeError(i+"must be non-object");for(var r in i)O(i,r)&&(A[r]=i[r])}}return A},T=function(A){for(var e=0,t=0,i=A.length;t=252?6:X>=248?5:X>=240?4:X>=224?3:X>=192?2:1;_[254]=_[254]=1;var Z=function(A){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(A);var e,t,i,r,I,g=A.length,n=0;for(r=0;r>>6,e[I++]=128|63&t):t<65536?(e[I++]=224|t>>>12,e[I++]=128|t>>>6&63,e[I++]=128|63&t):(e[I++]=240|t>>>18,e[I++]=128|t>>>12&63,e[I++]=128|t>>>6&63,e[I++]=128|63&t);return e},j=function(A,e){var t,i,r=e||A.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(A.subarray(0,e));var I=new Array(2*r);for(i=0,t=0;t4)I[i++]=65533,t+=n-1;else{for(g&=2===n?31:3===n?15:7;n>1&&t1?I[i++]=65533:g<65536?I[i++]=g:(g-=65536,I[i++]=55296|g>>10&1023,I[i++]=56320|1023&g)}}}return function(A,e){if(e<65534&&A.subarray&&V)return String.fromCharCode.apply(null,A.length===e?A:A.subarray(0,e));for(var t="",i=0;iA.length&&(e=A.length);for(var t=e-1;t>=0&&128==(192&A[t]);)t--;return t<0||0===t?e:t+_[A[t]]>e?t:e};var z=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},$=function(A,e){var t,i,r,I,g,n,a,o,B,C,Q,E,s,f,c,h,l,u,w,d,D,y,k,p,m=A.state;t=A.next_in,k=A.input,i=t+(A.avail_in-5),r=A.next_out,p=A.output,I=r-(e-A.avail_out),g=r+(A.avail_out-257),n=m.dmax,a=m.wsize,o=m.whave,B=m.wnext,C=m.window,Q=m.hold,E=m.bits,s=m.lencode,f=m.distcode,c=(1<>>=u=l>>>24,E-=u,0===(u=l>>>16&255))p[r++]=65535&l;else{if(!(16&u)){if(0==(64&u)){l=s[(65535&l)+(Q&(1<>>=u,E-=u),E<15&&(Q+=k[t++]<>>=u=l>>>24,E-=u,!(16&(u=l>>>16&255))){if(0==(64&u)){l=f[(65535&l)+(Q&(1<n){A.msg="invalid distance too far back",m.mode=30;break A}if(Q>>>=u,E-=u,d>(u=r-I)){if((u=d-u)>o&&m.sane){A.msg="invalid distance too far back",m.mode=30;break A}if(D=0,y=C,0===B){if(D+=a-u,u2;)p[r++]=y[D++],p[r++]=y[D++],p[r++]=y[D++],w-=3;w&&(p[r++]=y[D++],w>1&&(p[r++]=y[D++]))}else{D=r-d;do{p[r++]=p[D++],p[r++]=p[D++],p[r++]=p[D++],w-=3}while(w>2);w&&(p[r++]=p[D++],w>1&&(p[r++]=p[D++]))}break}}break}}while(t>3,Q&=(1<<(E-=w<<3))-1,A.next_in=t,A.next_out=r,A.avail_in=t=1&&0===v[d];d--);if(D>d&&(D=d),0===d)return r[I++]=20971520,r[I++]=20971520,n.bits=1,0;for(w=1;w0&&(0===A||1!==d))return-1;for(R[1]=0,l=1;l<15;l++)R[l+1]=R[l]+v[l];for(u=0;u852||2===A&&m>592)return 1;for(;;){s=l-k,g[u]E?(f=U[L+g[u]],c=F[S+g[u]]):(f=96,c=0),a=1<>k)+(o-=a)]=s<<24|f<<16|c|0}while(0!==o);for(a=1<>=1;if(0!==a?(G&=a-1,G+=a):G=0,u++,0==--v[l]){if(l===d)break;l=e[t+g[u]]}if(l>D&&(G&C)!==B){for(0===k&&(k=D),Q+=w,p=1<<(y=l-k);y+k852||2===A&&m>592)return 1;r[B=G&C]=D<<24|y<<16|Q-I|0}}return 0!==G&&(r[Q+G]=l-k<<24|64<<16|0),n.bits=D,0},IA=H.Z_FINISH,gA=H.Z_BLOCK,nA=H.Z_TREES,aA=H.Z_OK,oA=H.Z_STREAM_END,BA=H.Z_NEED_DICT,CA=H.Z_STREAM_ERROR,QA=H.Z_DATA_ERROR,EA=H.Z_MEM_ERROR,sA=H.Z_BUF_ERROR,fA=H.Z_DEFLATED,cA=function(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)};function hA(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var lA,uA,wA=function(A){if(!A||!A.state)return CA;var e=A.state;return A.total_in=A.total_out=e.total=0,A.msg="",e.wrap&&(A.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,aA},dA=function(A){if(!A||!A.state)return CA;var e=A.state;return e.wsize=0,e.whave=0,e.wnext=0,wA(A)},DA=function(A,e){var t;if(!A||!A.state)return CA;var i=A.state;return e<0?(t=0,e=-e):(t=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?CA:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,dA(A))},yA=function(A,e){if(!A)return CA;var t=new hA;A.state=t,t.window=null;var i=DA(A,e);return i!==aA&&(A.state=null),i},kA=!0,pA=function(A){if(kA){lA=new Int32Array(512),uA=new Int32Array(32);for(var e=0;e<144;)A.lens[e++]=8;for(;e<256;)A.lens[e++]=9;for(;e<280;)A.lens[e++]=7;for(;e<288;)A.lens[e++]=8;for(rA(1,A.lens,0,288,lA,0,A.work,{bits:9}),e=0;e<32;)A.lens[e++]=5;rA(2,A.lens,0,32,uA,0,A.work,{bits:5}),kA=!1}A.lencode=lA,A.lenbits=9,A.distcode=uA,A.distbits=5},mA=function(A,e,t,i){var r,I=A.state;return null===I.window&&(I.wsize=1<=I.wsize?(I.window.set(e.subarray(t-I.wsize,t),0),I.wnext=0,I.whave=I.wsize):((r=I.wsize-I.wnext)>i&&(r=i),I.window.set(e.subarray(t-i,t-i+r),I.wnext),(i-=r)?(I.window.set(e.subarray(t-i,t),0),I.wnext=i,I.whave=I.wsize):(I.wnext+=r,I.wnext===I.wsize&&(I.wnext=0),I.whave>>8&255,t.check=Y(t.check,G,2,0),o=0,B=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&o)<<8)+(o>>8))%31){A.msg="incorrect header check",t.mode=30;break}if((15&o)!==fA){A.msg="unknown compression method",t.mode=30;break}if(B-=4,D=8+(15&(o>>>=4)),0===t.wbits)t.wbits=D;else if(D>t.wbits){A.msg="invalid window size",t.mode=30;break}t.dmax=1<>8&1),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=3;case 3:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>8&255,G[2]=o>>>16&255,G[3]=o>>>24&255,t.check=Y(t.check,G,4,0)),o=0,B=0,t.mode=4;case 4:for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>8),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=5;case 5:if(1024&t.flags){for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&((E=t.length)>n&&(E=n),E&&(t.head&&(D=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(I,I+E),D)),512&t.flags&&(t.check=Y(t.check,i,E,I)),n-=E,I+=E,t.length-=E),t.length))break A;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===n)break A;E=0;do{D=i[I+E++],t.head&&D&&t.length<65536&&(t.head.name+=String.fromCharCode(D))}while(D&&E>9&1,t.head.done=!0),A.adler=t.check=0,t.mode=12;break;case 10:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>=7&B,B-=7&B,t.mode=27;break}for(;B<3;){if(0===n)break A;n--,o+=i[I++]<>>=1)){case 0:t.mode=14;break;case 1:if(pA(t),t.mode=20,e===nA){o>>>=2,B-=2;break A}break;case 2:t.mode=17;break;case 3:A.msg="invalid block type",t.mode=30}o>>>=2,B-=2;break;case 14:for(o>>>=7&B,B-=7&B;B<32;){if(0===n)break A;n--,o+=i[I++]<>>16^65535)){A.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&o,o=0,B=0,t.mode=15,e===nA)break A;case 15:t.mode=16;case 16:if(E=t.length){if(E>n&&(E=n),E>a&&(E=a),0===E)break A;r.set(i.subarray(I,I+E),g),n-=E,I+=E,a-=E,g+=E,t.length-=E;break}t.mode=12;break;case 17:for(;B<14;){if(0===n)break A;n--,o+=i[I++]<>>=5,B-=5,t.ndist=1+(31&o),o>>>=5,B-=5,t.ncode=4+(15&o),o>>>=4,B-=4,t.nlen>286||t.ndist>30){A.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have>>=3,B-=3}for(;t.have<19;)t.lens[F[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,k={bits:t.lenbits},y=rA(0,t.lens,0,19,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=c,B-=c,t.lens[t.have++]=l;else{if(16===l){for(p=c+2;B>>=c,B-=c,0===t.have){A.msg="invalid bit length repeat",t.mode=30;break}D=t.lens[t.have-1],E=3+(3&o),o>>>=2,B-=2}else if(17===l){for(p=c+3;B>>=c)),o>>>=3,B-=3}else{for(p=c+7;B>>=c)),o>>>=7,B-=7}if(t.have+E>t.nlen+t.ndist){A.msg="invalid bit length repeat",t.mode=30;break}for(;E--;)t.lens[t.have++]=D}}if(30===t.mode)break;if(0===t.lens[256]){A.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,k={bits:t.lenbits},y=rA(1,t.lens,0,t.nlen,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,k={bits:t.distbits},y=rA(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,k),t.distbits=k.bits,y){A.msg="invalid distances set",t.mode=30;break}if(t.mode=20,e===nA)break A;case 20:t.mode=21;case 21:if(n>=6&&a>=258){A.next_out=g,A.avail_out=a,A.next_in=I,A.avail_in=n,t.hold=o,t.bits=B,$(A,Q),g=A.next_out,r=A.output,a=A.avail_out,I=A.next_in,i=A.input,n=A.avail_in,o=t.hold,B=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;h=(m=t.lencode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,t.length=l,0===h){t.mode=26;break}if(32&h){t.back=-1,t.mode=12;break}if(64&h){A.msg="invalid literal/length code",t.mode=30;break}t.extra=15&h,t.mode=22;case 22:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;h=(m=t.distcode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,64&h){A.msg="invalid distance code",t.mode=30;break}t.offset=l,t.extra=15&h,t.mode=24;case 24:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){A.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===a)break A;if(E=Q-a,t.offset>E){if((E=t.offset-E)>t.whave&&t.sane){A.msg="invalid distance too far back",t.mode=30;break}E>t.wnext?(E-=t.wnext,s=t.wsize-E):s=t.wnext-E,E>t.length&&(E=t.length),f=t.window}else f=r,s=g-t.offset,E=t.length;E>a&&(E=a),a-=E,t.length-=E;do{r[g++]=f[s++]}while(--E);0===t.length&&(t.mode=21);break;case 26:if(0===a)break A;r[g++]=t.length,a--,t.mode=21;break;case 27:if(t.wrap){for(;B<32;){if(0===n)break A;n--,o|=i[I++]<=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||A&&A.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z,this.strm.avail_out=0;var t=GA.inflateInit2(this.strm,e.windowBits);if(t!==UA)throw new Error(K[t]);if(this.header=new FA,GA.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Z(e.dictionary):"[object ArrayBuffer]"===SA.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=GA.inflateSetDictionary(this.strm,e.dictionary))!==UA))throw new Error(K[t])}function qA(A,e){var t=new JA(e);if(t.push(A),t.err)throw t.msg||K[t.err];return t.result}JA.prototype.push=function(A,e){var t,i,r,I=this.strm,g=this.options.chunkSize,n=this.options.dictionary;if(this.ended)return!1;for(i=e===~~e?e:!0===e?RA:vA,"[object ArrayBuffer]"===SA.call(A)?I.input=new Uint8Array(A):I.input=A,I.next_in=0,I.avail_in=I.input.length;;){for(0===I.avail_out&&(I.output=new Uint8Array(g),I.next_out=0,I.avail_out=g),(t=GA.inflate(I,i))===bA&&n&&((t=GA.inflateSetDictionary(I,n))===UA?t=GA.inflate(I,i):t===NA&&(t=bA));I.avail_in>0&&t===LA&&I.state.wrap>0&&0!==A[I.next_in];)GA.inflateReset(I),t=GA.inflate(I,i);switch(t){case MA:case NA:case bA:case xA:return this.onEnd(t),this.ended=!0,!1}if(r=I.avail_out,I.next_out&&(0===I.avail_out||t===LA))if("string"===this.options.to){var a=W(I.output,I.next_out),o=I.next_out-a,B=j(I.output,a);I.next_out=o,I.avail_out=g-o,o&&I.output.set(I.output.subarray(a,a+o),0),this.onData(B)}else this.onData(I.output.length===I.next_out?I.output:I.output.subarray(0,I.next_out));if(t!==UA||0!==r){if(t===LA)return t=GA.inflateEnd(this.strm),this.onEnd(t),this.ended=!0,!0;if(0===I.avail_in)break}}return!0},JA.prototype.onData=function(A){this.chunks.push(A)},JA.prototype.onEnd=function(A){A===UA&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=T(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};var YA={Inflate:JA,inflate:qA,inflateRaw:function(A,e){return(e=e||{}).raw=!0,qA(A,e)},ungzip:qA,constants:H}.inflate;function KA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var HA=function(A){s(t,w);var e=KA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return YA(new Uint8Array(A)).buffer}}]),t}(),OA=Object.freeze({__proto__:null,default:HA});function PA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var TA,VA=function(A){s(t,w);var e=PA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){for(var e=new DataView(A),t=[],i=0;i>3],m<<=7&G),c=0;c>3]),128&m?(a&&(a[G]=1),f=f>(g=S.encoding<2?y[k++]:p)?g:f,n[G++]=g):(a&&(a[G]=0),n[G++]=i),m<<=1;G+=F}else if(S.encoding<2)for(h=0;h(g=y[k++])?g:f,n[G++]=g;G+=F}else for(f=f>p?p:f,h=0;h0){var g=new Uint8Array(Math.ceil(i.width*i.height/8)),n=(I=new DataView(A,e,i.mask.numBytes)).getInt16(0,!0),a=2,o=0;do{if(n>0)for(;n--;)g[o++]=I.getUint8(a++);else{var B=I.getUint8(a++);for(n=-n;n--;)g[o++]=B}n=I.getInt16(a,!0),a+=2}while(a0?1:0),s=Q+(i.height%Q>0?1:0);i.pixels.blocks=new Array(E*s);for(var f=0,c=0;c3)throw"Invalid block encoding ("+w.encoding+")";if(2!==w.encoding){if(0!==d&&2!==d){if(d>>=6,w.offsetType=d,2===d)w.offset=I.getInt8(1),l++;else if(1===d)w.offset=I.getInt16(1,!0),l+=2;else{if(0!==d)throw"Invalid block offset type";w.offset=I.getFloat32(1,!0),l+=4}if(1===w.encoding)if(d=I.getUint8(l),l++,w.bitsPerPixel=63&d,d>>=6,w.numValidPixelsType=d,2===d)w.numValidPixels=I.getUint8(l),l++;else if(1===d)w.numValidPixels=I.getUint16(l,!0),l+=2;else{if(0!==d)throw"Invalid valid pixel count type";w.numValidPixels=I.getUint32(l,!0),l+=4}}var D;if(e+=l,3!==w.encoding)if(0===w.encoding){var y=(i.pixels.numBytes-1)/4;if(y!==Math.floor(y))throw"uncompressed block has invalid length";D=new ArrayBuffer(4*y),new Uint8Array(D).set(new Uint8Array(A,e,4*y));var k=new Float32Array(D);w.rawData=k,e+=4*y}else if(1===w.encoding){var p=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),m=Math.ceil(p/4);D=new ArrayBuffer(4*m),new Uint8Array(D).set(new Uint8Array(A,e,p)),w.stuffedData=new Uint32Array(D),e+=p}}else e++}return i.eofOffset=e,i},I=function(A,e,t,i,r,I,g){var n,a,o,B=(1<=e)a=o>>>Q-e&B,Q-=e;else{var f=e-Q;a=(o&B)<>>(Q=32-f)}I[n]=a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=r[o];else for(Q=Math.ceil((n-I)/g),a=0;a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=o=e?(Q=g>>>C-e&n,C-=e):(Q=(g&n)<<(B=e-C)&n,Q+=(g=A[a++])>>>(C=32-B)),E[o]=Q=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=e?(Q=g>>>E&n,C-=e,E+=e):(Q=g>>>E&n,C=32-(B=e-C),Q|=((g=A[a++])&(1<=t?(I=g>>>B-t&a,B-=t):(I=(g&a)<<(n=t-B)&a,I+=(g=A[o++])>>>(B=32-n)),e[r]=I;return e},C=function(A,e,t,i){var r,I,g,n,a=(1<=t?(I=g>>>C&a,B-=t,C+=t):(I=g>>>C&a,B=32-(n=t-B),I|=((g=A[o++])&(1<=359?359:r;r-=g;do{e+=A[I++]<<8,t+=e+=A[I++]}while(--g);e=(65535&e)+(e>>>16),t=(65535&t)+(t>>>16)}return 1&i&&(t+=e+=A[I]<<8),((t=(65535&t)+(t>>>16))<<16|(e=(65535&e)+(e>>>16)))>>>0},readHeaderInfo:function(A,e){var t=e.ptr,i=new Uint8Array(A,t,6),r={};if(r.fileIdentifierString=String.fromCharCode.apply(null,i),0!==r.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+r.fileIdentifierString;t+=6;var I,g=new DataView(A,t,8),n=g.getInt32(0,!0);if(r.fileVersion=n,t+=4,n>=3&&(r.checksum=g.getUint32(4,!0),t+=4),g=new DataView(A,t,12),r.height=g.getUint32(0,!0),r.width=g.getUint32(4,!0),t+=8,n>=4?(r.numDims=g.getUint32(8,!0),t+=4):r.numDims=1,g=new DataView(A,t,40),r.numValidPixel=g.getUint32(0,!0),r.microBlockSize=g.getInt32(4,!0),r.blobSize=g.getInt32(8,!0),r.imageType=g.getInt32(12,!0),r.maxZError=g.getFloat64(16,!0),r.zMin=g.getFloat64(24,!0),r.zMax=g.getFloat64(32,!0),t+=40,e.headerInfo=r,e.ptr=t,n>=3&&(I=n>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(A,t-I,r.blobSize-14))!==r.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(A,e){var t=e.headerInfo,i=this.getDataTypeArray(t.imageType),r=t.numDims*this.getDataTypeSize(t.imageType),I=this.readSubArray(A,e.ptr,i,r),g=this.readSubArray(A,e.ptr+r,i,r);e.ptr+=2*r;var n,a=!0;for(n=0;n0){t=new Uint8Array(Math.ceil(g/8));var B=(a=new DataView(A,r,o.numBytes)).getInt16(0,!0),C=2,Q=0,E=0;do{if(B>0)for(;B--;)t[Q++]=a.getUint8(C++);else for(E=a.getUint8(C++),B=-B;B--;)t[Q++]=E;B=a.getInt16(C,!0),C+=2}while(C>3],s<<=7&f):s=t[f>>3],128&s&&(i[f]=1);e.pixels.resultMask=i,o.bitset=t,r+=o.numBytes}return e.ptr=r,e.mask=o,!0},readDataOneSweep:function(A,e,t,i){var r,I=e.ptr,g=e.headerInfo,n=g.numDims,a=g.width*g.height,o=g.imageType,B=g.numValidPixel*Q.getDataTypeSize(o)*n,C=e.pixels.resultMask;if(t===Uint8Array)r=new Uint8Array(A,I,B);else{var E=new ArrayBuffer(B);new Uint8Array(E).set(new Uint8Array(A,I,B)),r=new t(E)}if(r.length===a*n)e.pixels.resultPixels=i?Q.swapDimensionOrder(r,a,n,t,!0):r;else{e.pixels.resultPixels=new t(a*n);var s=0,f=0,c=0,h=0;if(n>1){if(i){for(f=0;f=g)return!1;var n=new Uint32Array(g-I);Q.decodeBits(A,e,n);var a,o,B,C,s=[];for(a=I;a0&&(s[o].second=l<>>32-C,32-w>=C?32===(w+=C)&&(w=0,l=u[++d]):(w+=C-32,l=u[++d],s[o].second|=l>>>32-w));var D=0,y=0,k=new E;for(a=0;a=t?t:D;var p,m,G,F,S,v=[];for(a=I;a0)if(p=[C,o],C<=y)for(m=s[o].second<=0;F--)m>>>F&1?(S.right||(S.right=new E),S=S.right):(S.left||(S.left=new E),S=S.left),0!==F||S.val||(S.val=p[1]);return{decodeLut:v,numBitsLUTQick:y,numBitsLUT:D,tree:k,stuffedData:u,srcPtr:d,bitPos:w}},readHuffman:function(A,e,t,i){var r,I,g,n,a,o,B,C,E,s=e.headerInfo.numDims,f=e.headerInfo.height,c=e.headerInfo.width,h=c*f,l=this.readHuffmanTree(A,e),u=l.decodeLut,w=l.tree,d=l.stuffedData,D=l.srcPtr,y=l.bitPos,k=l.numBitsLUTQick,p=l.numBitsLUT,m=0===e.headerInfo.imageType?128:0,G=e.pixels.resultMask,F=0;y>0&&(D++,y=0);var S,v=d[D],R=1===e.encodeMode,U=new t(h*s),L=U;if(s<2||R){for(S=0;S1&&(L=new t(U.buffer,h*S,h),F=0),e.headerInfo.numValidPixel===c*f)for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(g+=B>0?F:o>0?L[C-c]:F,g&=255,L[C]=g,F=g):L[C]=g}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(B>0&&G[C-1]?g+=F:o>0&&G[C-c]?g+=L[C-c]:g+=F,g&=255,L[C]=g,F=g):L[C]=g}}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,L[C]=g}e.ptr=e.ptr+4*(D+1)+(y>0?4:0),e.pixels.resultPixels=U,s>1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(U,h,s,t))},decodeBits:function(A,e,t,i,r){var I=e.headerInfo,Q=I.fileVersion,E=0,s=A.byteLength-e.ptr>=5?5:A.byteLength-e.ptr,f=new DataView(A,e.ptr,s),c=f.getUint8(0);E++;var h=c>>6,l=0===h?4:3-h,u=(32&c)>0,w=31&c,d=0;if(1===l)d=f.getUint8(E),E++;else if(2===l)d=f.getUint16(E,!0),E+=2;else{if(4!==l)throw"Invalid valid pixel count type";d=f.getUint32(E,!0),E+=4}var D,y,k,p,m,G,F,S,v,R=2*I.maxZError,U=I.numDims>1?I.maxValues[r]:I.zMax;if(u){for(e.counter.lut++,S=f.getUint8(E),E++,p=Math.ceil((S-1)*w/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),k=new Uint8Array(y),e.ptr+=E,k.set(new Uint8Array(A,e.ptr,p)),F=new Uint32Array(y),e.ptr+=p,v=0;S-1>>>v;)v++;p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,G=Q>=3?o(F,w,S-1,i,R,U):n(F,w,S-1,i,R,U),Q>=3?a(D,t,v,d,G):g(D,t,v,d,G)}else e.counter.bitstuffer++,v=w,e.ptr+=E,v>0&&(p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,Q>=3?null==i?C(D,t,v,d):a(D,t,v,d,!1,i,R,U):null==i?B(D,t,v,d):g(D,t,v,d,!1,i,R,U))},readTiles:function(A,e,t,i){var r=e.headerInfo,I=r.width,g=r.height,n=I*g,a=r.microBlockSize,o=r.imageType,B=Q.getDataTypeSize(o),C=Math.ceil(I/a),E=Math.ceil(g/a);e.pixels.numBlocksY=E,e.pixels.numBlocksX=C,e.pixels.ptr=0;var s,f,c,h,l,u,w,d,D,y,k=0,p=0,m=0,G=0,F=0,S=0,v=0,R=0,U=0,L=0,b=0,M=0,N=0,x=0,J=0,q=new t(a*a),Y=g%a||a,K=I%a||a,H=r.numDims,O=e.pixels.resultMask,P=e.pixels.resultPixels,T=r.fileVersion>=5?14:15,V=r.zMax;for(m=0;m1?(y=P,L=m*I*a+G*a,P=new t(e.pixels.resultPixels.buffer,n*d*B,n),V=r.maxValues[d]):y=null,v=A.byteLength-e.ptr,f={},J=0,R=(s=new DataView(A,e.ptr,Math.min(10,v))).getUint8(0),J++,D=r.fileVersion>=5?4&R:0,U=R>>6&255,(R>>2&T)!=(G*a>>3&T))throw"integrity issue";if(D&&0===d)throw"integrity issue";if((l=3&R)>3)throw e.ptr+=J,"Invalid block encoding ("+l+")";if(2!==l)if(0===l){if(D)throw"integrity issue";if(e.counter.uncompressed++,e.ptr+=J,M=(M=F*S*B)<(N=A.byteLength-e.ptr)?M:N,c=new ArrayBuffer(M%B==0?M:M+B-M%B),new Uint8Array(c).set(new Uint8Array(A,e.ptr,M)),h=new t(c),x=0,O)for(k=0;k1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(e.pixels.resultPixels,n,H,t))},formatFileInfo:function(A){return{fileIdentifierString:A.headerInfo.fileIdentifierString,fileVersion:A.headerInfo.fileVersion,imageType:A.headerInfo.imageType,height:A.headerInfo.height,width:A.headerInfo.width,numValidPixel:A.headerInfo.numValidPixel,microBlockSize:A.headerInfo.microBlockSize,blobSize:A.headerInfo.blobSize,maxZError:A.headerInfo.maxZError,pixelType:Q.getPixelType(A.headerInfo.imageType),eofOffset:A.eofOffset,mask:A.mask?{numBytes:A.mask.numBytes}:null,pixels:{numBlocksX:A.pixels.numBlocksX,numBlocksY:A.pixels.numBlocksY,maxValue:A.headerInfo.zMax,minValue:A.headerInfo.zMin,noDataValue:A.noDataValue}}},constructConstantSurface:function(A,e){var t=A.headerInfo.zMax,i=A.headerInfo.zMin,r=A.headerInfo.maxValues,I=A.headerInfo.numDims,g=A.headerInfo.height*A.headerInfo.width,n=0,a=0,o=0,B=A.pixels.resultMask,C=A.pixels.resultPixels;if(B)if(I>1){if(e)for(n=0;n1&&i!==t)if(e)for(n=0;n=-128&&e<=127;break;case 1:t=e>=0&&e<=255;break;case 2:t=e>=-32768&&e<=32767;break;case 3:t=e>=0&&e<=65536;break;case 4:t=e>=-2147483648&&e<=2147483647;break;case 5:t=e>=0&&e<=4294967296;break;case 6:t=e>=-34027999387901484e22&&e<=34027999387901484e22;break;case 7:t=e>=-17976931348623157e292&&e<=17976931348623157e292;break;default:t=!1}return t},getDataTypeSize:function(A){var e=0;switch(A){case 0:case 1:e=1;break;case 2:case 3:e=2;break;case 4:case 5:case 6:e=4;break;case 7:e=8;break;default:e=A}return e},getDataTypeUsed:function(A,e){var t=A;switch(A){case 2:case 4:t=A-e;break;case 3:case 5:t=A-2*e;break;case 6:t=0===e?A:1===e?2:1;break;case 7:t=0===e?A:A-2*e+1;break;default:t=A}return t},getOnePixel:function(A,e,t,i){var r=0;switch(t){case 0:r=i.getInt8(e);break;case 1:r=i.getUint8(e);break;case 2:r=i.getInt16(e,!0);break;case 3:r=i.getUint16(e,!0);break;case 4:r=i.getInt32(e,!0);break;case 5:r=i.getUInt32(e,!0);break;case 6:r=i.getFloat32(e,!0);break;case 7:r=i.getFloat64(e,!0);break;default:throw"the decoder does not understand this pixel type"}return r},swapDimensionOrder:function(A,e,t,i,r){var I=0,g=0,n=0,a=0,o=A;if(t>1)if(o=new i(e*t),r)for(I=0;I5)throw"unsupported lerc version 2."+g;Q.readMask(A,r),I.numValidPixel===I.width*I.height||r.pixels.resultMask||(r.pixels.resultMask=e.maskData);var a=I.width*I.height;r.pixels.resultPixels=new n(a*I.numDims),r.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o,B=!e.returnPixelInterleavedDims;if(0!==I.numValidPixel)if(I.zMax===I.zMin)Q.constructConstantSurface(r,B);else if(g>=4&&Q.checkMinMaxRanges(A,r))Q.constructConstantSurface(r,B);else{var C=new DataView(A,r.ptr,2),E=C.getUint8(0);if(r.ptr++,E)Q.readDataOneSweep(A,r,n,B);else if(g>1&&I.imageType<=1&&Math.abs(I.maxZError-.5)<1e-5){var s=C.getUint8(1);if(r.ptr++,r.encodeMode=s,s>2||g<4&&s>1)throw"Invalid Huffman flag "+s;s?Q.readHuffman(A,r,n,B):Q.readTiles(A,r,n,B)}else Q.readTiles(A,r,n,B)}r.eofOffset=r.ptr,e.inputOffset?(o=r.headerInfo.blobSize+e.inputOffset-r.ptr,Math.abs(o)>=1&&(r.eofOffset=e.inputOffset+r.headerInfo.blobSize)):(o=r.headerInfo.blobSize-r.ptr,Math.abs(o)>=1&&(r.eofOffset=r.headerInfo.blobSize));var f={width:I.width,height:I.height,pixelData:r.pixels.resultPixels,minValue:I.zMin,maxValue:I.zMax,validPixelCount:I.numValidPixel,dimCount:I.numDims,dimStats:{minValues:I.minValues,maxValues:I.maxValues},maskData:r.pixels.resultMask};if(r.pixels.resultMask&&Q.isValidPixelValue(I.imageType,t)){var c=r.pixels.resultMask;for(i=0;i1&&(o&&f.push(o),d.fileInfo.mask&&d.fileInfo.mask.numBytes>0&&w++),E++,u.pixels.push(d.pixelData),u.statistics.push({minValue:d.minValue,maxValue:d.maxValue,noDataValue:d.noDataValue,dimStats:d.dimStats})}if(i>1&&w>1){for(Q=u.width*u.height,u.bandMasks=f,(o=new Uint8Array(Q)).set(f[0]),B=1;B1&&void 0!==arguments[1]?arguments[1]:0;if(!jA)throw new Error("ZSTDDecoder: Await .init() before decoding.");var t=A.byteLength,i=jA.exports.malloc(t);WA.set(A,i),e=e||Number(jA.exports.ZSTD_findDecompressedSize(i,t));var r=jA.exports.malloc(e),I=jA.exports.ZSTD_decompress(r,e,i,t),g=WA.slice(r,r+I);return jA.exports.free(i),jA.exports.free(r),g}}]),A}(),ee="AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9gA39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gAn9/AX5gAn5+AX5gAABgBX9/f39/AGAGf39/f39/AGAIf39/f39/f38AYAl/f39/f39/f38AYAABf2AIf39/f39/f38Bf2ANf39/f39/f39/f39/fwF/YAF/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH9LC34BBH9BAyEBIAAoAgQiA0EgTQRAIAAoAggiASAAKAIQTwRAIAAQDQ8LIAAoAgwiAiABRgRAQQFBAiADQSBJGw8LIAAgASABIAJrIANBA3YiBCABIARrIAJJIgEbIgJrIgQ2AgggACADIAJBA3RrNgIEIAAgBCgAADYCAAsgAQsUAQF/IAAgARACIQIgACABEAEgAgv3AQECfyACRQRAIABCADcCACAAQQA2AhAgAEIANwIIQbh/DwsgACABNgIMIAAgAUEEajYCECACQQRPBEAgACABIAJqIgFBfGoiAzYCCCAAIAMoAAA2AgAgAUF/ai0AACIBBEAgAEEIIAEQFGs2AgQgAg8LIABBADYCBEF/DwsgACABNgIIIAAgAS0AACIDNgIAIAJBfmoiBEEBTQRAIARBAWtFBEAgACABLQACQRB0IANyIgM2AgALIAAgAS0AAUEIdCADajYCAAsgASACakF/ai0AACIBRQRAIABBADYCBEFsDwsgAEEoIAEQFCACQQN0ams2AgQgAgsWACAAIAEpAAA3AAAgACABKQAINwAICy8BAX8gAUECdEGgHWooAgAgACgCAEEgIAEgACgCBGprQR9xdnEhAiAAIAEQASACCyEAIAFCz9bTvtLHq9lCfiAAfEIfiUKHla+vmLbem55/fgsdAQF/IAAoAgggACgCDEYEfyAAKAIEQSBGBUEACwuCBAEDfyACQYDAAE8EQCAAIAEgAhBnIAAPCyAAIAJqIQMCQCAAIAFzQQNxRQRAAkAgAkEBSARAIAAhAgwBCyAAQQNxRQRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADTw0BIAJBA3ENAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgA0F8aiIEIABJBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsMACAAIAEpAAA3AAALQQECfyAAKAIIIgEgACgCEEkEQEEDDwsgACAAKAIEIgJBB3E2AgQgACABIAJBA3ZrIgE2AgggACABKAAANgIAQQALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgASACaiAASwRAIAAgAmoiBCABSw0BCyAAIAEgAhALDwsgACABc0EDcSEDAkACQCAAIAFJBEAgAwRAIAAhAwwDCyAAQQNxRQRAIAAhAwwCCyAAIQMDQCACRQ0EIAMgAS0AADoAACABQQFqIQEgAkF/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQhBSAGQQR2IQRBICAAdCIAQQFyIQkgASgCACEPQQAhAiADIQYCQANAIAlBAkggAiAPS3JFBEAgAiEHAkAgCARAA0AgBEH//wNxQf//A0YEQCAHQRhqIQcgBiAQSQR/IAZBAmoiBigAACAFdgUgBUEQaiEFIARBEHYLIQQMAQsLA0AgBEEDcSIIQQNGBEAgBUECaiEFIARBAnYhBCAHQQNqIQcMAQsLIAcgCGoiByAPSw0EIAVBAmohBQNAIAIgB0kEQCANIAJBAXRqQQA7AQAgAkEBaiECDAELCyAGIA5LQQAgBiAFQQN1aiIHIAxLG0UEQCAHKAAAIAVBB3EiBXYhBAwCCyAEQQJ2IQQLIAYhBwsCfyALQX9qIAQgAEF/anEiBiAAQQF0QX9qIgggCWsiEUkNABogBCAIcSIEQQAgESAEIABIG2shBiALCyEIIA0gAkEBdGogBkF/aiIEOwEAIAlBASAGayAEIAZBAUgbayEJA0AgCSAASARAIABBAXUhACALQX9qIQsMAQsLAn8gByAOS0EAIAcgBSAIaiIFQQN1aiIGIAxLG0UEQCAFQQdxDAELIAUgDCIGIAdrQQN0awshBSACQQFqIQIgBEUhCCAGKAAAIAVBH3F2IQQMAQsLQWwgCUEBRyAFQSBKcg0BGiABIAJBf2o2AgAgBiAFQQdqQQN1aiADawwBC0FQCyEAIApBEGokACAACwkAQQFBBSAAGwsMACAAIAEoAAA2AAALqgMBCn8jAEHwAGsiCiQAIAJBAWohDiAAQQhqIQtBgIAEIAVBf2p0QRB1IQxBACECQQEhBkEBIAV0IglBf2oiDyEIA0AgAiAORkUEQAJAIAEgAkEBdCINai8BACIHQf//A0YEQCALIAhBA3RqIAI2AgQgCEF/aiEIQQEhBwwBCyAGQQAgDCAHQRB0QRB1ShshBgsgCiANaiAHOwEAIAJBAWohAgwBCwsgACAFNgIEIAAgBjYCACAJQQN2IAlBAXZqQQNqIQxBACEAQQAhBkEAIQIDQCAGIA5GBEADQAJAIAAgCUYNACAKIAsgAEEDdGoiASgCBCIGQQF0aiICIAIvAQAiAkEBajsBACABIAUgAhAUayIIOgADIAEgAiAIQf8BcXQgCWs7AQAgASAEIAZBAnQiAmooAgA6AAIgASACIANqKAIANgIEIABBAWohAAwBCwsFIAEgBkEBdGouAQAhDUEAIQcDQCAHIA1ORQRAIAsgAkEDdGogBjYCBANAIAIgDGogD3EiAiAISw0ACyAHQQFqIQcMAQsLIAZBAWohBgwBCwsgCkHwAGokAAsjAEIAIAEQCSAAhUKHla+vmLbem55/fkLj3MqV/M7y9YV/fAsQACAAQn43AwggACABNgIACyQBAX8gAARAIAEoAgQiAgRAIAEoAgggACACEQEADwsgABAmCwsfACAAIAEgAi8BABAINgIAIAEQBBogACACQQRqNgIEC0oBAX9BoCAoAgAiASAAaiIAQX9MBEBBiCBBMDYCAEF/DwsCQCAAPwBBEHRNDQAgABBmDQBBiCBBMDYCAEF/DwtBoCAgADYCACABC9cBAQh/Qbp/IQoCQCACKAIEIgggAigCACIJaiIOIAEgAGtLDQBBbCEKIAkgBCADKAIAIgtrSw0AIAAgCWoiBCACKAIIIgxrIQ0gACABQWBqIg8gCyAJQQAQKSADIAkgC2o2AgACQAJAIAwgBCAFa00EQCANIQUMAQsgDCAEIAZrSw0CIAcgDSAFayIAaiIBIAhqIAdNBEAgBCABIAgQDxoMAgsgBCABQQAgAGsQDyEBIAIgACAIaiIINgIEIAEgAGshBAsgBCAPIAUgCEEBECkLIA4hCgsgCgubAgEBfyMAQYABayINJAAgDSADNgJ8AkAgAkEDSwRAQX8hCQwBCwJAAkACQAJAIAJBAWsOAwADAgELIAZFBEBBuH8hCQwEC0FsIQkgBS0AACICIANLDQMgACAHIAJBAnQiAmooAgAgAiAIaigCABA7IAEgADYCAEEBIQkMAwsgASAJNgIAQQAhCQwCCyAKRQRAQWwhCQwCC0EAIQkgC0UgDEEZSHINAUEIIAR0QQhqIQBBACECA0AgAiAATw0CIAJBQGshAgwAAAsAC0FsIQkgDSANQfwAaiANQfgAaiAFIAYQFSICEAMNACANKAJ4IgMgBEsNACAAIA0gDSgCfCAHIAggAxAYIAEgADYCACACIQkLIA1BgAFqJAAgCQsLACAAIAEgAhALGgsQACAALwAAIAAtAAJBEHRyCy8AAn9BuH8gAUEISQ0AGkFyIAAoAAQiAEF3Sw0AGkG4fyAAQQhqIgAgACABSxsLCwkAIAAgATsAAAsDAAELigYBBX8gACAAKAIAIgVBfnE2AgBBACAAIAVBAXZqQYQgKAIAIgQgAEYbIQECQAJAIAAoAgQiAkUNACACKAIAIgNBAXENACACQQhqIgUgA0EBdkF4aiIDQQggA0EISxtnQR9zQQJ0QYAfaiIDKAIARgRAIAMgAigCDDYCAAsgAigCCCIDBEAgAyACKAIMNgIECyACKAIMIgMEQCADIAIoAgg2AgALIAIgAigCACAAKAIAQX5xajYCAEGEICEAAkACQCABRQ0AIAEgAjYCBCABKAIAIgNBAXENASADQQF2QXhqIgNBCCADQQhLG2dBH3NBAnRBgB9qIgMoAgAgAUEIakYEQCADIAEoAgw2AgALIAEoAggiAwRAIAMgASgCDDYCBAsgASgCDCIDBEAgAyABKAIINgIAQYQgKAIAIQQLIAIgAigCACABKAIAQX5xajYCACABIARGDQAgASABKAIAQQF2akEEaiEACyAAIAI2AgALIAIoAgBBAXZBeGoiAEEIIABBCEsbZ0Efc0ECdEGAH2oiASgCACEAIAEgBTYCACACIAA2AgwgAkEANgIIIABFDQEgACAFNgIADwsCQCABRQ0AIAEoAgAiAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAigCACABQQhqRgRAIAIgASgCDDYCAAsgASgCCCICBEAgAiABKAIMNgIECyABKAIMIgIEQCACIAEoAgg2AgBBhCAoAgAhBAsgACAAKAIAIAEoAgBBfnFqIgI2AgACQCABIARHBEAgASABKAIAQQF2aiAANgIEIAAoAgAhAgwBC0GEICAANgIACyACQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgIoAgAhASACIABBCGoiAjYCACAAIAE2AgwgAEEANgIIIAFFDQEgASACNgIADwsgBUEBdkF4aiIBQQggAUEISxtnQR9zQQJ0QYAfaiICKAIAIQEgAiAAQQhqIgI2AgAgACABNgIMIABBADYCCCABRQ0AIAEgAjYCAAsLDgAgAARAIABBeGoQJQsLgAIBA38CQCAAQQ9qQXhxQYQgKAIAKAIAQQF2ayICEB1Bf0YNAAJAQYQgKAIAIgAoAgAiAUEBcQ0AIAFBAXZBeGoiAUEIIAFBCEsbZ0Efc0ECdEGAH2oiASgCACAAQQhqRgRAIAEgACgCDDYCAAsgACgCCCIBBEAgASAAKAIMNgIECyAAKAIMIgFFDQAgASAAKAIINgIAC0EBIQEgACAAKAIAIAJBAXRqIgI2AgAgAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAygCACECIAMgAEEIaiIDNgIAIAAgAjYCDCAAQQA2AgggAkUNACACIAM2AgALIAELtwIBA38CQAJAIABBASAAGyICEDgiAA0AAkACQEGEICgCACIARQ0AIAAoAgAiA0EBcQ0AIAAgA0EBcjYCACADQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgAgAEEIakYEQCABIAAoAgw2AgALIAAoAggiAQRAIAEgACgCDDYCBAsgACgCDCIBBEAgASAAKAIINgIACyACECchAkEAIQFBhCAoAgAhACACDQEgACAAKAIAQX5xNgIAQQAPCyACQQ9qQXhxIgMQHSICQX9GDQIgAkEHakF4cSIAIAJHBEAgACACaxAdQX9GDQMLAkBBhCAoAgAiAUUEQEGAICAANgIADAELIAAgATYCBAtBhCAgADYCACAAIANBAXRBAXI2AgAMAQsgAEUNAQsgAEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigCACACaiAAQQZ2IgFBAnRBsB5qKAIAaiAAQSBxIgBFaiABRSAAQQV2cWoFQbh/CwsdACAAKAKQ4gEQWiAAQQA2AqDiASAAQgA3A5DiAQu1AwEFfyMAQZACayIKJABBuH8hBgJAIAVFDQAgBCwAACIIQf8BcSEHAkAgCEF/TARAIAdBgn9qQQF2IgggBU8NAkFsIQYgB0GBf2oiBUGAAk8NAiAEQQFqIQdBACEGA0AgBiAFTwRAIAUhBiAIIQcMAwUgACAGaiAHIAZBAXZqIgQtAABBBHY6AAAgACAGQQFyaiAELQAAQQ9xOgAAIAZBAmohBgwBCwAACwALIAcgBU8NASAAIARBAWogByAKEFMiBhADDQELIAYhBEEAIQYgAUEAQTQQECEJQQAhBQNAIAQgBkcEQCAAIAZqIggtAAAiAUELSwRAQWwhBgwDBSAJIAFBAnRqIgEgASgCAEEBajYCACAGQQFqIQZBASAILQAAdEEBdSAFaiEFDAILAAsLQWwhBiAFRQ0AIAUQFEEBaiIBQQxLDQAgAyABNgIAQQFBASABdCAFayIDEBQiAXQgA0cNACAAIARqIAFBAWoiADoAACAJIABBAnRqIgAgACgCAEEBajYCACAJKAIEIgBBAkkgAEEBcXINACACIARBAWo2AgAgB0EBaiEGCyAKQZACaiQAIAYLxhEBDH8jAEHwAGsiBSQAQWwhCwJAIANBCkkNACACLwAAIQogAi8AAiEJIAIvAAQhByAFQQhqIAQQDgJAIAMgByAJIApqakEGaiIMSQ0AIAUtAAohCCAFQdgAaiACQQZqIgIgChAGIgsQAw0BIAVBQGsgAiAKaiICIAkQBiILEAMNASAFQShqIAIgCWoiAiAHEAYiCxADDQEgBUEQaiACIAdqIAMgDGsQBiILEAMNASAAIAFqIg9BfWohECAEQQRqIQZBASELIAAgAUEDakECdiIDaiIMIANqIgIgA2oiDiEDIAIhBCAMIQcDQCALIAMgEElxBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgCS0AAyELIAcgBiAFQUBrIAgQAkECdGoiCS8BADsAACAFQUBrIAktAAIQASAJLQADIQogBCAGIAVBKGogCBACQQJ0aiIJLwEAOwAAIAVBKGogCS0AAhABIAktAAMhCSADIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgDS0AAyENIAAgC2oiCyAGIAVB2ABqIAgQAkECdGoiAC8BADsAACAFQdgAaiAALQACEAEgAC0AAyEAIAcgCmoiCiAGIAVBQGsgCBACQQJ0aiIHLwEAOwAAIAVBQGsgBy0AAhABIActAAMhByAEIAlqIgkgBiAFQShqIAgQAkECdGoiBC8BADsAACAFQShqIAQtAAIQASAELQADIQQgAyANaiIDIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgACALaiEAIAcgCmohByAEIAlqIQQgAyANLQADaiEDIAVB2ABqEA0gBUFAaxANciAFQShqEA1yIAVBEGoQDXJFIQsMAQsLIAQgDksgByACS3INAEFsIQsgACAMSw0BIAxBfWohCQNAQQAgACAJSSAFQdgAahAEGwRAIAAgBiAFQdgAaiAIEAJBAnRqIgovAQA7AAAgBUHYAGogCi0AAhABIAAgCi0AA2oiACAGIAVB2ABqIAgQAkECdGoiCi8BADsAACAFQdgAaiAKLQACEAEgACAKLQADaiEADAEFIAxBfmohCgNAIAVB2ABqEAQgACAKS3JFBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgACAJLQADaiEADAELCwNAIAAgCk0EQCAAIAYgBUHYAGogCBACQQJ0aiIJLwEAOwAAIAVB2ABqIAktAAIQASAAIAktAANqIQAMAQsLAkAgACAMTw0AIAAgBiAFQdgAaiAIEAIiAEECdGoiDC0AADoAACAMLQADQQFGBEAgBUHYAGogDC0AAhABDAELIAUoAlxBH0sNACAFQdgAaiAGIABBAnRqLQACEAEgBSgCXEEhSQ0AIAVBIDYCXAsgAkF9aiEMA0BBACAHIAxJIAVBQGsQBBsEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiIAIAYgBUFAayAIEAJBAnRqIgcvAQA7AAAgBUFAayAHLQACEAEgACAHLQADaiEHDAEFIAJBfmohDANAIAVBQGsQBCAHIAxLckUEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwNAIAcgDE0EQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwJAIAcgAk8NACAHIAYgBUFAayAIEAIiAEECdGoiAi0AADoAACACLQADQQFGBEAgBUFAayACLQACEAEMAQsgBSgCREEfSw0AIAVBQGsgBiAAQQJ0ai0AAhABIAUoAkRBIUkNACAFQSA2AkQLIA5BfWohAgNAQQAgBCACSSAFQShqEAQbBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2oiACAGIAVBKGogCBACQQJ0aiIELwEAOwAAIAVBKGogBC0AAhABIAAgBC0AA2ohBAwBBSAOQX5qIQIDQCAFQShqEAQgBCACS3JFBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsDQCAEIAJNBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsCQCAEIA5PDQAgBCAGIAVBKGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBKGogAi0AAhABDAELIAUoAixBH0sNACAFQShqIAYgAEECdGotAAIQASAFKAIsQSFJDQAgBUEgNgIsCwNAQQAgAyAQSSAFQRBqEAQbBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2oiACAGIAVBEGogCBACQQJ0aiICLwEAOwAAIAVBEGogAi0AAhABIAAgAi0AA2ohAwwBBSAPQX5qIQIDQCAFQRBqEAQgAyACS3JFBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsDQCADIAJNBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsCQCADIA9PDQAgAyAGIAVBEGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBEGogAi0AAhABDAELIAUoAhRBH0sNACAFQRBqIAYgAEECdGotAAIQASAFKAIUQSFJDQAgBUEgNgIUCyABQWwgBUHYAGoQCiAFQUBrEApxIAVBKGoQCnEgBUEQahAKcRshCwwJCwAACwALAAALAAsAAAsACwAACwALQWwhCwsgBUHwAGokACALC7UEAQ5/IwBBEGsiBiQAIAZBBGogABAOQVQhBQJAIARB3AtJDQAgBi0ABCEHIANB8ARqQQBB7AAQECEIIAdBDEsNACADQdwJaiIJIAggBkEIaiAGQQxqIAEgAhAxIhAQA0UEQCAGKAIMIgQgB0sNASADQdwFaiEPIANBpAVqIREgAEEEaiESIANBqAVqIQEgBCEFA0AgBSICQX9qIQUgCCACQQJ0aigCAEUNAAsgAkEBaiEOQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgASALaiAKNgIAIAVBAWohBSAKIAxqIQoMAQsLIAEgCjYCAEEAIQUgBigCCCELA0AgBSALRkUEQCABIAUgCWotAAAiDEECdGoiDSANKAIAIg1BAWo2AgAgDyANQQF0aiINIAw6AAEgDSAFOgAAIAVBAWohBQwBCwtBACEBIANBADYCqAUgBEF/cyAHaiEJQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgAyALaiABNgIAIAwgBSAJanQgAWohASAFQQFqIQUMAQsLIAcgBEEBaiIBIAJrIgRrQQFqIQgDQEEBIQUgBCAIT0UEQANAIAUgDk9FBEAgBUECdCIJIAMgBEE0bGpqIAMgCWooAgAgBHY2AgAgBUEBaiEFDAELCyAEQQFqIQQMAQsLIBIgByAPIAogESADIAIgARBkIAZBAToABSAGIAc6AAYgACAGKAIENgIACyAQIQULIAZBEGokACAFC8ENAQt/IwBB8ABrIgUkAEFsIQkCQCADQQpJDQAgAi8AACEKIAIvAAIhDCACLwAEIQYgBUEIaiAEEA4CQCADIAYgCiAMampBBmoiDUkNACAFLQAKIQcgBUHYAGogAkEGaiICIAoQBiIJEAMNASAFQUBrIAIgCmoiAiAMEAYiCRADDQEgBUEoaiACIAxqIgIgBhAGIgkQAw0BIAVBEGogAiAGaiADIA1rEAYiCRADDQEgACABaiIOQX1qIQ8gBEEEaiEGQQEhCSAAIAFBA2pBAnYiAmoiCiACaiIMIAJqIg0hAyAMIQQgCiECA0AgCSADIA9JcQRAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAACAGIAVBQGsgBxACQQF0aiIILQAAIQsgBUFAayAILQABEAEgAiALOgAAIAYgBUEoaiAHEAJBAXRqIggtAAAhCyAFQShqIAgtAAEQASAEIAs6AAAgBiAFQRBqIAcQAkEBdGoiCC0AACELIAVBEGogCC0AARABIAMgCzoAACAGIAVB2ABqIAcQAkEBdGoiCC0AACELIAVB2ABqIAgtAAEQASAAIAs6AAEgBiAFQUBrIAcQAkEBdGoiCC0AACELIAVBQGsgCC0AARABIAIgCzoAASAGIAVBKGogBxACQQF0aiIILQAAIQsgBUEoaiAILQABEAEgBCALOgABIAYgBUEQaiAHEAJBAXRqIggtAAAhCyAFQRBqIAgtAAEQASADIAs6AAEgA0ECaiEDIARBAmohBCACQQJqIQIgAEECaiEAIAkgBUHYAGoQDUVxIAVBQGsQDUVxIAVBKGoQDUVxIAVBEGoQDUVxIQkMAQsLIAQgDUsgAiAMS3INAEFsIQkgACAKSw0BIApBfWohCQNAIAVB2ABqEAQgACAJT3JFBEAgBiAFQdgAaiAHEAJBAXRqIggtAAAhCyAFQdgAaiAILQABEAEgACALOgAAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAASAAQQJqIQAMAQsLA0AgBUHYAGoQBCAAIApPckUEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCwNAIAAgCkkEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCyAMQX1qIQADQCAFQUBrEAQgAiAAT3JFBEAgBiAFQUBrIAcQAkEBdGoiCi0AACEJIAVBQGsgCi0AARABIAIgCToAACAGIAVBQGsgBxACQQF0aiIKLQAAIQkgBUFAayAKLQABEAEgAiAJOgABIAJBAmohAgwBCwsDQCAFQUBrEAQgAiAMT3JFBEAgBiAFQUBrIAcQAkEBdGoiAC0AACEKIAVBQGsgAC0AARABIAIgCjoAACACQQFqIQIMAQsLA0AgAiAMSQRAIAYgBUFAayAHEAJBAXRqIgAtAAAhCiAFQUBrIAAtAAEQASACIAo6AAAgAkEBaiECDAELCyANQX1qIQADQCAFQShqEAQgBCAAT3JFBEAgBiAFQShqIAcQAkEBdGoiAi0AACEKIAVBKGogAi0AARABIAQgCjoAACAGIAVBKGogBxACQQF0aiICLQAAIQogBUEoaiACLQABEAEgBCAKOgABIARBAmohBAwBCwsDQCAFQShqEAQgBCANT3JFBEAgBiAFQShqIAcQAkEBdGoiAC0AACECIAVBKGogAC0AARABIAQgAjoAACAEQQFqIQQMAQsLA0AgBCANSQRAIAYgBUEoaiAHEAJBAXRqIgAtAAAhAiAFQShqIAAtAAEQASAEIAI6AAAgBEEBaiEEDAELCwNAIAVBEGoQBCADIA9PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIAYgBUEQaiAHEAJBAXRqIgAtAAAhAiAFQRBqIAAtAAEQASADIAI6AAEgA0ECaiEDDAELCwNAIAVBEGoQBCADIA5PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIANBAWohAwwBCwsDQCADIA5JBEAgBiAFQRBqIAcQAkEBdGoiAC0AACECIAVBEGogAC0AARABIAMgAjoAACADQQFqIQMMAQsLIAFBbCAFQdgAahAKIAVBQGsQCnEgBUEoahAKcSAFQRBqEApxGyEJDAELQWwhCQsgBUHwAGokACAJC8oCAQR/IwBBIGsiBSQAIAUgBBAOIAUtAAIhByAFQQhqIAIgAxAGIgIQA0UEQCAEQQRqIQIgACABaiIDQX1qIQQDQCAFQQhqEAQgACAET3JFBEAgAiAFQQhqIAcQAkEBdGoiBi0AACEIIAVBCGogBi0AARABIAAgCDoAACACIAVBCGogBxACQQF0aiIGLQAAIQggBUEIaiAGLQABEAEgACAIOgABIABBAmohAAwBCwsDQCAFQQhqEAQgACADT3JFBEAgAiAFQQhqIAcQAkEBdGoiBC0AACEGIAVBCGogBC0AARABIAAgBjoAACAAQQFqIQAMAQsLA0AgACADT0UEQCACIAVBCGogBxACQQF0aiIELQAAIQYgBUEIaiAELQABEAEgACAGOgAAIABBAWohAAwBCwsgAUFsIAVBCGoQChshAgsgBUEgaiQAIAILtgMBCX8jAEEQayIGJAAgBkEANgIMIAZBADYCCEFUIQQCQAJAIANBQGsiDCADIAZBCGogBkEMaiABIAIQMSICEAMNACAGQQRqIAAQDiAGKAIMIgcgBi0ABEEBaksNASAAQQRqIQogBkEAOgAFIAYgBzoABiAAIAYoAgQ2AgAgB0EBaiEJQQEhBANAIAQgCUkEQCADIARBAnRqIgEoAgAhACABIAU2AgAgACAEQX9qdCAFaiEFIARBAWohBAwBCwsgB0EBaiEHQQAhBSAGKAIIIQkDQCAFIAlGDQEgAyAFIAxqLQAAIgRBAnRqIgBBASAEdEEBdSILIAAoAgAiAWoiADYCACAHIARrIQhBACEEAkAgC0EDTQRAA0AgBCALRg0CIAogASAEakEBdGoiACAIOgABIAAgBToAACAEQQFqIQQMAAALAAsDQCABIABPDQEgCiABQQF0aiIEIAg6AAEgBCAFOgAAIAQgCDoAAyAEIAU6AAIgBCAIOgAFIAQgBToABCAEIAg6AAcgBCAFOgAGIAFBBGohAQwAAAsACyAFQQFqIQUMAAALAAsgAiEECyAGQRBqJAAgBAutAQECfwJAQYQgKAIAIABHIAAoAgBBAXYiAyABa0F4aiICQXhxQQhHcgR/IAIFIAMQJ0UNASACQQhqC0EQSQ0AIAAgACgCACICQQFxIAAgAWpBD2pBeHEiASAAa0EBdHI2AgAgASAANgIEIAEgASgCAEEBcSAAIAJBAXZqIAFrIgJBAXRyNgIAQYQgIAEgAkH/////B3FqQQRqQYQgKAIAIABGGyABNgIAIAEQJQsLygIBBX8CQAJAAkAgAEEIIABBCEsbZ0EfcyAAaUEBR2oiAUEESSAAIAF2cg0AIAFBAnRB/B5qKAIAIgJFDQADQCACQXhqIgMoAgBBAXZBeGoiBSAATwRAIAIgBUEIIAVBCEsbZ0Efc0ECdEGAH2oiASgCAEYEQCABIAIoAgQ2AgALDAMLIARBHksNASAEQQFqIQQgAigCBCICDQALC0EAIQMgAUEgTw0BA0AgAUECdEGAH2ooAgAiAkUEQCABQR5LIQIgAUEBaiEBIAJFDQEMAwsLIAIgAkF4aiIDKAIAQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgBGBEAgASACKAIENgIACwsgAigCACIBBEAgASACKAIENgIECyACKAIEIgEEQCABIAIoAgA2AgALIAMgAygCAEEBcjYCACADIAAQNwsgAwvhCwINfwV+IwBB8ABrIgckACAHIAAoAvDhASIINgJcIAEgAmohDSAIIAAoAoDiAWohDwJAAkAgBUUEQCABIQQMAQsgACgCxOABIRAgACgCwOABIREgACgCvOABIQ4gAEEBNgKM4QFBACEIA0AgCEEDRwRAIAcgCEECdCICaiAAIAJqQazQAWooAgA2AkQgCEEBaiEIDAELC0FsIQwgB0EYaiADIAQQBhADDQEgB0EsaiAHQRhqIAAoAgAQEyAHQTRqIAdBGGogACgCCBATIAdBPGogB0EYaiAAKAIEEBMgDUFgaiESIAEhBEEAIQwDQCAHKAIwIAcoAixBA3RqKQIAIhRCEIinQf8BcSEIIAcoAkAgBygCPEEDdGopAgAiFUIQiKdB/wFxIQsgBygCOCAHKAI0QQN0aikCACIWQiCIpyEJIBVCIIghFyAUQiCIpyECAkAgFkIQiKdB/wFxIgNBAk8EQAJAIAZFIANBGUlyRQRAIAkgB0EYaiADQSAgBygCHGsiCiAKIANLGyIKEAUgAyAKayIDdGohCSAHQRhqEAQaIANFDQEgB0EYaiADEAUgCWohCQwBCyAHQRhqIAMQBSAJaiEJIAdBGGoQBBoLIAcpAkQhGCAHIAk2AkQgByAYNwNIDAELAkAgA0UEQCACBEAgBygCRCEJDAMLIAcoAkghCQwBCwJAAkAgB0EYakEBEAUgCSACRWpqIgNBA0YEQCAHKAJEQX9qIgMgA0VqIQkMAQsgA0ECdCAHaigCRCIJIAlFaiEJIANBAUYNAQsgByAHKAJINgJMCwsgByAHKAJENgJIIAcgCTYCRAsgF6chAyALBEAgB0EYaiALEAUgA2ohAwsgCCALakEUTwRAIAdBGGoQBBoLIAgEQCAHQRhqIAgQBSACaiECCyAHQRhqEAQaIAcgB0EYaiAUQhiIp0H/AXEQCCAUp0H//wNxajYCLCAHIAdBGGogFUIYiKdB/wFxEAggFadB//8DcWo2AjwgB0EYahAEGiAHIAdBGGogFkIYiKdB/wFxEAggFqdB//8DcWo2AjQgByACNgJgIAcoAlwhCiAHIAk2AmggByADNgJkAkACQAJAIAQgAiADaiILaiASSw0AIAIgCmoiEyAPSw0AIA0gBGsgC0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdBKGogACgCBBATQQAhBCAHQeAAaiEMIAdB5ABqIQoDQCAHQShqEARBAksgBCAXTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEJIAcoAkggBygCREEDdGopAgAiH0IgiKchCCAeQiCIISAgHUIgiKchAgJAIB9CEIinQf8BcSIDQQJPBEACQCAGRSADQRlJckUEQCAIIAdBKGogA0EgIAcoAixrIg0gDSADSxsiDRAFIAMgDWsiA3RqIQggB0EoahAEGiADRQ0BIAdBKGogAxAFIAhqIQgMAQsgB0EoaiADEAUgCGohCCAHQShqEAQaCyAHKQJUISEgByAINgJUIAcgITcDWAwBCwJAIANFBEAgAgRAIAcoAlQhCAwDCyAHKAJYIQgMAQsCQAJAIAdBKGpBARAFIAggAkVqaiIDQQNGBEAgBygCVEF/aiIDIANFaiEIDAELIANBAnQgB2ooAlQiCCAIRWohCCADQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAg2AlQLICCnIQMgCQRAIAdBKGogCRAFIANqIQMLIAkgC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgAmohAgsgB0EoahAEGiAHIAcoAmggAmoiCSADajYCaCAKIAwgCCAJSxsoAgAhDSAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogB0EoaiAfQhiIp0H/AXEQCCEOIAdB8ABqIARBBHRqIgsgCSANaiAIazYCDCALIAg2AgggCyADNgIEIAsgAjYCACAHIA4gH6dB//8DcWo2AkQgBEEBaiEEDAELCyAEIBdIDQEgEkFgaiEYIAdB4ABqIRogB0HkAGohGyABIQMDQCAHQShqEARBAksgBCAFTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEIIAcoAkggBygCREEDdGopAgAiH0IgiKchCSAeQiCIISAgHUIgiKchDAJAIB9CEIinQf8BcSICQQJPBEACQCAGRSACQRlJckUEQCAJIAdBKGogAkEgIAcoAixrIgogCiACSxsiChAFIAIgCmsiAnRqIQkgB0EoahAEGiACRQ0BIAdBKGogAhAFIAlqIQkMAQsgB0EoaiACEAUgCWohCSAHQShqEAQaCyAHKQJUISEgByAJNgJUIAcgITcDWAwBCwJAIAJFBEAgDARAIAcoAlQhCQwDCyAHKAJYIQkMAQsCQAJAIAdBKGpBARAFIAkgDEVqaiICQQNGBEAgBygCVEF/aiICIAJFaiEJDAELIAJBAnQgB2ooAlQiCSAJRWohCSACQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAk2AlQLICCnIRQgCARAIAdBKGogCBAFIBRqIRQLIAggC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgDGohDAsgB0EoahAEGiAHIAcoAmggDGoiGSAUajYCaCAbIBogCSAZSxsoAgAhHCAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogByAHQShqIB9CGIinQf8BcRAIIB+nQf//A3FqNgJEIAcgB0HwAGogBEEDcUEEdGoiDSkDCCIdNwPIASAHIA0pAwAiHjcDwAECQAJAAkAgBygCvAEiDiAepyICaiIWIBNLDQAgAyAHKALEASIKIAJqIgtqIBhLDQAgEiADayALQSBqTw0BCyAHIAcpA8gBNwMQIAcgBykDwAE3AwggAyASIAdBCGogB0G8AWogEyAPIBUgERAeIQsMAQsgAiADaiEIIAMgDhAHIAJBEU8EQCADQRBqIQIDQCACIA5BEGoiDhAHIAJBEGoiAiAISQ0ACwsgCCAdpyIOayECIAcgFjYCvAEgDiAIIA9rSwRAIA4gCCAVa0sEQEFsIQsMAgsgESACIA9rIgJqIhYgCmogEU0EQCAIIBYgChAPGgwCCyAIIBZBACACaxAPIQggByACIApqIgo2AsQBIAggAmshCCAPIQILIA5BEE8EQCAIIApqIQoDQCAIIAIQByACQRBqIQIgCEEQaiIIIApJDQALDAELAkAgDkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgDkECdCIKQcAeaigCAGoiAhAXIAIgCkHgHmooAgBrIQIgBygCxAEhCgwBCyAIIAIQDAsgCkEJSQ0AIAggCmohCiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAKSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAKSQ0ACwsgCxADBEAgCyEQDAQFIA0gDDYCACANIBkgHGogCWs2AgwgDSAJNgIIIA0gFDYCBCAEQQFqIQQgAyALaiEDDAILAAsLIAQgBUgNASAEIBdrIQtBACEEA0AgCyAFSARAIAcgB0HwAGogC0EDcUEEdGoiAikDCCIdNwPIASAHIAIpAwAiHjcDwAECQAJAAkAgBygCvAEiDCAepyICaiIKIBNLDQAgAyAHKALEASIJIAJqIhBqIBhLDQAgEiADayAQQSBqTw0BCyAHIAcpA8gBNwMgIAcgBykDwAE3AxggAyASIAdBGGogB0G8AWogEyAPIBUgERAeIRAMAQsgAiADaiEIIAMgDBAHIAJBEU8EQCADQRBqIQIDQCACIAxBEGoiDBAHIAJBEGoiAiAISQ0ACwsgCCAdpyIGayECIAcgCjYCvAEgBiAIIA9rSwRAIAYgCCAVa0sEQEFsIRAMAgsgESACIA9rIgJqIgwgCWogEU0EQCAIIAwgCRAPGgwCCyAIIAxBACACaxAPIQggByACIAlqIgk2AsQBIAggAmshCCAPIQILIAZBEE8EQCAIIAlqIQYDQCAIIAIQByACQRBqIQIgCEEQaiIIIAZJDQALDAELAkAgBkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgBkECdCIGQcAeaigCAGoiAhAXIAIgBkHgHmooAgBrIQIgBygCxAEhCQwBCyAIIAIQDAsgCUEJSQ0AIAggCWohBiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAGSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAGSQ0ACwsgEBADDQMgC0EBaiELIAMgEGohAwwBCwsDQCAEQQNHBEAgACAEQQJ0IgJqQazQAWogAiAHaigCVDYCACAEQQFqIQQMAQsLIAcoArwBIQgLQbp/IRAgEyAIayIAIBIgA2tLDQAgAwR/IAMgCCAAEAsgAGoFQQALIAFrIRALIAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY0AAQMyIFEAMiBg0AIANBHzYCfCADIANB/ABqIANB+ABqIAQgBCAFaiAGGyIEIAEgAmoiAiAEaxAVIgUQAw0AIAMoAnwiBkEfSw0AIAMoAngiB0EJTw0AIABBiCBqIAMgBkGAC0GADCAHEBggA0E0NgJ8IAMgA0H8AGogA0H4AGogBCAFaiIEIAIgBGsQFSIFEAMNACADKAJ8IgZBNEsNACADKAJ4IgdBCk8NACAAQZAwaiADIAZBgA1B4A4gBxAYIANBIzYCfCADIANB/ABqIANB+ABqIAQgBWoiBCACIARrEBUiBRADDQAgAygCfCIGQSNLDQAgAygCeCIHQQpPDQAgACADIAZBwBBB0BEgBxAYIAQgBWoiBEEMaiIFIAJLDQAgAiAFayEFQQAhAgNAIAJBA0cEQCAEKAAAIgZBf2ogBU8NAiAAIAJBAnRqQZzQAWogBjYCACACQQFqIQIgBEEEaiEEDAELCyAEIAFrIQgLIANBgAFqJAAgCAtGAQN/IABBCGohAyAAKAIEIQJBACEAA0AgACACdkUEQCABIAMgAEEDdGotAAJBFktqIQEgAEEBaiEADAELCyABQQggAmt0C4YDAQV/Qbh/IQcCQCADRQ0AIAItAAAiBEUEQCABQQA2AgBBAUG4fyADQQFGGw8LAn8gAkEBaiIFIARBGHRBGHUiBkF/Sg0AGiAGQX9GBEAgA0EDSA0CIAUvAABBgP4BaiEEIAJBA2oMAQsgA0ECSA0BIAItAAEgBEEIdHJBgIB+aiEEIAJBAmoLIQUgASAENgIAIAVBAWoiASACIANqIgNLDQBBbCEHIABBEGogACAFLQAAIgVBBnZBI0EJIAEgAyABa0HAEEHQEUHwEiAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBmCBqIABBCGogBUEEdkEDcUEfQQggASABIAZqIAgbIgEgAyABa0GAC0GADEGAFyAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBoDBqIABBBGogBUECdkEDcUE0QQkgASABIAZqIAgbIgEgAyABa0GADUHgDkGQGSAAKAKM4QEgACgCnOIBIAQQHyIAEAMNACAAIAFqIAJrIQcLIAcLrQMBCn8jAEGABGsiCCQAAn9BUiACQf8BSw0AGkFUIANBDEsNABogAkEBaiELIABBBGohCUGAgAQgA0F/anRBEHUhCkEAIQJBASEEQQEgA3QiB0F/aiIMIQUDQCACIAtGRQRAAkAgASACQQF0Ig1qLwEAIgZB//8DRgRAIAkgBUECdGogAjoAAiAFQX9qIQVBASEGDAELIARBACAKIAZBEHRBEHVKGyEECyAIIA1qIAY7AQAgAkEBaiECDAELCyAAIAQ7AQIgACADOwEAIAdBA3YgB0EBdmpBA2ohBkEAIQRBACECA0AgBCALRkUEQCABIARBAXRqLgEAIQpBACEAA0AgACAKTkUEQCAJIAJBAnRqIAQ6AAIDQCACIAZqIAxxIgIgBUsNAAsgAEEBaiEADAELCyAEQQFqIQQMAQsLQX8gAg0AGkEAIQIDfyACIAdGBH9BAAUgCCAJIAJBAnRqIgAtAAJBAXRqIgEgAS8BACIBQQFqOwEAIAAgAyABEBRrIgU6AAMgACABIAVB/wFxdCAHazsBACACQQFqIQIMAQsLCyEFIAhBgARqJAAgBQvjBgEIf0FsIQcCQCACQQNJDQACQAJAAkACQCABLQAAIgNBA3EiCUEBaw4DAwEAAgsgACgCiOEBDQBBYg8LIAJBBUkNAkEDIQYgASgAACEFAn8CQAJAIANBAnZBA3EiCEF+aiIEQQFNBEAgBEEBaw0BDAILIAVBDnZB/wdxIQQgBUEEdkH/B3EhAyAIRQwCCyAFQRJ2IQRBBCEGIAVBBHZB//8AcSEDQQAMAQsgBUEEdkH//w9xIgNBgIAISw0DIAEtAARBCnQgBUEWdnIhBEEFIQZBAAshBSAEIAZqIgogAksNAgJAIANBgQZJDQAgACgCnOIBRQ0AQQAhAgNAIAJBg4ABSw0BIAJBQGshAgwAAAsACwJ/IAlBA0YEQCABIAZqIQEgAEHw4gFqIQIgACgCDCEGIAUEQCACIAMgASAEIAYQXwwCCyACIAMgASAEIAYQXQwBCyAAQbjQAWohAiABIAZqIQEgAEHw4gFqIQYgAEGo0ABqIQggBQRAIAggBiADIAEgBCACEF4MAQsgCCAGIAMgASAEIAIQXAsQAw0CIAAgAzYCgOIBIABBATYCiOEBIAAgAEHw4gFqNgLw4QEgCUECRgRAIAAgAEGo0ABqNgIMCyAAIANqIgBBiOMBakIANwAAIABBgOMBakIANwAAIABB+OIBakIANwAAIABB8OIBakIANwAAIAoPCwJ/AkACQAJAIANBAnZBA3FBf2oiBEECSw0AIARBAWsOAgACAQtBASEEIANBA3YMAgtBAiEEIAEvAABBBHYMAQtBAyEEIAEQIUEEdgsiAyAEaiIFQSBqIAJLBEAgBSACSw0CIABB8OIBaiABIARqIAMQCyEBIAAgAzYCgOIBIAAgATYC8OEBIAEgA2oiAEIANwAYIABCADcAECAAQgA3AAggAEIANwAAIAUPCyAAIAM2AoDiASAAIAEgBGo2AvDhASAFDwsCfwJAAkACQCADQQJ2QQNxQX9qIgRBAksNACAEQQFrDgIAAgELQQEhByADQQN2DAILQQIhByABLwAAQQR2DAELIAJBBEkgARAhIgJBj4CAAUtyDQFBAyEHIAJBBHYLIQIgAEHw4gFqIAEgB2otAAAgAkEgahAQIQEgACACNgKA4gEgACABNgLw4QEgB0EBaiEHCyAHC0sAIABC+erQ0OfJoeThADcDICAAQgA3AxggAELP1tO+0ser2UI3AxAgAELW64Lu6v2J9eAANwMIIABCADcDACAAQShqQQBBKBAQGgviAgICfwV+IABBKGoiASAAKAJIaiECAn4gACkDACIDQiBaBEAgACkDECIEQgeJIAApAwgiBUIBiXwgACkDGCIGQgyJfCAAKQMgIgdCEol8IAUQGSAEEBkgBhAZIAcQGQwBCyAAKQMYQsXP2bLx5brqJ3wLIAN8IQMDQCABQQhqIgAgAk0EQEIAIAEpAAAQCSADhUIbiUKHla+vmLbem55/fkLj3MqV/M7y9YV/fCEDIAAhAQwBCwsCQCABQQRqIgAgAksEQCABIQAMAQsgASgAAK1Ch5Wvr5i23puef34gA4VCF4lCz9bTvtLHq9lCfkL5893xmfaZqxZ8IQMLA0AgACACSQRAIAAxAABCxc/ZsvHluuonfiADhUILiUKHla+vmLbem55/fiEDIABBAWohAAwBCwsgA0IhiCADhULP1tO+0ser2UJ+IgNCHYggA4VC+fPd8Zn2masWfiIDQiCIIAOFC+8CAgJ/BH4gACAAKQMAIAKtfDcDAAJAAkAgACgCSCIDIAJqIgRBH00EQCABRQ0BIAAgA2pBKGogASACECAgACgCSCACaiEEDAELIAEgAmohAgJ/IAMEQCAAQShqIgQgA2ogAUEgIANrECAgACAAKQMIIAQpAAAQCTcDCCAAIAApAxAgACkAMBAJNwMQIAAgACkDGCAAKQA4EAk3AxggACAAKQMgIABBQGspAAAQCTcDICAAKAJIIQMgAEEANgJIIAEgA2tBIGohAQsgAUEgaiACTQsEQCACQWBqIQMgACkDICEFIAApAxghBiAAKQMQIQcgACkDCCEIA0AgCCABKQAAEAkhCCAHIAEpAAgQCSEHIAYgASkAEBAJIQYgBSABKQAYEAkhBSABQSBqIgEgA00NAAsgACAFNwMgIAAgBjcDGCAAIAc3AxAgACAINwMICyABIAJPDQEgAEEoaiABIAIgAWsiBBAgCyAAIAQ2AkgLCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQEBogAwVBun8LCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQCxogAwVBun8LC6gCAQZ/IwBBEGsiByQAIABB2OABaikDAEKAgIAQViEIQbh/IQUCQCAEQf//B0sNACAAIAMgBBBCIgUQAyIGDQAgACgCnOIBIQkgACAHQQxqIAMgAyAFaiAGGyIKIARBACAFIAYbayIGEEAiAxADBEAgAyEFDAELIAcoAgwhBCABRQRAQbp/IQUgBEEASg0BCyAGIANrIQUgAyAKaiEDAkAgCQRAIABBADYCnOIBDAELAkACQAJAIARBBUgNACAAQdjgAWopAwBCgICACFgNAAwBCyAAQQA2ApziAQwBCyAAKAIIED8hBiAAQQA2ApziASAGQRRPDQELIAAgASACIAMgBSAEIAgQOSEFDAELIAAgASACIAMgBSAEIAgQOiEFCyAHQRBqJAAgBQtnACAAQdDgAWogASACIAAoAuzhARAuIgEQAwRAIAEPC0G4fyECAkAgAQ0AIABB7OABaigCACIBBEBBYCECIAAoApjiASABRw0BC0EAIQIgAEHw4AFqKAIARQ0AIABBkOEBahBDCyACCycBAX8QVyIERQRAQUAPCyAEIAAgASACIAMgBBBLEE8hACAEEFYgAAs/AQF/AkACQAJAIAAoAqDiAUEBaiIBQQJLDQAgAUEBaw4CAAECCyAAEDBBAA8LIABBADYCoOIBCyAAKAKU4gELvAMCB38BfiMAQRBrIgkkAEG4fyEGAkAgBCgCACIIQQVBCSAAKALs4QEiBRtJDQAgAygCACIHQQFBBSAFGyAFEC8iBRADBEAgBSEGDAELIAggBUEDakkNACAAIAcgBRBJIgYQAw0AIAEgAmohCiAAQZDhAWohCyAIIAVrIQIgBSAHaiEHIAEhBQNAIAcgAiAJECwiBhADDQEgAkF9aiICIAZJBEBBuH8hBgwCCyAJKAIAIghBAksEQEFsIQYMAgsgB0EDaiEHAn8CQAJAAkAgCEEBaw4CAgABCyAAIAUgCiAFayAHIAYQSAwCCyAFIAogBWsgByAGEEcMAQsgBSAKIAVrIActAAAgCSgCCBBGCyIIEAMEQCAIIQYMAgsgACgC8OABBEAgCyAFIAgQRQsgAiAGayECIAYgB2ohByAFIAhqIQUgCSgCBEUNAAsgACkD0OABIgxCf1IEQEFsIQYgDCAFIAFrrFINAQsgACgC8OABBEBBaiEGIAJBBEkNASALEEQhDCAHKAAAIAynRw0BIAdBBGohByACQXxqIQILIAMgBzYCACAEIAI2AgAgBSABayEGCyAJQRBqJAAgBgsuACAAECsCf0EAQQAQAw0AGiABRSACRXJFBEBBYiAAIAEgAhA9EAMNARoLQQALCzcAIAEEQCAAIAAoAsTgASABKAIEIAEoAghqRzYCnOIBCyAAECtBABADIAFFckUEQCAAIAEQWwsL0QIBB38jAEEQayIGJAAgBiAENgIIIAYgAzYCDCAFBEAgBSgCBCEKIAUoAgghCQsgASEIAkACQANAIAAoAuzhARAWIQsCQANAIAQgC0kNASADKAAAQXBxQdDUtMIBRgRAIAMgBBAiIgcQAw0EIAQgB2shBCADIAdqIQMMAQsLIAYgAzYCDCAGIAQ2AggCQCAFBEAgACAFEE5BACEHQQAQA0UNAQwFCyAAIAogCRBNIgcQAw0ECyAAIAgQUCAMQQFHQQAgACAIIAIgBkEMaiAGQQhqEEwiByIDa0EAIAMQAxtBCkdyRQRAQbh/IQcMBAsgBxADDQMgAiAHayECIAcgCGohCEEBIQwgBigCDCEDIAYoAgghBAwBCwsgBiADNgIMIAYgBDYCCEG4fyEHIAQNASAIIAFrIQcMAQsgBiADNgIMIAYgBDYCCAsgBkEQaiQAIAcLRgECfyABIAAoArjgASICRwRAIAAgAjYCxOABIAAgATYCuOABIAAoArzgASEDIAAgATYCvOABIAAgASADIAJrajYCwOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEEdCAAbiECCyAAQQh2IgEgAkEYbCIAQYwIaigCAGwgAEGICGooAgBqIgJBA3YgAmogAEGACGooAgAgAEGECGooAgAgAWxqSQs3ACAAIAMgBCAFQYAQEDMiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQMgVBuH8LC78DAQN/IwBBIGsiBSQAIAVBCGogAiADEAYiAhADRQRAIAAgAWoiB0F9aiEGIAUgBBAOIARBBGohAiAFLQACIQMDQEEAIAAgBkkgBUEIahAEGwRAIAAgAiAFQQhqIAMQAkECdGoiBC8BADsAACAFQQhqIAQtAAIQASAAIAQtAANqIgQgAiAFQQhqIAMQAkECdGoiAC8BADsAACAFQQhqIAAtAAIQASAEIAAtAANqIQAMAQUgB0F+aiEEA0AgBUEIahAEIAAgBEtyRQRAIAAgAiAFQQhqIAMQAkECdGoiBi8BADsAACAFQQhqIAYtAAIQASAAIAYtAANqIQAMAQsLA0AgACAES0UEQCAAIAIgBUEIaiADEAJBAnRqIgYvAQA7AAAgBUEIaiAGLQACEAEgACAGLQADaiEADAELCwJAIAAgB08NACAAIAIgBUEIaiADEAIiA0ECdGoiAC0AADoAACAALQADQQFGBEAgBUEIaiAALQACEAEMAQsgBSgCDEEfSw0AIAVBCGogAiADQQJ0ai0AAhABIAUoAgxBIUkNACAFQSA2AgwLIAFBbCAFQQhqEAobIQILCwsgBUEgaiQAIAILkgIBBH8jAEFAaiIJJAAgCSADQTQQCyEDAkAgBEECSA0AIAMgBEECdGooAgAhCSADQTxqIAgQIyADQQE6AD8gAyACOgA+QQAhBCADKAI8IQoDQCAEIAlGDQEgACAEQQJ0aiAKNgEAIARBAWohBAwAAAsAC0EAIQkDQCAGIAlGRQRAIAMgBSAJQQF0aiIKLQABIgtBAnRqIgwoAgAhBCADQTxqIAotAABBCHQgCGpB//8DcRAjIANBAjoAPyADIAcgC2siCiACajoAPiAEQQEgASAKa3RqIQogAygCPCELA0AgACAEQQJ0aiALNgEAIARBAWoiBCAKSQ0ACyAMIAo2AgAgCUEBaiEJDAELCyADQUBrJAALowIBCX8jAEHQAGsiCSQAIAlBEGogBUE0EAsaIAcgBmshDyAHIAFrIRADQAJAIAMgCkcEQEEBIAEgByACIApBAXRqIgYtAAEiDGsiCGsiC3QhDSAGLQAAIQ4gCUEQaiAMQQJ0aiIMKAIAIQYgCyAPTwRAIAAgBkECdGogCyAIIAUgCEE0bGogCCAQaiIIQQEgCEEBShsiCCACIAQgCEECdGooAgAiCEEBdGogAyAIayAHIA4QYyAGIA1qIQgMAgsgCUEMaiAOECMgCUEBOgAPIAkgCDoADiAGIA1qIQggCSgCDCELA0AgBiAITw0CIAAgBkECdGogCzYBACAGQQFqIQYMAAALAAsgCUHQAGokAA8LIAwgCDYCACAKQQFqIQoMAAALAAs0ACAAIAMgBCAFEDYiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQNAVBuH8LCyMAIAA/AEEQdGtB//8DakEQdkAAQX9GBEBBAA8LQQAQAEEBCzsBAX8gAgRAA0AgACABIAJBgCAgAkGAIEkbIgMQCyEAIAFBgCBqIQEgAEGAIGohACACIANrIgINAAsLCwYAIAAQAwsLqBUJAEGICAsNAQAAAAEAAAACAAAAAgBBoAgLswYBAAAAAQAAAAIAAAACAAAAJgAAAIIAAAAhBQAASgAAAGcIAAAmAAAAwAEAAIAAAABJBQAASgAAAL4IAAApAAAALAIAAIAAAABJBQAASgAAAL4IAAAvAAAAygIAAIAAAACKBQAASgAAAIQJAAA1AAAAcwMAAIAAAACdBQAASgAAAKAJAAA9AAAAgQMAAIAAAADrBQAASwAAAD4KAABEAAAAngMAAIAAAABNBgAASwAAAKoKAABLAAAAswMAAIAAAADBBgAATQAAAB8NAABNAAAAUwQAAIAAAAAjCAAAUQAAAKYPAABUAAAAmQQAAIAAAABLCQAAVwAAALESAABYAAAA2gQAAIAAAABvCQAAXQAAACMUAABUAAAARQUAAIAAAABUCgAAagAAAIwUAABqAAAArwUAAIAAAAB2CQAAfAAAAE4QAAB8AAAA0gIAAIAAAABjBwAAkQAAAJAHAACSAAAAAAAAAAEAAAABAAAABQAAAA0AAAAdAAAAPQAAAH0AAAD9AAAA/QEAAP0DAAD9BwAA/Q8AAP0fAAD9PwAA/X8AAP3/AAD9/wEA/f8DAP3/BwD9/w8A/f8fAP3/PwD9/38A/f//AP3//wH9//8D/f//B/3//w/9//8f/f//P/3//38AAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcAAAAYAAAAGQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAAFAAAABUAAAAWAAAAFwAAABgAAAAZAAAAGgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACUAAAAnAAAAKQAAACsAAAAvAAAAMwAAADsAAABDAAAAUwAAAGMAAACDAAAAAwEAAAMCAAADBAAAAwgAAAMQAAADIAAAA0AAAAOAAAADAAEAQeAPC1EBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAEAAAABQAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAABAAQcQQC4sBAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABIAAAAUAAAAFgAAABgAAAAcAAAAIAAAACgAAAAwAAAAQAAAAIAAAAAAAQAAAAIAAAAEAAAACAAAABAAAAAgAAAAQAAAAIAAAAAAAQBBkBIL5gQBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAAAEAAAAEAAAACAAAAAAAAAABAAEBBgAAAAAAAAQAAAAAEAAABAAAAAAgAAAFAQAAAAAAAAUDAAAAAAAABQQAAAAAAAAFBgAAAAAAAAUHAAAAAAAABQkAAAAAAAAFCgAAAAAAAAUMAAAAAAAABg4AAAAAAAEFEAAAAAAAAQUUAAAAAAABBRYAAAAAAAIFHAAAAAAAAwUgAAAAAAAEBTAAAAAgAAYFQAAAAAAABwWAAAAAAAAIBgABAAAAAAoGAAQAAAAADAYAEAAAIAAABAAAAAAAAAAEAQAAAAAAAAUCAAAAIAAABQQAAAAAAAAFBQAAACAAAAUHAAAAAAAABQgAAAAgAAAFCgAAAAAAAAULAAAAAAAABg0AAAAgAAEFEAAAAAAAAQUSAAAAIAABBRYAAAAAAAIFGAAAACAAAwUgAAAAAAADBSgAAAAAAAYEQAAAABAABgRAAAAAIAAHBYAAAAAAAAkGAAIAAAAACwYACAAAMAAABAAAAAAQAAAEAQAAACAAAAUCAAAAIAAABQMAAAAgAAAFBQAAACAAAAUGAAAAIAAABQgAAAAgAAAFCQAAACAAAAULAAAAIAAABQwAAAAAAAAGDwAAACAAAQUSAAAAIAABBRQAAAAgAAIFGAAAACAAAgUcAAAAIAADBSgAAAAgAAQFMAAAAAAAEAYAAAEAAAAPBgCAAAAAAA4GAEAAAAAADQYAIABBgBcLhwIBAAEBBQAAAAAAAAUAAAAAAAAGBD0AAAAAAAkF/QEAAAAADwX9fwAAAAAVBf3/HwAAAAMFBQAAAAAABwR9AAAAAAAMBf0PAAAAABIF/f8DAAAAFwX9/38AAAAFBR0AAAAAAAgE/QAAAAAADgX9PwAAAAAUBf3/DwAAAAIFAQAAABAABwR9AAAAAAALBf0HAAAAABEF/f8BAAAAFgX9/z8AAAAEBQ0AAAAQAAgE/QAAAAAADQX9HwAAAAATBf3/BwAAAAEFAQAAABAABgQ9AAAAAAAKBf0DAAAAABAF/f8AAAAAHAX9//8PAAAbBf3//wcAABoF/f//AwAAGQX9//8BAAAYBf3//wBBkBkLhgQBAAEBBgAAAAAAAAYDAAAAAAAABAQAAAAgAAAFBQAAAAAAAAUGAAAAAAAABQgAAAAAAAAFCQAAAAAAAAULAAAAAAAABg0AAAAAAAAGEAAAAAAAAAYTAAAAAAAABhYAAAAAAAAGGQAAAAAAAAYcAAAAAAAABh8AAAAAAAAGIgAAAAAAAQYlAAAAAAABBikAAAAAAAIGLwAAAAAAAwY7AAAAAAAEBlMAAAAAAAcGgwAAAAAACQYDAgAAEAAABAQAAAAAAAAEBQAAACAAAAUGAAAAAAAABQcAAAAgAAAFCQAAAAAAAAUKAAAAAAAABgwAAAAAAAAGDwAAAAAAAAYSAAAAAAAABhUAAAAAAAAGGAAAAAAAAAYbAAAAAAAABh4AAAAAAAAGIQAAAAAAAQYjAAAAAAABBicAAAAAAAIGKwAAAAAAAwYzAAAAAAAEBkMAAAAAAAUGYwAAAAAACAYDAQAAIAAABAQAAAAwAAAEBAAAABAAAAQFAAAAIAAABQcAAAAgAAAFCAAAACAAAAUKAAAAIAAABQsAAAAAAAAGDgAAAAAAAAYRAAAAAAAABhQAAAAAAAAGFwAAAAAAAAYaAAAAAAAABh0AAAAAAAAGIAAAAAAAEAYDAAEAAAAPBgOAAAAAAA4GA0AAAAAADQYDIAAAAAAMBgMQAAAAAAsGAwgAAAAACgYDBABBpB0L2QEBAAAAAwAAAAcAAAAPAAAAHwAAAD8AAAB/AAAA/wAAAP8BAAD/AwAA/wcAAP8PAAD/HwAA/z8AAP9/AAD//wAA//8BAP//AwD//wcA//8PAP//HwD//z8A//9/AP///wD///8B////A////wf///8P////H////z////9/AAAAAAEAAAACAAAABAAAAAAAAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",te={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},ie={};for(var re in te)te.hasOwnProperty(re)&&(ie[te[re]]=parseInt(re,10));ie.BitsPerSample,ie.ExtraSamples,ie.SampleFormat,ie.StripByteCounts,ie.StripOffsets,ie.StripRowCounts,ie.TileByteCounts,ie.TileOffsets,ie.SubIFDs;var Ie={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},ge={};for(var ne in Ie)Ie.hasOwnProperty(ne)&&(ge[Ie[ne]]=parseInt(ne,10));var ae=1,oe=0,Be=1,Ce=2,Qe={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},Ee={};for(var se in Qe)Qe.hasOwnProperty(se)&&(Ee[Qe[se]]=parseInt(se,10));function fe(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var ce=new Ae,he=function(A){s(t,w);var e=fe(t);function t(A){var i;return B(this,t),(i=e.call(this)).planarConfiguration=void 0!==A.PlanarConfiguration?A.PlanarConfiguration:1,i.samplesPerPixel=void 0!==A.SamplesPerPixel?A.SamplesPerPixel:1,i.addCompression=A.LercParameters[ae],i}return Q(t,[{key:"decodeBlock",value:function(A){switch(this.addCompression){case oe:break;case Be:A=YA(new Uint8Array(A)).buffer;break;case Ce:A=ce.decode(new Uint8Array(A)).buffer;break;default:throw new Error("Unsupported LERC additional compression method identifier: ".concat(this.addCompression))}return zA.decode(A,{returnPixelInterleavedDims:1===this.planarConfiguration}).pixels[0].buffer}}]),t}(),le=Object.freeze({__proto__:null,zstd:ce,default:he});function ue(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var we=function(A){s(I,w);var t,i=ue(I);function I(){var A;if(B(this,I),A=i.call(this),"undefined"==typeof createImageBitmap)throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if("undefined"==typeof document&&"undefined"==typeof OffscreenCanvas)throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");return A}return Q(I,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return i=new Blob([t]),A.next=3,createImageBitmap(i);case 3:return I=A.sent,"undefined"!=typeof document?((g=document.createElement("canvas")).width=I.width,g.height=I.height):g=new OffscreenCanvas(I.width,I.height),(n=g.getContext("2d")).drawImage(I,0,0),A.abrupt("return",n.getImageData(0,0,I.width,I.height).data.buffer);case 8:case"end":return A.stop()}}),A)}))),function(A,e){return t.apply(this,arguments)})}]),I}(),de=Object.freeze({__proto__:null,default:we});';return new e(typeof Buffer<"u"?"data:application/javascript;base64,"+Buffer.from(A,"binary").toString("base64"):URL.createObjectURL(new Blob([A],{type:"application/javascript"})))}export{t as create}; diff --git a/pr-preview/pr-17/assets/deflate-BXt-9JA_-CoW5SAcn.js b/pr-preview/pr-17/assets/deflate-BXt-9JA_-CoW5SAcn.js deleted file mode 100644 index 76840c6..0000000 --- a/pr-preview/pr-17/assets/deflate-BXt-9JA_-CoW5SAcn.js +++ /dev/null @@ -1 +0,0 @@ -import{b as e}from"./pako.esm-CB1uQYY0-DQSVoCko.js";import{g as o}from"./basedecoder-DHcBySSe-gdlnpIMU.js";class f extends o{decodeBlock(r){return e(new Uint8Array(r)).buffer}}export{f as default}; diff --git a/pr-preview/pr-17/assets/eox-stacinfo-CES29oXd.js b/pr-preview/pr-17/assets/eox-stacinfo-CES29oXd.js deleted file mode 100644 index 695cc22..0000000 --- a/pr-preview/pr-17/assets/eox-stacinfo-CES29oXd.js +++ /dev/null @@ -1,557 +0,0 @@ -var kN={};/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Rt=globalThis,Jr=Rt.ShadowRoot&&(Rt.ShadyCSS===void 0||Rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,uR=Symbol(),xN=new WeakMap;let EB=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==uR)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Jr&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=xN.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&xN.set(t,e))}return e}toString(){return this.cssText}};const CB=e=>new EB(typeof e=="string"?e:e+"",void 0,uR),TB=(e,t)=>{if(Jr)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of t){const i=document.createElement("style"),a=Rt.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=r.cssText,e.appendChild(i)}},AN=Jr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const i of t.cssRules)r+=i.cssText;return CB(r)})(e):e;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{is:DB,defineProperty:LB,getOwnPropertyDescriptor:OB,getOwnPropertyNames:qB,getOwnPropertySymbols:jB,getPrototypeOf:PB}=Object,rt=globalThis,_N=rt.trustedTypes,$B=_N?_N.emptyScript:"",SN=rt.reactiveElementPolyfillSupport,dt=(e,t)=>e,Mt={toAttribute(e,t){switch(t){case Boolean:e=e?$B:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Zr=(e,t)=>!DB(e,t),EN={attribute:!0,type:String,converter:Mt,reflect:!1,hasChanged:Zr};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),rt.litPropertyMetadata??(rt.litPropertyMetadata=new WeakMap);class et extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=EN){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){const i=Symbol(),a=this.getPropertyDescriptor(t,i,r);a!==void 0&&LB(this.prototype,t,a)}}static getPropertyDescriptor(t,r,i){const{get:a,set:o}=OB(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return a?.call(this)},set(s){const u=a?.call(this);o.call(this,s),this.requestUpdate(t,u,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??EN}static _$Ei(){if(this.hasOwnProperty(dt("elementProperties")))return;const t=PB(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(dt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(dt("properties"))){const r=this.properties,i=[...qB(r),...jB(r)];for(const a of i)this.createProperty(a,r[a])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[i,a]of r)this.elementProperties.set(i,a)}this._$Eh=new Map;for(const[r,i]of this.elementProperties){const a=this._$Eu(r,i);a!==void 0&&this._$Eh.set(a,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const a of i)r.unshift(AN(a))}else t!==void 0&&r.push(AN(t));return r}static _$Eu(t,r){const i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var r;(r=this._$EO)==null||r.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return TB(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostDisconnected)==null?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EC(t,r){var i;const a=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,a);if(o!==void 0&&a.reflect===!0){const s=(((i=a.converter)==null?void 0:i.toAttribute)!==void 0?a.converter:Mt).toAttribute(r,a.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,r){var i;const a=this.constructor,o=a._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const s=a.getPropertyOptions(o),u=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)==null?void 0:i.fromAttribute)!==void 0?s.converter:Mt;this._$Em=o,this[o]=u.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(t,r,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??Zr)(this[t],r))return;this.P(t,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,i){this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[o,s]of a)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let r=!1;const i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(t=this._$EO)==null||t.forEach(a=>{var o;return(o=a.hostUpdate)==null?void 0:o.call(a)}),this.update(i)):this._$EU()}catch(a){throw r=!1,this._$EU(),a}r&&this._$AE(i)}willUpdate(t){}_$AE(t){var r;(r=this._$EO)==null||r.forEach(i=>{var a;return(a=i.hostUpdated)==null?void 0:a.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(t){}firstUpdated(t){}}et.elementStyles=[],et.shadowRootOptions={mode:"open"},et[dt("elementProperties")]=new Map,et[dt("finalized")]=new Map,SN?.({ReactiveElement:et}),(rt.reactiveElementVersions??(rt.reactiveElementVersions=[])).push("2.0.4");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Ft=globalThis,Bt=Ft.trustedTypes,CN=Bt?Bt.createPolicy("lit-html",{createHTML:e=>e}):void 0,cR="$lit$",je=`lit$${(Math.random()+"").slice(9)}$`,pR="?"+je,NB=`<${pR}>`,Ze=document,gt=()=>Ze.createComment(""),bt=e=>e===null||typeof e!="object"&&typeof e!="function",fR=Array.isArray,UB=e=>fR(e)||typeof e?.[Symbol.iterator]=="function",tr=`[ -\f\r]`,st=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,TN=/-->/g,DN=/>/g,ze=RegExp(`>|${tr}(?:([^\\s"'>=/]+)(${tr}*=${tr}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),LN=/'/g,ON=/"/g,dR=/^(?:script|style|textarea|title)$/i,RB=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),he=RB(1),Ke=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),qN=new WeakMap,We=Ze.createTreeWalker(Ze,129);function hR(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return CN!==void 0?CN.createHTML(t):t}const MB=(e,t)=>{const r=e.length-1,i=[];let a,o=t===2?"":"",s=st;for(let u=0;u"?(s=a??st,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?ze:h[3]==='"'?ON:LN):s===ON||s===LN?s=ze:s===TN||s===DN?s=st:(s=ze,a=void 0);const C=s===ze&&e[u+1].startsWith("/>")?" ":"";o+=s===st?c+NB:b>=0?(i.push(d),c.slice(0,b)+cR+c.slice(b)+je+C):c+je+(b===-2?u:C)}return[hR(e,o+(e[r]||"")+(t===2?"":"")),i]};class yt{constructor({strings:t,_$litType$:r},i){let a;this.parts=[];let o=0,s=0;const u=t.length-1,c=this.parts,[d,h]=MB(t,r);if(this.el=yt.createElement(d,i),We.currentNode=this.el.content,r===2){const b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(a=We.nextNode())!==null&&c.length0){a.textContent=Bt?Bt.emptyScript:"";for(let C=0;C2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ae}_$AI(t,r=this,i,a){const o=this.strings;let s=!1;if(o===void 0)t=nt(this,t,r,0),s=!bt(t)||t!==this._$AH&&t!==Ke,s&&(this._$AH=t);else{const u=t;let c,d;for(t=o[0],c=0;c{const i=r?.renderBefore??t;let a=i._$litPart$;if(a===void 0){const o=r?.renderBefore??null;i._$litPart$=a=new xt(t.insertBefore(gt(),o),o,void 0,r??{})}return a._$AI(e),a};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */class tt extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const r=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=r.firstChild),r}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=VB(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Ke}}var PN;tt._$litElement$=!0,tt.finalized=!0,(PN=globalThis.litElementHydrateSupport)==null||PN.call(globalThis,{LitElement:tt});const $N=globalThis.litElementPolyfillSupport;$N?.({LitElement:tt});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const mR=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const GB={attribute:!0,type:String,converter:Mt,reflect:!1,hasChanged:Zr},WB=(e=GB,t,r)=>{const{kind:i,metadata:a}=r;let o=globalThis.litPropertyMetadata.get(a);if(o===void 0&&globalThis.litPropertyMetadata.set(a,o=new Map),o.set(r.name,e),i==="accessor"){const{name:s}=r;return{set(u){const c=t.get.call(this);t.set.call(this,u),this.requestUpdate(s,c,e)},init(u){return u!==void 0&&this.P(s,void 0,e),u}}}if(i==="setter"){const{name:s}=r;return function(u){const c=this[s];t.call(this,u),this.requestUpdate(s,c,e)}}throw Error("Unsupported decorator location: "+i)};function _e(e){return(t,r)=>typeof r=="object"?WB(e,t,r):((i,a,o)=>{const s=a.hasOwnProperty(o);return a.constructor.createProperty(o,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(a,o):void 0})(e,t,r)}/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function gR(e){return _e({...e,state:!0,attribute:!1})}/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function*lt(e,t){if(e!==void 0){let r=0;for(const i of e)yield t(i,r++)}}/** - * @license - * Copyright 2021 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */function ut(e,t,r){return e?t(e):r?.(e)}/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const JB={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ZB=e=>(...t)=>({_$litDirective$:e,values:t});let KB=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */let Vr=class extends KB{constructor(e){if(super(e),this.it=ae,e.type!==JB.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ae||e==null)return this._t=void 0,this.it=e;if(e===Ke)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Vr.directiveName="unsafeHTML",Vr.resultType=1;const Ge=ZB(Vr);/** - * @license - * Copyright 2020 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const bR=Symbol.for(""),XB=e=>{if(e?.r===bR)return e?._$litStatic$},qt=e=>({_$litStatic$:e,r:bR}),NN=new Map,YB=e=>(t,...r)=>{const i=r.length;let a,o;const s=[],u=[];let c,d=0,h=!1;for(;de.map(([r,i])=>{var a,o;if(r==="extent"&&((o=(a=i.value)==null?void 0:a.temporal)==null?void 0:o.interval.length)>0){const u=i.value.temporal.interval[0];Array.isArray(u)&&(typeof u[0]=="string"||typeof u[1]=="string")&&(i.formatted=`${new Date(u[0]).toISOString().substring(0,10)} - ${new Date(u[1]).toISOString().substring(0,10)}`)}i.formatted=i.formatted.replaceAll(new RegExp('(?`${u}`);const s=u=>Object.entries(u).filter(([c,d])=>{let h=!0;return d.roles&&(h=d.roles.includes("metadata")),d.rel&&(h=d.rel==="example"),h});return(r==="assets"||r==="links"||r==="providers")&&(t==="property"?i.formatted=``:t==="featured"&&(i.formatted=s(i.value).map(([u,c])=>`
        - ${c.description?`

        ${c.description}

        `:""} - ${c.name||c.title||u} - -
        `).join(""))),["providers","assets","links"].includes(r)&&(i.length=s(i.value).length),[r,i]}),eI=` -:host { - display: block; -} -`,tI=` -button, -.button { - /* TODO: why does this only work here and not from :root? */ - --primary-color: #004170; - --primary-color-hover: #004170CC; - --error-color: #FF5252; - - display: inline-flex; - position: relative; - align-items: center; - color: #fff; - border-width: 0; - outline: none; - border-radius: 4px; - padding: 16px; - height: 36px; - cursor: pointer; - font-family: inherit; - font-size: 0.875rem; - text-transform: uppercase; - letter-spacing: 1.25px; - font-weight: 500; - box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); - transition-property: box-shadow, transform, opacity, background; - transition-duration: 0.28s; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); -} - -button:hover:not([disabled]):not(.icon), -.button:hover:not([disabled]):not(.icon) { - box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); - background: var(--primary-color-hover); -} - -button, button:active, -.button, .button:active { - background: var(--primary-color); -} - -button[disabled], -.button[disabled] { - opacity: 0.5; - cursor: not-allowed; -} - -button.block, -.button.block { - display: block; -} - -button.outline, -.button.outline { - background: transparent; - box-shadow: none; - color: var(--primary-color); - outline: 1px solid var(--primary-color); -} - -button.outline:hover, -.button.outline:hover { - background: transparent; -} - -button.icon, -.button.icon { - background: transparent; - border: none; - box-shadow: none; - padding: 0; - border-radius: 50%; - width: 24px; - height: 24px; - text-indent: -9999px; -} - -button.icon-text, -.button.icon-text { - text-indent: 26px; -} - -button.icon-text.block, -.button.icon-text.block { - text-indent: 20px; -} - -button.icon:before, button.icon-text:before, -.button.icon:before, .button.icon-text:before { - position: absolute; - text-indent: 0; - line-height: initial; -} - -button.icon-text.block:before, -.button.icon-text.block:before { - text-indent: -54px; -} - -button.icon:before, -.button.icon:before { - width: 24px; - height: 24px; - margin-right: 0; -} - -button.icon-text:before, -.button.icon-text:before { - width: 18px; - height: 18px; -} - -button.small, -.button.small { - height: 28px; - padding: 12.4px; - font-size: .75rem; -} - -button.smallest.icon, -button.smallest.icon::before { - height: 16px; - width: 16px; - padding: 0px; -} -`,rI=` -${tI} - -:host { - --color-primary: #004170; - --color-primary-lighter: color-mix(in srgb, var(--color-primary), #fff 95%); - display: flex; - flex-direction: column; - min-height: 100%; - height: auto; - line-height: 1.5; - box-sizing: border-box; -} -img, -video, -iframe { - max-width: 100%; -} -header, -main, -footer { - padding: 5px 30px; -} -header { - background: var(--color-primary-lighter); -} -header h1 { - font-size: 24px; - color: var(--color-primary); -} -header h2 { - font-size: 22px; - color: var(--color-primary); -} -section#tags ul { - padding: 0; - display: flex; - flex-wrap: wrap; -} -section#tags li { - list-style: none; -} -main { - padding-bottom: 50px; - flex: 1; - font-size: small; -} -section#properties ul { - padding: 0; -} -section#properties > ul:not(.single-property) { - columns: 2; - -webkit-columns: 2; - -moz-columns: 2; -} -section#properties slot > li { - margin-bottom: 8px; - break-inside: avoid; -} -section#properties slot:not([name=description]) ul li { - list-style: none; -} -section#properties .colon { - margin-right: 4px; -} -section#properties .label { - font-weight: bold; -} -section#properties ul li, -section#properties ul li ul { - display: flex; - flex-wrap: wrap; -} -section#properties ul li ul li:not(:last-child):after { - content: ","; - margin-right: 4px; -} -section#featured details > div { - padding: 10px 12px 20px; -} -section#featured .button-container { - text-align: center; - margin-bottom: 24px; -} -section#featured .button-container .button { - /*height: 14px;*/ - padding: 8px; - margin: 8px 0; - height: auto; - text-decoration: none; - /*display: block; - display: flex; - align-items: center; - justify-content: center;*/ -} -section#featured .button-container .button:before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24'%3E%3Ctitle%3Eopen-in-new%3C/title%3E%3Cpath d='M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z' /%3E%3C/svg%3E"); -} -section#featured .button-container > div { - text-align: left; -} -section#featured .button-container > div > p { - margin-bottom: 0; -} -footer { - background: var(--color-primary); - color: white; - padding: 10px 30px 20px; - position: relative; -} -footer a { - color: white; -} -footer h1 { - font-size: 14px; -} -footer h2 { - font-size: 12px; -} -footer .copy { - background: none; - border: none; - position: absolute; - top: 15px; - right: 30px; -} -footer .copy:before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='-6 -6 36 36'%3E%3Ctitle%3Econtent-copy%3C/title%3E%3Cpath d='M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z' /%3E%3C/svg%3E"); -} -dt { - font-weight: bold; - text-transform: uppercase; -} -dd dt { - text-transform: unset; -} -dd, dt { - margin: 0; -} -dt { - margin-top: 20px; -} -dd dt { - margin-top: 8px; -} - -/* from eox-itemfilter -TODO harmonize/refactor */ -details summary > * { - display: inline; -} -details summary { - display: flex; - align-items: center; - border-bottom: 1px solid #0002; - padding: .5rem 0; -} - -details > summary::-webkit-details-marker { - display: none; -} - -.title { - font-size: small; - align-items: center; -} -details summary .title { - display: flex; - font-weight: 500; -} -details summary::before { - content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230009' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E"); - height: 24px; - width: 24px; -} -details[open] summary::before { - transform: rotate(90deg); -} -section#tags ul>li, -.count { - display: flex; - justify-content: center; - align-items: center; - background: #00417044; - padding: 0 12px; - height: 20px; - border-radius: 10px; - color: #004170; - font-weight: 500; - margin-left: 9px; -} -section#tags ul>li { - padding: 2px 12px; - margin: 0 4px 4px 0; -} -`;var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yR(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var RN,MN;function it(){return MN||(MN=1,RN={locales:[],translate:null,format(e,t=null){if(t)for(let r in t)e=e.replaceAll(`{${r}}`,t[r]);return e}}),RN}var rr,FN;function At(){if(FN)return rr;FN=1;const e=it(),t={e(r){return typeof r!="string"&&(r=String(r)),r.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},t(r,i=null){return typeof e.translate=="function"?e.translate(r,i):e.format(r,i)},toNothing(r=null){return r===null&&(r=t.t("n/a")),`${r}`},toList(r,i=!1,a=null,o=null){let s=o===!0?"ol":"ul";return Array.isArray(r)||(r=[r]),i&&(r=r.slice(0),typeof i=="function"?r.sort(i):r.sort(),o===null&&(s="ol")),typeof a=="function"&&(r=r.map(a)),r.length===0?t.toNothing():r.length===1?r[0]:`<${s}>
      • ${r.join("
      • ")}
      • `},toLink(r,i="",a="",o="_blank"){return i||(r.length>50?i=r.replace(/^\w+:\/\/([^\/]+)((\/[^\/\?]+)*\/([^\/\?]+)(\?.*)?)?$/i,function(...s){return s[4]?s[1]+"​/[…]/​"+s[4]:s[1]}):i=r.replace(/^\w+:\/\//i,"")),`${t.e(i)}`},toObject(r,i=null,a=null,o=[],s=null,u=[]){let c="
        ",d=Array.isArray(o)&&o.length>=2?o:Object.keys(r);for(let h of d){if(!(h in r)||typeof s=="function"&&u.length>0&&!s(u[0],u.concat([h])))continue;let b;typeof a=="function"?b=a(h,r):b=t.formatKey(h,!0);let D=r[h];typeof i=="function"&&(D=i(D,h,r)),c+=`
        ${b}
        ${D}
        `}return c+="
        ",c},abbrev(r,i){return`${t.e(r)}`},isObject(r){return typeof r=="object"&&r===Object(r)&&!Array.isArray(r)},formatKey(r,i=!1){if(r.includes("/"))return t.e(t.t(r));i===!1&&(r=r.replace(/^[\w-]+:/i,""));let a=r.split(/[:_\-\s]/g).map(o=>o.substr(0,1).toUpperCase()+o.substr(1)).join(" ");return t.e(t.t(a))},hexToUint8(r){if(r.length===0||r.length%2!==0)throw new Error(`The string "${r}" is not valid hex.`);return new Uint8Array(r.match(/.{1,2}/g).map(i=>parseInt(i,16)))},uint8ToHex(r){return r.reduce((i,a)=>i+a.toString(16).padStart(2,"0"),"")},keysFromListOfObjects(r){return r.reduce((i,a)=>Object.keys(a).reduce((o,s)=>(o.indexOf(s)==-1&&o.push(s),o),i),[])},unit(r,i=""){return typeof i=="string"&&i.length>0?(i=t.t(i),`${r} ${i}`):r}};return rr=t,rr}const jt=At(),iI=it(),ft={fields(e){let t=["extensions","metadata","links","assets"];for(let r of t)for(let i in e[r])e[r][i]=ft.field(e[r][i],e[r],e);return e},field(e,t={},r={}){if(typeof e=="string")return{label:e};if(typeof e.alias=="string"){let i=t[e.alias]||r.metadata[e.alias];if(!i)throw new Error("Alias is invalid: "+e.alias);return Object.assign(e,ft.field(i,t,r))}if(jt.isObject(e.items)){let i=[];for(let a in e.items)e.items[a]=ft.field(e.items[a],t,r),i.push(Object.assign({key:a},e.items[a]));e.itemOrder=i.sort((a,o)=>a.id===!0?-1:o.id===!0?1:typeof a.order=="number"&&typeof o.order=="number"?a.order-o.order:jt.t(a.label).localeCompare(jt.t(o.label),iI.locales)).map(a=>a.key)}if(jt.isObject(e.properties))for(let i in e.properties)e.properties[i]=ft.field(e.properties[i],t,r);return e}};var oI=ft;const ct=oI,vR={externalRenderer:!1,dependencies:{},fields:{assets:{},extensions:{},links:{},metadata:{}},exportFields(){return this.fields},importFields(e){e=ct.fields(e);for(let t in this.fields)Object.assign(this.fields[t],e[t])},getDependency(e){return this.dependencies[e]||console.warn(`Dependency '${e}' not registered.`),this.dependencies[e]},addDependency(e,t){this.dependencies[e]=t},addExtension(e,t){this.fields.extensions[e]=ct.field(t,this.fields.extensions)},addMetadataField(e,t){this.fields.metadata[e]=ct.field(t,this.fields.metadata)},addLinkField(e,t){this.fields.links[e]=ct.field(t,this.fields.links)},addAssetField(e,t){this.fields.assets[e]=ct.field(t,this.fields.assets)},addMetadataFields(e){for(var t in e)vR.addMetadataField(t,e[t])},getExtension(e){return this.fields.extensions[e]?this.fields.extensions[e]:{}},getSpecification(e,t=null){let r={};return t==="assets"&&this.fields.assets[e]?r=this.fields.assets[e]:t==="links"&&this.fields.links[e]?r=this.fields.links[e]:this.fields.metadata[e]&&(r=this.fields.metadata[e]),r}};var Kr=vR;const aI={alternate:"Alternative Access Methods",anon:"Anonymized Location",card4l:{label:"CARD4L",explain:"CEOS Analysis Ready Data for Land"},classification:"Classification",contacts:"Contacts",cube:"Data Cube",esa_cci_lc:"ESA Climate Change Initiative - Land Cover",eo:"Electro-Optical",forecast:"Forecast",file:"File",grid:"Gridded Data",goes:{label:"NOAA GOES",explain:"NOAA Geostationary Operational Environmental Satellite"},label:"Labels / ML",language:"Internationalization / Localization",mgrs:{label:"MGRS",explain:"Military Grid Reference System"},noaa_mrms_qpe:{label:"NOAA MRMS QPE",explain:"NOAA Multi-Radar Multi-Sensor Quantitative Precipitation Estimation"},odc:"Open Data Cube",order:"Order",pc:"Point Cloud",processing:"Processing",proj:"Projection",raster:"Raster Imagery",sar:{label:"SAR",explain:"Synthetic Aperture Radar"},sat:"Satellite",sci:"Scientific",ssys:"Solar System",stats:"STAC Statistics",storage:"Cloud Storage",table:"Tabular Data",themes:"Themes",tiles:"Tiled Assets",view:"View Geometry","web-map-links":"Web Maps",xarray:"xarray",gee:"Google Earth Engine",landsat:"Landsat",msft:"Microsoft",openeo:"openEO",pl:"Planet Labs PBC",s2:"Sentinel-2",sentinel:"Copernicus Sentinel",cbers:{label:"CBERS",explain:"China-Brazil Earth Resources Satellite Program"},geoadmin:{label:"swisstopo",explain:"Federal Office of Topography (Switzerland)"}},sI={href:{label:"URL",format:"Url"},hreflang:{label:"Language",format:"LanguageCode"},rel:{label:"Relation",explain:"Based on IANA relation types",mapping:{self:"This document",root:"Root STAC Catalog",parent:"Parent STAC Catalog",collection:"STAC Collection",derived_from:"STAC Item for input data",about:"About this resource",alternate:"Alternative representation",via:"Source metadata",next:"Next page",prev:"Previous page",canonical:"Origin of this document","processing-expression":"Processing inctructions/code","latest-version":"Latest version","predecessor-version":"Predecessor version","successor-version":"Successor version",source:"Source data","cite-as":"Citation information",related:"Related resource",describedby:"Description of the resource","service-desc":"API definitions","service-doc":"API user documentation",conformance:"API conformance declaration",order:"Order details","3d-tiles":"3D Tiles",pmtiles:"PMTiles",tilejson:"TileJSON",wms:"OGC Web Map Service (WMS)",wmts:"OGC Web Map Tile Service (WMTS)",xyz:"XYZ Web Map"}},type:{label:"File Format",explain:"Based on the IANA media (MIME) types",format:"MediaType"}},lI={href:{label:"URL",format:"Url"},hreflang:{label:"Language",format:"LanguageCode"},type:{label:"File Format",explain:"Based on the IANA media (MIME) types",format:"MediaType"},roles:{label:"Purpose",mapping:{thumbnail:"Preview",overview:"Overview",visual:"Visualization",data:"Data",metadata:"Metadata",graphic:"Illustration"}},alternate:{label:"Alternatives",listWithKeys:!0,items:{href:{label:"URL",format:"Url"},title:{alias:"title"},description:{alias:"description"}},summary:!1,ext:"alternate"},"pl:asset_type":"Asset Type","pl:bundle_type":"Bundle Type","table:storage_options":{alias:"xarray:storage_options"},"xarray:open_kwargs":{label:"Read Options",custom:!0,summary:!1},"xarray:storage_options":{label:"fsspec Options",custom:!0,summary:!1}},uI={id:"Identifier",keywords:"Keywords",datetime:{label:"Time of Data",format:"Timestamp",summary:!1},title:{label:"Title",summary:!1},description:{label:"Description",format:"CommonMark",summary:!1},start_datetime:{label:"Time of Data begins",format:"Timestamp",summary:!1},end_datetime:{label:"Time of Data ends",format:"Timestamp",summary:!1},created:{label:"Created",format:"Timestamp",summary:"r"},updated:{label:"Updated",format:"Timestamp",summary:"r"},published:{label:"Published",format:"Timestamp",summary:"r"},expires:{label:"Expires",format:"Timestamp",summary:"r"},unpublished:{label:"Unpublished",format:"Timestamp",summary:"r"},license:{label:"License",format:"License",summary:!1},providers:{label:"Providers",format:"Providers",summary:!1},platform:"Platform",instruments:{label:"Instruments",format:"CSV"},constellation:"Constellation",mission:"Mission",gsd:{label:"GSD",explain:"Ground Sample Distance",unit:"m"},version:{label:"Data Version",summary:!1},deprecated:{label:"Deprecated",summary:!1},experimental:{label:"Experimental",summary:!1},language:{label:"Current Language",ext:"language",summary:"v",properties:{name:{label:"Name"},alternate:{label:"Alternate Name"},code:{label:"Code"},dir:{label:"Direction",explain:"Reading and writing direction",mapping:{ltr:"left-to-right",rtl:"right-to-left"},default:"ltr"}}},languages:{label:"Available Languages",ext:"language",summary:!1,items:{name:{label:"Name",sortable:!0,order:0},alternate:{label:"Alternate Name",sortable:!0,order:1},code:{label:"Code",sortable:!0,order:2},dir:{label:"Direction",explain:"Reading and writing direction",sortable:!0,order:3,mapping:{ltr:"left-to-right",rtl:"right-to-left"},default:"ltr"}}},contacts:{label:"Contacts",ext:"contacts",summary:"v",items:{name:{label:"Name"},identifier:{label:"Identifier"},position:{label:"Position"},organization:{label:"Organization"},logo:{label:"Logo",format:"Image"},phones:{label:"Phone",items:{value:{label:"Number",format:"Phone",order:0},roles:{label:"Used For",order:1,mapping:{work:"Work",home:"Personal",fax:"Fax"}}}},emails:{label:"Email",items:{value:{label:"Address",format:"Email",order:0},roles:{label:"Used For",order:1,mapping:{work:"Work",home:"Personal"}}}},addresses:{label:"Postal Addresses",format:"Address",items:{deliveryPoint:{label:"Street / House",order:0},city:{label:"City",order:1},administrativeArea:{label:"State / Province",order:2},postalCode:{label:"Postal Code",order:3},country:{label:"Country",order:4}}},links:{label:"Additional Resources",format:"Link"},contactInstructions:"Further Instructions",roles:{label:"Types",format:"CSV"}}},themes:{label:"Themes",ext:"themes",summary:!1,items:{scheme:{label:"Vocabulary",order:0,format:"Url"},concepts:{label:"Terms",order:1,format:"Concepts",items:{id:{label:"Identifier",order:0},title:{label:"Title",order:1},description:{label:"Description",order:2},url:{label:"URL",order:3,format:"Url"}}}}},crs:{label:"CRS",format:"CRS",explain:"Coordinate Reference System"},"anon:size":{label:"Uncertainty",unit:"°",explain:"The size of one side of the anonymized bounding box"},"anon:warning":{label:"Warning",summary:!1},"classification:classes":{summary:!1,label:"Classes",items:{color_hint:{label:"Color",order:0,format:"HexColor"},value:{label:"Value",order:1},title:{label:"Title",order:2},name:{label:"Identifier",order:3},description:{label:"Description",order:4,format:"CommonMark"},nodata:{label:"No-data value",order:5,default:!1}}},"classification:bitfields":{summary:!1,label:"Bit Mask",items:{name:{label:"Name",order:0},offset:{label:"Offset",explain:"Offset to the first bit",order:1},length:{label:"Number of bits",order:2},description:{label:"Description",order:3,format:"CommonMark"},classes:{alias:"classification:classes"},roles:{label:"Purpose"}}},"cube:dimensions":{label:"Dimensions",summary:!1,listWithKeys:!0,items:{type:{label:"Type",order:0},axis:{label:"Axis",order:1},description:{label:"Description",format:"CommonMark",order:2},extent:{label:"Extent",format:"Extent",order:3},bbox:{alias:"proj:bbox",order:3},values:{label:"Values",order:4},step:{label:"Step",order:5},unit:{alias:"file:unit",order:5},geometry_types:{label:"Geometry Types",order:5},reference_system:{label:"Reference System",explain:"Coordinate / Temporal / Other Reference System",order:6}}},"cube:variables":{label:"Variables",summary:!1,listWithKeys:!0,items:{dimensions:{label:"Dimensions",order:0},type:{label:"Type",order:1,mapping:{data:"Measured values",auxiliary:"Coordinate data"}},description:{label:"Description",format:"CommonMark",order:2},extent:{label:"Extent",format:"Extent",order:3},values:{label:"Values",order:4},step:{label:"Step",order:5},unit:{alias:"file:unit",order:6}}},"eo:bands":{label:"Spectral Bands",items:{name:{label:"Name",sortable:!0,id:!0,order:0},common_name:{label:"Common Name",sortable:!0,order:1},description:{label:"Description",format:"CommonMark",order:2},center_wavelength:{label:"Wavelength",explain:"The center wavelength of the band",unit:"μm",sortable:!0,order:5},full_width_half_max:{label:"FWHM",explain:"Full Width Half Max",unit:"μm",sortable:!0,order:6},gsd:{alias:"gsd",sortable:!0,order:3},cloud_cover:{alias:"eo:cloud_cover",sortable:!0,order:4},solar_illumination:{label:"Solar Illumination",sortable:!0,order:7,unit:"W/m²/μm"},"classification:classes":{alias:"classification:classes"},"classification:bitfields":{alias:"classification:bitfields"}}},"eo:cloud_cover":{label:"Cloud Cover",unit:"%"},"eo:snow_cover":{label:"Snow/Ice Cover",unit:"%"},"forecast:reference_datetime":{label:"Reference Time",format:"Timestamp",summary:"r"},"forecast:horizon":{label:"Forecast Horizon",explain:"The time between the reference time and the forecast time",format:"Duration",summary:"r"},"forecast:duration":{label:"Forecast Length",format:"Duration",summary:"r"},"file:bits_per_sample":"Bits per Sample","file:byte_order":"Byte Order","file:checksum":{label:"Checksum",format:"Checksum",summary:!1},"file:data_type":{label:"Data Type of Values",format:"FileDataType"},"file:header_size":{label:"Header Size",format:"FileSize",summary:!1},"file:nodata":{label:"No-Data Values",format:"CSV",summary:!1},"file:size":{label:"Size",format:"FileSize",summary:!1},"file:unit":"Unit of Values","file:values":{label:"Map of Values",summary:!1,items:{values:{label:"Values",format:"CSV",order:1},summary:{label:"Summary",order:0}}},"file:local_path":{label:"Local Path",summary:!1},"goes:orbital_slot":"Orbital Slot","goes:system_environment":{label:"System Environment",mapping:{OR:"Operational system, real-time data",OT:"Operational system, test data",IR:"Test system, real-time data",IT:"Test system, test data",IP:"Test system, playback data",IS:"Test system, simulated data"}},"goes:image_type":{label:"Area",mapping:{"FULL DISK":"The Americas (full disk)",CONUS:"North America (continental US)",MESOSCALE:"Central/South America (mesoscale)"}},"goes:mesoscale_image_number":{label:"Area in Central/South America",mapping:{1:"Region 1",2:"Region 2"}},"goes:mode":{label:"Capture Mode",mapping:{3:"3: 1x full disk, 3x continental US, 30x mesoscale region 1, 30x mesoscale region 2 (every 15 minutes)",4:"4: 1x full disk (every 5 minutes)",6:"6: 1x full disk, 2x continental US, 20x mesoscale region 1, 20x mesoscale region 2 (every 10 minutes)"}},"goes:group_time_threshold":{label:"Time Threshold in a Group",explain:"Lightning group maximum time difference among lightning events in a group",unit:"s"},"goes:flash_time_threshold":{label:"Time Threshold in a Flash",explain:"Lightning flash maximum time difference among lightning events in a flash",unit:"s"},"goes:lightning_wavelength":{label:"Central Wavelength",unit:"nm"},"goes:yaw_flip_flag":{label:"Yaw Flip Configuration",explain:"Flag indicating that the spacecraft is operating in yaw flip configuration.",mapping:{0:"Upright",1:"Neither",2:"Inverted"}},"goes:event_count":"Lightning Events","goes:group_count":"Lightning Groups","goes:flash_count":"Lightning Flashes","goes:nominal_satellite_subpoint_lat":{label:"Satellite Subpoint Latitude",unit:"°N"},"goes:nominal_satellite_subpoint_lon":{label:"Satellite Subpoint Longitude",unit:"°E"},"goes:nominal_satellite_height":{label:"Satellite Height",explain:"Nominal satellite height above GRS 80 ellipsoid",unit:"km"},"goes:percent_navigated_L1b_events":{label:"Events navigated by Instrument",format:"Percent0to1",unit:"%"},"goes:percent_uncorrectable_L0_errors":{label:"Data Lost",format:"Percent0to1",unit:"%"},"grid:code":{label:"Grid",format:"GridCode"},"raster:bands":{label:"Bands",items:{nodata:{alias:"file:nodata"},sampling:{label:"Sampling",mapping:{area:"Area",point:"Point (at pixel center)"}},data_type:{alias:"file:data_type"},bits_per_sample:{alias:"file:bits_per_sample"},spatial_resolution:{label:"Resolution",explain:"Average spatial resolution",unit:"m"},statistics:{label:"Statistics",items:{mean:"Average",maximum:{label:"Max.",explain:"Maxmimum value"},minimum:{label:"Min.",explain:"Minimum value"},stdev:{label:"Std. Dev.",explain:"Standard Deviation"},valid_percent:{label:"Valid",explain:"Percentage of valid pixels",unit:"%"}}},unit:{alias:"file:unit"},scale:"Scale",offset:"Offset",histogram:{label:"Histogram",custom:!0},"classification:classes":{alias:"classification:classes"},"classification:bitfields":{alias:"classification:bitfields"}}},"label:properties":{label:"Properties",null:"raster data"},"label:classes":{label:"Classes",items:{name:{label:"Name",null:"raster-formatted",sortable:!0,id:!0},classes:"Classes"}},"label:description":{label:"Description",format:"CommonMark",summary:!1},"label:type":"Type","label:tasks":"Tasks","label:methods":"Methods","label:overviews":{label:"Overviews",summary:!1,items:{property_key:{label:"Property Key",id:!0},counts:{label:"Counts",custom:!0},statistics:{label:"Statistics",custom:!0}}},"mgrs:latitude_band":"Latitude Band","mgrs:grid_square":"Grid Square","mgrs:utm_zone":"UTM Zone","noaa_mrms_qpe:pass":{label:"Pass Number",mapping:{1:"1 (less latency / less gauges)",2:"2 (more latency / more gauges)"}},"noaa_mrms_qpe:period":{label:"Accumulation Period",unit:"h"},"noaa_mrms_qpe:region":{label:"Region",mapping:{CONUS:"Continental US",HAWAII:"Hawaii",GUAM:"Guam",ALASKA:"Alaska",CARIB:"Caribbean Islands"}},"openeo:status":"Processing Status",api_version:{label:"API Version",ext:"openeo"},backend_version:{label:"Back-End Version",ext:"openeo"},production:{label:"Production-Ready",ext:"openeo"},endpoints:{label:"Supported Endpoints",ext:"openeo",summary:!1,items:{path:{label:"Path Template",order:0},methods:{label:"HTTP Methods",order:1,format:"CSV"}}},billing:{label:"Billing",ext:"openeo",custom:!0,summary:!1},"order:status":{label:"Status",mapping:{orderable:"Orderable (data can be ordered)",ordered:"Ordered (preparing to deliver data)",pending:"Pending (waiting for activation)",shipping:"Shipping (data is getting processed)",succeeded:"Delivered (data is available)",failed:"Failed (unable to deliver)",canceled:"Canceled (delivery stopped)"}},"order:id":"Identifier","order:date":{label:"Submitted",format:"Timestamp",summary:"r"},"order:expiration_date":{alias:"expires"},"pc:count":{label:"Points",explain:"Number of Points"},"pc:type":"Type","pc:encoding":"Format","pc:schemas":{label:"Schemas",summary:!1,items:{name:{label:"Name",sortable:!0,id:!0},size:{label:"Size",unit:"bytes",sortable:!0},type:{label:"Type",sortable:!0}}},"pc:density":"Density","pc:statistics":{label:"Statistics",summary:"s",items:{name:{label:"Name",id:!0},position:"Position",average:"Average",count:"Count",maximum:{label:"Max.",explain:"Maxmimum value"},minimum:{label:"Min.",explain:"Minimum value"},stddev:{label:"Std. Dev.",explain:"Standard Deviation"},variance:"Variance"}},"processing:expression":{label:"Processing Instructions",summary:!1},"processing:lineage":{label:"Lineage",format:"CommonMark",summary:!1},"processing:level":"Level","processing:facility":"Facility","processing:software":{label:"Software",format:"Software",summary:!1},"proj:epsg":{label:"EPSG Code",format:"EPSG",summary:"v"},"proj:wkt2":{label:"WKT2",explain:"Well-Known Text, version 2",format:"WKT2",summary:!1},"proj:projjson":{label:"PROJJSON",explain:"JSON encoding of WKT2",format:"PROJJSON",summary:!1},"proj:geometry":{label:"Footprint",custom:!0,summary:!1},"proj:bbox":{label:"Bounding Box",custom:!0,summary:!1},"proj:centroid":{label:"Centroid",custom:!0,summary:!1},"proj:shape":{label:"Image Dimensions",format:"Shape",summary:!1},"proj:transform":{label:"Transformation Matrix",format:"Transform",summary:!1},"sar:instrument_mode":"Instrument Mode","sar:frequency_band":"Frequency Band","sar:center_frequency":{label:"Center Frequency",unit:"GHz"},"sar:polarizations":{label:"Polarizations",format:"CSV"},"sar:product_type":"Product Type","sar:resolution_range":{label:"Range Resolution",unit:"m"},"sar:resolution_azimuth":{label:"Azimuth Resolution",unit:"m"},"sar:pixel_spacing_range":{label:"Range Pixel Spacing",unit:"m"},"sar:pixel_spacing_azimuth":{label:"Azimuth Pixel Spacing",unit:"m"},"sar:looks_range":"Range Looks","sar:looks_azimuth":"Azimuth Looks","sar:looks_equivalent_number":{label:"ENL",explain:"Equivalent Number of Looks"},"sar:observation_direction":"Observation Direction","sat:platform_international_designator":{label:"Int. Designator",explain:"International designator for the platform, also known as COSPAR ID and NSSDCA ID."},"sat:orbit_state":"Orbit State","sat:absolute_orbit":{label:"Abs. Orbit Number",explain:"Absolute Orbit Number"},"sat:relative_orbit":{label:"Rel. Orbit Number",explain:"Relative Orbit Number"},"sat:anx_datetime":{label:"ANX Time",explain:"Ascending Node Crossing time",summary:"r"},"sci:doi":{label:"DOI",format:"DOI"},"sci:citation":"Citation","sci:publications":{label:"Publications",summary:!1,items:{citation:{label:"Publication",sortable:!0,order:0},doi:{label:"DOI",format:"DOI",sortable:!0,order:1}}},"ssys:targets":"Target Body","storage:platform":{label:"Provider",mapping:{ALIBABA:"Alibaba Cloud",AWS:"Amazon AWS",AZURE:"Microsoft Azure",GCP:"Google Cloud Platform",IBM:"IBM Cloud",ORACLE:"Oracle Cloud"}},"storage:region":"Region","storage:requester_pays":"Requester Pays","storage:tier":"Tier Type","table:columns":{label:"Columns",items:{name:{label:"Name",sortable:!0,id:!0,order:0},type:{label:"Data Type",sortable:!0,order:1},description:{label:"Description",format:"CommonMark",order:2}}},"table:primary_geometry":"Primary Geometry Column","table:row_count":"Rows","table:tables":{label:"Tables",summary:!1,listWithKeys:!0,items:{name:{label:"Name",sortable:!0,id:!0,order:0},description:{label:"Description",format:"CommonMark",order:1}}},"tiles:tile_matrix_sets":{label:"Tile Matrix Sets",custom:!0,summary:!1},"tiles:tile_matrix_set_links":{label:"Tile Matrix Set Links",custom:!0,summary:!1},"view:off_nadir":{label:"Off-Nadir Angle",unit:"°"},"view:incidence_angle":{label:"Incidence Angle",unit:"°"},"view:azimuth":{label:"Viewing Azimuth",unit:"°"},"view:sun_azimuth":{label:"Sun Azimuth",unit:"°"},"view:sun_elevation":{label:"Sun Elevation",unit:"°"},"pl:black_fill":{label:"Unfilled Image Parts",unit:"%"},"pl:clear_percent":{label:"Clear Sky",unit:"%"},"pl:grid_cell":"Grid Cell","pl:ground_control":"Positional Accuracy","pl:ground_control_ratio":"Successful Rectification Ratio","pl:item_type":"Type","pl:pixel_resolution":{label:"Spatial Resolution",unit:"m"},"pl:publishing_stage":{label:"Publishing Stage",mapping:{preview:"Preview",standard:"Standard",finalized:"Finalized"}},"pl:quality_category":{label:"Quality Category",mapping:{standard:"Standard",test:"Test"}},"pl:strip_id":"Image Strip ID","gee:type":{label:"Type",mapping:{image:"Single image",image_collection:"Image collection",table:"Table"}},"gee:cadence":"Cadence","gee:schema":{label:"Variables",items:{name:"Name",description:"Description",type:"Data Type"},summary:!1},"gee:revisit_interval":"Revisit Interval","gee:terms_of_use":{label:"Terms of Use",format:"CommonMark",summary:!1},"gee:visualizations":{label:"Visualizations",custom:!0,summary:!1},"landsat:scene_id":"Scene ID","landsat:collection_category":"Collection Category","landsat:collection_number":"Collection Number","landsat:wrs_type":{label:"WRS Type",explain:"Worldwide Reference System Type"},"landsat:wrs_path":{label:"WRS Path",explain:"Worldwide Reference System Path"},"landsat:wrs_row":{label:"WRS Row",explain:"Worldwide Reference System Row"},"landsat:cloud_cover_land":{label:"Land Cloud Cover",unit:"%"},"msft:container":"Container","msft:storage_account":"Storage Account","msft:short_description":{label:"Summary",summary:!1},"sentinel:utm_zone":"UTM Zone","sentinel:latitude_band":"Latitude Band","sentinel:grid_square":"Grid Square","sentinel:sequence":"Sequence","sentinel:product_id":{label:"Product ID",summary:"s"},"sentinel:data_coverage":{label:"Data Coverage",unit:"%"},"sentinel:valid_cloud_cover":"Valid Cloud Cover","cbers:data_type":{label:"Processing Level",explain:"Geolocation precision level",mapping:{L2:"Geolocation using only satellite telemetry",L3:"Control points used to geolocate image, no terrain correction",L4:"Control points used to geolocate image, orthorectified"},summary:"v"},"cbers:path":"Reference Grid Path","cbers:row":"Reference Grid Row","card4l:specification":{label:"Specification",mapping:{SR:"Surface Reflectance (Optical)",ST:"Surface Temperature (Optical)",NRB:"Normalized Radar Backscatter (SAR)",POL:"Polarimetric Radar (SAR)"}},"card4l:specification_version":"Specification Version","card4l:orbit_mean_altitude":{label:"Platform Altitude",unit:"m"},"card4l:incidence_angle_near_range":{label:"Incidence Angle (near)",unit:"°"},"card4l:incidence_angle_far_range":{label:"Incidence Angle (far)",unit:"°"},"card4l:noise_equivalent_intensity":{label:"Noise Equivalent Intensity",unit:"dB"},"card4l:mean_faraday_rotation_angle":{label:"Mean Faraday Rotation",unit:"°"},"card4l:speckle_filtering":{label:"Speckle Filtering",custom:!0,summary:!1,null:"not applied"},"card4l:relative_rtc_accuracy":{label:"Rel. RTC Accuracy",explain:"Relative accuracy of the Radiometric Terrain Correction",unit:"dB"},"card4l:absolute_rtc_accuracy":{label:"Abs. RTC Accuracy",explain:"Absolute accuracy of the Radiometric Terrain Correction",unit:"dB"},"card4l:northern_geometric_accuracy":{label:"Northern Geometric Accuracy",unit:"m"},"card4l:eastern_geometric_accuracy":{label:"Eastern Geometric Accuracy",unit:"m"},"card4l:ellipsoidal_height":{label:"Ellipsoidal Height",unit:"m"},"geoadmin:variant":{label:"Product Variant",mapping:{krel:"RGB color with relief",komb:"RGB color without relief",kgrel:"Grayscale with relief",kgrs:"Grayscale without relief"}},"href:servers":{label:"Servers",ext:"web-map-links"},"pmtiles:layers":{label:"Layers",ext:"web-map-links"},"wms:layers":{label:"Layers",ext:"web-map-links"},"wms:styles":{label:"Styles",ext:"web-map-links"},"wms:dimensions":{label:"Dimensions",ext:"web-map-links"},"wms:transparent":{label:"Transparency",ext:"web-map-links"},"wmts:layer":{label:"Layers",ext:"web-map-links"},"wmts:dimensions":{label:"Dimensions",ext:"web-map-links"}},cI={extensions:aI,links:sI,assets:lI,metadata:uI};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var Le=function(){return Le=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0?Object.assign({},gI,{weeks:e.weeks}):wR.reduce(function(t,r){var i;return Le(Le({},t),(i={},i[r]=e[r]||0,i))},{})},Xr={locales:{},options:{},setLocales:function(e,t){this.locales=Le(Le({},this.locales),e),t&&(this.options=Le(Le({},this.options),t))},getLangConfig:function(e){var t=this.locales[e];if(!t&&this.options.fallbackLocale&&(t=this.locales[this.options.fallbackLocale]),!t)throw new Error("isoDuration: Translations for language: "+e+" are not provided");return t}},vI=function(e){for(var t=["years","months","days"],r="",i=0,a=t;i0)return"P"+e.weeks+"W";var t="P",r=vI(e);r&&(t+=r);var i=wI(e);return i&&(t+="T"+i),!r&&!i&&(t+="0D"),t},xI=function(e,t){var r=Xr.getLangConfig(t);return e.weeks+" "+r.weeks(e.weeks)},AI=function(e,t,r){for(var i=Xr.getLangConfig(t),a="",o=["years","months","days","hours","minutes","seconds"],s=0,u=0;u0?xI(e,t):AI(e,t,r)},nr=["seconds","minutes","hours","days","months"],Pt=function(e){return function(t){return{nextUnitValue:Math.floor(t/e),value:t%e}}},BN=function(e,t){return new Date(t,e+1,0).getDate()},SI={seconds:Pt(60),minutes:Pt(60),hours:Pt(24),days:function(e,t){for(var r=t?new Date(t.getTime()):new Date,i=e,a=0,o=BN(r.getMonth(),r.getFullYear());i>o;)i=i-o,a++,r.setMonth(r.getMonth()+1),o=BN(r.getMonth(),r.getFullYear());return{nextUnitValue:a,value:i}},months:Pt(12)},EI=function(e,t){for(var r=Le({},e),i=0;i0){var s=SI[a](o,t);if(r[a]=s.value,s.nextUnitValue){var u=a==="months"?"years":nr[i+1];r[u]=r[u]+s.nextUnitValue}}}return r},IN=function(){function e(t){this.durationObj=t}return e.prototype.parse=function(){return this.durationObj},e.prototype.toString=function(){return kI(this.durationObj)},e.prototype.humanize=function(t,r){return _I(this.durationObj,t,r)},e.prototype.normalize=function(t){return this.durationObj=EI(this.durationObj,t),this},e.prototype.isEmpty=function(){var t=this;return Object.keys(this.durationObj).every(function(r){return t.durationObj[r]===0})},e}();function CI(e){return e<=2?0:e>2&&e<11?1:0}var TI={years:function(e){return e===1?"سنة":"سنوات"},months:function(e){return e===1?"شهر":"أشهر"},weeks:function(e){return e===1?"أسبوع":"أسابيع"},days:function(e){return e===1?"يوم":"أيام"},hours:function(e){return e===1?"ساعة":"ساعات"},minutes:function(e){return["دقيقة","دقائق"][CI(e)]},seconds:function(e){return e===1?"ثانية":"ثواني"},decimal:","};function ce(e){return Math.floor(e)!==e?2:e%100>=5&&e%100<=20||e%10>=5&&e%10<=9||e%10===0?0:e%10===1?1:e>1?2:0}var DI={years:function(e){return["години","година","години"][ce(e)]},months:function(e){return["месеца","месец","месеца"][ce(e)]},weeks:function(e){return["седмици","седмица","седмици"][ce(e)]},days:function(e){return["дни","ден","дни"][ce(e)]},hours:function(e){return["часа","час","часа"][ce(e)]},minutes:function(e){return["минути","минута","минути"][ce(e)]},seconds:function(e){return["секунди","секунда","секунди"][ce(e)]},decimal:","},LI={years:function(e){return"any"+(e===1?"":"s")},months:function(e){return"mes"+(e===1?"":"os")},weeks:function(e){return"setman"+(e===1?"a":"es")},days:function(e){return"di"+(e===1?"a":"es")},hours:function(e){return"hor"+(e===1?"a":"es")},minutes:function(e){return"minut"+(e===1?"":"s")},seconds:function(e){return"segon"+(e===1?"":"s")},decimal:","};function we(e){return e===1?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}var OI={years:function(e){return["rok","roku","roky","let"][we(e)]},months:function(e){return["měsíc","měsíce","měsíce","měsíců"][we(e)]},weeks:function(e){return["týden","týdne","týdny","týdnů"][we(e)]},days:function(e){return["den","dne","dny","dní"][we(e)]},hours:function(e){return["hodina","hodiny","hodiny","hodin"][we(e)]},minutes:function(e){return["minuta","minuty","minuty","minut"][we(e)]},seconds:function(e){return["sekunda","sekundy","sekundy","sekund"][we(e)]},decimal:","},qI={years:function(){return"år"},months:function(e){return"måned"+(e===1?"":"er")},weeks:function(e){return"uge"+(e===1?"":"r")},days:function(e){return"dag"+(e===1?"":"e")},hours:function(e){return"time"+(e===1?"":"r")},minutes:function(e){return"minut"+(e===1?"":"ter")},seconds:function(e){return"sekund"+(e===1?"":"er")},decimal:","},jI={years:function(e){return"Jahr"+(e===1?"":"e")},months:function(e){return"Monat"+(e===1?"":"e")},weeks:function(e){return"Woche"+(e===1?"":"n")},days:function(e){return"Tag"+(e===1?"":"e")},hours:function(e){return"Stunde"+(e===1?"":"n")},minutes:function(e){return"Minute"+(e===1?"":"n")},seconds:function(e){return"Sekunde"+(e===1?"":"n")},decimal:","},PI={years:function(e){return"year"+(e===1?"":"s")},months:function(e){return"month"+(e===1?"":"s")},weeks:function(e){return"week"+(e===1?"":"s")},days:function(e){return"day"+(e===1?"":"s")},hours:function(e){return"hour"+(e===1?"":"s")},minutes:function(e){return"minute"+(e===1?"":"s")},seconds:function(e){return"second"+(e===1?"":"s")},decimal:"."},$I={years:function(e){return"año"+(e===1?"":"s")},months:function(e){return"mes"+(e===1?"":"es")},weeks:function(e){return"semana"+(e===1?"":"s")},days:function(e){return"día"+(e===1?"":"s")},hours:function(e){return"hora"+(e===1?"":"s")},minutes:function(e){return"minuto"+(e===1?"":"s")},seconds:function(e){return"segundo"+(e===1?"":"s")},decimal:","},NI={years:function(e){return"aasta"+(e===1?"":"t")},months:function(e){return"kuu"+(e===1?"":"d")},weeks:function(e){return"nädal"+(e===1?"":"at")},days:function(e){return"päev"+(e===1?"":"a")},hours:function(e){return"tund"+(e===1?"":"i")},minutes:function(e){return"minut"+(e===1?"":"it")},seconds:function(e){return"sekund"+(e===1?"":"it")},decimal:","},UI={years:function(){return"سال"},months:function(){return"ماه"},weeks:function(){return"هفته"},days:function(){return"روز"},hours:function(){return"ساعت"},minutes:function(){return"دقیقه"},seconds:function(){return"ثانیه"},decimal:"."},RI={years:function(e){return e===1?"vuosi":"vuotta"},months:function(e){return e===1?"kuukausi":"kuukautta"},weeks:function(e){return"viikko"+(e===1?"":"a")},days:function(e){return"päivä"+(e===1?"":"ä")},hours:function(e){return"tunti"+(e===1?"":"a")},minutes:function(e){return"minuutti"+(e===1?"":"a")},seconds:function(e){return"sekunti"+(e===1?"":"a")},decimal:","},MI={years:function(){return"ár"},months:function(e){return e===1?"mánaður":"mánaðir"},weeks:function(e){return e===1?"vika":"vikur"},days:function(e){return e===1?"dagur":"dagar"},hours:function(e){return e===1?"tími":"tímar"},minutes:function(e){return e===1?"minuttur":"minuttir"},seconds:function(){return"sekund"},decimal:","},FI={years:function(e){return"an"+(e>=2?"s":"")},months:function(){return"mois"},weeks:function(e){return"semaine"+(e>=2?"s":"")},days:function(e){return"jour"+(e>=2?"s":"")},hours:function(e){return"heure"+(e>=2?"s":"")},minutes:function(e){return"minute"+(e>=2?"s":"")},seconds:function(e){return"seconde"+(e>=2?"s":"")},decimal:","},BI={years:function(e){return e===1?"χρόνος":"χρόνια"},months:function(e){return e===1?"μήνας":"μήνες"},weeks:function(e){return e===1?"εβδομάδα":"εβδομάδες"},days:function(e){return e===1?"μέρα":"μέρες"},hours:function(e){return e===1?"ώρα":"ώρες"},minutes:function(e){return e===1?"λεπτό":"λεπτά"},seconds:function(e){return e===1?"δευτερόλεπτο":"δευτερόλεπτα"},decimal:","},II={years:function(e){return e===1?"שנה":"שנים"},months:function(e){return e===1?"חודש":"חודשים"},weeks:function(e){return e===1?"שבוע":"שבועות"},days:function(e){return e===1?"יום":"ימים"},hours:function(e){return e===1?"שעה":"שעות"},minutes:function(e){return e===1?"דקה":"דקות"},seconds:function(e){return e===1?"שניה":"שניות"},decimal:"."},zI={years:function(e){return e%10===2||e%10===3||e%10===4?"godine":"godina"},months:function(e){return e===1?"mjesec":e===2||e===3||e===4?"mjeseca":"mjeseci"},weeks:function(e){return e%10===1&&e!==11?"tjedan":"tjedna"},days:function(e){return e===1?"dan":"dana"},hours:function(e){return e===1?"sat":e===2||e===3||e===4?"sata":"sati"},minutes:function(e){var t=e%10;return(t===2||t===3||t===4)&&(e<10||e>14)?"minute":"minuta"},seconds:function(e){return e===10||e===11||e===12||e===13||e===14||e===16||e===17||e===18||e===19||e%10===5?"sekundi":e%10===1?"sekunda":e%10===2||e%10===3||e%10===4?"sekunde":"sekundi"},decimal:","},HI={years:function(){return"év"},months:function(){return"hónap"},weeks:function(){return"hét"},days:function(){return"nap"},hours:function(){return"óra"},minutes:function(){return"perc"},seconds:function(){return"másodperc"},decimal:","},VI={years:function(){return"ár"},months:function(e){return"mánuð"+(e===1?"ur":"ir")},weeks:function(e){return"vik"+(e===1?"a":"ur")},days:function(e){return"dag"+(e===1?"ur":"ar")},hours:function(e){return"klukkutím"+(e===1?"i":"ar")},minutes:function(e){return"mínút"+(e===1?"a":"ur")},seconds:function(e){return"sekúnd"+(e===1?"a":"ur")},decimal:"."},GI={years:function(e){return"ann"+(e===1?"o":"i")},months:function(e){return"mes"+(e===1?"e":"i")},weeks:function(e){return"settiman"+(e===1?"a":"e")},days:function(e){return"giorn"+(e===1?"o":"i")},hours:function(e){return"or"+(e===1?"a":"e")},minutes:function(e){return"minut"+(e===1?"o":"i")},seconds:function(e){return"second"+(e===1?"o":"i")},decimal:","},WI={years:function(){return"年"},months:function(){return"月"},weeks:function(){return"週"},days:function(){return"日"},hours:function(){return"時間"},minutes:function(){return"分"},seconds:function(){return"秒"},decimal:"."},JI={years:function(){return"년"},months:function(){return"개월"},weeks:function(){return"주일"},days:function(){return"일"},hours:function(){return"시간"},minutes:function(){return"분"},seconds:function(){return"초"},decimal:"."},ZI={years:function(){return"ປີ"},months:function(){return"ເດືອນ"},weeks:function(){return"ອາທິດ"},days:function(){return"ມື້"},hours:function(){return"ຊົ່ວໂມງ"},minutes:function(){return"ນາທີ"},seconds:function(){return"ວິນາທີ"},decimal:","};function Qe(e){return e===1||e%10===1&&e%100>20?0:Math.floor(e)!==e||e%10>=2&&e%100>20||e%10>=2&&e%100<10?1:2}var KI={years:function(e){return e%10===0||e%100>=10&&e%100<=20?"metų":"metai"},months:function(e){return["mėnuo","mėnesiai","mėnesių"][Qe(e)]},weeks:function(e){return["savaitė","savaitės","savaičių"][Qe(e)]},days:function(e){return["diena","dienos","dienų"][Qe(e)]},hours:function(e){return["valanda","valandos","valandų"][Qe(e)]},minutes:function(e){return["minutė","minutės","minučių"][Qe(e)]},seconds:function(e){return["sekundė","sekundės","sekundžių"][Qe(e)]},decimal:","};function He(e){return e===1||e%10===1&&e%100!==11?0:1}var XI={years:function(e){return["gads","gadi"][He(e)]},months:function(e){return["mēnesis","mēneši"][He(e)]},weeks:function(e){return["nedēļa","nedēļas"][He(e)]},days:function(e){return["diena","dienas"][He(e)]},hours:function(e){return["stunda","stundas"][He(e)]},minutes:function(e){return["minūte","minūtes"][He(e)]},seconds:function(e){return["sekunde","sekundes"][He(e)]},decimal:","},YI={years:function(){return"tahun"},months:function(){return"bulan"},weeks:function(){return"minggu"},days:function(){return"hari"},hours:function(){return"jam"},minutes:function(){return"minit"},seconds:function(){return"saat"},decimal:"."},QI={years:function(){return"jaar"},months:function(e){return e===1?"maand":"maanden"},weeks:function(e){return e===1?"week":"weken"},days:function(e){return e===1?"dag":"dagen"},hours:function(){return"uur"},minutes:function(e){return e===1?"minuut":"minuten"},seconds:function(e){return e===1?"seconde":"seconden"},decimal:","},e9={years:function(){return"år"},months:function(e){return"måned"+(e===1?"":"er")},weeks:function(e){return"uke"+(e===1?"":"r")},days:function(e){return"dag"+(e===1?"":"er")},hours:function(e){return"time"+(e===1?"":"r")},minutes:function(e){return"minutt"+(e===1?"":"er")},seconds:function(e){return"sekund"+(e===1?"":"er")},decimal:","};function Ve(e){return e===1?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&!(e%100>10&&e%100<20)?2:3}var t9={years:function(e){return["rok","roku","lata","lat"][Ve(e)]},months:function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][Ve(e)]},weeks:function(e){return["tydzień","tygodnia","tygodnie","tygodni"][Ve(e)]},days:function(e){return["dzień","dnia","dni","dni"][Ve(e)]},hours:function(e){return["godzina","godziny","godziny","godzin"][Ve(e)]},minutes:function(e){return["minuta","minuty","minuty","minut"][Ve(e)]},seconds:function(e){return["sekunda","sekundy","sekundy","sekund"][Ve(e)]},decimal:","},r9={years:function(e){return"ano"+(e===1?"":"s")},months:function(e){return e===1?"mês":"meses"},weeks:function(e){return"semana"+(e===1?"":"s")},days:function(e){return"dia"+(e===1?"":"s")},hours:function(e){return"hora"+(e===1?"":"s")},minutes:function(e){return"minuto"+(e===1?"":"s")},seconds:function(e){return"segundo"+(e===1?"":"s")},decimal:","},n9={years:function(e){return e===1?"an":"ani"},months:function(e){return e===1?"lună":"luni"},weeks:function(e){return e===1?"săptămână":"săptămâni"},days:function(e){return e===1?"zi":"zile"},hours:function(e){return e===1?"oră":"ore"},minutes:function(e){return e===1?"minut":"minute"},seconds:function(e){return e===1?"secundă":"secunde"},decimal:","},i9={years:function(e){return["лет","год","года"][ce(e)]},months:function(e){return["месяцев","месяц","месяца"][ce(e)]},weeks:function(e){return["недель","неделя","недели"][ce(e)]},days:function(e){return["дней","день","дня"][ce(e)]},hours:function(e){return["часов","час","часа"][ce(e)]},minutes:function(e){return["минут","минута","минуты"][ce(e)]},seconds:function(e){return["секунд","секунда","секунды"][ce(e)]},decimal:","},o9={years:function(e){return["rok","roky","roky","rokov"][we(e)]},months:function(e){return["mesiac","mesiace","mesiace","mesiacov"][we(e)]},weeks:function(e){return["týždeň","týždne","týždne","týždňov"][we(e)]},days:function(e){return["deň","dni","dni","dní"][we(e)]},hours:function(e){return["hodina","hodiny","hodiny","hodín"][we(e)]},minutes:function(e){return["minúta","minúty","minúty","minút"][we(e)]},seconds:function(e){return["sekunda","sekundy","sekundy","sekúnd"][we(e)]},decimal:","},a9={years:function(){return"år"},months:function(e){return"månad"+(e===1?"":"er")},weeks:function(e){return"veck"+(e===1?"a":"or")},days:function(e){return"dag"+(e===1?"":"ar")},hours:function(e){return"timm"+(e===1?"e":"ar")},minutes:function(e){return"minut"+(e===1?"":"er")},seconds:function(e){return"sekund"+(e===1?"":"er")},decimal:","},s9={years:function(){return"yıl"},months:function(){return"ay"},weeks:function(){return"hafta"},days:function(){return"gün"},hours:function(){return"saat"},minutes:function(){return"dakika"},seconds:function(){return"saniye"},decimal:","},l9={years:function(e){return["років","рік","роки"][ce(e)]},months:function(e){return["місяців","місяць","місяці"][ce(e)]},weeks:function(e){return["тижнів","тиждень","тижні"][ce(e)]},days:function(e){return["днів","день","дні"][ce(e)]},hours:function(e){return["годин","година","години"][ce(e)]},minutes:function(e){return["хвилин","хвилина","хвилини"][ce(e)]},seconds:function(e){return["секунд","секунда","секунди"][ce(e)]},decimal:","},u9={years:function(){return"سال"},months:function(e){return e===1?"مہینہ":"مہینے"},weeks:function(e){return e===1?"ہفتہ":"ہفتے"},days:function(){return"دن"},hours:function(e){return e===1?"گھنٹہ":"گھنٹے"},minutes:function(){return"منٹ"},seconds:function(){return"سیکنڈ"},decimal:"."},c9={years:function(){return"năm"},months:function(){return"tháng"},weeks:function(){return"tuần"},days:function(){return"ngày"},hours:function(){return"giờ"},minutes:function(){return"phút"},seconds:function(){return"giây"},decimal:","},p9={years:function(){return"年"},months:function(){return"个月"},weeks:function(){return"周"},days:function(){return"天"},hours:function(){return"小时"},minutes:function(){return"分钟"},seconds:function(){return"秒"},decimal:"."},f9={years:function(){return"年"},months:function(){return"個月"},weeks:function(){return"周"},days:function(){return"天"},hours:function(){return"小時"},minutes:function(){return"分鐘"},seconds:function(){return"秒"},decimal:"."};function xR(e){return typeof e=="string"?new IN(bI(e)):new IN(yI(e))}xR.setLocales=function(e,t){Xr.setLocales(e,t)};const d9=Object.freeze(Object.defineProperty({__proto__:null,ar:TI,bg:DI,ca:LI,cs:OI,da:qI,de:jI,en:PI,es:$I,et:NI,fa:UI,fi:RI,fo:MI,fr:FI,gr:BI,he:II,hr:zI,hu:HI,is:VI,isoDuration:xR,it:GI,ja:WI,ko:JI,lo:ZI,lt:KI,lv:XI,ms:YI,nl:QI,no:e9,pl:t9,pt:r9,ro:n9,ru:i9,sk:o9,sv:a9,tr:s9,uk:l9,ur:u9,vi:c9,zhCN:p9,zhTW:f9},Symbol.toStringTag,{value:"Module"})),h9=yR(d9);var $t={};/*! - * content-type - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */var zN;function m9(){if(zN)return $t;zN=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,r=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,i=/\\([\u000b\u0020-\u00ff])/g,a=/([\\"])/g,o=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;$t.format=s,$t.parse=u;function s(b){if(!b||typeof b!="object")throw new TypeError("argument obj is required");var D=b.parameters,C=b.type;if(!C||!o.test(C))throw new TypeError("invalid type");var x=C;if(D&&typeof D=="object")for(var _,y=Object.keys(D).sort(),S=0;S0&&!t.test(D))throw new TypeError("invalid parameter value");return'"'+D.replace(a,"\\$1")+'"'}function h(b){this.parameters=Object.create(null),this.type=b}return $t}var ir={exports:{}};/* commonmark 0.29 https://github.com/commonmark/commonmark.js @license BSD3 */var HN;function g9(){return HN||(HN=1,function(e,t){(function(r,i){i(t)})(ht,function(r){function i(n){switch(n._type){case"document":case"block_quote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"link":case"image":case"custom_inline":case"custom_block":return!0;default:return!1}}var a=function(n,l){this.current=n,this.entering=l===!0},o=function(){var n=this.current,l=this.entering;if(n===null)return null;var p=i(n);return l&&p?n._firstChild?(this.current=n._firstChild,this.entering=!0):this.entering=!1:n===this.root?this.current=null:n._next===null?(this.current=n._parent,this.entering=!1):(this.current=n._next,this.entering=!0),{entering:l,node:n}},s=function(n){return{current:n,root:n,entering:!0,next:o,resumeAt:a}},u=function(n,l){this._type=n,this._parent=null,this._firstChild=null,this._lastChild=null,this._prev=null,this._next=null,this._sourcepos=l,this._lastLineBlank=!1,this._lastLineChecked=!1,this._open=!0,this._string_content=null,this._literal=null,this._listData={},this._info=null,this._destination=null,this._title=null,this._isFenced=!1,this._fenceChar=null,this._fenceLength=0,this._fenceOffset=null,this._level=null,this._onEnter=null,this._onExit=null},c=u.prototype;Object.defineProperty(c,"isContainer",{get:function(){return i(this)}}),Object.defineProperty(c,"type",{get:function(){return this._type}}),Object.defineProperty(c,"firstChild",{get:function(){return this._firstChild}}),Object.defineProperty(c,"lastChild",{get:function(){return this._lastChild}}),Object.defineProperty(c,"next",{get:function(){return this._next}}),Object.defineProperty(c,"prev",{get:function(){return this._prev}}),Object.defineProperty(c,"parent",{get:function(){return this._parent}}),Object.defineProperty(c,"sourcepos",{get:function(){return this._sourcepos}}),Object.defineProperty(c,"literal",{get:function(){return this._literal},set:function(n){this._literal=n}}),Object.defineProperty(c,"destination",{get:function(){return this._destination},set:function(n){this._destination=n}}),Object.defineProperty(c,"title",{get:function(){return this._title},set:function(n){this._title=n}}),Object.defineProperty(c,"info",{get:function(){return this._info},set:function(n){this._info=n}}),Object.defineProperty(c,"level",{get:function(){return this._level},set:function(n){this._level=n}}),Object.defineProperty(c,"listType",{get:function(){return this._listData.type},set:function(n){this._listData.type=n}}),Object.defineProperty(c,"listTight",{get:function(){return this._listData.tight},set:function(n){this._listData.tight=n}}),Object.defineProperty(c,"listStart",{get:function(){return this._listData.start},set:function(n){this._listData.start=n}}),Object.defineProperty(c,"listDelimiter",{get:function(){return this._listData.delimiter},set:function(n){this._listData.delimiter=n}}),Object.defineProperty(c,"onEnter",{get:function(){return this._onEnter},set:function(n){this._onEnter=n}}),Object.defineProperty(c,"onExit",{get:function(){return this._onExit},set:function(n){this._onExit=n}}),u.prototype.appendChild=function(n){n.unlink(),n._parent=this,this._lastChild?(this._lastChild._next=n,n._prev=this._lastChild,this._lastChild=n):(this._firstChild=n,this._lastChild=n)},u.prototype.prependChild=function(n){n.unlink(),n._parent=this,this._firstChild?(this._firstChild._prev=n,n._next=this._firstChild,this._firstChild=n):(this._firstChild=n,this._lastChild=n)},u.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next),this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev),this._parent=null,this._next=null,this._prev=null},u.prototype.insertAfter=function(n){n.unlink(),n._next=this._next,n._next&&(n._next._prev=n),n._prev=this,this._next=n,n._parent=this._parent,n._next||(n._parent._lastChild=n)},u.prototype.insertBefore=function(n){n.unlink(),n._prev=this._prev,n._prev&&(n._prev._next=n),n._next=this,this._prev=n,n._parent=this._parent,n._prev||(n._parent._firstChild=n)},u.prototype.walker=function(){var n=new s(this);return n};var d={};function h(n){var l,p,f=d[n];if(f)return f;for(f=d[n]=[],l=0;l<128;l++)p=String.fromCharCode(l),/^[0-9a-z]$/i.test(p)?f.push(p):f.push("%"+("0"+l.toString(16).toUpperCase()).slice(-2));for(l=0;l"u"&&(p=!0),j=h(l),f=0,A=n.length;f=55296&&w<=57343){if(w>=55296&&w<=56319&&f+1=56320&&$<=57343)){R+=encodeURIComponent(n[f]+n[f+1]),f++;continue}R+="%EF%BF%BD";continue}R+=encodeURIComponent(n[f])}return R}b.defaultChars=";/?:@&=+$,-_.!~*'()#",b.componentChars="-_.!~*'()";var D=b,C=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ht<"u"?ht:typeof self<"u"?self:{};function x(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function _(n,l){return l={exports:{}},n(l,l.exports),l.exports}function y(n){return n&&n.default||n}var S="Á",m="á",O="Ă",q="ă",N="∾",P="∿",T="∾̳",F="Â",B="â",H="´",te="А",re="а",be="Æ",se="æ",Q="⁡",le="𝔄",I="𝔞",ee="À",W="à",ie="ℵ",ue="ℵ",g="Α",v="α",L="Ā",U="ā",Y="⨿",V="&",M="&",G="⩕",Z="⩓",fe="∧",Se="⩜",Pe="⩘",Ce="⩚",$e="∠",ot="⦤",Et="∠",Ct="⦨",E="⦩",Tt="⦪",an="⦫",sn="⦬",ln="⦭",un="⦮",cn="⦯",pn="∡",fn="∟",dn="⊾",hn="⦝",mn="∢",gn="Å",bn="⍼",yn="Ą",vn="ą",wn="𝔸",kn="𝕒",xn="⩯",An="≈",_n="⩰",Sn="≊",En="≋",Cn="'",Tn="⁡",Dn="≈",Ln="≊",On="Å",qn="å",jn="𝒜",Pn="𝒶",$n="≔",Nn="*",Un="≈",Rn="≍",Mn="Ã",Fn="ã",Bn="Ä",In="ä",zn="∳",Hn="⨑",Vn="≌",Gn="϶",Wn="‵",Jn="∽",Zn="⋍",Kn="∖",Xn="⫧",Yn="⊽",Qn="⌅",ei="⌆",ti="⌅",ri="⎵",ni="⎶",ii="≌",oi="Б",ai="б",si="„",li="∵",ui="∵",ci="∵",pi="⦰",fi="϶",di="ℬ",hi="ℬ",mi="Β",gi="β",bi="ℶ",yi="≬",vi="𝔅",wi="𝔟",ki="⋂",xi="◯",Ai="⋃",_i="⨀",Si="⨁",Ei="⨂",Ci="⨆",Ti="★",Di="▽",Li="△",Oi="⨄",qi="⋁",ji="⋀",Pi="⤍",$i="⧫",Ni="▪",Ui="▴",Ri="▾",Mi="◂",Fi="▸",Bi="␣",Ii="▒",zi="░",Hi="▓",Vi="█",Gi="=⃥",Wi="≡⃥",Ji="⫭",Zi="⌐",Ki="𝔹",Xi="𝕓",Yi="⊥",Qi="⊥",eo="⋈",to="⧉",ro="┐",no="╕",io="╖",oo="╗",ao="┌",so="╒",lo="╓",uo="╔",co="─",po="═",fo="┬",ho="╤",mo="╥",go="╦",bo="┴",yo="╧",vo="╨",wo="╩",ko="⊟",xo="⊞",Ao="⊠",_o="┘",So="╛",Eo="╜",Co="╝",To="└",Do="╘",Lo="╙",Oo="╚",qo="│",jo="║",Po="┼",$o="╪",No="╫",Uo="╬",Ro="┤",Mo="╡",Fo="╢",Bo="╣",Io="├",zo="╞",Ho="╟",Vo="╠",Go="‵",Wo="˘",Jo="˘",Zo="¦",Ko="𝒷",Xo="ℬ",Yo="⁏",Qo="∽",ea="⋍",ta="⧅",ra="\\",na="⟈",ia="•",oa="•",aa="≎",sa="⪮",la="≏",ua="≎",ca="≏",pa="Ć",fa="ć",da="⩄",ha="⩉",ma="⩋",ga="∩",ba="⋒",ya="⩇",va="⩀",wa="ⅅ",ka="∩︀",xa="⁁",Aa="ˇ",_a="ℭ",Sa="⩍",Ea="Č",Ca="č",Ta="Ç",Da="ç",La="Ĉ",Oa="ĉ",qa="∰",ja="⩌",Pa="⩐",$a="Ċ",Na="ċ",Ua="¸",Ra="¸",Ma="⦲",Fa="¢",Ba="·",Ia="·",za="𝔠",Ha="ℭ",Va="Ч",Ga="ч",Wa="✓",Ja="✓",Za="Χ",Ka="χ",Xa="ˆ",Ya="≗",Qa="↺",es="↻",ts="⊛",rs="⊚",ns="⊝",is="⊙",os="®",as="Ⓢ",ss="⊖",ls="⊕",us="⊗",cs="○",ps="⧃",fs="≗",ds="⨐",hs="⫯",ms="⧂",gs="∲",bs="”",ys="’",vs="♣",ws="♣",ks=":",xs="∷",As="⩴",_s="≔",Ss="≔",Es=",",Cs="@",Ts="∁",Ds="∘",Ls="∁",Os="ℂ",qs="≅",js="⩭",Ps="≡",$s="∮",Ns="∯",Us="∮",Rs="𝕔",Ms="ℂ",Fs="∐",Bs="∐",Is="©",zs="©",Hs="℗",Vs="∳",Gs="↵",Ws="✗",Js="⨯",Zs="𝒞",Ks="𝒸",Xs="⫏",Ys="⫑",Qs="⫐",el="⫒",tl="⋯",rl="⤸",nl="⤵",il="⋞",ol="⋟",al="↶",sl="⤽",ll="⩈",ul="⩆",cl="≍",pl="∪",fl="⋓",dl="⩊",hl="⊍",ml="⩅",gl="∪︀",bl="↷",yl="⤼",vl="⋞",wl="⋟",kl="⋎",xl="⋏",Al="¤",_l="↶",Sl="↷",El="⋎",Cl="⋏",Tl="∲",Dl="∱",Ll="⌭",Ol="†",ql="‡",jl="ℸ",Pl="↓",$l="↡",Nl="⇓",Ul="‐",Rl="⫤",Ml="⊣",Fl="⤏",Bl="˝",Il="Ď",zl="ď",Hl="Д",Vl="д",Gl="‡",Wl="⇊",Jl="ⅅ",Zl="ⅆ",Kl="⤑",Xl="⩷",Yl="°",Ql="∇",eu="Δ",tu="δ",ru="⦱",nu="⥿",iu="𝔇",ou="𝔡",au="⥥",su="⇃",lu="⇂",uu="´",cu="˙",pu="˝",fu="`",du="˜",hu="⋄",mu="⋄",gu="⋄",bu="♦",yu="♦",vu="¨",wu="ⅆ",ku="ϝ",xu="⋲",Au="÷",_u="÷",Su="⋇",Eu="⋇",Cu="Ђ",Tu="ђ",Du="⌞",Lu="⌍",Ou="$",qu="𝔻",ju="𝕕",Pu="¨",$u="˙",Nu="⃜",Uu="≐",Ru="≑",Mu="≐",Fu="∸",Bu="∔",Iu="⊡",zu="⌆",Hu="∯",Vu="¨",Gu="⇓",Wu="⇐",Ju="⇔",Zu="⫤",Ku="⟸",Xu="⟺",Yu="⟹",Qu="⇒",ec="⊨",tc="⇑",rc="⇕",nc="∥",ic="⤓",oc="↓",ac="↓",sc="⇓",lc="⇵",uc="̑",cc="⇊",pc="⇃",fc="⇂",dc="⥐",hc="⥞",mc="⥖",gc="↽",bc="⥟",yc="⥗",vc="⇁",wc="↧",kc="⊤",xc="⤐",Ac="⌟",_c="⌌",Sc="𝒟",Ec="𝒹",Cc="Ѕ",Tc="ѕ",Dc="⧶",Lc="Đ",Oc="đ",qc="⋱",jc="▿",Pc="▾",$c="⇵",Nc="⥯",Uc="⦦",Rc="Џ",Mc="џ",Fc="⟿",Bc="É",Ic="é",zc="⩮",Hc="Ě",Vc="ě",Gc="Ê",Wc="ê",Jc="≖",Zc="≕",Kc="Э",Xc="э",Yc="⩷",Qc="Ė",ep="ė",tp="≑",rp="ⅇ",np="≒",ip="𝔈",op="𝔢",ap="⪚",sp="È",lp="è",up="⪖",cp="⪘",pp="⪙",fp="∈",dp="⏧",hp="ℓ",mp="⪕",gp="⪗",bp="Ē",yp="ē",vp="∅",wp="∅",kp="◻",xp="∅",Ap="▫",_p=" ",Sp=" ",Ep=" ",Cp="Ŋ",Tp="ŋ",Dp=" ",Lp="Ę",Op="ę",qp="𝔼",jp="𝕖",Pp="⋕",$p="⧣",Np="⩱",Up="ε",Rp="Ε",Mp="ε",Fp="ϵ",Bp="≖",Ip="≕",zp="≂",Hp="⪖",Vp="⪕",Gp="⩵",Wp="=",Jp="≂",Zp="≟",Kp="⇌",Xp="≡",Yp="⩸",Qp="⧥",ef="⥱",tf="≓",rf="ℯ",nf="ℰ",of="≐",af="⩳",sf="≂",lf="Η",uf="η",cf="Ð",pf="ð",ff="Ë",df="ë",hf="€",mf="!",gf="∃",bf="∃",yf="ℰ",vf="ⅇ",wf="ⅇ",kf="≒",xf="Ф",Af="ф",_f="♀",Sf="ffi",Ef="ff",Cf="ffl",Tf="𝔉",Df="𝔣",Lf="fi",Of="◼",qf="▪",jf="fj",Pf="♭",$f="fl",Nf="▱",Uf="ƒ",Rf="𝔽",Mf="𝕗",Ff="∀",Bf="∀",If="⋔",zf="⫙",Hf="ℱ",Vf="⨍",Gf="½",Wf="⅓",Jf="¼",Zf="⅕",Kf="⅙",Xf="⅛",Yf="⅔",Qf="⅖",ed="¾",td="⅗",rd="⅜",nd="⅘",id="⅚",od="⅝",ad="⅞",sd="⁄",ld="⌢",ud="𝒻",cd="ℱ",pd="ǵ",fd="Γ",dd="γ",hd="Ϝ",md="ϝ",gd="⪆",bd="Ğ",yd="ğ",vd="Ģ",wd="Ĝ",kd="ĝ",xd="Г",Ad="г",_d="Ġ",Sd="ġ",Ed="≥",Cd="≧",Td="⪌",Dd="⋛",Ld="≥",Od="≧",qd="⩾",jd="⪩",Pd="⩾",$d="⪀",Nd="⪂",Ud="⪄",Rd="⋛︀",Md="⪔",Fd="𝔊",Bd="𝔤",Id="≫",zd="⋙",Hd="⋙",Vd="ℷ",Gd="Ѓ",Wd="ѓ",Jd="⪥",Zd="≷",Kd="⪒",Xd="⪤",Yd="⪊",Qd="⪊",eh="⪈",th="≩",rh="⪈",nh="≩",ih="⋧",oh="𝔾",ah="𝕘",sh="`",lh="≥",uh="⋛",ch="≧",ph="⪢",fh="≷",dh="⩾",hh="≳",mh="𝒢",gh="ℊ",bh="≳",yh="⪎",vh="⪐",wh="⪧",kh="⩺",xh=">",Ah=">",_h="≫",Sh="⋗",Eh="⦕",Ch="⩼",Th="⪆",Dh="⥸",Lh="⋗",Oh="⋛",qh="⪌",jh="≷",Ph="≳",$h="≩︀",Nh="≩︀",Uh="ˇ",Rh=" ",Mh="½",Fh="ℋ",Bh="Ъ",Ih="ъ",zh="⥈",Hh="↔",Vh="⇔",Gh="↭",Wh="^",Jh="ℏ",Zh="Ĥ",Kh="ĥ",Xh="♥",Yh="♥",Qh="…",em="⊹",tm="𝔥",rm="ℌ",nm="ℋ",im="⤥",om="⤦",am="⇿",sm="∻",lm="↩",um="↪",cm="𝕙",pm="ℍ",fm="―",dm="─",hm="𝒽",mm="ℋ",gm="ℏ",bm="Ħ",ym="ħ",vm="≎",wm="≏",km="⁃",xm="‐",Am="Í",_m="í",Sm="⁣",Em="Î",Cm="î",Tm="И",Dm="и",Lm="İ",Om="Е",qm="е",jm="¡",Pm="⇔",$m="𝔦",Nm="ℑ",Um="Ì",Rm="ì",Mm="ⅈ",Fm="⨌",Bm="∭",Im="⧜",zm="℩",Hm="IJ",Vm="ij",Gm="Ī",Wm="ī",Jm="ℑ",Zm="ⅈ",Km="ℐ",Xm="ℑ",Ym="ı",Qm="ℑ",eg="⊷",tg="Ƶ",rg="⇒",ng="℅",ig="∞",og="⧝",ag="ı",sg="⊺",lg="∫",ug="∬",cg="ℤ",pg="∫",fg="⊺",dg="⋂",hg="⨗",mg="⨼",gg="⁣",bg="⁢",yg="Ё",vg="ё",wg="Į",kg="į",xg="𝕀",Ag="𝕚",_g="Ι",Sg="ι",Eg="⨼",Cg="¿",Tg="𝒾",Dg="ℐ",Lg="∈",Og="⋵",qg="⋹",jg="⋴",Pg="⋳",$g="∈",Ng="⁢",Ug="Ĩ",Rg="ĩ",Mg="І",Fg="і",Bg="Ï",Ig="ï",zg="Ĵ",Hg="ĵ",Vg="Й",Gg="й",Wg="𝔍",Jg="𝔧",Zg="ȷ",Kg="𝕁",Xg="𝕛",Yg="𝒥",Qg="𝒿",eb="Ј",tb="ј",rb="Є",nb="є",ib="Κ",ob="κ",ab="ϰ",sb="Ķ",lb="ķ",ub="К",cb="к",pb="𝔎",fb="𝔨",db="ĸ",hb="Х",mb="х",gb="Ќ",bb="ќ",yb="𝕂",vb="𝕜",wb="𝒦",kb="𝓀",xb="⇚",Ab="Ĺ",_b="ĺ",Sb="⦴",Eb="ℒ",Cb="Λ",Tb="λ",Db="⟨",Lb="⟪",Ob="⦑",qb="⟨",jb="⪅",Pb="ℒ",$b="«",Nb="⇤",Ub="⤟",Rb="←",Mb="↞",Fb="⇐",Bb="⤝",Ib="↩",zb="↫",Hb="⤹",Vb="⥳",Gb="↢",Wb="⤙",Jb="⤛",Zb="⪫",Kb="⪭",Xb="⪭︀",Yb="⤌",Qb="⤎",ey="❲",ty="{",ry="[",ny="⦋",iy="⦏",oy="⦍",ay="Ľ",sy="ľ",ly="Ļ",uy="ļ",cy="⌈",py="{",fy="Л",dy="л",hy="⤶",my="“",gy="„",by="⥧",yy="⥋",vy="↲",wy="≤",ky="≦",xy="⟨",Ay="⇤",_y="←",Sy="←",Ey="⇐",Cy="⇆",Ty="↢",Dy="⌈",Ly="⟦",Oy="⥡",qy="⥙",jy="⇃",Py="⌊",$y="↽",Ny="↼",Uy="⇇",Ry="↔",My="↔",Fy="⇔",By="⇆",Iy="⇋",zy="↭",Hy="⥎",Vy="↤",Gy="⊣",Wy="⥚",Jy="⋋",Zy="⧏",Ky="⊲",Xy="⊴",Yy="⥑",Qy="⥠",ev="⥘",tv="↿",rv="⥒",nv="↼",iv="⪋",ov="⋚",av="≤",sv="≦",lv="⩽",uv="⪨",cv="⩽",pv="⩿",fv="⪁",dv="⪃",hv="⋚︀",mv="⪓",gv="⪅",bv="⋖",yv="⋚",vv="⪋",wv="⋚",kv="≦",xv="≶",Av="≶",_v="⪡",Sv="≲",Ev="⩽",Cv="≲",Tv="⥼",Dv="⌊",Lv="𝔏",Ov="𝔩",qv="≶",jv="⪑",Pv="⥢",$v="↽",Nv="↼",Uv="⥪",Rv="▄",Mv="Љ",Fv="љ",Bv="⇇",Iv="≪",zv="⋘",Hv="⌞",Vv="⇚",Gv="⥫",Wv="◺",Jv="Ŀ",Zv="ŀ",Kv="⎰",Xv="⎰",Yv="⪉",Qv="⪉",e0="⪇",t0="≨",r0="⪇",n0="≨",i0="⋦",o0="⟬",a0="⇽",s0="⟦",l0="⟵",u0="⟵",c0="⟸",p0="⟷",f0="⟷",d0="⟺",h0="⟼",m0="⟶",g0="⟶",b0="⟹",y0="↫",v0="↬",w0="⦅",k0="𝕃",x0="𝕝",A0="⨭",_0="⨴",S0="∗",E0="_",C0="↙",T0="↘",D0="◊",L0="◊",O0="⧫",q0="(",j0="⦓",P0="⇆",$0="⌟",N0="⇋",U0="⥭",R0="‎",M0="⊿",F0="‹",B0="𝓁",I0="ℒ",z0="↰",H0="↰",V0="≲",G0="⪍",W0="⪏",J0="[",Z0="‘",K0="‚",X0="Ł",Y0="ł",Q0="⪦",e1="⩹",t1="<",r1="<",n1="≪",i1="⋖",o1="⋋",a1="⋉",s1="⥶",l1="⩻",u1="◃",c1="⊴",p1="◂",f1="⦖",d1="⥊",h1="⥦",m1="≨︀",g1="≨︀",b1="¯",y1="♂",v1="✠",w1="✠",k1="↦",x1="↦",A1="↧",_1="↤",S1="↥",E1="▮",C1="⨩",T1="М",D1="м",L1="—",O1="∺",q1="∡",j1=" ",P1="ℳ",$1="𝔐",N1="𝔪",U1="℧",R1="µ",M1="*",F1="⫰",B1="∣",I1="·",z1="⊟",H1="−",V1="∸",G1="⨪",W1="∓",J1="⫛",Z1="…",K1="∓",X1="⊧",Y1="𝕄",Q1="𝕞",ew="∓",tw="𝓂",rw="ℳ",nw="∾",iw="Μ",ow="μ",aw="⊸",sw="⊸",lw="∇",uw="Ń",cw="ń",pw="∠⃒",fw="≉",dw="⩰̸",hw="≋̸",mw="ʼn",gw="≉",bw="♮",yw="ℕ",vw="♮",ww=" ",kw="≎̸",xw="≏̸",Aw="⩃",_w="Ň",Sw="ň",Ew="Ņ",Cw="ņ",Tw="≇",Dw="⩭̸",Lw="⩂",Ow="Н",qw="н",jw="–",Pw="⤤",$w="↗",Nw="⇗",Uw="↗",Rw="≠",Mw="≐̸",Fw="​",Bw="​",Iw="​",zw="​",Hw="≢",Vw="⤨",Gw="≂̸",Ww="≫",Jw="≪",Zw=` -`,Kw="∄",Xw="∄",Yw="𝔑",Qw="𝔫",ek="≧̸",tk="≱",rk="≱",nk="≧̸",ik="⩾̸",ok="⩾̸",ak="⋙̸",sk="≵",lk="≫⃒",uk="≯",ck="≯",pk="≫̸",fk="↮",dk="⇎",hk="⫲",mk="∋",gk="⋼",bk="⋺",yk="∋",vk="Њ",wk="њ",kk="↚",xk="⇍",Ak="‥",_k="≦̸",Sk="≰",Ek="↚",Ck="⇍",Tk="↮",Dk="⇎",Lk="≰",Ok="≦̸",qk="⩽̸",jk="⩽̸",Pk="≮",$k="⋘̸",Nk="≴",Uk="≪⃒",Rk="≮",Mk="⋪",Fk="⋬",Bk="≪̸",Ik="∤",zk="⁠",Hk=" ",Vk="𝕟",Gk="ℕ",Wk="⫬",Jk="¬",Zk="≢",Kk="≭",Xk="∦",Yk="∉",Qk="≠",e2="≂̸",t2="∄",r2="≯",n2="≱",i2="≧̸",o2="≫̸",a2="≹",s2="⩾̸",l2="≵",u2="≎̸",c2="≏̸",p2="∉",f2="⋵̸",d2="⋹̸",h2="∉",m2="⋷",g2="⋶",b2="⧏̸",y2="⋪",v2="⋬",w2="≮",k2="≰",x2="≸",A2="≪̸",_2="⩽̸",S2="≴",E2="⪢̸",C2="⪡̸",T2="∌",D2="∌",L2="⋾",O2="⋽",q2="⊀",j2="⪯̸",P2="⋠",$2="∌",N2="⧐̸",U2="⋫",R2="⋭",M2="⊏̸",F2="⋢",B2="⊐̸",I2="⋣",z2="⊂⃒",H2="⊈",V2="⊁",G2="⪰̸",W2="⋡",J2="≿̸",Z2="⊃⃒",K2="⊉",X2="≁",Y2="≄",Q2="≇",ex="≉",tx="∤",rx="∦",nx="∦",ix="⫽⃥",ox="∂̸",ax="⨔",sx="⊀",lx="⋠",ux="⊀",cx="⪯̸",px="⪯̸",fx="⤳̸",dx="↛",hx="⇏",mx="↝̸",gx="↛",bx="⇏",yx="⋫",vx="⋭",wx="⊁",kx="⋡",xx="⪰̸",Ax="𝒩",_x="𝓃",Sx="∤",Ex="∦",Cx="≁",Tx="≄",Dx="≄",Lx="∤",Ox="∦",qx="⋢",jx="⋣",Px="⊄",$x="⫅̸",Nx="⊈",Ux="⊂⃒",Rx="⊈",Mx="⫅̸",Fx="⊁",Bx="⪰̸",Ix="⊅",zx="⫆̸",Hx="⊉",Vx="⊃⃒",Gx="⊉",Wx="⫆̸",Jx="≹",Zx="Ñ",Kx="ñ",Xx="≸",Yx="⋪",Qx="⋬",e4="⋫",t4="⋭",r4="Ν",n4="ν",i4="#",o4="№",a4=" ",s4="≍⃒",l4="⊬",u4="⊭",c4="⊮",p4="⊯",f4="≥⃒",d4=">⃒",h4="⤄",m4="⧞",g4="⤂",b4="≤⃒",y4="<⃒",v4="⊴⃒",w4="⤃",k4="⊵⃒",x4="∼⃒",A4="⤣",_4="↖",S4="⇖",E4="↖",C4="⤧",T4="Ó",D4="ó",L4="⊛",O4="Ô",q4="ô",j4="⊚",P4="О",$4="о",N4="⊝",U4="Ő",R4="ő",M4="⨸",F4="⊙",B4="⦼",I4="Œ",z4="œ",H4="⦿",V4="𝔒",G4="𝔬",W4="˛",J4="Ò",Z4="ò",K4="⧁",X4="⦵",Y4="Ω",Q4="∮",eA="↺",tA="⦾",rA="⦻",nA="‾",iA="⧀",oA="Ō",aA="ō",sA="Ω",lA="ω",uA="Ο",cA="ο",pA="⦶",fA="⊖",dA="𝕆",hA="𝕠",mA="⦷",gA="“",bA="‘",yA="⦹",vA="⊕",wA="↻",kA="⩔",xA="∨",AA="⩝",_A="ℴ",SA="ℴ",EA="ª",CA="º",TA="⊶",DA="⩖",LA="⩗",OA="⩛",qA="Ⓢ",jA="𝒪",PA="ℴ",$A="Ø",NA="ø",UA="⊘",RA="Õ",MA="õ",FA="⨶",BA="⨷",IA="⊗",zA="Ö",HA="ö",VA="⌽",GA="‾",WA="⏞",JA="⎴",ZA="⏜",KA="¶",XA="∥",YA="∥",QA="⫳",e_="⫽",t_="∂",r_="∂",n_="П",i_="п",o_="%",a_=".",s_="‰",l_="⊥",u_="‱",c_="𝔓",p_="𝔭",f_="Φ",d_="φ",h_="ϕ",m_="ℳ",g_="☎",b_="Π",y_="π",v_="⋔",w_="ϖ",k_="ℏ",x_="ℎ",A_="ℏ",__="⨣",S_="⊞",E_="⨢",C_="+",T_="∔",D_="⨥",L_="⩲",O_="±",q_="±",j_="⨦",P_="⨧",$_="±",N_="ℌ",U_="⨕",R_="𝕡",M_="ℙ",F_="£",B_="⪷",I_="⪻",z_="≺",H_="≼",V_="⪷",G_="≺",W_="≼",J_="≺",Z_="⪯",K_="≼",X_="≾",Y_="⪯",Q_="⪹",eS="⪵",tS="⋨",rS="⪯",nS="⪳",iS="≾",oS="′",aS="″",sS="ℙ",lS="⪹",uS="⪵",cS="⋨",pS="∏",fS="∏",dS="⌮",hS="⌒",mS="⌓",gS="∝",bS="∝",yS="∷",vS="∝",wS="≾",kS="⊰",xS="𝒫",AS="𝓅",_S="Ψ",SS="ψ",ES=" ",CS="𝔔",TS="𝔮",DS="⨌",LS="𝕢",OS="ℚ",qS="⁗",jS="𝒬",PS="𝓆",$S="ℍ",NS="⨖",US="?",RS="≟",MS='"',FS='"',BS="⇛",IS="∽̱",zS="Ŕ",HS="ŕ",VS="√",GS="⦳",WS="⟩",JS="⟫",ZS="⦒",KS="⦥",XS="⟩",YS="»",QS="⥵",e5="⇥",t5="⤠",r5="⤳",n5="→",i5="↠",o5="⇒",a5="⤞",s5="↪",l5="↬",u5="⥅",c5="⥴",p5="⤖",f5="↣",d5="↝",h5="⤚",m5="⤜",g5="∶",b5="ℚ",y5="⤍",v5="⤏",w5="⤐",k5="❳",x5="}",A5="]",_5="⦌",S5="⦎",E5="⦐",C5="Ř",T5="ř",D5="Ŗ",L5="ŗ",O5="⌉",q5="}",j5="Р",P5="р",$5="⤷",N5="⥩",U5="”",R5="”",M5="↳",F5="ℜ",B5="ℛ",I5="ℜ",z5="ℝ",H5="ℜ",V5="▭",G5="®",W5="®",J5="∋",Z5="⇋",K5="⥯",X5="⥽",Y5="⌋",Q5="𝔯",eE="ℜ",tE="⥤",rE="⇁",nE="⇀",iE="⥬",oE="Ρ",aE="ρ",sE="ϱ",lE="⟩",uE="⇥",cE="→",pE="→",fE="⇒",dE="⇄",hE="↣",mE="⌉",gE="⟧",bE="⥝",yE="⥕",vE="⇂",wE="⌋",kE="⇁",xE="⇀",AE="⇄",_E="⇌",SE="⇉",EE="↝",CE="↦",TE="⊢",DE="⥛",LE="⋌",OE="⧐",qE="⊳",jE="⊵",PE="⥏",$E="⥜",NE="⥔",UE="↾",RE="⥓",ME="⇀",FE="˚",BE="≓",IE="⇄",zE="⇌",HE="‏",VE="⎱",GE="⎱",WE="⫮",JE="⟭",ZE="⇾",KE="⟧",XE="⦆",YE="𝕣",QE="ℝ",eC="⨮",tC="⨵",rC="⥰",nC=")",iC="⦔",oC="⨒",aC="⇉",sC="⇛",lC="›",uC="𝓇",cC="ℛ",pC="↱",fC="↱",dC="]",hC="’",mC="’",gC="⋌",bC="⋊",yC="▹",vC="⊵",wC="▸",kC="⧎",xC="⧴",AC="⥨",_C="℞",SC="Ś",EC="ś",CC="‚",TC="⪸",DC="Š",LC="š",OC="⪼",qC="≻",jC="≽",PC="⪰",$C="⪴",NC="Ş",UC="ş",RC="Ŝ",MC="ŝ",FC="⪺",BC="⪶",IC="⋩",zC="⨓",HC="≿",VC="С",GC="с",WC="⊡",JC="⋅",ZC="⩦",KC="⤥",XC="↘",YC="⇘",QC="↘",eT="§",tT=";",rT="⤩",nT="∖",iT="∖",oT="✶",aT="𝔖",sT="𝔰",lT="⌢",uT="♯",cT="Щ",pT="щ",fT="Ш",dT="ш",hT="↓",mT="←",gT="∣",bT="∥",yT="→",vT="↑",wT="­",kT="Σ",xT="σ",AT="ς",_T="ς",ST="∼",ET="⩪",CT="≃",TT="≃",DT="⪞",LT="⪠",OT="⪝",qT="⪟",jT="≆",PT="⨤",$T="⥲",NT="←",UT="∘",RT="∖",MT="⨳",FT="⧤",BT="∣",IT="⌣",zT="⪪",HT="⪬",VT="⪬︀",GT="Ь",WT="ь",JT="⌿",ZT="⧄",KT="/",XT="𝕊",YT="𝕤",QT="♠",e6="♠",t6="∥",r6="⊓",n6="⊓︀",i6="⊔",o6="⊔︀",a6="√",s6="⊏",l6="⊑",u6="⊏",c6="⊑",p6="⊐",f6="⊒",d6="⊐",h6="⊒",m6="□",g6="□",b6="⊓",y6="⊏",v6="⊑",w6="⊐",k6="⊒",x6="⊔",A6="▪",_6="□",S6="▪",E6="→",C6="𝒮",T6="𝓈",D6="∖",L6="⌣",O6="⋆",q6="⋆",j6="☆",P6="★",$6="ϵ",N6="ϕ",U6="¯",R6="⊂",M6="⋐",F6="⪽",B6="⫅",I6="⊆",z6="⫃",H6="⫁",V6="⫋",G6="⊊",W6="⪿",J6="⥹",Z6="⊂",K6="⋐",X6="⊆",Y6="⫅",Q6="⊆",eD="⊊",tD="⫋",rD="⫇",nD="⫕",iD="⫓",oD="⪸",aD="≻",sD="≽",lD="≻",uD="⪰",cD="≽",pD="≿",fD="⪰",dD="⪺",hD="⪶",mD="⋩",gD="≿",bD="∋",yD="∑",vD="∑",wD="♪",kD="¹",xD="²",AD="³",_D="⊃",SD="⋑",ED="⪾",CD="⫘",TD="⫆",DD="⊇",LD="⫄",OD="⊃",qD="⊇",jD="⟉",PD="⫗",$D="⥻",ND="⫂",UD="⫌",RD="⊋",MD="⫀",FD="⊃",BD="⋑",ID="⊇",zD="⫆",HD="⊋",VD="⫌",GD="⫈",WD="⫔",JD="⫖",ZD="⤦",KD="↙",XD="⇙",YD="↙",QD="⤪",eL="ß",tL=" ",rL="⌖",nL="Τ",iL="τ",oL="⎴",aL="Ť",sL="ť",lL="Ţ",uL="ţ",cL="Т",pL="т",fL="⃛",dL="⌕",hL="𝔗",mL="𝔱",gL="∴",bL="∴",yL="∴",vL="Θ",wL="θ",kL="ϑ",xL="ϑ",AL="≈",_L="∼",SL="  ",EL=" ",CL=" ",TL="≈",DL="∼",LL="Þ",OL="þ",qL="˜",jL="∼",PL="≃",$L="≅",NL="≈",UL="⨱",RL="⊠",ML="×",FL="⨰",BL="∭",IL="⤨",zL="⌶",HL="⫱",VL="⊤",GL="𝕋",WL="𝕥",JL="⫚",ZL="⤩",KL="‴",XL="™",YL="™",QL="▵",eO="▿",tO="◃",rO="⊴",nO="≜",iO="▹",oO="⊵",aO="◬",sO="≜",lO="⨺",uO="⃛",cO="⨹",pO="⧍",fO="⨻",dO="⏢",hO="𝒯",mO="𝓉",gO="Ц",bO="ц",yO="Ћ",vO="ћ",wO="Ŧ",kO="ŧ",xO="≬",AO="↞",_O="↠",SO="Ú",EO="ú",CO="↑",TO="↟",DO="⇑",LO="⥉",OO="Ў",qO="ў",jO="Ŭ",PO="ŭ",$O="Û",NO="û",UO="У",RO="у",MO="⇅",FO="Ű",BO="ű",IO="⥮",zO="⥾",HO="𝔘",VO="𝔲",GO="Ù",WO="ù",JO="⥣",ZO="↿",KO="↾",XO="▀",YO="⌜",QO="⌜",e3="⌏",t3="◸",r3="Ū",n3="ū",i3="¨",o3="_",a3="⏟",s3="⎵",l3="⏝",u3="⋃",c3="⊎",p3="Ų",f3="ų",d3="𝕌",h3="𝕦",m3="⤒",g3="↑",b3="↑",y3="⇑",v3="⇅",w3="↕",k3="↕",x3="⇕",A3="⥮",_3="↿",S3="↾",E3="⊎",C3="↖",T3="↗",D3="υ",L3="ϒ",O3="ϒ",q3="Υ",j3="υ",P3="↥",$3="⊥",N3="⇈",U3="⌝",R3="⌝",M3="⌎",F3="Ů",B3="ů",I3="◹",z3="𝒰",H3="𝓊",V3="⋰",G3="Ũ",W3="ũ",J3="▵",Z3="▴",K3="⇈",X3="Ü",Y3="ü",Q3="⦧",e8="⦜",t8="ϵ",r8="ϰ",n8="∅",i8="ϕ",o8="ϖ",a8="∝",s8="↕",l8="⇕",u8="ϱ",c8="ς",p8="⊊︀",f8="⫋︀",d8="⊋︀",h8="⫌︀",m8="ϑ",g8="⊲",b8="⊳",y8="⫨",v8="⫫",w8="⫩",k8="В",x8="в",A8="⊢",_8="⊨",S8="⊩",E8="⊫",C8="⫦",T8="⊻",D8="∨",L8="⋁",O8="≚",q8="⋮",j8="|",P8="‖",$8="|",N8="‖",U8="∣",R8="|",M8="❘",F8="≀",B8=" ",I8="𝔙",z8="𝔳",H8="⊲",V8="⊂⃒",G8="⊃⃒",W8="𝕍",J8="𝕧",Z8="∝",K8="⊳",X8="𝒱",Y8="𝓋",Q8="⫋︀",eq="⊊︀",tq="⫌︀",rq="⊋︀",nq="⊪",iq="⦚",oq="Ŵ",aq="ŵ",sq="⩟",lq="∧",uq="⋀",cq="≙",pq="℘",fq="𝔚",dq="𝔴",hq="𝕎",mq="𝕨",gq="℘",bq="≀",yq="≀",vq="𝒲",wq="𝓌",kq="⋂",xq="◯",Aq="⋃",_q="▽",Sq="𝔛",Eq="𝔵",Cq="⟷",Tq="⟺",Dq="Ξ",Lq="ξ",Oq="⟵",qq="⟸",jq="⟼",Pq="⋻",$q="⨀",Nq="𝕏",Uq="𝕩",Rq="⨁",Mq="⨂",Fq="⟶",Bq="⟹",Iq="𝒳",zq="𝓍",Hq="⨆",Vq="⨄",Gq="△",Wq="⋁",Jq="⋀",Zq="Ý",Kq="ý",Xq="Я",Yq="я",Qq="Ŷ",ej="ŷ",tj="Ы",rj="ы",nj="¥",ij="𝔜",oj="𝔶",aj="Ї",sj="ї",lj="𝕐",uj="𝕪",cj="𝒴",pj="𝓎",fj="Ю",dj="ю",hj="ÿ",mj="Ÿ",gj="Ź",bj="ź",yj="Ž",vj="ž",wj="З",kj="з",xj="Ż",Aj="ż",_j="ℨ",Sj="​",Ej="Ζ",Cj="ζ",Tj="𝔷",Dj="ℨ",Lj="Ж",Oj="ж",qj="⇝",jj="𝕫",Pj="ℤ",$j="𝒵",Nj="𝓏",Uj="‍",Rj="‌",HR={Aacute:S,aacute:m,Abreve:O,abreve:q,ac:N,acd:P,acE:T,Acirc:F,acirc:B,acute:H,Acy:te,acy:re,AElig:be,aelig:se,af:Q,Afr:le,afr:I,Agrave:ee,agrave:W,alefsym:ie,aleph:ue,Alpha:g,alpha:v,Amacr:L,amacr:U,amalg:Y,amp:V,AMP:M,andand:G,And:Z,and:fe,andd:Se,andslope:Pe,andv:Ce,ang:$e,ange:ot,angle:Et,angmsdaa:Ct,angmsdab:E,angmsdac:Tt,angmsdad:an,angmsdae:sn,angmsdaf:ln,angmsdag:un,angmsdah:cn,angmsd:pn,angrt:fn,angrtvb:dn,angrtvbd:hn,angsph:mn,angst:gn,angzarr:bn,Aogon:yn,aogon:vn,Aopf:wn,aopf:kn,apacir:xn,ap:An,apE:_n,ape:Sn,apid:En,apos:Cn,ApplyFunction:Tn,approx:Dn,approxeq:Ln,Aring:On,aring:qn,Ascr:jn,ascr:Pn,Assign:$n,ast:Nn,asymp:Un,asympeq:Rn,Atilde:Mn,atilde:Fn,Auml:Bn,auml:In,awconint:zn,awint:Hn,backcong:Vn,backepsilon:Gn,backprime:Wn,backsim:Jn,backsimeq:Zn,Backslash:Kn,Barv:Xn,barvee:Yn,barwed:Qn,Barwed:ei,barwedge:ti,bbrk:ri,bbrktbrk:ni,bcong:ii,Bcy:oi,bcy:ai,bdquo:si,becaus:li,because:ui,Because:ci,bemptyv:pi,bepsi:fi,bernou:di,Bernoullis:hi,Beta:mi,beta:gi,beth:bi,between:yi,Bfr:vi,bfr:wi,bigcap:ki,bigcirc:xi,bigcup:Ai,bigodot:_i,bigoplus:Si,bigotimes:Ei,bigsqcup:Ci,bigstar:Ti,bigtriangledown:Di,bigtriangleup:Li,biguplus:Oi,bigvee:qi,bigwedge:ji,bkarow:Pi,blacklozenge:$i,blacksquare:Ni,blacktriangle:Ui,blacktriangledown:Ri,blacktriangleleft:Mi,blacktriangleright:Fi,blank:Bi,blk12:Ii,blk14:zi,blk34:Hi,block:Vi,bne:Gi,bnequiv:Wi,bNot:Ji,bnot:Zi,Bopf:Ki,bopf:Xi,bot:Yi,bottom:Qi,bowtie:eo,boxbox:to,boxdl:ro,boxdL:no,boxDl:io,boxDL:oo,boxdr:ao,boxdR:so,boxDr:lo,boxDR:uo,boxh:co,boxH:po,boxhd:fo,boxHd:ho,boxhD:mo,boxHD:go,boxhu:bo,boxHu:yo,boxhU:vo,boxHU:wo,boxminus:ko,boxplus:xo,boxtimes:Ao,boxul:_o,boxuL:So,boxUl:Eo,boxUL:Co,boxur:To,boxuR:Do,boxUr:Lo,boxUR:Oo,boxv:qo,boxV:jo,boxvh:Po,boxvH:$o,boxVh:No,boxVH:Uo,boxvl:Ro,boxvL:Mo,boxVl:Fo,boxVL:Bo,boxvr:Io,boxvR:zo,boxVr:Ho,boxVR:Vo,bprime:Go,breve:Wo,Breve:Jo,brvbar:Zo,bscr:Ko,Bscr:Xo,bsemi:Yo,bsim:Qo,bsime:ea,bsolb:ta,bsol:ra,bsolhsub:na,bull:ia,bullet:oa,bump:aa,bumpE:sa,bumpe:la,Bumpeq:ua,bumpeq:ca,Cacute:pa,cacute:fa,capand:da,capbrcup:ha,capcap:ma,cap:ga,Cap:ba,capcup:ya,capdot:va,CapitalDifferentialD:wa,caps:ka,caret:xa,caron:Aa,Cayleys:_a,ccaps:Sa,Ccaron:Ea,ccaron:Ca,Ccedil:Ta,ccedil:Da,Ccirc:La,ccirc:Oa,Cconint:qa,ccups:ja,ccupssm:Pa,Cdot:$a,cdot:Na,cedil:Ua,Cedilla:Ra,cemptyv:Ma,cent:Fa,centerdot:Ba,CenterDot:Ia,cfr:za,Cfr:Ha,CHcy:Va,chcy:Ga,check:Wa,checkmark:Ja,Chi:Za,chi:Ka,circ:Xa,circeq:Ya,circlearrowleft:Qa,circlearrowright:es,circledast:ts,circledcirc:rs,circleddash:ns,CircleDot:is,circledR:os,circledS:as,CircleMinus:ss,CirclePlus:ls,CircleTimes:us,cir:cs,cirE:ps,cire:fs,cirfnint:ds,cirmid:hs,cirscir:ms,ClockwiseContourIntegral:gs,CloseCurlyDoubleQuote:bs,CloseCurlyQuote:ys,clubs:vs,clubsuit:ws,colon:ks,Colon:xs,Colone:As,colone:_s,coloneq:Ss,comma:Es,commat:Cs,comp:Ts,compfn:Ds,complement:Ls,complexes:Os,cong:qs,congdot:js,Congruent:Ps,conint:$s,Conint:Ns,ContourIntegral:Us,copf:Rs,Copf:Ms,coprod:Fs,Coproduct:Bs,copy:Is,COPY:zs,copysr:Hs,CounterClockwiseContourIntegral:Vs,crarr:Gs,cross:Ws,Cross:Js,Cscr:Zs,cscr:Ks,csub:Xs,csube:Ys,csup:Qs,csupe:el,ctdot:tl,cudarrl:rl,cudarrr:nl,cuepr:il,cuesc:ol,cularr:al,cularrp:sl,cupbrcap:ll,cupcap:ul,CupCap:cl,cup:pl,Cup:fl,cupcup:dl,cupdot:hl,cupor:ml,cups:gl,curarr:bl,curarrm:yl,curlyeqprec:vl,curlyeqsucc:wl,curlyvee:kl,curlywedge:xl,curren:Al,curvearrowleft:_l,curvearrowright:Sl,cuvee:El,cuwed:Cl,cwconint:Tl,cwint:Dl,cylcty:Ll,dagger:Ol,Dagger:ql,daleth:jl,darr:Pl,Darr:$l,dArr:Nl,dash:Ul,Dashv:Rl,dashv:Ml,dbkarow:Fl,dblac:Bl,Dcaron:Il,dcaron:zl,Dcy:Hl,dcy:Vl,ddagger:Gl,ddarr:Wl,DD:Jl,dd:Zl,DDotrahd:Kl,ddotseq:Xl,deg:Yl,Del:Ql,Delta:eu,delta:tu,demptyv:ru,dfisht:nu,Dfr:iu,dfr:ou,dHar:au,dharl:su,dharr:lu,DiacriticalAcute:uu,DiacriticalDot:cu,DiacriticalDoubleAcute:pu,DiacriticalGrave:fu,DiacriticalTilde:du,diam:hu,diamond:mu,Diamond:gu,diamondsuit:bu,diams:yu,die:vu,DifferentialD:wu,digamma:ku,disin:xu,div:Au,divide:_u,divideontimes:Su,divonx:Eu,DJcy:Cu,djcy:Tu,dlcorn:Du,dlcrop:Lu,dollar:Ou,Dopf:qu,dopf:ju,Dot:Pu,dot:$u,DotDot:Nu,doteq:Uu,doteqdot:Ru,DotEqual:Mu,dotminus:Fu,dotplus:Bu,dotsquare:Iu,doublebarwedge:zu,DoubleContourIntegral:Hu,DoubleDot:Vu,DoubleDownArrow:Gu,DoubleLeftArrow:Wu,DoubleLeftRightArrow:Ju,DoubleLeftTee:Zu,DoubleLongLeftArrow:Ku,DoubleLongLeftRightArrow:Xu,DoubleLongRightArrow:Yu,DoubleRightArrow:Qu,DoubleRightTee:ec,DoubleUpArrow:tc,DoubleUpDownArrow:rc,DoubleVerticalBar:nc,DownArrowBar:ic,downarrow:oc,DownArrow:ac,Downarrow:sc,DownArrowUpArrow:lc,DownBreve:uc,downdownarrows:cc,downharpoonleft:pc,downharpoonright:fc,DownLeftRightVector:dc,DownLeftTeeVector:hc,DownLeftVectorBar:mc,DownLeftVector:gc,DownRightTeeVector:bc,DownRightVectorBar:yc,DownRightVector:vc,DownTeeArrow:wc,DownTee:kc,drbkarow:xc,drcorn:Ac,drcrop:_c,Dscr:Sc,dscr:Ec,DScy:Cc,dscy:Tc,dsol:Dc,Dstrok:Lc,dstrok:Oc,dtdot:qc,dtri:jc,dtrif:Pc,duarr:$c,duhar:Nc,dwangle:Uc,DZcy:Rc,dzcy:Mc,dzigrarr:Fc,Eacute:Bc,eacute:Ic,easter:zc,Ecaron:Hc,ecaron:Vc,Ecirc:Gc,ecirc:Wc,ecir:Jc,ecolon:Zc,Ecy:Kc,ecy:Xc,eDDot:Yc,Edot:Qc,edot:ep,eDot:tp,ee:rp,efDot:np,Efr:ip,efr:op,eg:ap,Egrave:sp,egrave:lp,egs:up,egsdot:cp,el:pp,Element:fp,elinters:dp,ell:hp,els:mp,elsdot:gp,Emacr:bp,emacr:yp,empty:vp,emptyset:wp,EmptySmallSquare:kp,emptyv:xp,EmptyVerySmallSquare:Ap,emsp13:_p,emsp14:Sp,emsp:Ep,ENG:Cp,eng:Tp,ensp:Dp,Eogon:Lp,eogon:Op,Eopf:qp,eopf:jp,epar:Pp,eparsl:$p,eplus:Np,epsi:Up,Epsilon:Rp,epsilon:Mp,epsiv:Fp,eqcirc:Bp,eqcolon:Ip,eqsim:zp,eqslantgtr:Hp,eqslantless:Vp,Equal:Gp,equals:Wp,EqualTilde:Jp,equest:Zp,Equilibrium:Kp,equiv:Xp,equivDD:Yp,eqvparsl:Qp,erarr:ef,erDot:tf,escr:rf,Escr:nf,esdot:of,Esim:af,esim:sf,Eta:lf,eta:uf,ETH:cf,eth:pf,Euml:ff,euml:df,euro:hf,excl:mf,exist:gf,Exists:bf,expectation:yf,exponentiale:vf,ExponentialE:wf,fallingdotseq:kf,Fcy:xf,fcy:Af,female:_f,ffilig:Sf,fflig:Ef,ffllig:Cf,Ffr:Tf,ffr:Df,filig:Lf,FilledSmallSquare:Of,FilledVerySmallSquare:qf,fjlig:jf,flat:Pf,fllig:$f,fltns:Nf,fnof:Uf,Fopf:Rf,fopf:Mf,forall:Ff,ForAll:Bf,fork:If,forkv:zf,Fouriertrf:Hf,fpartint:Vf,frac12:Gf,frac13:Wf,frac14:Jf,frac15:Zf,frac16:Kf,frac18:Xf,frac23:Yf,frac25:Qf,frac34:ed,frac35:td,frac38:rd,frac45:nd,frac56:id,frac58:od,frac78:ad,frasl:sd,frown:ld,fscr:ud,Fscr:cd,gacute:pd,Gamma:fd,gamma:dd,Gammad:hd,gammad:md,gap:gd,Gbreve:bd,gbreve:yd,Gcedil:vd,Gcirc:wd,gcirc:kd,Gcy:xd,gcy:Ad,Gdot:_d,gdot:Sd,ge:Ed,gE:Cd,gEl:Td,gel:Dd,geq:Ld,geqq:Od,geqslant:qd,gescc:jd,ges:Pd,gesdot:$d,gesdoto:Nd,gesdotol:Ud,gesl:Rd,gesles:Md,Gfr:Fd,gfr:Bd,gg:Id,Gg:zd,ggg:Hd,gimel:Vd,GJcy:Gd,gjcy:Wd,gla:Jd,gl:Zd,glE:Kd,glj:Xd,gnap:Yd,gnapprox:Qd,gne:eh,gnE:th,gneq:rh,gneqq:nh,gnsim:ih,Gopf:oh,gopf:ah,grave:sh,GreaterEqual:lh,GreaterEqualLess:uh,GreaterFullEqual:ch,GreaterGreater:ph,GreaterLess:fh,GreaterSlantEqual:dh,GreaterTilde:hh,Gscr:mh,gscr:gh,gsim:bh,gsime:yh,gsiml:vh,gtcc:wh,gtcir:kh,gt:xh,GT:Ah,Gt:_h,gtdot:Sh,gtlPar:Eh,gtquest:Ch,gtrapprox:Th,gtrarr:Dh,gtrdot:Lh,gtreqless:Oh,gtreqqless:qh,gtrless:jh,gtrsim:Ph,gvertneqq:$h,gvnE:Nh,Hacek:Uh,hairsp:Rh,half:Mh,hamilt:Fh,HARDcy:Bh,hardcy:Ih,harrcir:zh,harr:Hh,hArr:Vh,harrw:Gh,Hat:Wh,hbar:Jh,Hcirc:Zh,hcirc:Kh,hearts:Xh,heartsuit:Yh,hellip:Qh,hercon:em,hfr:tm,Hfr:rm,HilbertSpace:nm,hksearow:im,hkswarow:om,hoarr:am,homtht:sm,hookleftarrow:lm,hookrightarrow:um,hopf:cm,Hopf:pm,horbar:fm,HorizontalLine:dm,hscr:hm,Hscr:mm,hslash:gm,Hstrok:bm,hstrok:ym,HumpDownHump:vm,HumpEqual:wm,hybull:km,hyphen:xm,Iacute:Am,iacute:_m,ic:Sm,Icirc:Em,icirc:Cm,Icy:Tm,icy:Dm,Idot:Lm,IEcy:Om,iecy:qm,iexcl:jm,iff:Pm,ifr:$m,Ifr:Nm,Igrave:Um,igrave:Rm,ii:Mm,iiiint:Fm,iiint:Bm,iinfin:Im,iiota:zm,IJlig:Hm,ijlig:Vm,Imacr:Gm,imacr:Wm,image:Jm,ImaginaryI:Zm,imagline:Km,imagpart:Xm,imath:Ym,Im:Qm,imof:eg,imped:tg,Implies:rg,incare:ng,in:"∈",infin:ig,infintie:og,inodot:ag,intcal:sg,int:lg,Int:ug,integers:cg,Integral:pg,intercal:fg,Intersection:dg,intlarhk:hg,intprod:mg,InvisibleComma:gg,InvisibleTimes:bg,IOcy:yg,iocy:vg,Iogon:wg,iogon:kg,Iopf:xg,iopf:Ag,Iota:_g,iota:Sg,iprod:Eg,iquest:Cg,iscr:Tg,Iscr:Dg,isin:Lg,isindot:Og,isinE:qg,isins:jg,isinsv:Pg,isinv:$g,it:Ng,Itilde:Ug,itilde:Rg,Iukcy:Mg,iukcy:Fg,Iuml:Bg,iuml:Ig,Jcirc:zg,jcirc:Hg,Jcy:Vg,jcy:Gg,Jfr:Wg,jfr:Jg,jmath:Zg,Jopf:Kg,jopf:Xg,Jscr:Yg,jscr:Qg,Jsercy:eb,jsercy:tb,Jukcy:rb,jukcy:nb,Kappa:ib,kappa:ob,kappav:ab,Kcedil:sb,kcedil:lb,Kcy:ub,kcy:cb,Kfr:pb,kfr:fb,kgreen:db,KHcy:hb,khcy:mb,KJcy:gb,kjcy:bb,Kopf:yb,kopf:vb,Kscr:wb,kscr:kb,lAarr:xb,Lacute:Ab,lacute:_b,laemptyv:Sb,lagran:Eb,Lambda:Cb,lambda:Tb,lang:Db,Lang:Lb,langd:Ob,langle:qb,lap:jb,Laplacetrf:Pb,laquo:$b,larrb:Nb,larrbfs:Ub,larr:Rb,Larr:Mb,lArr:Fb,larrfs:Bb,larrhk:Ib,larrlp:zb,larrpl:Hb,larrsim:Vb,larrtl:Gb,latail:Wb,lAtail:Jb,lat:Zb,late:Kb,lates:Xb,lbarr:Yb,lBarr:Qb,lbbrk:ey,lbrace:ty,lbrack:ry,lbrke:ny,lbrksld:iy,lbrkslu:oy,Lcaron:ay,lcaron:sy,Lcedil:ly,lcedil:uy,lceil:cy,lcub:py,Lcy:fy,lcy:dy,ldca:hy,ldquo:my,ldquor:gy,ldrdhar:by,ldrushar:yy,ldsh:vy,le:wy,lE:ky,LeftAngleBracket:xy,LeftArrowBar:Ay,leftarrow:_y,LeftArrow:Sy,Leftarrow:Ey,LeftArrowRightArrow:Cy,leftarrowtail:Ty,LeftCeiling:Dy,LeftDoubleBracket:Ly,LeftDownTeeVector:Oy,LeftDownVectorBar:qy,LeftDownVector:jy,LeftFloor:Py,leftharpoondown:$y,leftharpoonup:Ny,leftleftarrows:Uy,leftrightarrow:Ry,LeftRightArrow:My,Leftrightarrow:Fy,leftrightarrows:By,leftrightharpoons:Iy,leftrightsquigarrow:zy,LeftRightVector:Hy,LeftTeeArrow:Vy,LeftTee:Gy,LeftTeeVector:Wy,leftthreetimes:Jy,LeftTriangleBar:Zy,LeftTriangle:Ky,LeftTriangleEqual:Xy,LeftUpDownVector:Yy,LeftUpTeeVector:Qy,LeftUpVectorBar:ev,LeftUpVector:tv,LeftVectorBar:rv,LeftVector:nv,lEg:iv,leg:ov,leq:av,leqq:sv,leqslant:lv,lescc:uv,les:cv,lesdot:pv,lesdoto:fv,lesdotor:dv,lesg:hv,lesges:mv,lessapprox:gv,lessdot:bv,lesseqgtr:yv,lesseqqgtr:vv,LessEqualGreater:wv,LessFullEqual:kv,LessGreater:xv,lessgtr:Av,LessLess:_v,lesssim:Sv,LessSlantEqual:Ev,LessTilde:Cv,lfisht:Tv,lfloor:Dv,Lfr:Lv,lfr:Ov,lg:qv,lgE:jv,lHar:Pv,lhard:$v,lharu:Nv,lharul:Uv,lhblk:Rv,LJcy:Mv,ljcy:Fv,llarr:Bv,ll:Iv,Ll:zv,llcorner:Hv,Lleftarrow:Vv,llhard:Gv,lltri:Wv,Lmidot:Jv,lmidot:Zv,lmoustache:Kv,lmoust:Xv,lnap:Yv,lnapprox:Qv,lne:e0,lnE:t0,lneq:r0,lneqq:n0,lnsim:i0,loang:o0,loarr:a0,lobrk:s0,longleftarrow:l0,LongLeftArrow:u0,Longleftarrow:c0,longleftrightarrow:p0,LongLeftRightArrow:f0,Longleftrightarrow:d0,longmapsto:h0,longrightarrow:m0,LongRightArrow:g0,Longrightarrow:b0,looparrowleft:y0,looparrowright:v0,lopar:w0,Lopf:k0,lopf:x0,loplus:A0,lotimes:_0,lowast:S0,lowbar:E0,LowerLeftArrow:C0,LowerRightArrow:T0,loz:D0,lozenge:L0,lozf:O0,lpar:q0,lparlt:j0,lrarr:P0,lrcorner:$0,lrhar:N0,lrhard:U0,lrm:R0,lrtri:M0,lsaquo:F0,lscr:B0,Lscr:I0,lsh:z0,Lsh:H0,lsim:V0,lsime:G0,lsimg:W0,lsqb:J0,lsquo:Z0,lsquor:K0,Lstrok:X0,lstrok:Y0,ltcc:Q0,ltcir:e1,lt:t1,LT:r1,Lt:n1,ltdot:i1,lthree:o1,ltimes:a1,ltlarr:s1,ltquest:l1,ltri:u1,ltrie:c1,ltrif:p1,ltrPar:f1,lurdshar:d1,luruhar:h1,lvertneqq:m1,lvnE:g1,macr:b1,male:y1,malt:v1,maltese:w1,Map:"⤅",map:k1,mapsto:x1,mapstodown:A1,mapstoleft:_1,mapstoup:S1,marker:E1,mcomma:C1,Mcy:T1,mcy:D1,mdash:L1,mDDot:O1,measuredangle:q1,MediumSpace:j1,Mellintrf:P1,Mfr:$1,mfr:N1,mho:U1,micro:R1,midast:M1,midcir:F1,mid:B1,middot:I1,minusb:z1,minus:H1,minusd:V1,minusdu:G1,MinusPlus:W1,mlcp:J1,mldr:Z1,mnplus:K1,models:X1,Mopf:Y1,mopf:Q1,mp:ew,mscr:tw,Mscr:rw,mstpos:nw,Mu:iw,mu:ow,multimap:aw,mumap:sw,nabla:lw,Nacute:uw,nacute:cw,nang:pw,nap:fw,napE:dw,napid:hw,napos:mw,napprox:gw,natural:bw,naturals:yw,natur:vw,nbsp:ww,nbump:kw,nbumpe:xw,ncap:Aw,Ncaron:_w,ncaron:Sw,Ncedil:Ew,ncedil:Cw,ncong:Tw,ncongdot:Dw,ncup:Lw,Ncy:Ow,ncy:qw,ndash:jw,nearhk:Pw,nearr:$w,neArr:Nw,nearrow:Uw,ne:Rw,nedot:Mw,NegativeMediumSpace:Fw,NegativeThickSpace:Bw,NegativeThinSpace:Iw,NegativeVeryThinSpace:zw,nequiv:Hw,nesear:Vw,nesim:Gw,NestedGreaterGreater:Ww,NestedLessLess:Jw,NewLine:Zw,nexist:Kw,nexists:Xw,Nfr:Yw,nfr:Qw,ngE:ek,nge:tk,ngeq:rk,ngeqq:nk,ngeqslant:ik,nges:ok,nGg:ak,ngsim:sk,nGt:lk,ngt:uk,ngtr:ck,nGtv:pk,nharr:fk,nhArr:dk,nhpar:hk,ni:mk,nis:gk,nisd:bk,niv:yk,NJcy:vk,njcy:wk,nlarr:kk,nlArr:xk,nldr:Ak,nlE:_k,nle:Sk,nleftarrow:Ek,nLeftarrow:Ck,nleftrightarrow:Tk,nLeftrightarrow:Dk,nleq:Lk,nleqq:Ok,nleqslant:qk,nles:jk,nless:Pk,nLl:$k,nlsim:Nk,nLt:Uk,nlt:Rk,nltri:Mk,nltrie:Fk,nLtv:Bk,nmid:Ik,NoBreak:zk,NonBreakingSpace:Hk,nopf:Vk,Nopf:Gk,Not:Wk,not:Jk,NotCongruent:Zk,NotCupCap:Kk,NotDoubleVerticalBar:Xk,NotElement:Yk,NotEqual:Qk,NotEqualTilde:e2,NotExists:t2,NotGreater:r2,NotGreaterEqual:n2,NotGreaterFullEqual:i2,NotGreaterGreater:o2,NotGreaterLess:a2,NotGreaterSlantEqual:s2,NotGreaterTilde:l2,NotHumpDownHump:u2,NotHumpEqual:c2,notin:p2,notindot:f2,notinE:d2,notinva:h2,notinvb:m2,notinvc:g2,NotLeftTriangleBar:b2,NotLeftTriangle:y2,NotLeftTriangleEqual:v2,NotLess:w2,NotLessEqual:k2,NotLessGreater:x2,NotLessLess:A2,NotLessSlantEqual:_2,NotLessTilde:S2,NotNestedGreaterGreater:E2,NotNestedLessLess:C2,notni:T2,notniva:D2,notnivb:L2,notnivc:O2,NotPrecedes:q2,NotPrecedesEqual:j2,NotPrecedesSlantEqual:P2,NotReverseElement:$2,NotRightTriangleBar:N2,NotRightTriangle:U2,NotRightTriangleEqual:R2,NotSquareSubset:M2,NotSquareSubsetEqual:F2,NotSquareSuperset:B2,NotSquareSupersetEqual:I2,NotSubset:z2,NotSubsetEqual:H2,NotSucceeds:V2,NotSucceedsEqual:G2,NotSucceedsSlantEqual:W2,NotSucceedsTilde:J2,NotSuperset:Z2,NotSupersetEqual:K2,NotTilde:X2,NotTildeEqual:Y2,NotTildeFullEqual:Q2,NotTildeTilde:ex,NotVerticalBar:tx,nparallel:rx,npar:nx,nparsl:ix,npart:ox,npolint:ax,npr:sx,nprcue:lx,nprec:ux,npreceq:cx,npre:px,nrarrc:fx,nrarr:dx,nrArr:hx,nrarrw:mx,nrightarrow:gx,nRightarrow:bx,nrtri:yx,nrtrie:vx,nsc:wx,nsccue:kx,nsce:xx,Nscr:Ax,nscr:_x,nshortmid:Sx,nshortparallel:Ex,nsim:Cx,nsime:Tx,nsimeq:Dx,nsmid:Lx,nspar:Ox,nsqsube:qx,nsqsupe:jx,nsub:Px,nsubE:$x,nsube:Nx,nsubset:Ux,nsubseteq:Rx,nsubseteqq:Mx,nsucc:Fx,nsucceq:Bx,nsup:Ix,nsupE:zx,nsupe:Hx,nsupset:Vx,nsupseteq:Gx,nsupseteqq:Wx,ntgl:Jx,Ntilde:Zx,ntilde:Kx,ntlg:Xx,ntriangleleft:Yx,ntrianglelefteq:Qx,ntriangleright:e4,ntrianglerighteq:t4,Nu:r4,nu:n4,num:i4,numero:o4,numsp:a4,nvap:s4,nvdash:l4,nvDash:u4,nVdash:c4,nVDash:p4,nvge:f4,nvgt:d4,nvHarr:h4,nvinfin:m4,nvlArr:g4,nvle:b4,nvlt:y4,nvltrie:v4,nvrArr:w4,nvrtrie:k4,nvsim:x4,nwarhk:A4,nwarr:_4,nwArr:S4,nwarrow:E4,nwnear:C4,Oacute:T4,oacute:D4,oast:L4,Ocirc:O4,ocirc:q4,ocir:j4,Ocy:P4,ocy:$4,odash:N4,Odblac:U4,odblac:R4,odiv:M4,odot:F4,odsold:B4,OElig:I4,oelig:z4,ofcir:H4,Ofr:V4,ofr:G4,ogon:W4,Ograve:J4,ograve:Z4,ogt:K4,ohbar:X4,ohm:Y4,oint:Q4,olarr:eA,olcir:tA,olcross:rA,oline:nA,olt:iA,Omacr:oA,omacr:aA,Omega:sA,omega:lA,Omicron:uA,omicron:cA,omid:pA,ominus:fA,Oopf:dA,oopf:hA,opar:mA,OpenCurlyDoubleQuote:gA,OpenCurlyQuote:bA,operp:yA,oplus:vA,orarr:wA,Or:kA,or:xA,ord:AA,order:_A,orderof:SA,ordf:EA,ordm:CA,origof:TA,oror:DA,orslope:LA,orv:OA,oS:qA,Oscr:jA,oscr:PA,Oslash:$A,oslash:NA,osol:UA,Otilde:RA,otilde:MA,otimesas:FA,Otimes:BA,otimes:IA,Ouml:zA,ouml:HA,ovbar:VA,OverBar:GA,OverBrace:WA,OverBracket:JA,OverParenthesis:ZA,para:KA,parallel:XA,par:YA,parsim:QA,parsl:e_,part:t_,PartialD:r_,Pcy:n_,pcy:i_,percnt:o_,period:a_,permil:s_,perp:l_,pertenk:u_,Pfr:c_,pfr:p_,Phi:f_,phi:d_,phiv:h_,phmmat:m_,phone:g_,Pi:b_,pi:y_,pitchfork:v_,piv:w_,planck:k_,planckh:x_,plankv:A_,plusacir:__,plusb:S_,pluscir:E_,plus:C_,plusdo:T_,plusdu:D_,pluse:L_,PlusMinus:O_,plusmn:q_,plussim:j_,plustwo:P_,pm:$_,Poincareplane:N_,pointint:U_,popf:R_,Popf:M_,pound:F_,prap:B_,Pr:I_,pr:z_,prcue:H_,precapprox:V_,prec:G_,preccurlyeq:W_,Precedes:J_,PrecedesEqual:Z_,PrecedesSlantEqual:K_,PrecedesTilde:X_,preceq:Y_,precnapprox:Q_,precneqq:eS,precnsim:tS,pre:rS,prE:nS,precsim:iS,prime:oS,Prime:aS,primes:sS,prnap:lS,prnE:uS,prnsim:cS,prod:pS,Product:fS,profalar:dS,profline:hS,profsurf:mS,prop:gS,Proportional:bS,Proportion:yS,propto:vS,prsim:wS,prurel:kS,Pscr:xS,pscr:AS,Psi:_S,psi:SS,puncsp:ES,Qfr:CS,qfr:TS,qint:DS,qopf:LS,Qopf:OS,qprime:qS,Qscr:jS,qscr:PS,quaternions:$S,quatint:NS,quest:US,questeq:RS,quot:MS,QUOT:FS,rAarr:BS,race:IS,Racute:zS,racute:HS,radic:VS,raemptyv:GS,rang:WS,Rang:JS,rangd:ZS,range:KS,rangle:XS,raquo:YS,rarrap:QS,rarrb:e5,rarrbfs:t5,rarrc:r5,rarr:n5,Rarr:i5,rArr:o5,rarrfs:a5,rarrhk:s5,rarrlp:l5,rarrpl:u5,rarrsim:c5,Rarrtl:p5,rarrtl:f5,rarrw:d5,ratail:h5,rAtail:m5,ratio:g5,rationals:b5,rbarr:y5,rBarr:v5,RBarr:w5,rbbrk:k5,rbrace:x5,rbrack:A5,rbrke:_5,rbrksld:S5,rbrkslu:E5,Rcaron:C5,rcaron:T5,Rcedil:D5,rcedil:L5,rceil:O5,rcub:q5,Rcy:j5,rcy:P5,rdca:$5,rdldhar:N5,rdquo:U5,rdquor:R5,rdsh:M5,real:F5,realine:B5,realpart:I5,reals:z5,Re:H5,rect:V5,reg:G5,REG:W5,ReverseElement:J5,ReverseEquilibrium:Z5,ReverseUpEquilibrium:K5,rfisht:X5,rfloor:Y5,rfr:Q5,Rfr:eE,rHar:tE,rhard:rE,rharu:nE,rharul:iE,Rho:oE,rho:aE,rhov:sE,RightAngleBracket:lE,RightArrowBar:uE,rightarrow:cE,RightArrow:pE,Rightarrow:fE,RightArrowLeftArrow:dE,rightarrowtail:hE,RightCeiling:mE,RightDoubleBracket:gE,RightDownTeeVector:bE,RightDownVectorBar:yE,RightDownVector:vE,RightFloor:wE,rightharpoondown:kE,rightharpoonup:xE,rightleftarrows:AE,rightleftharpoons:_E,rightrightarrows:SE,rightsquigarrow:EE,RightTeeArrow:CE,RightTee:TE,RightTeeVector:DE,rightthreetimes:LE,RightTriangleBar:OE,RightTriangle:qE,RightTriangleEqual:jE,RightUpDownVector:PE,RightUpTeeVector:$E,RightUpVectorBar:NE,RightUpVector:UE,RightVectorBar:RE,RightVector:ME,ring:FE,risingdotseq:BE,rlarr:IE,rlhar:zE,rlm:HE,rmoustache:VE,rmoust:GE,rnmid:WE,roang:JE,roarr:ZE,robrk:KE,ropar:XE,ropf:YE,Ropf:QE,roplus:eC,rotimes:tC,RoundImplies:rC,rpar:nC,rpargt:iC,rppolint:oC,rrarr:aC,Rrightarrow:sC,rsaquo:lC,rscr:uC,Rscr:cC,rsh:pC,Rsh:fC,rsqb:dC,rsquo:hC,rsquor:mC,rthree:gC,rtimes:bC,rtri:yC,rtrie:vC,rtrif:wC,rtriltri:kC,RuleDelayed:xC,ruluhar:AC,rx:_C,Sacute:SC,sacute:EC,sbquo:CC,scap:TC,Scaron:DC,scaron:LC,Sc:OC,sc:qC,sccue:jC,sce:PC,scE:$C,Scedil:NC,scedil:UC,Scirc:RC,scirc:MC,scnap:FC,scnE:BC,scnsim:IC,scpolint:zC,scsim:HC,Scy:VC,scy:GC,sdotb:WC,sdot:JC,sdote:ZC,searhk:KC,searr:XC,seArr:YC,searrow:QC,sect:eT,semi:tT,seswar:rT,setminus:nT,setmn:iT,sext:oT,Sfr:aT,sfr:sT,sfrown:lT,sharp:uT,SHCHcy:cT,shchcy:pT,SHcy:fT,shcy:dT,ShortDownArrow:hT,ShortLeftArrow:mT,shortmid:gT,shortparallel:bT,ShortRightArrow:yT,ShortUpArrow:vT,shy:wT,Sigma:kT,sigma:xT,sigmaf:AT,sigmav:_T,sim:ST,simdot:ET,sime:CT,simeq:TT,simg:DT,simgE:LT,siml:OT,simlE:qT,simne:jT,simplus:PT,simrarr:$T,slarr:NT,SmallCircle:UT,smallsetminus:RT,smashp:MT,smeparsl:FT,smid:BT,smile:IT,smt:zT,smte:HT,smtes:VT,SOFTcy:GT,softcy:WT,solbar:JT,solb:ZT,sol:KT,Sopf:XT,sopf:YT,spades:QT,spadesuit:e6,spar:t6,sqcap:r6,sqcaps:n6,sqcup:i6,sqcups:o6,Sqrt:a6,sqsub:s6,sqsube:l6,sqsubset:u6,sqsubseteq:c6,sqsup:p6,sqsupe:f6,sqsupset:d6,sqsupseteq:h6,square:m6,Square:g6,SquareIntersection:b6,SquareSubset:y6,SquareSubsetEqual:v6,SquareSuperset:w6,SquareSupersetEqual:k6,SquareUnion:x6,squarf:A6,squ:_6,squf:S6,srarr:E6,Sscr:C6,sscr:T6,ssetmn:D6,ssmile:L6,sstarf:O6,Star:q6,star:j6,starf:P6,straightepsilon:$6,straightphi:N6,strns:U6,sub:R6,Sub:M6,subdot:F6,subE:B6,sube:I6,subedot:z6,submult:H6,subnE:V6,subne:G6,subplus:W6,subrarr:J6,subset:Z6,Subset:K6,subseteq:X6,subseteqq:Y6,SubsetEqual:Q6,subsetneq:eD,subsetneqq:tD,subsim:rD,subsub:nD,subsup:iD,succapprox:oD,succ:aD,succcurlyeq:sD,Succeeds:lD,SucceedsEqual:uD,SucceedsSlantEqual:cD,SucceedsTilde:pD,succeq:fD,succnapprox:dD,succneqq:hD,succnsim:mD,succsim:gD,SuchThat:bD,sum:yD,Sum:vD,sung:wD,sup1:kD,sup2:xD,sup3:AD,sup:_D,Sup:SD,supdot:ED,supdsub:CD,supE:TD,supe:DD,supedot:LD,Superset:OD,SupersetEqual:qD,suphsol:jD,suphsub:PD,suplarr:$D,supmult:ND,supnE:UD,supne:RD,supplus:MD,supset:FD,Supset:BD,supseteq:ID,supseteqq:zD,supsetneq:HD,supsetneqq:VD,supsim:GD,supsub:WD,supsup:JD,swarhk:ZD,swarr:KD,swArr:XD,swarrow:YD,swnwar:QD,szlig:eL,Tab:tL,target:rL,Tau:nL,tau:iL,tbrk:oL,Tcaron:aL,tcaron:sL,Tcedil:lL,tcedil:uL,Tcy:cL,tcy:pL,tdot:fL,telrec:dL,Tfr:hL,tfr:mL,there4:gL,therefore:bL,Therefore:yL,Theta:vL,theta:wL,thetasym:kL,thetav:xL,thickapprox:AL,thicksim:_L,ThickSpace:SL,ThinSpace:EL,thinsp:CL,thkap:TL,thksim:DL,THORN:LL,thorn:OL,tilde:qL,Tilde:jL,TildeEqual:PL,TildeFullEqual:$L,TildeTilde:NL,timesbar:UL,timesb:RL,times:ML,timesd:FL,tint:BL,toea:IL,topbot:zL,topcir:HL,top:VL,Topf:GL,topf:WL,topfork:JL,tosa:ZL,tprime:KL,trade:XL,TRADE:YL,triangle:QL,triangledown:eO,triangleleft:tO,trianglelefteq:rO,triangleq:nO,triangleright:iO,trianglerighteq:oO,tridot:aO,trie:sO,triminus:lO,TripleDot:uO,triplus:cO,trisb:pO,tritime:fO,trpezium:dO,Tscr:hO,tscr:mO,TScy:gO,tscy:bO,TSHcy:yO,tshcy:vO,Tstrok:wO,tstrok:kO,twixt:xO,twoheadleftarrow:AO,twoheadrightarrow:_O,Uacute:SO,uacute:EO,uarr:CO,Uarr:TO,uArr:DO,Uarrocir:LO,Ubrcy:OO,ubrcy:qO,Ubreve:jO,ubreve:PO,Ucirc:$O,ucirc:NO,Ucy:UO,ucy:RO,udarr:MO,Udblac:FO,udblac:BO,udhar:IO,ufisht:zO,Ufr:HO,ufr:VO,Ugrave:GO,ugrave:WO,uHar:JO,uharl:ZO,uharr:KO,uhblk:XO,ulcorn:YO,ulcorner:QO,ulcrop:e3,ultri:t3,Umacr:r3,umacr:n3,uml:i3,UnderBar:o3,UnderBrace:a3,UnderBracket:s3,UnderParenthesis:l3,Union:u3,UnionPlus:c3,Uogon:p3,uogon:f3,Uopf:d3,uopf:h3,UpArrowBar:m3,uparrow:g3,UpArrow:b3,Uparrow:y3,UpArrowDownArrow:v3,updownarrow:w3,UpDownArrow:k3,Updownarrow:x3,UpEquilibrium:A3,upharpoonleft:_3,upharpoonright:S3,uplus:E3,UpperLeftArrow:C3,UpperRightArrow:T3,upsi:D3,Upsi:L3,upsih:O3,Upsilon:q3,upsilon:j3,UpTeeArrow:P3,UpTee:$3,upuparrows:N3,urcorn:U3,urcorner:R3,urcrop:M3,Uring:F3,uring:B3,urtri:I3,Uscr:z3,uscr:H3,utdot:V3,Utilde:G3,utilde:W3,utri:J3,utrif:Z3,uuarr:K3,Uuml:X3,uuml:Y3,uwangle:Q3,vangrt:e8,varepsilon:t8,varkappa:r8,varnothing:n8,varphi:i8,varpi:o8,varpropto:a8,varr:s8,vArr:l8,varrho:u8,varsigma:c8,varsubsetneq:p8,varsubsetneqq:f8,varsupsetneq:d8,varsupsetneqq:h8,vartheta:m8,vartriangleleft:g8,vartriangleright:b8,vBar:y8,Vbar:v8,vBarv:w8,Vcy:k8,vcy:x8,vdash:A8,vDash:_8,Vdash:S8,VDash:E8,Vdashl:C8,veebar:T8,vee:D8,Vee:L8,veeeq:O8,vellip:q8,verbar:j8,Verbar:P8,vert:$8,Vert:N8,VerticalBar:U8,VerticalLine:R8,VerticalSeparator:M8,VerticalTilde:F8,VeryThinSpace:B8,Vfr:I8,vfr:z8,vltri:H8,vnsub:V8,vnsup:G8,Vopf:W8,vopf:J8,vprop:Z8,vrtri:K8,Vscr:X8,vscr:Y8,vsubnE:Q8,vsubne:eq,vsupnE:tq,vsupne:rq,Vvdash:nq,vzigzag:iq,Wcirc:oq,wcirc:aq,wedbar:sq,wedge:lq,Wedge:uq,wedgeq:cq,weierp:pq,Wfr:fq,wfr:dq,Wopf:hq,wopf:mq,wp:gq,wr:bq,wreath:yq,Wscr:vq,wscr:wq,xcap:kq,xcirc:xq,xcup:Aq,xdtri:_q,Xfr:Sq,xfr:Eq,xharr:Cq,xhArr:Tq,Xi:Dq,xi:Lq,xlarr:Oq,xlArr:qq,xmap:jq,xnis:Pq,xodot:$q,Xopf:Nq,xopf:Uq,xoplus:Rq,xotime:Mq,xrarr:Fq,xrArr:Bq,Xscr:Iq,xscr:zq,xsqcup:Hq,xuplus:Vq,xutri:Gq,xvee:Wq,xwedge:Jq,Yacute:Zq,yacute:Kq,YAcy:Xq,yacy:Yq,Ycirc:Qq,ycirc:ej,Ycy:tj,ycy:rj,yen:nj,Yfr:ij,yfr:oj,YIcy:aj,yicy:sj,Yopf:lj,yopf:uj,Yscr:cj,yscr:pj,YUcy:fj,yucy:dj,yuml:hj,Yuml:mj,Zacute:gj,zacute:bj,Zcaron:yj,zcaron:vj,Zcy:wj,zcy:kj,Zdot:xj,zdot:Aj,zeetrf:_j,ZeroWidthSpace:Sj,Zeta:Ej,zeta:Cj,zfr:Tj,Zfr:Dj,ZHcy:Lj,zhcy:Oj,zigrarr:qj,zopf:jj,Zopf:Pj,Zscr:$j,zscr:Nj,zwj:Uj,zwnj:Rj},VR=Object.freeze({__proto__:null,Aacute:S,aacute:m,Abreve:O,abreve:q,ac:N,acd:P,acE:T,Acirc:F,acirc:B,acute:H,Acy:te,acy:re,AElig:be,aelig:se,af:Q,Afr:le,afr:I,Agrave:ee,agrave:W,alefsym:ie,aleph:ue,Alpha:g,alpha:v,Amacr:L,amacr:U,amalg:Y,amp:V,AMP:M,andand:G,And:Z,and:fe,andd:Se,andslope:Pe,andv:Ce,ang:$e,ange:ot,angle:Et,angmsdaa:Ct,angmsdab:E,angmsdac:Tt,angmsdad:an,angmsdae:sn,angmsdaf:ln,angmsdag:un,angmsdah:cn,angmsd:pn,angrt:fn,angrtvb:dn,angrtvbd:hn,angsph:mn,angst:gn,angzarr:bn,Aogon:yn,aogon:vn,Aopf:wn,aopf:kn,apacir:xn,ap:An,apE:_n,ape:Sn,apid:En,apos:Cn,ApplyFunction:Tn,approx:Dn,approxeq:Ln,Aring:On,aring:qn,Ascr:jn,ascr:Pn,Assign:$n,ast:Nn,asymp:Un,asympeq:Rn,Atilde:Mn,atilde:Fn,Auml:Bn,auml:In,awconint:zn,awint:Hn,backcong:Vn,backepsilon:Gn,backprime:Wn,backsim:Jn,backsimeq:Zn,Backslash:Kn,Barv:Xn,barvee:Yn,barwed:Qn,Barwed:ei,barwedge:ti,bbrk:ri,bbrktbrk:ni,bcong:ii,Bcy:oi,bcy:ai,bdquo:si,becaus:li,because:ui,Because:ci,bemptyv:pi,bepsi:fi,bernou:di,Bernoullis:hi,Beta:mi,beta:gi,beth:bi,between:yi,Bfr:vi,bfr:wi,bigcap:ki,bigcirc:xi,bigcup:Ai,bigodot:_i,bigoplus:Si,bigotimes:Ei,bigsqcup:Ci,bigstar:Ti,bigtriangledown:Di,bigtriangleup:Li,biguplus:Oi,bigvee:qi,bigwedge:ji,bkarow:Pi,blacklozenge:$i,blacksquare:Ni,blacktriangle:Ui,blacktriangledown:Ri,blacktriangleleft:Mi,blacktriangleright:Fi,blank:Bi,blk12:Ii,blk14:zi,blk34:Hi,block:Vi,bne:Gi,bnequiv:Wi,bNot:Ji,bnot:Zi,Bopf:Ki,bopf:Xi,bot:Yi,bottom:Qi,bowtie:eo,boxbox:to,boxdl:ro,boxdL:no,boxDl:io,boxDL:oo,boxdr:ao,boxdR:so,boxDr:lo,boxDR:uo,boxh:co,boxH:po,boxhd:fo,boxHd:ho,boxhD:mo,boxHD:go,boxhu:bo,boxHu:yo,boxhU:vo,boxHU:wo,boxminus:ko,boxplus:xo,boxtimes:Ao,boxul:_o,boxuL:So,boxUl:Eo,boxUL:Co,boxur:To,boxuR:Do,boxUr:Lo,boxUR:Oo,boxv:qo,boxV:jo,boxvh:Po,boxvH:$o,boxVh:No,boxVH:Uo,boxvl:Ro,boxvL:Mo,boxVl:Fo,boxVL:Bo,boxvr:Io,boxvR:zo,boxVr:Ho,boxVR:Vo,bprime:Go,breve:Wo,Breve:Jo,brvbar:Zo,bscr:Ko,Bscr:Xo,bsemi:Yo,bsim:Qo,bsime:ea,bsolb:ta,bsol:ra,bsolhsub:na,bull:ia,bullet:oa,bump:aa,bumpE:sa,bumpe:la,Bumpeq:ua,bumpeq:ca,Cacute:pa,cacute:fa,capand:da,capbrcup:ha,capcap:ma,cap:ga,Cap:ba,capcup:ya,capdot:va,CapitalDifferentialD:wa,caps:ka,caret:xa,caron:Aa,Cayleys:_a,ccaps:Sa,Ccaron:Ea,ccaron:Ca,Ccedil:Ta,ccedil:Da,Ccirc:La,ccirc:Oa,Cconint:qa,ccups:ja,ccupssm:Pa,Cdot:$a,cdot:Na,cedil:Ua,Cedilla:Ra,cemptyv:Ma,cent:Fa,centerdot:Ba,CenterDot:Ia,cfr:za,Cfr:Ha,CHcy:Va,chcy:Ga,check:Wa,checkmark:Ja,Chi:Za,chi:Ka,circ:Xa,circeq:Ya,circlearrowleft:Qa,circlearrowright:es,circledast:ts,circledcirc:rs,circleddash:ns,CircleDot:is,circledR:os,circledS:as,CircleMinus:ss,CirclePlus:ls,CircleTimes:us,cir:cs,cirE:ps,cire:fs,cirfnint:ds,cirmid:hs,cirscir:ms,ClockwiseContourIntegral:gs,CloseCurlyDoubleQuote:bs,CloseCurlyQuote:ys,clubs:vs,clubsuit:ws,colon:ks,Colon:xs,Colone:As,colone:_s,coloneq:Ss,comma:Es,commat:Cs,comp:Ts,compfn:Ds,complement:Ls,complexes:Os,cong:qs,congdot:js,Congruent:Ps,conint:$s,Conint:Ns,ContourIntegral:Us,copf:Rs,Copf:Ms,coprod:Fs,Coproduct:Bs,copy:Is,COPY:zs,copysr:Hs,CounterClockwiseContourIntegral:Vs,crarr:Gs,cross:Ws,Cross:Js,Cscr:Zs,cscr:Ks,csub:Xs,csube:Ys,csup:Qs,csupe:el,ctdot:tl,cudarrl:rl,cudarrr:nl,cuepr:il,cuesc:ol,cularr:al,cularrp:sl,cupbrcap:ll,cupcap:ul,CupCap:cl,cup:pl,Cup:fl,cupcup:dl,cupdot:hl,cupor:ml,cups:gl,curarr:bl,curarrm:yl,curlyeqprec:vl,curlyeqsucc:wl,curlyvee:kl,curlywedge:xl,curren:Al,curvearrowleft:_l,curvearrowright:Sl,cuvee:El,cuwed:Cl,cwconint:Tl,cwint:Dl,cylcty:Ll,dagger:Ol,Dagger:ql,daleth:jl,darr:Pl,Darr:$l,dArr:Nl,dash:Ul,Dashv:Rl,dashv:Ml,dbkarow:Fl,dblac:Bl,Dcaron:Il,dcaron:zl,Dcy:Hl,dcy:Vl,ddagger:Gl,ddarr:Wl,DD:Jl,dd:Zl,DDotrahd:Kl,ddotseq:Xl,deg:Yl,Del:Ql,Delta:eu,delta:tu,demptyv:ru,dfisht:nu,Dfr:iu,dfr:ou,dHar:au,dharl:su,dharr:lu,DiacriticalAcute:uu,DiacriticalDot:cu,DiacriticalDoubleAcute:pu,DiacriticalGrave:fu,DiacriticalTilde:du,diam:hu,diamond:mu,Diamond:gu,diamondsuit:bu,diams:yu,die:vu,DifferentialD:wu,digamma:ku,disin:xu,div:Au,divide:_u,divideontimes:Su,divonx:Eu,DJcy:Cu,djcy:Tu,dlcorn:Du,dlcrop:Lu,dollar:Ou,Dopf:qu,dopf:ju,Dot:Pu,dot:$u,DotDot:Nu,doteq:Uu,doteqdot:Ru,DotEqual:Mu,dotminus:Fu,dotplus:Bu,dotsquare:Iu,doublebarwedge:zu,DoubleContourIntegral:Hu,DoubleDot:Vu,DoubleDownArrow:Gu,DoubleLeftArrow:Wu,DoubleLeftRightArrow:Ju,DoubleLeftTee:Zu,DoubleLongLeftArrow:Ku,DoubleLongLeftRightArrow:Xu,DoubleLongRightArrow:Yu,DoubleRightArrow:Qu,DoubleRightTee:ec,DoubleUpArrow:tc,DoubleUpDownArrow:rc,DoubleVerticalBar:nc,DownArrowBar:ic,downarrow:oc,DownArrow:ac,Downarrow:sc,DownArrowUpArrow:lc,DownBreve:uc,downdownarrows:cc,downharpoonleft:pc,downharpoonright:fc,DownLeftRightVector:dc,DownLeftTeeVector:hc,DownLeftVectorBar:mc,DownLeftVector:gc,DownRightTeeVector:bc,DownRightVectorBar:yc,DownRightVector:vc,DownTeeArrow:wc,DownTee:kc,drbkarow:xc,drcorn:Ac,drcrop:_c,Dscr:Sc,dscr:Ec,DScy:Cc,dscy:Tc,dsol:Dc,Dstrok:Lc,dstrok:Oc,dtdot:qc,dtri:jc,dtrif:Pc,duarr:$c,duhar:Nc,dwangle:Uc,DZcy:Rc,dzcy:Mc,dzigrarr:Fc,Eacute:Bc,eacute:Ic,easter:zc,Ecaron:Hc,ecaron:Vc,Ecirc:Gc,ecirc:Wc,ecir:Jc,ecolon:Zc,Ecy:Kc,ecy:Xc,eDDot:Yc,Edot:Qc,edot:ep,eDot:tp,ee:rp,efDot:np,Efr:ip,efr:op,eg:ap,Egrave:sp,egrave:lp,egs:up,egsdot:cp,el:pp,Element:fp,elinters:dp,ell:hp,els:mp,elsdot:gp,Emacr:bp,emacr:yp,empty:vp,emptyset:wp,EmptySmallSquare:kp,emptyv:xp,EmptyVerySmallSquare:Ap,emsp13:_p,emsp14:Sp,emsp:Ep,ENG:Cp,eng:Tp,ensp:Dp,Eogon:Lp,eogon:Op,Eopf:qp,eopf:jp,epar:Pp,eparsl:$p,eplus:Np,epsi:Up,Epsilon:Rp,epsilon:Mp,epsiv:Fp,eqcirc:Bp,eqcolon:Ip,eqsim:zp,eqslantgtr:Hp,eqslantless:Vp,Equal:Gp,equals:Wp,EqualTilde:Jp,equest:Zp,Equilibrium:Kp,equiv:Xp,equivDD:Yp,eqvparsl:Qp,erarr:ef,erDot:tf,escr:rf,Escr:nf,esdot:of,Esim:af,esim:sf,Eta:lf,eta:uf,ETH:cf,eth:pf,Euml:ff,euml:df,euro:hf,excl:mf,exist:gf,Exists:bf,expectation:yf,exponentiale:vf,ExponentialE:wf,fallingdotseq:kf,Fcy:xf,fcy:Af,female:_f,ffilig:Sf,fflig:Ef,ffllig:Cf,Ffr:Tf,ffr:Df,filig:Lf,FilledSmallSquare:Of,FilledVerySmallSquare:qf,fjlig:jf,flat:Pf,fllig:$f,fltns:Nf,fnof:Uf,Fopf:Rf,fopf:Mf,forall:Ff,ForAll:Bf,fork:If,forkv:zf,Fouriertrf:Hf,fpartint:Vf,frac12:Gf,frac13:Wf,frac14:Jf,frac15:Zf,frac16:Kf,frac18:Xf,frac23:Yf,frac25:Qf,frac34:ed,frac35:td,frac38:rd,frac45:nd,frac56:id,frac58:od,frac78:ad,frasl:sd,frown:ld,fscr:ud,Fscr:cd,gacute:pd,Gamma:fd,gamma:dd,Gammad:hd,gammad:md,gap:gd,Gbreve:bd,gbreve:yd,Gcedil:vd,Gcirc:wd,gcirc:kd,Gcy:xd,gcy:Ad,Gdot:_d,gdot:Sd,ge:Ed,gE:Cd,gEl:Td,gel:Dd,geq:Ld,geqq:Od,geqslant:qd,gescc:jd,ges:Pd,gesdot:$d,gesdoto:Nd,gesdotol:Ud,gesl:Rd,gesles:Md,Gfr:Fd,gfr:Bd,gg:Id,Gg:zd,ggg:Hd,gimel:Vd,GJcy:Gd,gjcy:Wd,gla:Jd,gl:Zd,glE:Kd,glj:Xd,gnap:Yd,gnapprox:Qd,gne:eh,gnE:th,gneq:rh,gneqq:nh,gnsim:ih,Gopf:oh,gopf:ah,grave:sh,GreaterEqual:lh,GreaterEqualLess:uh,GreaterFullEqual:ch,GreaterGreater:ph,GreaterLess:fh,GreaterSlantEqual:dh,GreaterTilde:hh,Gscr:mh,gscr:gh,gsim:bh,gsime:yh,gsiml:vh,gtcc:wh,gtcir:kh,gt:xh,GT:Ah,Gt:_h,gtdot:Sh,gtlPar:Eh,gtquest:Ch,gtrapprox:Th,gtrarr:Dh,gtrdot:Lh,gtreqless:Oh,gtreqqless:qh,gtrless:jh,gtrsim:Ph,gvertneqq:$h,gvnE:Nh,Hacek:Uh,hairsp:Rh,half:Mh,hamilt:Fh,HARDcy:Bh,hardcy:Ih,harrcir:zh,harr:Hh,hArr:Vh,harrw:Gh,Hat:Wh,hbar:Jh,Hcirc:Zh,hcirc:Kh,hearts:Xh,heartsuit:Yh,hellip:Qh,hercon:em,hfr:tm,Hfr:rm,HilbertSpace:nm,hksearow:im,hkswarow:om,hoarr:am,homtht:sm,hookleftarrow:lm,hookrightarrow:um,hopf:cm,Hopf:pm,horbar:fm,HorizontalLine:dm,hscr:hm,Hscr:mm,hslash:gm,Hstrok:bm,hstrok:ym,HumpDownHump:vm,HumpEqual:wm,hybull:km,hyphen:xm,Iacute:Am,iacute:_m,ic:Sm,Icirc:Em,icirc:Cm,Icy:Tm,icy:Dm,Idot:Lm,IEcy:Om,iecy:qm,iexcl:jm,iff:Pm,ifr:$m,Ifr:Nm,Igrave:Um,igrave:Rm,ii:Mm,iiiint:Fm,iiint:Bm,iinfin:Im,iiota:zm,IJlig:Hm,ijlig:Vm,Imacr:Gm,imacr:Wm,image:Jm,ImaginaryI:Zm,imagline:Km,imagpart:Xm,imath:Ym,Im:Qm,imof:eg,imped:tg,Implies:rg,incare:ng,infin:ig,infintie:og,inodot:ag,intcal:sg,int:lg,Int:ug,integers:cg,Integral:pg,intercal:fg,Intersection:dg,intlarhk:hg,intprod:mg,InvisibleComma:gg,InvisibleTimes:bg,IOcy:yg,iocy:vg,Iogon:wg,iogon:kg,Iopf:xg,iopf:Ag,Iota:_g,iota:Sg,iprod:Eg,iquest:Cg,iscr:Tg,Iscr:Dg,isin:Lg,isindot:Og,isinE:qg,isins:jg,isinsv:Pg,isinv:$g,it:Ng,Itilde:Ug,itilde:Rg,Iukcy:Mg,iukcy:Fg,Iuml:Bg,iuml:Ig,Jcirc:zg,jcirc:Hg,Jcy:Vg,jcy:Gg,Jfr:Wg,jfr:Jg,jmath:Zg,Jopf:Kg,jopf:Xg,Jscr:Yg,jscr:Qg,Jsercy:eb,jsercy:tb,Jukcy:rb,jukcy:nb,Kappa:ib,kappa:ob,kappav:ab,Kcedil:sb,kcedil:lb,Kcy:ub,kcy:cb,Kfr:pb,kfr:fb,kgreen:db,KHcy:hb,khcy:mb,KJcy:gb,kjcy:bb,Kopf:yb,kopf:vb,Kscr:wb,kscr:kb,lAarr:xb,Lacute:Ab,lacute:_b,laemptyv:Sb,lagran:Eb,Lambda:Cb,lambda:Tb,lang:Db,Lang:Lb,langd:Ob,langle:qb,lap:jb,Laplacetrf:Pb,laquo:$b,larrb:Nb,larrbfs:Ub,larr:Rb,Larr:Mb,lArr:Fb,larrfs:Bb,larrhk:Ib,larrlp:zb,larrpl:Hb,larrsim:Vb,larrtl:Gb,latail:Wb,lAtail:Jb,lat:Zb,late:Kb,lates:Xb,lbarr:Yb,lBarr:Qb,lbbrk:ey,lbrace:ty,lbrack:ry,lbrke:ny,lbrksld:iy,lbrkslu:oy,Lcaron:ay,lcaron:sy,Lcedil:ly,lcedil:uy,lceil:cy,lcub:py,Lcy:fy,lcy:dy,ldca:hy,ldquo:my,ldquor:gy,ldrdhar:by,ldrushar:yy,ldsh:vy,le:wy,lE:ky,LeftAngleBracket:xy,LeftArrowBar:Ay,leftarrow:_y,LeftArrow:Sy,Leftarrow:Ey,LeftArrowRightArrow:Cy,leftarrowtail:Ty,LeftCeiling:Dy,LeftDoubleBracket:Ly,LeftDownTeeVector:Oy,LeftDownVectorBar:qy,LeftDownVector:jy,LeftFloor:Py,leftharpoondown:$y,leftharpoonup:Ny,leftleftarrows:Uy,leftrightarrow:Ry,LeftRightArrow:My,Leftrightarrow:Fy,leftrightarrows:By,leftrightharpoons:Iy,leftrightsquigarrow:zy,LeftRightVector:Hy,LeftTeeArrow:Vy,LeftTee:Gy,LeftTeeVector:Wy,leftthreetimes:Jy,LeftTriangleBar:Zy,LeftTriangle:Ky,LeftTriangleEqual:Xy,LeftUpDownVector:Yy,LeftUpTeeVector:Qy,LeftUpVectorBar:ev,LeftUpVector:tv,LeftVectorBar:rv,LeftVector:nv,lEg:iv,leg:ov,leq:av,leqq:sv,leqslant:lv,lescc:uv,les:cv,lesdot:pv,lesdoto:fv,lesdotor:dv,lesg:hv,lesges:mv,lessapprox:gv,lessdot:bv,lesseqgtr:yv,lesseqqgtr:vv,LessEqualGreater:wv,LessFullEqual:kv,LessGreater:xv,lessgtr:Av,LessLess:_v,lesssim:Sv,LessSlantEqual:Ev,LessTilde:Cv,lfisht:Tv,lfloor:Dv,Lfr:Lv,lfr:Ov,lg:qv,lgE:jv,lHar:Pv,lhard:$v,lharu:Nv,lharul:Uv,lhblk:Rv,LJcy:Mv,ljcy:Fv,llarr:Bv,ll:Iv,Ll:zv,llcorner:Hv,Lleftarrow:Vv,llhard:Gv,lltri:Wv,Lmidot:Jv,lmidot:Zv,lmoustache:Kv,lmoust:Xv,lnap:Yv,lnapprox:Qv,lne:e0,lnE:t0,lneq:r0,lneqq:n0,lnsim:i0,loang:o0,loarr:a0,lobrk:s0,longleftarrow:l0,LongLeftArrow:u0,Longleftarrow:c0,longleftrightarrow:p0,LongLeftRightArrow:f0,Longleftrightarrow:d0,longmapsto:h0,longrightarrow:m0,LongRightArrow:g0,Longrightarrow:b0,looparrowleft:y0,looparrowright:v0,lopar:w0,Lopf:k0,lopf:x0,loplus:A0,lotimes:_0,lowast:S0,lowbar:E0,LowerLeftArrow:C0,LowerRightArrow:T0,loz:D0,lozenge:L0,lozf:O0,lpar:q0,lparlt:j0,lrarr:P0,lrcorner:$0,lrhar:N0,lrhard:U0,lrm:R0,lrtri:M0,lsaquo:F0,lscr:B0,Lscr:I0,lsh:z0,Lsh:H0,lsim:V0,lsime:G0,lsimg:W0,lsqb:J0,lsquo:Z0,lsquor:K0,Lstrok:X0,lstrok:Y0,ltcc:Q0,ltcir:e1,lt:t1,LT:r1,Lt:n1,ltdot:i1,lthree:o1,ltimes:a1,ltlarr:s1,ltquest:l1,ltri:u1,ltrie:c1,ltrif:p1,ltrPar:f1,lurdshar:d1,luruhar:h1,lvertneqq:m1,lvnE:g1,macr:b1,male:y1,malt:v1,maltese:w1,map:k1,mapsto:x1,mapstodown:A1,mapstoleft:_1,mapstoup:S1,marker:E1,mcomma:C1,Mcy:T1,mcy:D1,mdash:L1,mDDot:O1,measuredangle:q1,MediumSpace:j1,Mellintrf:P1,Mfr:$1,mfr:N1,mho:U1,micro:R1,midast:M1,midcir:F1,mid:B1,middot:I1,minusb:z1,minus:H1,minusd:V1,minusdu:G1,MinusPlus:W1,mlcp:J1,mldr:Z1,mnplus:K1,models:X1,Mopf:Y1,mopf:Q1,mp:ew,mscr:tw,Mscr:rw,mstpos:nw,Mu:iw,mu:ow,multimap:aw,mumap:sw,nabla:lw,Nacute:uw,nacute:cw,nang:pw,nap:fw,napE:dw,napid:hw,napos:mw,napprox:gw,natural:bw,naturals:yw,natur:vw,nbsp:ww,nbump:kw,nbumpe:xw,ncap:Aw,Ncaron:_w,ncaron:Sw,Ncedil:Ew,ncedil:Cw,ncong:Tw,ncongdot:Dw,ncup:Lw,Ncy:Ow,ncy:qw,ndash:jw,nearhk:Pw,nearr:$w,neArr:Nw,nearrow:Uw,ne:Rw,nedot:Mw,NegativeMediumSpace:Fw,NegativeThickSpace:Bw,NegativeThinSpace:Iw,NegativeVeryThinSpace:zw,nequiv:Hw,nesear:Vw,nesim:Gw,NestedGreaterGreater:Ww,NestedLessLess:Jw,NewLine:Zw,nexist:Kw,nexists:Xw,Nfr:Yw,nfr:Qw,ngE:ek,nge:tk,ngeq:rk,ngeqq:nk,ngeqslant:ik,nges:ok,nGg:ak,ngsim:sk,nGt:lk,ngt:uk,ngtr:ck,nGtv:pk,nharr:fk,nhArr:dk,nhpar:hk,ni:mk,nis:gk,nisd:bk,niv:yk,NJcy:vk,njcy:wk,nlarr:kk,nlArr:xk,nldr:Ak,nlE:_k,nle:Sk,nleftarrow:Ek,nLeftarrow:Ck,nleftrightarrow:Tk,nLeftrightarrow:Dk,nleq:Lk,nleqq:Ok,nleqslant:qk,nles:jk,nless:Pk,nLl:$k,nlsim:Nk,nLt:Uk,nlt:Rk,nltri:Mk,nltrie:Fk,nLtv:Bk,nmid:Ik,NoBreak:zk,NonBreakingSpace:Hk,nopf:Vk,Nopf:Gk,Not:Wk,not:Jk,NotCongruent:Zk,NotCupCap:Kk,NotDoubleVerticalBar:Xk,NotElement:Yk,NotEqual:Qk,NotEqualTilde:e2,NotExists:t2,NotGreater:r2,NotGreaterEqual:n2,NotGreaterFullEqual:i2,NotGreaterGreater:o2,NotGreaterLess:a2,NotGreaterSlantEqual:s2,NotGreaterTilde:l2,NotHumpDownHump:u2,NotHumpEqual:c2,notin:p2,notindot:f2,notinE:d2,notinva:h2,notinvb:m2,notinvc:g2,NotLeftTriangleBar:b2,NotLeftTriangle:y2,NotLeftTriangleEqual:v2,NotLess:w2,NotLessEqual:k2,NotLessGreater:x2,NotLessLess:A2,NotLessSlantEqual:_2,NotLessTilde:S2,NotNestedGreaterGreater:E2,NotNestedLessLess:C2,notni:T2,notniva:D2,notnivb:L2,notnivc:O2,NotPrecedes:q2,NotPrecedesEqual:j2,NotPrecedesSlantEqual:P2,NotReverseElement:$2,NotRightTriangleBar:N2,NotRightTriangle:U2,NotRightTriangleEqual:R2,NotSquareSubset:M2,NotSquareSubsetEqual:F2,NotSquareSuperset:B2,NotSquareSupersetEqual:I2,NotSubset:z2,NotSubsetEqual:H2,NotSucceeds:V2,NotSucceedsEqual:G2,NotSucceedsSlantEqual:W2,NotSucceedsTilde:J2,NotSuperset:Z2,NotSupersetEqual:K2,NotTilde:X2,NotTildeEqual:Y2,NotTildeFullEqual:Q2,NotTildeTilde:ex,NotVerticalBar:tx,nparallel:rx,npar:nx,nparsl:ix,npart:ox,npolint:ax,npr:sx,nprcue:lx,nprec:ux,npreceq:cx,npre:px,nrarrc:fx,nrarr:dx,nrArr:hx,nrarrw:mx,nrightarrow:gx,nRightarrow:bx,nrtri:yx,nrtrie:vx,nsc:wx,nsccue:kx,nsce:xx,Nscr:Ax,nscr:_x,nshortmid:Sx,nshortparallel:Ex,nsim:Cx,nsime:Tx,nsimeq:Dx,nsmid:Lx,nspar:Ox,nsqsube:qx,nsqsupe:jx,nsub:Px,nsubE:$x,nsube:Nx,nsubset:Ux,nsubseteq:Rx,nsubseteqq:Mx,nsucc:Fx,nsucceq:Bx,nsup:Ix,nsupE:zx,nsupe:Hx,nsupset:Vx,nsupseteq:Gx,nsupseteqq:Wx,ntgl:Jx,Ntilde:Zx,ntilde:Kx,ntlg:Xx,ntriangleleft:Yx,ntrianglelefteq:Qx,ntriangleright:e4,ntrianglerighteq:t4,Nu:r4,nu:n4,num:i4,numero:o4,numsp:a4,nvap:s4,nvdash:l4,nvDash:u4,nVdash:c4,nVDash:p4,nvge:f4,nvgt:d4,nvHarr:h4,nvinfin:m4,nvlArr:g4,nvle:b4,nvlt:y4,nvltrie:v4,nvrArr:w4,nvrtrie:k4,nvsim:x4,nwarhk:A4,nwarr:_4,nwArr:S4,nwarrow:E4,nwnear:C4,Oacute:T4,oacute:D4,oast:L4,Ocirc:O4,ocirc:q4,ocir:j4,Ocy:P4,ocy:$4,odash:N4,Odblac:U4,odblac:R4,odiv:M4,odot:F4,odsold:B4,OElig:I4,oelig:z4,ofcir:H4,Ofr:V4,ofr:G4,ogon:W4,Ograve:J4,ograve:Z4,ogt:K4,ohbar:X4,ohm:Y4,oint:Q4,olarr:eA,olcir:tA,olcross:rA,oline:nA,olt:iA,Omacr:oA,omacr:aA,Omega:sA,omega:lA,Omicron:uA,omicron:cA,omid:pA,ominus:fA,Oopf:dA,oopf:hA,opar:mA,OpenCurlyDoubleQuote:gA,OpenCurlyQuote:bA,operp:yA,oplus:vA,orarr:wA,Or:kA,or:xA,ord:AA,order:_A,orderof:SA,ordf:EA,ordm:CA,origof:TA,oror:DA,orslope:LA,orv:OA,oS:qA,Oscr:jA,oscr:PA,Oslash:$A,oslash:NA,osol:UA,Otilde:RA,otilde:MA,otimesas:FA,Otimes:BA,otimes:IA,Ouml:zA,ouml:HA,ovbar:VA,OverBar:GA,OverBrace:WA,OverBracket:JA,OverParenthesis:ZA,para:KA,parallel:XA,par:YA,parsim:QA,parsl:e_,part:t_,PartialD:r_,Pcy:n_,pcy:i_,percnt:o_,period:a_,permil:s_,perp:l_,pertenk:u_,Pfr:c_,pfr:p_,Phi:f_,phi:d_,phiv:h_,phmmat:m_,phone:g_,Pi:b_,pi:y_,pitchfork:v_,piv:w_,planck:k_,planckh:x_,plankv:A_,plusacir:__,plusb:S_,pluscir:E_,plus:C_,plusdo:T_,plusdu:D_,pluse:L_,PlusMinus:O_,plusmn:q_,plussim:j_,plustwo:P_,pm:$_,Poincareplane:N_,pointint:U_,popf:R_,Popf:M_,pound:F_,prap:B_,Pr:I_,pr:z_,prcue:H_,precapprox:V_,prec:G_,preccurlyeq:W_,Precedes:J_,PrecedesEqual:Z_,PrecedesSlantEqual:K_,PrecedesTilde:X_,preceq:Y_,precnapprox:Q_,precneqq:eS,precnsim:tS,pre:rS,prE:nS,precsim:iS,prime:oS,Prime:aS,primes:sS,prnap:lS,prnE:uS,prnsim:cS,prod:pS,Product:fS,profalar:dS,profline:hS,profsurf:mS,prop:gS,Proportional:bS,Proportion:yS,propto:vS,prsim:wS,prurel:kS,Pscr:xS,pscr:AS,Psi:_S,psi:SS,puncsp:ES,Qfr:CS,qfr:TS,qint:DS,qopf:LS,Qopf:OS,qprime:qS,Qscr:jS,qscr:PS,quaternions:$S,quatint:NS,quest:US,questeq:RS,quot:MS,QUOT:FS,rAarr:BS,race:IS,Racute:zS,racute:HS,radic:VS,raemptyv:GS,rang:WS,Rang:JS,rangd:ZS,range:KS,rangle:XS,raquo:YS,rarrap:QS,rarrb:e5,rarrbfs:t5,rarrc:r5,rarr:n5,Rarr:i5,rArr:o5,rarrfs:a5,rarrhk:s5,rarrlp:l5,rarrpl:u5,rarrsim:c5,Rarrtl:p5,rarrtl:f5,rarrw:d5,ratail:h5,rAtail:m5,ratio:g5,rationals:b5,rbarr:y5,rBarr:v5,RBarr:w5,rbbrk:k5,rbrace:x5,rbrack:A5,rbrke:_5,rbrksld:S5,rbrkslu:E5,Rcaron:C5,rcaron:T5,Rcedil:D5,rcedil:L5,rceil:O5,rcub:q5,Rcy:j5,rcy:P5,rdca:$5,rdldhar:N5,rdquo:U5,rdquor:R5,rdsh:M5,real:F5,realine:B5,realpart:I5,reals:z5,Re:H5,rect:V5,reg:G5,REG:W5,ReverseElement:J5,ReverseEquilibrium:Z5,ReverseUpEquilibrium:K5,rfisht:X5,rfloor:Y5,rfr:Q5,Rfr:eE,rHar:tE,rhard:rE,rharu:nE,rharul:iE,Rho:oE,rho:aE,rhov:sE,RightAngleBracket:lE,RightArrowBar:uE,rightarrow:cE,RightArrow:pE,Rightarrow:fE,RightArrowLeftArrow:dE,rightarrowtail:hE,RightCeiling:mE,RightDoubleBracket:gE,RightDownTeeVector:bE,RightDownVectorBar:yE,RightDownVector:vE,RightFloor:wE,rightharpoondown:kE,rightharpoonup:xE,rightleftarrows:AE,rightleftharpoons:_E,rightrightarrows:SE,rightsquigarrow:EE,RightTeeArrow:CE,RightTee:TE,RightTeeVector:DE,rightthreetimes:LE,RightTriangleBar:OE,RightTriangle:qE,RightTriangleEqual:jE,RightUpDownVector:PE,RightUpTeeVector:$E,RightUpVectorBar:NE,RightUpVector:UE,RightVectorBar:RE,RightVector:ME,ring:FE,risingdotseq:BE,rlarr:IE,rlhar:zE,rlm:HE,rmoustache:VE,rmoust:GE,rnmid:WE,roang:JE,roarr:ZE,robrk:KE,ropar:XE,ropf:YE,Ropf:QE,roplus:eC,rotimes:tC,RoundImplies:rC,rpar:nC,rpargt:iC,rppolint:oC,rrarr:aC,Rrightarrow:sC,rsaquo:lC,rscr:uC,Rscr:cC,rsh:pC,Rsh:fC,rsqb:dC,rsquo:hC,rsquor:mC,rthree:gC,rtimes:bC,rtri:yC,rtrie:vC,rtrif:wC,rtriltri:kC,RuleDelayed:xC,ruluhar:AC,rx:_C,Sacute:SC,sacute:EC,sbquo:CC,scap:TC,Scaron:DC,scaron:LC,Sc:OC,sc:qC,sccue:jC,sce:PC,scE:$C,Scedil:NC,scedil:UC,Scirc:RC,scirc:MC,scnap:FC,scnE:BC,scnsim:IC,scpolint:zC,scsim:HC,Scy:VC,scy:GC,sdotb:WC,sdot:JC,sdote:ZC,searhk:KC,searr:XC,seArr:YC,searrow:QC,sect:eT,semi:tT,seswar:rT,setminus:nT,setmn:iT,sext:oT,Sfr:aT,sfr:sT,sfrown:lT,sharp:uT,SHCHcy:cT,shchcy:pT,SHcy:fT,shcy:dT,ShortDownArrow:hT,ShortLeftArrow:mT,shortmid:gT,shortparallel:bT,ShortRightArrow:yT,ShortUpArrow:vT,shy:wT,Sigma:kT,sigma:xT,sigmaf:AT,sigmav:_T,sim:ST,simdot:ET,sime:CT,simeq:TT,simg:DT,simgE:LT,siml:OT,simlE:qT,simne:jT,simplus:PT,simrarr:$T,slarr:NT,SmallCircle:UT,smallsetminus:RT,smashp:MT,smeparsl:FT,smid:BT,smile:IT,smt:zT,smte:HT,smtes:VT,SOFTcy:GT,softcy:WT,solbar:JT,solb:ZT,sol:KT,Sopf:XT,sopf:YT,spades:QT,spadesuit:e6,spar:t6,sqcap:r6,sqcaps:n6,sqcup:i6,sqcups:o6,Sqrt:a6,sqsub:s6,sqsube:l6,sqsubset:u6,sqsubseteq:c6,sqsup:p6,sqsupe:f6,sqsupset:d6,sqsupseteq:h6,square:m6,Square:g6,SquareIntersection:b6,SquareSubset:y6,SquareSubsetEqual:v6,SquareSuperset:w6,SquareSupersetEqual:k6,SquareUnion:x6,squarf:A6,squ:_6,squf:S6,srarr:E6,Sscr:C6,sscr:T6,ssetmn:D6,ssmile:L6,sstarf:O6,Star:q6,star:j6,starf:P6,straightepsilon:$6,straightphi:N6,strns:U6,sub:R6,Sub:M6,subdot:F6,subE:B6,sube:I6,subedot:z6,submult:H6,subnE:V6,subne:G6,subplus:W6,subrarr:J6,subset:Z6,Subset:K6,subseteq:X6,subseteqq:Y6,SubsetEqual:Q6,subsetneq:eD,subsetneqq:tD,subsim:rD,subsub:nD,subsup:iD,succapprox:oD,succ:aD,succcurlyeq:sD,Succeeds:lD,SucceedsEqual:uD,SucceedsSlantEqual:cD,SucceedsTilde:pD,succeq:fD,succnapprox:dD,succneqq:hD,succnsim:mD,succsim:gD,SuchThat:bD,sum:yD,Sum:vD,sung:wD,sup1:kD,sup2:xD,sup3:AD,sup:_D,Sup:SD,supdot:ED,supdsub:CD,supE:TD,supe:DD,supedot:LD,Superset:OD,SupersetEqual:qD,suphsol:jD,suphsub:PD,suplarr:$D,supmult:ND,supnE:UD,supne:RD,supplus:MD,supset:FD,Supset:BD,supseteq:ID,supseteqq:zD,supsetneq:HD,supsetneqq:VD,supsim:GD,supsub:WD,supsup:JD,swarhk:ZD,swarr:KD,swArr:XD,swarrow:YD,swnwar:QD,szlig:eL,Tab:tL,target:rL,Tau:nL,tau:iL,tbrk:oL,Tcaron:aL,tcaron:sL,Tcedil:lL,tcedil:uL,Tcy:cL,tcy:pL,tdot:fL,telrec:dL,Tfr:hL,tfr:mL,there4:gL,therefore:bL,Therefore:yL,Theta:vL,theta:wL,thetasym:kL,thetav:xL,thickapprox:AL,thicksim:_L,ThickSpace:SL,ThinSpace:EL,thinsp:CL,thkap:TL,thksim:DL,THORN:LL,thorn:OL,tilde:qL,Tilde:jL,TildeEqual:PL,TildeFullEqual:$L,TildeTilde:NL,timesbar:UL,timesb:RL,times:ML,timesd:FL,tint:BL,toea:IL,topbot:zL,topcir:HL,top:VL,Topf:GL,topf:WL,topfork:JL,tosa:ZL,tprime:KL,trade:XL,TRADE:YL,triangle:QL,triangledown:eO,triangleleft:tO,trianglelefteq:rO,triangleq:nO,triangleright:iO,trianglerighteq:oO,tridot:aO,trie:sO,triminus:lO,TripleDot:uO,triplus:cO,trisb:pO,tritime:fO,trpezium:dO,Tscr:hO,tscr:mO,TScy:gO,tscy:bO,TSHcy:yO,tshcy:vO,Tstrok:wO,tstrok:kO,twixt:xO,twoheadleftarrow:AO,twoheadrightarrow:_O,Uacute:SO,uacute:EO,uarr:CO,Uarr:TO,uArr:DO,Uarrocir:LO,Ubrcy:OO,ubrcy:qO,Ubreve:jO,ubreve:PO,Ucirc:$O,ucirc:NO,Ucy:UO,ucy:RO,udarr:MO,Udblac:FO,udblac:BO,udhar:IO,ufisht:zO,Ufr:HO,ufr:VO,Ugrave:GO,ugrave:WO,uHar:JO,uharl:ZO,uharr:KO,uhblk:XO,ulcorn:YO,ulcorner:QO,ulcrop:e3,ultri:t3,Umacr:r3,umacr:n3,uml:i3,UnderBar:o3,UnderBrace:a3,UnderBracket:s3,UnderParenthesis:l3,Union:u3,UnionPlus:c3,Uogon:p3,uogon:f3,Uopf:d3,uopf:h3,UpArrowBar:m3,uparrow:g3,UpArrow:b3,Uparrow:y3,UpArrowDownArrow:v3,updownarrow:w3,UpDownArrow:k3,Updownarrow:x3,UpEquilibrium:A3,upharpoonleft:_3,upharpoonright:S3,uplus:E3,UpperLeftArrow:C3,UpperRightArrow:T3,upsi:D3,Upsi:L3,upsih:O3,Upsilon:q3,upsilon:j3,UpTeeArrow:P3,UpTee:$3,upuparrows:N3,urcorn:U3,urcorner:R3,urcrop:M3,Uring:F3,uring:B3,urtri:I3,Uscr:z3,uscr:H3,utdot:V3,Utilde:G3,utilde:W3,utri:J3,utrif:Z3,uuarr:K3,Uuml:X3,uuml:Y3,uwangle:Q3,vangrt:e8,varepsilon:t8,varkappa:r8,varnothing:n8,varphi:i8,varpi:o8,varpropto:a8,varr:s8,vArr:l8,varrho:u8,varsigma:c8,varsubsetneq:p8,varsubsetneqq:f8,varsupsetneq:d8,varsupsetneqq:h8,vartheta:m8,vartriangleleft:g8,vartriangleright:b8,vBar:y8,Vbar:v8,vBarv:w8,Vcy:k8,vcy:x8,vdash:A8,vDash:_8,Vdash:S8,VDash:E8,Vdashl:C8,veebar:T8,vee:D8,Vee:L8,veeeq:O8,vellip:q8,verbar:j8,Verbar:P8,vert:$8,Vert:N8,VerticalBar:U8,VerticalLine:R8,VerticalSeparator:M8,VerticalTilde:F8,VeryThinSpace:B8,Vfr:I8,vfr:z8,vltri:H8,vnsub:V8,vnsup:G8,Vopf:W8,vopf:J8,vprop:Z8,vrtri:K8,Vscr:X8,vscr:Y8,vsubnE:Q8,vsubne:eq,vsupnE:tq,vsupne:rq,Vvdash:nq,vzigzag:iq,Wcirc:oq,wcirc:aq,wedbar:sq,wedge:lq,Wedge:uq,wedgeq:cq,weierp:pq,Wfr:fq,wfr:dq,Wopf:hq,wopf:mq,wp:gq,wr:bq,wreath:yq,Wscr:vq,wscr:wq,xcap:kq,xcirc:xq,xcup:Aq,xdtri:_q,Xfr:Sq,xfr:Eq,xharr:Cq,xhArr:Tq,Xi:Dq,xi:Lq,xlarr:Oq,xlArr:qq,xmap:jq,xnis:Pq,xodot:$q,Xopf:Nq,xopf:Uq,xoplus:Rq,xotime:Mq,xrarr:Fq,xrArr:Bq,Xscr:Iq,xscr:zq,xsqcup:Hq,xuplus:Vq,xutri:Gq,xvee:Wq,xwedge:Jq,Yacute:Zq,yacute:Kq,YAcy:Xq,yacy:Yq,Ycirc:Qq,ycirc:ej,Ycy:tj,ycy:rj,yen:nj,Yfr:ij,yfr:oj,YIcy:aj,yicy:sj,Yopf:lj,yopf:uj,Yscr:cj,yscr:pj,YUcy:fj,yucy:dj,yuml:hj,Yuml:mj,Zacute:gj,zacute:bj,Zcaron:yj,zcaron:vj,Zcy:wj,zcy:kj,Zdot:xj,zdot:Aj,zeetrf:_j,ZeroWidthSpace:Sj,Zeta:Ej,zeta:Cj,zfr:Tj,Zfr:Dj,ZHcy:Lj,zhcy:Oj,zigrarr:qj,zopf:jj,Zopf:Pj,Zscr:$j,zscr:Nj,zwj:Uj,zwnj:Rj,default:HR}),Mj="Á",Fj="á",Bj="Â",Ij="â",zj="´",Hj="Æ",Vj="æ",Gj="À",Wj="à",Jj="&",Zj="&",Kj="Å",Xj="å",Yj="Ã",Qj="ã",eP="Ä",tP="ä",rP="¦",nP="Ç",iP="ç",oP="¸",aP="¢",sP="©",lP="©",uP="¤",cP="°",pP="÷",fP="É",dP="é",hP="Ê",mP="ê",gP="È",bP="è",yP="Ð",vP="ð",wP="Ë",kP="ë",xP="½",AP="¼",_P="¾",SP=">",EP=">",CP="Í",TP="í",DP="Î",LP="î",OP="¡",qP="Ì",jP="ì",PP="¿",$P="Ï",NP="ï",UP="«",RP="<",MP="<",FP="¯",BP="µ",IP="·",zP=" ",HP="¬",VP="Ñ",GP="ñ",WP="Ó",JP="ó",ZP="Ô",KP="ô",XP="Ò",YP="ò",QP="ª",e$="º",t$="Ø",r$="ø",n$="Õ",i$="õ",o$="Ö",a$="ö",s$="¶",l$="±",u$="£",c$='"',p$='"',f$="»",d$="®",h$="®",m$="§",g$="­",b$="¹",y$="²",v$="³",w$="ß",k$="Þ",x$="þ",A$="×",_$="Ú",S$="ú",E$="Û",C$="û",T$="Ù",D$="ù",L$="¨",O$="Ü",q$="ü",j$="Ý",P$="ý",$$="¥",N$="ÿ",GR={Aacute:Mj,aacute:Fj,Acirc:Bj,acirc:Ij,acute:zj,AElig:Hj,aelig:Vj,Agrave:Gj,agrave:Wj,amp:Jj,AMP:Zj,Aring:Kj,aring:Xj,Atilde:Yj,atilde:Qj,Auml:eP,auml:tP,brvbar:rP,Ccedil:nP,ccedil:iP,cedil:oP,cent:aP,copy:sP,COPY:lP,curren:uP,deg:cP,divide:pP,Eacute:fP,eacute:dP,Ecirc:hP,ecirc:mP,Egrave:gP,egrave:bP,ETH:yP,eth:vP,Euml:wP,euml:kP,frac12:xP,frac14:AP,frac34:_P,gt:SP,GT:EP,Iacute:CP,iacute:TP,Icirc:DP,icirc:LP,iexcl:OP,Igrave:qP,igrave:jP,iquest:PP,Iuml:$P,iuml:NP,laquo:UP,lt:RP,LT:MP,macr:FP,micro:BP,middot:IP,nbsp:zP,not:HP,Ntilde:VP,ntilde:GP,Oacute:WP,oacute:JP,Ocirc:ZP,ocirc:KP,Ograve:XP,ograve:YP,ordf:QP,ordm:e$,Oslash:t$,oslash:r$,Otilde:n$,otilde:i$,Ouml:o$,ouml:a$,para:s$,plusmn:l$,pound:u$,quot:c$,QUOT:p$,raquo:f$,reg:d$,REG:h$,sect:m$,shy:g$,sup1:b$,sup2:y$,sup3:v$,szlig:w$,THORN:k$,thorn:x$,times:A$,Uacute:_$,uacute:S$,Ucirc:E$,ucirc:C$,Ugrave:T$,ugrave:D$,uml:L$,Uuml:O$,uuml:q$,Yacute:j$,yacute:P$,yen:$$,yuml:N$},WR=Object.freeze({__proto__:null,Aacute:Mj,aacute:Fj,Acirc:Bj,acirc:Ij,acute:zj,AElig:Hj,aelig:Vj,Agrave:Gj,agrave:Wj,amp:Jj,AMP:Zj,Aring:Kj,aring:Xj,Atilde:Yj,atilde:Qj,Auml:eP,auml:tP,brvbar:rP,Ccedil:nP,ccedil:iP,cedil:oP,cent:aP,copy:sP,COPY:lP,curren:uP,deg:cP,divide:pP,Eacute:fP,eacute:dP,Ecirc:hP,ecirc:mP,Egrave:gP,egrave:bP,ETH:yP,eth:vP,Euml:wP,euml:kP,frac12:xP,frac14:AP,frac34:_P,gt:SP,GT:EP,Iacute:CP,iacute:TP,Icirc:DP,icirc:LP,iexcl:OP,Igrave:qP,igrave:jP,iquest:PP,Iuml:$P,iuml:NP,laquo:UP,lt:RP,LT:MP,macr:FP,micro:BP,middot:IP,nbsp:zP,not:HP,Ntilde:VP,ntilde:GP,Oacute:WP,oacute:JP,Ocirc:ZP,ocirc:KP,Ograve:XP,ograve:YP,ordf:QP,ordm:e$,Oslash:t$,oslash:r$,Otilde:n$,otilde:i$,Ouml:o$,ouml:a$,para:s$,plusmn:l$,pound:u$,quot:c$,QUOT:p$,raquo:f$,reg:d$,REG:h$,sect:m$,shy:g$,sup1:b$,sup2:y$,sup3:v$,szlig:w$,THORN:k$,thorn:x$,times:A$,Uacute:_$,uacute:S$,Ucirc:E$,ucirc:C$,Ugrave:T$,ugrave:D$,uml:L$,Uuml:O$,uuml:q$,Yacute:j$,yacute:P$,yen:$$,yuml:N$,default:GR}),U$="&",R$="'",M$=">",F$="<",B$='"',JR={amp:U$,apos:R$,gt:M$,lt:F$,quot:B$},ZR=Object.freeze({__proto__:null,amp:U$,apos:R$,gt:M$,lt:F$,quot:B$,default:JR}),KR={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},XR=Object.freeze({__proto__:null,default:KR}),YR=y(XR),I$=_(function(n,l){var p=C&&C.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(l,"__esModule",{value:!0});var f=p(YR);function A(w){if(w>=55296&&w<=57343||w>1114111)return"�";w in f.default&&(w=f.default[w]);var $="";return w>65535&&(w-=65536,$+=String.fromCharCode(w>>>10&1023|55296),w=56320|w&1023),$+=String.fromCharCode(w),$}l.default=A});x(I$);var z$=y(VR),QR=y(WR),H$=y(ZR),Te=_(function(n,l){var p=C&&C.__importDefault||function(J){return J&&J.__esModule?J:{default:J}};Object.defineProperty(l,"__esModule",{value:!0});var f=p(z$),A=p(QR),w=p(H$),$=p(I$);l.decodeXML=j(w.default),l.decodeHTMLStrict=j(f.default);function j(J){var z=Object.keys(J).join("|"),ne=K(J);z+="|#[xX][\\da-fA-F]+|#\\d+";var X=new RegExp("&(?:"+z+");","g");return function(pe){return String(pe).replace(X,ne)}}var R=function(J,z){return J`\\x00-\\x20]+",nM="'[^']*'",iM='"[^"]*"',oM="(?:"+rM+"|"+nM+"|"+iM+")",aM="(?:\\s*=\\s*"+oM+")",sM="(?:\\s+"+tM+aM+"?)",J$="<"+W$+sM+"*\\s*/?>",Z$="]",lM="|",uM="[<][?][\\s\\S]*?[?][>]",cM="]*>",pM="",fM="(?:"+J$+"|"+Z$+"|"+lM+"|"+uM+"|"+cM+"|"+pM+")",dM=new RegExp("^"+fM),hM=/[\\&]/,K$="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",mM=new RegExp("\\\\"+K$+"|"+G$,"gi"),gM='[&<>"]',X$=new RegExp(gM,"g"),bM=function(n){return n.charCodeAt(0)===eM?n.charAt(1):V$(n)},Y$=function(n){return hM.test(n)?n.replace(mM,bM):n},yM=function(n){try{return D(n)}catch{return n}},vM=function(n){switch(n){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return n}},Q$=function(n){return X$.test(n)?n.replace(X$,vM):n};/*! http://mths.be/fromcodepoint v0.2.1 by @mathias */var Jt;function Zt(n){return Jt(n)}if(String.fromCodePoint)Jt=function(n){try{return String.fromCodePoint(n)}catch(l){if(l instanceof RangeError)return"�";throw l}};else{var wM=String.fromCharCode,kM=Math.floor;Jt=function(){var n=16384,l=[],p,f,A=-1,w=arguments.length;if(!w)return"";for(var $="";++A1114111||kM(j)!==j)return"�";j<=65535?l.push(j):(j-=65536,p=(j>>10)+55296,f=j%1024+56320,l.push(p,f)),(A+1===w||l.length>n)&&($+=wM.apply(null,l),l.length=0)}return $}}/*! http://mths.be/repeat v0.2.0 by @mathias */String.prototype.repeat||function(){var n=function(){try{var p={},f=Object.defineProperty,A=f(p,p,p)&&f}catch{}return A}(),l=function(p){if(this==null)throw TypeError();var f=String(this),A=p?Number(p):0;if(A!=A&&(A=0),A<0||A==1/0)throw RangeError();for(var w="";A;)A%2==1&&(w+=f),A>1&&(f+=f),A>>=1;return w};n?n(String.prototype,"repeat",{value:l,configurable:!0,writable:!0}):String.prototype.repeat=l}();var Dt=yM,Kt=Y$,eN=10,Xt=42,Lt=95,xM=96,tN=91,AM=93,rN=60,_M=33,nN=92,SM=38,iN=40,Yt=41,EM=58,Ue=39,Re=34,oN=K$,Qt="\\\\"+oN,CM=G$,TM=dM,aN=new RegExp(/[!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),DM=new RegExp('^(?:"('+Qt+`|[^"\\x00])*"|'(`+Qt+"|[^'\\x00])*'|\\(("+Qt+"|[^()\\x00])*\\))"),LM=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,sN=new RegExp("^"+oN),OM=new RegExp("^"+CM,"i"),qM=/`+/,jM=/^`+/,PM=/\.\.\./g,$M=/--+/g,NM=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,UM=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,RM=/^ *(?:\n *)?/,lN=/^[ \t\n\x0b\x0c\x0d]/,uN=/^\s/,MM=/ *$/,FM=/^ */,cN=/^ *(?:\n|$)/,BM=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,IM=/^[^\n`\[\]\\!<&*_'"]+/m,ye=function(n){var l=new u("text");return l._literal=n,l},pN=function(n){return n.slice(1,n.length-1).trim().replace(/[ \t\r\n]+/," ").toLowerCase().toUpperCase()},zM=function(n){var l=n.exec(this.subject.slice(this.pos));return l===null?null:(this.pos+=l.index+l[0].length,l[0])},HM=function(){return this.pos0&&w.match(/[^ ]/)!==null&&w[0]==" "&&w[w.length-1]==" "?A._literal=w.slice(1,w.length-1):A._literal=w,n.appendChild(A),!0;return this.pos=p,n.appendChild(ye(l)),!0},WM=function(n){var l=this.subject,p;return this.pos+=1,this.peek()===eN?(this.pos+=1,p=new u("linebreak"),n.appendChild(p)):sN.test(l.charAt(this.pos))?(n.appendChild(ye(l.charAt(this.pos))),this.pos+=1):n.appendChild(ye("\\")),!0},JM=function(n){var l,p,f;return(l=this.match(NM))?(p=l.slice(1,l.length-1),f=new u("link"),f._destination=Dt("mailto:"+p),f._title="",f.appendChild(ye(p)),n.appendChild(f),!0):(l=this.match(UM))?(p=l.slice(1,l.length-1),f=new u("link"),f._destination=Dt(p),f._title="",f.appendChild(ye(p)),n.appendChild(f),!0):!1},ZM=function(n){var l=this.match(TM);if(l===null)return!1;var p=new u("html_inline");return p._literal=l,n.appendChild(p),!0},KM=function(n){var l=0,p,f,A,w=this.pos,$,j,R,K,J,z,ne,X;if(n===Ue||n===Re)l++,this.pos++;else for(;this.peek()===n;)l++,this.pos++;return l===0?null:(p=w===0?` -`:this.subject.charAt(w-1),A=this.peek(),A===-1?f=` -`:f=Zt(A),J=uN.test(f),z=aN.test(f),ne=uN.test(p),X=aN.test(p),$=!J&&(!z||ne||X),j=!ne&&(!X||J||z),n===Lt?(R=$&&(!j||X),K=j&&(!$||z)):n===Ue||n===Re?(R=$&&!j,K=j):(R=$,K=j),this.pos=w,{numdelims:l,can_open:R,can_close:K})},XM=function(n,l){var p=this.scanDelims(n);if(!p)return!1;var f=p.numdelims,A=this.pos,w;this.pos+=f,n===Ue?w="’":n===Re?w="“":w=this.subject.slice(A,this.pos);var $=ye(w);return l.appendChild($),(p.can_open||p.can_close)&&(this.options.smart||n!==Ue&&n!==Re)&&(this.delimiters={cc:n,numdelims:f,origdelims:f,node:$,previous:this.delimiters,next:null,can_open:p.can_open,can_close:p.can_close},this.delimiters.previous!==null&&(this.delimiters.previous.next=this.delimiters)),!0},YM=function(n){n.previous!==null&&(n.previous.next=n.next),n.next===null?this.delimiters=n.previous:n.next.previous=n.previous},QM=function(n,l){n.next!==l&&(n.next=l,l.previous=n)},eF=function(n){for(var l,p,f,A,w,$,j,R,K,J,z=[[],[],[]],ne=!1,X=0;X<3;X++)z[X][Lt]=n,z[X][Xt]=n,z[X][Ue]=n,z[X][Re]=n;for(p=this.delimiters;p!==null&&p.previous!==n;)p=p.previous;for(;p!==null;){var pe=p.cc;if(!p.can_close)p=p.next;else{for(l=p.previous,J=!1;l!==null&&l!==n&&l!==z[p.origdelims%3][pe];){if(ne=(p.can_open||l.can_close)&&p.origdelims%3!==0&&(l.origdelims+p.origdelims)%3===0,l.cc===p.cc&&l.can_open&&!ne){J=!0;break}l=l.previous}if(f=p,pe===Xt||pe===Lt)if(!J)p=p.next;else{j=p.numdelims>=2&&l.numdelims>=2?2:1,A=l.node,w=p.node,l.numdelims-=j,p.numdelims-=j,A._literal=A._literal.slice(0,A._literal.length-j),w._literal=w._literal.slice(0,w._literal.length-j);var Fe=new u(j===1?"emph":"strong");for(R=A._next;R&&R!==w;)K=R._next,R.unlink(),Fe.appendChild(R),R=K;A.insertAfter(Fe),QM(l,p),l.numdelims===0&&(A.unlink(),this.removeDelimiter(l)),p.numdelims===0&&(w.unlink(),$=p.next,this.removeDelimiter(p),p=$)}else pe===Ue?(p.node._literal="’",J&&(l.node._literal="‘"),p=p.next):pe===Re&&(p.node._literal="”",J&&(l.node.literal="“"),p=p.next);J||(z[f.origdelims%3][pe]=f.previous,f.can_open||this.removeDelimiter(f))}}for(;this.delimiters!==null&&this.delimiters!==n;)this.removeDelimiter(this.delimiters)},tF=function(){var n=this.match(DM);return n===null?null:Kt(n.substr(1,n.length-2))},rF=function(){var n=this.match(LM);if(n===null){if(this.peek()===rN)return null;for(var l=this.pos,p=0,f;(f=this.peek())!==-1;)if(f===nN&&sN.test(this.subject.charAt(this.pos+1)))this.pos+=1,this.peek()!==-1&&(this.pos+=1);else if(f===iN)this.pos+=1,p+=1;else if(f===Yt){if(p<1)break;this.pos+=1,p-=1}else{if(lN.exec(Zt(f))!==null)break;this.pos+=1}return this.pos===l&&f!==Yt||p!==0?null:(n=this.subject.substr(l,this.pos-l),Dt(Kt(n)))}else return Dt(Kt(n.substr(1,n.length-2)))},nF=function(){var n=this.match(BM);return n===null||n.length>1001?0:n.length},iF=function(n){var l=this.pos;this.pos+=1;var p=ye("[");return n.appendChild(p),this.addBracket(p,l,!1),!0},oF=function(n){var l=this.pos;if(this.pos+=1,this.peek()===tN){this.pos+=1;var p=ye("![");n.appendChild(p),this.addBracket(p,l+1,!0)}else n.appendChild(ye("!"));return!0},aF=function(n){var l,p,f,A,w=!1,$,j;if(this.pos+=1,l=this.pos,j=this.brackets,j===null)return n.appendChild(ye("]")),!0;if(!j.active)return n.appendChild(ye("]")),this.removeBracket(),!0;p=j.image;var R=this.pos;if(this.peek()===iN&&(this.pos++,this.spnl()&&(f=this.parseLinkDestination())!==null&&this.spnl()&&(lN.test(this.subject.charAt(this.pos-1))&&(A=this.parseLinkTitle())||!0)&&this.spnl()&&this.peek()===Yt?(this.pos+=1,w=!0):this.pos=R),!w){var K=this.pos,J=this.parseLinkLabel();if(J>2?$=this.subject.slice(K,K+J):j.bracketAfter||($=this.subject.slice(j.index,l)),J===0&&(this.pos=R),$){var z=this.refmap[pN($)];z&&(f=z.destination,A=z.title,w=!0)}}if(w){var ne=new u(p?"image":"link");ne._destination=f,ne._title=A||"";var X,pe;for(X=j.node._next;X;)pe=X._next,X.unlink(),ne.appendChild(X),X=pe;if(n.appendChild(ne),this.processEmphasis(j.previousDelimiter),this.removeBracket(),j.node.unlink(),!p)for(j=this.brackets;j!==null;)j.image||(j.active=!1),j=j.previous;return!0}else return this.removeBracket(),this.pos=l,n.appendChild(ye("]")),!0},sF=function(n,l,p){this.brackets!==null&&(this.brackets.bracketAfter=!0),this.brackets={node:n,previous:this.brackets,previousDelimiter:this.delimiters,index:l,image:p,active:!0}},lF=function(){this.brackets=this.brackets.previous},uF=function(n){var l;return(l=this.match(OM))?(n.appendChild(ye(V$(l))),!0):!1},cF=function(n){var l;return(l=this.match(IM))?(this.options.smart?n.appendChild(ye(l.replace(PM,"…").replace($M,function(p){var f=0,A=0;return p.length%3===0?A=p.length/3:p.length%2===0?f=p.length/2:p.length%3===2?(f=1,A=(p.length-2)/3):(f=2,A=(p.length-4)/3),"—".repeat(A)+"–".repeat(f)}))):n.appendChild(ye(l)),!0):!1},pF=function(n){this.pos+=1;var l=n._lastChild;if(l&&l.type==="text"&&l._literal[l._literal.length-1]===" "){var p=l._literal[l._literal.length-2]===" ";l._literal=l._literal.replace(MM,""),n.appendChild(new u(p?"linebreak":"softbreak"))}else n.appendChild(new u("softbreak"));return this.match(FM),!0},fF=function(n,l){this.subject=n,this.pos=0;var p,f,A,w,$=this.pos;if(w=this.parseLinkLabel(),w===0)return 0;if(p=this.subject.substr(0,w),this.peek()===EM)this.pos++;else return this.pos=$,0;if(this.spnl(),f=this.parseLinkDestination(),f===null)return this.pos=$,0;var j=this.pos;this.spnl(),this.pos!==j&&(A=this.parseLinkTitle()),A===null&&(A="",this.pos=j);var R=!0;if(this.match(cN)===null&&(A===""?R=!1:(A="",this.pos=j,R=this.match(cN)!==null)),!R)return this.pos=$,0;var K=pN(p);return K===""?(this.pos=$,0):(l[K]||(l[K]={destination:f,title:A}),this.pos-$)},dF=function(n){var l=!1,p=this.peek();if(p===-1)return!1;switch(p){case eN:l=this.parseNewline(n);break;case nN:l=this.parseBackslash(n);break;case xM:l=this.parseBackticks(n);break;case Xt:case Lt:l=this.handleDelim(p,n);break;case Ue:case Re:l=this.options.smart&&this.handleDelim(p,n);break;case tN:l=this.parseOpenBracket(n);break;case _M:l=this.parseBang(n);break;case AM:l=this.parseCloseBracket(n);break;case rN:l=this.parseAutolink(n)||this.parseHtmlTag(n);break;case SM:l=this.parseEntity(n);break;default:l=this.parseString(n);break}return l||(this.pos+=1,n.appendChild(ye(Zt(p)))),!0},hF=function(n){for(this.subject=n._string_content.trim(),this.pos=0,this.delimiters=null,this.brackets=null;this.parseInline(n););n._string_content=null,this.processEmphasis(null)};function mF(n){return{subject:"",delimiters:null,brackets:null,pos:0,refmap:{},match:zM,peek:HM,spnl:VM,parseBackticks:GM,parseBackslash:WM,parseAutolink:JM,parseHtmlTag:ZM,scanDelims:KM,handleDelim:XM,parseLinkTitle:tF,parseLinkDestination:rF,parseLinkLabel:nF,parseOpenBracket:iF,parseBang:oF,parseCloseBracket:aF,addBracket:sF,removeBracket:lF,parseEntity:uF,parseString:cF,parseNewline:pF,parseReference:fF,parseInline:dF,processEmphasis:eF,removeDelimiter:YM,options:n||{},parse:hF}}var Ot=4,fN=9,gF=10,dN=62,bF=60,hN=32,mN=91,yF=[/./,/^<(?:script|pre|textarea|style)(?:\s|>|$)/i,/^/,/\?>/,/>/,/\]\]>/],wF=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,kF=/^[#`~*+_=<>0-9-]/,gN=/[^ \t\f\v\r\n]/,xF=/^[*+-]/,AF=/^(\d{1,9})([.)])/,_F=/^#{1,6}(?:[ \t]+|$)/,SF=/^`{3,}(?!.*`)|^~{3,}/,EF=/^(?:`{3,}|~{3,})(?= *$)/,CF=/^(?:=+|-+)[ \t]*$/,TF=/\r\n|\n|\r/,DF=function(n){return!gN.test(n)},at=function(n){return n===hN||n===fN},Ae=function(n,l){return l=4)return null;if(f=p.match(xF))j.type="bullet",j.bulletChar=f[0][0];else if((f=p.match(AF))&&(l.type!=="paragraph"||f[1]==="1"))j.type="ordered",j.start=parseInt(f[1]),j.delimiter=f[2];else return null;if(A=Ae(n.currentLine,n.nextNonspace+f[0].length),!(A===-1||A===fN||A===hN)||l.type==="paragraph"&&!n.currentLine.slice(n.nextNonspace+f[0].length).match(gN))return null;n.advanceNextNonspace(),n.advanceOffset(f[0].length,!0),w=n.column,$=n.offset;do n.advanceOffset(1,!0),A=Ae(n.currentLine,n.offset);while(n.column-w<5&&at(A));var R=Ae(n.currentLine,n.offset)===-1,K=n.column-w;return K>=5||K<1||R?(j.padding=f[0].length+1,n.column=w,n.offset=$,at(Ae(n.currentLine,n.offset))&&n.advanceOffset(1,!0)):j.padding=f[0].length+K,j},jF=function(n,l){return n.type===l.type&&n.delimiter===l.delimiter&&n.bulletChar===l.bulletChar},PF=function(){if(!this.allClosed){for(;this.oldtip!==this.lastMatchedContainer;){var n=this.oldtip._parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=n}this.allClosed=!0}},yN={document:{continue:function(){return 0},finalize:function(){},canContain:function(n){return n!=="item"},acceptsLines:!1},list:{continue:function(){return 0},finalize:function(n,l){for(var p=l._firstChild;p;){if(bN(p)&&p._next){l._listData.tight=!1;break}for(var f=p._firstChild;f;){if(bN(f)&&(p._next||f._next)){l._listData.tight=!1;break}f=f._next}p=p._next}},canContain:function(n){return n==="item"},acceptsLines:!1},block_quote:{continue:function(n){var l=n.currentLine;if(!n.indented&&Ae(l,n.nextNonspace)===dN)n.advanceNextNonspace(),n.advanceOffset(1,!1),at(Ae(l,n.offset))&&n.advanceOffset(1,!0);else return 1;return 0},finalize:function(){},canContain:function(n){return n!=="item"},acceptsLines:!1},item:{continue:function(n,l){if(n.blank){if(l._firstChild==null)return 1;n.advanceNextNonspace()}else if(n.indent>=l._listData.markerOffset+l._listData.padding)n.advanceOffset(l._listData.markerOffset+l._listData.padding,!0);else return 1;return 0},finalize:function(){},canContain:function(n){return n!=="item"},acceptsLines:!1},heading:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},thematic_break:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},code_block:{continue:function(n,l){var p=n.currentLine,f=n.indent;if(l._isFenced){var A=f<=3&&p.charAt(n.nextNonspace)===l._fenceChar&&p.slice(n.nextNonspace).match(EF);if(A&&A[0].length>=l._fenceLength)return n.lastLineLength=n.offset+f+A[0].length,n.finalize(l,n.lineNumber),2;for(var w=l._fenceOffset;w>0&&at(Ae(p,n.offset));)n.advanceOffset(1,!0),w--}else if(f>=Ot)n.advanceOffset(Ot,!0);else if(n.blank)n.advanceNextNonspace();else return 1;return 0},finalize:function(n,l){if(l._isFenced){var p=l._string_content,f=p.indexOf(` -`),A=p.slice(0,f),w=p.slice(f+1);l.info=Y$(A.trim()),l._literal=w}else l._literal=l._string_content.replace(/(\n *)+$/,` -`);l._string_content=null},canContain:function(){return!1},acceptsLines:!0},html_block:{continue:function(n,l){return n.blank&&(l._htmlBlockType===6||l._htmlBlockType===7)?1:0},finalize:function(n,l){l._literal=l._string_content.replace(/(\n *)+$/,""),l._string_content=null},canContain:function(){return!1},acceptsLines:!0},paragraph:{continue:function(n){return n.blank?1:0},finalize:function(n,l){for(var p,f=!1;Ae(l._string_content,0)===mN&&(p=n.inlineParser.parseReference(l._string_content,n.refmap));)l._string_content=l._string_content.slice(p),f=!0;f&&DF(l._string_content)&&l.unlink()},canContain:function(){return!1},acceptsLines:!0}},$F=[function(n){return!n.indented&&Ae(n.currentLine,n.nextNonspace)===dN?(n.advanceNextNonspace(),n.advanceOffset(1,!1),at(Ae(n.currentLine,n.offset))&&n.advanceOffset(1,!0),n.closeUnmatchedBlocks(),n.addChild("block_quote",n.nextNonspace),1):0},function(n){var l;if(!n.indented&&(l=n.currentLine.slice(n.nextNonspace).match(_F))){n.advanceNextNonspace(),n.advanceOffset(l[0].length,!1),n.closeUnmatchedBlocks();var p=n.addChild("heading",n.nextNonspace);return p.level=l[0].trim().length,p._string_content=n.currentLine.slice(n.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),n.advanceOffset(n.currentLine.length-n.offset),2}else return 0},function(n){var l;if(!n.indented&&(l=n.currentLine.slice(n.nextNonspace).match(SF))){var p=l[0].length;n.closeUnmatchedBlocks();var f=n.addChild("code_block",n.nextNonspace);return f._isFenced=!0,f._fenceLength=p,f._fenceChar=l[0][0],f._fenceOffset=n.indent,n.advanceNextNonspace(),n.advanceOffset(p,!1),2}else return 0},function(n,l){if(!n.indented&&Ae(n.currentLine,n.nextNonspace)===bF){var p=n.currentLine.slice(n.nextNonspace),f;for(f=1;f<=7;f++)if(yF[f].test(p)&&(f<7||l.type!=="paragraph")){n.closeUnmatchedBlocks();var A=n.addChild("html_block",n.offset);return A._htmlBlockType=f,2}}return 0},function(n,l){var p;if(!n.indented&&l.type==="paragraph"&&(p=n.currentLine.slice(n.nextNonspace).match(CF))){n.closeUnmatchedBlocks();for(var f;Ae(l._string_content,0)===mN&&(f=n.inlineParser.parseReference(l._string_content,n.refmap));)l._string_content=l._string_content.slice(f);if(l._string_content.length>0){var A=new u("heading",l.sourcepos);return A.level=p[0][0]==="="?1:2,A._string_content=l._string_content,l.insertAfter(A),l.unlink(),n.tip=A,n.advanceOffset(n.currentLine.length-n.offset,!1),2}else return 0}else return 0},function(n){return!n.indented&&wF.test(n.currentLine.slice(n.nextNonspace))?(n.closeUnmatchedBlocks(),n.addChild("thematic_break",n.nextNonspace),n.advanceOffset(n.currentLine.length-n.offset,!1),2):0},function(n,l){var p;return(!n.indented||l.type==="list")&&(p=qF(n,l))?(n.closeUnmatchedBlocks(),(n.tip.type!=="list"||!jF(l._listData,p))&&(l=n.addChild("list",n.nextNonspace),l._listData=p),l=n.addChild("item",n.nextNonspace),l._listData=p,1):0},function(n){return n.indented&&n.tip.type!=="paragraph"&&!n.blank?(n.advanceOffset(Ot,!0),n.closeUnmatchedBlocks(),n.addChild("code_block",n.offset),2):0}],NF=function(n,l){for(var p=this.currentLine,f,A,w;n>0&&(w=p[this.offset]);)w===" "?(f=4-this.column%4,l?(this.partiallyConsumedTab=f>n,A=f>n?n:f,this.column+=A,this.offset+=this.partiallyConsumedTab?0:1,n-=A):(this.partiallyConsumedTab=!1,this.column+=f,this.offset+=1,n-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,n-=1)},UF=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},RF=function(){for(var n=this.currentLine,l=this.offset,p=this.column,f;(f=n.charAt(l))!=="";)if(f===" ")l++,p++;else if(f===" ")l++,p+=4-p%4;else break;this.blank=f===` -`||f==="\r"||f==="",this.nextNonspace=l,this.nextNonspaceColumn=p,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=Ot},MF=function(n){var l=!0,p,f=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,n.indexOf("\0")!==-1&&(n=n.replace(/\0/g,"�")),this.currentLine=n;for(var A;(A=f._lastChild)&&A._open;){switch(f=A,this.findNextNonspace(),this.blocks[f.type].continue(this,f)){case 0:break;case 1:l=!1;break;case 2:return;default:throw"continue returned illegal value, must be 0, 1, or 2"}if(!l){f=f._parent;break}}this.allClosed=f===this.oldtip,this.lastMatchedContainer=f;for(var w=f.type!=="paragraph"&&yN[f.type].acceptsLines,$=this.blockStarts,j=$.length;!w;){if(this.findNextNonspace(),!this.indented&&!kF.test(n.slice(this.nextNonspace))){this.advanceNextNonspace();break}for(var R=0;R=1&&f._htmlBlockType<=5&&vF[f._htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=n.length,this.finalize(f,this.lineNumber))):this.offset0)){if(this.buffer+="<"+n,l&&l.length>0)for(var f=0,A;(A=l[f])!==void 0;)this.buffer+=" "+A[0]+'="'+A[1]+'"',f++;p&&(this.buffer+=" /"),this.buffer+=">",this.lastOut=">"}}function oe(n){n=n||{},n.softbreak=n.softbreak||` -`,this.disableTags=0,this.lastOut=` -`,this.options=n}function YF(n){this.out(n.literal)}function QF(){this.lit(this.options.softbreak)}function eB(){this.tag("br",[],!0),this.cr()}function tB(n,l){var p=this.attrs(n);l?(this.options.safe&&wN(n.destination)||p.push(["href",this.esc(n.destination)]),n.title&&p.push(["title",this.esc(n.title)]),this.tag("a",p)):this.tag("/a")}function rB(n,l){l?(this.disableTags===0&&(this.options.safe&&wN(n.destination)?this.lit(''):this.lit('<img src=')))}function nB(n,l){this.tag(l?"em":"/em")}function iB(n,l){this.tag(l?"strong":"/strong")}function oB(n,l){var p=n.parent.parent,f=this.attrs(n);p!==null&&p.type==="list"&&p.listTight||(l?(this.cr(),this.tag("p",f)):(this.tag("/p"),this.cr()))}function aB(n,l){var p="h"+n.level,f=this.attrs(n);l?(this.cr(),this.tag(p,f)):(this.tag("/"+p),this.cr())}function sB(n){this.tag("code"),this.out(n.literal),this.tag("/code")}function lB(n){var l=n.info?n.info.split(/\s+/):[],p=this.attrs(n);l.length>0&&l[0].length>0&&p.push(["class","language-"+this.esc(l[0])]),this.cr(),this.tag("pre"),this.tag("code",p),this.out(n.literal),this.tag("/code"),this.tag("/pre"),this.cr()}function uB(n){var l=this.attrs(n);this.cr(),this.tag("hr",l,!0),this.cr()}function cB(n,l){var p=this.attrs(n);l?(this.cr(),this.tag("blockquote",p),this.cr()):(this.cr(),this.tag("/blockquote"),this.cr())}function pB(n,l){var p=n.listType==="bullet"?"ul":"ol",f=this.attrs(n);if(l){var A=n.listStart;A!==null&&A!==1&&f.push(["start",A.toString()]),this.cr(),this.tag(p,f),this.cr()}else this.cr(),this.tag("/"+p),this.cr()}function fB(n,l){var p=this.attrs(n);l?this.tag("li",p):(this.tag("/li"),this.cr())}function dB(n){this.options.safe?this.lit(""):this.lit(n.literal)}function hB(n){this.cr(),this.options.safe?this.lit(""):this.lit(n.literal),this.cr()}function mB(n,l){l&&n.onEnter?this.lit(n.onEnter):!l&&n.onExit&&this.lit(n.onExit)}function gB(n,l){this.cr(),l&&n.onEnter?this.lit(n.onEnter):!l&&n.onExit&&this.lit(n.onExit),this.cr()}function bB(n){this.lit(this.esc(n))}function yB(n){var l=[];if(this.options.sourcepos){var p=n.sourcepos;p&&l.push(["data-sourcepos",String(p[0][0])+":"+String(p[0][1])+"-"+String(p[1][0])+":"+String(p[1][1])])}return l}oe.prototype=Object.create(Oe.prototype),oe.prototype.text=YF,oe.prototype.html_inline=dB,oe.prototype.html_block=hB,oe.prototype.softbreak=QF,oe.prototype.linebreak=eB,oe.prototype.link=tB,oe.prototype.image=rB,oe.prototype.emph=nB,oe.prototype.strong=iB,oe.prototype.paragraph=oB,oe.prototype.heading=aB,oe.prototype.code=sB,oe.prototype.code_block=lB,oe.prototype.thematic_break=uB,oe.prototype.block_quote=cB,oe.prototype.list=pB,oe.prototype.item=fB,oe.prototype.custom_inline=mB,oe.prototype.custom_block=gB,oe.prototype.esc=Q$,oe.prototype.out=bB,oe.prototype.tag=XF,oe.prototype.attrs=yB;var vB=/\<[^>]*\>/;function wB(n){return n.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()}function Me(n){n=n||{},this.disableTags=0,this.lastOut=` -`,this.indentLevel=0,this.indent=" ",this.options=n}function kB(n){this.buffer="";var l,p,f=n.walker(),A,w,$,j,R,K,J=this.options;for(J.time&&console.time("rendering"),this.buffer+=` -`,this.buffer+=` -`;A=f.next();)if($=A.entering,w=A.node,K=w.type,j=w.isContainer,R=K==="thematic_break"||K==="linebreak"||K==="softbreak",p=wB(K),$){switch(l=[],K){case"document":l.push(["xmlns","http://commonmark.org/xml/1.0"]);break;case"list":w.listType!==null&&l.push(["type",w.listType.toLowerCase()]),w.listStart!==null&&l.push(["start",String(w.listStart)]),w.listTight!==null&&l.push(["tight",w.listTight?"true":"false"]);var z=w.listDelimiter;if(z!==null){var ne="";z==="."?ne="period":ne="paren",l.push(["delimiter",ne])}break;case"code_block":w.info&&l.push(["info",w.info]);break;case"heading":l.push(["level",String(w.level)]);break;case"link":case"image":l.push(["destination",w.destination]),l.push(["title",w.title]);break;case"custom_inline":case"custom_block":l.push(["on_enter",w.onEnter]),l.push(["on_exit",w.onExit]);break}if(J.sourcepos){var X=w.sourcepos;X&&l.push(["sourcepos",String(X[0][0])+":"+String(X[0][1])+"-"+String(X[1][0])+":"+String(X[1][1])])}if(this.cr(),this.out(this.tag(p,l,R)),j)this.indentLevel+=1;else if(!j&&!R){var pe=w.literal;pe&&this.out(this.esc(pe)),this.out(this.tag("/"+p))}}else this.indentLevel-=1,this.cr(),this.out(this.tag("/"+p));return J.time&&console.timeEnd("rendering"),this.buffer+=` -`,this.buffer}function xB(n){this.disableTags>0?this.buffer+=n.replace(vB,""):this.buffer+=n,this.lastOut=n}function AB(){if(this.lastOut!==` -`){this.buffer+=` -`,this.lastOut=` -`;for(var n=this.indentLevel;n>0;n--)this.buffer+=this.indent}}function _B(n,l,p){var f="<"+n;if(l&&l.length>0)for(var A=0,w;(w=l[A])!==void 0;)f+=" "+w[0]+'="'+this.esc(w[1])+'"',A++;return p&&(f+=" /"),f+=">",f}Me.prototype=Object.create(Oe.prototype),Me.prototype.render=kB,Me.prototype.out=xB,Me.prototype.cr=AB,Me.prototype.tag=_B,Me.prototype.esc=Q$,r.HtmlRenderer=oe,r.Node=u,r.Parser=zF,r.Renderer=Oe,r.XmlRenderer=Me,Object.defineProperty(r,"__esModule",{value:!0})})}(ir,ir.exports)),ir.exports}var or={exports:{}},ar,VN;function b9(){if(VN)return ar;VN=1;function e(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i>>0,q=new Uint8Array(O);S!==m;){for(var N=x[S],P=0,T=O-1;(N!==0||P>>0,q[T]=N%u>>>0,N=N/u>>>0;if(N!==0)throw new Error("Non-zero carry");y=P,S++}for(var F=O-y;F!==O&&q[F]===0;)F++;for(var B=c.repeat(_);F>>0,O=new Uint8Array(m);x[_];){var q=r[x.charCodeAt(_)];if(q===255)return;for(var N=0,P=m-1;(q!==0||N>>0,O[P]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");S=N,_++}if(x[_]!==" "){for(var T=m-S;T!==m&&O[T]===0;)T++;for(var F=new Uint8Array(y+(m-T)),B=y;T!==m;)F[B++]=O[T++];return F}}}function C(x){var _=D(x);if(_)return _;throw new Error("Non-base"+u+" character")}return{encode:b,decodeUnsafe:D,decode:C}}return ar=e,ar}var sr={},GN={},WN={},JN,ZN;function AR(){return ZN||(ZN=1,JN=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),JN}var lr,KN;function Yr(){if(KN)return lr;KN=1;var e=AR();return lr=function(){return e()&&!!Symbol.toStringTag},lr}var XN,YN;function y9(){return YN||(YN=1,XN=Error),XN}var QN,eU;function v9(){return eU||(eU=1,QN=EvalError),QN}var tU,rU;function w9(){return rU||(rU=1,tU=RangeError),tU}var nU,iU;function k9(){return iU||(iU=1,nU=ReferenceError),nU}var oU,aU;function _R(){return aU||(aU=1,oU=SyntaxError),oU}var sU,lU;function Vt(){return lU||(lU=1,sU=TypeError),sU}var uU,cU;function x9(){return cU||(cU=1,uU=URIError),uU}var ur,pU;function A9(){if(pU)return ur;pU=1;var e=typeof Symbol<"u"&&Symbol,t=AR();return ur=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},ur}var cr,fU;function _9(){if(fU)return cr;fU=1;var e={foo:{}},t=Object;return cr=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof t)},cr}var pr,dU;function S9(){if(dU)return pr;dU=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,i="[object Function]",a=function(u,c){for(var d=[],h=0;h"u"||!_?e:_(Uint8Array),m={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":C&&_?_([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&_?_(_([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C||!_?e:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C||!_?e:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&_?_(""[Symbol.iterator]()):e,"%Symbol%":C?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":D,"%TypedArray%":S,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(_)try{null.error}catch(I){var O=_(_(I));m["%Error.prototype%"]=O}var q=function I(ee){var W;if(ee==="%AsyncFunction%")W=d("async function () {}");else if(ee==="%GeneratorFunction%")W=d("function* () {}");else if(ee==="%AsyncGeneratorFunction%")W=d("async function* () {}");else if(ee==="%AsyncGenerator%"){var ie=I("%AsyncGeneratorFunction%");ie&&(W=ie.prototype)}else if(ee==="%AsyncIteratorPrototype%"){var ue=I("%AsyncGenerator%");ue&&_&&(W=_(ue.prototype))}return m[ee]=W,W},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=Qr(),T=E9(),F=P.call(Function.call,Array.prototype.concat),B=P.call(Function.apply,Array.prototype.splice),H=P.call(Function.call,String.prototype.replace),te=P.call(Function.call,String.prototype.slice),re=P.call(Function.call,RegExp.prototype.exec),be=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,se=/\\(\\)?/g,Q=function(I){var ee=te(I,0,1),W=te(I,-1);if(ee==="%"&&W!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(W==="%"&&ee!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var ie=[];return H(I,be,function(ue,g,v,L){ie[ie.length]=v?H(L,se,"$1"):g||ue}),ie},le=function(I,ee){var W=I,ie;if(T(N,W)&&(ie=N[W],W="%"+ie[0]+"%"),T(m,W)){var ue=m[W];if(ue===y&&(ue=q(W)),typeof ue>"u"&&!ee)throw new s("intrinsic "+I+" exists, but is not available. Please file an issue!");return{alias:ie,name:W,value:ue}}throw new o("intrinsic "+I+" does not exist!")};return hr=function(I,ee){if(typeof I!="string"||I.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new s('"allowMissing" argument must be a boolean');if(re(/^%?[^%]*%?$/,I)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var W=Q(I),ie=W.length>0?W[0]:"",ue=le("%"+ie+"%",ee),g=ue.name,v=ue.value,L=!1,U=ue.alias;U&&(ie=U[0],B(W,F([0,1],U)));for(var Y=1,V=!0;Y=W.length){var fe=h(v,M);V=!!fe,V&&"get"in fe&&!("originalValue"in fe.get)?v=fe.get:v=v[M]}else V=T(v,M),v=v[M];V&&!L&&(m[g]=v)}}return v},hr}var bU={exports:{}},mr,yU;function en(){if(yU)return mr;yU=1;var e=_t(),t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return mr=t,mr}var gr,vU;function tn(){if(vU)return gr;vU=1;var e=_t(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return gr=t,gr}var br,wU;function C9(){if(wU)return br;wU=1;var e=en(),t=_R(),r=Vt(),i=tn();return br=function(a,o,s){if(!a||typeof a!="object"&&typeof a!="function")throw new r("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,b=!!i&&i(a,o);if(e)e(a,o,{configurable:d===null&&b?b.configurable:!d,enumerable:u===null&&b?b.enumerable:!u,value:s,writable:c===null&&b?b.writable:!c});else if(h||!u&&!c&&!d)a[o]=s;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},br}var yr,kU;function T9(){if(kU)return yr;kU=1;var e=en(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},yr=t,yr}var vr,xU;function D9(){if(xU)return vr;xU=1;var e=_t(),t=C9(),r=T9()(),i=tn(),a=Vt(),o=e("%Math.floor%");return vr=function(s,u){if(typeof s!="function")throw new a("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||o(u)!==u)throw new a("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],d=!0,h=!0;if("length"in s&&i){var b=i(s,"length");b&&!b.configurable&&(d=!1),b&&!b.writable&&(h=!1)}return(d||h||!c)&&(r?t(s,"length",u,!0,!0):t(s,"length",u)),s},vr}var AU;function SR(){return AU||(AU=1,function(e){var t=Qr(),r=_t(),i=D9(),a=Vt(),o=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),u=r("%Reflect.apply%",!0)||t.call(s,o),c=en(),d=r("%Math.max%");e.exports=function(b){if(typeof b!="function")throw new a("a function is required");var D=u(t,s,arguments);return i(D,1+d(0,b.length-(arguments.length-1)),!0)};var h=function(){return u(t,o,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h}(bU)),bU.exports}var wr,_U;function ER(){if(_U)return wr;_U=1;var e=_t(),t=SR(),r=t(e("String.prototype.indexOf"));return wr=function(i,a){var o=e(i,!!a);return typeof o=="function"&&r(i,".prototype.")>-1?t(o):o},wr}var kr,SU;function L9(){if(SU)return kr;SU=1;var e=Yr()(),t=ER(),r=t("Object.prototype.toString"),i=function(s){return e&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:r(s)==="[object Arguments]"},a=function(s){return i(s)?!0:s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&r(s)!=="[object Array]"&&r(s.callee)==="[object Function]"},o=function(){return i(arguments)}();return i.isLegacyArguments=a,kr=o?i:a,kr}var xr,EU;function O9(){if(EU)return xr;EU=1;var e=Object.prototype.toString,t=Function.prototype.toString,r=/^\s*(?:function)?\*/,i=Yr()(),a=Object.getPrototypeOf,o=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},s;return xr=function(u){if(typeof u!="function")return!1;if(r.test(t.call(u)))return!0;if(!i){var c=e.call(u);return c==="[object GeneratorFunction]"}if(!a)return!1;if(typeof s>"u"){var d=o();s=d?a(d):!1}return a(u)===s},xr}var Ar,CU;function q9(){if(CU)return Ar;CU=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(m){m!==i&&(t=null)}else t=null;var a=/^\s*class\b/,o=function(m){try{var O=e.call(m);return a.test(O)}catch{return!1}},s=function(m){try{return o(m)?!1:(e.call(m),!0)}catch{return!1}},u=Object.prototype.toString,c="[object Object]",d="[object Function]",h="[object GeneratorFunction]",b="[object HTMLAllCollection]",D="[object HTML document.all class]",C="[object HTMLCollection]",x=typeof Symbol=="function"&&!!Symbol.toStringTag,_=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var S=document.all;u.call(S)===u.call(document.all)&&(y=function(m){if((_||!m)&&(typeof m>"u"||typeof m=="object"))try{var O=u.call(m);return(O===b||O===D||O===C||O===c)&&m("")==null}catch{}return!1})}return Ar=t?function(m){if(y(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{t(m,null,r)}catch(O){if(O!==i)return!1}return!o(m)&&s(m)}:function(m){if(y(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(x)return s(m);if(o(m))return!1;var O=u.call(m);return O!==d&&O!==h&&!/^\[object HTML/.test(O)?!1:s(m)},Ar}var _r,TU;function j9(){if(TU)return _r;TU=1;var e=q9(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(u,c,d){for(var h=0,b=u.length;h=3&&(h=d),t.call(u)==="[object Array]"?i(u,c,h):typeof u=="string"?a(u,c,h):o(u,c,h)};return _r=s,_r}var Sr,DU;function P9(){if(DU)return Sr;DU=1;var e=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t=typeof globalThis>"u"?ht:globalThis;return Sr=function(){for(var r=[],i=0;i"u"?ht:globalThis,c=t(),d=i("String.prototype.slice"),h=Object.getPrototypeOf,b=i("Array.prototype.indexOf",!0)||function(_,y){for(var S=0;S<_.length;S+=1)if(_[S]===y)return S;return-1},D={__proto__:null};s&&a&&h?e(c,function(_){var y=new u[_];if(Symbol.toStringTag in y){var S=h(y),m=a(S,Symbol.toStringTag);if(!m){var O=h(S);m=a(O,Symbol.toStringTag)}D["$"+_]=r(m.get)}}):e(c,function(_){var y=new u[_],S=y.slice||y.set;S&&(D["$"+_]=r(S))});var C=function(_){var y=!1;return e(D,function(S,m){if(!y)try{"$"+S(_)===m&&(y=d(m,1))}catch{}}),y},x=function(_){var y=!1;return e(D,function(S,m){if(!y)try{S(_),y=d(m,1)}catch{}}),y};return Er=function(_){if(!_||typeof _!="object")return!1;if(!s){var y=d(o(_),8,-1);return b(c,y)>-1?y:y!=="Object"?!1:x(_)}return a?C(_):null},Er}var Cr,OU;function $9(){if(OU)return Cr;OU=1;var e=CR();return Cr=function(t){return!!e(t)},Cr}var qU;function N9(){return qU||(qU=1,function(e){var t=L9(),r=O9(),i=CR(),a=$9();function o(E){return E.call.bind(E)}var s=typeof BigInt<"u",u=typeof Symbol<"u",c=o(Object.prototype.toString),d=o(Number.prototype.valueOf),h=o(String.prototype.valueOf),b=o(Boolean.prototype.valueOf);if(s)var D=o(BigInt.prototype.valueOf);if(u)var C=o(Symbol.prototype.valueOf);function x(E,Tt){if(typeof E!="object")return!1;try{return Tt(E),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function _(E){return typeof Promise<"u"&&E instanceof Promise||E!==null&&typeof E=="object"&&typeof E.then=="function"&&typeof E.catch=="function"}e.isPromise=_;function y(E){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(E):a(E)||v(E)}e.isArrayBufferView=y;function S(E){return i(E)==="Uint8Array"}e.isUint8Array=S;function m(E){return i(E)==="Uint8ClampedArray"}e.isUint8ClampedArray=m;function O(E){return i(E)==="Uint16Array"}e.isUint16Array=O;function q(E){return i(E)==="Uint32Array"}e.isUint32Array=q;function N(E){return i(E)==="Int8Array"}e.isInt8Array=N;function P(E){return i(E)==="Int16Array"}e.isInt16Array=P;function T(E){return i(E)==="Int32Array"}e.isInt32Array=T;function F(E){return i(E)==="Float32Array"}e.isFloat32Array=F;function B(E){return i(E)==="Float64Array"}e.isFloat64Array=B;function H(E){return i(E)==="BigInt64Array"}e.isBigInt64Array=H;function te(E){return i(E)==="BigUint64Array"}e.isBigUint64Array=te;function re(E){return c(E)==="[object Map]"}re.working=typeof Map<"u"&&re(new Map);function be(E){return typeof Map>"u"?!1:re.working?re(E):E instanceof Map}e.isMap=be;function se(E){return c(E)==="[object Set]"}se.working=typeof Set<"u"&&se(new Set);function Q(E){return typeof Set>"u"?!1:se.working?se(E):E instanceof Set}e.isSet=Q;function le(E){return c(E)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function I(E){return typeof WeakMap>"u"?!1:le.working?le(E):E instanceof WeakMap}e.isWeakMap=I;function ee(E){return c(E)==="[object WeakSet]"}ee.working=typeof WeakSet<"u"&&ee(new WeakSet);function W(E){return ee(E)}e.isWeakSet=W;function ie(E){return c(E)==="[object ArrayBuffer]"}ie.working=typeof ArrayBuffer<"u"&&ie(new ArrayBuffer);function ue(E){return typeof ArrayBuffer>"u"?!1:ie.working?ie(E):E instanceof ArrayBuffer}e.isArrayBuffer=ue;function g(E){return c(E)==="[object DataView]"}g.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&g(new DataView(new ArrayBuffer(1),0,1));function v(E){return typeof DataView>"u"?!1:g.working?g(E):E instanceof DataView}e.isDataView=v;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function U(E){return c(E)==="[object SharedArrayBuffer]"}function Y(E){return typeof L>"u"?!1:(typeof U.working>"u"&&(U.working=U(new L)),U.working?U(E):E instanceof L)}e.isSharedArrayBuffer=Y;function V(E){return c(E)==="[object AsyncFunction]"}e.isAsyncFunction=V;function M(E){return c(E)==="[object Map Iterator]"}e.isMapIterator=M;function G(E){return c(E)==="[object Set Iterator]"}e.isSetIterator=G;function Z(E){return c(E)==="[object Generator]"}e.isGeneratorObject=Z;function fe(E){return c(E)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=fe;function Se(E){return x(E,d)}e.isNumberObject=Se;function Pe(E){return x(E,h)}e.isStringObject=Pe;function Ce(E){return x(E,b)}e.isBooleanObject=Ce;function $e(E){return s&&x(E,D)}e.isBigIntObject=$e;function ot(E){return u&&x(E,C)}e.isSymbolObject=ot;function Et(E){return Se(E)||Pe(E)||Ce(E)||$e(E)||ot(E)}e.isBoxedPrimitive=Et;function Ct(E){return typeof Uint8Array<"u"&&(ue(E)||Y(E))}e.isAnyArrayBuffer=Ct,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(E){Object.defineProperty(e,E,{enumerable:!1,value:function(){throw new Error(E+" is not supported in userland")}})})}(WN)),WN}var jU,PU;function U9(){return PU||(PU=1,jU=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),jU}var Tr={exports:{}},$U;function R9(){return $U||($U=1,typeof Object.create=="function"?Tr.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Tr.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),Tr.exports}var NU;function UU(){return NU||(NU=1,function(e){var t=Object.getOwnPropertyDescriptors||function(g){for(var v=Object.keys(g),L={},U=0;U=Y)return Z;switch(Z){case"%s":return String(U[L++]);case"%d":return Number(U[L++]);case"%j":try{return JSON.stringify(U[L++])}catch{return"[Circular]"}default:return Z}}),M=U[L];L"u")return function(){return e.deprecate(g,v).apply(this,arguments)};var L=!1;function U(){if(!L){if(process.throwDeprecation)throw new Error(v);process.traceDeprecation?console.trace(v):console.error(v),L=!0}return g.apply(this,arguments)}return U};var i={},a=/^$/;if(kN.NODE_DEBUG){var o=kN.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+o+"$","i")}e.debuglog=function(g){if(g=g.toUpperCase(),!i[g])if(a.test(g)){var v=process.pid;i[g]=function(){var L=e.format.apply(e,arguments);console.error("%s %d: %s",g,v,L)}}else i[g]=function(){};return i[g]};function s(g,v){var L={seen:[],stylize:c};return arguments.length>=3&&(L.depth=arguments[2]),arguments.length>=4&&(L.colors=arguments[3]),S(v)?L.showHidden=v:v&&e._extend(L,v),T(L.showHidden)&&(L.showHidden=!1),T(L.depth)&&(L.depth=2),T(L.colors)&&(L.colors=!1),T(L.customInspect)&&(L.customInspect=!0),L.colors&&(L.stylize=u),h(L,g,L.depth)}e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(g,v){var L=s.styles[v];return L?"\x1B["+s.colors[L][0]+"m"+g+"\x1B["+s.colors[L][1]+"m":g}function c(g,v){return g}function d(g){var v={};return g.forEach(function(L,U){v[L]=!0}),v}function h(g,v,L){if(g.customInspect&&v&&re(v.inspect)&&v.inspect!==e.inspect&&!(v.constructor&&v.constructor.prototype===v)){var U=v.inspect(L,g);return N(U)||(U=h(g,U,L)),U}var Y=b(g,v);if(Y)return Y;var V=Object.keys(v),M=d(V);if(g.showHidden&&(V=Object.getOwnPropertyNames(v)),te(v)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return D(v);if(V.length===0){if(re(v)){var G=v.name?": "+v.name:"";return g.stylize("[Function"+G+"]","special")}if(F(v))return g.stylize(RegExp.prototype.toString.call(v),"regexp");if(H(v))return g.stylize(Date.prototype.toString.call(v),"date");if(te(v))return D(v)}var Z="",fe=!1,Se=["{","}"];if(y(v)&&(fe=!0,Se=["[","]"]),re(v)){var Pe=v.name?": "+v.name:"";Z=" [Function"+Pe+"]"}if(F(v)&&(Z=" "+RegExp.prototype.toString.call(v)),H(v)&&(Z=" "+Date.prototype.toUTCString.call(v)),te(v)&&(Z=" "+D(v)),V.length===0&&(!fe||v.length==0))return Se[0]+Z+Se[1];if(L<0)return F(v)?g.stylize(RegExp.prototype.toString.call(v),"regexp"):g.stylize("[Object]","special");g.seen.push(v);var Ce;return fe?Ce=C(g,v,L,M,V):Ce=V.map(function($e){return x(g,v,L,M,$e,fe)}),g.seen.pop(),_(Ce,Z,Se)}function b(g,v){if(T(v))return g.stylize("undefined","undefined");if(N(v)){var L="'"+JSON.stringify(v).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return g.stylize(L,"string")}if(q(v))return g.stylize(""+v,"number");if(S(v))return g.stylize(""+v,"boolean");if(m(v))return g.stylize("null","null")}function D(g){return"["+Error.prototype.toString.call(g)+"]"}function C(g,v,L,U,Y){for(var V=[],M=0,G=v.length;M-1&&(V?G=G.split(` -`).map(function(fe){return" "+fe}).join(` -`).slice(2):G=` -`+G.split(` -`).map(function(fe){return" "+fe}).join(` -`))):G=g.stylize("[Circular]","special")),T(M)){if(V&&Y.match(/^\d+$/))return G;M=JSON.stringify(""+Y),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.slice(1,-1),M=g.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=g.stylize(M,"string"))}return M+": "+G}function _(g,v,L){var U=g.reduce(function(Y,V){return V.indexOf(` -`)>=0,Y+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return U>60?L[0]+(v===""?"":v+` - `)+" "+g.join(`, - `)+" "+L[1]:L[0]+v+" "+g.join(", ")+" "+L[1]}e.types=N9();function y(g){return Array.isArray(g)}e.isArray=y;function S(g){return typeof g=="boolean"}e.isBoolean=S;function m(g){return g===null}e.isNull=m;function O(g){return g==null}e.isNullOrUndefined=O;function q(g){return typeof g=="number"}e.isNumber=q;function N(g){return typeof g=="string"}e.isString=N;function P(g){return typeof g=="symbol"}e.isSymbol=P;function T(g){return g===void 0}e.isUndefined=T;function F(g){return B(g)&&se(g)==="[object RegExp]"}e.isRegExp=F,e.types.isRegExp=F;function B(g){return typeof g=="object"&&g!==null}e.isObject=B;function H(g){return B(g)&&se(g)==="[object Date]"}e.isDate=H,e.types.isDate=H;function te(g){return B(g)&&(se(g)==="[object Error]"||g instanceof Error)}e.isError=te,e.types.isNativeError=te;function re(g){return typeof g=="function"}e.isFunction=re;function be(g){return g===null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||typeof g=="symbol"||typeof g>"u"}e.isPrimitive=be,e.isBuffer=U9();function se(g){return Object.prototype.toString.call(g)}function Q(g){return g<10?"0"+g.toString(10):g.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var g=new Date,v=[Q(g.getHours()),Q(g.getMinutes()),Q(g.getSeconds())].join(":");return[g.getDate(),le[g.getMonth()],v].join(" ")}e.log=function(){console.log("%s - %s",I(),e.format.apply(e,arguments))},e.inherits=R9(),e._extend=function(g,v){if(!v||!B(v))return g;for(var L=Object.keys(v),U=L.length;U--;)g[L[U]]=v[L[U]];return g};function ee(g,v){return Object.prototype.hasOwnProperty.call(g,v)}var W=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(g){if(typeof g!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&g[W]){var v=g[W];if(typeof v!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(v,W,{value:v,enumerable:!1,writable:!1,configurable:!0}),v}function v(){for(var L,U,Y=new Promise(function(G,Z){L=G,U=Z}),V=[],M=0;Mr.decode(u),a=new e,o=u=>a.encode(u);function s(u,c){const d=new Uint8Array(c);let h=0;for(const b of u)d.set(b,h),h+=b.length;return d}return Dr={decodeText:i,encodeText:o,concat:s},Dr}var Lr,FU;function F9(){if(FU)return Lr;FU=1;const{encodeText:e}=rn();class t{constructor(i,a,o,s){this.name=i,this.code=a,this.codeBuf=e(this.code),this.alphabet=s,this.codec=o(s)}encode(i){return this.codec.encode(i)}decode(i){for(const a of i)if(this.alphabet&&this.alphabet.indexOf(a)<0)throw new Error(`invalid character '${a}' in '${i}'`);return this.codec.decode(i)}}return Lr=t,Lr}var Or,BU;function B9(){if(BU)return Or;BU=1;const e=(r,i,a)=>{const o={};for(let b=0;b=8&&(c-=8,u[h++]=255&d>>c)}if(c>=a||255&d<<8-c)throw new SyntaxError("Unexpected end of data");return u},t=(r,i,a)=>{const o=i[i.length-1]==="=",s=(1<a;)c-=a,u+=i[s&d>>c];if(c&&(u+=i[s&d<i=>({encode(a){return t(a,i,r)},decode(a){return e(a,i,r)}})},Or}var qr,IU;function I9(){if(IU)return qr;IU=1;const e=b9(),t=F9(),{rfc4648:r}=B9(),{decodeText:i,encodeText:a}=rn(),o=[["identity","\0",()=>({encode:i,decode:a}),""],["base2","0",r(1),"01"],["base8","7",r(3),"01234567"],["base10","9",e,"0123456789"],["base16","f",r(4),"0123456789abcdef"],["base16upper","F",r(4),"0123456789ABCDEF"],["base32hex","v",r(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",r(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",r(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",r(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",r(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",r(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",r(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",r(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",r(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",e,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",e,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",e,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",e,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],s=o.reduce((c,d)=>(c[d[0]]=new t(d[0],d[1],d[2],d[3]),c),{}),u=o.reduce((c,d)=>(c[d[1]]=s[d[0]],c),{});return qr={names:s,codes:u},qr}var zU;function z9(){return zU||(zU=1,function(e,t){const r=I9(),{encodeText:i,decodeText:a,concat:o}=rn();function s(C,x){if(!x)throw new Error("requires an encoded Uint8Array");const{name:_,codeBuf:y}=b(C);return h(_,x),o([y,x],y.length+x.length)}function u(C,x){const _=b(C),y=i(_.encode(x));return o([_.codeBuf,y],_.codeBuf.length+y.length)}function c(C){C instanceof Uint8Array&&(C=a(C));const x=C[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(x)&&(C=C.toLowerCase()),b(C[0]).decode(C.substring(1))}function d(C){if(C instanceof Uint8Array&&(C=a(C)),Object.prototype.toString.call(C)!=="[object String]")return!1;try{return b(C[0]).name}catch{return!1}}function h(C,x){b(C).decode(a(x))}function b(C){if(Object.prototype.hasOwnProperty.call(r.names,C))return r.names[C];if(Object.prototype.hasOwnProperty.call(r.codes,C))return r.codes[C];throw new Error(`Unsupported encoding: ${C}`)}function D(C){return C instanceof Uint8Array&&(C=a(C)),b(C[0])}t=e.exports=s,t.encode=u,t.decode=c,t.isEncoded=d,t.encoding=b,t.encodingFromData=D,t.names=Object.freeze(r.names),t.codes=Object.freeze(r.codes)}(or,or.exports)),or.exports}var jr,HU;function H9(){if(HU)return jr;HU=1,jr=a;var e=128,t=127,r=~t,i=Math.pow(2,31);function a(o,s,u){if(Number.MAX_SAFE_INTEGER&&o>Number.MAX_SAFE_INTEGER)throw a.bytes=0,new RangeError("Could not encode varint");s=s||[],u=u||0;for(var c=u;o>=i;)s[u++]=o&255|e,o/=128;for(;o&r;)s[u++]=o&255|e,o>>>=7;return s[u]=o|0,a.bytes=u-c+1,s}return jr}var Pr,VU;function V9(){if(VU)return Pr;VU=1,Pr=r;var e=128,t=127;function r(i,s){var o=0,s=s||0,u=0,c=s,d,h=i.length;do{if(c>=h||u>49)throw r.bytes=0,new RangeError("Could not decode varint");d=i[c++],o+=u<28?(d&t)<=e);return r.bytes=c-s,o}return Pr}var $r,GU;function G9(){if(GU)return $r;GU=1;var e=Math.pow(2,7),t=Math.pow(2,14),r=Math.pow(2,21),i=Math.pow(2,28),a=Math.pow(2,35),o=Math.pow(2,42),s=Math.pow(2,49),u=Math.pow(2,56),c=Math.pow(2,63);return $r=function(d){return d=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i>>0,q=new Uint8Array(O);S!==m;){for(var N=x[S],P=0,T=O-1;(N!==0||P>>0,q[T]=N%u>>>0,N=N/u>>>0;if(N!==0)throw new Error("Non-zero carry");y=P,S++}for(var F=O-y;F!==O&&q[F]===0;)F++;for(var B=c.repeat(_);F>>0,O=new Uint8Array(m);x[_];){var q=r[x.charCodeAt(_)];if(q===255)return;for(var N=0,P=m-1;(q!==0||N>>0,O[P]=q%256>>>0,q=q/256>>>0;if(q!==0)throw new Error("Non-zero carry");S=N,_++}if(x[_]!==" "){for(var T=m-S;T!==m&&O[T]===0;)T++;for(var F=new Uint8Array(y+(m-T)),B=y;T!==m;)F[B++]=O[T++];return F}}}function C(x){var _=D(x);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:b,decodeUnsafe:D,decode:C}}var K9=Z9,X9=K9;const TR=new Uint8Array(0),Y9=e=>e.reduce((t,r)=>t+r.toString(16).padStart(2,"0"),""),Q9=e=>{const t=e.match(/../g);return t?new Uint8Array(t.map(r=>parseInt(r,16))):TR},DR=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},ez=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),LR=e=>new TextEncoder().encode(e),OR=e=>new TextDecoder().decode(e),tz=Object.freeze(Object.defineProperty({__proto__:null,coerce:Ye,empty:TR,equals:DR,fromHex:Q9,fromString:LR,isBinary:ez,toHex:Y9,toString:OR},Symbol.toStringTag,{value:"Module"}));class rz{constructor(t,r,i){this.name=t,this.prefix=r,this.baseEncode=i}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class nz{constructor(t,r,i){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=i}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return qR(this,t)}}class iz{constructor(t){this.decoders=t}or(t){return qR(this,t)}decode(t){const r=t[0],i=this.decoders[r];if(i)return i.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const qR=(e,t)=>new iz({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class oz{constructor(t,r,i,a){this.name=t,this.prefix=r,this.baseEncode=i,this.baseDecode=a,this.encoder=new rz(t,r,i),this.decoder=new nz(t,r,a)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Gt=({name:e,prefix:t,encode:r,decode:i})=>new oz(e,t,r,i),St=({prefix:e,name:t,alphabet:r})=>{const{encode:i,decode:a}=X9(r,t);return Gt({prefix:e,name:t,encode:i,decode:o=>Ye(a(o))})},az=(e,t,r,i)=>{const a={};for(let h=0;h=8&&(u-=8,s[d++]=255&c>>u)}if(u>=r||255&c<<8-u)throw new SyntaxError("Unexpected end of data");return s},sz=(e,t,r)=>{const i=t[t.length-1]==="=",a=(1<r;)s-=r,o+=t[a&u>>s];if(s&&(o+=t[a&u<Gt({prefix:t,name:e,encode(a){return sz(a,i,r)},decode(a){return az(a,i,r,e)}}),lz=Gt({prefix:"\0",name:"identity",encode:e=>OR(e),decode:e=>LR(e)}),uz=Object.freeze(Object.defineProperty({__proto__:null,identity:lz},Symbol.toStringTag,{value:"Module"})),cz=ge({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),pz=Object.freeze(Object.defineProperty({__proto__:null,base2:cz},Symbol.toStringTag,{value:"Module"})),fz=ge({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),dz=Object.freeze(Object.defineProperty({__proto__:null,base8:fz},Symbol.toStringTag,{value:"Module"})),hz=St({prefix:"9",name:"base10",alphabet:"0123456789"}),mz=Object.freeze(Object.defineProperty({__proto__:null,base10:hz},Symbol.toStringTag,{value:"Module"})),gz=ge({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),bz=ge({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),yz=Object.freeze(Object.defineProperty({__proto__:null,base16:gz,base16upper:bz},Symbol.toStringTag,{value:"Module"})),mt=ge({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),vz=ge({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),wz=ge({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),kz=ge({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),xz=ge({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Az=ge({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),_z=ge({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Sz=ge({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Ez=ge({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Cz=Object.freeze(Object.defineProperty({__proto__:null,base32:mt,base32hex:xz,base32hexpad:_z,base32hexpadupper:Sz,base32hexupper:Az,base32pad:wz,base32padupper:kz,base32upper:vz,base32z:Ez},Symbol.toStringTag,{value:"Module"})),Tz=St({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Dz=St({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),Lz=Object.freeze(Object.defineProperty({__proto__:null,base36:Tz,base36upper:Dz},Symbol.toStringTag,{value:"Module"})),De=St({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Oz=St({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),qz=Object.freeze(Object.defineProperty({__proto__:null,base58btc:De,base58flickr:Oz},Symbol.toStringTag,{value:"Module"})),jz=ge({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Pz=ge({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),$z=ge({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Nz=ge({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Uz=Object.freeze(Object.defineProperty({__proto__:null,base64:jz,base64pad:Pz,base64url:$z,base64urlpad:Nz},Symbol.toStringTag,{value:"Module"})),jR=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Rz=jR.reduce((e,t,r)=>(e[r]=t,e),[]),Mz=jR.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function Fz(e){return e.reduce((t,r)=>(t+=Rz[r],t),"")}function Bz(e){const t=[];for(const r of e){const i=Mz[r.codePointAt(0)];if(i===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(i)}return new Uint8Array(t)}const Iz=Gt({prefix:"🚀",name:"base256emoji",encode:Fz,decode:Bz}),zz=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:Iz},Symbol.toStringTag,{value:"Module"}));var Hz=PR,XU=128,Vz=127,Gz=~Vz,Wz=Math.pow(2,31);function PR(e,t,r){t=t||[],r=r||0;for(var i=r;e>=Wz;)t[r++]=e&255|XU,e/=128;for(;e&Gz;)t[r++]=e&255|XU,e>>>=7;return t[r]=e|0,PR.bytes=r-i+1,t}var Jz=Gr,Zz=128,YU=127;function Gr(e,i){var r=0,i=i||0,a=0,o=i,s,u=e.length;do{if(o>=u)throw Gr.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=a<28?(s&YU)<=Zz);return Gr.bytes=o-i,r}var Kz=Math.pow(2,7),Xz=Math.pow(2,14),Yz=Math.pow(2,21),Qz=Math.pow(2,28),eH=Math.pow(2,35),tH=Math.pow(2,42),rH=Math.pow(2,49),nH=Math.pow(2,56),iH=Math.pow(2,63),oH=function(e){return e[It.decode(e,t),It.decode.bytes],vt=(e,t,r=0)=>(It.encode(e,t,r),t),wt=e=>It.encodingLength(e),sH=Object.freeze(Object.defineProperty({__proto__:null,decode:zt,encodeTo:vt,encodingLength:wt},Symbol.toStringTag,{value:"Module"})),kt=(e,t)=>{const r=t.byteLength,i=wt(e),a=i+wt(r),o=new Uint8Array(a+r);return vt(e,o,0),vt(r,o,i),o.set(t,a),new Wt(e,r,t,o)},$R=e=>{const t=Ye(e),[r,i]=zt(t),[a,o]=zt(t.subarray(i)),s=t.subarray(i+o);if(s.byteLength!==a)throw new Error("Incorrect length");return new Wt(r,a,s,t)},NR=(e,t)=>e===t?!0:e.code===t.code&&e.size===t.size&&DR(e.bytes,t.bytes);class Wt{constructor(t,r,i,a){this.code=t,this.size=r,this.digest=i,this.bytes=a}}const lH=Object.freeze(Object.defineProperty({__proto__:null,Digest:Wt,create:kt,decode:$R,equals:NR},Symbol.toStringTag,{value:"Module"})),nn=({name:e,code:t,encode:r})=>new UR(e,t,r);class UR{constructor(t,r,i){this.name=t,this.code=r,this.encode=i}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?kt(this.code,r):r.then(i=>kt(this.code,i))}else throw Error("Unknown type, must be binary type")}}const uH=Object.freeze(Object.defineProperty({__proto__:null,Hasher:UR,from:nn},Symbol.toStringTag,{value:"Module"})),RR=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),cH=nn({name:"sha2-256",code:18,encode:RR("SHA-256")}),pH=nn({name:"sha2-512",code:19,encode:RR("SHA-512")}),fH=Object.freeze(Object.defineProperty({__proto__:null,sha256:cH,sha512:pH},Symbol.toStringTag,{value:"Module"})),MR=0,dH="identity",FR=Ye,hH=e=>kt(MR,FR(e)),mH={code:MR,name:dH,encode:FR,digest:hH},gH=Object.freeze(Object.defineProperty({__proto__:null,identity:mH},Symbol.toStringTag,{value:"Module"})),bH="raw",yH=85,vH=e=>Ye(e),wH=e=>Ye(e),kH=Object.freeze(Object.defineProperty({__proto__:null,code:yH,decode:wH,encode:vH,name:bH},Symbol.toStringTag,{value:"Module"})),xH=new TextEncoder,AH=new TextDecoder,_H="json",SH=512,EH=e=>xH.encode(JSON.stringify(e)),CH=e=>JSON.parse(AH.decode(e)),TH=Object.freeze(Object.defineProperty({__proto__:null,code:SH,decode:CH,encode:EH,name:_H},Symbol.toStringTag,{value:"Module"}));class ve{constructor(t,r,i,a){this.code=r,this.version=t,this.multihash=i,this.bytes=a,this.byteOffset=a.byteOffset,this.byteLength=a.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:Ut,byteLength:Ut,code:Nt,version:Nt,multihash:Nt,bytes:Nt,_baseCache:Ut,asCID:Ut})}toV0(){switch(this.version){case 0:return this;default:{const{code:t,multihash:r}=this;if(t!==pt)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==qH)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return ve.createV0(r)}}}toV1(){switch(this.version){case 0:{const{code:t,digest:r}=this.multihash,i=kt(t,r);return ve.createV1(this.code,i)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&NR(this.multihash,t.multihash)}toString(t){const{bytes:r,version:i,_baseCache:a}=this;switch(i){case 0:return LH(r,a,t||De.encoder);default:return OH(r,a,t||mt.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return PH(/^0\.0/,$H),!!(t&&(t[eR]||t.asCID===t))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof ve)return t;if(t!=null&&t.asCID===t){const{version:r,code:i,multihash:a,bytes:o}=t;return new ve(r,i,a,o||QU(r,i,a.bytes))}else if(t!=null&&t[eR]===!0){const{version:r,multihash:i,code:a}=t,o=$R(i);return ve.create(r,a,o)}else return null}static create(t,r,i){if(typeof r!="number")throw new Error("String codecs are no longer supported");switch(t){case 0:{if(r!==pt)throw new Error(`Version 0 CID must use dag-pb (code: ${pt}) block encoding`);return new ve(t,r,i,i.bytes)}case 1:{const a=QU(t,r,i.bytes);return new ve(t,r,i,a)}default:throw new Error("Invalid version")}}static createV0(t){return ve.create(0,pt,t)}static createV1(t,r){return ve.create(1,t,r)}static decode(t){const[r,i]=ve.decodeFirst(t);if(i.length)throw new Error("Incorrect length");return r}static decodeFirst(t){const r=ve.inspectBytes(t),i=r.size-r.multihashSize,a=Ye(t.subarray(i,i+r.multihashSize));if(a.byteLength!==r.multihashSize)throw new Error("Incorrect length");const o=a.subarray(r.multihashSize-r.digestSize),s=new Wt(r.multihashCode,r.digestSize,o,a);return[r.version===0?ve.createV0(s):ve.createV1(r.codec,s),t.subarray(r.size)]}static inspectBytes(t){let r=0;const i=()=>{const[b,D]=zt(t.subarray(r));return r+=D,b};let a=i(),o=pt;if(a===18?(a=0,r=0):a===1&&(o=i()),a!==0&&a!==1)throw new RangeError(`Invalid CID version ${a}`);const s=r,u=i(),c=i(),d=r+c,h=d-s;return{version:a,codec:o,multihashCode:u,digestSize:c,multihashSize:h,size:d}}static parse(t,r){const[i,a]=DH(t,r),o=ve.decode(a);return o._baseCache.set(i,t),o}}const DH=(e,t)=>{switch(e[0]){case"Q":{const r=t||De;return[De.prefix,r.decode(`${De.prefix}${e}`)]}case De.prefix:{const r=t||De;return[De.prefix,r.decode(e)]}case mt.prefix:{const r=t||mt;return[mt.prefix,r.decode(e)]}default:{if(t==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}}},LH=(e,t,r)=>{const{prefix:i}=r;if(i!==De.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);const a=t.get(i);if(a==null){const o=r.encode(e).slice(1);return t.set(i,o),o}else return a},OH=(e,t,r)=>{const{prefix:i}=r,a=t.get(i);if(a==null){const o=r.encode(e);return t.set(i,o),o}else return a},pt=112,qH=18,QU=(e,t,r)=>{const i=wt(e),a=i+wt(t),o=new Uint8Array(a+r.byteLength);return vt(e,o,0),vt(t,o,i),o.set(r,a),o},eR=Symbol.for("@ipld/js-cid/CID"),Nt={writable:!1,configurable:!1,enumerable:!0},Ut={writable:!1,enumerable:!1,configurable:!1},jH="0.0.0-dev",PH=(e,t)=>{if(e.test(jH))console.warn(t);else throw new Error(t)},$H=`CID.isCID(v) is deprecated and will be removed in the next major release. -Following code pattern: - -if (CID.isCID(value)) { - doSomethingWithCID(value) -} - -Is replaced with: - -const cid = CID.asCID(value) -if (cid) { - // Make sure to use cid instead of value - doSomethingWithCID(cid) -} -`,NH={...uz,...pz,...dz,...mz,...yz,...Cz,...Lz,...qz,...Uz,...zz},UH={...fH,...gH},RH={raw:kH,json:TH},MH=Object.freeze(Object.defineProperty({__proto__:null,CID:ve,bases:NH,bytes:tz,codecs:RH,digest:lH,hasher:uH,hashes:UH,varint:sH},Symbol.toStringTag,{value:"Module"})),FH=yR(MH);var Nr,tR;function BR(){if(tR)return Nr;tR=1;const{bases:e}=FH;function t(a,o,s,u){return{name:a,prefix:o,encoder:{name:a,prefix:o,encode:s},decoder:{decode:u}}}const r=t("utf8","u",a=>"u"+new TextDecoder("utf8").decode(a),a=>new TextEncoder().encode(a.substring(1))),i=t("ascii","a",a=>{let o="a";for(let s=0;s{a=a.substring(1);const o=new Uint8Array(a.length);for(let s=0;so+s.length,0));const i=new Uint8Array(r);let a=0;for(const o of t)i.set(o,a),a+=o.length;return i}return Mr=e,Mr}var Fr,oR;function HH(){if(oR)return Fr;oR=1;const e=z9(),t=W9(),{names:r}=J9(),i=BH(),a=IH(),o=zH(),s={};for(const m in r){const O=m;s[r[O]]=O}function u(m){if(!(m instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return i(m,"base16")}function c(m){return a(m,"base16")}function d(m){if(!(m instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return i(e.encode("base58btc",m)).slice(1)}function h(m){const O=m instanceof Uint8Array?i(m):m;return e.decode("z"+O)}function b(m){if(!(m instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(m.length<2)throw new Error("multihash too short. must be > 2 bytes.");const O=t.decode(m);if(!_(O))throw new Error(`multihash unknown function code: 0x${O.toString(16)}`);m=m.slice(t.decode.bytes);const q=t.decode(m);if(q<0)throw new Error(`multihash invalid length: ${q}`);if(m=m.slice(t.decode.bytes),m.length!==q)throw new Error(`multihash length inconsistent: 0x${i(m,"base16")}`);return{code:O,name:s[O],length:q,digest:m}}function D(m,O,q){if(!m||O===void 0)throw new Error("multihash encode requires at least two args: digest, code");const N=C(O);if(!(m instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(q==null&&(q=m.length),q&&m.length!==q)throw new Error("digest length should be equal to specified length.");const P=t.encode(N),T=t.encode(q);return o([P,T,m],P.length+T.length+m.length)}function C(m){let O=m;if(typeof m=="string"){if(r[m]===void 0)throw new Error(`Unrecognized hash function named: ${m}`);O=r[m]}if(typeof O!="number")throw new Error(`Hash function code should be a number. Got: ${O}`);if(s[O]===void 0&&!x(O))throw new Error(`Unrecognized function code: ${O}`);return O}function x(m){return m>0&&m<16}function _(m){return!!(x(m)||s[m])}function y(m){b(m)}function S(m){return y(m),m.subarray(0,2)}return Fr={names:r,codes:Object.freeze(s),toHexString:u,fromHexString:c,toB58String:d,fromB58String:h,decode:b,encode:D,coerceCode:C,isAppCode:x,validate:y,prefix:S,isValidCode:_},Fr}var Br,aR;function on(){if(aR)return Br;aR=1;const e=At(),t=it(),r={array(i,a=!1,o=""){return e.toList(i,a,s=>r.format(s,o))},object(i){return e.toObject(i,a=>r.format(a))},null(i=null){return i===null&&(i=e.t("n/a")),e.toNothing(i)},number(i,a=""){return typeof i!="number"&&(i=parseFloat(i)),e.unit(i.toLocaleString(t.locales,{maximumFractionDigits:10}),a)},string(i,a=""){return e.unit(e.e(i).replace(/(\r\n|\r|\n){2,}/g,"
        "),a)},boolean(i){return i?"✔️":"❌"},format(i,a=""){return typeof i=="boolean"?r.boolean(i):typeof i=="number"?r.number(i,a):typeof i=="string"?r.string(i,a):Array.isArray(i)?r.array(i,a):e.isObject(i)?r.object(i):r.null()}};return Br=r,Br}const VH="Afar",GH="Abkhazian",WH="Afrikaans",JH="Akan",ZH="Amharic",KH="Aragonese",XH="Arabic",YH="Assamese",QH="Avar",eV="Aymara",tV="Azerbaijani",rV="Bashkir",nV="Belarusian",iV="Bulgarian",oV="Bihari",aV="Bislama",sV="Bambara",lV="Bengali",uV="Tibetan",cV="Breton",pV="Bosnian",fV="Catalan",dV="Chechen",hV="Chamorro",mV="Corsican",gV="Cree",bV="Czech",yV="Old Bulgarian",vV="Chuvash",wV="Welsh",kV="Danish",xV="German",AV="Divehi",_V="Dzongkha",SV="Ewe",EV="Greek",CV="English",TV="Esperanto",DV="Spanish",LV="Estonian",OV="Basque",qV="Persian",jV="Peul",PV="Finnish",$V="Fijian",NV="Faroese",UV="French",RV="West Frisian",MV="Irish",FV="Scottish Gaelic",BV="Galician",IV="Guarani",zV="Gujarati",HV="Manx",VV="Hausa",GV="Hebrew",WV="Hindi",JV="Hiri Motu",ZV="Croatian",KV="Haitian",XV="Hungarian",YV="Armenian",QV="Herero",eG="Interlingua",tG="Indonesian",rG="Interlingue",nG="Igbo",iG="Sichuan Yi",oG="Inupiak",aG="Ido",sG="Icelandic",lG="Italian",uG="Inuktitut",cG="Japanese",pG="Javanese",fG="Georgian",dG="Kongo",hG="Kikuyu",mG="Kuanyama",gG="Kazakh",bG="Greenlandic",yG="Cambodian",vG="Kannada",wG="Korean",kG="Kanuri",xG="Kashmiri",AG="Kurdish",_G="Komi",SG="Cornish",EG="Kirghiz",CG="Latin",TG="Luxembourgish",DG="Ganda",LG="Limburgian",OG="Lingala",qG="Laotian",jG="Lithuanian",PG="Latvian",$G="Malagasy",NG="Marshallese",UG="Maori",RG="Macedonian",MG="Malayalam",FG="Mongolian",BG="Moldovan",IG="Marathi",zG="Malay",HG="Maltese",VG="Burmese",GG="Nauruan",WG="North Ndebele",JG="Nepali",ZG="Ndonga",KG="Dutch",XG="Norwegian Nynorsk",YG="Norwegian",QG="South Ndebele",e7="Navajo",t7="Chichewa",r7="Occitan",n7="Ojibwa",i7="Oromo",o7="Oriya",a7="Ossetian",s7="Punjabi",l7="Pali",u7="Polish",c7="Pashto",p7="Portuguese",f7="Quechua",d7="Raeto Romance",h7="Kirundi",m7="Romanian",g7="Russian",b7="Rwandi",y7="Sanskrit",v7="Sardinian",w7="Sindhi",k7="Sango",x7="Serbo-Croatian",A7="Sinhalese",_7="Slovak",S7="Slovenian",E7="Samoan",C7="Shona",T7="Somalia",D7="Albanian",L7="Serbian",O7="Swati",q7="Southern Sotho",j7="Sundanese",P7="Swedish",$7="Swahili",N7="Tamil",U7="Telugu",R7="Tajik",M7="Thai",F7="Tigrinya",B7="Turkmen",I7="Tagalog",z7="Tswana",H7="Tonga",V7="Turkish",G7="Tsonga",W7="Tatar",J7="Twi",Z7="Tahitian",K7="Uyghur",X7="Ukrainian",Y7="Urdu",Q7="Venda",eW="Vietnamese",tW="Volapük",rW="Walloon",nW="Wolof",iW="Xhosa",oW="Yiddish",aW="Yoruba",sW="Zhuang",lW="Chinese",uW="Zulu",cW={aa:VH,ab:GH,af:WH,ak:JH,am:ZH,an:KH,ar:XH,as:YH,av:QH,ay:eV,az:tV,ba:rV,be:nV,bg:iV,bh:oV,bi:aV,bm:sV,bn:lV,bo:uV,br:cV,bs:pV,ca:fV,ce:dV,ch:hV,co:mV,cr:gV,cs:bV,cu:yV,cv:vV,cy:wV,da:kV,de:xV,dv:AV,dz:_V,ee:SV,el:EV,en:CV,eo:TV,es:DV,et:LV,eu:OV,fa:qV,ff:jV,fi:PV,fj:$V,fo:NV,fr:UV,fy:RV,ga:MV,gd:FV,gl:BV,gn:IV,gu:zV,gv:HV,ha:VV,he:GV,hi:WV,ho:JV,hr:ZV,ht:KV,hu:XV,hy:YV,hz:QV,ia:eG,id:tG,ie:rG,ig:nG,ii:iG,ik:oG,io:aG,is:sG,it:lG,iu:uG,ja:cG,jv:pG,ka:fG,kg:dG,ki:hG,kj:mG,kk:gG,kl:bG,km:yG,kn:vG,ko:wG,kr:kG,ks:xG,ku:AG,kv:_G,kw:SG,ky:EG,la:CG,lb:TG,lg:DG,li:LG,ln:OG,lo:qG,lt:jG,lv:PG,mg:$G,mh:NG,mi:UG,mk:RG,ml:MG,mn:FG,mo:BG,mr:IG,ms:zG,mt:HG,my:VG,na:GG,nd:WG,ne:JG,ng:ZG,nl:KG,nn:XG,no:YG,nr:QG,nv:e7,ny:t7,oc:r7,oj:n7,om:i7,or:o7,os:a7,pa:s7,pi:l7,pl:u7,ps:c7,pt:p7,qu:f7,rm:d7,rn:h7,ro:m7,ru:g7,rw:b7,sa:y7,sc:v7,sd:w7,sg:k7,sh:x7,si:A7,sk:_7,sl:S7,sm:E7,sn:C7,so:T7,sq:D7,sr:L7,ss:O7,st:q7,su:j7,sv:P7,sw:$7,ta:N7,te:U7,tg:R7,th:M7,ti:F7,tk:B7,tl:I7,tn:z7,to:H7,tr:V7,ts:G7,tt:W7,tw:J7,ty:Z7,ug:K7,uk:X7,ur:Y7,ve:Q7,vi:eW,vo:tW,wa:rW,wo:nW,xh:iW,yi:oW,yo:aW,za:sW,zh:lW,zu:uW};var Ir,sR;function IR(){if(sR)return Ir;sR=1;const e=At(),t=on(),r=it(),i=Kr,a={allowHtmlInCommonMark:!1,formatUrl(o,s,u={},c=null,d=null){let h=e.isObject(d)&&typeof d=="string"?d.title:o;return e.toLink(o,h,d.rel||"")},formatLink(o){return e.toList(o,!1,s=>e.toLink(s.href,s.title,s.rel))},formatMediaType(o,s,u={}){return e.e(e.t(a._formatMediaType(o,s,u)))},_formatMediaType(o,s,u={}){let c=!!u.shorten;const d=i.getDependency("content-type");if(!d)return c?"":e.e(o);let h;try{h=d.parse(o)}catch(b){return console.warn(b),c?"":e.e(o)}switch(h.type){case"image/tiff":return h.parameters.application==="geotiff"?h.parameters.profile==="cloud-optimized"?c?"COG":"Cloud-Optimized GeoTIFF image":c?"GeoTiff":"GeoTIFF image":c?"TIFF":"TIFF image";case"image/jp2":return c?"JPEG 2000":"JPEG 2000 image";case"image/png":case"image/apng":case"image/vnd.mozilla.apng":return c?"PNG":"PNG image";case"image/gif":return c?"GIF":"GIF image";case"image/jpeg":case"image/jpg":return c?"JPEG":"JPEG image";case"image/webp":return c?"WebP":"WebP image";case"image/bmp":case"image/x-bmp":case"image/x-ms-bmp":case"image/wbmp":return c?"Bitmap":"Bitmap image";case"image/svg+xml":return c?"SVG":"SVG vector image";case"text/csv":return c?"CSV":"Comma-separated values (CSV)";case"text/xml":case"application/xml":return"XML";case"text/json":case"application/json":return"JSON";case"application/x-ndjson":return c?"NDJSON":"Newline Delimited JSON";case"text/yaml":case"text/vnd.yaml":case"text/x-yaml":case"application/x-yaml":return"YAML";case"application/geo+json":return"GeoJSON";case"application/gml+xml":return"GML";case"application/vnd.google-earth.kml+xml":case"application/vnd.google-earth.kmz":return"KML";case"application/geopackage+vnd.sqlite3":case"application/geopackage+sqlite3":return"GeoPackage";case"text/html":case"application/html":case"application/xhtml+xml":return c?"HTML":"HTML (Website)";case"text/plain":return c?"Text":"Text document";case"text/markdown":return c?"Markdown":"Markdown document";case"application/pdf":return c?"PDF":"PDF document";case"application/zip":return c?"ZIP":"ZIP archive";case"application/gzip":return c?"GZIP":"GZIP archive";case"application/x-hdf":return"HDF";case"application/netcdf":case"application/x-netcdf":return"NetCDF";case"application/x.mrf":return c?"MRF":"Meta Raster Format";case"application/wmo-GRIB2":return"GRIB2";case"application/octet-stream":return c?"Binary":"Binary file";case"application/vnd.laszip":return"LASzip";case"application/vnd.laszip+copc":return c?"COPC":"Cloud-Optimized Point Cloud (LASzip)";case"application/vnd+zarr":return"Zarr";case"application/x-parquet":case"application/vnd.apache.parquet":return"Parquet";case"application/vnd.pmtiles":return"PMTiles";case"application/vnd.cov+json":return"CoverageJSON";case"application/vnd.flatgeobuf":return"FlatGeobuf";default:{let[b,D]=h.type.split("/");if(D=e.formatKey(D.replace(/^(vnd|x)[.+-]/,"")),c)return D;switch(b){case"audio":return`${D} audio`;case"image":return`${D} image`;case"font":return"Font";case"model":return`${D} 3D model`;case"video":return`${D} video`;case"text":case"application":return D;default:return o}}}},formatTimestamp(o){if(typeof o=="string")try{return new Date(o).toLocaleString(r.locales,{timeZone:"UTC",timeZoneName:"short"})}catch{}return t.null()},formatPercent0to1(o,s,u={}){return t.number(o*100,u.unit)},formatDate(o){if(typeof o=="string")try{return new Date(o).toLocaleString(r.locales,{day:"numeric",month:"numeric",year:"numeric"})}catch{}return t.null()},formatDuration(o){if(typeof o=="string"){const s=i.getDependency("@musement/iso-duration");if(!s)return e.e(o);const{isoDuration:u,en:c}=s;u.setLocales({en:c},{fallbackLocale:"en"});let d=u(o).humanize("en");return d.length===0?e.e(e.t("none")):e.e(d)}return t.null()},formatLanguageCode(o){if(Array.isArray(o))return e.toList(o,!0,a.formatLanguageCode,!1);if(typeof o!="string"||o.length<2)return t.null();const s=cW,[u,...c]=o.split("-");if(u in s){const d=s[u];return c.length>0?e.e(e.t(`${d} (${c.join(" ")})`)):e.e(e.t(d))}return e.e(e.t(o))},formatLicense(o,s,u={},c=null){if(typeof o!="string"||o.length===0)return t.null();if(o!=="proprietary"&&o!=="various"&&o.match(/^[\w\.\-]+$/i))return e.toLink(`https://spdx.org/licenses/${o}.html`,o,"license");let d=Array.isArray(c.links)?c.links.filter(h=>e.isObject(h)&&typeof h.href=="string"&&h.rel==="license"):[];return d.length>0?e.toList(d,!1,h=>e.toLink(h.href,h.title||o,"license")):t.string(o)},formatProviders(o){return e.toList(o,!1,s=>{let u=s.name,c="",d="";return typeof s.url=="string"&&s.url.length>0&&(u=e.toLink(s.url,u)),Array.isArray(s.roles)&&s.roles.length>0&&(c=s.roles.map(h=>t.format(h)).join(", "),c=` (${c})`),typeof s.description=="string"&&s.description.length>0&&(d=a.formatCommonMark(s.description)),`${u}${c}${d}`})},formatCommonMark(o){if(typeof o!="string"||o.length===0)return t.null();const s=i.getDependency("commonmark");let u;if(s){let c=new s.Parser;u=new s.HtmlRenderer({safe:!a.allowHtmlInCommonMark,smart:!0}).render(c.parse(o))}else a.allowHtmlInCommonMark?u=o:u=e.e(o);return`
        ${u}
        `},formatSoftware(o){if(!e.isObject(o))return t.null();let s=[];for(let u in o){let c=o[u];typeof c=="string"&&c.length>0||typeof c=="number"?s.push(`${u} (${c})`):s.push(u)}return e.toList(s,!0,null,!1)},formatDOI(o){return o=t.format(o),e.toLink(`http://doi.org/${o}`,o)},formatCRS(o){return e.toList(o,!1,s=>{if(typeof s=="string"){let u=s.replace(/^https?:\/\/www\.opengis\.net\/def\/crs\//i,"").replace(/^urn:ogc:def:crs:/i,"");return e.toLink(s,u)}return t.format(s)})},formatEPSG(o){return typeof o=="string"&&(o=o.replace(/^epsg:/i,"")),o=parseInt(o,10),o>0?e.toLink(`http://epsg.io/${o}`,o):t.null()},formatExtent(o,s,u={}){return!Array.isArray(o)||o.length<2?t.null():o[0]===o[1]?t.format(o[0],u.unit):o[0]===null?`< ${t.format(o[1],u.unit)}`:o[1]===null?`> ${t.format(o[0],u.unit)}`:o.map(c=>t.format(c,u.unit)).join(" – ")},formatHexColor(o){return typeof o!="string"||!o.match(/^#?[\dA-F]{3,8}$/i)?t.null():(o.startsWith("#")&&(o=o.substring(1)),`
        #${o}
        `)},formatPROJJSON(o){return e.isObject(o)?e.isObject(o.id)&&o.id.authority==="EPSG"&&typeof o.code=="number"&&o.code>0?"EPSG "+a.formatEPSG(o):typeof o.name=="string"?t.string(o.name):t.object(o):t.null()},formatTemporalExtent(o,s,u={}){let c=u.shorten?a.formatDate:a.formatTimestamp;return!Array.isArray(o)||o.length<2||typeof o[0]!="string"&&typeof o[1]!="string"?t.null():typeof o[0]!="string"?e.t("Until {0}",[c(o[1])]):typeof o[1]!="string"?e.t("{0} until present",[c(o[0])]):o[0]===o[1]?a.formatTimestamp(o[0]):o.map(d=>c(d)).join(" - ")},formatTemporalExtents(o,s,u={}){let c=(d,h)=>d[0]===null?-1:d[0].localeCompare(h[0],r.locales);return e.toList(o,c,d=>a.formatTemporalExtent(d,s,u))},formatWKT2(o){if(typeof o!="string")return t.null();let s=-1,u;try{u=o.replace(/([A-Z]+)\[|\]/ig,(c,d)=>c==="]"?(s--,c):(s++,` -${" ".repeat(s)}${d}[`))}catch{u=o}return`
        ${u}
        `},fileSizeUnits:["B","kB","MB","GB","TB"],formatFileSize(o){if(typeof o!="number")return t.format(o);var s=o==0?0:Math.floor(Math.log(o)/Math.log(1024));return e.unit((o/Math.pow(1024,s)).toFixed(2)*1,a.fileSizeUnits[s])},formatChecksum(o){if(typeof o!="string")return t.null();const s=i.getDependency("multihashes");if(!s)return e.e(o);try{const u=s.decode(e.hexToUint8(o)),c=e.e(u.name);return`

        ${e.t("Hashing algorithm:")} ${c}
        `}catch{return t.null()}},fileDataTypes:{int8:"8-bit integer",int16:"16-bit integer",int32:"32-bit integer",int64:"64-bit integer",uint8:"unsigned 8-bit integer",uint16:"unsigned 16-bit integer",uint32:"unsigned 32-bit integer",uint64:"unsigned 64-bit integer",float16:"16-bit float",float32:"32-bit float",float64:"64-bit float",cint16:"16-bit complex integer",cint32:"32-bit complex integer",cfloat32:"32-bit complex float",cfloat64:"64-bit complex float"},formatFileDataType(o){return o==="other"?e.t("non-standard"):typeof o=="string"&&o in a.fileDataTypes?e.abbrev(e.t(o),e.t(a.fileDataTypes[o])):t.null()},formatTransform(o){if(Array.isArray(o)&&o.length%3===0){let s=[];for(let u=0;u")}else return a.formatCSV(o)},formatShape(o,s,u={}){return Array.isArray(o)?o.map(c=>t.format(c,u.unit)).join(" × "):t.format(o,u.unit)},formatCSV(o){if(Array.isArray(o)){let s=o.find(u=>typeof u=="number")!==void 0;return o.map(t.format).join(s?"; ":", ")}else return t.format(o)},formatImage(o,s){let u="",c=null;if(e.isObject(o))c=o.href,u=o.title||"";else if(typeof o=="string")c=o;else return t.format(c);return``},formatPhone(o){return e.toLink(`tel:${o}`,o)},formatEmail(o){return e.toLink(`mailto:${o}`,o)},formatConcepts(o){return e.toList(o,!1,s=>{if(!e.isObject(s))return t.format(s);let u="";if(s.title){let c=s.title;s.url&&(c=e.toLink(s.url,s.title)),u+=`${c} (${e.e(s.id)})`}else{let c=s.id;s.url&&(c=e.toLink(s.url,s.id)),u+=`${c}`}return s.description&&(u+=`
        ${e.e(s.description)}`),u})},formatAddress(o){return e.toList(o,!1,s=>{if(!e.isObject(s))return t.format(s);let u=Array.isArray(s.deliveryPoint)?s.deliveryPoint.slice(0):[];if(s.postalCode&&s.city){let c=`${s.postalCode} ${s.city}`;s.administrativeArea&&(c+=` (${s.administrativeArea})`),typeof s.country=="string"&&s.country.length>0&&(s.country.length===2&&s.country.toUpperCase()===s.country?(c=s.country+"-"+c,u.push(c)):(u.push(c),u.push(s.country.toUpperCase())))}else s.city&&u.push(s.city),s.administrativeArea&&u.push(s.administrativeArea),s.postalCode&&u.push(s.postalCode),typeof s.country=="string"&&s.country.length>0&&u.push(s.country.toUpperCase());return t.string(u.join(` - -`))})},formatGridCode(o){if(typeof o!="string")return t.format(o);let s=function(h,b,D,C){let x=b.length;if(x%2===1)h.push(`Code: ${b}`);else{let _=x/2,y=b.substring(0,_);h.push(`${D}: ${y}`);let S=b.substring(_,x);h.push(`${C}: ${S}`)}},[u,c]=o.split(/-(.*)/),d=[];switch(u){case"MGRS":d.push(e.abbrev(e.t(u),e.t("Military Grid Reference System")));let[,h,b,D,C]=c.match(/^(\d{2})([C-X])([A-Z]{2})(\d*)$/);d.push(`${e.t("UTM Zone")}: ${h}`),d.push(`${e.t("Latitude Band")}: ${b}`),d.push(`${e.t("Square Identifier")}: ${D}`),C&&s(d,C,e.t("Easting"),e.t("Northing"));break;case"MSIN":d.push(e.t("MODIS Sinusoidal Tile Grid")),s(d,c,e.t("Horizontal"),e.t("Vertical"));break;case"WRS1":case"WRS2":let x=u.substring(3,4);d.push(e.abbrev(e.t("WRS-"+x),e.t("Worldwide Reference System "+x))),s(d,c,e.t("Path"),e.t("Row"));break;case"DOQ":d.push(_abbrev(e.t(u),e.t("Digital Orthophoto Quadrangle"))),d.push(`${e.t("Quadrangle")}: ${c}`);break;case"DOQQ":d.push(_abbrev(e.t(u),e.t("Digital Orthophoto Quarter Quadrangle")));let _=c.substr(0,c.length-2);d.push(`${e.t("Quadrangle")}: ${_}`);let y=c.substr(-2),S=y[0]==="N"?e.t("North"):e.t("South"),m=y[1]==="E"?e.t("East"):e.t("West");d.push(`${e.t("Quarter")}: ${S} ${m}`);break;case"MXRA":d.push(e.t("Maxar ARD Tile Grid"));let[O,q]=c.split(/-(.*)/);O.startsWith("Z")&&(O=O.substring(1)),d.push(`${e.t("UTM Zone")}: ${O}`),d.push(`${e.t("Quadkey")}: ${q}`);break;case"EASE":let[N,P]=c.split("-");if(N==="DGGS"){d.push(e.t("EASE-DGGS"));let[B,H,...te]=P.split(".");if(d.push(`${e.t("Level")}: ${B}`),H.length===6){d.push(`${e.t("Level 0 row cell")}: ${H.substring(0,3)}`),d.push(`${e.t("Level 0 column cell")}: ${H.substring(3,6)}`);for(let re in te){let be=te[re];be.length===2&&(d.push(`${e.t("Fraction of level {i} row cell",{i:re})}: ${be[0]}`),d.push(`${e.t("Fraction of level {i} column cell",{i:re})}: ${be[1]}`))}}break}case"CDEM":let[,T,F]=c.match(/^([A-Z]\d+)([A-Z]\d+)$/);d.push(e.t("Copernicus Digital Elevation Model Grid")),d.push(`${e.t("Easting")}: ${F}`),d.push(`${e.t("Northing")}: ${T}`);default:d.push(o)}return d.join("
        ")}};return Ir=a,Ir}var zr,lR;function pW(){if(lR)return zr;lR=1;const e=Kr,t=At(),r=it(),i=on(),a=IR();function o(y,S,m,O,q){let N={};for(let P in S){let T;try{let F=P.split(/:(.*)/);F.length===1&&F.unshift(q);let B=F[0];if(typeof O=="function"&&!O(P,[P]))continue;T=S[P];let H=e.getSpecification(P,m);H.ext&&(B=H.ext);let te=!1;m==="summaries"&&H.listWithKeys&&Array.isArray(T)&&T.length>0&&(T=T[0],te=!0);let re=null,be=[];if(t.isObject(H.items)){let Q=T;H.listWithKeys&&(Q=Object.values(Q));let le=[];Array.isArray(Q)?le=t.keysFromListOfObjects(Q):t.isObject(Q)&&(le=Object.keys(Q)),re={},be=H.itemOrder.filter(I=>le.includes(I)),le.forEach(I=>{typeof H.items[I]>"u"?(re[I]={label:t.formatKey(I),explain:I},be.push(I)):(re[I]=Object.assign({},H.items[I]),re[I].label=x(I,H.items[I]))})}let se;if(m==="summaries")if(!te&&t.isObject(T))if(typeof T.minimum<"u"&&typeof T.maximum<"u"){const Q=le=>C(le,P,y,S,H,O,[P]);T.minimum===T.maximum?se=Q(T.minimum):T.minimum===null?se=`< ${Q(T.maximum)}`:T.maximum===null?se=`> ${Q(T.minimum)}`:se=`${Q(T.minimum)} – ${Q(T.maximum)}`}else se=i.object(T);else if(e.externalRenderer&&re){let Q=te?Object.assign({},T):T.slice(0);for(let le in Q){let I=t.isObject(Q[le])?{}:[];for(let ee in re)I[ee]=C(Q[le][ee],ee,y,S,re[ee]);Q[le]=I}}else Array.isArray(T)?se=t.toList(T,!H.custom&&!H.items,Q=>C(Q,P,y,S,H)):console.warn(`Invalid summary value: ${T}`);typeof se>"u"&&(se=C(T,P,y,S,H,O,[P])),t.isObject(N[B])||(N[B]={extension:B,label:_(B),properties:{}}),N[B].properties[P]={label:x(P,H),value:T,formatted:se,items:re,itemOrder:be,spec:H}}catch(F){console.error(`Field '${P}' with value '${T}' resulted in an error`,F)}}return Object.values(N).sort((P,T)=>P.extension.localeCompare(T.extension,r.locales))}function s(y,S,m=null,O=""){return o(S,y,"assets",m,O)}function u(y,S,m=null,O=""){return o(S,y,"links",m,O)}function c(y,S,m=null,O=""){return o(S,y,"providers",m,O)}function d(y,S=null,m=""){return o(y,y.summaries,"summaries",S,m)}function h(y,S=null,m=""){return o(y,y,"collection",S,m)}function b(y,S=null,m=""){return o(y,y,"catalog",S,m)}function D(y,S=null,m=""){return o(y,y.properties,"metadata",S,m)}function C(y,S,m=null,O=null,q=null,N=null,P=[]){if(t.isObject(q)||(q=e.getSpecification(S)),typeof q.format=="string"){let T=a[`format${q.format}`];return T||console.warn(`Formatter '${q.format}' not available.`),T(y,S,q,m,O)}else{if(typeof q.formatter=="function")return q.formatter(y,S,q,m,O);if(t.isObject(q.mapping)){let T=String(y);return typeof q.mapping[T]<"u"?y=q.mapping[T]:typeof q.mapping[T.toLowerCase()]<"u"?y=q.mapping[T.toLowerCase()]:typeof q.mapping[T.toUpperCase()]<"u"&&(y=q.mapping[T.toUpperCase()]),i.format(t.t(y),q.unit)}else{if(y===null&&q.null)return i.null(q.null);if(Array.isArray(y)){let T=(F,B)=>C(F,S,m,O,q,N,P.concat([B]));return typeof N=="function"&&P.length>0&&(y=y.filter((F,B)=>N(P[0],P.concat([B])))),e.externalRenderer&&(q.custom||q.items)?y.map(T):t.toList(y,!1,T)}else if(t.isObject(y)){let T=B=>t.isObject(q.items)?q.listWithKeys?{items:q.items,itemOrder:q.itemOrder}:q.items[B]:t.isObject(q.properties)?q.properties[B]:{},F=(B,H,te)=>C(B,H,m,te,T(H),N,P.concat([H]));if(e.externalRenderer&&(q.custom||q.items||q.properties)){let B={};for(let H in y)typeof N=="function"&&P.length>0&&!N(P[0],P.concat([k]))||(B[H]=F(y[H],H,y));return B}else{let B=te=>x(te,T(te)),H=q.listWithKeys?[]:q.itemOrder;return t.toObject(y,F,B,H,N,P)}}else return i.format(y,q.unit)}}}function x(y,S=null){if(t.isObject(S)||(S=e.getSpecification(y)),t.isObject(S)&&typeof S.label=="string"){if(typeof S.explain=="string")return S.explain.match(/^https?:\/\//i)?t.toLink(S.explain,t.t(S.label),"about"):t.abbrev(t.t(S.label),t.t(S.explain));if(typeof S.label=="string")return t.t(S.label)}return t.formatKey(y)}function _(y){return x(y,e.getExtension(y))}return zr={format:C,label:x,extension:_,formatCatalog:b,formatCollection:h,formatSummaries:d,formatItemProperties:D,formatAsset:s,formatLink:u,formatProvider:c,formatGrouped:o},zr}const Xe=Kr;Xe.importFields(cI);Xe.addDependency("@musement/iso-duration",h9);Xe.addDependency("content-type",m9());Xe.addDependency("commonmark",g9());Xe.addDependency("multihashes",HH());var zR={...pW(),Fields:Xe.exportFields(),Registry:Xe,Helper:At(),DataTypes:on(),Formatters:IR(),I18N:it()};const Hr=nI(zR);var fW=Object.defineProperty,dW=Object.getOwnPropertyDescriptor,ke=(e,t,r,i)=>{for(var a=i>1?void 0:i?dW(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(a=(i?s(t,r,a):s(a))||a);return i&&a&&fW(t,r,a),a};let xe=class extends tt{constructor(){super(...arguments),this.header=[],this.tags=[],this.properties=[],this.featured=[],this.footer=[],this.styleOverride="",this.stacInfo=[],this.fetchStac=async e=>{const t=await(await fetch(`${e}?ts=${Date.now()}`)).json();this.stacInfo=await this.parseStac(t),this.dispatchEvent(new CustomEvent("loaded"))},this.parseStac=async e=>{if(e.type==="Catalog")return Hr.formatCatalog(e);if(e.type==="Collection")return Hr.formatCollection(e);if(e.type==="Feature")return Hr.formatItemProperties(e)}}buildProperties(e){zR.Formatters.allowHtmlInCommonMark=this.allowHtml!==void 0;const t=(r,i)=>QB(Object.entries(this.stacProperties).filter(([a])=>r===this.properties&&(!r||r.length<1)?!0:r?.includes(a)).reverse().sort(([a],[o])=>r?.indexOf(a)>r?.indexOf(o)?1:-1),i);return e.length<1?null:(this.stacProperties=e.reduce((r,i)=>({...r,...i.properties}),{}),he` - ${t(this.header).length>0?he` -
        - - ${lt(t(this.header),([,r],i)=>UN` - ${Ge(r.formatted)} - `)} - -
        - `:ae} -
        - ${t(this.tags).length+t(this.properties).length>0?he` -
        -
          - ${lt(t(this.tags),([,r])=>he`
        • - ${Ge(r.formatted)} -
        • `)} -
        -
        -
        -
          - ${lt(t(this.properties),([,r])=>he` - -
        • - ${ut(t(this.properties).length>1,()=>he` - ${r.label}:`)} - - ${ut(r.label.toLowerCase()==="description",()=>he` - - - `,()=>he`${Ge(r.formatted)}`)} - -
        • -
          - `)} -
        -
        - `:ae} - ${t(this.featured,"featured").length>0?he` - - `:ae} -
        - ${t(this.footer).length>0?he` -
        - - ${lt(t(this.footer),([r,i],a)=>UN` - - ${ut(r==="sci:citation",()=>he` - - `)} - `)} - -
        - `:ae} - `)}render(){return he` - - - ${this.buildProperties(this.stacInfo)} - `}updated(e){e.has("for")&&this.fetchStac(this.for)}};ke([_e({attribute:"allow-html"})],xe.prototype,"allowHtml",2);ke([_e({type:Boolean})],xe.prototype,"unstyled",2);ke([_e()],xe.prototype,"for",2);ke([_e({type:Array})],xe.prototype,"header",2);ke([_e({type:Array})],xe.prototype,"tags",2);ke([_e({type:Array})],xe.prototype,"properties",2);ke([_e({type:Array})],xe.prototype,"featured",2);ke([_e({type:Array})],xe.prototype,"footer",2);ke([_e({attribute:"style-override"})],xe.prototype,"styleOverride",2);ke([gR()],xe.prototype,"stacInfo",2);ke([gR()],xe.prototype,"stacProperties",2);xe=ke([mR("eox-stacinfo")],xe);let Wr=class extends tt{render(){return he` -
        ${Ge(this.content)}
        `}};ke([_e()],Wr.prototype,"content",2);Wr=ke([mR("eox-stacinfo-shadow")],Wr);export{xe as EOxStacInfo,Wr as EOxStacInfoShadow}; diff --git a/pr-preview/pr-17/assets/forwardRefs-DzUtZcD3.js b/pr-preview/pr-17/assets/forwardRefs-DzUtZcD3.js deleted file mode 100644 index d7e7145..0000000 --- a/pr-preview/pr-17/assets/forwardRefs-DzUtZcD3.js +++ /dev/null @@ -1 +0,0 @@ -import{p as v,s as w,c as x,w as R,bi as b}from"./index-Dvu417lt.js";class d{constructor(r){let{x:n,y:i,width:s,height:t}=r;this.x=n,this.y=i,this.width=s,this.height=t}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function W(e,r){return{x:{before:Math.max(0,r.left-e.left),after:Math.max(0,e.right-r.right)},y:{before:Math.max(0,r.top-e.top),after:Math.max(0,e.bottom-r.bottom)}}}function O(e){return Array.isArray(e)?new d({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function P(e){const r=e.getBoundingClientRect(),n=getComputedStyle(e),i=n.transform;if(i){let s,t,o,a,f;if(i.startsWith("matrix3d("))s=i.slice(9,-1).split(/, /),t=+s[0],o=+s[5],a=+s[12],f=+s[13];else if(i.startsWith("matrix("))s=i.slice(7,-1).split(/, /),t=+s[0],o=+s[3],a=+s[4],f=+s[5];else return new d(r);const c=n.transformOrigin,u=r.x-a-(1-t)*parseFloat(c),l=r.y-f-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),h=t?r.width/t:e.offsetWidth+1,m=o?r.height/o:e.offsetHeight+1;return new d({x:u,y:l,width:h,height:m})}else return new d(r)}function B(e,r,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let i;try{i=e.animate(r,n)}catch{return{finished:Promise.resolve()}}return typeof i.finished>"u"&&(i.finished=new Promise(s=>{i.onfinish=()=>{s(i)}})),i}const z="cubic-bezier(0.4, 0, 0.2, 1)",I="cubic-bezier(0.0, 0, 0.2, 1)",C="cubic-bezier(0.4, 0, 1, 1)",S=v({eager:Boolean},"lazy");function _(e,r){const n=w(!1),i=x(()=>n.value||e.eager||r.value);R(r,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:i,onAfterLeave:s}}function A(){const r=b("useScopeId").vnode.scopeId;return{scopeId:r?{[r]:""}:void 0}}const p=Symbol("Forwarded refs");function g(e,r){let n=e;for(;n;){const i=Reflect.getOwnPropertyDescriptor(n,r);if(i)return i;n=Object.getPrototypeOf(n)}}function D(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=s-P,j=Math.floor,T=String.fromCharCode,H;function D(c){throw new RangeError(C[c])}function J(c,f){for(var g=c.length,w=[];g--;)w[g]=f(c[g]);return w}function K(c,f){var g=c.split("@"),w="";g.length>1&&(w=g[0]+"@",c=g[1]),c=c.replace($,".");var _=c.split("."),x=J(_,f).join(".");return w+x}function X(c){for(var f=[],g=0,w=c.length,_,x;g=55296&&_<=56319&&g65535&&(f-=65536,g+=T(f>>>10&1023|55296),f=56320|f&1023),g+=T(f),g}).join("")}function e(c){return c-48<10?c-22:c-65<26?c-65:c-97<26?c-97:s}function r(c,f){return c+22+75*(c<26)-((f!=0)<<5)}function t(c,f,g){var w=0;for(c=g?j(c/y):c>>1,c+=j(c/f);c>L*z>>1;w+=s)c=j(c/L);return j(w+(L+1)*c/(c+S))}function o(c){var f=[],g=c.length,w,_=0,x=U,k=M,I,q,A,B,Q,E,O,V,Z;for(I=c.lastIndexOf(F),I<0&&(I=0),q=0;q=128&&D("not-basic"),f.push(c.charCodeAt(q));for(A=I>0?I+1:0;A=g&&D("invalid-input"),O=e(c.charCodeAt(A++)),(O>=s||O>j((d-_)/Q))&&D("overflow"),_+=O*Q,V=E<=k?P:E>=k+z?z:E-k,!(Oj(d/Z)&&D("overflow"),Q*=Z;w=f.length+1,k=t(_-B,w,B==0),j(_/w)>d-x&&D("overflow"),x+=j(_/w),_%=w,f.splice(_++,0,x)}return Y(f)}function i(c){var f,g,w,_,x,k,I,q,A,B,Q,E=[],O,V,Z,re;for(c=X(c),O=c.length,f=U,g=0,x=M,k=0;k=f&&Qj((d-g)/V)&&D("overflow"),g+=(I-f)*V,f=I,k=0;kd&&D("overflow"),Q==f){for(q=g,A=s;B=A<=x?P:A>=x+z?z:A-x,!(q1);M++)S.splice(0,1);d[y]=S.join("")}var U=-1,F=0,R=0,N=-1,$=!1;for(y=0;yF&&(U=N,F=R)):d[y]==="0"&&($=!0,N=y,R=1);R>F&&(U=N,F=R),F>1&&d.splice(U,F,""),s=d.length;var C="";for(d[0]===""&&(C=":"),y=0;y=p.length-1)return!1;var n=p.lastIndexOf(".",m-1);if(n<=0||n>=m-1)return!1;var d=b.list[p.slice(m+1)];return d?d.indexOf(" "+p.slice(n+1,m)+" ")>=0:!1},is:function(p){var m=p.lastIndexOf(".");if(m<=0||m>=p.length-1)return!1;var n=p.lastIndexOf(".",m-1);if(n>=0)return!1;var d=b.list[p.slice(m+1)];return d?d.indexOf(" "+p.slice(0,m)+" ")>=0:!1},get:function(p){var m=p.lastIndexOf(".");if(m<=0||m>=p.length-1)return null;var n=p.lastIndexOf(".",m-1);if(n<=0||n>=m-1)return null;var d=b.list[p.slice(m+1)];return!d||d.indexOf(" "+p.slice(n+1,m)+" ")<0?null:p.slice(n+1)},noConflict:function(){return l.SecondLevelDomains===this&&(l.SecondLevelDomains=v),this}};return b})}(ne)),ne.exports}/*! - * URI.js - Mutating URLs - * - * Version: 1.19.11 - * - * Author: Rodney Rehm - * Web: http://medialize.github.io/URI.js/ - * - * Licensed under - * MIT License http://www.opensource.org/licenses/mit-license - * - */(function(h){(function(l,v){h.exports?h.exports=v(pe(),de(),ge()):l.URI=v(l.punycode,l.IPv6,l.SecondLevelDomains,l)})(W,function(l,v,b,p){var m=p&&p.URI;function n(e,r){var t=arguments.length>=1,o=arguments.length>=2;if(!(this instanceof n))return t?o?new n(e,r):new n(e):new n;if(e===void 0){if(t)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?e=location.href+"":e=""}if(e===null&&t)throw new TypeError("null is not a valid argument for URI");return this.href(e),r!==void 0?this.absoluteTo(r):this}function d(e){return/^[0-9]+$/.test(e)}n.version="1.19.11";var s=n.prototype,P=Object.prototype.hasOwnProperty;function z(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function S(e){return e===void 0?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function y(e){return S(e)==="Array"}function M(e,r){var t={},o,i;if(S(r)==="RegExp")t=null;else if(y(r))for(o=0,i=r.length;o]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,n.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},n.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,n.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},n.hostProtocols=["http","https"],n.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,n.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},n.getDomAttribute=function(e){if(!(!e||!e.nodeName)){var r=e.nodeName.toLowerCase();if(!(r==="input"&&e.type!=="image"))return n.domAttributes[r]}};function N(e){return escape(e)}function $(e){return encodeURIComponent(e).replace(/[!'()*]/g,N).replace(/\*/g,"%2A")}n.encode=$,n.decode=decodeURIComponent,n.iso8859=function(){n.encode=escape,n.decode=unescape},n.unicode=function(){n.encode=$,n.decode=decodeURIComponent},n.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},n.encodeQuery=function(e,r){var t=n.encode(e+"");return r===void 0&&(r=n.escapeQuerySpace),r?t.replace(/%20/g,"+"):t},n.decodeQuery=function(e,r){e+="",r===void 0&&(r=n.escapeQuerySpace);try{return n.decode(r?e.replace(/\+/g,"%20"):e)}catch{return e}};var C={encode:"encode",decode:"decode"},L,j=function(e,r){return function(t){try{return n[r](t+"").replace(n.characters[e][r].expression,function(o){return n.characters[e][r].map[o]})}catch{return t}}};for(L in C)n[L+"PathSegment"]=j("pathname",C[L]),n[L+"UrnPathSegment"]=j("urnpath",C[L]);var T=function(e,r,t){return function(o){var i;t?i=function(f){return n[r](n[t](f))}:i=n[r];for(var a=(o+"").split(e),u=0,c=a.length;u-1&&(r.fragment=e.substring(t+1)||null,e=e.substring(0,t)),t=e.indexOf("?"),t>-1&&(r.query=e.substring(t+1)||null,e=e.substring(0,t)),e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),e=e.replace(/^[/\\]{2,}/i,"//"),e.substring(0,2)==="//"?(r.protocol=null,e=e.substring(2),e=n.parseAuthority(e,r)):(t=e.indexOf(":"),t>-1&&(r.protocol=e.substring(0,t)||null,r.protocol&&!r.protocol.match(n.protocol_expression)?r.protocol=void 0:e.substring(t+1,t+3).replace(/\\/g,"/")==="//"?(e=e.substring(t+3),e=n.parseAuthority(e,r)):(e=e.substring(t+1),r.urn=!0))),r.path=e,r},n.parseHost=function(e,r){e||(e=""),e=e.replace(/\\/g,"/");var t=e.indexOf("/"),o,i;if(t===-1&&(t=e.length),e.charAt(0)==="[")o=e.indexOf("]"),r.hostname=e.substring(1,o)||null,r.port=e.substring(o+2,t)||null,r.port==="/"&&(r.port=null);else{var a=e.indexOf(":"),u=e.indexOf("/"),c=e.indexOf(":",a+1);c!==-1&&(u===-1||c-1?i:e.length-1),u;return a>-1&&(i===-1||a-1?x=x.slice(0,k)+x.slice(k).replace(a,""):x=x.replace(a,""),!(x.length<=f[0].length)&&!(t.ignore&&t.ignore.test(x))){_=g+x.length;var A=r(x,g,_,e);if(A===void 0){o.lastIndex=_;continue}A=String(A),e=e.slice(0,g)+A+e.slice(_),o.lastIndex=g+A.length}}return o.lastIndex=0,e},n.ensureValidHostname=function(e,r){var t=!!e,o=!!r,i=!1;if(o&&(i=U(n.hostProtocols,r)),i&&!t)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(e&&e.match(n.invalid_hostname_characters)){if(!l)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(l.toASCII(e).match(n.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},n.ensureValidPort=function(e){if(e){var r=Number(e);if(!(d(r)&&r>0&&r<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},n.noConflict=function(e){if(e){var r={URI:this.noConflict()};return p.URITemplate&&typeof p.URITemplate.noConflict=="function"&&(r.URITemplate=p.URITemplate.noConflict()),p.IPv6&&typeof p.IPv6.noConflict=="function"&&(r.IPv6=p.IPv6.noConflict()),p.SecondLevelDomains&&typeof p.SecondLevelDomains.noConflict=="function"&&(r.SecondLevelDomains=p.SecondLevelDomains.noConflict()),r}else p.URI===this&&(p.URI=m);return this},s.build=function(e){return e===!0?this._deferred_build=!0:(e===void 0||this._deferred_build)&&(this._string=n.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new n(this)},s.valueOf=s.toString=function(){return this.build(!1)._string};function H(e){return function(r,t){return r===void 0?this._parts[e]||"":(this._parts[e]=r||null,this.build(!t),this)}}function D(e,r){return function(t,o){return t===void 0?this._parts[e]||"":(t!==null&&(t=t+"",t.charAt(0)===r&&(t=t.substring(1))),this._parts[e]=t,this.build(!o),this)}}s.protocol=H("protocol"),s.username=H("username"),s.password=H("password"),s.hostname=H("hostname"),s.port=H("port"),s.query=D("query","?"),s.fragment=D("fragment","#"),s.search=function(e,r){var t=this.query(e,r);return typeof t=="string"&&t.length?"?"+t:t},s.hash=function(e,r){var t=this.fragment(e,r);return typeof t=="string"&&t.length?"#"+t:t},s.pathname=function(e,r){if(e===void 0||e===!0){var t=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?n.decodeUrnPath:n.decodePath)(t):t}else return this._parts.urn?this._parts.path=e?n.recodeUrnPath(e):"":this._parts.path=e?n.recodePath(e):"/",this.build(!r),this},s.path=s.pathname,s.href=function(e,r){var t;if(e===void 0)return this.toString();this._string="",this._parts=n._parts();var o=e instanceof n,i=typeof e=="object"&&(e.hostname||e.path||e.pathname);if(e.nodeName){var a=n.getDomAttribute(e);e=e[a]||"",i=!1}if(!o&&i&&e.pathname!==void 0&&(e=e.toString()),typeof e=="string"||e instanceof String)this._parts=n.parse(String(e),this._parts);else if(o||i){var u=o?e._parts:e;for(t in u)t!=="query"&&P.call(this._parts,t)&&(this._parts[t]=u[t]);u.query&&this.query(u.query,!1)}else throw new TypeError("invalid input");return this.build(!r),this},s.is=function(e){var r=!1,t=!1,o=!1,i=!1,a=!1,u=!1,c=!1,f=!this._parts.urn;switch(this._parts.hostname&&(f=!1,t=n.ip4_expression.test(this._parts.hostname),o=n.ip6_expression.test(this._parts.hostname),r=t||o,i=!r,a=i&&b&&b.has(this._parts.hostname),u=i&&n.idn_expression.test(this._parts.hostname),c=i&&n.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return f;case"absolute":return!f;case"domain":case"name":return i;case"sld":return a;case"ip":return r;case"ip4":case"ipv4":case"inet4":return t;case"ip6":case"ipv6":case"inet6":return o;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var J=s.protocol,K=s.port,X=s.hostname;s.protocol=function(e,r){if(e&&(e=e.replace(/:(\/\/)?$/,""),!e.match(n.protocol_expression)))throw new TypeError('Protocol "'+e+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return J.call(this,e,r)},s.scheme=s.protocol,s.port=function(e,r){return this._parts.urn?e===void 0?"":this:(e!==void 0&&(e===0&&(e=null),e&&(e+="",e.charAt(0)===":"&&(e=e.substring(1)),n.ensureValidPort(e))),K.call(this,e,r))},s.hostname=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e!==void 0){var t={preventInvalidHostname:this._parts.preventInvalidHostname},o=n.parseHost(e,t);if(o!=="/")throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=t.hostname,this._parts.preventInvalidHostname&&n.ensureValidHostname(e,this._parts.protocol)}return X.call(this,e,r)},s.origin=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){var t=this.protocol(),o=this.authority();return o?(t?t+"://":"")+this.authority():""}else{var i=n(e);return this.protocol(i.protocol()).authority(i.authority()).build(!r),this}},s.host=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0)return this._parts.hostname?n.buildHost(this._parts):"";var t=n.parseHost(e,this._parts);if(t!=="/")throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!r),this},s.authority=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0)return this._parts.hostname?n.buildAuthority(this._parts):"";var t=n.parseAuthority(e,this._parts);if(t!=="/")throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!r),this},s.userinfo=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){var t=n.buildUserinfo(this._parts);return t&&t.substring(0,t.length-1)}else return e[e.length-1]!=="@"&&(e+="@"),n.parseUserinfo(e,this._parts),this.build(!r),this},s.resource=function(e,r){var t;return e===void 0?this.path()+this.search()+this.hash():(t=n.parse(e),this._parts.path=t.path,this._parts.query=t.query,this._parts.fragment=t.fragment,this.build(!r),this)},s.subdomain=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,t)||""}else{var o=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,o),a=new RegExp("^"+z(i));if(e&&e.charAt(e.length-1)!=="."&&(e+="."),e.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return e&&n.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!r),this}},s.domain=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(typeof e=="boolean"&&(r=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.match(/\./g);if(t&&t.length<2)return this._parts.hostname;var o=this._parts.hostname.length-this.tld(r).length-1;return o=this._parts.hostname.lastIndexOf(".",o-1)+1,this._parts.hostname.substring(o)||""}else{if(!e)throw new TypeError("cannot set domain empty");if(e.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(n.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(z(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!r),this}},s.tld=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(typeof e=="boolean"&&(r=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(t+1);return r!==!0&&b&&b.list[o.toLowerCase()]&&b.get(this._parts.hostname)||o}else{var i;if(e)if(e.match(/[^a-zA-Z0-9-]/))if(b&&b.is(e))i=new RegExp(z(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e);else throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(z(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else throw new TypeError("cannot set TLD empty");return this.build(!r),this}},s.directory=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0||e===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var t=this._parts.path.length-this.filename().length-1,o=this._parts.path.substring(0,t)||(this._parts.hostname?"/":"");return e?n.decodePath(o):o}else{var i=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,i),u=new RegExp("^"+z(a));return this.is("relative")||(e||(e="/"),e.charAt(0)!=="/"&&(e="/"+e)),e&&e.charAt(e.length-1)!=="/"&&(e+="/"),e=n.recodePath(e),this._parts.path=this._parts.path.replace(u,e),this.build(!r),this}},s.filename=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(typeof e!="string"){if(!this._parts.path||this._parts.path==="/")return"";var t=this._parts.path.lastIndexOf("/"),o=this._parts.path.substring(t+1);return e?n.decodePathSegment(o):o}else{var i=!1;e.charAt(0)==="/"&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var a=new RegExp(z(this.filename())+"$");return e=n.recodePath(e),this._parts.path=this._parts.path.replace(a,e),i?this.normalizePath(r):this.build(!r),this}},s.suffix=function(e,r){if(this._parts.urn)return e===void 0?"":this;if(e===void 0||e===!0){if(!this._parts.path||this._parts.path==="/")return"";var t=this.filename(),o=t.lastIndexOf("."),i,a;return o===-1?"":(i=t.substring(o+1),a=/^[a-z0-9%]+$/i.test(i)?i:"",e?n.decodePathSegment(a):a)}else{e.charAt(0)==="."&&(e=e.substring(1));var u=this.suffix(),c;if(u)e?c=new RegExp(z(u)+"$"):c=new RegExp(z("."+u)+"$");else{if(!e)return this;this._parts.path+="."+n.recodePath(e)}return c&&(e=n.recodePath(e),this._parts.path=this._parts.path.replace(c,e)),this.build(!r),this}},s.segment=function(e,r,t){var o=this._parts.urn?":":"/",i=this.path(),a=i.substring(0,1)==="/",u=i.split(o);if(e!==void 0&&typeof e!="number"&&(t=r,r=e,e=void 0),e!==void 0&&typeof e!="number")throw new Error('Bad segment "'+e+'", must be 0-based integer');if(a&&u.shift(),e<0&&(e=Math.max(u.length+e,0)),r===void 0)return e===void 0?u:u[e];if(e===null||u[e]===void 0)if(y(r)){u=[];for(var c=0,f=r.length;c{if(b.rel==="item"&&"latlng"in b){const[p,m]=b.latlng.split(",").map(n=>Number(n));l.push({type:"Feature",geometry:{type:"Point",coordinates:[m,p]}})}}),{type:"FeatureCollection",crs:{type:"name",properties:{name:"EPSG:4326"}},features:l}}function ke(h){let l;return h?.jsonform&&(l={schema:h.jsonform,type:"style"},delete h.jsonform),{layerConfig:l,style:h}}const ze=h=>{h?.["proj:epsg"]?(ee.value&&ee.value!==h?.["proj:epsg"]&&oe(h["proj:epsg"]),ee.value=h["proj:epsg"]):oe(ee.value="")};function Pe(h,l){const v=[];return h?.links&&h?.links[1].rel==="item"?v.push(l):h?.links[1].rel==="child"&&h.links.forEach(b=>{b.rel==="child"&&v.push(fe(b.href,l))}),v}const Ie=(h,l)=>{l?.forEach(v=>(v==="visible"&&(h.visible=!0),(v==="overlay"||v==="baselayer")&&(h.group=v),h))},Ae=async(h,l)=>{const v=h.links.find(b=>b.rel.includes("style"));if(v){let b="";return v.href.startsWith("http")?b=v.href:b=fe(v.href,l),await le.get(b).then(m=>m.data)}};export{ue as U,Ie as a,we as b,ke as c,Pe as e,Ae as f,xe as g,ze as s,fe as t}; diff --git a/pr-preview/pr-17/assets/index-C2upG_DK.css b/pr-preview/pr-17/assets/index-C2upG_DK.css deleted file mode 100644 index fef33c6..0000000 --- a/pr-preview/pr-17/assets/index-C2upG_DK.css +++ /dev/null @@ -1,5 +0,0 @@ -@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important}.bg-black{color:#fff!important}.bg-white{background-color:#fff!important}.bg-white{color:#000!important}.bg-transparent{background-color:transparent!important}.bg-transparent{color:currentColor!important}.bg-red{background-color:#f44336!important}.bg-red{color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important}.bg-red-lighten-5{color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important}.bg-red-lighten-4{color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important}.bg-red-lighten-3{color:#000!important}.bg-red-lighten-2{background-color:#e57373!important}.bg-red-lighten-2{color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important}.bg-red-lighten-1{color:#fff!important}.bg-red-darken-1{background-color:#e53935!important}.bg-red-darken-1{color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important}.bg-red-darken-2{color:#fff!important}.bg-red-darken-3{background-color:#c62828!important}.bg-red-darken-3{color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important}.bg-red-darken-4{color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important}.bg-red-accent-1{color:#000!important}.bg-red-accent-2{background-color:#ff5252!important}.bg-red-accent-2{color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important}.bg-red-accent-3{color:#fff!important}.bg-red-accent-4{background-color:#d50000!important}.bg-red-accent-4{color:#fff!important}.bg-pink{background-color:#e91e63!important}.bg-pink{color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important}.bg-pink-lighten-5{color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important}.bg-pink-lighten-4{color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important}.bg-pink-lighten-3{color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important}.bg-pink-lighten-2{color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important}.bg-pink-lighten-1{color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important}.bg-pink-darken-1{color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important}.bg-pink-darken-2{color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important}.bg-pink-darken-3{color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important}.bg-pink-darken-4{color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important}.bg-pink-accent-1{color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important}.bg-pink-accent-2{color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important}.bg-pink-accent-3{color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important}.bg-pink-accent-4{color:#fff!important}.bg-purple{background-color:#9c27b0!important}.bg-purple{color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important}.bg-purple-lighten-5{color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important}.bg-purple-lighten-4{color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important}.bg-purple-lighten-3{color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important}.bg-purple-lighten-2{color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important}.bg-purple-lighten-1{color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important}.bg-purple-darken-1{color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important}.bg-purple-darken-2{color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important}.bg-purple-darken-3{color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important}.bg-purple-darken-4{color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important}.bg-purple-accent-1{color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important}.bg-purple-accent-2{color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important}.bg-purple-accent-3{color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important}.bg-purple-accent-4{color:#fff!important}.bg-deep-purple{background-color:#673ab7!important}.bg-deep-purple{color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important}.bg-deep-purple-lighten-5{color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important}.bg-deep-purple-lighten-4{color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important}.bg-deep-purple-lighten-3{color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important}.bg-deep-purple-lighten-2{color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important}.bg-deep-purple-lighten-1{color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important}.bg-deep-purple-darken-1{color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important}.bg-deep-purple-darken-2{color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important}.bg-deep-purple-darken-3{color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important}.bg-deep-purple-darken-4{color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important}.bg-deep-purple-accent-1{color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important}.bg-deep-purple-accent-2{color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important}.bg-deep-purple-accent-3{color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important}.bg-deep-purple-accent-4{color:#fff!important}.bg-indigo{background-color:#3f51b5!important}.bg-indigo{color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important}.bg-indigo-lighten-5{color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important}.bg-indigo-lighten-4{color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important}.bg-indigo-lighten-3{color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important}.bg-indigo-lighten-2{color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important}.bg-indigo-lighten-1{color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important}.bg-indigo-darken-1{color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important}.bg-indigo-darken-2{color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important}.bg-indigo-darken-3{color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important}.bg-indigo-darken-4{color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important}.bg-indigo-accent-1{color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important}.bg-indigo-accent-2{color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important}.bg-indigo-accent-3{color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important}.bg-indigo-accent-4{color:#fff!important}.bg-blue{background-color:#2196f3!important}.bg-blue{color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important}.bg-blue-lighten-5{color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important}.bg-blue-lighten-4{color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important}.bg-blue-lighten-3{color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important}.bg-blue-lighten-2{color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important}.bg-blue-lighten-1{color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important}.bg-blue-darken-1{color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important}.bg-blue-darken-2{color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important}.bg-blue-darken-3{color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important}.bg-blue-darken-4{color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important}.bg-blue-accent-1{color:#000!important}.bg-blue-accent-2{background-color:#448aff!important}.bg-blue-accent-2{color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important}.bg-blue-accent-3{color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important}.bg-blue-accent-4{color:#fff!important}.bg-light-blue{background-color:#03a9f4!important}.bg-light-blue{color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important}.bg-light-blue-lighten-5{color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important}.bg-light-blue-lighten-4{color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important}.bg-light-blue-lighten-3{color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important}.bg-light-blue-lighten-2{color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important}.bg-light-blue-lighten-1{color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important}.bg-light-blue-darken-1{color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important}.bg-light-blue-darken-2{color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important}.bg-light-blue-darken-3{color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important}.bg-light-blue-darken-4{color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important}.bg-light-blue-accent-1{color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important}.bg-light-blue-accent-2{color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important}.bg-light-blue-accent-3{color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important}.bg-light-blue-accent-4{color:#fff!important}.bg-cyan{background-color:#00bcd4!important}.bg-cyan{color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important}.bg-cyan-lighten-5{color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important}.bg-cyan-lighten-4{color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important}.bg-cyan-lighten-3{color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important}.bg-cyan-lighten-2{color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important}.bg-cyan-lighten-1{color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important}.bg-cyan-darken-1{color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important}.bg-cyan-darken-2{color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important}.bg-cyan-darken-3{color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important}.bg-cyan-darken-4{color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important}.bg-cyan-accent-1{color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important}.bg-cyan-accent-2{color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important}.bg-cyan-accent-3{color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important}.bg-cyan-accent-4{color:#fff!important}.bg-teal{background-color:#009688!important}.bg-teal{color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important}.bg-teal-lighten-5{color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important}.bg-teal-lighten-4{color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important}.bg-teal-lighten-3{color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important}.bg-teal-lighten-2{color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important}.bg-teal-lighten-1{color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important}.bg-teal-darken-1{color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important}.bg-teal-darken-2{color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important}.bg-teal-darken-3{color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important}.bg-teal-darken-4{color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important}.bg-teal-accent-1{color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important}.bg-teal-accent-2{color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important}.bg-teal-accent-3{color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important}.bg-teal-accent-4{color:#fff!important}.bg-green{background-color:#4caf50!important}.bg-green{color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important}.bg-green-lighten-5{color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important}.bg-green-lighten-4{color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important}.bg-green-lighten-3{color:#000!important}.bg-green-lighten-2{background-color:#81c784!important}.bg-green-lighten-2{color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important}.bg-green-lighten-1{color:#fff!important}.bg-green-darken-1{background-color:#43a047!important}.bg-green-darken-1{color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important}.bg-green-darken-2{color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important}.bg-green-darken-3{color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important}.bg-green-darken-4{color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important}.bg-green-accent-1{color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important}.bg-green-accent-2{color:#000!important}.bg-green-accent-3{background-color:#00e676!important}.bg-green-accent-3{color:#000!important}.bg-green-accent-4{background-color:#00c853!important}.bg-green-accent-4{color:#000!important}.bg-light-green{background-color:#8bc34a!important}.bg-light-green{color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important}.bg-light-green-lighten-5{color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important}.bg-light-green-lighten-4{color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important}.bg-light-green-lighten-3{color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important}.bg-light-green-lighten-2{color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important}.bg-light-green-lighten-1{color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important}.bg-light-green-darken-1{color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important}.bg-light-green-darken-2{color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important}.bg-light-green-darken-3{color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important}.bg-light-green-darken-4{color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important}.bg-light-green-accent-1{color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important}.bg-light-green-accent-2{color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important}.bg-light-green-accent-3{color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important}.bg-light-green-accent-4{color:#000!important}.bg-lime{background-color:#cddc39!important}.bg-lime{color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important}.bg-lime-lighten-5{color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important}.bg-lime-lighten-4{color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important}.bg-lime-lighten-3{color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important}.bg-lime-lighten-2{color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important}.bg-lime-lighten-1{color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important}.bg-lime-darken-1{color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important}.bg-lime-darken-2{color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important}.bg-lime-darken-3{color:#fff!important}.bg-lime-darken-4{background-color:#827717!important}.bg-lime-darken-4{color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important}.bg-lime-accent-1{color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important}.bg-lime-accent-2{color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important}.bg-lime-accent-3{color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important}.bg-lime-accent-4{color:#000!important}.bg-yellow{background-color:#ffeb3b!important}.bg-yellow{color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important}.bg-yellow-lighten-5{color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important}.bg-yellow-lighten-4{color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important}.bg-yellow-lighten-3{color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important}.bg-yellow-lighten-2{color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important}.bg-yellow-lighten-1{color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important}.bg-yellow-darken-1{color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important}.bg-yellow-darken-2{color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important}.bg-yellow-darken-3{color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important}.bg-yellow-darken-4{color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important}.bg-yellow-accent-1{color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important}.bg-yellow-accent-2{color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important}.bg-yellow-accent-3{color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important}.bg-yellow-accent-4{color:#000!important}.bg-amber{background-color:#ffc107!important}.bg-amber{color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important}.bg-amber-lighten-5{color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important}.bg-amber-lighten-4{color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important}.bg-amber-lighten-3{color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important}.bg-amber-lighten-2{color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important}.bg-amber-lighten-1{color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important}.bg-amber-darken-1{color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important}.bg-amber-darken-2{color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important}.bg-amber-darken-3{color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important}.bg-amber-darken-4{color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important}.bg-amber-accent-1{color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important}.bg-amber-accent-2{color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important}.bg-amber-accent-3{color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important}.bg-amber-accent-4{color:#000!important}.bg-orange{background-color:#ff9800!important}.bg-orange{color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important}.bg-orange-lighten-5{color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important}.bg-orange-lighten-4{color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important}.bg-orange-lighten-3{color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important}.bg-orange-lighten-2{color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important}.bg-orange-lighten-1{color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important}.bg-orange-darken-1{color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important}.bg-orange-darken-2{color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important}.bg-orange-darken-3{color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important}.bg-orange-darken-4{color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important}.bg-orange-accent-1{color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important}.bg-orange-accent-2{color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important}.bg-orange-accent-3{color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important}.bg-orange-accent-4{color:#fff!important}.bg-deep-orange{background-color:#ff5722!important}.bg-deep-orange{color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important}.bg-deep-orange-lighten-5{color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important}.bg-deep-orange-lighten-4{color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important}.bg-deep-orange-lighten-3{color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important}.bg-deep-orange-lighten-2{color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important}.bg-deep-orange-lighten-1{color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important}.bg-deep-orange-darken-1{color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important}.bg-deep-orange-darken-2{color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important}.bg-deep-orange-darken-3{color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important}.bg-deep-orange-darken-4{color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important}.bg-deep-orange-accent-1{color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important}.bg-deep-orange-accent-2{color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important}.bg-deep-orange-accent-3{color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important}.bg-deep-orange-accent-4{color:#fff!important}.bg-brown{background-color:#795548!important}.bg-brown{color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important}.bg-brown-lighten-5{color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important}.bg-brown-lighten-4{color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important}.bg-brown-lighten-3{color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important}.bg-brown-lighten-2{color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important}.bg-brown-lighten-1{color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important}.bg-brown-darken-1{color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important}.bg-brown-darken-2{color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important}.bg-brown-darken-3{color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important}.bg-brown-darken-4{color:#fff!important}.bg-blue-grey{background-color:#607d8b!important}.bg-blue-grey{color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important}.bg-blue-grey-lighten-5{color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important}.bg-blue-grey-lighten-4{color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important}.bg-blue-grey-lighten-3{color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important}.bg-blue-grey-lighten-2{color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important}.bg-blue-grey-lighten-1{color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important}.bg-blue-grey-darken-1{color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important}.bg-blue-grey-darken-2{color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important}.bg-blue-grey-darken-3{color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important}.bg-blue-grey-darken-4{color:#fff!important}.bg-grey{background-color:#9e9e9e!important}.bg-grey{color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important}.bg-grey-lighten-5{color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important}.bg-grey-lighten-4{color:#000!important}.bg-grey-lighten-3{background-color:#eee!important}.bg-grey-lighten-3{color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important}.bg-grey-lighten-2{color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important}.bg-grey-lighten-1{color:#000!important}.bg-grey-darken-1{background-color:#757575!important}.bg-grey-darken-1{color:#fff!important}.bg-grey-darken-2{background-color:#616161!important}.bg-grey-darken-2{color:#fff!important}.bg-grey-darken-3{background-color:#424242!important}.bg-grey-darken-3{color:#fff!important}.bg-grey-darken-4{background-color:#212121!important}.bg-grey-darken-4{color:#fff!important}.bg-shades-black{background-color:#000!important}.bg-shades-black{color:#fff!important}.bg-shades-white{background-color:#fff!important}.bg-shades-white{color:#000!important}.bg-shades-transparent{background-color:transparent!important}.bg-shades-transparent{color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! - * ress.css • v2.0.4 - * MIT License - * github.com/filipelinhares/ress - */html{box-sizing:border-box;overflow-y:scroll;-webkit-text-size-adjust:100%;word-break:normal;-moz-tab-size:4;tab-size:4}*,:before,:after{background-repeat:no-repeat;box-sizing:inherit}:before,:after{text-decoration:inherit;vertical-align:inherit}*{padding:0;margin:0}hr{overflow:visible;height:0}details,main{display:block}summary{display:list-item}small{font-size:80%}[hidden]{display:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}a{background-color:transparent}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}pre{font-size:1em}b,strong{font-weight:bolder}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}input{border-radius:0}[disabled]{cursor:default}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit],[role=button]{cursor:pointer;color:inherit}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{outline:1px dotted ButtonText}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,input,select,textarea{background-color:transparent;border-style:none}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;white-space:normal;max-width:100%}::-webkit-file-upload-button{-webkit-appearance:button;color:inherit;font:inherit}::-ms-clear,::-ms-reveal{display:none}img{border-style:none}progress{vertical-align:baseline}@media screen{[hidden~=screen]{display:inherit}[hidden~=screen]:not(:active):not(:focus):not(:target){position:absolute!important;clip:rect(0 0 0 0)!important}}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled=true]{cursor:default}.dialog-transition-enter-active,.dialog-bottom-transition-enter-active,.dialog-top-transition-enter-active{transition-duration:225ms!important;transition-timing-function:cubic-bezier(0,0,.2,1)!important}.dialog-transition-leave-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-leave-active{transition-duration:125ms!important;transition-timing-function:cubic-bezier(.4,0,1,1)!important}.dialog-transition-enter-active,.dialog-transition-leave-active,.dialog-bottom-transition-enter-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-enter-active,.dialog-top-transition-leave-active{transition-property:transform,opacity!important;pointer-events:none}.dialog-transition-enter-from,.dialog-transition-leave-to{transform:scale(.9);opacity:0}.dialog-transition-enter-to,.dialog-transition-leave-from{opacity:1}.dialog-bottom-transition-enter-from,.dialog-bottom-transition-leave-to{transform:translateY(calc(50vh + 50%))}.dialog-top-transition-enter-from,.dialog-top-transition-leave-to{transform:translateY(calc(-50vh - 50%))}.picker-transition-enter-active,.picker-reverse-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move,.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from,.picker-transition-leave-to,.picker-reverse-transition-enter-from,.picker-reverse-transition-leave-to{opacity:0}.picker-transition-leave-from,.picker-transition-leave-active,.picker-transition-leave-to,.picker-reverse-transition-leave-from,.picker-reverse-transition-leave-active,.picker-reverse-transition-leave-to{position:absolute!important}.picker-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-property:transform,opacity!important}.picker-transition-enter-active,.picker-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from{transform:translate(100%)}.picker-transition-leave-to{transform:translate(-100%)}.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-enter-from{transform:translate(-100%)}.picker-reverse-transition-leave-to{transform:translate(100%)}.expand-transition-enter-active,.expand-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-enter-active,.expand-transition-leave-active{transition-property:height!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-property:width!important}.scale-transition-enter-active,.scale-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-leave-to{opacity:0}.scale-transition-leave-active{transition-duration:.1s!important}.scale-transition-enter-from{opacity:0;transform:scale(0)}.scale-transition-enter-active,.scale-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-leave-to{opacity:0}.scale-rotate-transition-leave-active{transition-duration:.1s!important}.scale-rotate-transition-enter-from{opacity:0;transform:scale(0) rotate(-45deg)}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-leave-to{opacity:0}.scale-rotate-reverse-transition-leave-active{transition-duration:.1s!important}.scale-rotate-reverse-transition-enter-from{opacity:0;transform:scale(0) rotate(45deg)}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-property:transform,opacity!important}.message-transition-enter-active,.message-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-enter-from,.message-transition-leave-to{opacity:0;transform:translateY(-15px)}.message-transition-leave-from,.message-transition-leave-active{position:absolute}.message-transition-enter-active,.message-transition-leave-active{transition-property:transform,opacity!important}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-enter-from,.slide-y-transition-leave-to{opacity:0;transform:translateY(-15px)}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-property:transform,opacity!important}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-enter-from,.slide-y-reverse-transition-leave-to{opacity:0;transform:translateY(15px)}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-enter-from,.scroll-y-transition-leave-to{opacity:0}.scroll-y-transition-enter-from{transform:translateY(-15px)}.scroll-y-transition-leave-to{transform:translateY(15px)}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-enter-from,.scroll-y-reverse-transition-leave-to{opacity:0}.scroll-y-reverse-transition-enter-from{transform:translateY(15px)}.scroll-y-reverse-transition-leave-to{transform:translateY(-15px)}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-enter-from,.scroll-x-transition-leave-to{opacity:0}.scroll-x-transition-enter-from{transform:translate(-15px)}.scroll-x-transition-leave-to{transform:translate(15px)}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-enter-from,.scroll-x-reverse-transition-leave-to{opacity:0}.scroll-x-reverse-transition-enter-from{transform:translate(15px)}.scroll-x-reverse-transition-leave-to{transform:translate(-15px)}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-enter-from,.slide-x-transition-leave-to{opacity:0;transform:translate(-15px)}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-property:transform,opacity!important}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-enter-from,.slide-x-reverse-transition-leave-to{opacity:0;transform:translate(15px)}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-enter-from,.fade-transition-leave-to{opacity:0!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-property:opacity!important}.fab-transition-enter-active,.fab-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-enter-from,.fab-transition-leave-to{transform:scale(0) rotate(-45deg)}.fab-transition-enter-active,.fab-transition-leave-active{transition-property:transform!important}.v-locale--is-rtl{direction:rtl}.v-locale--is-ltr{direction:ltr}.blockquote{padding:16px 0 16px 24px;font-size:18px;font-weight:300}html{font-family:Roboto,sans-serif;line-height:1.5;font-size:1rem;overflow-x:hidden;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:rgba(0,0,0,0)}html.overflow-y-hidden{overflow-y:hidden!important}:root{--v-theme-overlay-multiplier: 1;--v-scrollbar-offset: 0px}@supports (-webkit-touch-callout: none){body{cursor:pointer}}@media only print{.hidden-print-only{display:none!important}}@media only screen{.hidden-screen-only{display:none!important}}@media (max-width: 599.98px){.hidden-xs{display:none!important}}@media (min-width: 600px) and (max-width: 959.98px){.hidden-sm{display:none!important}}@media (min-width: 960px) and (max-width: 1279.98px){.hidden-md{display:none!important}}@media (min-width: 1280px) and (max-width: 1919.98px){.hidden-lg{display:none!important}}@media (min-width: 1920px) and (max-width: 2559.98px){.hidden-xl{display:none!important}}@media (min-width: 2560px){.hidden-xxl{display:none!important}}@media (min-width: 600px){.hidden-sm-and-up{display:none!important}}@media (min-width: 960px){.hidden-md-and-up{display:none!important}}@media (min-width: 1280px){.hidden-lg-and-up{display:none!important}}@media (min-width: 1920px){.hidden-xl-and-up{display:none!important}}@media (max-width: 959.98px){.hidden-sm-and-down{display:none!important}}@media (max-width: 1279.98px){.hidden-md-and-down{display:none!important}}@media (max-width: 1919.98px){.hidden-lg-and-down{display:none!important}}@media (max-width: 2559.98px){.hidden-xl-and-down{display:none!important}}.elevation-24{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-23{box-shadow:0 11px 14px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 23px 36px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 44px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-22{box-shadow:0 10px 14px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 22px 35px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 42px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-21{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 21px 33px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 40px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-20{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 20px 31px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 38px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-19{box-shadow:0 9px 12px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 19px 29px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 36px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-18{box-shadow:0 9px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 18px 28px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 34px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-17{box-shadow:0 8px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 17px 26px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 32px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-16{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-15{box-shadow:0 8px 9px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 15px 22px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 28px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-14{box-shadow:0 7px 9px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 14px 21px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 26px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-13{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 13px 19px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 24px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-12{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 12px 17px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 22px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-11{box-shadow:0 6px 7px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 11px 15px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 20px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-10{box-shadow:0 6px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 10px 14px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 18px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-9{box-shadow:0 5px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 9px 12px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 16px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-8{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-7{box-shadow:0 4px 5px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 7px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 2px 16px 1px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-6{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-5{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 5px 8px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 14px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-4{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-3{box-shadow:0 3px 3px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 3px 4px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 8px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-2{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-1{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-0{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.d-sr-only,.d-sr-only-focusable:not(:focus){border:0!important;clip:rect(0,0,0,0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-scroll{overflow-y:scroll!important}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.float-none{float:none!important}.float-left{float:left!important}.float-right{float:right!important}.v-locale--is-rtl .float-end{float:left!important}.v-locale--is-rtl .float-start,.v-locale--is-ltr .float-end{float:right!important}.v-locale--is-ltr .float-start{float:left!important}.flex-fill,.flex-1-1{flex:1 1 auto!important}.flex-1-0{flex:1 0 auto!important}.flex-0-1{flex:0 1 auto!important}.flex-0-0{flex:0 0 auto!important}.flex-1-1-100{flex:1 1 100%!important}.flex-1-0-100{flex:1 0 100%!important}.flex-0-1-100{flex:0 1 100%!important}.flex-0-0-100{flex:0 0 100%!important}.flex-1-1-0{flex:1 1 0!important}.flex-1-0-0{flex:1 0 0!important}.flex-0-1-0{flex:0 1 0!important}.flex-0-0-0{flex:0 0 0!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-space-between{justify-content:space-between!important}.justify-space-around{justify-content:space-around!important}.justify-space-evenly{justify-content:space-evenly!important}.align-start{align-items:flex-start!important}.align-end{align-items:flex-end!important}.align-center{align-items:center!important}.align-baseline{align-items:baseline!important}.align-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-space-between{align-content:space-between!important}.align-content-space-around{align-content:space-around!important}.align-content-space-evenly{align-content:space-evenly!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-6{order:6!important}.order-7{order:7!important}.order-8{order:8!important}.order-9{order:9!important}.order-10{order:10!important}.order-11{order:11!important}.order-12{order:12!important}.order-last{order:13!important}.ga-0{gap:0px!important}.ga-1{gap:4px!important}.ga-2{gap:8px!important}.ga-3{gap:12px!important}.ga-4{gap:16px!important}.ga-5{gap:20px!important}.ga-6{gap:24px!important}.ga-7{gap:28px!important}.ga-8{gap:32px!important}.ga-9{gap:36px!important}.ga-10{gap:40px!important}.ga-11{gap:44px!important}.ga-12{gap:48px!important}.ga-13{gap:52px!important}.ga-14{gap:56px!important}.ga-15{gap:60px!important}.ga-16{gap:64px!important}.ga-auto{gap:auto!important}.gr-0{row-gap:0px!important}.gr-1{row-gap:4px!important}.gr-2{row-gap:8px!important}.gr-3{row-gap:12px!important}.gr-4{row-gap:16px!important}.gr-5{row-gap:20px!important}.gr-6{row-gap:24px!important}.gr-7{row-gap:28px!important}.gr-8{row-gap:32px!important}.gr-9{row-gap:36px!important}.gr-10{row-gap:40px!important}.gr-11{row-gap:44px!important}.gr-12{row-gap:48px!important}.gr-13{row-gap:52px!important}.gr-14{row-gap:56px!important}.gr-15{row-gap:60px!important}.gr-16{row-gap:64px!important}.gr-auto{row-gap:auto!important}.gc-0{column-gap:0px!important}.gc-1{column-gap:4px!important}.gc-2{column-gap:8px!important}.gc-3{column-gap:12px!important}.gc-4{column-gap:16px!important}.gc-5{column-gap:20px!important}.gc-6{column-gap:24px!important}.gc-7{column-gap:28px!important}.gc-8{column-gap:32px!important}.gc-9{column-gap:36px!important}.gc-10{column-gap:40px!important}.gc-11{column-gap:44px!important}.gc-12{column-gap:48px!important}.gc-13{column-gap:52px!important}.gc-14{column-gap:56px!important}.gc-15{column-gap:60px!important}.gc-16{column-gap:64px!important}.gc-auto{column-gap:auto!important}.ma-0{margin:0!important}.ma-1{margin:4px!important}.ma-2{margin:8px!important}.ma-3{margin:12px!important}.ma-4{margin:16px!important}.ma-5{margin:20px!important}.ma-6{margin:24px!important}.ma-7{margin:28px!important}.ma-8{margin:32px!important}.ma-9{margin:36px!important}.ma-10{margin:40px!important}.ma-11{margin:44px!important}.ma-12{margin:48px!important}.ma-13{margin:52px!important}.ma-14{margin:56px!important}.ma-15{margin:60px!important}.ma-16{margin:64px!important}.ma-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:4px!important;margin-left:4px!important}.mx-2{margin-right:8px!important;margin-left:8px!important}.mx-3{margin-right:12px!important;margin-left:12px!important}.mx-4{margin-right:16px!important;margin-left:16px!important}.mx-5{margin-right:20px!important;margin-left:20px!important}.mx-6{margin-right:24px!important;margin-left:24px!important}.mx-7{margin-right:28px!important;margin-left:28px!important}.mx-8{margin-right:32px!important;margin-left:32px!important}.mx-9{margin-right:36px!important;margin-left:36px!important}.mx-10{margin-right:40px!important;margin-left:40px!important}.mx-11{margin-right:44px!important;margin-left:44px!important}.mx-12{margin-right:48px!important;margin-left:48px!important}.mx-13{margin-right:52px!important;margin-left:52px!important}.mx-14{margin-right:56px!important;margin-left:56px!important}.mx-15{margin-right:60px!important;margin-left:60px!important}.mx-16{margin-right:64px!important;margin-left:64px!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:4px!important;margin-bottom:4px!important}.my-2{margin-top:8px!important;margin-bottom:8px!important}.my-3{margin-top:12px!important;margin-bottom:12px!important}.my-4{margin-top:16px!important;margin-bottom:16px!important}.my-5{margin-top:20px!important;margin-bottom:20px!important}.my-6{margin-top:24px!important;margin-bottom:24px!important}.my-7{margin-top:28px!important;margin-bottom:28px!important}.my-8{margin-top:32px!important;margin-bottom:32px!important}.my-9{margin-top:36px!important;margin-bottom:36px!important}.my-10{margin-top:40px!important;margin-bottom:40px!important}.my-11{margin-top:44px!important;margin-bottom:44px!important}.my-12{margin-top:48px!important;margin-bottom:48px!important}.my-13{margin-top:52px!important;margin-bottom:52px!important}.my-14{margin-top:56px!important;margin-bottom:56px!important}.my-15{margin-top:60px!important;margin-bottom:60px!important}.my-16{margin-top:64px!important;margin-bottom:64px!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:4px!important}.mt-2{margin-top:8px!important}.mt-3{margin-top:12px!important}.mt-4{margin-top:16px!important}.mt-5{margin-top:20px!important}.mt-6{margin-top:24px!important}.mt-7{margin-top:28px!important}.mt-8{margin-top:32px!important}.mt-9{margin-top:36px!important}.mt-10{margin-top:40px!important}.mt-11{margin-top:44px!important}.mt-12{margin-top:48px!important}.mt-13{margin-top:52px!important}.mt-14{margin-top:56px!important}.mt-15{margin-top:60px!important}.mt-16{margin-top:64px!important}.mt-auto{margin-top:auto!important}.mr-0{margin-right:0!important}.mr-1{margin-right:4px!important}.mr-2{margin-right:8px!important}.mr-3{margin-right:12px!important}.mr-4{margin-right:16px!important}.mr-5{margin-right:20px!important}.mr-6{margin-right:24px!important}.mr-7{margin-right:28px!important}.mr-8{margin-right:32px!important}.mr-9{margin-right:36px!important}.mr-10{margin-right:40px!important}.mr-11{margin-right:44px!important}.mr-12{margin-right:48px!important}.mr-13{margin-right:52px!important}.mr-14{margin-right:56px!important}.mr-15{margin-right:60px!important}.mr-16{margin-right:64px!important}.mr-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:4px!important}.mb-2{margin-bottom:8px!important}.mb-3{margin-bottom:12px!important}.mb-4{margin-bottom:16px!important}.mb-5{margin-bottom:20px!important}.mb-6{margin-bottom:24px!important}.mb-7{margin-bottom:28px!important}.mb-8{margin-bottom:32px!important}.mb-9{margin-bottom:36px!important}.mb-10{margin-bottom:40px!important}.mb-11{margin-bottom:44px!important}.mb-12{margin-bottom:48px!important}.mb-13{margin-bottom:52px!important}.mb-14{margin-bottom:56px!important}.mb-15{margin-bottom:60px!important}.mb-16{margin-bottom:64px!important}.mb-auto{margin-bottom:auto!important}.ml-0{margin-left:0!important}.ml-1{margin-left:4px!important}.ml-2{margin-left:8px!important}.ml-3{margin-left:12px!important}.ml-4{margin-left:16px!important}.ml-5{margin-left:20px!important}.ml-6{margin-left:24px!important}.ml-7{margin-left:28px!important}.ml-8{margin-left:32px!important}.ml-9{margin-left:36px!important}.ml-10{margin-left:40px!important}.ml-11{margin-left:44px!important}.ml-12{margin-left:48px!important}.ml-13{margin-left:52px!important}.ml-14{margin-left:56px!important}.ml-15{margin-left:60px!important}.ml-16{margin-left:64px!important}.ml-auto{margin-left:auto!important}.ms-0{margin-inline-start:0px!important}.ms-1{margin-inline-start:4px!important}.ms-2{margin-inline-start:8px!important}.ms-3{margin-inline-start:12px!important}.ms-4{margin-inline-start:16px!important}.ms-5{margin-inline-start:20px!important}.ms-6{margin-inline-start:24px!important}.ms-7{margin-inline-start:28px!important}.ms-8{margin-inline-start:32px!important}.ms-9{margin-inline-start:36px!important}.ms-10{margin-inline-start:40px!important}.ms-11{margin-inline-start:44px!important}.ms-12{margin-inline-start:48px!important}.ms-13{margin-inline-start:52px!important}.ms-14{margin-inline-start:56px!important}.ms-15{margin-inline-start:60px!important}.ms-16{margin-inline-start:64px!important}.ms-auto{margin-inline-start:auto!important}.me-0{margin-inline-end:0px!important}.me-1{margin-inline-end:4px!important}.me-2{margin-inline-end:8px!important}.me-3{margin-inline-end:12px!important}.me-4{margin-inline-end:16px!important}.me-5{margin-inline-end:20px!important}.me-6{margin-inline-end:24px!important}.me-7{margin-inline-end:28px!important}.me-8{margin-inline-end:32px!important}.me-9{margin-inline-end:36px!important}.me-10{margin-inline-end:40px!important}.me-11{margin-inline-end:44px!important}.me-12{margin-inline-end:48px!important}.me-13{margin-inline-end:52px!important}.me-14{margin-inline-end:56px!important}.me-15{margin-inline-end:60px!important}.me-16{margin-inline-end:64px!important}.me-auto{margin-inline-end:auto!important}.ma-n1{margin:-4px!important}.ma-n2{margin:-8px!important}.ma-n3{margin:-12px!important}.ma-n4{margin:-16px!important}.ma-n5{margin:-20px!important}.ma-n6{margin:-24px!important}.ma-n7{margin:-28px!important}.ma-n8{margin:-32px!important}.ma-n9{margin:-36px!important}.ma-n10{margin:-40px!important}.ma-n11{margin:-44px!important}.ma-n12{margin:-48px!important}.ma-n13{margin:-52px!important}.ma-n14{margin:-56px!important}.ma-n15{margin:-60px!important}.ma-n16{margin:-64px!important}.mx-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-n16{margin-right:-64px!important;margin-left:-64px!important}.my-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-n1{margin-top:-4px!important}.mt-n2{margin-top:-8px!important}.mt-n3{margin-top:-12px!important}.mt-n4{margin-top:-16px!important}.mt-n5{margin-top:-20px!important}.mt-n6{margin-top:-24px!important}.mt-n7{margin-top:-28px!important}.mt-n8{margin-top:-32px!important}.mt-n9{margin-top:-36px!important}.mt-n10{margin-top:-40px!important}.mt-n11{margin-top:-44px!important}.mt-n12{margin-top:-48px!important}.mt-n13{margin-top:-52px!important}.mt-n14{margin-top:-56px!important}.mt-n15{margin-top:-60px!important}.mt-n16{margin-top:-64px!important}.mr-n1{margin-right:-4px!important}.mr-n2{margin-right:-8px!important}.mr-n3{margin-right:-12px!important}.mr-n4{margin-right:-16px!important}.mr-n5{margin-right:-20px!important}.mr-n6{margin-right:-24px!important}.mr-n7{margin-right:-28px!important}.mr-n8{margin-right:-32px!important}.mr-n9{margin-right:-36px!important}.mr-n10{margin-right:-40px!important}.mr-n11{margin-right:-44px!important}.mr-n12{margin-right:-48px!important}.mr-n13{margin-right:-52px!important}.mr-n14{margin-right:-56px!important}.mr-n15{margin-right:-60px!important}.mr-n16{margin-right:-64px!important}.mb-n1{margin-bottom:-4px!important}.mb-n2{margin-bottom:-8px!important}.mb-n3{margin-bottom:-12px!important}.mb-n4{margin-bottom:-16px!important}.mb-n5{margin-bottom:-20px!important}.mb-n6{margin-bottom:-24px!important}.mb-n7{margin-bottom:-28px!important}.mb-n8{margin-bottom:-32px!important}.mb-n9{margin-bottom:-36px!important}.mb-n10{margin-bottom:-40px!important}.mb-n11{margin-bottom:-44px!important}.mb-n12{margin-bottom:-48px!important}.mb-n13{margin-bottom:-52px!important}.mb-n14{margin-bottom:-56px!important}.mb-n15{margin-bottom:-60px!important}.mb-n16{margin-bottom:-64px!important}.ml-n1{margin-left:-4px!important}.ml-n2{margin-left:-8px!important}.ml-n3{margin-left:-12px!important}.ml-n4{margin-left:-16px!important}.ml-n5{margin-left:-20px!important}.ml-n6{margin-left:-24px!important}.ml-n7{margin-left:-28px!important}.ml-n8{margin-left:-32px!important}.ml-n9{margin-left:-36px!important}.ml-n10{margin-left:-40px!important}.ml-n11{margin-left:-44px!important}.ml-n12{margin-left:-48px!important}.ml-n13{margin-left:-52px!important}.ml-n14{margin-left:-56px!important}.ml-n15{margin-left:-60px!important}.ml-n16{margin-left:-64px!important}.ms-n1{margin-inline-start:-4px!important}.ms-n2{margin-inline-start:-8px!important}.ms-n3{margin-inline-start:-12px!important}.ms-n4{margin-inline-start:-16px!important}.ms-n5{margin-inline-start:-20px!important}.ms-n6{margin-inline-start:-24px!important}.ms-n7{margin-inline-start:-28px!important}.ms-n8{margin-inline-start:-32px!important}.ms-n9{margin-inline-start:-36px!important}.ms-n10{margin-inline-start:-40px!important}.ms-n11{margin-inline-start:-44px!important}.ms-n12{margin-inline-start:-48px!important}.ms-n13{margin-inline-start:-52px!important}.ms-n14{margin-inline-start:-56px!important}.ms-n15{margin-inline-start:-60px!important}.ms-n16{margin-inline-start:-64px!important}.me-n1{margin-inline-end:-4px!important}.me-n2{margin-inline-end:-8px!important}.me-n3{margin-inline-end:-12px!important}.me-n4{margin-inline-end:-16px!important}.me-n5{margin-inline-end:-20px!important}.me-n6{margin-inline-end:-24px!important}.me-n7{margin-inline-end:-28px!important}.me-n8{margin-inline-end:-32px!important}.me-n9{margin-inline-end:-36px!important}.me-n10{margin-inline-end:-40px!important}.me-n11{margin-inline-end:-44px!important}.me-n12{margin-inline-end:-48px!important}.me-n13{margin-inline-end:-52px!important}.me-n14{margin-inline-end:-56px!important}.me-n15{margin-inline-end:-60px!important}.me-n16{margin-inline-end:-64px!important}.pa-0{padding:0!important}.pa-1{padding:4px!important}.pa-2{padding:8px!important}.pa-3{padding:12px!important}.pa-4{padding:16px!important}.pa-5{padding:20px!important}.pa-6{padding:24px!important}.pa-7{padding:28px!important}.pa-8{padding:32px!important}.pa-9{padding:36px!important}.pa-10{padding:40px!important}.pa-11{padding:44px!important}.pa-12{padding:48px!important}.pa-13{padding:52px!important}.pa-14{padding:56px!important}.pa-15{padding:60px!important}.pa-16{padding:64px!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:4px!important;padding-left:4px!important}.px-2{padding-right:8px!important;padding-left:8px!important}.px-3{padding-right:12px!important;padding-left:12px!important}.px-4{padding-right:16px!important;padding-left:16px!important}.px-5{padding-right:20px!important;padding-left:20px!important}.px-6{padding-right:24px!important;padding-left:24px!important}.px-7{padding-right:28px!important;padding-left:28px!important}.px-8{padding-right:32px!important;padding-left:32px!important}.px-9{padding-right:36px!important;padding-left:36px!important}.px-10{padding-right:40px!important;padding-left:40px!important}.px-11{padding-right:44px!important;padding-left:44px!important}.px-12{padding-right:48px!important;padding-left:48px!important}.px-13{padding-right:52px!important;padding-left:52px!important}.px-14{padding-right:56px!important;padding-left:56px!important}.px-15{padding-right:60px!important;padding-left:60px!important}.px-16{padding-right:64px!important;padding-left:64px!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:4px!important;padding-bottom:4px!important}.py-2{padding-top:8px!important;padding-bottom:8px!important}.py-3{padding-top:12px!important;padding-bottom:12px!important}.py-4{padding-top:16px!important;padding-bottom:16px!important}.py-5{padding-top:20px!important;padding-bottom:20px!important}.py-6{padding-top:24px!important;padding-bottom:24px!important}.py-7{padding-top:28px!important;padding-bottom:28px!important}.py-8{padding-top:32px!important;padding-bottom:32px!important}.py-9{padding-top:36px!important;padding-bottom:36px!important}.py-10{padding-top:40px!important;padding-bottom:40px!important}.py-11{padding-top:44px!important;padding-bottom:44px!important}.py-12{padding-top:48px!important;padding-bottom:48px!important}.py-13{padding-top:52px!important;padding-bottom:52px!important}.py-14{padding-top:56px!important;padding-bottom:56px!important}.py-15{padding-top:60px!important;padding-bottom:60px!important}.py-16{padding-top:64px!important;padding-bottom:64px!important}.pt-0{padding-top:0!important}.pt-1{padding-top:4px!important}.pt-2{padding-top:8px!important}.pt-3{padding-top:12px!important}.pt-4{padding-top:16px!important}.pt-5{padding-top:20px!important}.pt-6{padding-top:24px!important}.pt-7{padding-top:28px!important}.pt-8{padding-top:32px!important}.pt-9{padding-top:36px!important}.pt-10{padding-top:40px!important}.pt-11{padding-top:44px!important}.pt-12{padding-top:48px!important}.pt-13{padding-top:52px!important}.pt-14{padding-top:56px!important}.pt-15{padding-top:60px!important}.pt-16{padding-top:64px!important}.pr-0{padding-right:0!important}.pr-1{padding-right:4px!important}.pr-2{padding-right:8px!important}.pr-3{padding-right:12px!important}.pr-4{padding-right:16px!important}.pr-5{padding-right:20px!important}.pr-6{padding-right:24px!important}.pr-7{padding-right:28px!important}.pr-8{padding-right:32px!important}.pr-9{padding-right:36px!important}.pr-10{padding-right:40px!important}.pr-11{padding-right:44px!important}.pr-12{padding-right:48px!important}.pr-13{padding-right:52px!important}.pr-14{padding-right:56px!important}.pr-15{padding-right:60px!important}.pr-16{padding-right:64px!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:4px!important}.pb-2{padding-bottom:8px!important}.pb-3{padding-bottom:12px!important}.pb-4{padding-bottom:16px!important}.pb-5{padding-bottom:20px!important}.pb-6{padding-bottom:24px!important}.pb-7{padding-bottom:28px!important}.pb-8{padding-bottom:32px!important}.pb-9{padding-bottom:36px!important}.pb-10{padding-bottom:40px!important}.pb-11{padding-bottom:44px!important}.pb-12{padding-bottom:48px!important}.pb-13{padding-bottom:52px!important}.pb-14{padding-bottom:56px!important}.pb-15{padding-bottom:60px!important}.pb-16{padding-bottom:64px!important}.pl-0{padding-left:0!important}.pl-1{padding-left:4px!important}.pl-2{padding-left:8px!important}.pl-3{padding-left:12px!important}.pl-4{padding-left:16px!important}.pl-5{padding-left:20px!important}.pl-6{padding-left:24px!important}.pl-7{padding-left:28px!important}.pl-8{padding-left:32px!important}.pl-9{padding-left:36px!important}.pl-10{padding-left:40px!important}.pl-11{padding-left:44px!important}.pl-12{padding-left:48px!important}.pl-13{padding-left:52px!important}.pl-14{padding-left:56px!important}.pl-15{padding-left:60px!important}.pl-16{padding-left:64px!important}.ps-0{padding-inline-start:0px!important}.ps-1{padding-inline-start:4px!important}.ps-2{padding-inline-start:8px!important}.ps-3{padding-inline-start:12px!important}.ps-4{padding-inline-start:16px!important}.ps-5{padding-inline-start:20px!important}.ps-6{padding-inline-start:24px!important}.ps-7{padding-inline-start:28px!important}.ps-8{padding-inline-start:32px!important}.ps-9{padding-inline-start:36px!important}.ps-10{padding-inline-start:40px!important}.ps-11{padding-inline-start:44px!important}.ps-12{padding-inline-start:48px!important}.ps-13{padding-inline-start:52px!important}.ps-14{padding-inline-start:56px!important}.ps-15{padding-inline-start:60px!important}.ps-16{padding-inline-start:64px!important}.pe-0{padding-inline-end:0px!important}.pe-1{padding-inline-end:4px!important}.pe-2{padding-inline-end:8px!important}.pe-3{padding-inline-end:12px!important}.pe-4{padding-inline-end:16px!important}.pe-5{padding-inline-end:20px!important}.pe-6{padding-inline-end:24px!important}.pe-7{padding-inline-end:28px!important}.pe-8{padding-inline-end:32px!important}.pe-9{padding-inline-end:36px!important}.pe-10{padding-inline-end:40px!important}.pe-11{padding-inline-end:44px!important}.pe-12{padding-inline-end:48px!important}.pe-13{padding-inline-end:52px!important}.pe-14{padding-inline-end:56px!important}.pe-15{padding-inline-end:60px!important}.pe-16{padding-inline-end:64px!important}.rounded-0{border-radius:0!important}.rounded-sm{border-radius:2px!important}.rounded{border-radius:4px!important}.rounded-lg{border-radius:8px!important}.rounded-xl{border-radius:24px!important}.rounded-pill{border-radius:9999px!important}.rounded-circle{border-radius:50%!important}.rounded-shaped{border-radius:24px 0!important}.rounded-t-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px!important;border-top-right-radius:2px!important}.rounded-t{border-top-left-radius:4px!important;border-top-right-radius:4px!important}.rounded-t-lg{border-top-left-radius:8px!important;border-top-right-radius:8px!important}.rounded-t-xl{border-top-left-radius:24px!important;border-top-right-radius:24px!important}.rounded-t-pill{border-top-left-radius:9999px!important;border-top-right-radius:9999px!important}.rounded-t-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-t-shaped{border-top-left-radius:24px!important;border-top-right-radius:0!important}.v-locale--is-ltr .rounded-e-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-e-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-e-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-e{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-e{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-e-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-e-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-e-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-e-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-e-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-e-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-e-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-e-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-e-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.rounded-b-0{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.rounded-b-sm{border-bottom-left-radius:2px!important;border-bottom-right-radius:2px!important}.rounded-b{border-bottom-left-radius:4px!important;border-bottom-right-radius:4px!important}.rounded-b-lg{border-bottom-left-radius:8px!important;border-bottom-right-radius:8px!important}.rounded-b-xl{border-bottom-left-radius:24px!important;border-bottom-right-radius:24px!important}.rounded-b-pill{border-bottom-left-radius:9999px!important;border-bottom-right-radius:9999px!important}.rounded-b-circle{border-bottom-left-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-b-shaped{border-bottom-left-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-s-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-s{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-s{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-s-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-s-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-s-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-s-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-s-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-s-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-s-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-s-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-s-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-ts-0{border-top-left-radius:0!important}.v-locale--is-rtl .rounded-ts-0{border-top-right-radius:0!important}.v-locale--is-ltr .rounded-ts-sm{border-top-left-radius:2px!important}.v-locale--is-rtl .rounded-ts-sm{border-top-right-radius:2px!important}.v-locale--is-ltr .rounded-ts{border-top-left-radius:4px!important}.v-locale--is-rtl .rounded-ts{border-top-right-radius:4px!important}.v-locale--is-ltr .rounded-ts-lg{border-top-left-radius:8px!important}.v-locale--is-rtl .rounded-ts-lg{border-top-right-radius:8px!important}.v-locale--is-ltr .rounded-ts-xl{border-top-left-radius:24px!important}.v-locale--is-rtl .rounded-ts-xl{border-top-right-radius:24px!important}.v-locale--is-ltr .rounded-ts-pill{border-top-left-radius:9999px!important}.v-locale--is-rtl .rounded-ts-pill{border-top-right-radius:9999px!important}.v-locale--is-ltr .rounded-ts-circle{border-top-left-radius:50%!important}.v-locale--is-rtl .rounded-ts-circle{border-top-right-radius:50%!important}.v-locale--is-ltr .rounded-ts-shaped{border-top-left-radius:24px 0!important}.v-locale--is-rtl .rounded-ts-shaped{border-top-right-radius:24px 0!important}.v-locale--is-ltr .rounded-te-0{border-top-right-radius:0!important}.v-locale--is-rtl .rounded-te-0{border-top-left-radius:0!important}.v-locale--is-ltr .rounded-te-sm{border-top-right-radius:2px!important}.v-locale--is-rtl .rounded-te-sm{border-top-left-radius:2px!important}.v-locale--is-ltr .rounded-te{border-top-right-radius:4px!important}.v-locale--is-rtl .rounded-te{border-top-left-radius:4px!important}.v-locale--is-ltr .rounded-te-lg{border-top-right-radius:8px!important}.v-locale--is-rtl .rounded-te-lg{border-top-left-radius:8px!important}.v-locale--is-ltr .rounded-te-xl{border-top-right-radius:24px!important}.v-locale--is-rtl .rounded-te-xl{border-top-left-radius:24px!important}.v-locale--is-ltr .rounded-te-pill{border-top-right-radius:9999px!important}.v-locale--is-rtl .rounded-te-pill{border-top-left-radius:9999px!important}.v-locale--is-ltr .rounded-te-circle{border-top-right-radius:50%!important}.v-locale--is-rtl .rounded-te-circle{border-top-left-radius:50%!important}.v-locale--is-ltr .rounded-te-shaped{border-top-right-radius:24px 0!important}.v-locale--is-rtl .rounded-te-shaped{border-top-left-radius:24px 0!important}.v-locale--is-ltr .rounded-be-0{border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-be-0{border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-be-sm{border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-be-sm{border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-be{border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-be{border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-be-lg{border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-be-lg{border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-be-xl{border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-be-xl{border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-be-pill{border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-be-pill{border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-be-circle{border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-be-circle{border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-be-shaped{border-bottom-right-radius:24px 0!important}.v-locale--is-rtl .rounded-be-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-ltr .rounded-bs-0{border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-bs-0{border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-bs-sm{border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-bs-sm{border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-bs{border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-bs{border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-bs-lg{border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-bs-lg{border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-bs-xl{border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-bs-xl{border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-bs-pill{border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-bs-pill{border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-bs-circle{border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-bs-circle{border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-bs-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-rtl .rounded-bs-shaped{border-bottom-right-radius:24px 0!important}.border-0{border-width:0!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border,.border-thin{border-width:thin!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-sm{border-width:1px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-md{border-width:2px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-lg{border-width:4px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-xl{border-width:8px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-opacity-0{--v-border-opacity: 0 !important}.border-opacity{--v-border-opacity: .12 !important}.border-opacity-25{--v-border-opacity: .25 !important}.border-opacity-50{--v-border-opacity: .5 !important}.border-opacity-75{--v-border-opacity: .75 !important}.border-opacity-100{--v-border-opacity: 1 !important}.border-t-0{border-block-start-width:0!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t,.border-t-thin{border-block-start-width:thin!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-sm{border-block-start-width:1px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-md{border-block-start-width:2px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-lg{border-block-start-width:4px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-xl{border-block-start-width:8px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-0{border-inline-end-width:0!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e,.border-e-thin{border-inline-end-width:thin!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-sm{border-inline-end-width:1px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-md{border-inline-end-width:2px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-lg{border-inline-end-width:4px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-xl{border-inline-end-width:8px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-0{border-block-end-width:0!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b,.border-b-thin{border-block-end-width:thin!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-sm{border-block-end-width:1px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-md{border-block-end-width:2px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-lg{border-block-end-width:4px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-xl{border-block-end-width:8px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-0{border-inline-start-width:0!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s,.border-s-thin{border-inline-start-width:thin!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-sm{border-inline-start-width:1px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-md{border-inline-start-width:2px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-lg{border-inline-start-width:4px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-xl{border-inline-start-width:8px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-solid{border-style:solid!important}.border-dashed{border-style:dashed!important}.border-dotted{border-style:dotted!important}.border-double{border-style:double!important}.border-none{border-style:none!important}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}.text-start{text-align:start!important}.text-end{text-align:end!important}.text-decoration-line-through{text-decoration:line-through!important}.text-decoration-none{text-decoration:none!important}.text-decoration-overline{text-decoration:overline!important}.text-decoration-underline{text-decoration:underline!important}.text-wrap{white-space:normal!important}.text-no-wrap{white-space:nowrap!important}.text-pre{white-space:pre!important}.text-pre-line{white-space:pre-line!important}.text-pre-wrap{white-space:pre-wrap!important}.text-break{overflow-wrap:break-word!important;word-break:break-word!important}.opacity-hover{opacity:var(--v-hover-opacity)!important}.opacity-focus{opacity:var(--v-focus-opacity)!important}.opacity-selected{opacity:var(--v-selected-opacity)!important}.opacity-activated{opacity:var(--v-activated-opacity)!important}.opacity-pressed{opacity:var(--v-pressed-opacity)!important}.opacity-dragged{opacity:var(--v-dragged-opacity)!important}.opacity-0{opacity:0!important}.opacity-10{opacity:.1!important}.opacity-20{opacity:.2!important}.opacity-30{opacity:.3!important}.opacity-40{opacity:.4!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-80{opacity:.8!important}.opacity-90{opacity:.9!important}.opacity-100{opacity:1!important}.text-high-emphasis{color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))!important}.text-medium-emphasis{color:rgba(var(--v-theme-on-background),var(--v-medium-emphasis-opacity))!important}.text-disabled{color:rgba(var(--v-theme-on-background),var(--v-disabled-opacity))!important}.text-truncate{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.text-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.text-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.text-none{text-transform:none!important}.text-capitalize{text-transform:capitalize!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.font-weight-thin{font-weight:100!important}.font-weight-light{font-weight:300!important}.font-weight-regular{font-weight:400!important}.font-weight-medium{font-weight:500!important}.font-weight-bold{font-weight:700!important}.font-weight-black{font-weight:900!important}.font-italic{font-style:italic!important}.text-mono{font-family:monospace!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-fixed{position:fixed!important}.position-absolute{position:absolute!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.right-0{right:0!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.cursor-auto{cursor:auto!important}.cursor-default{cursor:default!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.cursor-text{cursor:text!important}.cursor-move{cursor:move!important}.cursor-help{cursor:help!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-progress{cursor:progress!important}.cursor-grab{cursor:grab!important}.cursor-grabbing{cursor:grabbing!important}.cursor-none{cursor:none!important}.fill-height{height:100%!important}.h-auto{height:auto!important}.h-screen{height:100vh!important}.h-0{height:0!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-screen{height:100dvh!important}.w-auto{width:auto!important}.w-0{width:0!important}.w-25{width:25%!important}.w-33{width:33%!important}.w-50{width:50%!important}.w-66{width:66%!important}.w-75{width:75%!important}.w-100{width:100%!important}@media (min-width: 600px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.float-sm-none{float:none!important}.float-sm-left{float:left!important}.float-sm-right{float:right!important}.v-locale--is-rtl .float-sm-end{float:left!important}.v-locale--is-rtl .float-sm-start,.v-locale--is-ltr .float-sm-end{float:right!important}.v-locale--is-ltr .float-sm-start{float:left!important}.flex-sm-fill,.flex-sm-1-1{flex:1 1 auto!important}.flex-sm-1-0{flex:1 0 auto!important}.flex-sm-0-1{flex:0 1 auto!important}.flex-sm-0-0{flex:0 0 auto!important}.flex-sm-1-1-100{flex:1 1 100%!important}.flex-sm-1-0-100{flex:1 0 100%!important}.flex-sm-0-1-100{flex:0 1 100%!important}.flex-sm-0-0-100{flex:0 0 100%!important}.flex-sm-1-1-0{flex:1 1 0!important}.flex-sm-1-0-0{flex:1 0 0!important}.flex-sm-0-1-0{flex:0 1 0!important}.flex-sm-0-0-0{flex:0 0 0!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-sm-start{justify-content:flex-start!important}.justify-sm-end{justify-content:flex-end!important}.justify-sm-center{justify-content:center!important}.justify-sm-space-between{justify-content:space-between!important}.justify-sm-space-around{justify-content:space-around!important}.justify-sm-space-evenly{justify-content:space-evenly!important}.align-sm-start{align-items:flex-start!important}.align-sm-end{align-items:flex-end!important}.align-sm-center{align-items:center!important}.align-sm-baseline{align-items:baseline!important}.align-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-space-between{align-content:space-between!important}.align-content-sm-space-around{align-content:space-around!important}.align-content-sm-space-evenly{align-content:space-evenly!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-6{order:6!important}.order-sm-7{order:7!important}.order-sm-8{order:8!important}.order-sm-9{order:9!important}.order-sm-10{order:10!important}.order-sm-11{order:11!important}.order-sm-12{order:12!important}.order-sm-last{order:13!important}.ga-sm-0{gap:0px!important}.ga-sm-1{gap:4px!important}.ga-sm-2{gap:8px!important}.ga-sm-3{gap:12px!important}.ga-sm-4{gap:16px!important}.ga-sm-5{gap:20px!important}.ga-sm-6{gap:24px!important}.ga-sm-7{gap:28px!important}.ga-sm-8{gap:32px!important}.ga-sm-9{gap:36px!important}.ga-sm-10{gap:40px!important}.ga-sm-11{gap:44px!important}.ga-sm-12{gap:48px!important}.ga-sm-13{gap:52px!important}.ga-sm-14{gap:56px!important}.ga-sm-15{gap:60px!important}.ga-sm-16{gap:64px!important}.ga-sm-auto{gap:auto!important}.gr-sm-0{row-gap:0px!important}.gr-sm-1{row-gap:4px!important}.gr-sm-2{row-gap:8px!important}.gr-sm-3{row-gap:12px!important}.gr-sm-4{row-gap:16px!important}.gr-sm-5{row-gap:20px!important}.gr-sm-6{row-gap:24px!important}.gr-sm-7{row-gap:28px!important}.gr-sm-8{row-gap:32px!important}.gr-sm-9{row-gap:36px!important}.gr-sm-10{row-gap:40px!important}.gr-sm-11{row-gap:44px!important}.gr-sm-12{row-gap:48px!important}.gr-sm-13{row-gap:52px!important}.gr-sm-14{row-gap:56px!important}.gr-sm-15{row-gap:60px!important}.gr-sm-16{row-gap:64px!important}.gr-sm-auto{row-gap:auto!important}.gc-sm-0{column-gap:0px!important}.gc-sm-1{column-gap:4px!important}.gc-sm-2{column-gap:8px!important}.gc-sm-3{column-gap:12px!important}.gc-sm-4{column-gap:16px!important}.gc-sm-5{column-gap:20px!important}.gc-sm-6{column-gap:24px!important}.gc-sm-7{column-gap:28px!important}.gc-sm-8{column-gap:32px!important}.gc-sm-9{column-gap:36px!important}.gc-sm-10{column-gap:40px!important}.gc-sm-11{column-gap:44px!important}.gc-sm-12{column-gap:48px!important}.gc-sm-13{column-gap:52px!important}.gc-sm-14{column-gap:56px!important}.gc-sm-15{column-gap:60px!important}.gc-sm-16{column-gap:64px!important}.gc-sm-auto{column-gap:auto!important}.ma-sm-0{margin:0!important}.ma-sm-1{margin:4px!important}.ma-sm-2{margin:8px!important}.ma-sm-3{margin:12px!important}.ma-sm-4{margin:16px!important}.ma-sm-5{margin:20px!important}.ma-sm-6{margin:24px!important}.ma-sm-7{margin:28px!important}.ma-sm-8{margin:32px!important}.ma-sm-9{margin:36px!important}.ma-sm-10{margin:40px!important}.ma-sm-11{margin:44px!important}.ma-sm-12{margin:48px!important}.ma-sm-13{margin:52px!important}.ma-sm-14{margin:56px!important}.ma-sm-15{margin:60px!important}.ma-sm-16{margin:64px!important}.ma-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:4px!important;margin-left:4px!important}.mx-sm-2{margin-right:8px!important;margin-left:8px!important}.mx-sm-3{margin-right:12px!important;margin-left:12px!important}.mx-sm-4{margin-right:16px!important;margin-left:16px!important}.mx-sm-5{margin-right:20px!important;margin-left:20px!important}.mx-sm-6{margin-right:24px!important;margin-left:24px!important}.mx-sm-7{margin-right:28px!important;margin-left:28px!important}.mx-sm-8{margin-right:32px!important;margin-left:32px!important}.mx-sm-9{margin-right:36px!important;margin-left:36px!important}.mx-sm-10{margin-right:40px!important;margin-left:40px!important}.mx-sm-11{margin-right:44px!important;margin-left:44px!important}.mx-sm-12{margin-right:48px!important;margin-left:48px!important}.mx-sm-13{margin-right:52px!important;margin-left:52px!important}.mx-sm-14{margin-right:56px!important;margin-left:56px!important}.mx-sm-15{margin-right:60px!important;margin-left:60px!important}.mx-sm-16{margin-right:64px!important;margin-left:64px!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:4px!important;margin-bottom:4px!important}.my-sm-2{margin-top:8px!important;margin-bottom:8px!important}.my-sm-3{margin-top:12px!important;margin-bottom:12px!important}.my-sm-4{margin-top:16px!important;margin-bottom:16px!important}.my-sm-5{margin-top:20px!important;margin-bottom:20px!important}.my-sm-6{margin-top:24px!important;margin-bottom:24px!important}.my-sm-7{margin-top:28px!important;margin-bottom:28px!important}.my-sm-8{margin-top:32px!important;margin-bottom:32px!important}.my-sm-9{margin-top:36px!important;margin-bottom:36px!important}.my-sm-10{margin-top:40px!important;margin-bottom:40px!important}.my-sm-11{margin-top:44px!important;margin-bottom:44px!important}.my-sm-12{margin-top:48px!important;margin-bottom:48px!important}.my-sm-13{margin-top:52px!important;margin-bottom:52px!important}.my-sm-14{margin-top:56px!important;margin-bottom:56px!important}.my-sm-15{margin-top:60px!important;margin-bottom:60px!important}.my-sm-16{margin-top:64px!important;margin-bottom:64px!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:4px!important}.mt-sm-2{margin-top:8px!important}.mt-sm-3{margin-top:12px!important}.mt-sm-4{margin-top:16px!important}.mt-sm-5{margin-top:20px!important}.mt-sm-6{margin-top:24px!important}.mt-sm-7{margin-top:28px!important}.mt-sm-8{margin-top:32px!important}.mt-sm-9{margin-top:36px!important}.mt-sm-10{margin-top:40px!important}.mt-sm-11{margin-top:44px!important}.mt-sm-12{margin-top:48px!important}.mt-sm-13{margin-top:52px!important}.mt-sm-14{margin-top:56px!important}.mt-sm-15{margin-top:60px!important}.mt-sm-16{margin-top:64px!important}.mt-sm-auto{margin-top:auto!important}.mr-sm-0{margin-right:0!important}.mr-sm-1{margin-right:4px!important}.mr-sm-2{margin-right:8px!important}.mr-sm-3{margin-right:12px!important}.mr-sm-4{margin-right:16px!important}.mr-sm-5{margin-right:20px!important}.mr-sm-6{margin-right:24px!important}.mr-sm-7{margin-right:28px!important}.mr-sm-8{margin-right:32px!important}.mr-sm-9{margin-right:36px!important}.mr-sm-10{margin-right:40px!important}.mr-sm-11{margin-right:44px!important}.mr-sm-12{margin-right:48px!important}.mr-sm-13{margin-right:52px!important}.mr-sm-14{margin-right:56px!important}.mr-sm-15{margin-right:60px!important}.mr-sm-16{margin-right:64px!important}.mr-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:4px!important}.mb-sm-2{margin-bottom:8px!important}.mb-sm-3{margin-bottom:12px!important}.mb-sm-4{margin-bottom:16px!important}.mb-sm-5{margin-bottom:20px!important}.mb-sm-6{margin-bottom:24px!important}.mb-sm-7{margin-bottom:28px!important}.mb-sm-8{margin-bottom:32px!important}.mb-sm-9{margin-bottom:36px!important}.mb-sm-10{margin-bottom:40px!important}.mb-sm-11{margin-bottom:44px!important}.mb-sm-12{margin-bottom:48px!important}.mb-sm-13{margin-bottom:52px!important}.mb-sm-14{margin-bottom:56px!important}.mb-sm-15{margin-bottom:60px!important}.mb-sm-16{margin-bottom:64px!important}.mb-sm-auto{margin-bottom:auto!important}.ml-sm-0{margin-left:0!important}.ml-sm-1{margin-left:4px!important}.ml-sm-2{margin-left:8px!important}.ml-sm-3{margin-left:12px!important}.ml-sm-4{margin-left:16px!important}.ml-sm-5{margin-left:20px!important}.ml-sm-6{margin-left:24px!important}.ml-sm-7{margin-left:28px!important}.ml-sm-8{margin-left:32px!important}.ml-sm-9{margin-left:36px!important}.ml-sm-10{margin-left:40px!important}.ml-sm-11{margin-left:44px!important}.ml-sm-12{margin-left:48px!important}.ml-sm-13{margin-left:52px!important}.ml-sm-14{margin-left:56px!important}.ml-sm-15{margin-left:60px!important}.ml-sm-16{margin-left:64px!important}.ml-sm-auto{margin-left:auto!important}.ms-sm-0{margin-inline-start:0px!important}.ms-sm-1{margin-inline-start:4px!important}.ms-sm-2{margin-inline-start:8px!important}.ms-sm-3{margin-inline-start:12px!important}.ms-sm-4{margin-inline-start:16px!important}.ms-sm-5{margin-inline-start:20px!important}.ms-sm-6{margin-inline-start:24px!important}.ms-sm-7{margin-inline-start:28px!important}.ms-sm-8{margin-inline-start:32px!important}.ms-sm-9{margin-inline-start:36px!important}.ms-sm-10{margin-inline-start:40px!important}.ms-sm-11{margin-inline-start:44px!important}.ms-sm-12{margin-inline-start:48px!important}.ms-sm-13{margin-inline-start:52px!important}.ms-sm-14{margin-inline-start:56px!important}.ms-sm-15{margin-inline-start:60px!important}.ms-sm-16{margin-inline-start:64px!important}.ms-sm-auto{margin-inline-start:auto!important}.me-sm-0{margin-inline-end:0px!important}.me-sm-1{margin-inline-end:4px!important}.me-sm-2{margin-inline-end:8px!important}.me-sm-3{margin-inline-end:12px!important}.me-sm-4{margin-inline-end:16px!important}.me-sm-5{margin-inline-end:20px!important}.me-sm-6{margin-inline-end:24px!important}.me-sm-7{margin-inline-end:28px!important}.me-sm-8{margin-inline-end:32px!important}.me-sm-9{margin-inline-end:36px!important}.me-sm-10{margin-inline-end:40px!important}.me-sm-11{margin-inline-end:44px!important}.me-sm-12{margin-inline-end:48px!important}.me-sm-13{margin-inline-end:52px!important}.me-sm-14{margin-inline-end:56px!important}.me-sm-15{margin-inline-end:60px!important}.me-sm-16{margin-inline-end:64px!important}.me-sm-auto{margin-inline-end:auto!important}.ma-sm-n1{margin:-4px!important}.ma-sm-n2{margin:-8px!important}.ma-sm-n3{margin:-12px!important}.ma-sm-n4{margin:-16px!important}.ma-sm-n5{margin:-20px!important}.ma-sm-n6{margin:-24px!important}.ma-sm-n7{margin:-28px!important}.ma-sm-n8{margin:-32px!important}.ma-sm-n9{margin:-36px!important}.ma-sm-n10{margin:-40px!important}.ma-sm-n11{margin:-44px!important}.ma-sm-n12{margin:-48px!important}.ma-sm-n13{margin:-52px!important}.ma-sm-n14{margin:-56px!important}.ma-sm-n15{margin:-60px!important}.ma-sm-n16{margin:-64px!important}.mx-sm-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-sm-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-sm-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-sm-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-sm-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-sm-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-sm-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-sm-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-sm-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-sm-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-sm-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-sm-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-sm-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-sm-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-sm-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-sm-n16{margin-right:-64px!important;margin-left:-64px!important}.my-sm-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-sm-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-sm-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-sm-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-sm-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-sm-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-sm-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-sm-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-sm-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-sm-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-sm-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-sm-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-sm-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-sm-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-sm-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-sm-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-sm-n1{margin-top:-4px!important}.mt-sm-n2{margin-top:-8px!important}.mt-sm-n3{margin-top:-12px!important}.mt-sm-n4{margin-top:-16px!important}.mt-sm-n5{margin-top:-20px!important}.mt-sm-n6{margin-top:-24px!important}.mt-sm-n7{margin-top:-28px!important}.mt-sm-n8{margin-top:-32px!important}.mt-sm-n9{margin-top:-36px!important}.mt-sm-n10{margin-top:-40px!important}.mt-sm-n11{margin-top:-44px!important}.mt-sm-n12{margin-top:-48px!important}.mt-sm-n13{margin-top:-52px!important}.mt-sm-n14{margin-top:-56px!important}.mt-sm-n15{margin-top:-60px!important}.mt-sm-n16{margin-top:-64px!important}.mr-sm-n1{margin-right:-4px!important}.mr-sm-n2{margin-right:-8px!important}.mr-sm-n3{margin-right:-12px!important}.mr-sm-n4{margin-right:-16px!important}.mr-sm-n5{margin-right:-20px!important}.mr-sm-n6{margin-right:-24px!important}.mr-sm-n7{margin-right:-28px!important}.mr-sm-n8{margin-right:-32px!important}.mr-sm-n9{margin-right:-36px!important}.mr-sm-n10{margin-right:-40px!important}.mr-sm-n11{margin-right:-44px!important}.mr-sm-n12{margin-right:-48px!important}.mr-sm-n13{margin-right:-52px!important}.mr-sm-n14{margin-right:-56px!important}.mr-sm-n15{margin-right:-60px!important}.mr-sm-n16{margin-right:-64px!important}.mb-sm-n1{margin-bottom:-4px!important}.mb-sm-n2{margin-bottom:-8px!important}.mb-sm-n3{margin-bottom:-12px!important}.mb-sm-n4{margin-bottom:-16px!important}.mb-sm-n5{margin-bottom:-20px!important}.mb-sm-n6{margin-bottom:-24px!important}.mb-sm-n7{margin-bottom:-28px!important}.mb-sm-n8{margin-bottom:-32px!important}.mb-sm-n9{margin-bottom:-36px!important}.mb-sm-n10{margin-bottom:-40px!important}.mb-sm-n11{margin-bottom:-44px!important}.mb-sm-n12{margin-bottom:-48px!important}.mb-sm-n13{margin-bottom:-52px!important}.mb-sm-n14{margin-bottom:-56px!important}.mb-sm-n15{margin-bottom:-60px!important}.mb-sm-n16{margin-bottom:-64px!important}.ml-sm-n1{margin-left:-4px!important}.ml-sm-n2{margin-left:-8px!important}.ml-sm-n3{margin-left:-12px!important}.ml-sm-n4{margin-left:-16px!important}.ml-sm-n5{margin-left:-20px!important}.ml-sm-n6{margin-left:-24px!important}.ml-sm-n7{margin-left:-28px!important}.ml-sm-n8{margin-left:-32px!important}.ml-sm-n9{margin-left:-36px!important}.ml-sm-n10{margin-left:-40px!important}.ml-sm-n11{margin-left:-44px!important}.ml-sm-n12{margin-left:-48px!important}.ml-sm-n13{margin-left:-52px!important}.ml-sm-n14{margin-left:-56px!important}.ml-sm-n15{margin-left:-60px!important}.ml-sm-n16{margin-left:-64px!important}.ms-sm-n1{margin-inline-start:-4px!important}.ms-sm-n2{margin-inline-start:-8px!important}.ms-sm-n3{margin-inline-start:-12px!important}.ms-sm-n4{margin-inline-start:-16px!important}.ms-sm-n5{margin-inline-start:-20px!important}.ms-sm-n6{margin-inline-start:-24px!important}.ms-sm-n7{margin-inline-start:-28px!important}.ms-sm-n8{margin-inline-start:-32px!important}.ms-sm-n9{margin-inline-start:-36px!important}.ms-sm-n10{margin-inline-start:-40px!important}.ms-sm-n11{margin-inline-start:-44px!important}.ms-sm-n12{margin-inline-start:-48px!important}.ms-sm-n13{margin-inline-start:-52px!important}.ms-sm-n14{margin-inline-start:-56px!important}.ms-sm-n15{margin-inline-start:-60px!important}.ms-sm-n16{margin-inline-start:-64px!important}.me-sm-n1{margin-inline-end:-4px!important}.me-sm-n2{margin-inline-end:-8px!important}.me-sm-n3{margin-inline-end:-12px!important}.me-sm-n4{margin-inline-end:-16px!important}.me-sm-n5{margin-inline-end:-20px!important}.me-sm-n6{margin-inline-end:-24px!important}.me-sm-n7{margin-inline-end:-28px!important}.me-sm-n8{margin-inline-end:-32px!important}.me-sm-n9{margin-inline-end:-36px!important}.me-sm-n10{margin-inline-end:-40px!important}.me-sm-n11{margin-inline-end:-44px!important}.me-sm-n12{margin-inline-end:-48px!important}.me-sm-n13{margin-inline-end:-52px!important}.me-sm-n14{margin-inline-end:-56px!important}.me-sm-n15{margin-inline-end:-60px!important}.me-sm-n16{margin-inline-end:-64px!important}.pa-sm-0{padding:0!important}.pa-sm-1{padding:4px!important}.pa-sm-2{padding:8px!important}.pa-sm-3{padding:12px!important}.pa-sm-4{padding:16px!important}.pa-sm-5{padding:20px!important}.pa-sm-6{padding:24px!important}.pa-sm-7{padding:28px!important}.pa-sm-8{padding:32px!important}.pa-sm-9{padding:36px!important}.pa-sm-10{padding:40px!important}.pa-sm-11{padding:44px!important}.pa-sm-12{padding:48px!important}.pa-sm-13{padding:52px!important}.pa-sm-14{padding:56px!important}.pa-sm-15{padding:60px!important}.pa-sm-16{padding:64px!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:4px!important;padding-left:4px!important}.px-sm-2{padding-right:8px!important;padding-left:8px!important}.px-sm-3{padding-right:12px!important;padding-left:12px!important}.px-sm-4{padding-right:16px!important;padding-left:16px!important}.px-sm-5{padding-right:20px!important;padding-left:20px!important}.px-sm-6{padding-right:24px!important;padding-left:24px!important}.px-sm-7{padding-right:28px!important;padding-left:28px!important}.px-sm-8{padding-right:32px!important;padding-left:32px!important}.px-sm-9{padding-right:36px!important;padding-left:36px!important}.px-sm-10{padding-right:40px!important;padding-left:40px!important}.px-sm-11{padding-right:44px!important;padding-left:44px!important}.px-sm-12{padding-right:48px!important;padding-left:48px!important}.px-sm-13{padding-right:52px!important;padding-left:52px!important}.px-sm-14{padding-right:56px!important;padding-left:56px!important}.px-sm-15{padding-right:60px!important;padding-left:60px!important}.px-sm-16{padding-right:64px!important;padding-left:64px!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:4px!important;padding-bottom:4px!important}.py-sm-2{padding-top:8px!important;padding-bottom:8px!important}.py-sm-3{padding-top:12px!important;padding-bottom:12px!important}.py-sm-4{padding-top:16px!important;padding-bottom:16px!important}.py-sm-5{padding-top:20px!important;padding-bottom:20px!important}.py-sm-6{padding-top:24px!important;padding-bottom:24px!important}.py-sm-7{padding-top:28px!important;padding-bottom:28px!important}.py-sm-8{padding-top:32px!important;padding-bottom:32px!important}.py-sm-9{padding-top:36px!important;padding-bottom:36px!important}.py-sm-10{padding-top:40px!important;padding-bottom:40px!important}.py-sm-11{padding-top:44px!important;padding-bottom:44px!important}.py-sm-12{padding-top:48px!important;padding-bottom:48px!important}.py-sm-13{padding-top:52px!important;padding-bottom:52px!important}.py-sm-14{padding-top:56px!important;padding-bottom:56px!important}.py-sm-15{padding-top:60px!important;padding-bottom:60px!important}.py-sm-16{padding-top:64px!important;padding-bottom:64px!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:4px!important}.pt-sm-2{padding-top:8px!important}.pt-sm-3{padding-top:12px!important}.pt-sm-4{padding-top:16px!important}.pt-sm-5{padding-top:20px!important}.pt-sm-6{padding-top:24px!important}.pt-sm-7{padding-top:28px!important}.pt-sm-8{padding-top:32px!important}.pt-sm-9{padding-top:36px!important}.pt-sm-10{padding-top:40px!important}.pt-sm-11{padding-top:44px!important}.pt-sm-12{padding-top:48px!important}.pt-sm-13{padding-top:52px!important}.pt-sm-14{padding-top:56px!important}.pt-sm-15{padding-top:60px!important}.pt-sm-16{padding-top:64px!important}.pr-sm-0{padding-right:0!important}.pr-sm-1{padding-right:4px!important}.pr-sm-2{padding-right:8px!important}.pr-sm-3{padding-right:12px!important}.pr-sm-4{padding-right:16px!important}.pr-sm-5{padding-right:20px!important}.pr-sm-6{padding-right:24px!important}.pr-sm-7{padding-right:28px!important}.pr-sm-8{padding-right:32px!important}.pr-sm-9{padding-right:36px!important}.pr-sm-10{padding-right:40px!important}.pr-sm-11{padding-right:44px!important}.pr-sm-12{padding-right:48px!important}.pr-sm-13{padding-right:52px!important}.pr-sm-14{padding-right:56px!important}.pr-sm-15{padding-right:60px!important}.pr-sm-16{padding-right:64px!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:4px!important}.pb-sm-2{padding-bottom:8px!important}.pb-sm-3{padding-bottom:12px!important}.pb-sm-4{padding-bottom:16px!important}.pb-sm-5{padding-bottom:20px!important}.pb-sm-6{padding-bottom:24px!important}.pb-sm-7{padding-bottom:28px!important}.pb-sm-8{padding-bottom:32px!important}.pb-sm-9{padding-bottom:36px!important}.pb-sm-10{padding-bottom:40px!important}.pb-sm-11{padding-bottom:44px!important}.pb-sm-12{padding-bottom:48px!important}.pb-sm-13{padding-bottom:52px!important}.pb-sm-14{padding-bottom:56px!important}.pb-sm-15{padding-bottom:60px!important}.pb-sm-16{padding-bottom:64px!important}.pl-sm-0{padding-left:0!important}.pl-sm-1{padding-left:4px!important}.pl-sm-2{padding-left:8px!important}.pl-sm-3{padding-left:12px!important}.pl-sm-4{padding-left:16px!important}.pl-sm-5{padding-left:20px!important}.pl-sm-6{padding-left:24px!important}.pl-sm-7{padding-left:28px!important}.pl-sm-8{padding-left:32px!important}.pl-sm-9{padding-left:36px!important}.pl-sm-10{padding-left:40px!important}.pl-sm-11{padding-left:44px!important}.pl-sm-12{padding-left:48px!important}.pl-sm-13{padding-left:52px!important}.pl-sm-14{padding-left:56px!important}.pl-sm-15{padding-left:60px!important}.pl-sm-16{padding-left:64px!important}.ps-sm-0{padding-inline-start:0px!important}.ps-sm-1{padding-inline-start:4px!important}.ps-sm-2{padding-inline-start:8px!important}.ps-sm-3{padding-inline-start:12px!important}.ps-sm-4{padding-inline-start:16px!important}.ps-sm-5{padding-inline-start:20px!important}.ps-sm-6{padding-inline-start:24px!important}.ps-sm-7{padding-inline-start:28px!important}.ps-sm-8{padding-inline-start:32px!important}.ps-sm-9{padding-inline-start:36px!important}.ps-sm-10{padding-inline-start:40px!important}.ps-sm-11{padding-inline-start:44px!important}.ps-sm-12{padding-inline-start:48px!important}.ps-sm-13{padding-inline-start:52px!important}.ps-sm-14{padding-inline-start:56px!important}.ps-sm-15{padding-inline-start:60px!important}.ps-sm-16{padding-inline-start:64px!important}.pe-sm-0{padding-inline-end:0px!important}.pe-sm-1{padding-inline-end:4px!important}.pe-sm-2{padding-inline-end:8px!important}.pe-sm-3{padding-inline-end:12px!important}.pe-sm-4{padding-inline-end:16px!important}.pe-sm-5{padding-inline-end:20px!important}.pe-sm-6{padding-inline-end:24px!important}.pe-sm-7{padding-inline-end:28px!important}.pe-sm-8{padding-inline-end:32px!important}.pe-sm-9{padding-inline-end:36px!important}.pe-sm-10{padding-inline-end:40px!important}.pe-sm-11{padding-inline-end:44px!important}.pe-sm-12{padding-inline-end:48px!important}.pe-sm-13{padding-inline-end:52px!important}.pe-sm-14{padding-inline-end:56px!important}.pe-sm-15{padding-inline-end:60px!important}.pe-sm-16{padding-inline-end:64px!important}.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}.text-sm-justify{text-align:justify!important}.text-sm-start{text-align:start!important}.text-sm-end{text-align:end!important}.text-sm-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.text-sm-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-sm-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.h-sm-auto{height:auto!important}.h-sm-screen{height:100vh!important}.h-sm-0{height:0!important}.h-sm-25{height:25%!important}.h-sm-50{height:50%!important}.h-sm-75{height:75%!important}.h-sm-100{height:100%!important}.w-sm-auto{width:auto!important}.w-sm-0{width:0!important}.w-sm-25{width:25%!important}.w-sm-33{width:33%!important}.w-sm-50{width:50%!important}.w-sm-66{width:66%!important}.w-sm-75{width:75%!important}.w-sm-100{width:100%!important}}@media (min-width: 960px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.float-md-none{float:none!important}.float-md-left{float:left!important}.float-md-right{float:right!important}.v-locale--is-rtl .float-md-end{float:left!important}.v-locale--is-rtl .float-md-start,.v-locale--is-ltr .float-md-end{float:right!important}.v-locale--is-ltr .float-md-start{float:left!important}.flex-md-fill,.flex-md-1-1{flex:1 1 auto!important}.flex-md-1-0{flex:1 0 auto!important}.flex-md-0-1{flex:0 1 auto!important}.flex-md-0-0{flex:0 0 auto!important}.flex-md-1-1-100{flex:1 1 100%!important}.flex-md-1-0-100{flex:1 0 100%!important}.flex-md-0-1-100{flex:0 1 100%!important}.flex-md-0-0-100{flex:0 0 100%!important}.flex-md-1-1-0{flex:1 1 0!important}.flex-md-1-0-0{flex:1 0 0!important}.flex-md-0-1-0{flex:0 1 0!important}.flex-md-0-0-0{flex:0 0 0!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-md-start{justify-content:flex-start!important}.justify-md-end{justify-content:flex-end!important}.justify-md-center{justify-content:center!important}.justify-md-space-between{justify-content:space-between!important}.justify-md-space-around{justify-content:space-around!important}.justify-md-space-evenly{justify-content:space-evenly!important}.align-md-start{align-items:flex-start!important}.align-md-end{align-items:flex-end!important}.align-md-center{align-items:center!important}.align-md-baseline{align-items:baseline!important}.align-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-space-between{align-content:space-between!important}.align-content-md-space-around{align-content:space-around!important}.align-content-md-space-evenly{align-content:space-evenly!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-6{order:6!important}.order-md-7{order:7!important}.order-md-8{order:8!important}.order-md-9{order:9!important}.order-md-10{order:10!important}.order-md-11{order:11!important}.order-md-12{order:12!important}.order-md-last{order:13!important}.ga-md-0{gap:0px!important}.ga-md-1{gap:4px!important}.ga-md-2{gap:8px!important}.ga-md-3{gap:12px!important}.ga-md-4{gap:16px!important}.ga-md-5{gap:20px!important}.ga-md-6{gap:24px!important}.ga-md-7{gap:28px!important}.ga-md-8{gap:32px!important}.ga-md-9{gap:36px!important}.ga-md-10{gap:40px!important}.ga-md-11{gap:44px!important}.ga-md-12{gap:48px!important}.ga-md-13{gap:52px!important}.ga-md-14{gap:56px!important}.ga-md-15{gap:60px!important}.ga-md-16{gap:64px!important}.ga-md-auto{gap:auto!important}.gr-md-0{row-gap:0px!important}.gr-md-1{row-gap:4px!important}.gr-md-2{row-gap:8px!important}.gr-md-3{row-gap:12px!important}.gr-md-4{row-gap:16px!important}.gr-md-5{row-gap:20px!important}.gr-md-6{row-gap:24px!important}.gr-md-7{row-gap:28px!important}.gr-md-8{row-gap:32px!important}.gr-md-9{row-gap:36px!important}.gr-md-10{row-gap:40px!important}.gr-md-11{row-gap:44px!important}.gr-md-12{row-gap:48px!important}.gr-md-13{row-gap:52px!important}.gr-md-14{row-gap:56px!important}.gr-md-15{row-gap:60px!important}.gr-md-16{row-gap:64px!important}.gr-md-auto{row-gap:auto!important}.gc-md-0{column-gap:0px!important}.gc-md-1{column-gap:4px!important}.gc-md-2{column-gap:8px!important}.gc-md-3{column-gap:12px!important}.gc-md-4{column-gap:16px!important}.gc-md-5{column-gap:20px!important}.gc-md-6{column-gap:24px!important}.gc-md-7{column-gap:28px!important}.gc-md-8{column-gap:32px!important}.gc-md-9{column-gap:36px!important}.gc-md-10{column-gap:40px!important}.gc-md-11{column-gap:44px!important}.gc-md-12{column-gap:48px!important}.gc-md-13{column-gap:52px!important}.gc-md-14{column-gap:56px!important}.gc-md-15{column-gap:60px!important}.gc-md-16{column-gap:64px!important}.gc-md-auto{column-gap:auto!important}.ma-md-0{margin:0!important}.ma-md-1{margin:4px!important}.ma-md-2{margin:8px!important}.ma-md-3{margin:12px!important}.ma-md-4{margin:16px!important}.ma-md-5{margin:20px!important}.ma-md-6{margin:24px!important}.ma-md-7{margin:28px!important}.ma-md-8{margin:32px!important}.ma-md-9{margin:36px!important}.ma-md-10{margin:40px!important}.ma-md-11{margin:44px!important}.ma-md-12{margin:48px!important}.ma-md-13{margin:52px!important}.ma-md-14{margin:56px!important}.ma-md-15{margin:60px!important}.ma-md-16{margin:64px!important}.ma-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:4px!important;margin-left:4px!important}.mx-md-2{margin-right:8px!important;margin-left:8px!important}.mx-md-3{margin-right:12px!important;margin-left:12px!important}.mx-md-4{margin-right:16px!important;margin-left:16px!important}.mx-md-5{margin-right:20px!important;margin-left:20px!important}.mx-md-6{margin-right:24px!important;margin-left:24px!important}.mx-md-7{margin-right:28px!important;margin-left:28px!important}.mx-md-8{margin-right:32px!important;margin-left:32px!important}.mx-md-9{margin-right:36px!important;margin-left:36px!important}.mx-md-10{margin-right:40px!important;margin-left:40px!important}.mx-md-11{margin-right:44px!important;margin-left:44px!important}.mx-md-12{margin-right:48px!important;margin-left:48px!important}.mx-md-13{margin-right:52px!important;margin-left:52px!important}.mx-md-14{margin-right:56px!important;margin-left:56px!important}.mx-md-15{margin-right:60px!important;margin-left:60px!important}.mx-md-16{margin-right:64px!important;margin-left:64px!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:4px!important;margin-bottom:4px!important}.my-md-2{margin-top:8px!important;margin-bottom:8px!important}.my-md-3{margin-top:12px!important;margin-bottom:12px!important}.my-md-4{margin-top:16px!important;margin-bottom:16px!important}.my-md-5{margin-top:20px!important;margin-bottom:20px!important}.my-md-6{margin-top:24px!important;margin-bottom:24px!important}.my-md-7{margin-top:28px!important;margin-bottom:28px!important}.my-md-8{margin-top:32px!important;margin-bottom:32px!important}.my-md-9{margin-top:36px!important;margin-bottom:36px!important}.my-md-10{margin-top:40px!important;margin-bottom:40px!important}.my-md-11{margin-top:44px!important;margin-bottom:44px!important}.my-md-12{margin-top:48px!important;margin-bottom:48px!important}.my-md-13{margin-top:52px!important;margin-bottom:52px!important}.my-md-14{margin-top:56px!important;margin-bottom:56px!important}.my-md-15{margin-top:60px!important;margin-bottom:60px!important}.my-md-16{margin-top:64px!important;margin-bottom:64px!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:4px!important}.mt-md-2{margin-top:8px!important}.mt-md-3{margin-top:12px!important}.mt-md-4{margin-top:16px!important}.mt-md-5{margin-top:20px!important}.mt-md-6{margin-top:24px!important}.mt-md-7{margin-top:28px!important}.mt-md-8{margin-top:32px!important}.mt-md-9{margin-top:36px!important}.mt-md-10{margin-top:40px!important}.mt-md-11{margin-top:44px!important}.mt-md-12{margin-top:48px!important}.mt-md-13{margin-top:52px!important}.mt-md-14{margin-top:56px!important}.mt-md-15{margin-top:60px!important}.mt-md-16{margin-top:64px!important}.mt-md-auto{margin-top:auto!important}.mr-md-0{margin-right:0!important}.mr-md-1{margin-right:4px!important}.mr-md-2{margin-right:8px!important}.mr-md-3{margin-right:12px!important}.mr-md-4{margin-right:16px!important}.mr-md-5{margin-right:20px!important}.mr-md-6{margin-right:24px!important}.mr-md-7{margin-right:28px!important}.mr-md-8{margin-right:32px!important}.mr-md-9{margin-right:36px!important}.mr-md-10{margin-right:40px!important}.mr-md-11{margin-right:44px!important}.mr-md-12{margin-right:48px!important}.mr-md-13{margin-right:52px!important}.mr-md-14{margin-right:56px!important}.mr-md-15{margin-right:60px!important}.mr-md-16{margin-right:64px!important}.mr-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:4px!important}.mb-md-2{margin-bottom:8px!important}.mb-md-3{margin-bottom:12px!important}.mb-md-4{margin-bottom:16px!important}.mb-md-5{margin-bottom:20px!important}.mb-md-6{margin-bottom:24px!important}.mb-md-7{margin-bottom:28px!important}.mb-md-8{margin-bottom:32px!important}.mb-md-9{margin-bottom:36px!important}.mb-md-10{margin-bottom:40px!important}.mb-md-11{margin-bottom:44px!important}.mb-md-12{margin-bottom:48px!important}.mb-md-13{margin-bottom:52px!important}.mb-md-14{margin-bottom:56px!important}.mb-md-15{margin-bottom:60px!important}.mb-md-16{margin-bottom:64px!important}.mb-md-auto{margin-bottom:auto!important}.ml-md-0{margin-left:0!important}.ml-md-1{margin-left:4px!important}.ml-md-2{margin-left:8px!important}.ml-md-3{margin-left:12px!important}.ml-md-4{margin-left:16px!important}.ml-md-5{margin-left:20px!important}.ml-md-6{margin-left:24px!important}.ml-md-7{margin-left:28px!important}.ml-md-8{margin-left:32px!important}.ml-md-9{margin-left:36px!important}.ml-md-10{margin-left:40px!important}.ml-md-11{margin-left:44px!important}.ml-md-12{margin-left:48px!important}.ml-md-13{margin-left:52px!important}.ml-md-14{margin-left:56px!important}.ml-md-15{margin-left:60px!important}.ml-md-16{margin-left:64px!important}.ml-md-auto{margin-left:auto!important}.ms-md-0{margin-inline-start:0px!important}.ms-md-1{margin-inline-start:4px!important}.ms-md-2{margin-inline-start:8px!important}.ms-md-3{margin-inline-start:12px!important}.ms-md-4{margin-inline-start:16px!important}.ms-md-5{margin-inline-start:20px!important}.ms-md-6{margin-inline-start:24px!important}.ms-md-7{margin-inline-start:28px!important}.ms-md-8{margin-inline-start:32px!important}.ms-md-9{margin-inline-start:36px!important}.ms-md-10{margin-inline-start:40px!important}.ms-md-11{margin-inline-start:44px!important}.ms-md-12{margin-inline-start:48px!important}.ms-md-13{margin-inline-start:52px!important}.ms-md-14{margin-inline-start:56px!important}.ms-md-15{margin-inline-start:60px!important}.ms-md-16{margin-inline-start:64px!important}.ms-md-auto{margin-inline-start:auto!important}.me-md-0{margin-inline-end:0px!important}.me-md-1{margin-inline-end:4px!important}.me-md-2{margin-inline-end:8px!important}.me-md-3{margin-inline-end:12px!important}.me-md-4{margin-inline-end:16px!important}.me-md-5{margin-inline-end:20px!important}.me-md-6{margin-inline-end:24px!important}.me-md-7{margin-inline-end:28px!important}.me-md-8{margin-inline-end:32px!important}.me-md-9{margin-inline-end:36px!important}.me-md-10{margin-inline-end:40px!important}.me-md-11{margin-inline-end:44px!important}.me-md-12{margin-inline-end:48px!important}.me-md-13{margin-inline-end:52px!important}.me-md-14{margin-inline-end:56px!important}.me-md-15{margin-inline-end:60px!important}.me-md-16{margin-inline-end:64px!important}.me-md-auto{margin-inline-end:auto!important}.ma-md-n1{margin:-4px!important}.ma-md-n2{margin:-8px!important}.ma-md-n3{margin:-12px!important}.ma-md-n4{margin:-16px!important}.ma-md-n5{margin:-20px!important}.ma-md-n6{margin:-24px!important}.ma-md-n7{margin:-28px!important}.ma-md-n8{margin:-32px!important}.ma-md-n9{margin:-36px!important}.ma-md-n10{margin:-40px!important}.ma-md-n11{margin:-44px!important}.ma-md-n12{margin:-48px!important}.ma-md-n13{margin:-52px!important}.ma-md-n14{margin:-56px!important}.ma-md-n15{margin:-60px!important}.ma-md-n16{margin:-64px!important}.mx-md-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-md-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-md-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-md-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-md-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-md-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-md-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-md-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-md-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-md-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-md-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-md-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-md-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-md-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-md-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-md-n16{margin-right:-64px!important;margin-left:-64px!important}.my-md-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-md-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-md-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-md-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-md-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-md-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-md-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-md-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-md-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-md-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-md-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-md-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-md-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-md-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-md-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-md-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-md-n1{margin-top:-4px!important}.mt-md-n2{margin-top:-8px!important}.mt-md-n3{margin-top:-12px!important}.mt-md-n4{margin-top:-16px!important}.mt-md-n5{margin-top:-20px!important}.mt-md-n6{margin-top:-24px!important}.mt-md-n7{margin-top:-28px!important}.mt-md-n8{margin-top:-32px!important}.mt-md-n9{margin-top:-36px!important}.mt-md-n10{margin-top:-40px!important}.mt-md-n11{margin-top:-44px!important}.mt-md-n12{margin-top:-48px!important}.mt-md-n13{margin-top:-52px!important}.mt-md-n14{margin-top:-56px!important}.mt-md-n15{margin-top:-60px!important}.mt-md-n16{margin-top:-64px!important}.mr-md-n1{margin-right:-4px!important}.mr-md-n2{margin-right:-8px!important}.mr-md-n3{margin-right:-12px!important}.mr-md-n4{margin-right:-16px!important}.mr-md-n5{margin-right:-20px!important}.mr-md-n6{margin-right:-24px!important}.mr-md-n7{margin-right:-28px!important}.mr-md-n8{margin-right:-32px!important}.mr-md-n9{margin-right:-36px!important}.mr-md-n10{margin-right:-40px!important}.mr-md-n11{margin-right:-44px!important}.mr-md-n12{margin-right:-48px!important}.mr-md-n13{margin-right:-52px!important}.mr-md-n14{margin-right:-56px!important}.mr-md-n15{margin-right:-60px!important}.mr-md-n16{margin-right:-64px!important}.mb-md-n1{margin-bottom:-4px!important}.mb-md-n2{margin-bottom:-8px!important}.mb-md-n3{margin-bottom:-12px!important}.mb-md-n4{margin-bottom:-16px!important}.mb-md-n5{margin-bottom:-20px!important}.mb-md-n6{margin-bottom:-24px!important}.mb-md-n7{margin-bottom:-28px!important}.mb-md-n8{margin-bottom:-32px!important}.mb-md-n9{margin-bottom:-36px!important}.mb-md-n10{margin-bottom:-40px!important}.mb-md-n11{margin-bottom:-44px!important}.mb-md-n12{margin-bottom:-48px!important}.mb-md-n13{margin-bottom:-52px!important}.mb-md-n14{margin-bottom:-56px!important}.mb-md-n15{margin-bottom:-60px!important}.mb-md-n16{margin-bottom:-64px!important}.ml-md-n1{margin-left:-4px!important}.ml-md-n2{margin-left:-8px!important}.ml-md-n3{margin-left:-12px!important}.ml-md-n4{margin-left:-16px!important}.ml-md-n5{margin-left:-20px!important}.ml-md-n6{margin-left:-24px!important}.ml-md-n7{margin-left:-28px!important}.ml-md-n8{margin-left:-32px!important}.ml-md-n9{margin-left:-36px!important}.ml-md-n10{margin-left:-40px!important}.ml-md-n11{margin-left:-44px!important}.ml-md-n12{margin-left:-48px!important}.ml-md-n13{margin-left:-52px!important}.ml-md-n14{margin-left:-56px!important}.ml-md-n15{margin-left:-60px!important}.ml-md-n16{margin-left:-64px!important}.ms-md-n1{margin-inline-start:-4px!important}.ms-md-n2{margin-inline-start:-8px!important}.ms-md-n3{margin-inline-start:-12px!important}.ms-md-n4{margin-inline-start:-16px!important}.ms-md-n5{margin-inline-start:-20px!important}.ms-md-n6{margin-inline-start:-24px!important}.ms-md-n7{margin-inline-start:-28px!important}.ms-md-n8{margin-inline-start:-32px!important}.ms-md-n9{margin-inline-start:-36px!important}.ms-md-n10{margin-inline-start:-40px!important}.ms-md-n11{margin-inline-start:-44px!important}.ms-md-n12{margin-inline-start:-48px!important}.ms-md-n13{margin-inline-start:-52px!important}.ms-md-n14{margin-inline-start:-56px!important}.ms-md-n15{margin-inline-start:-60px!important}.ms-md-n16{margin-inline-start:-64px!important}.me-md-n1{margin-inline-end:-4px!important}.me-md-n2{margin-inline-end:-8px!important}.me-md-n3{margin-inline-end:-12px!important}.me-md-n4{margin-inline-end:-16px!important}.me-md-n5{margin-inline-end:-20px!important}.me-md-n6{margin-inline-end:-24px!important}.me-md-n7{margin-inline-end:-28px!important}.me-md-n8{margin-inline-end:-32px!important}.me-md-n9{margin-inline-end:-36px!important}.me-md-n10{margin-inline-end:-40px!important}.me-md-n11{margin-inline-end:-44px!important}.me-md-n12{margin-inline-end:-48px!important}.me-md-n13{margin-inline-end:-52px!important}.me-md-n14{margin-inline-end:-56px!important}.me-md-n15{margin-inline-end:-60px!important}.me-md-n16{margin-inline-end:-64px!important}.pa-md-0{padding:0!important}.pa-md-1{padding:4px!important}.pa-md-2{padding:8px!important}.pa-md-3{padding:12px!important}.pa-md-4{padding:16px!important}.pa-md-5{padding:20px!important}.pa-md-6{padding:24px!important}.pa-md-7{padding:28px!important}.pa-md-8{padding:32px!important}.pa-md-9{padding:36px!important}.pa-md-10{padding:40px!important}.pa-md-11{padding:44px!important}.pa-md-12{padding:48px!important}.pa-md-13{padding:52px!important}.pa-md-14{padding:56px!important}.pa-md-15{padding:60px!important}.pa-md-16{padding:64px!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:4px!important;padding-left:4px!important}.px-md-2{padding-right:8px!important;padding-left:8px!important}.px-md-3{padding-right:12px!important;padding-left:12px!important}.px-md-4{padding-right:16px!important;padding-left:16px!important}.px-md-5{padding-right:20px!important;padding-left:20px!important}.px-md-6{padding-right:24px!important;padding-left:24px!important}.px-md-7{padding-right:28px!important;padding-left:28px!important}.px-md-8{padding-right:32px!important;padding-left:32px!important}.px-md-9{padding-right:36px!important;padding-left:36px!important}.px-md-10{padding-right:40px!important;padding-left:40px!important}.px-md-11{padding-right:44px!important;padding-left:44px!important}.px-md-12{padding-right:48px!important;padding-left:48px!important}.px-md-13{padding-right:52px!important;padding-left:52px!important}.px-md-14{padding-right:56px!important;padding-left:56px!important}.px-md-15{padding-right:60px!important;padding-left:60px!important}.px-md-16{padding-right:64px!important;padding-left:64px!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:4px!important;padding-bottom:4px!important}.py-md-2{padding-top:8px!important;padding-bottom:8px!important}.py-md-3{padding-top:12px!important;padding-bottom:12px!important}.py-md-4{padding-top:16px!important;padding-bottom:16px!important}.py-md-5{padding-top:20px!important;padding-bottom:20px!important}.py-md-6{padding-top:24px!important;padding-bottom:24px!important}.py-md-7{padding-top:28px!important;padding-bottom:28px!important}.py-md-8{padding-top:32px!important;padding-bottom:32px!important}.py-md-9{padding-top:36px!important;padding-bottom:36px!important}.py-md-10{padding-top:40px!important;padding-bottom:40px!important}.py-md-11{padding-top:44px!important;padding-bottom:44px!important}.py-md-12{padding-top:48px!important;padding-bottom:48px!important}.py-md-13{padding-top:52px!important;padding-bottom:52px!important}.py-md-14{padding-top:56px!important;padding-bottom:56px!important}.py-md-15{padding-top:60px!important;padding-bottom:60px!important}.py-md-16{padding-top:64px!important;padding-bottom:64px!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:4px!important}.pt-md-2{padding-top:8px!important}.pt-md-3{padding-top:12px!important}.pt-md-4{padding-top:16px!important}.pt-md-5{padding-top:20px!important}.pt-md-6{padding-top:24px!important}.pt-md-7{padding-top:28px!important}.pt-md-8{padding-top:32px!important}.pt-md-9{padding-top:36px!important}.pt-md-10{padding-top:40px!important}.pt-md-11{padding-top:44px!important}.pt-md-12{padding-top:48px!important}.pt-md-13{padding-top:52px!important}.pt-md-14{padding-top:56px!important}.pt-md-15{padding-top:60px!important}.pt-md-16{padding-top:64px!important}.pr-md-0{padding-right:0!important}.pr-md-1{padding-right:4px!important}.pr-md-2{padding-right:8px!important}.pr-md-3{padding-right:12px!important}.pr-md-4{padding-right:16px!important}.pr-md-5{padding-right:20px!important}.pr-md-6{padding-right:24px!important}.pr-md-7{padding-right:28px!important}.pr-md-8{padding-right:32px!important}.pr-md-9{padding-right:36px!important}.pr-md-10{padding-right:40px!important}.pr-md-11{padding-right:44px!important}.pr-md-12{padding-right:48px!important}.pr-md-13{padding-right:52px!important}.pr-md-14{padding-right:56px!important}.pr-md-15{padding-right:60px!important}.pr-md-16{padding-right:64px!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:4px!important}.pb-md-2{padding-bottom:8px!important}.pb-md-3{padding-bottom:12px!important}.pb-md-4{padding-bottom:16px!important}.pb-md-5{padding-bottom:20px!important}.pb-md-6{padding-bottom:24px!important}.pb-md-7{padding-bottom:28px!important}.pb-md-8{padding-bottom:32px!important}.pb-md-9{padding-bottom:36px!important}.pb-md-10{padding-bottom:40px!important}.pb-md-11{padding-bottom:44px!important}.pb-md-12{padding-bottom:48px!important}.pb-md-13{padding-bottom:52px!important}.pb-md-14{padding-bottom:56px!important}.pb-md-15{padding-bottom:60px!important}.pb-md-16{padding-bottom:64px!important}.pl-md-0{padding-left:0!important}.pl-md-1{padding-left:4px!important}.pl-md-2{padding-left:8px!important}.pl-md-3{padding-left:12px!important}.pl-md-4{padding-left:16px!important}.pl-md-5{padding-left:20px!important}.pl-md-6{padding-left:24px!important}.pl-md-7{padding-left:28px!important}.pl-md-8{padding-left:32px!important}.pl-md-9{padding-left:36px!important}.pl-md-10{padding-left:40px!important}.pl-md-11{padding-left:44px!important}.pl-md-12{padding-left:48px!important}.pl-md-13{padding-left:52px!important}.pl-md-14{padding-left:56px!important}.pl-md-15{padding-left:60px!important}.pl-md-16{padding-left:64px!important}.ps-md-0{padding-inline-start:0px!important}.ps-md-1{padding-inline-start:4px!important}.ps-md-2{padding-inline-start:8px!important}.ps-md-3{padding-inline-start:12px!important}.ps-md-4{padding-inline-start:16px!important}.ps-md-5{padding-inline-start:20px!important}.ps-md-6{padding-inline-start:24px!important}.ps-md-7{padding-inline-start:28px!important}.ps-md-8{padding-inline-start:32px!important}.ps-md-9{padding-inline-start:36px!important}.ps-md-10{padding-inline-start:40px!important}.ps-md-11{padding-inline-start:44px!important}.ps-md-12{padding-inline-start:48px!important}.ps-md-13{padding-inline-start:52px!important}.ps-md-14{padding-inline-start:56px!important}.ps-md-15{padding-inline-start:60px!important}.ps-md-16{padding-inline-start:64px!important}.pe-md-0{padding-inline-end:0px!important}.pe-md-1{padding-inline-end:4px!important}.pe-md-2{padding-inline-end:8px!important}.pe-md-3{padding-inline-end:12px!important}.pe-md-4{padding-inline-end:16px!important}.pe-md-5{padding-inline-end:20px!important}.pe-md-6{padding-inline-end:24px!important}.pe-md-7{padding-inline-end:28px!important}.pe-md-8{padding-inline-end:32px!important}.pe-md-9{padding-inline-end:36px!important}.pe-md-10{padding-inline-end:40px!important}.pe-md-11{padding-inline-end:44px!important}.pe-md-12{padding-inline-end:48px!important}.pe-md-13{padding-inline-end:52px!important}.pe-md-14{padding-inline-end:56px!important}.pe-md-15{padding-inline-end:60px!important}.pe-md-16{padding-inline-end:64px!important}.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}.text-md-justify{text-align:justify!important}.text-md-start{text-align:start!important}.text-md-end{text-align:end!important}.text-md-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.text-md-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-md-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.h-md-auto{height:auto!important}.h-md-screen{height:100vh!important}.h-md-0{height:0!important}.h-md-25{height:25%!important}.h-md-50{height:50%!important}.h-md-75{height:75%!important}.h-md-100{height:100%!important}.w-md-auto{width:auto!important}.w-md-0{width:0!important}.w-md-25{width:25%!important}.w-md-33{width:33%!important}.w-md-50{width:50%!important}.w-md-66{width:66%!important}.w-md-75{width:75%!important}.w-md-100{width:100%!important}}@media (min-width: 1280px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.float-lg-none{float:none!important}.float-lg-left{float:left!important}.float-lg-right{float:right!important}.v-locale--is-rtl .float-lg-end{float:left!important}.v-locale--is-rtl .float-lg-start,.v-locale--is-ltr .float-lg-end{float:right!important}.v-locale--is-ltr .float-lg-start{float:left!important}.flex-lg-fill,.flex-lg-1-1{flex:1 1 auto!important}.flex-lg-1-0{flex:1 0 auto!important}.flex-lg-0-1{flex:0 1 auto!important}.flex-lg-0-0{flex:0 0 auto!important}.flex-lg-1-1-100{flex:1 1 100%!important}.flex-lg-1-0-100{flex:1 0 100%!important}.flex-lg-0-1-100{flex:0 1 100%!important}.flex-lg-0-0-100{flex:0 0 100%!important}.flex-lg-1-1-0{flex:1 1 0!important}.flex-lg-1-0-0{flex:1 0 0!important}.flex-lg-0-1-0{flex:0 1 0!important}.flex-lg-0-0-0{flex:0 0 0!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-lg-start{justify-content:flex-start!important}.justify-lg-end{justify-content:flex-end!important}.justify-lg-center{justify-content:center!important}.justify-lg-space-between{justify-content:space-between!important}.justify-lg-space-around{justify-content:space-around!important}.justify-lg-space-evenly{justify-content:space-evenly!important}.align-lg-start{align-items:flex-start!important}.align-lg-end{align-items:flex-end!important}.align-lg-center{align-items:center!important}.align-lg-baseline{align-items:baseline!important}.align-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-space-between{align-content:space-between!important}.align-content-lg-space-around{align-content:space-around!important}.align-content-lg-space-evenly{align-content:space-evenly!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-6{order:6!important}.order-lg-7{order:7!important}.order-lg-8{order:8!important}.order-lg-9{order:9!important}.order-lg-10{order:10!important}.order-lg-11{order:11!important}.order-lg-12{order:12!important}.order-lg-last{order:13!important}.ga-lg-0{gap:0px!important}.ga-lg-1{gap:4px!important}.ga-lg-2{gap:8px!important}.ga-lg-3{gap:12px!important}.ga-lg-4{gap:16px!important}.ga-lg-5{gap:20px!important}.ga-lg-6{gap:24px!important}.ga-lg-7{gap:28px!important}.ga-lg-8{gap:32px!important}.ga-lg-9{gap:36px!important}.ga-lg-10{gap:40px!important}.ga-lg-11{gap:44px!important}.ga-lg-12{gap:48px!important}.ga-lg-13{gap:52px!important}.ga-lg-14{gap:56px!important}.ga-lg-15{gap:60px!important}.ga-lg-16{gap:64px!important}.ga-lg-auto{gap:auto!important}.gr-lg-0{row-gap:0px!important}.gr-lg-1{row-gap:4px!important}.gr-lg-2{row-gap:8px!important}.gr-lg-3{row-gap:12px!important}.gr-lg-4{row-gap:16px!important}.gr-lg-5{row-gap:20px!important}.gr-lg-6{row-gap:24px!important}.gr-lg-7{row-gap:28px!important}.gr-lg-8{row-gap:32px!important}.gr-lg-9{row-gap:36px!important}.gr-lg-10{row-gap:40px!important}.gr-lg-11{row-gap:44px!important}.gr-lg-12{row-gap:48px!important}.gr-lg-13{row-gap:52px!important}.gr-lg-14{row-gap:56px!important}.gr-lg-15{row-gap:60px!important}.gr-lg-16{row-gap:64px!important}.gr-lg-auto{row-gap:auto!important}.gc-lg-0{column-gap:0px!important}.gc-lg-1{column-gap:4px!important}.gc-lg-2{column-gap:8px!important}.gc-lg-3{column-gap:12px!important}.gc-lg-4{column-gap:16px!important}.gc-lg-5{column-gap:20px!important}.gc-lg-6{column-gap:24px!important}.gc-lg-7{column-gap:28px!important}.gc-lg-8{column-gap:32px!important}.gc-lg-9{column-gap:36px!important}.gc-lg-10{column-gap:40px!important}.gc-lg-11{column-gap:44px!important}.gc-lg-12{column-gap:48px!important}.gc-lg-13{column-gap:52px!important}.gc-lg-14{column-gap:56px!important}.gc-lg-15{column-gap:60px!important}.gc-lg-16{column-gap:64px!important}.gc-lg-auto{column-gap:auto!important}.ma-lg-0{margin:0!important}.ma-lg-1{margin:4px!important}.ma-lg-2{margin:8px!important}.ma-lg-3{margin:12px!important}.ma-lg-4{margin:16px!important}.ma-lg-5{margin:20px!important}.ma-lg-6{margin:24px!important}.ma-lg-7{margin:28px!important}.ma-lg-8{margin:32px!important}.ma-lg-9{margin:36px!important}.ma-lg-10{margin:40px!important}.ma-lg-11{margin:44px!important}.ma-lg-12{margin:48px!important}.ma-lg-13{margin:52px!important}.ma-lg-14{margin:56px!important}.ma-lg-15{margin:60px!important}.ma-lg-16{margin:64px!important}.ma-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:4px!important;margin-left:4px!important}.mx-lg-2{margin-right:8px!important;margin-left:8px!important}.mx-lg-3{margin-right:12px!important;margin-left:12px!important}.mx-lg-4{margin-right:16px!important;margin-left:16px!important}.mx-lg-5{margin-right:20px!important;margin-left:20px!important}.mx-lg-6{margin-right:24px!important;margin-left:24px!important}.mx-lg-7{margin-right:28px!important;margin-left:28px!important}.mx-lg-8{margin-right:32px!important;margin-left:32px!important}.mx-lg-9{margin-right:36px!important;margin-left:36px!important}.mx-lg-10{margin-right:40px!important;margin-left:40px!important}.mx-lg-11{margin-right:44px!important;margin-left:44px!important}.mx-lg-12{margin-right:48px!important;margin-left:48px!important}.mx-lg-13{margin-right:52px!important;margin-left:52px!important}.mx-lg-14{margin-right:56px!important;margin-left:56px!important}.mx-lg-15{margin-right:60px!important;margin-left:60px!important}.mx-lg-16{margin-right:64px!important;margin-left:64px!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:4px!important;margin-bottom:4px!important}.my-lg-2{margin-top:8px!important;margin-bottom:8px!important}.my-lg-3{margin-top:12px!important;margin-bottom:12px!important}.my-lg-4{margin-top:16px!important;margin-bottom:16px!important}.my-lg-5{margin-top:20px!important;margin-bottom:20px!important}.my-lg-6{margin-top:24px!important;margin-bottom:24px!important}.my-lg-7{margin-top:28px!important;margin-bottom:28px!important}.my-lg-8{margin-top:32px!important;margin-bottom:32px!important}.my-lg-9{margin-top:36px!important;margin-bottom:36px!important}.my-lg-10{margin-top:40px!important;margin-bottom:40px!important}.my-lg-11{margin-top:44px!important;margin-bottom:44px!important}.my-lg-12{margin-top:48px!important;margin-bottom:48px!important}.my-lg-13{margin-top:52px!important;margin-bottom:52px!important}.my-lg-14{margin-top:56px!important;margin-bottom:56px!important}.my-lg-15{margin-top:60px!important;margin-bottom:60px!important}.my-lg-16{margin-top:64px!important;margin-bottom:64px!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:4px!important}.mt-lg-2{margin-top:8px!important}.mt-lg-3{margin-top:12px!important}.mt-lg-4{margin-top:16px!important}.mt-lg-5{margin-top:20px!important}.mt-lg-6{margin-top:24px!important}.mt-lg-7{margin-top:28px!important}.mt-lg-8{margin-top:32px!important}.mt-lg-9{margin-top:36px!important}.mt-lg-10{margin-top:40px!important}.mt-lg-11{margin-top:44px!important}.mt-lg-12{margin-top:48px!important}.mt-lg-13{margin-top:52px!important}.mt-lg-14{margin-top:56px!important}.mt-lg-15{margin-top:60px!important}.mt-lg-16{margin-top:64px!important}.mt-lg-auto{margin-top:auto!important}.mr-lg-0{margin-right:0!important}.mr-lg-1{margin-right:4px!important}.mr-lg-2{margin-right:8px!important}.mr-lg-3{margin-right:12px!important}.mr-lg-4{margin-right:16px!important}.mr-lg-5{margin-right:20px!important}.mr-lg-6{margin-right:24px!important}.mr-lg-7{margin-right:28px!important}.mr-lg-8{margin-right:32px!important}.mr-lg-9{margin-right:36px!important}.mr-lg-10{margin-right:40px!important}.mr-lg-11{margin-right:44px!important}.mr-lg-12{margin-right:48px!important}.mr-lg-13{margin-right:52px!important}.mr-lg-14{margin-right:56px!important}.mr-lg-15{margin-right:60px!important}.mr-lg-16{margin-right:64px!important}.mr-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:4px!important}.mb-lg-2{margin-bottom:8px!important}.mb-lg-3{margin-bottom:12px!important}.mb-lg-4{margin-bottom:16px!important}.mb-lg-5{margin-bottom:20px!important}.mb-lg-6{margin-bottom:24px!important}.mb-lg-7{margin-bottom:28px!important}.mb-lg-8{margin-bottom:32px!important}.mb-lg-9{margin-bottom:36px!important}.mb-lg-10{margin-bottom:40px!important}.mb-lg-11{margin-bottom:44px!important}.mb-lg-12{margin-bottom:48px!important}.mb-lg-13{margin-bottom:52px!important}.mb-lg-14{margin-bottom:56px!important}.mb-lg-15{margin-bottom:60px!important}.mb-lg-16{margin-bottom:64px!important}.mb-lg-auto{margin-bottom:auto!important}.ml-lg-0{margin-left:0!important}.ml-lg-1{margin-left:4px!important}.ml-lg-2{margin-left:8px!important}.ml-lg-3{margin-left:12px!important}.ml-lg-4{margin-left:16px!important}.ml-lg-5{margin-left:20px!important}.ml-lg-6{margin-left:24px!important}.ml-lg-7{margin-left:28px!important}.ml-lg-8{margin-left:32px!important}.ml-lg-9{margin-left:36px!important}.ml-lg-10{margin-left:40px!important}.ml-lg-11{margin-left:44px!important}.ml-lg-12{margin-left:48px!important}.ml-lg-13{margin-left:52px!important}.ml-lg-14{margin-left:56px!important}.ml-lg-15{margin-left:60px!important}.ml-lg-16{margin-left:64px!important}.ml-lg-auto{margin-left:auto!important}.ms-lg-0{margin-inline-start:0px!important}.ms-lg-1{margin-inline-start:4px!important}.ms-lg-2{margin-inline-start:8px!important}.ms-lg-3{margin-inline-start:12px!important}.ms-lg-4{margin-inline-start:16px!important}.ms-lg-5{margin-inline-start:20px!important}.ms-lg-6{margin-inline-start:24px!important}.ms-lg-7{margin-inline-start:28px!important}.ms-lg-8{margin-inline-start:32px!important}.ms-lg-9{margin-inline-start:36px!important}.ms-lg-10{margin-inline-start:40px!important}.ms-lg-11{margin-inline-start:44px!important}.ms-lg-12{margin-inline-start:48px!important}.ms-lg-13{margin-inline-start:52px!important}.ms-lg-14{margin-inline-start:56px!important}.ms-lg-15{margin-inline-start:60px!important}.ms-lg-16{margin-inline-start:64px!important}.ms-lg-auto{margin-inline-start:auto!important}.me-lg-0{margin-inline-end:0px!important}.me-lg-1{margin-inline-end:4px!important}.me-lg-2{margin-inline-end:8px!important}.me-lg-3{margin-inline-end:12px!important}.me-lg-4{margin-inline-end:16px!important}.me-lg-5{margin-inline-end:20px!important}.me-lg-6{margin-inline-end:24px!important}.me-lg-7{margin-inline-end:28px!important}.me-lg-8{margin-inline-end:32px!important}.me-lg-9{margin-inline-end:36px!important}.me-lg-10{margin-inline-end:40px!important}.me-lg-11{margin-inline-end:44px!important}.me-lg-12{margin-inline-end:48px!important}.me-lg-13{margin-inline-end:52px!important}.me-lg-14{margin-inline-end:56px!important}.me-lg-15{margin-inline-end:60px!important}.me-lg-16{margin-inline-end:64px!important}.me-lg-auto{margin-inline-end:auto!important}.ma-lg-n1{margin:-4px!important}.ma-lg-n2{margin:-8px!important}.ma-lg-n3{margin:-12px!important}.ma-lg-n4{margin:-16px!important}.ma-lg-n5{margin:-20px!important}.ma-lg-n6{margin:-24px!important}.ma-lg-n7{margin:-28px!important}.ma-lg-n8{margin:-32px!important}.ma-lg-n9{margin:-36px!important}.ma-lg-n10{margin:-40px!important}.ma-lg-n11{margin:-44px!important}.ma-lg-n12{margin:-48px!important}.ma-lg-n13{margin:-52px!important}.ma-lg-n14{margin:-56px!important}.ma-lg-n15{margin:-60px!important}.ma-lg-n16{margin:-64px!important}.mx-lg-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-lg-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-lg-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-lg-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-lg-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-lg-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-lg-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-lg-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-lg-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-lg-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-lg-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-lg-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-lg-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-lg-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-lg-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-lg-n16{margin-right:-64px!important;margin-left:-64px!important}.my-lg-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-lg-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-lg-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-lg-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-lg-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-lg-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-lg-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-lg-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-lg-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-lg-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-lg-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-lg-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-lg-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-lg-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-lg-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-lg-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-lg-n1{margin-top:-4px!important}.mt-lg-n2{margin-top:-8px!important}.mt-lg-n3{margin-top:-12px!important}.mt-lg-n4{margin-top:-16px!important}.mt-lg-n5{margin-top:-20px!important}.mt-lg-n6{margin-top:-24px!important}.mt-lg-n7{margin-top:-28px!important}.mt-lg-n8{margin-top:-32px!important}.mt-lg-n9{margin-top:-36px!important}.mt-lg-n10{margin-top:-40px!important}.mt-lg-n11{margin-top:-44px!important}.mt-lg-n12{margin-top:-48px!important}.mt-lg-n13{margin-top:-52px!important}.mt-lg-n14{margin-top:-56px!important}.mt-lg-n15{margin-top:-60px!important}.mt-lg-n16{margin-top:-64px!important}.mr-lg-n1{margin-right:-4px!important}.mr-lg-n2{margin-right:-8px!important}.mr-lg-n3{margin-right:-12px!important}.mr-lg-n4{margin-right:-16px!important}.mr-lg-n5{margin-right:-20px!important}.mr-lg-n6{margin-right:-24px!important}.mr-lg-n7{margin-right:-28px!important}.mr-lg-n8{margin-right:-32px!important}.mr-lg-n9{margin-right:-36px!important}.mr-lg-n10{margin-right:-40px!important}.mr-lg-n11{margin-right:-44px!important}.mr-lg-n12{margin-right:-48px!important}.mr-lg-n13{margin-right:-52px!important}.mr-lg-n14{margin-right:-56px!important}.mr-lg-n15{margin-right:-60px!important}.mr-lg-n16{margin-right:-64px!important}.mb-lg-n1{margin-bottom:-4px!important}.mb-lg-n2{margin-bottom:-8px!important}.mb-lg-n3{margin-bottom:-12px!important}.mb-lg-n4{margin-bottom:-16px!important}.mb-lg-n5{margin-bottom:-20px!important}.mb-lg-n6{margin-bottom:-24px!important}.mb-lg-n7{margin-bottom:-28px!important}.mb-lg-n8{margin-bottom:-32px!important}.mb-lg-n9{margin-bottom:-36px!important}.mb-lg-n10{margin-bottom:-40px!important}.mb-lg-n11{margin-bottom:-44px!important}.mb-lg-n12{margin-bottom:-48px!important}.mb-lg-n13{margin-bottom:-52px!important}.mb-lg-n14{margin-bottom:-56px!important}.mb-lg-n15{margin-bottom:-60px!important}.mb-lg-n16{margin-bottom:-64px!important}.ml-lg-n1{margin-left:-4px!important}.ml-lg-n2{margin-left:-8px!important}.ml-lg-n3{margin-left:-12px!important}.ml-lg-n4{margin-left:-16px!important}.ml-lg-n5{margin-left:-20px!important}.ml-lg-n6{margin-left:-24px!important}.ml-lg-n7{margin-left:-28px!important}.ml-lg-n8{margin-left:-32px!important}.ml-lg-n9{margin-left:-36px!important}.ml-lg-n10{margin-left:-40px!important}.ml-lg-n11{margin-left:-44px!important}.ml-lg-n12{margin-left:-48px!important}.ml-lg-n13{margin-left:-52px!important}.ml-lg-n14{margin-left:-56px!important}.ml-lg-n15{margin-left:-60px!important}.ml-lg-n16{margin-left:-64px!important}.ms-lg-n1{margin-inline-start:-4px!important}.ms-lg-n2{margin-inline-start:-8px!important}.ms-lg-n3{margin-inline-start:-12px!important}.ms-lg-n4{margin-inline-start:-16px!important}.ms-lg-n5{margin-inline-start:-20px!important}.ms-lg-n6{margin-inline-start:-24px!important}.ms-lg-n7{margin-inline-start:-28px!important}.ms-lg-n8{margin-inline-start:-32px!important}.ms-lg-n9{margin-inline-start:-36px!important}.ms-lg-n10{margin-inline-start:-40px!important}.ms-lg-n11{margin-inline-start:-44px!important}.ms-lg-n12{margin-inline-start:-48px!important}.ms-lg-n13{margin-inline-start:-52px!important}.ms-lg-n14{margin-inline-start:-56px!important}.ms-lg-n15{margin-inline-start:-60px!important}.ms-lg-n16{margin-inline-start:-64px!important}.me-lg-n1{margin-inline-end:-4px!important}.me-lg-n2{margin-inline-end:-8px!important}.me-lg-n3{margin-inline-end:-12px!important}.me-lg-n4{margin-inline-end:-16px!important}.me-lg-n5{margin-inline-end:-20px!important}.me-lg-n6{margin-inline-end:-24px!important}.me-lg-n7{margin-inline-end:-28px!important}.me-lg-n8{margin-inline-end:-32px!important}.me-lg-n9{margin-inline-end:-36px!important}.me-lg-n10{margin-inline-end:-40px!important}.me-lg-n11{margin-inline-end:-44px!important}.me-lg-n12{margin-inline-end:-48px!important}.me-lg-n13{margin-inline-end:-52px!important}.me-lg-n14{margin-inline-end:-56px!important}.me-lg-n15{margin-inline-end:-60px!important}.me-lg-n16{margin-inline-end:-64px!important}.pa-lg-0{padding:0!important}.pa-lg-1{padding:4px!important}.pa-lg-2{padding:8px!important}.pa-lg-3{padding:12px!important}.pa-lg-4{padding:16px!important}.pa-lg-5{padding:20px!important}.pa-lg-6{padding:24px!important}.pa-lg-7{padding:28px!important}.pa-lg-8{padding:32px!important}.pa-lg-9{padding:36px!important}.pa-lg-10{padding:40px!important}.pa-lg-11{padding:44px!important}.pa-lg-12{padding:48px!important}.pa-lg-13{padding:52px!important}.pa-lg-14{padding:56px!important}.pa-lg-15{padding:60px!important}.pa-lg-16{padding:64px!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:4px!important;padding-left:4px!important}.px-lg-2{padding-right:8px!important;padding-left:8px!important}.px-lg-3{padding-right:12px!important;padding-left:12px!important}.px-lg-4{padding-right:16px!important;padding-left:16px!important}.px-lg-5{padding-right:20px!important;padding-left:20px!important}.px-lg-6{padding-right:24px!important;padding-left:24px!important}.px-lg-7{padding-right:28px!important;padding-left:28px!important}.px-lg-8{padding-right:32px!important;padding-left:32px!important}.px-lg-9{padding-right:36px!important;padding-left:36px!important}.px-lg-10{padding-right:40px!important;padding-left:40px!important}.px-lg-11{padding-right:44px!important;padding-left:44px!important}.px-lg-12{padding-right:48px!important;padding-left:48px!important}.px-lg-13{padding-right:52px!important;padding-left:52px!important}.px-lg-14{padding-right:56px!important;padding-left:56px!important}.px-lg-15{padding-right:60px!important;padding-left:60px!important}.px-lg-16{padding-right:64px!important;padding-left:64px!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:4px!important;padding-bottom:4px!important}.py-lg-2{padding-top:8px!important;padding-bottom:8px!important}.py-lg-3{padding-top:12px!important;padding-bottom:12px!important}.py-lg-4{padding-top:16px!important;padding-bottom:16px!important}.py-lg-5{padding-top:20px!important;padding-bottom:20px!important}.py-lg-6{padding-top:24px!important;padding-bottom:24px!important}.py-lg-7{padding-top:28px!important;padding-bottom:28px!important}.py-lg-8{padding-top:32px!important;padding-bottom:32px!important}.py-lg-9{padding-top:36px!important;padding-bottom:36px!important}.py-lg-10{padding-top:40px!important;padding-bottom:40px!important}.py-lg-11{padding-top:44px!important;padding-bottom:44px!important}.py-lg-12{padding-top:48px!important;padding-bottom:48px!important}.py-lg-13{padding-top:52px!important;padding-bottom:52px!important}.py-lg-14{padding-top:56px!important;padding-bottom:56px!important}.py-lg-15{padding-top:60px!important;padding-bottom:60px!important}.py-lg-16{padding-top:64px!important;padding-bottom:64px!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:4px!important}.pt-lg-2{padding-top:8px!important}.pt-lg-3{padding-top:12px!important}.pt-lg-4{padding-top:16px!important}.pt-lg-5{padding-top:20px!important}.pt-lg-6{padding-top:24px!important}.pt-lg-7{padding-top:28px!important}.pt-lg-8{padding-top:32px!important}.pt-lg-9{padding-top:36px!important}.pt-lg-10{padding-top:40px!important}.pt-lg-11{padding-top:44px!important}.pt-lg-12{padding-top:48px!important}.pt-lg-13{padding-top:52px!important}.pt-lg-14{padding-top:56px!important}.pt-lg-15{padding-top:60px!important}.pt-lg-16{padding-top:64px!important}.pr-lg-0{padding-right:0!important}.pr-lg-1{padding-right:4px!important}.pr-lg-2{padding-right:8px!important}.pr-lg-3{padding-right:12px!important}.pr-lg-4{padding-right:16px!important}.pr-lg-5{padding-right:20px!important}.pr-lg-6{padding-right:24px!important}.pr-lg-7{padding-right:28px!important}.pr-lg-8{padding-right:32px!important}.pr-lg-9{padding-right:36px!important}.pr-lg-10{padding-right:40px!important}.pr-lg-11{padding-right:44px!important}.pr-lg-12{padding-right:48px!important}.pr-lg-13{padding-right:52px!important}.pr-lg-14{padding-right:56px!important}.pr-lg-15{padding-right:60px!important}.pr-lg-16{padding-right:64px!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:4px!important}.pb-lg-2{padding-bottom:8px!important}.pb-lg-3{padding-bottom:12px!important}.pb-lg-4{padding-bottom:16px!important}.pb-lg-5{padding-bottom:20px!important}.pb-lg-6{padding-bottom:24px!important}.pb-lg-7{padding-bottom:28px!important}.pb-lg-8{padding-bottom:32px!important}.pb-lg-9{padding-bottom:36px!important}.pb-lg-10{padding-bottom:40px!important}.pb-lg-11{padding-bottom:44px!important}.pb-lg-12{padding-bottom:48px!important}.pb-lg-13{padding-bottom:52px!important}.pb-lg-14{padding-bottom:56px!important}.pb-lg-15{padding-bottom:60px!important}.pb-lg-16{padding-bottom:64px!important}.pl-lg-0{padding-left:0!important}.pl-lg-1{padding-left:4px!important}.pl-lg-2{padding-left:8px!important}.pl-lg-3{padding-left:12px!important}.pl-lg-4{padding-left:16px!important}.pl-lg-5{padding-left:20px!important}.pl-lg-6{padding-left:24px!important}.pl-lg-7{padding-left:28px!important}.pl-lg-8{padding-left:32px!important}.pl-lg-9{padding-left:36px!important}.pl-lg-10{padding-left:40px!important}.pl-lg-11{padding-left:44px!important}.pl-lg-12{padding-left:48px!important}.pl-lg-13{padding-left:52px!important}.pl-lg-14{padding-left:56px!important}.pl-lg-15{padding-left:60px!important}.pl-lg-16{padding-left:64px!important}.ps-lg-0{padding-inline-start:0px!important}.ps-lg-1{padding-inline-start:4px!important}.ps-lg-2{padding-inline-start:8px!important}.ps-lg-3{padding-inline-start:12px!important}.ps-lg-4{padding-inline-start:16px!important}.ps-lg-5{padding-inline-start:20px!important}.ps-lg-6{padding-inline-start:24px!important}.ps-lg-7{padding-inline-start:28px!important}.ps-lg-8{padding-inline-start:32px!important}.ps-lg-9{padding-inline-start:36px!important}.ps-lg-10{padding-inline-start:40px!important}.ps-lg-11{padding-inline-start:44px!important}.ps-lg-12{padding-inline-start:48px!important}.ps-lg-13{padding-inline-start:52px!important}.ps-lg-14{padding-inline-start:56px!important}.ps-lg-15{padding-inline-start:60px!important}.ps-lg-16{padding-inline-start:64px!important}.pe-lg-0{padding-inline-end:0px!important}.pe-lg-1{padding-inline-end:4px!important}.pe-lg-2{padding-inline-end:8px!important}.pe-lg-3{padding-inline-end:12px!important}.pe-lg-4{padding-inline-end:16px!important}.pe-lg-5{padding-inline-end:20px!important}.pe-lg-6{padding-inline-end:24px!important}.pe-lg-7{padding-inline-end:28px!important}.pe-lg-8{padding-inline-end:32px!important}.pe-lg-9{padding-inline-end:36px!important}.pe-lg-10{padding-inline-end:40px!important}.pe-lg-11{padding-inline-end:44px!important}.pe-lg-12{padding-inline-end:48px!important}.pe-lg-13{padding-inline-end:52px!important}.pe-lg-14{padding-inline-end:56px!important}.pe-lg-15{padding-inline-end:60px!important}.pe-lg-16{padding-inline-end:64px!important}.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}.text-lg-justify{text-align:justify!important}.text-lg-start{text-align:start!important}.text-lg-end{text-align:end!important}.text-lg-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.text-lg-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-lg-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.h-lg-auto{height:auto!important}.h-lg-screen{height:100vh!important}.h-lg-0{height:0!important}.h-lg-25{height:25%!important}.h-lg-50{height:50%!important}.h-lg-75{height:75%!important}.h-lg-100{height:100%!important}.w-lg-auto{width:auto!important}.w-lg-0{width:0!important}.w-lg-25{width:25%!important}.w-lg-33{width:33%!important}.w-lg-50{width:50%!important}.w-lg-66{width:66%!important}.w-lg-75{width:75%!important}.w-lg-100{width:100%!important}}@media (min-width: 1920px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.float-xl-none{float:none!important}.float-xl-left{float:left!important}.float-xl-right{float:right!important}.v-locale--is-rtl .float-xl-end{float:left!important}.v-locale--is-rtl .float-xl-start,.v-locale--is-ltr .float-xl-end{float:right!important}.v-locale--is-ltr .float-xl-start{float:left!important}.flex-xl-fill,.flex-xl-1-1{flex:1 1 auto!important}.flex-xl-1-0{flex:1 0 auto!important}.flex-xl-0-1{flex:0 1 auto!important}.flex-xl-0-0{flex:0 0 auto!important}.flex-xl-1-1-100{flex:1 1 100%!important}.flex-xl-1-0-100{flex:1 0 100%!important}.flex-xl-0-1-100{flex:0 1 100%!important}.flex-xl-0-0-100{flex:0 0 100%!important}.flex-xl-1-1-0{flex:1 1 0!important}.flex-xl-1-0-0{flex:1 0 0!important}.flex-xl-0-1-0{flex:0 1 0!important}.flex-xl-0-0-0{flex:0 0 0!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xl-start{justify-content:flex-start!important}.justify-xl-end{justify-content:flex-end!important}.justify-xl-center{justify-content:center!important}.justify-xl-space-between{justify-content:space-between!important}.justify-xl-space-around{justify-content:space-around!important}.justify-xl-space-evenly{justify-content:space-evenly!important}.align-xl-start{align-items:flex-start!important}.align-xl-end{align-items:flex-end!important}.align-xl-center{align-items:center!important}.align-xl-baseline{align-items:baseline!important}.align-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-space-between{align-content:space-between!important}.align-content-xl-space-around{align-content:space-around!important}.align-content-xl-space-evenly{align-content:space-evenly!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-6{order:6!important}.order-xl-7{order:7!important}.order-xl-8{order:8!important}.order-xl-9{order:9!important}.order-xl-10{order:10!important}.order-xl-11{order:11!important}.order-xl-12{order:12!important}.order-xl-last{order:13!important}.ga-xl-0{gap:0px!important}.ga-xl-1{gap:4px!important}.ga-xl-2{gap:8px!important}.ga-xl-3{gap:12px!important}.ga-xl-4{gap:16px!important}.ga-xl-5{gap:20px!important}.ga-xl-6{gap:24px!important}.ga-xl-7{gap:28px!important}.ga-xl-8{gap:32px!important}.ga-xl-9{gap:36px!important}.ga-xl-10{gap:40px!important}.ga-xl-11{gap:44px!important}.ga-xl-12{gap:48px!important}.ga-xl-13{gap:52px!important}.ga-xl-14{gap:56px!important}.ga-xl-15{gap:60px!important}.ga-xl-16{gap:64px!important}.ga-xl-auto{gap:auto!important}.gr-xl-0{row-gap:0px!important}.gr-xl-1{row-gap:4px!important}.gr-xl-2{row-gap:8px!important}.gr-xl-3{row-gap:12px!important}.gr-xl-4{row-gap:16px!important}.gr-xl-5{row-gap:20px!important}.gr-xl-6{row-gap:24px!important}.gr-xl-7{row-gap:28px!important}.gr-xl-8{row-gap:32px!important}.gr-xl-9{row-gap:36px!important}.gr-xl-10{row-gap:40px!important}.gr-xl-11{row-gap:44px!important}.gr-xl-12{row-gap:48px!important}.gr-xl-13{row-gap:52px!important}.gr-xl-14{row-gap:56px!important}.gr-xl-15{row-gap:60px!important}.gr-xl-16{row-gap:64px!important}.gr-xl-auto{row-gap:auto!important}.gc-xl-0{column-gap:0px!important}.gc-xl-1{column-gap:4px!important}.gc-xl-2{column-gap:8px!important}.gc-xl-3{column-gap:12px!important}.gc-xl-4{column-gap:16px!important}.gc-xl-5{column-gap:20px!important}.gc-xl-6{column-gap:24px!important}.gc-xl-7{column-gap:28px!important}.gc-xl-8{column-gap:32px!important}.gc-xl-9{column-gap:36px!important}.gc-xl-10{column-gap:40px!important}.gc-xl-11{column-gap:44px!important}.gc-xl-12{column-gap:48px!important}.gc-xl-13{column-gap:52px!important}.gc-xl-14{column-gap:56px!important}.gc-xl-15{column-gap:60px!important}.gc-xl-16{column-gap:64px!important}.gc-xl-auto{column-gap:auto!important}.ma-xl-0{margin:0!important}.ma-xl-1{margin:4px!important}.ma-xl-2{margin:8px!important}.ma-xl-3{margin:12px!important}.ma-xl-4{margin:16px!important}.ma-xl-5{margin:20px!important}.ma-xl-6{margin:24px!important}.ma-xl-7{margin:28px!important}.ma-xl-8{margin:32px!important}.ma-xl-9{margin:36px!important}.ma-xl-10{margin:40px!important}.ma-xl-11{margin:44px!important}.ma-xl-12{margin:48px!important}.ma-xl-13{margin:52px!important}.ma-xl-14{margin:56px!important}.ma-xl-15{margin:60px!important}.ma-xl-16{margin:64px!important}.ma-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:4px!important;margin-left:4px!important}.mx-xl-2{margin-right:8px!important;margin-left:8px!important}.mx-xl-3{margin-right:12px!important;margin-left:12px!important}.mx-xl-4{margin-right:16px!important;margin-left:16px!important}.mx-xl-5{margin-right:20px!important;margin-left:20px!important}.mx-xl-6{margin-right:24px!important;margin-left:24px!important}.mx-xl-7{margin-right:28px!important;margin-left:28px!important}.mx-xl-8{margin-right:32px!important;margin-left:32px!important}.mx-xl-9{margin-right:36px!important;margin-left:36px!important}.mx-xl-10{margin-right:40px!important;margin-left:40px!important}.mx-xl-11{margin-right:44px!important;margin-left:44px!important}.mx-xl-12{margin-right:48px!important;margin-left:48px!important}.mx-xl-13{margin-right:52px!important;margin-left:52px!important}.mx-xl-14{margin-right:56px!important;margin-left:56px!important}.mx-xl-15{margin-right:60px!important;margin-left:60px!important}.mx-xl-16{margin-right:64px!important;margin-left:64px!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:4px!important}.mt-xl-2{margin-top:8px!important}.mt-xl-3{margin-top:12px!important}.mt-xl-4{margin-top:16px!important}.mt-xl-5{margin-top:20px!important}.mt-xl-6{margin-top:24px!important}.mt-xl-7{margin-top:28px!important}.mt-xl-8{margin-top:32px!important}.mt-xl-9{margin-top:36px!important}.mt-xl-10{margin-top:40px!important}.mt-xl-11{margin-top:44px!important}.mt-xl-12{margin-top:48px!important}.mt-xl-13{margin-top:52px!important}.mt-xl-14{margin-top:56px!important}.mt-xl-15{margin-top:60px!important}.mt-xl-16{margin-top:64px!important}.mt-xl-auto{margin-top:auto!important}.mr-xl-0{margin-right:0!important}.mr-xl-1{margin-right:4px!important}.mr-xl-2{margin-right:8px!important}.mr-xl-3{margin-right:12px!important}.mr-xl-4{margin-right:16px!important}.mr-xl-5{margin-right:20px!important}.mr-xl-6{margin-right:24px!important}.mr-xl-7{margin-right:28px!important}.mr-xl-8{margin-right:32px!important}.mr-xl-9{margin-right:36px!important}.mr-xl-10{margin-right:40px!important}.mr-xl-11{margin-right:44px!important}.mr-xl-12{margin-right:48px!important}.mr-xl-13{margin-right:52px!important}.mr-xl-14{margin-right:56px!important}.mr-xl-15{margin-right:60px!important}.mr-xl-16{margin-right:64px!important}.mr-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:4px!important}.mb-xl-2{margin-bottom:8px!important}.mb-xl-3{margin-bottom:12px!important}.mb-xl-4{margin-bottom:16px!important}.mb-xl-5{margin-bottom:20px!important}.mb-xl-6{margin-bottom:24px!important}.mb-xl-7{margin-bottom:28px!important}.mb-xl-8{margin-bottom:32px!important}.mb-xl-9{margin-bottom:36px!important}.mb-xl-10{margin-bottom:40px!important}.mb-xl-11{margin-bottom:44px!important}.mb-xl-12{margin-bottom:48px!important}.mb-xl-13{margin-bottom:52px!important}.mb-xl-14{margin-bottom:56px!important}.mb-xl-15{margin-bottom:60px!important}.mb-xl-16{margin-bottom:64px!important}.mb-xl-auto{margin-bottom:auto!important}.ml-xl-0{margin-left:0!important}.ml-xl-1{margin-left:4px!important}.ml-xl-2{margin-left:8px!important}.ml-xl-3{margin-left:12px!important}.ml-xl-4{margin-left:16px!important}.ml-xl-5{margin-left:20px!important}.ml-xl-6{margin-left:24px!important}.ml-xl-7{margin-left:28px!important}.ml-xl-8{margin-left:32px!important}.ml-xl-9{margin-left:36px!important}.ml-xl-10{margin-left:40px!important}.ml-xl-11{margin-left:44px!important}.ml-xl-12{margin-left:48px!important}.ml-xl-13{margin-left:52px!important}.ml-xl-14{margin-left:56px!important}.ml-xl-15{margin-left:60px!important}.ml-xl-16{margin-left:64px!important}.ml-xl-auto{margin-left:auto!important}.ms-xl-0{margin-inline-start:0px!important}.ms-xl-1{margin-inline-start:4px!important}.ms-xl-2{margin-inline-start:8px!important}.ms-xl-3{margin-inline-start:12px!important}.ms-xl-4{margin-inline-start:16px!important}.ms-xl-5{margin-inline-start:20px!important}.ms-xl-6{margin-inline-start:24px!important}.ms-xl-7{margin-inline-start:28px!important}.ms-xl-8{margin-inline-start:32px!important}.ms-xl-9{margin-inline-start:36px!important}.ms-xl-10{margin-inline-start:40px!important}.ms-xl-11{margin-inline-start:44px!important}.ms-xl-12{margin-inline-start:48px!important}.ms-xl-13{margin-inline-start:52px!important}.ms-xl-14{margin-inline-start:56px!important}.ms-xl-15{margin-inline-start:60px!important}.ms-xl-16{margin-inline-start:64px!important}.ms-xl-auto{margin-inline-start:auto!important}.me-xl-0{margin-inline-end:0px!important}.me-xl-1{margin-inline-end:4px!important}.me-xl-2{margin-inline-end:8px!important}.me-xl-3{margin-inline-end:12px!important}.me-xl-4{margin-inline-end:16px!important}.me-xl-5{margin-inline-end:20px!important}.me-xl-6{margin-inline-end:24px!important}.me-xl-7{margin-inline-end:28px!important}.me-xl-8{margin-inline-end:32px!important}.me-xl-9{margin-inline-end:36px!important}.me-xl-10{margin-inline-end:40px!important}.me-xl-11{margin-inline-end:44px!important}.me-xl-12{margin-inline-end:48px!important}.me-xl-13{margin-inline-end:52px!important}.me-xl-14{margin-inline-end:56px!important}.me-xl-15{margin-inline-end:60px!important}.me-xl-16{margin-inline-end:64px!important}.me-xl-auto{margin-inline-end:auto!important}.ma-xl-n1{margin:-4px!important}.ma-xl-n2{margin:-8px!important}.ma-xl-n3{margin:-12px!important}.ma-xl-n4{margin:-16px!important}.ma-xl-n5{margin:-20px!important}.ma-xl-n6{margin:-24px!important}.ma-xl-n7{margin:-28px!important}.ma-xl-n8{margin:-32px!important}.ma-xl-n9{margin:-36px!important}.ma-xl-n10{margin:-40px!important}.ma-xl-n11{margin:-44px!important}.ma-xl-n12{margin:-48px!important}.ma-xl-n13{margin:-52px!important}.ma-xl-n14{margin:-56px!important}.ma-xl-n15{margin:-60px!important}.ma-xl-n16{margin:-64px!important}.mx-xl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xl-n1{margin-top:-4px!important}.mt-xl-n2{margin-top:-8px!important}.mt-xl-n3{margin-top:-12px!important}.mt-xl-n4{margin-top:-16px!important}.mt-xl-n5{margin-top:-20px!important}.mt-xl-n6{margin-top:-24px!important}.mt-xl-n7{margin-top:-28px!important}.mt-xl-n8{margin-top:-32px!important}.mt-xl-n9{margin-top:-36px!important}.mt-xl-n10{margin-top:-40px!important}.mt-xl-n11{margin-top:-44px!important}.mt-xl-n12{margin-top:-48px!important}.mt-xl-n13{margin-top:-52px!important}.mt-xl-n14{margin-top:-56px!important}.mt-xl-n15{margin-top:-60px!important}.mt-xl-n16{margin-top:-64px!important}.mr-xl-n1{margin-right:-4px!important}.mr-xl-n2{margin-right:-8px!important}.mr-xl-n3{margin-right:-12px!important}.mr-xl-n4{margin-right:-16px!important}.mr-xl-n5{margin-right:-20px!important}.mr-xl-n6{margin-right:-24px!important}.mr-xl-n7{margin-right:-28px!important}.mr-xl-n8{margin-right:-32px!important}.mr-xl-n9{margin-right:-36px!important}.mr-xl-n10{margin-right:-40px!important}.mr-xl-n11{margin-right:-44px!important}.mr-xl-n12{margin-right:-48px!important}.mr-xl-n13{margin-right:-52px!important}.mr-xl-n14{margin-right:-56px!important}.mr-xl-n15{margin-right:-60px!important}.mr-xl-n16{margin-right:-64px!important}.mb-xl-n1{margin-bottom:-4px!important}.mb-xl-n2{margin-bottom:-8px!important}.mb-xl-n3{margin-bottom:-12px!important}.mb-xl-n4{margin-bottom:-16px!important}.mb-xl-n5{margin-bottom:-20px!important}.mb-xl-n6{margin-bottom:-24px!important}.mb-xl-n7{margin-bottom:-28px!important}.mb-xl-n8{margin-bottom:-32px!important}.mb-xl-n9{margin-bottom:-36px!important}.mb-xl-n10{margin-bottom:-40px!important}.mb-xl-n11{margin-bottom:-44px!important}.mb-xl-n12{margin-bottom:-48px!important}.mb-xl-n13{margin-bottom:-52px!important}.mb-xl-n14{margin-bottom:-56px!important}.mb-xl-n15{margin-bottom:-60px!important}.mb-xl-n16{margin-bottom:-64px!important}.ml-xl-n1{margin-left:-4px!important}.ml-xl-n2{margin-left:-8px!important}.ml-xl-n3{margin-left:-12px!important}.ml-xl-n4{margin-left:-16px!important}.ml-xl-n5{margin-left:-20px!important}.ml-xl-n6{margin-left:-24px!important}.ml-xl-n7{margin-left:-28px!important}.ml-xl-n8{margin-left:-32px!important}.ml-xl-n9{margin-left:-36px!important}.ml-xl-n10{margin-left:-40px!important}.ml-xl-n11{margin-left:-44px!important}.ml-xl-n12{margin-left:-48px!important}.ml-xl-n13{margin-left:-52px!important}.ml-xl-n14{margin-left:-56px!important}.ml-xl-n15{margin-left:-60px!important}.ml-xl-n16{margin-left:-64px!important}.ms-xl-n1{margin-inline-start:-4px!important}.ms-xl-n2{margin-inline-start:-8px!important}.ms-xl-n3{margin-inline-start:-12px!important}.ms-xl-n4{margin-inline-start:-16px!important}.ms-xl-n5{margin-inline-start:-20px!important}.ms-xl-n6{margin-inline-start:-24px!important}.ms-xl-n7{margin-inline-start:-28px!important}.ms-xl-n8{margin-inline-start:-32px!important}.ms-xl-n9{margin-inline-start:-36px!important}.ms-xl-n10{margin-inline-start:-40px!important}.ms-xl-n11{margin-inline-start:-44px!important}.ms-xl-n12{margin-inline-start:-48px!important}.ms-xl-n13{margin-inline-start:-52px!important}.ms-xl-n14{margin-inline-start:-56px!important}.ms-xl-n15{margin-inline-start:-60px!important}.ms-xl-n16{margin-inline-start:-64px!important}.me-xl-n1{margin-inline-end:-4px!important}.me-xl-n2{margin-inline-end:-8px!important}.me-xl-n3{margin-inline-end:-12px!important}.me-xl-n4{margin-inline-end:-16px!important}.me-xl-n5{margin-inline-end:-20px!important}.me-xl-n6{margin-inline-end:-24px!important}.me-xl-n7{margin-inline-end:-28px!important}.me-xl-n8{margin-inline-end:-32px!important}.me-xl-n9{margin-inline-end:-36px!important}.me-xl-n10{margin-inline-end:-40px!important}.me-xl-n11{margin-inline-end:-44px!important}.me-xl-n12{margin-inline-end:-48px!important}.me-xl-n13{margin-inline-end:-52px!important}.me-xl-n14{margin-inline-end:-56px!important}.me-xl-n15{margin-inline-end:-60px!important}.me-xl-n16{margin-inline-end:-64px!important}.pa-xl-0{padding:0!important}.pa-xl-1{padding:4px!important}.pa-xl-2{padding:8px!important}.pa-xl-3{padding:12px!important}.pa-xl-4{padding:16px!important}.pa-xl-5{padding:20px!important}.pa-xl-6{padding:24px!important}.pa-xl-7{padding:28px!important}.pa-xl-8{padding:32px!important}.pa-xl-9{padding:36px!important}.pa-xl-10{padding:40px!important}.pa-xl-11{padding:44px!important}.pa-xl-12{padding:48px!important}.pa-xl-13{padding:52px!important}.pa-xl-14{padding:56px!important}.pa-xl-15{padding:60px!important}.pa-xl-16{padding:64px!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:4px!important;padding-left:4px!important}.px-xl-2{padding-right:8px!important;padding-left:8px!important}.px-xl-3{padding-right:12px!important;padding-left:12px!important}.px-xl-4{padding-right:16px!important;padding-left:16px!important}.px-xl-5{padding-right:20px!important;padding-left:20px!important}.px-xl-6{padding-right:24px!important;padding-left:24px!important}.px-xl-7{padding-right:28px!important;padding-left:28px!important}.px-xl-8{padding-right:32px!important;padding-left:32px!important}.px-xl-9{padding-right:36px!important;padding-left:36px!important}.px-xl-10{padding-right:40px!important;padding-left:40px!important}.px-xl-11{padding-right:44px!important;padding-left:44px!important}.px-xl-12{padding-right:48px!important;padding-left:48px!important}.px-xl-13{padding-right:52px!important;padding-left:52px!important}.px-xl-14{padding-right:56px!important;padding-left:56px!important}.px-xl-15{padding-right:60px!important;padding-left:60px!important}.px-xl-16{padding-right:64px!important;padding-left:64px!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:4px!important}.pt-xl-2{padding-top:8px!important}.pt-xl-3{padding-top:12px!important}.pt-xl-4{padding-top:16px!important}.pt-xl-5{padding-top:20px!important}.pt-xl-6{padding-top:24px!important}.pt-xl-7{padding-top:28px!important}.pt-xl-8{padding-top:32px!important}.pt-xl-9{padding-top:36px!important}.pt-xl-10{padding-top:40px!important}.pt-xl-11{padding-top:44px!important}.pt-xl-12{padding-top:48px!important}.pt-xl-13{padding-top:52px!important}.pt-xl-14{padding-top:56px!important}.pt-xl-15{padding-top:60px!important}.pt-xl-16{padding-top:64px!important}.pr-xl-0{padding-right:0!important}.pr-xl-1{padding-right:4px!important}.pr-xl-2{padding-right:8px!important}.pr-xl-3{padding-right:12px!important}.pr-xl-4{padding-right:16px!important}.pr-xl-5{padding-right:20px!important}.pr-xl-6{padding-right:24px!important}.pr-xl-7{padding-right:28px!important}.pr-xl-8{padding-right:32px!important}.pr-xl-9{padding-right:36px!important}.pr-xl-10{padding-right:40px!important}.pr-xl-11{padding-right:44px!important}.pr-xl-12{padding-right:48px!important}.pr-xl-13{padding-right:52px!important}.pr-xl-14{padding-right:56px!important}.pr-xl-15{padding-right:60px!important}.pr-xl-16{padding-right:64px!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:4px!important}.pb-xl-2{padding-bottom:8px!important}.pb-xl-3{padding-bottom:12px!important}.pb-xl-4{padding-bottom:16px!important}.pb-xl-5{padding-bottom:20px!important}.pb-xl-6{padding-bottom:24px!important}.pb-xl-7{padding-bottom:28px!important}.pb-xl-8{padding-bottom:32px!important}.pb-xl-9{padding-bottom:36px!important}.pb-xl-10{padding-bottom:40px!important}.pb-xl-11{padding-bottom:44px!important}.pb-xl-12{padding-bottom:48px!important}.pb-xl-13{padding-bottom:52px!important}.pb-xl-14{padding-bottom:56px!important}.pb-xl-15{padding-bottom:60px!important}.pb-xl-16{padding-bottom:64px!important}.pl-xl-0{padding-left:0!important}.pl-xl-1{padding-left:4px!important}.pl-xl-2{padding-left:8px!important}.pl-xl-3{padding-left:12px!important}.pl-xl-4{padding-left:16px!important}.pl-xl-5{padding-left:20px!important}.pl-xl-6{padding-left:24px!important}.pl-xl-7{padding-left:28px!important}.pl-xl-8{padding-left:32px!important}.pl-xl-9{padding-left:36px!important}.pl-xl-10{padding-left:40px!important}.pl-xl-11{padding-left:44px!important}.pl-xl-12{padding-left:48px!important}.pl-xl-13{padding-left:52px!important}.pl-xl-14{padding-left:56px!important}.pl-xl-15{padding-left:60px!important}.pl-xl-16{padding-left:64px!important}.ps-xl-0{padding-inline-start:0px!important}.ps-xl-1{padding-inline-start:4px!important}.ps-xl-2{padding-inline-start:8px!important}.ps-xl-3{padding-inline-start:12px!important}.ps-xl-4{padding-inline-start:16px!important}.ps-xl-5{padding-inline-start:20px!important}.ps-xl-6{padding-inline-start:24px!important}.ps-xl-7{padding-inline-start:28px!important}.ps-xl-8{padding-inline-start:32px!important}.ps-xl-9{padding-inline-start:36px!important}.ps-xl-10{padding-inline-start:40px!important}.ps-xl-11{padding-inline-start:44px!important}.ps-xl-12{padding-inline-start:48px!important}.ps-xl-13{padding-inline-start:52px!important}.ps-xl-14{padding-inline-start:56px!important}.ps-xl-15{padding-inline-start:60px!important}.ps-xl-16{padding-inline-start:64px!important}.pe-xl-0{padding-inline-end:0px!important}.pe-xl-1{padding-inline-end:4px!important}.pe-xl-2{padding-inline-end:8px!important}.pe-xl-3{padding-inline-end:12px!important}.pe-xl-4{padding-inline-end:16px!important}.pe-xl-5{padding-inline-end:20px!important}.pe-xl-6{padding-inline-end:24px!important}.pe-xl-7{padding-inline-end:28px!important}.pe-xl-8{padding-inline-end:32px!important}.pe-xl-9{padding-inline-end:36px!important}.pe-xl-10{padding-inline-end:40px!important}.pe-xl-11{padding-inline-end:44px!important}.pe-xl-12{padding-inline-end:48px!important}.pe-xl-13{padding-inline-end:52px!important}.pe-xl-14{padding-inline-end:56px!important}.pe-xl-15{padding-inline-end:60px!important}.pe-xl-16{padding-inline-end:64px!important}.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}.text-xl-justify{text-align:justify!important}.text-xl-start{text-align:start!important}.text-xl-end{text-align:end!important}.text-xl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.text-xl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.h-xl-auto{height:auto!important}.h-xl-screen{height:100vh!important}.h-xl-0{height:0!important}.h-xl-25{height:25%!important}.h-xl-50{height:50%!important}.h-xl-75{height:75%!important}.h-xl-100{height:100%!important}.w-xl-auto{width:auto!important}.w-xl-0{width:0!important}.w-xl-25{width:25%!important}.w-xl-33{width:33%!important}.w-xl-50{width:50%!important}.w-xl-66{width:66%!important}.w-xl-75{width:75%!important}.w-xl-100{width:100%!important}}@media (min-width: 2560px){.d-xxl-none{display:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.float-xxl-none{float:none!important}.float-xxl-left{float:left!important}.float-xxl-right{float:right!important}.v-locale--is-rtl .float-xxl-end{float:left!important}.v-locale--is-rtl .float-xxl-start,.v-locale--is-ltr .float-xxl-end{float:right!important}.v-locale--is-ltr .float-xxl-start{float:left!important}.flex-xxl-fill,.flex-xxl-1-1{flex:1 1 auto!important}.flex-xxl-1-0{flex:1 0 auto!important}.flex-xxl-0-1{flex:0 1 auto!important}.flex-xxl-0-0{flex:0 0 auto!important}.flex-xxl-1-1-100{flex:1 1 100%!important}.flex-xxl-1-0-100{flex:1 0 100%!important}.flex-xxl-0-1-100{flex:0 1 100%!important}.flex-xxl-0-0-100{flex:0 0 100%!important}.flex-xxl-1-1-0{flex:1 1 0!important}.flex-xxl-1-0-0{flex:1 0 0!important}.flex-xxl-0-1-0{flex:0 1 0!important}.flex-xxl-0-0-0{flex:0 0 0!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xxl-start{justify-content:flex-start!important}.justify-xxl-end{justify-content:flex-end!important}.justify-xxl-center{justify-content:center!important}.justify-xxl-space-between{justify-content:space-between!important}.justify-xxl-space-around{justify-content:space-around!important}.justify-xxl-space-evenly{justify-content:space-evenly!important}.align-xxl-start{align-items:flex-start!important}.align-xxl-end{align-items:flex-end!important}.align-xxl-center{align-items:center!important}.align-xxl-baseline{align-items:baseline!important}.align-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-space-between{align-content:space-between!important}.align-content-xxl-space-around{align-content:space-around!important}.align-content-xxl-space-evenly{align-content:space-evenly!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-6{order:6!important}.order-xxl-7{order:7!important}.order-xxl-8{order:8!important}.order-xxl-9{order:9!important}.order-xxl-10{order:10!important}.order-xxl-11{order:11!important}.order-xxl-12{order:12!important}.order-xxl-last{order:13!important}.ga-xxl-0{gap:0px!important}.ga-xxl-1{gap:4px!important}.ga-xxl-2{gap:8px!important}.ga-xxl-3{gap:12px!important}.ga-xxl-4{gap:16px!important}.ga-xxl-5{gap:20px!important}.ga-xxl-6{gap:24px!important}.ga-xxl-7{gap:28px!important}.ga-xxl-8{gap:32px!important}.ga-xxl-9{gap:36px!important}.ga-xxl-10{gap:40px!important}.ga-xxl-11{gap:44px!important}.ga-xxl-12{gap:48px!important}.ga-xxl-13{gap:52px!important}.ga-xxl-14{gap:56px!important}.ga-xxl-15{gap:60px!important}.ga-xxl-16{gap:64px!important}.ga-xxl-auto{gap:auto!important}.gr-xxl-0{row-gap:0px!important}.gr-xxl-1{row-gap:4px!important}.gr-xxl-2{row-gap:8px!important}.gr-xxl-3{row-gap:12px!important}.gr-xxl-4{row-gap:16px!important}.gr-xxl-5{row-gap:20px!important}.gr-xxl-6{row-gap:24px!important}.gr-xxl-7{row-gap:28px!important}.gr-xxl-8{row-gap:32px!important}.gr-xxl-9{row-gap:36px!important}.gr-xxl-10{row-gap:40px!important}.gr-xxl-11{row-gap:44px!important}.gr-xxl-12{row-gap:48px!important}.gr-xxl-13{row-gap:52px!important}.gr-xxl-14{row-gap:56px!important}.gr-xxl-15{row-gap:60px!important}.gr-xxl-16{row-gap:64px!important}.gr-xxl-auto{row-gap:auto!important}.gc-xxl-0{column-gap:0px!important}.gc-xxl-1{column-gap:4px!important}.gc-xxl-2{column-gap:8px!important}.gc-xxl-3{column-gap:12px!important}.gc-xxl-4{column-gap:16px!important}.gc-xxl-5{column-gap:20px!important}.gc-xxl-6{column-gap:24px!important}.gc-xxl-7{column-gap:28px!important}.gc-xxl-8{column-gap:32px!important}.gc-xxl-9{column-gap:36px!important}.gc-xxl-10{column-gap:40px!important}.gc-xxl-11{column-gap:44px!important}.gc-xxl-12{column-gap:48px!important}.gc-xxl-13{column-gap:52px!important}.gc-xxl-14{column-gap:56px!important}.gc-xxl-15{column-gap:60px!important}.gc-xxl-16{column-gap:64px!important}.gc-xxl-auto{column-gap:auto!important}.ma-xxl-0{margin:0!important}.ma-xxl-1{margin:4px!important}.ma-xxl-2{margin:8px!important}.ma-xxl-3{margin:12px!important}.ma-xxl-4{margin:16px!important}.ma-xxl-5{margin:20px!important}.ma-xxl-6{margin:24px!important}.ma-xxl-7{margin:28px!important}.ma-xxl-8{margin:32px!important}.ma-xxl-9{margin:36px!important}.ma-xxl-10{margin:40px!important}.ma-xxl-11{margin:44px!important}.ma-xxl-12{margin:48px!important}.ma-xxl-13{margin:52px!important}.ma-xxl-14{margin:56px!important}.ma-xxl-15{margin:60px!important}.ma-xxl-16{margin:64px!important}.ma-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:4px!important;margin-left:4px!important}.mx-xxl-2{margin-right:8px!important;margin-left:8px!important}.mx-xxl-3{margin-right:12px!important;margin-left:12px!important}.mx-xxl-4{margin-right:16px!important;margin-left:16px!important}.mx-xxl-5{margin-right:20px!important;margin-left:20px!important}.mx-xxl-6{margin-right:24px!important;margin-left:24px!important}.mx-xxl-7{margin-right:28px!important;margin-left:28px!important}.mx-xxl-8{margin-right:32px!important;margin-left:32px!important}.mx-xxl-9{margin-right:36px!important;margin-left:36px!important}.mx-xxl-10{margin-right:40px!important;margin-left:40px!important}.mx-xxl-11{margin-right:44px!important;margin-left:44px!important}.mx-xxl-12{margin-right:48px!important;margin-left:48px!important}.mx-xxl-13{margin-right:52px!important;margin-left:52px!important}.mx-xxl-14{margin-right:56px!important;margin-left:56px!important}.mx-xxl-15{margin-right:60px!important;margin-left:60px!important}.mx-xxl-16{margin-right:64px!important;margin-left:64px!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xxl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xxl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xxl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xxl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xxl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xxl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xxl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xxl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xxl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xxl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xxl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xxl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xxl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xxl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xxl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:4px!important}.mt-xxl-2{margin-top:8px!important}.mt-xxl-3{margin-top:12px!important}.mt-xxl-4{margin-top:16px!important}.mt-xxl-5{margin-top:20px!important}.mt-xxl-6{margin-top:24px!important}.mt-xxl-7{margin-top:28px!important}.mt-xxl-8{margin-top:32px!important}.mt-xxl-9{margin-top:36px!important}.mt-xxl-10{margin-top:40px!important}.mt-xxl-11{margin-top:44px!important}.mt-xxl-12{margin-top:48px!important}.mt-xxl-13{margin-top:52px!important}.mt-xxl-14{margin-top:56px!important}.mt-xxl-15{margin-top:60px!important}.mt-xxl-16{margin-top:64px!important}.mt-xxl-auto{margin-top:auto!important}.mr-xxl-0{margin-right:0!important}.mr-xxl-1{margin-right:4px!important}.mr-xxl-2{margin-right:8px!important}.mr-xxl-3{margin-right:12px!important}.mr-xxl-4{margin-right:16px!important}.mr-xxl-5{margin-right:20px!important}.mr-xxl-6{margin-right:24px!important}.mr-xxl-7{margin-right:28px!important}.mr-xxl-8{margin-right:32px!important}.mr-xxl-9{margin-right:36px!important}.mr-xxl-10{margin-right:40px!important}.mr-xxl-11{margin-right:44px!important}.mr-xxl-12{margin-right:48px!important}.mr-xxl-13{margin-right:52px!important}.mr-xxl-14{margin-right:56px!important}.mr-xxl-15{margin-right:60px!important}.mr-xxl-16{margin-right:64px!important}.mr-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:4px!important}.mb-xxl-2{margin-bottom:8px!important}.mb-xxl-3{margin-bottom:12px!important}.mb-xxl-4{margin-bottom:16px!important}.mb-xxl-5{margin-bottom:20px!important}.mb-xxl-6{margin-bottom:24px!important}.mb-xxl-7{margin-bottom:28px!important}.mb-xxl-8{margin-bottom:32px!important}.mb-xxl-9{margin-bottom:36px!important}.mb-xxl-10{margin-bottom:40px!important}.mb-xxl-11{margin-bottom:44px!important}.mb-xxl-12{margin-bottom:48px!important}.mb-xxl-13{margin-bottom:52px!important}.mb-xxl-14{margin-bottom:56px!important}.mb-xxl-15{margin-bottom:60px!important}.mb-xxl-16{margin-bottom:64px!important}.mb-xxl-auto{margin-bottom:auto!important}.ml-xxl-0{margin-left:0!important}.ml-xxl-1{margin-left:4px!important}.ml-xxl-2{margin-left:8px!important}.ml-xxl-3{margin-left:12px!important}.ml-xxl-4{margin-left:16px!important}.ml-xxl-5{margin-left:20px!important}.ml-xxl-6{margin-left:24px!important}.ml-xxl-7{margin-left:28px!important}.ml-xxl-8{margin-left:32px!important}.ml-xxl-9{margin-left:36px!important}.ml-xxl-10{margin-left:40px!important}.ml-xxl-11{margin-left:44px!important}.ml-xxl-12{margin-left:48px!important}.ml-xxl-13{margin-left:52px!important}.ml-xxl-14{margin-left:56px!important}.ml-xxl-15{margin-left:60px!important}.ml-xxl-16{margin-left:64px!important}.ml-xxl-auto{margin-left:auto!important}.ms-xxl-0{margin-inline-start:0px!important}.ms-xxl-1{margin-inline-start:4px!important}.ms-xxl-2{margin-inline-start:8px!important}.ms-xxl-3{margin-inline-start:12px!important}.ms-xxl-4{margin-inline-start:16px!important}.ms-xxl-5{margin-inline-start:20px!important}.ms-xxl-6{margin-inline-start:24px!important}.ms-xxl-7{margin-inline-start:28px!important}.ms-xxl-8{margin-inline-start:32px!important}.ms-xxl-9{margin-inline-start:36px!important}.ms-xxl-10{margin-inline-start:40px!important}.ms-xxl-11{margin-inline-start:44px!important}.ms-xxl-12{margin-inline-start:48px!important}.ms-xxl-13{margin-inline-start:52px!important}.ms-xxl-14{margin-inline-start:56px!important}.ms-xxl-15{margin-inline-start:60px!important}.ms-xxl-16{margin-inline-start:64px!important}.ms-xxl-auto{margin-inline-start:auto!important}.me-xxl-0{margin-inline-end:0px!important}.me-xxl-1{margin-inline-end:4px!important}.me-xxl-2{margin-inline-end:8px!important}.me-xxl-3{margin-inline-end:12px!important}.me-xxl-4{margin-inline-end:16px!important}.me-xxl-5{margin-inline-end:20px!important}.me-xxl-6{margin-inline-end:24px!important}.me-xxl-7{margin-inline-end:28px!important}.me-xxl-8{margin-inline-end:32px!important}.me-xxl-9{margin-inline-end:36px!important}.me-xxl-10{margin-inline-end:40px!important}.me-xxl-11{margin-inline-end:44px!important}.me-xxl-12{margin-inline-end:48px!important}.me-xxl-13{margin-inline-end:52px!important}.me-xxl-14{margin-inline-end:56px!important}.me-xxl-15{margin-inline-end:60px!important}.me-xxl-16{margin-inline-end:64px!important}.me-xxl-auto{margin-inline-end:auto!important}.ma-xxl-n1{margin:-4px!important}.ma-xxl-n2{margin:-8px!important}.ma-xxl-n3{margin:-12px!important}.ma-xxl-n4{margin:-16px!important}.ma-xxl-n5{margin:-20px!important}.ma-xxl-n6{margin:-24px!important}.ma-xxl-n7{margin:-28px!important}.ma-xxl-n8{margin:-32px!important}.ma-xxl-n9{margin:-36px!important}.ma-xxl-n10{margin:-40px!important}.ma-xxl-n11{margin:-44px!important}.ma-xxl-n12{margin:-48px!important}.ma-xxl-n13{margin:-52px!important}.ma-xxl-n14{margin:-56px!important}.ma-xxl-n15{margin:-60px!important}.ma-xxl-n16{margin:-64px!important}.mx-xxl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xxl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xxl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xxl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xxl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xxl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xxl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xxl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xxl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xxl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xxl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xxl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xxl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xxl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xxl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xxl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xxl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xxl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xxl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xxl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xxl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xxl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xxl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xxl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xxl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xxl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xxl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xxl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xxl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xxl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xxl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xxl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xxl-n1{margin-top:-4px!important}.mt-xxl-n2{margin-top:-8px!important}.mt-xxl-n3{margin-top:-12px!important}.mt-xxl-n4{margin-top:-16px!important}.mt-xxl-n5{margin-top:-20px!important}.mt-xxl-n6{margin-top:-24px!important}.mt-xxl-n7{margin-top:-28px!important}.mt-xxl-n8{margin-top:-32px!important}.mt-xxl-n9{margin-top:-36px!important}.mt-xxl-n10{margin-top:-40px!important}.mt-xxl-n11{margin-top:-44px!important}.mt-xxl-n12{margin-top:-48px!important}.mt-xxl-n13{margin-top:-52px!important}.mt-xxl-n14{margin-top:-56px!important}.mt-xxl-n15{margin-top:-60px!important}.mt-xxl-n16{margin-top:-64px!important}.mr-xxl-n1{margin-right:-4px!important}.mr-xxl-n2{margin-right:-8px!important}.mr-xxl-n3{margin-right:-12px!important}.mr-xxl-n4{margin-right:-16px!important}.mr-xxl-n5{margin-right:-20px!important}.mr-xxl-n6{margin-right:-24px!important}.mr-xxl-n7{margin-right:-28px!important}.mr-xxl-n8{margin-right:-32px!important}.mr-xxl-n9{margin-right:-36px!important}.mr-xxl-n10{margin-right:-40px!important}.mr-xxl-n11{margin-right:-44px!important}.mr-xxl-n12{margin-right:-48px!important}.mr-xxl-n13{margin-right:-52px!important}.mr-xxl-n14{margin-right:-56px!important}.mr-xxl-n15{margin-right:-60px!important}.mr-xxl-n16{margin-right:-64px!important}.mb-xxl-n1{margin-bottom:-4px!important}.mb-xxl-n2{margin-bottom:-8px!important}.mb-xxl-n3{margin-bottom:-12px!important}.mb-xxl-n4{margin-bottom:-16px!important}.mb-xxl-n5{margin-bottom:-20px!important}.mb-xxl-n6{margin-bottom:-24px!important}.mb-xxl-n7{margin-bottom:-28px!important}.mb-xxl-n8{margin-bottom:-32px!important}.mb-xxl-n9{margin-bottom:-36px!important}.mb-xxl-n10{margin-bottom:-40px!important}.mb-xxl-n11{margin-bottom:-44px!important}.mb-xxl-n12{margin-bottom:-48px!important}.mb-xxl-n13{margin-bottom:-52px!important}.mb-xxl-n14{margin-bottom:-56px!important}.mb-xxl-n15{margin-bottom:-60px!important}.mb-xxl-n16{margin-bottom:-64px!important}.ml-xxl-n1{margin-left:-4px!important}.ml-xxl-n2{margin-left:-8px!important}.ml-xxl-n3{margin-left:-12px!important}.ml-xxl-n4{margin-left:-16px!important}.ml-xxl-n5{margin-left:-20px!important}.ml-xxl-n6{margin-left:-24px!important}.ml-xxl-n7{margin-left:-28px!important}.ml-xxl-n8{margin-left:-32px!important}.ml-xxl-n9{margin-left:-36px!important}.ml-xxl-n10{margin-left:-40px!important}.ml-xxl-n11{margin-left:-44px!important}.ml-xxl-n12{margin-left:-48px!important}.ml-xxl-n13{margin-left:-52px!important}.ml-xxl-n14{margin-left:-56px!important}.ml-xxl-n15{margin-left:-60px!important}.ml-xxl-n16{margin-left:-64px!important}.ms-xxl-n1{margin-inline-start:-4px!important}.ms-xxl-n2{margin-inline-start:-8px!important}.ms-xxl-n3{margin-inline-start:-12px!important}.ms-xxl-n4{margin-inline-start:-16px!important}.ms-xxl-n5{margin-inline-start:-20px!important}.ms-xxl-n6{margin-inline-start:-24px!important}.ms-xxl-n7{margin-inline-start:-28px!important}.ms-xxl-n8{margin-inline-start:-32px!important}.ms-xxl-n9{margin-inline-start:-36px!important}.ms-xxl-n10{margin-inline-start:-40px!important}.ms-xxl-n11{margin-inline-start:-44px!important}.ms-xxl-n12{margin-inline-start:-48px!important}.ms-xxl-n13{margin-inline-start:-52px!important}.ms-xxl-n14{margin-inline-start:-56px!important}.ms-xxl-n15{margin-inline-start:-60px!important}.ms-xxl-n16{margin-inline-start:-64px!important}.me-xxl-n1{margin-inline-end:-4px!important}.me-xxl-n2{margin-inline-end:-8px!important}.me-xxl-n3{margin-inline-end:-12px!important}.me-xxl-n4{margin-inline-end:-16px!important}.me-xxl-n5{margin-inline-end:-20px!important}.me-xxl-n6{margin-inline-end:-24px!important}.me-xxl-n7{margin-inline-end:-28px!important}.me-xxl-n8{margin-inline-end:-32px!important}.me-xxl-n9{margin-inline-end:-36px!important}.me-xxl-n10{margin-inline-end:-40px!important}.me-xxl-n11{margin-inline-end:-44px!important}.me-xxl-n12{margin-inline-end:-48px!important}.me-xxl-n13{margin-inline-end:-52px!important}.me-xxl-n14{margin-inline-end:-56px!important}.me-xxl-n15{margin-inline-end:-60px!important}.me-xxl-n16{margin-inline-end:-64px!important}.pa-xxl-0{padding:0!important}.pa-xxl-1{padding:4px!important}.pa-xxl-2{padding:8px!important}.pa-xxl-3{padding:12px!important}.pa-xxl-4{padding:16px!important}.pa-xxl-5{padding:20px!important}.pa-xxl-6{padding:24px!important}.pa-xxl-7{padding:28px!important}.pa-xxl-8{padding:32px!important}.pa-xxl-9{padding:36px!important}.pa-xxl-10{padding:40px!important}.pa-xxl-11{padding:44px!important}.pa-xxl-12{padding:48px!important}.pa-xxl-13{padding:52px!important}.pa-xxl-14{padding:56px!important}.pa-xxl-15{padding:60px!important}.pa-xxl-16{padding:64px!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:4px!important;padding-left:4px!important}.px-xxl-2{padding-right:8px!important;padding-left:8px!important}.px-xxl-3{padding-right:12px!important;padding-left:12px!important}.px-xxl-4{padding-right:16px!important;padding-left:16px!important}.px-xxl-5{padding-right:20px!important;padding-left:20px!important}.px-xxl-6{padding-right:24px!important;padding-left:24px!important}.px-xxl-7{padding-right:28px!important;padding-left:28px!important}.px-xxl-8{padding-right:32px!important;padding-left:32px!important}.px-xxl-9{padding-right:36px!important;padding-left:36px!important}.px-xxl-10{padding-right:40px!important;padding-left:40px!important}.px-xxl-11{padding-right:44px!important;padding-left:44px!important}.px-xxl-12{padding-right:48px!important;padding-left:48px!important}.px-xxl-13{padding-right:52px!important;padding-left:52px!important}.px-xxl-14{padding-right:56px!important;padding-left:56px!important}.px-xxl-15{padding-right:60px!important;padding-left:60px!important}.px-xxl-16{padding-right:64px!important;padding-left:64px!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xxl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xxl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xxl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xxl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xxl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xxl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xxl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xxl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xxl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xxl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xxl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xxl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xxl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xxl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xxl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:4px!important}.pt-xxl-2{padding-top:8px!important}.pt-xxl-3{padding-top:12px!important}.pt-xxl-4{padding-top:16px!important}.pt-xxl-5{padding-top:20px!important}.pt-xxl-6{padding-top:24px!important}.pt-xxl-7{padding-top:28px!important}.pt-xxl-8{padding-top:32px!important}.pt-xxl-9{padding-top:36px!important}.pt-xxl-10{padding-top:40px!important}.pt-xxl-11{padding-top:44px!important}.pt-xxl-12{padding-top:48px!important}.pt-xxl-13{padding-top:52px!important}.pt-xxl-14{padding-top:56px!important}.pt-xxl-15{padding-top:60px!important}.pt-xxl-16{padding-top:64px!important}.pr-xxl-0{padding-right:0!important}.pr-xxl-1{padding-right:4px!important}.pr-xxl-2{padding-right:8px!important}.pr-xxl-3{padding-right:12px!important}.pr-xxl-4{padding-right:16px!important}.pr-xxl-5{padding-right:20px!important}.pr-xxl-6{padding-right:24px!important}.pr-xxl-7{padding-right:28px!important}.pr-xxl-8{padding-right:32px!important}.pr-xxl-9{padding-right:36px!important}.pr-xxl-10{padding-right:40px!important}.pr-xxl-11{padding-right:44px!important}.pr-xxl-12{padding-right:48px!important}.pr-xxl-13{padding-right:52px!important}.pr-xxl-14{padding-right:56px!important}.pr-xxl-15{padding-right:60px!important}.pr-xxl-16{padding-right:64px!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:4px!important}.pb-xxl-2{padding-bottom:8px!important}.pb-xxl-3{padding-bottom:12px!important}.pb-xxl-4{padding-bottom:16px!important}.pb-xxl-5{padding-bottom:20px!important}.pb-xxl-6{padding-bottom:24px!important}.pb-xxl-7{padding-bottom:28px!important}.pb-xxl-8{padding-bottom:32px!important}.pb-xxl-9{padding-bottom:36px!important}.pb-xxl-10{padding-bottom:40px!important}.pb-xxl-11{padding-bottom:44px!important}.pb-xxl-12{padding-bottom:48px!important}.pb-xxl-13{padding-bottom:52px!important}.pb-xxl-14{padding-bottom:56px!important}.pb-xxl-15{padding-bottom:60px!important}.pb-xxl-16{padding-bottom:64px!important}.pl-xxl-0{padding-left:0!important}.pl-xxl-1{padding-left:4px!important}.pl-xxl-2{padding-left:8px!important}.pl-xxl-3{padding-left:12px!important}.pl-xxl-4{padding-left:16px!important}.pl-xxl-5{padding-left:20px!important}.pl-xxl-6{padding-left:24px!important}.pl-xxl-7{padding-left:28px!important}.pl-xxl-8{padding-left:32px!important}.pl-xxl-9{padding-left:36px!important}.pl-xxl-10{padding-left:40px!important}.pl-xxl-11{padding-left:44px!important}.pl-xxl-12{padding-left:48px!important}.pl-xxl-13{padding-left:52px!important}.pl-xxl-14{padding-left:56px!important}.pl-xxl-15{padding-left:60px!important}.pl-xxl-16{padding-left:64px!important}.ps-xxl-0{padding-inline-start:0px!important}.ps-xxl-1{padding-inline-start:4px!important}.ps-xxl-2{padding-inline-start:8px!important}.ps-xxl-3{padding-inline-start:12px!important}.ps-xxl-4{padding-inline-start:16px!important}.ps-xxl-5{padding-inline-start:20px!important}.ps-xxl-6{padding-inline-start:24px!important}.ps-xxl-7{padding-inline-start:28px!important}.ps-xxl-8{padding-inline-start:32px!important}.ps-xxl-9{padding-inline-start:36px!important}.ps-xxl-10{padding-inline-start:40px!important}.ps-xxl-11{padding-inline-start:44px!important}.ps-xxl-12{padding-inline-start:48px!important}.ps-xxl-13{padding-inline-start:52px!important}.ps-xxl-14{padding-inline-start:56px!important}.ps-xxl-15{padding-inline-start:60px!important}.ps-xxl-16{padding-inline-start:64px!important}.pe-xxl-0{padding-inline-end:0px!important}.pe-xxl-1{padding-inline-end:4px!important}.pe-xxl-2{padding-inline-end:8px!important}.pe-xxl-3{padding-inline-end:12px!important}.pe-xxl-4{padding-inline-end:16px!important}.pe-xxl-5{padding-inline-end:20px!important}.pe-xxl-6{padding-inline-end:24px!important}.pe-xxl-7{padding-inline-end:28px!important}.pe-xxl-8{padding-inline-end:32px!important}.pe-xxl-9{padding-inline-end:36px!important}.pe-xxl-10{padding-inline-end:40px!important}.pe-xxl-11{padding-inline-end:44px!important}.pe-xxl-12{padding-inline-end:48px!important}.pe-xxl-13{padding-inline-end:52px!important}.pe-xxl-14{padding-inline-end:56px!important}.pe-xxl-15{padding-inline-end:60px!important}.pe-xxl-16{padding-inline-end:64px!important}.text-xxl-left{text-align:left!important}.text-xxl-right{text-align:right!important}.text-xxl-center{text-align:center!important}.text-xxl-justify{text-align:justify!important}.text-xxl-start{text-align:start!important}.text-xxl-end{text-align:end!important}.text-xxl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.text-xxl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Roboto,sans-serif;text-transform:none!important}.text-xxl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Roboto,sans-serif;text-transform:uppercase!important}.h-xxl-auto{height:auto!important}.h-xxl-screen{height:100vh!important}.h-xxl-0{height:0!important}.h-xxl-25{height:25%!important}.h-xxl-50{height:50%!important}.h-xxl-75{height:75%!important}.h-xxl-100{height:100%!important}.w-xxl-auto{width:auto!important}.w-xxl-0{width:0!important}.w-xxl-25{width:25%!important}.w-xxl-33{width:33%!important}.w-xxl-50{width:50%!important}.w-xxl-66{width:66%!important}.w-xxl-75{width:75%!important}.w-xxl-100{width:100%!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.float-print-none{float:none!important}.float-print-left{float:left!important}.float-print-right{float:right!important}.v-locale--is-rtl .float-print-end{float:left!important}.v-locale--is-rtl .float-print-start,.v-locale--is-ltr .float-print-end{float:right!important}.v-locale--is-ltr .float-print-start{float:left!important}}.alert[data-v-ac10aa7f]{z-index:10000}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;inset:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;inset:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);user-select:none;vertical-align:middle;flex-shrink:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;inset:0;pointer-events:none}.v-btn .v-btn__underlay{position:absolute}@supports selector(:focus-visible){.v-btn:after{pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--slim{padding:0 8px}.v-btn--readonly{pointer-events:none}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn--stacked.v-btn--block{min-width:100%}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__loader>.v-progress-circular{width:1.5em;height:1.5em}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn--slim .v-btn__prepend{margin-inline-start:0}.v-btn__append{grid-area:append;margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--slim .v-btn__append{margin-inline-end:0}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{pointer-events:none}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-pagination .v-btn{border-radius:4px}.v-pagination .v-btn--rounded{border-radius:50%}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle}.v-btn-group{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn-group{border-radius:4px}.v-btn-group{background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;inset:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}@media (forced-colors: active){.v-progress-linear{border:thin solid buttontext}}.v-progress-linear__background,.v-progress-linear__buffer{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;width:100%;transition-property:width,left,right;transition:inherit}@media (forced-colors: active){.v-progress-linear__buffer{background-color:highlight;opacity:.3}}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}@media (forced-colors: active){.v-progress-linear__determinate,.v-progress-linear__indeterminate{background-color:highlight}}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;height:inherit;inset:0 auto 0 0;position:absolute;width:auto}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-progress-linear--rounded-bar .v-progress-linear__determinate{border-start-start-radius:0;border-end-start-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.offset-1{margin-inline-start:8.3333333333%}.offset-2{margin-inline-start:16.6666666667%}.offset-3{margin-inline-start:25%}.offset-4{margin-inline-start:33.3333333333%}.offset-5{margin-inline-start:41.6666666667%}.offset-6{margin-inline-start:50%}.offset-7{margin-inline-start:58.3333333333%}.offset-8{margin-inline-start:66.6666666667%}.offset-9{margin-inline-start:75%}.offset-10{margin-inline-start:83.3333333333%}.offset-11{margin-inline-start:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-0{margin-inline-start:0}.offset-sm-1{margin-inline-start:8.3333333333%}.offset-sm-2{margin-inline-start:16.6666666667%}.offset-sm-3{margin-inline-start:25%}.offset-sm-4{margin-inline-start:33.3333333333%}.offset-sm-5{margin-inline-start:41.6666666667%}.offset-sm-6{margin-inline-start:50%}.offset-sm-7{margin-inline-start:58.3333333333%}.offset-sm-8{margin-inline-start:66.6666666667%}.offset-sm-9{margin-inline-start:75%}.offset-sm-10{margin-inline-start:83.3333333333%}.offset-sm-11{margin-inline-start:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.offset-md-0{margin-inline-start:0}.offset-md-1{margin-inline-start:8.3333333333%}.offset-md-2{margin-inline-start:16.6666666667%}.offset-md-3{margin-inline-start:25%}.offset-md-4{margin-inline-start:33.3333333333%}.offset-md-5{margin-inline-start:41.6666666667%}.offset-md-6{margin-inline-start:50%}.offset-md-7{margin-inline-start:58.3333333333%}.offset-md-8{margin-inline-start:66.6666666667%}.offset-md-9{margin-inline-start:75%}.offset-md-10{margin-inline-start:83.3333333333%}.offset-md-11{margin-inline-start:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-0{margin-inline-start:0}.offset-lg-1{margin-inline-start:8.3333333333%}.offset-lg-2{margin-inline-start:16.6666666667%}.offset-lg-3{margin-inline-start:25%}.offset-lg-4{margin-inline-start:33.3333333333%}.offset-lg-5{margin-inline-start:41.6666666667%}.offset-lg-6{margin-inline-start:50%}.offset-lg-7{margin-inline-start:58.3333333333%}.offset-lg-8{margin-inline-start:66.6666666667%}.offset-lg-9{margin-inline-start:75%}.offset-lg-10{margin-inline-start:83.3333333333%}.offset-lg-11{margin-inline-start:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-0{margin-inline-start:0}.offset-xl-1{margin-inline-start:8.3333333333%}.offset-xl-2{margin-inline-start:16.6666666667%}.offset-xl-3{margin-inline-start:25%}.offset-xl-4{margin-inline-start:33.3333333333%}.offset-xl-5{margin-inline-start:41.6666666667%}.offset-xl-6{margin-inline-start:50%}.offset-xl-7{margin-inline-start:58.3333333333%}.offset-xl-8{margin-inline-start:66.6666666667%}.offset-xl-9{margin-inline-start:75%}.offset-xl-10{margin-inline-start:83.3333333333%}.offset-xl-11{margin-inline-start:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.offset-xxl-0{margin-inline-start:0}.offset-xxl-1{margin-inline-start:8.3333333333%}.offset-xxl-2{margin-inline-start:16.6666666667%}.offset-xxl-3{margin-inline-start:25%}.offset-xxl-4{margin-inline-start:33.3333333333%}.offset-xxl-5{margin-inline-start:41.6666666667%}.offset-xxl-6{margin-inline-start:50%}.offset-xxl-7{margin-inline-start:58.3333333333%}.offset-xxl-8{margin-inline-start:66.6666666667%}.offset-xxl-9{margin-inline-start:75%}.offset-xxl-10{margin-inline-start:83.3333333333%}.offset-xxl-11{margin-inline-start:91.6666666667%}}html{overflow:hidden!important}.template{height:var(--0e50fc87)}.loading-container{height:100dvh;display:flex;align-items:center;justify-content:center}.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative} diff --git a/pr-preview/pr-17/assets/index-CIIeHcTL.js b/pr-preview/pr-17/assets/index-CIIeHcTL.js deleted file mode 100644 index c9c93b5..0000000 --- a/pr-preview/pr-17/assets/index-CIIeHcTL.js +++ /dev/null @@ -1 +0,0 @@ -import{g,bk as c,ab as p,aA as h,p as b,bl as S}from"./index-Dvu417lt.js";const _=b({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function s(o,d,i){return g()({name:o,props:_({mode:i,origin:d}),setup(n,r){let{slots:a}=r;const t={onBeforeEnter(e){n.origin&&(e.style.transformOrigin=n.origin)},onLeave(e){if(n.leaveAbsolute){const{offsetTop:l,offsetLeft:f,offsetWidth:y,offsetHeight:u}=e;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position="absolute",e.style.top=`${l}px`,e.style.left=`${f}px`,e.style.width=`${y}px`,e.style.height=`${u}px`}n.hideOnLeave&&e.style.setProperty("display","none","important")},onAfterLeave(e){if(n.leaveAbsolute&&e?._transitionInitialStyles){const{position:l,top:f,left:y,width:u,height:x}=e._transitionInitialStyles;delete e._transitionInitialStyles,e.style.position=l||"",e.style.top=f||"",e.style.left=y||"",e.style.width=u||"",e.style.height=x||""}}};return()=>{const e=n.group?c:p;return h(e,{name:n.disabled?"":o,css:!n.disabled,...n.group?void 0:{mode:n.mode},...n.disabled?{}:t},a.default)}}})}function m(o,d){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return g()({name:o,props:{mode:{type:String,default:i},disabled:Boolean,group:Boolean},setup(n,r){let{slots:a}=r;const t=n.group?c:p;return()=>h(t,{name:n.disabled?"":o,css:!n.disabled,...n.disabled?{}:d},a.default)}})}function v(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",n=S(`offset-${i}`);return{onBeforeEnter(t){t._parent=t.parentNode,t._initialStyle={transition:t.style.transition,overflow:t.style.overflow,[i]:t.style[i]}},onEnter(t){const e=t._initialStyle;t.style.setProperty("transition","none","important"),t.style.overflow="hidden";const l=`${t[n]}px`;t.style[i]="0",t.offsetHeight,t.style.transition=e.transition,o&&t._parent&&t._parent.classList.add(o),requestAnimationFrame(()=>{t.style[i]=l})},onAfterEnter:a,onEnterCancelled:a,onLeave(t){t._initialStyle={transition:"",overflow:t.style.overflow,[i]:t.style[i]},t.style.overflow="hidden",t.style[i]=`${t[n]}px`,t.offsetHeight,requestAnimationFrame(()=>t.style[i]="0")},onAfterLeave:r,onLeaveCancelled:r};function r(t){o&&t._parent&&t._parent.classList.remove(o),a(t)}function a(t){const e=t._initialStyle[i];t.style.overflow=t._initialStyle.overflow,e!=null&&(t.style[i]=e),delete t._initialStyle}}s("fab-transition","center center","out-in");s("dialog-bottom-transition");s("dialog-top-transition");const L=s("fade-transition");s("scale-transition");s("scroll-x-transition");s("scroll-x-reverse-transition");s("scroll-y-transition");s("scroll-y-reverse-transition");s("slide-x-transition");s("slide-x-reverse-transition");s("slide-y-transition");s("slide-y-reverse-transition");const A=m("expand-transition",v());m("expand-x-transition",v("",!0));export{L as V,A as a}; diff --git a/pr-preview/pr-17/assets/index-Dvu417lt.js b/pr-preview/pr-17/assets/index-Dvu417lt.js deleted file mode 100644 index 6d93690..0000000 --- a/pr-preview/pr-17/assets/index-Dvu417lt.js +++ /dev/null @@ -1,57 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/webfontloader-OEBPRw3i.js","assets/_commonjsHelpers-Cpj98o6Y.js","assets/EodashDatePicker-g0QWHEy-.js","assets/helpers-CkhK5_6d.js","assets/VOverlay-DGc1wXYF.js","assets/forwardRefs-DzUtZcD3.js","assets/transition-BKtsYhmO.js","assets/VOverlay-7P9ZDRB1.css","assets/EodashDatePicker-ClB_nEyz.css","assets/EodashMap-BDE_gmHB.js","assets/EodashMapBtns-BBddO65x.js","assets/ExportState-D-Xz2LGJ.js","assets/PopUp-5-tUIM9N.js","assets/PopUp-C7scL-fp.css","assets/index-CIIeHcTL.js","assets/VImg-CLLthewK.js","assets/VImg-BzNflMvG.css","assets/ExportState-C78fNrFy.css","assets/EodashMapBtns-CPcoqvv5.css","assets/MobileLayout-DtBtTe7v.js","assets/ssrBoot-Uu_-yAhn.js","assets/VMain-CoSaaYTf.js","assets/VMain-BbSmdCG_.css","assets/MobileLayout-BK_cuoYT.css","assets/DashboardLayout-Bklr6-8p.js","assets/DashboardLayout-1feu1wms.css","assets/Header-LhvQ5ty7.js","assets/Header-L0dTPwgQ.css","assets/Footer-Bbz6BUHt.js","assets/Footer-B-aywIir.css"])))=>i.map(i=>d[i]); -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** -* @vue/shared v3.4.35 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Ol(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const Me={},Ir=[],Lt=()=>{},Rg=()=>!1,Ca=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ml=e=>e.startsWith("onUpdate:"),Ke=Object.assign,kl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ng=Object.prototype.hasOwnProperty,De=(e,t)=>Ng.call(e,t),le=Array.isArray,Lr=e=>Sa(e)==="[object Map]",ah=e=>Sa(e)==="[object Set]",ce=e=>typeof e=="function",Ve=e=>typeof e=="string",Vn=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",xl=e=>(Ie(e)||ce(e))&&ce(e.then)&&ce(e.catch),ih=Object.prototype.toString,Sa=e=>ih.call(e),Fg=e=>Sa(e).slice(8,-1),lh=e=>Sa(e)==="[object Object]",Pl=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ms=Ol(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$a=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Yg=/-(\w)/g,kt=$a(e=>e.replace(Yg,(t,n)=>n?n.toUpperCase():"")),Bg=/\B([A-Z])/g,_n=$a(e=>e.replace(Bg,"-$1").toLowerCase()),Dn=$a(e=>e.charAt(0).toUpperCase()+e.slice(1)),Io=$a(e=>e?`on${Dn(e)}`:""),yt=(e,t)=>!Object.is(e,t),li=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Hg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ch=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let ec;const fh=()=>ec||(ec=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pn(e){if(le(e)){const t={};for(let n=0;n{if(n){const r=n.split(Vg);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function xe(e){let t="";if(Ve(e))t=e;else if(le(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Xe=e=>Ve(e)?e:e==null?"":le(e)||Ie(e)&&(e.toString===ih||!ce(e.toString))?hh(e)?Xe(e.value):JSON.stringify(e,vh,2):String(e),vh=(e,t)=>hh(t)?vh(e,t.value):Lr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[ui(r,o)+" =>"]=s,n),{})}:ah(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ui(n))}:Vn(t)?ui(t):Ie(t)&&!le(t)&&!lh(t)?String(t):t,ui=(e,t="")=>{var n;return Vn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.35 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Tt;class mh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Tt,!t&&Tt&&(this.index=(Tt.scopes||(Tt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Tt;try{return Tt=this,t()}finally{Tt=n}}}on(){Tt=this}off(){Tt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Un()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Fn,n=lr;try{return Fn=!0,lr=this,this._runnings++,tc(this),this.fn()}finally{nc(this),this._runnings--,lr=n,Fn=t}}stop(){this.active&&(tc(this),nc(this),this.onStop&&this.onStop(),this.active=!1)}}function qg(e){return e.value}function tc(e){e._trackId++,e._depsLength=0}function nc(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Go=new WeakMap,ur=Symbol(""),Yi=Symbol("");function Ct(e,t,n){if(Fn&&lr){let r=Go.get(e);r||Go.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=_h(()=>r.delete(n))),bh(lr,s)}}function gn(e,t,n,r,s,o){const a=Go.get(e);if(!a)return;let i=[];if(t==="clear")i=[...a.values()];else if(n==="length"&&le(e)){const l=Number(r);a.forEach((u,c)=>{(c==="length"||!Vn(c)&&c>=l)&&i.push(u)})}else switch(n!==void 0&&i.push(a.get(n)),t){case"add":le(e)?Pl(n)&&i.push(a.get("length")):(i.push(a.get(ur)),Lr(e)&&i.push(a.get(Yi)));break;case"delete":le(e)||(i.push(a.get(ur)),Lr(e)&&i.push(a.get(Yi)));break;case"set":Lr(e)&&i.push(a.get(ur));break}Rl();for(const l of i)l&&wh(l,4);Nl()}function Zg(e,t){const n=Go.get(e);return n&&n.get(t)}const Jg=Ol("__proto__,__v_isRef,__isVue"),Dh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vn)),rc=Xg();function Xg(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ge(this);for(let o=0,a=this.length;o{e[t]=function(...n){Wn(),Rl();const r=ge(this)[t].apply(this,n);return Nl(),Un(),r}}),e}function Qg(e){Vn(e)||(e=String(e));const t=ge(this);return Ct(t,"has",e),t.hasOwnProperty(e)}class Ch{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?dy:Eh:o?Th:$h).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=le(t);if(!s){if(a&&De(rc,n))return Reflect.get(rc,n,r);if(n==="hasOwnProperty")return Qg}const i=Reflect.get(t,n,r);return(Vn(n)?Dh.has(n):Jg(n))||(s||Ct(t,"get",n),o)?i:Se(i)?a&&Pl(n)?i:i.value:Ie(i)?s?Ea(i):je(i):i}}class Sh extends Ch{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=hr(o);if(!Wr(r)&&!hr(r)&&(o=ge(o),r=ge(r)),!le(t)&&Se(o)&&!Se(r))return l?!1:(o.value=r,!0)}const a=le(t)&&Pl(n)?Number(n)e,Ta=e=>Reflect.getPrototypeOf(e);function bo(e,t,n=!1,r=!1){e=e.__v_raw;const s=ge(e),o=ge(t);n||(yt(t,o)&&Ct(s,"get",t),Ct(s,"get",o));const{has:a}=Ta(s),i=r?Fl:n?jl:Ys;if(a.call(s,t))return i(e.get(t));if(a.call(s,o))return i(e.get(o));e!==s&&e.get(t)}function wo(e,t=!1){const n=this.__v_raw,r=ge(n),s=ge(e);return t||(yt(e,s)&&Ct(r,"has",e),Ct(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function _o(e,t=!1){return e=e.__v_raw,!t&&Ct(ge(e),"iterate",ur),Reflect.get(e,"size",e)}function sc(e,t=!1){!t&&!Wr(e)&&!hr(e)&&(e=ge(e));const n=ge(this);return Ta(n).has.call(n,e)||(n.add(e),gn(n,"add",e,e)),this}function oc(e,t,n=!1){!n&&!Wr(t)&&!hr(t)&&(t=ge(t));const r=ge(this),{has:s,get:o}=Ta(r);let a=s.call(r,e);a||(e=ge(e),a=s.call(r,e));const i=o.call(r,e);return r.set(e,t),a?yt(t,i)&&gn(r,"set",e,t):gn(r,"add",e,t),this}function ac(e){const t=ge(this),{has:n,get:r}=Ta(t);let s=n.call(t,e);s||(e=ge(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&gn(t,"delete",e,void 0),o}function ic(){const e=ge(this),t=e.size!==0,n=e.clear();return t&&gn(e,"clear",void 0,void 0),n}function Do(e,t){return function(r,s){const o=this,a=o.__v_raw,i=ge(a),l=t?Fl:e?jl:Ys;return!e&&Ct(i,"iterate",ur),a.forEach((u,c)=>r.call(s,l(u),l(c),o))}}function Co(e,t,n){return function(...r){const s=this.__v_raw,o=ge(s),a=Lr(o),i=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=s[e](...r),c=n?Fl:t?jl:Ys;return!t&&Ct(o,"iterate",l?Yi:ur),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:i?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Tn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function sy(){const e={get(o){return bo(this,o)},get size(){return _o(this)},has:wo,add:sc,set:oc,delete:ac,clear:ic,forEach:Do(!1,!1)},t={get(o){return bo(this,o,!1,!0)},get size(){return _o(this)},has:wo,add(o){return sc.call(this,o,!0)},set(o,a){return oc.call(this,o,a,!0)},delete:ac,clear:ic,forEach:Do(!1,!0)},n={get(o){return bo(this,o,!0)},get size(){return _o(this,!0)},has(o){return wo.call(this,o,!0)},add:Tn("add"),set:Tn("set"),delete:Tn("delete"),clear:Tn("clear"),forEach:Do(!0,!1)},r={get(o){return bo(this,o,!0,!0)},get size(){return _o(this,!0)},has(o){return wo.call(this,o,!0)},add:Tn("add"),set:Tn("set"),delete:Tn("delete"),clear:Tn("clear"),forEach:Do(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Co(o,!1,!1),n[o]=Co(o,!0,!1),t[o]=Co(o,!1,!0),r[o]=Co(o,!0,!0)}),[e,n,t,r]}const[oy,ay,iy,ly]=sy();function Yl(e,t){const n=t?e?ly:iy:e?ay:oy;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(De(n,s)&&s in r?n:r,s,o)}const uy={get:Yl(!1,!1)},cy={get:Yl(!1,!0)},fy={get:Yl(!0,!1)};const $h=new WeakMap,Th=new WeakMap,Eh=new WeakMap,dy=new WeakMap;function hy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vy(e){return e.__v_skip||!Object.isExtensible(e)?0:hy(Fg(e))}function je(e){return hr(e)?e:Bl(e,!1,ty,uy,$h)}function my(e){return Bl(e,!1,ry,cy,Th)}function Ea(e){return Bl(e,!0,ny,fy,Eh)}function Bl(e,t,n,r,s){if(!Ie(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const a=vy(e);if(a===0)return e;const i=new Proxy(e,a===2?r:n);return s.set(e,i),i}function Yn(e){return hr(e)?Yn(e.__v_raw):!!(e&&e.__v_isReactive)}function hr(e){return!!(e&&e.__v_isReadonly)}function Wr(e){return!!(e&&e.__v_isShallow)}function Oh(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function Hl(e){return Object.isExtensible(e)&&uh(e,"__v_skip",!0),e}const Ys=e=>Ie(e)?je(e):e,jl=e=>Ie(e)?Ea(e):e;class Mh{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ll(()=>t(this._value),()=>ks(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ge(this);return(!t._cacheable||t.effect.dirty)&&yt(t._value,t._value=t.effect.run())&&ks(t,4),Vl(t),t.effect._dirtyLevel>=2&&ks(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function py(e,t,n=!1){let r,s;const o=ce(e);return o?(r=e,s=Lt):(r=e.get,s=e.set),new Mh(r,s,o||!s,n)}function Vl(e){var t;Fn&&lr&&(e=ge(e),bh(lr,(t=e.dep)!=null?t:e.dep=_h(()=>e.dep=void 0,e instanceof Mh?e:void 0)))}function ks(e,t=4,n,r){e=ge(e);const s=e.dep;s&&wh(s,t)}function Se(e){return!!(e&&e.__v_isRef===!0)}function oe(e){return kh(e,!1)}function Ut(e){return kh(e,!0)}function kh(e,t){return Se(e)?e:new gy(e,t)}class gy{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ge(t),this._value=n?t:Ys(t)}get value(){return Vl(this),this._value}set value(t){const n=this.__v_isShallow||Wr(t)||hr(t);t=n?t:ge(t),yt(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:Ys(t),ks(this,4))}}function A(e){return Se(e)?e.value:e}const yy={get:(e,t,n)=>A(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Se(s)&&!Se(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function xh(e){return Yn(e)?e:new Proxy(e,yy)}class by{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Vl(this),()=>ks(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function wy(e){return new by(e)}function no(e){const t=le(e)?new Array(e.length):{};for(const n in e)t[n]=Ph(e,n);return t}class _y{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Zg(ge(this._object),this._key)}}class Dy{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function et(e,t,n){return Se(e)?e:ce(e)?new Dy(e):Ie(e)&&arguments.length>1?Ph(e,t,n):oe(e)}function Ph(e,t,n){const r=e[t];return Se(r)?r:new _y(e,t,n)}/** -* @vue/runtime-core v3.4.35 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Bn(e,t,n,r){try{return r?e(...r):e()}catch(s){rs(s,t,n)}}function Nt(e,t,n,r){if(ce(e)){const s=Bn(e,t,n,r);return s&&xl(s)&&s.catch(o=>{rs(o,t,n)}),s}if(le(e)){const s=[];for(let o=0;o>>1,s=rt[r],o=Hs(s);oen&&rt.splice(t,1)}function Hi(e){le(e)?Nr.push(...e):(!Pn||!Pn.includes(e,e.allowRecurse?sr+1:sr))&&Nr.push(e),Ih()}function lc(e,t,n=Bs?en+1:0){for(;nHs(n)-Hs(r));if(Nr.length=0,Pn){Pn.push(...t);return}for(Pn=t,sr=0;sre.id==null?1/0:e.id,Ty=(e,t)=>{const n=Hs(e)-Hs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Rh(e){Bi=!1,Bs=!0,rt.sort(Ty);try{for(en=0;en{r._d&&wc(-1);const o=qo(t);let a;try{a=e(...s)}finally{qo(o),r._d&&wc(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Ul(e,t){if(qe===null)return e;const n=La(qe),r=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),yr(()=>{e.isUnmounting=!0}),e}const It=[Function,Array],Fh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:It,onEnter:It,onAfterEnter:It,onEnterCancelled:It,onBeforeLeave:It,onLeave:It,onAfterLeave:It,onLeaveCancelled:It,onBeforeAppear:It,onAppear:It,onAfterAppear:It,onAppearCancelled:It},Yh=e=>{const t=e.subTree;return t.component?Yh(t.component):t},My={name:"BaseTransition",props:Fh,setup(e,{slots:t}){const n=os(),r=Nh();return()=>{const s=t.default&&zl(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const d of s)if(d.type!==st){o=d;break}}const a=ge(e),{mode:i}=a;if(r.isLeaving)return ci(o);const l=uc(o);if(!l)return ci(o);let u=js(l,a,r,n,d=>u=d);Ur(l,u);const c=n.subTree,f=c&&uc(c);if(f&&f.type!==st&&!tn(l,f)&&Yh(n).type!==st){const d=js(f,a,r,n);if(Ur(f,d),i==="out-in"&&l.type!==st)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},ci(o);i==="in-out"&&l.type!==st&&(d.delayLeave=(h,v,m)=>{const p=Bh(r,f);p[String(f.key)]=f,h[An]=()=>{v(),h[An]=void 0,delete u.delayedLeave},u.delayedLeave=m})}return o}}},ky=My;function Bh(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function js(e,t,n,r,s){const{appear:o,mode:a,persisted:i=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:p,onAppear:b,onAfterAppear:S,onAppearCancelled:T}=t,M=String(e.key),D=Bh(n,e),C=($,I)=>{$&&Nt($,r,9,I)},E=($,I)=>{const j=I[1];C($,I),le($)?$.every(O=>O.length<=1)&&j():$.length<=1&&j()},P={mode:a,persisted:i,beforeEnter($){let I=l;if(!n.isMounted)if(o)I=p||l;else return;$[An]&&$[An](!0);const j=D[M];j&&tn(e,j)&&j.el[An]&&j.el[An](),C(I,[$])},enter($){let I=u,j=c,O=f;if(!n.isMounted)if(o)I=b||u,j=S||c,O=T||f;else return;let W=!1;const re=$[So]=X=>{W||(W=!0,X?C(O,[$]):C(j,[$]),P.delayedLeave&&P.delayedLeave(),$[So]=void 0)};I?E(I,[$,re]):re()},leave($,I){const j=String(e.key);if($[So]&&$[So](!0),n.isUnmounting)return I();C(d,[$]);let O=!1;const W=$[An]=re=>{O||(O=!0,I(),re?C(m,[$]):C(v,[$]),$[An]=void 0,D[j]===e&&delete D[j])};D[j]=e,h?E(h,[$,W]):W()},clone($){const I=js($,t,n,r,s);return s&&s(I),I}};return P}function ci(e){if(ro(e))return e=Hn(e),e.children=null,e}function uc(e){if(!ro(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ce(n.default))return n.default()}}function Ur(e,t){e.shapeFlag&6&&e.component?Ur(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zl(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function or(e){ce(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:o,suspensible:a=!0,onError:i}=e;let l=null,u,c=0;const f=()=>(c++,l=null,d()),d=()=>{let h;return l||(h=l=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),i)return new Promise((m,p)=>{i(v,()=>m(f()),()=>p(v),c+1)});throw v}).then(v=>h!==l&&l?l:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return Ze({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const h=Ge;if(u)return()=>fi(u,h);const v=S=>{l=null,rs(S,h,13,!r)};if(a&&h.suspense||io)return d().then(S=>()=>fi(S,h)).catch(S=>(v(S),()=>r?L(r,{error:S}):null));const m=oe(!1),p=oe(),b=oe(!!s);return s&&setTimeout(()=>{b.value=!1},s),o!=null&&setTimeout(()=>{if(!m.value&&!p.value){const S=new Error(`Async component timed out after ${o}ms.`);v(S),p.value=S}},o),d().then(()=>{m.value=!0,h.parent&&ro(h.parent.vnode)&&(h.parent.effect.dirty=!0,Oa(h.parent.update))}).catch(S=>{v(S),p.value=S}),()=>{if(m.value&&u)return fi(u,h);if(p.value&&r)return L(r,{error:p.value});if(n&&!b.value)return L(n)}}})}function fi(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,a=L(e,r,s);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const ro=e=>e.type.__isKeepAlive;function Hh(e,t){Vh(e,"a",t)}function jh(e,t){Vh(e,"da",t)}function Vh(e,t,n=Ge){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ka(t,r,n),n){let s=n.parent;for(;s&&s.parent;)ro(s.parent.vnode)&&xy(r,t,n,s),s=s.parent}}function xy(e,t,n,r){const s=ka(t,e,r,!0);ss(()=>{kl(r[t],s)},n)}function ka(e,t,n=Ge,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Wn();const i=vr(n),l=Nt(t,n,e,a);return i(),Un(),l});return r?s.unshift(o):s.push(o),o}}const Cn=e=>(t,n=Ge)=>{(!io||e==="sp")&&ka(e,(...r)=>t(...r),n)},Py=Cn("bm"),Gt=Cn("m"),Ay=Cn("bu"),Kl=Cn("u"),yr=Cn("bum"),ss=Cn("um"),Iy=Cn("sp"),Ly=Cn("rtg"),Ry=Cn("rtc");function xa(e,t=Ge){ka("ec",e,t)}const Gl="components",Ny="directives";function vn(e,t){return ql(Gl,e,!0,t)||e}const Wh=Symbol.for("v-ndc");function Pa(e){return Ve(e)?ql(Gl,e,!1)||e:e||Wh}function Fy(e){return ql(Ny,e)}function ql(e,t,n=!0,r=!1){const s=qe||Ge;if(s){const o=s.type;if(e===Gl){const i=Lb(o,!1);if(i&&(i===t||i===kt(t)||i===Dn(kt(t))))return o}const a=cc(s[e]||o[e],t)||cc(s.appContext[e],t);return!a&&r?o:a}}function cc(e,t){return e&&(e[t]||e[kt(t)]||e[Dn(kt(t))])}function Ft(e,t,n,r){let s;const o=n;if(le(e)||Ve(e)){s=new Array(e.length);for(let a=0,i=e.length;at(a,i,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let i=0,l=a.length;iWs(t)?!(t.type===st||t.type===be&&!Uh(t.children)):!0)?e:null}function Yy(e,t){const n={};for(const r in e)n[/[A-Z]/.test(r)?`on:${r}`:Io(r)]=e[r];return n}const ji=e=>e?vv(e)?La(e):ji(e.parent):null,Ps=Ke(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ji(e.parent),$root:e=>ji(e.root),$emit:e=>e.emit,$options:e=>Zl(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Oa(e.update)}),$nextTick:e=>e.n||(e.n=Ot.bind(e.proxy)),$watch:e=>db.bind(e)}),di=(e,t)=>e!==Me&&!e.__isScriptSetup&&De(e,t),By={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:a,type:i,appContext:l}=e;let u;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(di(r,t))return a[t]=1,r[t];if(s!==Me&&De(s,t))return a[t]=2,s[t];if((u=e.propsOptions[0])&&De(u,t))return a[t]=3,o[t];if(n!==Me&&De(n,t))return a[t]=4,n[t];Vi&&(a[t]=0)}}const c=Ps[t];let f,d;if(c)return t==="$attrs"&&Ct(e.attrs,"get",""),c(e);if((f=i.__cssModules)&&(f=f[t]))return f;if(n!==Me&&De(n,t))return a[t]=4,n[t];if(d=l.config.globalProperties,De(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return di(s,t)?(s[t]=n,!0):r!==Me&&De(r,t)?(r[t]=n,!0):De(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},a){let i;return!!n[a]||e!==Me&&De(e,a)||di(t,a)||(i=o[0])&&De(i,a)||De(r,a)||De(Ps,a)||De(s.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:De(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zo(e){return le(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function bY(e,t){return!e||!t?e||t:le(e)&&le(t)?e.concat(t):Ke({},Zo(e),Zo(t))}function hi(e){const t=os();let n=e();return Zi(),xl(n)&&(n=n.catch(r=>{throw vr(t),r})),[n,()=>vr(t)]}let Vi=!0;function Hy(e){const t=Zl(e),n=e.proxy,r=e.ctx;Vi=!1,t.beforeCreate&&fc(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:a,watch:i,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:m,deactivated:p,beforeDestroy:b,beforeUnmount:S,destroyed:T,unmounted:M,render:D,renderTracked:C,renderTriggered:E,errorCaptured:P,serverPrefetch:$,expose:I,inheritAttrs:j,components:O,directives:W,filters:re}=t;if(u&&jy(u,r,null),a)for(const J in a){const ue=a[J];ce(ue)&&(r[J]=ue.bind(n))}if(s){const J=s.call(n,n);Ie(J)&&(e.data=je(J))}if(Vi=!0,o)for(const J in o){const ue=o[J],we=ce(ue)?ue.bind(n,n):ce(ue.get)?ue.get.bind(n,n):Lt,V=!ce(ue)&&ce(ue.set)?ue.set.bind(n):Lt,fe=w({get:we,set:V});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>fe.value,set:Q=>fe.value=Q})}if(i)for(const J in i)zh(i[J],r,n,J);if(l){const J=ce(l)?l.call(n):l;Reflect.ownKeys(J).forEach(ue=>{Pt(ue,J[ue])})}c&&fc(c,e,"c");function ee(J,ue){le(ue)?ue.forEach(we=>J(we.bind(n))):ue&&J(ue.bind(n))}if(ee(Py,f),ee(Gt,d),ee(Ay,h),ee(Kl,v),ee(Hh,m),ee(jh,p),ee(xa,P),ee(Ry,C),ee(Ly,E),ee(yr,S),ee(ss,M),ee(Iy,$),le(I))if(I.length){const J=e.exposed||(e.exposed={});I.forEach(ue=>{Object.defineProperty(J,ue,{get:()=>n[ue],set:we=>n[ue]=we})})}else e.exposed||(e.exposed={});D&&e.render===Lt&&(e.render=D),j!=null&&(e.inheritAttrs=j),O&&(e.components=O),W&&(e.directives=W)}function jy(e,t,n=Lt){le(e)&&(e=Wi(e));for(const r in e){const s=e[r];let o;Ie(s)?"default"in s?o=Pe(s.from||r,s.default,!0):o=Pe(s.from||r):o=Pe(s),Se(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function fc(e,t,n){Nt(le(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function zh(e,t,n,r){const s=r.includes(".")?iv(n,r):()=>n[r];if(Ve(e)){const o=t[e];ce(o)&&Te(s,o)}else if(ce(e))Te(s,e.bind(n));else if(Ie(e))if(le(e))e.forEach(o=>zh(o,t,n,r));else{const o=ce(e.handler)?e.handler.bind(n):t[e.handler];ce(o)&&Te(s,o,e)}}function Zl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let l;return i?l=i:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Jo(l,u,a,!0)),Jo(l,t,a)),Ie(t)&&o.set(t,l),l}function Jo(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Jo(e,o,n,!0),s&&s.forEach(a=>Jo(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const i=Vy[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const Vy={data:dc,props:hc,emits:hc,methods:$s,computed:$s,beforeCreate:dt,created:dt,beforeMount:dt,mounted:dt,beforeUpdate:dt,updated:dt,beforeDestroy:dt,beforeUnmount:dt,destroyed:dt,unmounted:dt,activated:dt,deactivated:dt,errorCaptured:dt,serverPrefetch:dt,components:$s,directives:$s,watch:Uy,provide:dc,inject:Wy};function dc(e,t){return t?e?function(){return Ke(ce(e)?e.call(this,this):e,ce(t)?t.call(this,this):t)}:t:e}function Wy(e,t){return $s(Wi(e),Wi(t))}function Wi(e){if(le(e)){const t={};for(let n=0;n1)return n&&ce(t)?t.call(r&&r.proxy):t}}function Gy(){return!!(Ge||qe||Fr)}const Gh={},qh=()=>Object.create(Gh),Zh=e=>Object.getPrototypeOf(e)===Gh;function qy(e,t,n,r=!1){const s={},o=qh();e.propsDefaults=Object.create(null),Jh(e,t,s,o);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:my(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Zy(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:a}}=e,i=ge(s),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=Xh(f,t,!0);Ke(a,d),h&&i.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return Ie(e)&&r.set(e,Ir),Ir;if(le(o))for(let c=0;ce[0]==="_"||e==="$stable",Jl=e=>le(e)?e.map(Wt):[Wt(e)],Xy=(e,t,n)=>{if(t._n)return t;const r=Ee((...s)=>Jl(t(...s)),n);return r._c=!1,r},ev=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Qh(s))continue;const o=e[s];if(ce(o))t[s]=Xy(s,o,r);else if(o!=null){const a=Jl(o);t[s]=()=>a}}},tv=(e,t)=>{const n=Jl(t);e.slots.default=()=>n},nv=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Qy=(e,t,n)=>{const r=e.slots=qh();if(e.vnode.shapeFlag&32){const s=t._;s?(nv(r,t,n),n&&uh(r,"_",s,!0)):ev(t,r)}else t&&tv(e,t)},eb=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=Me;if(r.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:nv(s,t,n):(o=!t.$stable,ev(t,s)),a=t}else t&&(tv(e,t),a={default:1});if(o)for(const i in s)!Qh(i)&&a[i]==null&&delete s[i]};function zi(e,t,n,r,s=!1){if(le(e)){e.forEach((d,h)=>zi(d,t&&(le(t)?t[h]:t),n,r,s));return}if(xs(r)&&!s)return;const o=r.shapeFlag&4?La(r.component):r.el,a=s?null:o,{i,r:l}=e,u=t&&t.r,c=i.refs===Me?i.refs={}:i.refs,f=i.setupState;if(u!=null&&u!==l&&(Ve(u)?(c[u]=null,De(f,u)&&(f[u]=null)):Se(u)&&(u.value=null)),ce(l))Bn(l,i,12,[a,c]);else{const d=Ve(l),h=Se(l);if(d||h){const v=()=>{if(e.f){const m=d?De(f,l)?f[l]:c[l]:l.value;s?le(m)&&kl(m,o):le(m)?m.includes(o)||m.push(o):d?(c[l]=[o],De(f,l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else d?(c[l]=a,De(f,l)&&(f[l]=a)):h&&(l.value=a,e.k&&(c[e.k]=a))};a?(v.id=-1,gt(v,n)):v()}}}const rv=Symbol("_vte"),tb=e=>e.__isTeleport,As=e=>e&&(e.disabled||e.disabled===""),mc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ki=(e,t)=>{const n=e&&e.to;return Ve(n)?t?t(n):null:n},nb={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,a,i,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:m,createComment:p}}=u,b=As(t.props);let{shapeFlag:S,children:T,dynamicChildren:M}=t;if(e==null){const D=t.el=m(""),C=t.anchor=m("");h(D,n,r),h(C,n,r);const E=t.target=Ki(t.props,v),P=ov(E,t,m,h);E&&(a==="svg"||mc(E)?a="svg":(a==="mathml"||pc(E))&&(a="mathml"));const $=(I,j)=>{S&16&&c(T,I,j,s,o,a,i,l)};b?$(n,C):E&&$(E,P)}else{t.el=e.el,t.targetStart=e.targetStart;const D=t.anchor=e.anchor,C=t.target=e.target,E=t.targetAnchor=e.targetAnchor,P=As(e.props),$=P?n:C,I=P?D:E;if(a==="svg"||mc(C)?a="svg":(a==="mathml"||pc(C))&&(a="mathml"),M?(d(e.dynamicChildren,M,$,s,o,a,i),Xl(e,t,!0)):l||f(e,t,$,I,s,o,a,i,!1),b)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$o(t,n,D,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Ki(t.props,v);j&&$o(t,j,null,u,0)}else P&&$o(t,C,E,u,1)}sv(t)},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:a,children:i,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(s(u),s(c)),o&&s(l),a&16){const h=o||!As(d);for(let v=0;v{if(g===_)return;g&&!tn(g,_)&&(Y=ye(g),Q(g,R,H,!0),g=null),_.patchFlag===-2&&(z=!1,_.dynamicChildren=null);const{type:B,ref:q,shapeFlag:ne}=_;switch(B){case ao:p(g,_,k,Y);break;case st:b(g,_,k,Y);break;case Lo:g==null&&S(_,k,Y,K);break;case be:O(g,_,k,Y,R,H,K,U,z);break;default:ne&1?D(g,_,k,Y,R,H,K,U,z):ne&6?W(g,_,k,Y,R,H,K,U,z):(ne&64||ne&128)&&B.process(g,_,k,Y,R,H,K,U,z,lt)}q!=null&&R&&zi(q,g&&g.ref,H,_||g,!_)},p=(g,_,k,Y)=>{if(g==null)r(_.el=i(_.children),k,Y);else{const R=_.el=g.el;_.children!==g.children&&u(R,_.children)}},b=(g,_,k,Y)=>{g==null?r(_.el=l(_.children||""),k,Y):_.el=g.el},S=(g,_,k,Y)=>{[g.el,g.anchor]=v(g.children,_,k,Y,g.el,g.anchor)},T=({el:g,anchor:_},k,Y)=>{let R;for(;g&&g!==_;)R=d(g),r(g,k,Y),g=R;r(_,k,Y)},M=({el:g,anchor:_})=>{let k;for(;g&&g!==_;)k=d(g),s(g),g=k;s(_)},D=(g,_,k,Y,R,H,K,U,z)=>{_.type==="svg"?K="svg":_.type==="math"&&(K="mathml"),g==null?C(_,k,Y,R,H,K,U,z):$(g,_,R,H,K,U,z)},C=(g,_,k,Y,R,H,K,U)=>{let z,B;const{props:q,shapeFlag:ne,transition:te,dirs:ie}=g;if(z=g.el=a(g.type,H,q&&q.is,q),ne&8?c(z,g.children):ne&16&&P(g.children,z,null,Y,R,vi(g,H),K,U),ie&&Qn(g,null,Y,"created"),E(z,g,g.scopeId,K,Y),q){for(const Ce in q)Ce!=="value"&&!Ms(Ce)&&o(z,Ce,null,q[Ce],H,Y);"value"in q&&o(z,"value",null,q.value,H),(B=q.onVnodeBeforeMount)&&Qt(B,Y,g)}ie&&Qn(g,null,Y,"beforeMount");const de=ab(R,te);de&&te.beforeEnter(z),r(z,_,k),((B=q&&q.onVnodeMounted)||de||ie)&>(()=>{B&&Qt(B,Y,g),de&&te.enter(z),ie&&Qn(g,null,Y,"mounted")},R)},E=(g,_,k,Y,R)=>{if(k&&h(g,k),Y)for(let H=0;H{for(let B=z;B{const U=_.el=g.el;let{patchFlag:z,dynamicChildren:B,dirs:q}=_;z|=g.patchFlag&16;const ne=g.props||Me,te=_.props||Me;let ie;if(k&&er(k,!1),(ie=te.onVnodeBeforeUpdate)&&Qt(ie,k,_,g),q&&Qn(_,g,k,"beforeUpdate"),k&&er(k,!0),(ne.innerHTML&&te.innerHTML==null||ne.textContent&&te.textContent==null)&&c(U,""),B?I(g.dynamicChildren,B,U,k,Y,vi(_,R),H):K||ue(g,_,U,null,k,Y,vi(_,R),H,!1),z>0){if(z&16)j(U,ne,te,k,R);else if(z&2&&ne.class!==te.class&&o(U,"class",null,te.class,R),z&4&&o(U,"style",ne.style,te.style,R),z&8){const de=_.dynamicProps;for(let Ce=0;Ce{ie&&Qt(ie,k,_,g),q&&Qn(_,g,k,"updated")},Y)},I=(g,_,k,Y,R,H,K)=>{for(let U=0;U<_.length;U++){const z=g[U],B=_[U],q=z.el&&(z.type===be||!tn(z,B)||z.shapeFlag&70)?f(z.el):k;m(z,B,q,null,Y,R,H,K,!0)}},j=(g,_,k,Y,R)=>{if(_!==k){if(_!==Me)for(const H in _)!Ms(H)&&!(H in k)&&o(g,H,_[H],null,R,Y);for(const H in k){if(Ms(H))continue;const K=k[H],U=_[H];K!==U&&H!=="value"&&o(g,H,U,K,R,Y)}"value"in k&&o(g,"value",_.value,k.value,R)}},O=(g,_,k,Y,R,H,K,U,z)=>{const B=_.el=g?g.el:i(""),q=_.anchor=g?g.anchor:i("");let{patchFlag:ne,dynamicChildren:te,slotScopeIds:ie}=_;ie&&(U=U?U.concat(ie):ie),g==null?(r(B,k,Y),r(q,k,Y),P(_.children||[],k,q,R,H,K,U,z)):ne>0&&ne&64&&te&&g.dynamicChildren?(I(g.dynamicChildren,te,k,R,H,K,U),(_.key!=null||R&&_===R.subTree)&&Xl(g,_,!0)):ue(g,_,k,q,R,H,K,U,z)},W=(g,_,k,Y,R,H,K,U,z)=>{_.slotScopeIds=U,g==null?_.shapeFlag&512?R.ctx.activate(_,k,Y,K,z):re(_,k,Y,R,H,K,z):X(g,_,z)},re=(g,_,k,Y,R,H,K)=>{const U=g.component=kb(g,Y,R);if(ro(g)&&(U.ctx.renderer=lt),xb(U,!1,K),U.asyncDep){if(R&&R.registerDep(U,ee,K),!g.el){const z=U.subTree=L(st);b(null,z,_,k)}}else ee(U,g,_,k,R,H,K)},X=(g,_,k)=>{const Y=_.component=g.component;if(yb(g,_,k))if(Y.asyncDep&&!Y.asyncResolved){J(Y,_,k);return}else Y.next=_,$y(Y.update),Y.effect.dirty=!0,Y.update();else _.el=g.el,Y.vnode=_},ee=(g,_,k,Y,R,H,K)=>{const U=()=>{if(g.isMounted){let{next:q,bu:ne,u:te,parent:ie,vnode:de}=g;{const Vt=av(g);if(Vt){q&&(q.el=de.el,J(g,q,K)),Vt.asyncDep.then(()=>{g.isUnmounted||U()});return}}let Ce=q,_e;er(g,!1),q?(q.el=de.el,J(g,q,K)):q=de,ne&&li(ne),(_e=q.props&&q.props.onVnodeBeforeUpdate)&&Qt(_e,ie,q,de),er(g,!0);const Be=mi(g),ct=g.subTree;g.subTree=Be,m(ct,Be,f(ct.el),ye(ct),g,R,H),q.el=Be.el,Ce===null&&Ql(g,Be.el),te&>(te,R),(_e=q.props&&q.props.onVnodeUpdated)&>(()=>Qt(_e,ie,q,de),R)}else{let q;const{el:ne,props:te}=_,{bm:ie,m:de,parent:Ce}=g,_e=xs(_);if(er(g,!1),ie&&li(ie),!_e&&(q=te&&te.onVnodeBeforeMount)&&Qt(q,Ce,_),er(g,!0),ne&&ut){const Be=()=>{g.subTree=mi(g),ut(ne,g.subTree,g,R,null)};_e?_.type.__asyncLoader().then(()=>!g.isUnmounted&&Be()):Be()}else{const Be=g.subTree=mi(g);m(null,Be,k,Y,g,R,H),_.el=Be.el}if(de&>(de,R),!_e&&(q=te&&te.onVnodeMounted)){const Be=_;gt(()=>Qt(q,Ce,Be),R)}(_.shapeFlag&256||Ce&&xs(Ce.vnode)&&Ce.vnode.shapeFlag&256)&&g.a&>(g.a,R),g.isMounted=!0,_=k=Y=null}},z=g.effect=new Ll(U,Lt,()=>Oa(B),g.scope),B=g.update=()=>{z.dirty&&z.run()};B.i=g,B.id=g.uid,er(g,!0),B()},J=(g,_,k)=>{_.component=g;const Y=g.vnode.props;g.vnode=_,g.next=null,Zy(g,_.props,Y,k),eb(g,_.children,k),Wn(),lc(g),Un()},ue=(g,_,k,Y,R,H,K,U,z=!1)=>{const B=g&&g.children,q=g?g.shapeFlag:0,ne=_.children,{patchFlag:te,shapeFlag:ie}=_;if(te>0){if(te&128){V(B,ne,k,Y,R,H,K,U,z);return}else if(te&256){we(B,ne,k,Y,R,H,K,U,z);return}}ie&8?(q&16&&Re(B,R,H),ne!==B&&c(k,ne)):q&16?ie&16?V(B,ne,k,Y,R,H,K,U,z):Re(B,R,H,!0):(q&8&&c(k,""),ie&16&&P(ne,k,Y,R,H,K,U,z))},we=(g,_,k,Y,R,H,K,U,z)=>{g=g||Ir,_=_||Ir;const B=g.length,q=_.length,ne=Math.min(B,q);let te;for(te=0;teq?Re(g,R,H,!0,!1,ne):P(_,k,Y,R,H,K,U,z,ne)},V=(g,_,k,Y,R,H,K,U,z)=>{let B=0;const q=_.length;let ne=g.length-1,te=q-1;for(;B<=ne&&B<=te;){const ie=g[B],de=_[B]=z?In(_[B]):Wt(_[B]);if(tn(ie,de))m(ie,de,k,null,R,H,K,U,z);else break;B++}for(;B<=ne&&B<=te;){const ie=g[ne],de=_[te]=z?In(_[te]):Wt(_[te]);if(tn(ie,de))m(ie,de,k,null,R,H,K,U,z);else break;ne--,te--}if(B>ne){if(B<=te){const ie=te+1,de=iete)for(;B<=ne;)Q(g[B],R,H,!0),B++;else{const ie=B,de=B,Ce=new Map;for(B=de;B<=te;B++){const Je=_[B]=z?In(_[B]):Wt(_[B]);Je.key!=null&&Ce.set(Je.key,B)}let _e,Be=0;const ct=te-de+1;let Vt=!1,Jn=0;const fn=new Array(ct);for(B=0;B=ct){Q(Je,R,H,!0);continue}let N;if(Je.key!=null)N=Ce.get(Je.key);else for(_e=de;_e<=te;_e++)if(fn[_e-de]===0&&tn(Je,_[_e])){N=_e;break}N===void 0?Q(Je,R,H,!0):(fn[N-de]=B+1,N>=Jn?Jn=N:Vt=!0,m(Je,_[N],k,null,R,H,K,U,z),Be++)}const Xn=Vt?ib(fn):Ir;for(_e=Xn.length-1,B=ct-1;B>=0;B--){const Je=de+B,N=_[Je],y=Je+1{const{el:H,type:K,transition:U,children:z,shapeFlag:B}=g;if(B&6){fe(g.component.subTree,_,k,Y);return}if(B&128){g.suspense.move(_,k,Y);return}if(B&64){K.move(g,_,k,lt);return}if(K===be){r(H,_,k);for(let ne=0;neU.enter(H),R);else{const{leave:ne,delayLeave:te,afterLeave:ie}=U,de=()=>r(H,_,k),Ce=()=>{ne(H,()=>{de(),ie&&ie()})};te?te(H,de,Ce):Ce()}else r(H,_,k)},Q=(g,_,k,Y=!1,R=!1)=>{const{type:H,props:K,ref:U,children:z,dynamicChildren:B,shapeFlag:q,patchFlag:ne,dirs:te,cacheIndex:ie}=g;if(ne===-2&&(R=!1),U!=null&&zi(U,null,k,g,!0),ie!=null&&(_.renderCache[ie]=void 0),q&256){_.ctx.deactivate(g);return}const de=q&1&&te,Ce=!xs(g);let _e;if(Ce&&(_e=K&&K.onVnodeBeforeUnmount)&&Qt(_e,_,g),q&6)Ye(g.component,k,Y);else{if(q&128){g.suspense.unmount(k,Y);return}de&&Qn(g,null,_,"beforeUnmount"),q&64?g.type.remove(g,_,k,lt,Y):B&&!B.hasOnce&&(H!==be||ne>0&&ne&64)?Re(B,_,k,!1,!0):(H===be&&ne&384||!R&&q&16)&&Re(z,_,k),Y&&Le(g)}(Ce&&(_e=K&&K.onVnodeUnmounted)||de)&>(()=>{_e&&Qt(_e,_,g),de&&Qn(g,null,_,"unmounted")},k)},Le=g=>{const{type:_,el:k,anchor:Y,transition:R}=g;if(_===be){pe(k,Y);return}if(_===Lo){M(g);return}const H=()=>{s(k),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(g.shapeFlag&1&&R&&!R.persisted){const{leave:K,delayLeave:U}=R,z=()=>K(k,H);U?U(g.el,H,z):z()}else H()},pe=(g,_)=>{let k;for(;g!==_;)k=d(g),s(g),g=k;s(_)},Ye=(g,_,k)=>{const{bum:Y,scope:R,update:H,subTree:K,um:U,m:z,a:B}=g;gc(z),gc(B),Y&&li(Y),R.stop(),H&&(H.active=!1,Q(K,g,_,k)),U&>(U,_),gt(()=>{g.isUnmounted=!0},_),_&&_.pendingBranch&&!_.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===_.pendingId&&(_.deps--,_.deps===0&&_.resolve())},Re=(g,_,k,Y=!1,R=!1,H=0)=>{for(let K=H;K{if(g.shapeFlag&6)return ye(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const _=d(g.anchor||g.el),k=_&&_[rv];return k?d(k):_};let ze=!1;const tt=(g,_,k)=>{g==null?_._vnode&&Q(_._vnode,null,null,!0):m(_._vnode||null,g,_,null,null,null,k),ze||(ze=!0,lc(),Lh(),ze=!1),_._vnode=g},lt={p:m,um:Q,m:fe,r:Le,mt:re,mc:P,pc:ue,pbc:I,n:ye,o:e};let mt,ut;return{render:tt,hydrate:mt,createApp:Ky(tt,mt)}}function vi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function er({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ab(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xl(e,t,n=!1){const r=e.children,s=t.children;if(le(r)&&le(s))for(let o=0;o>1,e[n[i]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function av(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:av(t)}function gc(e){if(e)for(let t=0;tPe(lb);function zn(e,t){return oo(e,null,t)}function cb(e,t){return oo(e,null,{flush:"post"})}function fb(e,t){return oo(e,null,{flush:"sync"})}const To={};function Te(e,t,n){return oo(e,t,n)}function oo(e,t,{immediate:n,deep:r,flush:s,once:o,onTrack:a,onTrigger:i}=Me){if(t&&o){const C=t;t=(...E)=>{C(...E),D()}}const l=Ge,u=C=>r===!0?C:Ln(C,r===!1?1:void 0);let c,f=!1,d=!1;if(Se(e)?(c=()=>e.value,f=Wr(e)):Yn(e)?(c=()=>u(e),f=!0):le(e)?(d=!0,f=e.some(C=>Yn(C)||Wr(C)),c=()=>e.map(C=>{if(Se(C))return C.value;if(Yn(C))return u(C);if(ce(C))return Bn(C,l,2)})):ce(e)?t?c=()=>Bn(e,l,2):c=()=>(h&&h(),Nt(e,l,3,[v])):c=Lt,t&&r){const C=c;c=()=>Ln(C())}let h,v=C=>{h=T.onStop=()=>{Bn(C,l,4),h=T.onStop=void 0}},m;if(io)if(v=Lt,t?n&&Nt(t,l,3,[c(),d?[]:void 0,v]):c(),s==="sync"){const C=ub();m=C.__watcherHandles||(C.__watcherHandles=[])}else return Lt;let p=d?new Array(e.length).fill(To):To;const b=()=>{if(!(!T.active||!T.dirty))if(t){const C=T.run();(r||f||(d?C.some((E,P)=>yt(E,p[P])):yt(C,p)))&&(h&&h(),Nt(t,l,3,[C,p===To?void 0:d&&p[0]===To?[]:p,v]),p=C)}else T.run()};b.allowRecurse=!!t;let S;s==="sync"?S=b:s==="post"?S=()=>gt(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),S=()=>Oa(b));const T=new Ll(c,Lt,S),M=ph(),D=()=>{T.stop(),M&&kl(M.effects,T)};return t?n?b():p=T.run():s==="post"?gt(T.run.bind(T),l&&l.suspense):T.run(),m&&m.push(D),D}function db(e,t,n){const r=this.proxy,s=Ve(e)?e.includes(".")?iv(r,e):()=>r[e]:e.bind(r,r);let o;ce(t)?o=t:(o=t.handler,n=t);const a=vr(this),i=oo(s,o.bind(r),n);return a(),i}function iv(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{Ln(r,t,n)});else if(lh(e)){for(const r in e)Ln(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ln(e[r],t,n)}return e}function hb(e,t,n=Me){const r=os(),s=kt(t),o=_n(t),a=lv(e,t),i=wy((l,u)=>{let c,f=Me,d;return fb(()=>{const h=e[t];yt(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){if(!yt(h,c)&&!(f!==Me&&yt(h,f)))return;const v=r.vnode.props;v&&(t in v||s in v||o in v)&&(`onUpdate:${t}`in v||`onUpdate:${s}`in v||`onUpdate:${o}`in v)||(c=h,u());const m=n.set?n.set(h):h;r.emit(`update:${t}`,m),yt(h,m)&&yt(h,f)&&!yt(m,d)&&u(),f=h,d=m}}});return i[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Me:i,done:!1}:{done:!0}}}},i}const lv=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${kt(t)}Modifiers`]||e[`${_n(t)}Modifiers`];function vb(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Me;let s=n;const o=t.startsWith("update:"),a=o&&lv(r,t.slice(7));a&&(a.trim&&(s=n.map(c=>Ve(c)?c.trim():c)),a.number&&(s=n.map(Hg)));let i,l=r[i=Io(t)]||r[i=Io(kt(t))];!l&&o&&(l=r[i=Io(_n(t))]),l&&Nt(l,e,6,s);const u=r[i+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Nt(u,e,6,s)}}function uv(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let a={},i=!1;if(!ce(e)){const l=u=>{const c=uv(u,t,!0);c&&(i=!0,Ke(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(Ie(e)&&r.set(e,null),null):(le(o)?o.forEach(l=>a[l]=null):Ke(a,o),Ie(e)&&r.set(e,a),a)}function Aa(e,t){return!e||!Ca(t)?!1:(t=t.slice(2).replace(/Once$/,""),De(e,t[0].toLowerCase()+t.slice(1))||De(e,_n(t))||De(e,t))}function mi(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:a,attrs:i,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:v,inheritAttrs:m}=e,p=qo(e);let b,S;try{if(n.shapeFlag&4){const M=s||r,D=M;b=Wt(u.call(D,M,c,f,h,d,v)),S=i}else{const M=t;b=Wt(M.length>1?M(f,{attrs:i,slots:a,emit:l}):M(f,null)),S=t.props?i:pb(i)}}catch(M){Is.length=0,rs(M,e,1),b=L(st)}let T=b;if(S&&m!==!1){const M=Object.keys(S),{shapeFlag:D}=T;M.length&&D&7&&(o&&M.some(Ml)&&(S=gb(S,o)),T=Hn(T,S,!1,!0))}return n.dirs&&(T=Hn(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(T.transition=n.transition),b=T,qo(p),b}function mb(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||Ca(n))&&((t||(t={}))[n]=e[n]);return t},gb=(e,t)=>{const n={};for(const r in e)(!Ml(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function yb(e,t,n){const{props:r,children:s,component:o}=e,{props:a,children:i,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?yc(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let Gi=0;const wb={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,a,i,l,u){if(e==null)_b(t,n,r,s,o,a,i,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Db(e,t,n,r,s,a,i,l,u)}},hydrate:Cb,normalize:Sb},Ia=wb;function Vs(e,t){const n=e.props&&e.props[t];ce(n)&&n()}function _b(e,t,n,r,s,o,a,i,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=cv(e,s,r,t,f,n,o,a,i,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,a),d.deps>0?(Vs(e,"onPending"),Vs(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),Yr(d,e.ssFallback)):d.resolve(!1,!0)}function Db(e,t,n,r,s,o,a,i,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:v,pendingBranch:m,isInFallback:p,isHydrating:b}=f;if(m)f.pendingBranch=d,tn(d,m)?(l(m,d,f.hiddenContainer,null,s,f,o,a,i),f.deps<=0?f.resolve():p&&(b||(l(v,h,n,r,s,null,o,a,i),Yr(f,h)))):(f.pendingId=Gi++,b?(f.isHydrating=!1,f.activeBranch=m):u(m,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),p?(l(null,d,f.hiddenContainer,null,s,f,o,a,i),f.deps<=0?f.resolve():(l(v,h,n,r,s,null,o,a,i),Yr(f,h))):v&&tn(d,v)?(l(v,d,n,r,s,f,o,a,i),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,s,f,o,a,i),f.deps<=0&&f.resolve()));else if(v&&tn(d,v))l(v,d,n,r,s,f,o,a,i),Yr(f,d);else if(Vs(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Gi++,l(null,d,f.hiddenContainer,null,s,f,o,a,i),f.deps<=0)f.resolve();else{const{timeout:S,pendingId:T}=f;S>0?setTimeout(()=>{f.pendingId===T&&f.fallback(h)},S):S===0&&f.fallback(h)}}function cv(e,t,n,r,s,o,a,i,l,u,c=!1){const{p:f,m:d,um:h,n:v,o:{parentNode:m,remove:p}}=u;let b;const S=Tb(e);S&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const T=e.props?ch(e.props.timeout):void 0,M=o,D={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:s,deps:0,pendingId:Gi++,timeout:typeof T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(C=!1,E=!1){const{vnode:P,activeBranch:$,pendingBranch:I,pendingId:j,effects:O,parentComponent:W,container:re}=D;let X=!1;D.isHydrating?D.isHydrating=!1:C||(X=$&&I.transition&&I.transition.mode==="out-in",X&&($.transition.afterLeave=()=>{j===D.pendingId&&(d(I,re,o===M?v($):o,0),Hi(O))}),$&&(m($.el)!==D.hiddenContainer&&(o=v($)),h($,W,D,!0)),X||d(I,re,o,0)),Yr(D,I),D.pendingBranch=null,D.isInFallback=!1;let ee=D.parent,J=!1;for(;ee;){if(ee.pendingBranch){ee.effects.push(...O),J=!0;break}ee=ee.parent}!J&&!X&&Hi(O),D.effects=[],S&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Vs(P,"onResolve")},fallback(C){if(!D.pendingBranch)return;const{vnode:E,activeBranch:P,parentComponent:$,container:I,namespace:j}=D;Vs(E,"onFallback");const O=v(P),W=()=>{D.isInFallback&&(f(null,C,I,O,$,null,j,i,l),Yr(D,C))},re=C.transition&&C.transition.mode==="out-in";re&&(P.transition.afterLeave=W),D.isInFallback=!0,h(P,$,null,!0),re||W()},move(C,E,P){D.activeBranch&&d(D.activeBranch,C,E,P),D.container=C},next(){return D.activeBranch&&v(D.activeBranch)},registerDep(C,E,P){const $=!!D.pendingBranch;$&&D.deps++;const I=C.vnode.el;C.asyncDep.catch(j=>{rs(j,C,0)}).then(j=>{if(C.isUnmounted||D.isUnmounted||D.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:O}=C;Ji(C,j,!1),I&&(O.el=I);const W=!I&&C.subTree.el;E(C,O,m(I||C.subTree.el),I?null:v(C.subTree),D,a,P),W&&p(W),Ql(C,O.el),$&&--D.deps===0&&D.resolve()})},unmount(C,E){D.isUnmounted=!0,D.activeBranch&&h(D.activeBranch,n,C,E),D.pendingBranch&&h(D.pendingBranch,n,C,E)}};return D}function Cb(e,t,n,r,s,o,a,i,l){const u=t.suspense=cv(t,r,n,e.parentNode,document.createElement("div"),null,s,o,a,i,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,a);return u.deps===0&&u.resolve(!1,!0),c}function Sb(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=bc(r?n.default:n),e.ssFallback=r?bc(n.fallback):L(st)}function bc(e){let t;if(ce(e)){const n=zr&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=bt,fv())}return le(e)&&(e=mb(e)),e=Wt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function $b(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):Hi(e)}function Yr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Ql(r,s))}function Tb(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const be=Symbol.for("v-fgt"),ao=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),Lo=Symbol.for("v-stc"),Is=[];let bt=null;function G(e=!1){Is.push(bt=e?null:[])}function fv(){Is.pop(),bt=Is[Is.length-1]||null}let zr=1;function wc(e){zr+=e,e<0&&bt&&(bt.hasOnce=!0)}function dv(e){return e.dynamicChildren=zr>0?bt||Ir:null,fv(),zr>0&&bt&&bt.push(e),e}function ae(e,t,n,r,s,o){return dv(me(e,t,n,r,s,o,!0))}function Ae(e,t,n,r,s){return dv(L(e,t,n,r,s,!0))}function Ws(e){return e?e.__v_isVNode===!0:!1}function tn(e,t){return e.type===t.type&&e.key===t.key}const hv=({key:e})=>e??null,Ro=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||Se(e)||ce(e)?{i:qe,r:e,k:t,f:!!n}:e:null);function me(e,t=null,n=null,r=0,s=null,o=e===be?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hv(t),ref:t&&Ro(t),scopeId:Ma,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:qe};return i?(eu(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Ve(n)?8:16),zr>0&&!a&&bt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&bt.push(l),l}const L=Eb;function Eb(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Wh)&&(e=st),Ws(e)){const i=Hn(e,t,!0);return n&&eu(i,n),zr>0&&!o&&bt&&(i.shapeFlag&6?bt[bt.indexOf(e)]=i:bt.push(i)),i.patchFlag=-2,i}if(Rb(e)&&(e=e.__vccOpts),t){t=Xo(t);let{class:i,style:l}=t;i&&!Ve(i)&&(t.class=xe(i)),Ie(l)&&(Oh(l)&&!le(l)&&(l=Ke({},l)),t.style=pn(l))}const a=Ve(e)?1:bb(e)?128:tb(e)?64:Ie(e)?4:ce(e)?2:0;return me(e,t,n,r,s,a,o,!0)}function Xo(e){return e?Oh(e)||Zh(e)?Ke({},e):e:null}function Hn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:i,transition:l}=e,u=t?qt(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&hv(u),ref:t&&t.ref?n&&o?le(o)?o.concat(Ro(t)):[o,Ro(t)]:Ro(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Hn(e.ssContent),ssFallback:e.ssFallback&&Hn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ur(c,l.clone(c)),c}function Kr(e=" ",t=0){return L(ao,null,e,t)}function We(e="",t=!1){return t?(G(),Ae(st,null,e)):L(st,null,e)}function Wt(e){return e==null||typeof e=="boolean"?L(st):le(e)?L(be,null,e.slice()):typeof e=="object"?In(e):L(ao,null,String(e))}function In(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Hn(e)}function eu(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(le(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),eu(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Zh(t)?t._ctx=qe:s===3&&qe&&(qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ce(t)?(t={default:t,_ctx:qe},n=32):(t=String(t),r&64?(n=16,t=[Kr(t)]):n=8);e.children=t,e.shapeFlag|=n}function qt(...e){const t={};for(let n=0;nGe||qe;let Qo,qi;{const e=fh(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(a=>a(o)):s[0](o)}};Qo=t("__VUE_INSTANCE_SETTERS__",n=>Ge=n),qi=t("__VUE_SSR_SETTERS__",n=>io=n)}const vr=e=>{const t=Ge;return Qo(e),e.scope.on(),()=>{e.scope.off(),Qo(t)}},Zi=()=>{Ge&&Ge.scope.off(),Qo(null)};function vv(e){return e.vnode.shapeFlag&4}let io=!1;function xb(e,t=!1,n=!1){t&&qi(t);const{props:r,children:s}=e.vnode,o=vv(e);qy(e,r,o,t),Qy(e,s,n);const a=o?Pb(e,t):void 0;return t&&qi(!1),a}function Pb(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,By);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Ib(e):null,o=vr(e);Wn();const a=Bn(r,e,0,[e.props,s]);if(Un(),o(),xl(a)){if(a.then(Zi,Zi),t)return a.then(i=>{Ji(e,i,t)}).catch(i=>{rs(i,e,0)});e.asyncDep=a}else Ji(e,a,t)}else mv(e,t)}function Ji(e,t,n){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)&&(e.setupState=xh(t)),mv(e,n)}let _c;function mv(e,t,n){const r=e.type;if(!e.render){if(!t&&_c&&!r.render){const s=r.template||Zl(e).template;if(s){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:i,compilerOptions:l}=r,u=Ke(Ke({isCustomElement:o,delimiters:i},a),l);r.render=_c(s,u)}}e.render=r.render||Lt}{const s=vr(e);Wn();try{Hy(e)}finally{Un(),s()}}}const Ab={get(e,t){return Ct(e,"get",""),e[t]}};function Ib(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ab),slots:e.slots,emit:e.emit,expose:t}}function La(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(xh(Hl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ps)return Ps[n](e)},has(t,n){return n in t||n in Ps}})):e.proxy}function Lb(e,t=!0){return ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Rb(e){return ce(e)&&"__vccOpts"in e}const w=(e,t)=>py(e,t,io);function lo(e,t,n){const r=arguments.length;return r===2?Ie(t)&&!le(t)?Ws(t)?L(e,null,[t]):L(e,t):L(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ws(n)&&(n=[n]),L(e,t,n))}const Nb="3.4.35";/** -* @vue/runtime-dom v3.4.35 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const Fb="http://www.w3.org/2000/svg",Yb="http://www.w3.org/1998/Math/MathML",hn=typeof document<"u"?document:null,Dc=hn&&hn.createElement("template"),Bb={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?hn.createElementNS(Fb,e):t==="mathml"?hn.createElementNS(Yb,e):n?hn.createElement(e,{is:n}):hn.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>hn.createTextNode(e),createComment:e=>hn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const a=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Dc.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const i=Dc.content;if(r==="svg"||r==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},En="transition",ys="animation",Gr=Symbol("_vtc"),uo=(e,{slots:t})=>lo(ky,gv(e),t);uo.displayName="Transition";const pv={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},Hb=uo.props=Ke({},Fh,pv),tr=(e,t=[])=>{le(e)?e.forEach(n=>n(...t)):e&&e(...t)},Cc=e=>e?le(e)?e.some(t=>t.length>1):e.length>1:!1;function gv(e){const t={};for(const O in e)O in pv||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=jb(s),m=v&&v[0],p=v&&v[1],{onBeforeEnter:b,onEnter:S,onEnterCancelled:T,onLeave:M,onLeaveCancelled:D,onBeforeAppear:C=b,onAppear:E=S,onAppearCancelled:P=T}=t,$=(O,W,re)=>{kn(O,W?c:i),kn(O,W?u:a),re&&re()},I=(O,W)=>{O._isLeaving=!1,kn(O,f),kn(O,h),kn(O,d),W&&W()},j=O=>(W,re)=>{const X=O?E:S,ee=()=>$(W,O,re);tr(X,[W,ee]),Sc(()=>{kn(W,O?l:o),dn(W,O?c:i),Cc(X)||$c(W,r,m,ee)})};return Ke(t,{onBeforeEnter(O){tr(b,[O]),dn(O,o),dn(O,a)},onBeforeAppear(O){tr(C,[O]),dn(O,l),dn(O,u)},onEnter:j(!1),onAppear:j(!0),onLeave(O,W){O._isLeaving=!0;const re=()=>I(O,W);dn(O,f),dn(O,d),bv(),Sc(()=>{O._isLeaving&&(kn(O,f),dn(O,h),Cc(M)||$c(O,r,p,re))}),tr(M,[O,re])},onEnterCancelled(O){$(O,!1),tr(T,[O])},onAppearCancelled(O){$(O,!0),tr(P,[O])},onLeaveCancelled(O){I(O),tr(D,[O])}})}function jb(e){if(e==null)return null;if(Ie(e))return[pi(e.enter),pi(e.leave)];{const t=pi(e);return[t,t]}}function pi(e){return ch(e)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Gr]||(e[Gr]=new Set)).add(t)}function kn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Gr];n&&(n.delete(t),n.size||(e[Gr]=void 0))}function Sc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Vb=0;function $c(e,t,n,r){const s=e._endId=++Vb,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:i,propCount:l}=yv(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[v]||"").split(", "),s=r(`${En}Delay`),o=r(`${En}Duration`),a=Tc(s,o),i=r(`${ys}Delay`),l=r(`${ys}Duration`),u=Tc(i,l);let c=null,f=0,d=0;t===En?a>0&&(c=En,f=a,d=o.length):t===ys?u>0&&(c=ys,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?En:ys:null,d=c?c===En?o.length:l.length:0);const h=c===En&&/\b(transform|all)(,|$)/.test(r(`${En}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function Tc(e,t){for(;e.lengthEc(n)+Ec(e[r])))}function Ec(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bv(){return document.body.offsetHeight}function Wb(e,t,n){const r=e[Gr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ea=Symbol("_vod"),wv=Symbol("_vsh"),_Y={beforeMount(e,{value:t},{transition:n}){e[ea]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):bs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),bs(e,!0),r.enter(e)):r.leave(e,()=>{bs(e,!1)}):bs(e,t))},beforeUnmount(e,{value:t}){bs(e,t)}};function bs(e,t){e.style.display=t?e[ea]:"none",e[wv]=!t}const _v=Symbol("");function Ub(e){const t=os();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Qi(o,s))},r=()=>{const s=e(t.proxy);Xi(t.subTree,s),n(s)};Gt(()=>{cb(r);const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),ss(()=>s.disconnect())})}function Xi(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Xi(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Qi(e.el,t);else if(e.type===be)e.children.forEach(n=>Xi(n,t));else if(e.type===Lo){let{el:n,anchor:r}=e;for(;n&&(Qi(n,t),n!==r);)n=n.nextSibling}}function Qi(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t)n.setProperty(`--${s}`,t[s]),r+=`--${s}: ${t[s]};`;n[_v]=r}}const zb=/(^|;)\s*display\s*:/;function Kb(e,t,n){const r=e.style,s=Ve(n);let o=!1;if(n&&!s){if(t)if(Ve(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();n[i]==null&&No(r,i,"")}else for(const a in t)n[a]==null&&No(r,a,"");for(const a in n)a==="display"&&(o=!0),No(r,a,n[a])}else if(s){if(t!==n){const a=r[_v];a&&(n+=";"+a),r.cssText=n,o=zb.test(n)}}else t&&e.removeAttribute("style");ea in e&&(e[ea]=o?r.display:"",e[wv]&&(r.display="none"))}const Oc=/\s*!important$/;function No(e,t,n){if(le(n))n.forEach(r=>No(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Gb(e,t);Oc.test(n)?e.setProperty(_n(r),n.replace(Oc,""),"important"):e[r]=n}}const Mc=["Webkit","Moz","ms"],gi={};function Gb(e,t){const n=gi[t];if(n)return n;let r=kt(t);if(r!=="filter"&&r in e)return gi[t]=r;r=Dn(r);for(let s=0;syi||(e0.then(()=>yi=0),yi=Date.now());function n0(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Nt(r0(r,n.value),t,5,[r])};return n.value=e,n.attached=t0(),n}function r0(e,t){if(le(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Ic=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,s0=(e,t,n,r,s,o)=>{const a=s==="svg";t==="class"?Wb(e,r,a):t==="style"?Kb(e,n,r):Ca(t)?Ml(t)||Xb(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):o0(e,t,r,a))?(qb(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&xc(e,t,r,a,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),xc(e,t,r,a))};function o0(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ic(t)&&ce(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Ic(t)&&Ve(n)?!1:t in e}const Dv=new WeakMap,Cv=new WeakMap,ta=Symbol("_moveCb"),Lc=Symbol("_enterCb"),Sv={name:"TransitionGroup",props:Ke({},Hb,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=os(),r=Nh();let s,o;return Kl(()=>{if(!s.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!c0(s[0].el,n.vnode.el,a))return;s.forEach(i0),s.forEach(l0);const i=s.filter(u0);bv(),i.forEach(l=>{const u=l.el,c=u.style;dn(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[ta]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[ta]=null,kn(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=ge(e),i=gv(a);let l=a.tag||be;if(s=[],o)for(let u=0;udelete e.mode;Sv.props;const DY=Sv;function i0(e){const t=e.el;t[ta]&&t[ta](),t[Lc]&&t[Lc]()}function l0(e){Cv.set(e,e.el.getBoundingClientRect())}function u0(e){const t=Dv.get(e),n=Cv.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function c0(e,t,n){const r=e.cloneNode(),s=e[Gr];s&&s.forEach(i=>{i.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=yv(r);return o.removeChild(r),a}const f0=["ctrl","shift","alt","meta"],d0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>f0.some(n=>e[`${n}Key`]&&!t.includes(n))},h0=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=_n(s.key);if(t.some(a=>a===o||v0[a]===o))return e(s)})},m0=Ke({patchProp:s0},Bb);let Nc;function $v(){return Nc||(Nc=sb(m0))}const CY=(...e)=>{$v().render(...e)},p0=(...e)=>{const t=$v().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=y0(r);if(!s)return;const o=t._component;!ce(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const a=n(s,!1,g0(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t};function g0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function y0(e){return Ve(e)?document.querySelector(e):e}function b0(e,t){let n;function r(){n=Al(),n.run(()=>t.length?t(()=>{n?.stop(),r()}):t())}Te(e,s=>{s&&!n?r():s||(n?.stop(),n=void 0)},{immediate:!0}),Il(()=>{n?.stop()})}const ot=typeof window<"u",w0=ot&&"IntersectionObserver"in window,_0=ot&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function D0(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;stu(e[r],t[r]))}function Fc(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),D0(e,t.split("."),n))}function Tv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function Fe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function el(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ev(e){if(e&&"$el"in e){const t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}const Yc=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function SY(e){return Object.keys(e)}function bi(e,t){return t.every(n=>e.hasOwnProperty(n))}function C0(e,t){const n={},r=new Set(Object.keys(e));for(const s of t)r.has(s)&&(n[s]=e[s]);return n}function $Y(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const S0=/^on[^a-z]/,TY=e=>S0.test(e);function $0(e){return e==null?[]:Array.isArray(e)?e:[e]}function na(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function Bc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function Hc(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function T0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const o=e[s],a=t[s];if(el(o)&&el(a)){r[s]=at(o,a,n);continue}if(Array.isArray(o)&&Array.isArray(a)&&n){r[s]=n(o,a);continue}r[s]=a}return r}function Ov(e){return e.map(t=>t.type===be?Ov(t.children):t).flat()}function cr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(cr.cache.has(e))return cr.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return cr.cache.set(e,t),t}cr.cache=new Map;function xr(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>xr(e,n)).flat(1);if(t.suspense)return xr(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>xr(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return xr(e,t.component.subTree).flat(1)}return[]}function Mv(e){const t=je({}),n=w(e);return zn(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),no(t)}function ra(e,t){return e.includes(t)}function EY(e){return e[2].toLowerCase()+e.slice(3)}function jc(e,t){return t="on"+Dn(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function OY(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(r=>`${r}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function MY(e,t){if(!(ot&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function kY(e,t){if(!ot||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function Vc(e,t){const n=Ut();return zn(()=>{n.value=e()},{flush:"sync",...t}),Ea(n)}function E0(){const e=Ut(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Ev(e.value)}),t}const kv=["top","bottom"],O0=["start","end","left","right"];function M0(e,t){let[n,r]=e.split(" ");return r||(r=ra(kv,n)?"start":ra(O0,n)?"top":"center"),{side:Wc(n,t),align:Wc(r,t)}}function Wc(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function xY(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function PY(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function AY(e){return{side:e.align,align:e.side}}function IY(e){return ra(kv,e.side)?"y":"x"}const Er=2.4,Uc=.2126729,zc=.7151522,Kc=.072175,k0=.55,x0=.58,P0=.57,A0=.62,Eo=.03,Gc=1.45,I0=5e-4,L0=1.25,R0=1.25,qc=.078,Zc=12.82051282051282,Oo=.06,Jc=.001;function Xc(e,t){const n=(e.r/255)**Er,r=(e.g/255)**Er,s=(e.b/255)**Er,o=(t.r/255)**Er,a=(t.g/255)**Er,i=(t.b/255)**Er;let l=n*Uc+r*zc+s*Kc,u=o*Uc+a*zc+i*Kc;if(l<=Eo&&(l+=(Eo-l)**Gc),u<=Eo&&(u+=(Eo-u)**Gc),Math.abs(u-l)l){const f=(u**k0-l**x0)*L0;c=f-Jc?0:f>-qc?f-f*Zc*Oo:f+Oo}return c*100}const sa=.20689655172413793,N0=e=>e>sa**3?Math.cbrt(e):e/(3*sa**2)+4/29,F0=e=>e>sa?e**3:3*sa**2*(e-4/29);function xv(e){const t=N0,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function Pv(e){const t=F0,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const Y0=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],B0=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,H0=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],j0=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Av(e){const t=Array(3),n=B0,r=Y0;for(let s=0;s<3;++s)t[s]=Math.round(na(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function nu(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],o=j0,a=H0;t=o(t/255),n=o(n/255),r=o(r/255);for(let i=0;i<3;++i)s[i]=a[i][0]*t+a[i][1]*n+a[i][2]*r;return s}function tl(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function V0(e){return tl(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Qc=/^(?(?:rgb|hsl)a?)\((?.+)\)/,W0={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>ef({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>ef({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>Us({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>Us({h:e,s:t,v:n,a:r})};function nn(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Qc.test(e)){const{groups:t}=e.match(Qc),{fn:n,values:r}=t,s=r.split(/,\s*/).map(o=>o.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(o)/100:parseFloat(o));return W0[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),z0(t)}else if(typeof e=="object"){if(bi(e,["r","g","b"]))return e;if(bi(e,["h","s","l"]))return Us(Iv(e));if(bi(e,["h","s","v"]))return Us(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} -Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Us(e){const{h:t,s:n,v:r,a:s}=e,o=i=>{const l=(i+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},a=[o(5),o(3),o(1)].map(i=>Math.round(i*255));return{r:a[0],g:a[1],b:a[2],a:s}}function ef(e){return Us(Iv(e))}function Iv(e){const{h:t,s:n,l:r,a:s}=e,o=r+n*Math.min(r,1-r),a=o===0?0:2-2*r/o;return{h:t,s:a,v:o,a:s}}function Mo(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function U0(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Mo(t),Mo(n),Mo(r),s!==void 0?Mo(Math.round(s*255)):""].join("")}`}function z0(e){e=K0(e);let[t,n,r,s]=T0(e,2).map(o=>parseInt(o,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function K0(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=Bc(Bc(e,6),8,"F")),e}function G0(e,t){const n=xv(nu(e));return n[0]=n[0]+t*10,Av(Pv(n))}function q0(e,t){const n=xv(nu(e));return n[0]=n[0]-t*10,Av(Pv(n))}function Z0(e){const t=nn(e);return nu(t)[1]}function Lv(e){const t=Math.abs(Xc(nn(0),nn(e)));return Math.abs(Xc(nn(16777215),nn(e)))>Math.min(t,50)?"#fff":"#000"}function $e(e,t){return n=>Object.keys(e).reduce((r,s)=>{const a=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...a,default:n[s]}:r[s]=a,t&&!r[s].source&&(r[s].source=t),r},{})}const ln=$e({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function St(e,t){const n=os();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Kn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=St(e).type;return cr(t?.aliasName||t?.name)}let Rv=0,Fo=new WeakMap;function Ra(){const e=St("getUid");if(Fo.has(e))return Fo.get(e);{const t=Rv++;return Fo.set(e,t),t}}Ra.reset=()=>{Rv=0,Fo=new WeakMap};function J0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const qr=Symbol.for("vuetify:defaults");function X0(e){return oe(e)}function ru(){const e=Pe(qr);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Nv(e,t){const n=ru(),r=oe(e),s=w(()=>{if(A(t?.disabled))return n.value;const a=A(t?.scoped),i=A(t?.reset),l=A(t?.root);if(r.value==null&&!(a||i||l))return n.value;let u=at(r.value,{prev:n.value});if(a)return u;if(i||l){const c=Number(i||1/0);for(let f=0;f<=c&&!(!u||!("prev"in u));f++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=at(at(u,{prev:u}),u[l])),u}return u.prev?at(u.prev,u):u});return Pt(qr,s),s}function Q0(e,t){return typeof e.props?.[t]<"u"||typeof e.props?.[cr(t)]<"u"}function e1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ru();const r=St("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=w(()=>n.value?.[e._as??t]),o=new Proxy(e,{get(l,u){const c=Reflect.get(l,u);return u==="class"||u==="style"?[s.value?.[u],c].filter(f=>f!=null):typeof u=="string"&&!Q0(r.vnode,u)?s.value?.[u]!==void 0?s.value?.[u]:n.value?.global?.[u]!==void 0?n.value?.global?.[u]:c:c}}),a=Ut();zn(()=>{if(s.value){const l=Object.entries(s.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});a.value=l.length?Object.fromEntries(l):void 0}else a.value=void 0});function i(){const l=J0(qr,r);Pt(qr,w(()=>a.value?at(l?.value??{},a.value):l?.value))}return{props:o,provideSubDefaults:i}}function co(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=$e(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return C0(r,t)},e.props._as=String,e.setup=function(r,s){const o=ru();if(!o.value)return e._setup(r,s);const{props:a,provideSubDefaults:i}=e1(r,r._as??e.name,o),l=e._setup(a,s);return i(),l}}return e}function At(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?co:Ze)(t)}function t1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return At()({name:n??Dn(kt(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...ln()},setup(r,s){let{slots:o}=s;return()=>lo(r.tag,{class:[e,r.class],style:r.style},o.default?.())}})}function br(e){const t=St("useRender");t.render=e}function Na(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f=>f,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f=>f;const o=St("useProxiedModel"),a=oe(e[t]!==void 0?e[t]:n),i=cr(t),u=w(i!==t?()=>(e[t],!!((o.vnode.props?.hasOwnProperty(t)||o.vnode.props?.hasOwnProperty(i))&&(o.vnode.props?.hasOwnProperty(`onUpdate:${t}`)||o.vnode.props?.hasOwnProperty(`onUpdate:${i}`)))):()=>(e[t],!!(o.vnode.props?.hasOwnProperty(t)&&o.vnode.props?.hasOwnProperty(`onUpdate:${t}`))));b0(()=>!u.value,()=>{Te(()=>e[t],f=>{a.value=f})});const c=w({get(){const f=e[t];return r(u.value?f:a.value)},set(f){const d=s(f),h=ge(u.value?e[t]:a.value);h===d||r(h)===f||(a.value=d,o?.emit(`update:${t}`,d))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:a.value}),c}const n1={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},tf="$vuetify.",nf=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[+r])),Fv=(e,t,n)=>function(r){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;anew Intl.NumberFormat([e.value,t.value],r).format(n)}function wi(e,t,n){const r=Na(e,t,e[t]??n.value);return r.value=e[t]??n.value,Te(n,s=>{e[t]==null&&(r.value=n.value)}),r}function Bv(e){return t=>{const n=wi(t,"locale",e.current),r=wi(t,"fallback",e.fallback),s=wi(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,t:Fv(n,r,s),n:Yv(n,r),provide:Bv({current:n,fallback:r,messages:s})}}}function r1(e){const t=Ut(e?.locale??"en"),n=Ut(e?.fallback??"en"),r=oe({en:n1,...e?.messages});return{name:"vuetify",current:t,fallback:n,messages:r,t:Fv(t,n,r),n:Yv(t,n),provide:Bv({current:t,fallback:n,messages:r})}}const oa=Symbol.for("vuetify:locale");function s1(e){return e.name!=null}function o1(e){const t=e?.adapter&&s1(e?.adapter)?e?.adapter:r1(e),n=l1(t,e);return{...t,...n}}function a1(){const e=Pe(oa);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function i1(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function l1(e,t){const n=oe(t?.rtl??i1()),r=w(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:w(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Fa(){const e=Pe(oa);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const Ya={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function u1(e,t,n){const r=[];let s=[];const o=Hv(e),a=jv(e),i=n??Ya[t.slice(-2).toUpperCase()]??0,l=(o.getDay()-i+7)%7,u=(a.getDay()-i+7)%7;for(let c=0;c0&&r.push(s),r}function c1(e,t,n){const r=n??Ya[t.slice(-2).toUpperCase()]??0,s=new Date(e);for(;s.getDay()!==r;)s.setDate(s.getDate()-1);return s}function f1(e,t){const n=new Date(e),r=((Ya[t.slice(-2).toUpperCase()]??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function Hv(e){return new Date(e.getFullYear(),e.getMonth(),1)}function jv(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function d1(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const h1=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function Vv(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(h1.test(e))return d1(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const rf=new Date(2e3,0,2);function v1(e,t){const n=t??Ya[e.slice(-2).toUpperCase()]??0;return Tv(7).map(r=>{const s=new Date(rf);return s.setDate(rf.getDate()+n+r),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(s)})}function m1(e,t,n,r){const s=Vv(e)??new Date,o=r?.[t];if(typeof o=="function")return o(s,t,n);let a={};switch(t){case"fullDate":a={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":a={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const i=s.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${i} ${l}`;case"normalDateWithWeekday":a={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":a={month:"short",day:"numeric"};break;case"year":a={year:"numeric"};break;case"month":a={month:"long"};break;case"monthShort":a={month:"short"};break;case"monthAndYear":a={month:"long",year:"numeric"};break;case"monthAndDate":a={month:"long",day:"numeric"};break;case"weekday":a={weekday:"long"};break;case"weekdayShort":a={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":a={hour:"numeric",hour12:!0};break;case"hours24h":a={hour:"numeric",hour12:!1};break;case"minutes":a={minute:"numeric"};break;case"seconds":a={second:"numeric"};break;case"fullTime":a={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":a={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":a={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":a={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":a={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":a={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":a={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":a={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":a={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":a={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:a=o??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,a).format(s)}function p1(e,t){const n=e.toJsDate(t),r=n.getFullYear(),s=Hc(String(n.getMonth()+1),2,"0"),o=Hc(String(n.getDate()),2,"0");return`${r}-${s}-${o}`}function g1(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function y1(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function b1(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function w1(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function _1(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function D1(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function C1(e){return e.getFullYear()}function S1(e){return e.getMonth()}function $1(e){return e.getDate()}function T1(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function E1(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function O1(e){return e.getHours()}function M1(e){return e.getMinutes()}function k1(e){return new Date(e.getFullYear(),0,1)}function x1(e){return new Date(e.getFullYear(),11,31)}function P1(e,t){return aa(e,t[0])&&L1(e,t[1])}function A1(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function aa(e,t){return e.getTime()>t.getTime()}function I1(e,t){return aa(nl(e),nl(t))}function L1(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}const Ba=["sm","md","lg","xl","xxl"],rl=Symbol.for("vuetify:display"),af={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},Z1=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:af;return at(af,e)};function lf(e){return ot&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function uf(e){return ot&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function cf(e){const t=ot&&!e?window.navigator.userAgent:"ssr";function n(v){return!!t.match(v)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),o=n(/cordova/i),a=n(/electron/i),i=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),f=n(/win/i),d=n(/mac/i),h=n(/linux/i);return{android:r,ios:s,cordova:o,electron:a,chrome:i,edge:l,firefox:u,opera:c,win:f,mac:d,linux:h,touch:_0,ssr:t==="ssr"}}function J1(e,t){const{thresholds:n,mobileBreakpoint:r}=Z1(e),s=Ut(uf(t)),o=Ut(cf(t)),a=je({}),i=Ut(lf(t));function l(){s.value=uf(),i.value=lf()}function u(){l(),o.value=cf()}return zn(()=>{const c=i.value=n.xxl,p=c?"xs":f?"sm":d?"md":h?"lg":v?"xl":"xxl",b=typeof r=="number"?r:n[r],S=i.value0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn();const n=Pe(rl);if(!n)throw new Error("Could not find Vuetify display injection");const r=w(()=>{if(e.mobile!=null)return e.mobile;if(!e.mobileBreakpoint)return n.mobile.value;const o=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:s,mobile:r}}const Wv=Symbol.for("vuetify:goto");function Uv(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5}}}function Q1(e){return su(e)??(document.scrollingElement||document.body)}function su(e){return typeof e=="string"?document.querySelector(e):Ev(e)}function _i(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=su(e),s=0;for(;r;)s+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return s}function ew(e,t){return{rtl:t.isRtl,options:at(Uv(),e)}}async function ff(e,t,n,r){const s=n?"scrollLeft":"scrollTop",o=at(r?.options??Uv(),t),a=r?.rtl.value,i=(typeof e=="number"?e:su(e))??0,l=o.container==="parent"&&i instanceof HTMLElement?i.parentElement:Q1(o.container),u=typeof o.easing=="function"?o.easing:o.patterns[o.easing];if(!u)throw new TypeError(`Easing function "${o.easing}" not found.`);let c;if(typeof i=="number")c=_i(i,n,a);else if(c=_i(i,n,a)-_i(l,n,a),o.layout){const v=window.getComputedStyle(i).getPropertyValue("--v-layout-top");v&&(c-=parseInt(v,10))}c+=o.offset,c=tw(l,c,!!a,!!n);const f=l[s]??0;if(c===f)return Promise.resolve(c);const d=performance.now();return new Promise(h=>requestAnimationFrame(function v(m){const b=(m-d)/o.duration,S=Math.floor(f+(c-f)*u(na(b,0,1)));if(l[s]=S,b>=1&&Math.abs(S-l[s])<10)return h(c);if(b>2)return h(l[s]);requestAnimationFrame(v)}))}function RY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Pe(Wv),{isRtl:n}=Fa();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:w(()=>t.rtl.value||n.value)};async function s(o,a){return ff(o,at(e,a),!1,r)}return s.horizontal=async(o,a)=>ff(o,at(e,a),!0,r),s}function tw(e,t,n,r){const{scrollWidth:s,scrollHeight:o}=e,[a,i]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return r?n?(l=-(s-a),u=0):(l=0,u=s-a):(l=0,u=o+-i),Math.max(Math.min(t,u),l)}const nw={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},rw={component:e=>lo(Kv,{...e,class:"mdi"})},zs=[String,Function,Object,Array],sl=Symbol.for("vuetify:icons"),Ha=$e({icon:{type:zs},tag:{type:String,required:!0}},"icon"),df=At()({name:"VComponentIcon",props:Ha(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return L(e.tag,null,{default:()=>[e.icon?L(r,null,null):n.default?.()]})}}}),zv=co({name:"VSvgIcon",inheritAttrs:!1,props:Ha(),setup(e,t){let{attrs:n}=t;return()=>L(e.tag,qt(n,{style:null}),{default:()=>[L("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?L("path",{d:r[0],"fill-opacity":r[1]},null):L("path",{d:r},null)):L("path",{d:e.icon},null)])]})}});co({name:"VLigatureIcon",props:Ha(),setup(e){return()=>L(e.tag,null,{default:()=>[e.icon]})}});const Kv=co({name:"VClassIcon",props:Ha(),setup(e){return()=>L(e.tag,{class:e.icon},null)}});function sw(){return{svg:{component:zv},class:{component:Kv}}}function ow(e){const t=sw(),n=e?.defaultSet??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=rw),at({defaultSet:n,sets:t,aliases:{...nw,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}const aw=e=>{const t=Pe(sl);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:w(()=>{const r=A(e);if(!r)return{component:df};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=t.aliases?.[s.slice(1)])),Array.isArray(s))return{component:zv,icon:s};if(typeof s!="string")return{component:df,icon:s};const o=Object.keys(t.sets).find(l=>typeof s=="string"&&s.startsWith(`${l}:`)),a=o?s.slice(o.length+1):s;return{component:t.sets[o??t.defaultSet].component,icon:a}})}},Ks=Symbol.for("vuetify:theme"),wr=$e({theme:String},"theme");function hf(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function iw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hf();const t=hf();if(!e)return{...t,isDisabled:!0};const n={};for(const[r,s]of Object.entries(e.themes??{})){const o=s.dark||r==="dark"?t.themes?.dark:t.themes?.light;n[r]=at(o,s)}return at(t,{...e,themes:n})}function lw(e){const t=iw(e),n=oe(t.defaultTheme),r=oe(t.themes),s=w(()=>{const c={};for(const[f,d]of Object.entries(r.value)){const h=c[f]={...d,colors:{...d.colors}};if(t.variations)for(const v of t.variations.colors){const m=h.colors[v];if(m)for(const p of["lighten","darken"]){const b=p==="lighten"?G0:q0;for(const S of Tv(t.variations[p],1))h.colors[`${v}-${p}-${S}`]=U0(b(nn(m),S))}}for(const v of Object.keys(h.colors)){if(/^on-[a-z]/.test(v)||h.colors[`on-${v}`])continue;const m=`on-${v}`,p=nn(h.colors[v]);h.colors[m]=Lv(p)}}return c}),o=w(()=>s.value[n.value]),a=w(()=>{const c=[];o.value?.dark&&nr(c,":root",["color-scheme: dark"]),nr(c,":root",vf(o.value));for(const[v,m]of Object.entries(s.value))nr(c,`.v-theme--${v}`,[`color-scheme: ${m.dark?"dark":"normal"}`,...vf(m)]);const f=[],d=[],h=new Set(Object.values(s.value).flatMap(v=>Object.keys(v.colors)));for(const v of h)/^on-[a-z]/.test(v)?nr(d,`.${v}`,[`color: rgb(var(--v-theme-${v})) !important`]):(nr(f,`.bg-${v}`,[`--v-theme-overlay-multiplier: var(--v-theme-${v}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${v})) !important`,`color: rgb(var(--v-theme-on-${v})) !important`]),nr(d,`.text-${v}`,[`color: rgb(var(--v-theme-${v})) !important`]),nr(d,`.border-${v}`,[`--v-border-color: var(--v-theme-${v})`]));return c.push(...f,...d),c.map((v,m)=>m===0?v:` ${v}`).join("")});function i(){return{style:[{children:a.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(c){if(t.isDisabled)return;const f=c._context.provides.usehead;if(f)if(f.push){const d=f.push(i);ot&&Te(a,()=>{d.patch(i)})}else ot?(f.addHeadObjs(w(i)),zn(()=>f.updateDOM())):f.addHeadObjs(i());else{let h=function(){if(typeof document<"u"&&!d){const v=document.createElement("style");v.type="text/css",v.id="vuetify-theme-stylesheet",t.cspNonce&&v.setAttribute("nonce",t.cspNonce),d=v,document.head.appendChild(d)}d&&(d.innerHTML=a.value)},d=ot?document.getElementById("vuetify-theme-stylesheet"):null;ot?Te(a,h,{immediate:!0}):h()}}const u=w(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:r,current:o,computedThemes:s,themeClasses:u,styles:a,global:{name:n,current:o}}}function _r(e){St("provideTheme");const t=Pe(Ks,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=w(()=>e.theme??t.name.value),r=w(()=>t.themes.value[n.value]),s=w(()=>t.isDisabled?void 0:`v-theme--${n.value}`),o={...t,name:n,current:r,themeClasses:s};return Pt(Ks,o),o}function uw(){St("useTheme");const e=Pe(Ks,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function nr(e,t,n){e.push(`${t} { -`,...n.map(r=>` ${r}; -`),`} -`)}function vf(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[s,o]of Object.entries(e.colors)){const a=nn(o);r.push(`--v-theme-${s}: ${a.r},${a.g},${a.b}`),s.startsWith("on-")||r.push(`--v-theme-${s}-overlay-multiplier: ${Z0(o)>.18?t:n}`)}for(const[s,o]of Object.entries(e.variables)){const a=typeof o=="string"&&o.startsWith("#")?nn(o):void 0,i=a?`${a.r}, ${a.g}, ${a.b}`:void 0;r.push(`--v-${s}: ${i??o}`)}return r}function Gv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=E0(),r=oe();if(ot){const s=new ResizeObserver(o=>{e?.(o,s),o.length&&(t==="content"?r.value=o[0].contentRect:r.value=o[0].target.getBoundingClientRect())});yr(()=>{s.disconnect()}),Te(()=>n.el,(o,a)=>{a&&(s.unobserve(a),r.value=void 0),o&&s.observe(o)},{flush:"post"})}return{resizeRef:n,contentRect:Ea(r)}}const ia=Symbol.for("vuetify:layout"),qv=Symbol.for("vuetify:layout-item"),mf=1e3,cw=$e({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),NY=$e({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function fw(){const e=Pe(ia);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:Ot(),getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function FY(e){const t=Pe(ia);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${Ra()}`,r=St("useLayoutItem");Pt(qv,{id:n});const s=Ut(!1);jh(()=>s.value=!0),Hh(()=>s.value=!1);const o=Ot(),{layoutItemStyles:a,layoutItemScrimStyles:i}=t.register(r,{...e,active:w(()=>s.value?!1:e.active.value),id:n});return yr(()=>t.unregister(n)),{layoutItemStyles:a,layoutRect:t.layoutRect,layoutItemScrimStyles:i,layoutIsReady:o}}const dw=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const o=[{id:"",layer:{...s}}];for(const a of e){const i=t.get(a),l=n.get(a),u=r.get(a);if(!i||!l||!u)continue;const c={...s,[i.value]:parseInt(s[i.value],10)+(u.value?parseInt(l.value,10):0)};o.push({id:a,layer:c}),s=c}return o};function hw(e){const t=Pe(ia,null),n=w(()=>t?t.rootZIndex.value-100:mf),r=oe([]),s=je(new Map),o=je(new Map),a=je(new Map),i=je(new Map),l=je(new Map),{resizeRef:u,contentRect:c}=Gv(),f=Vc(()=>{const D=[...new Set([...a.values()].map(E=>E.value))].sort((E,P)=>E-P),C=[];for(const E of D){const P=r.value.filter($=>a.get($)?.value===E);C.push(...P)}return dw(C,s,o,i)}),d=w(()=>!Array.from(l.values()).some(D=>D.value)),h=w(()=>f.value[f.value.length-1].layer),v=w(()=>({"--v-layout-left":Fe(h.value.left),"--v-layout-right":Fe(h.value.right),"--v-layout-top":Fe(h.value.top),"--v-layout-bottom":Fe(h.value.bottom),...d.value?void 0:{transition:"none"}})),m=Vc(()=>f.value.slice(1).map((D,C)=>{let{id:E}=D;const{layer:P}=f.value[C],$=o.get(E),I=s.get(E);return{id:E,...P,size:Number($.value),position:I.value}})),p=D=>m.value.find(C=>C.id===D),b=St("createLayout"),S=Ot();Pt(ia,{register:(D,C)=>{let{id:E,order:P,position:$,layoutSize:I,elementSize:j,active:O,disableTransitions:W,absolute:re}=C;a.set(E,P),s.set(E,$),o.set(E,I),i.set(E,O),W&&l.set(E,W);const ee=xr(qv,b?.vnode).indexOf(D);ee>-1?r.value.splice(ee,0,E):r.value.push(E);const J=w(()=>m.value.findIndex(fe=>fe.id===E)),ue=w(()=>n.value+f.value.length*2-J.value*2),we=w(()=>{const fe=$.value==="left"||$.value==="right",Q=$.value==="right",Le=$.value==="bottom",pe=j.value??I.value,Ye=pe===0?"%":"px",Re={[$.value]:0,zIndex:ue.value,transform:`translate${fe?"X":"Y"}(${(O.value?0:-(pe===0?100:pe))*(Q||Le?-1:1)}${Ye})`,position:re.value||n.value!==mf?"absolute":"fixed",...d.value?void 0:{transition:"none"}};if(J.value<0)throw new Error(`Layout item "${E}" is missing`);const ye=m.value[J.value];if(!ye)throw new Error(`[Vuetify] Could not find layout item "${E}"`);return{...Re,height:fe?`calc(100% - ${ye.top}px - ${ye.bottom}px)`:j.value?`${j.value}px`:void 0,left:Q?void 0:`${ye.left}px`,right:Q?`${ye.right}px`:void 0,top:$.value!=="bottom"?`${ye.top}px`:void 0,bottom:$.value!=="top"?`${ye.bottom}px`:void 0,width:fe?j.value?`${j.value}px`:void 0:`calc(100% - ${ye.left}px - ${ye.right}px)`}}),V=w(()=>({zIndex:ue.value-1}));return{layoutItemStyles:we,layoutItemScrimStyles:V,zIndex:ue}},unregister:D=>{a.delete(D),s.delete(D),o.delete(D),i.delete(D),l.delete(D),r.value=r.value.filter(C=>C!==D)},mainRect:h,mainStyles:v,getLayoutItem:p,items:m,layoutRect:c,rootZIndex:n,layoutIsReady:S});const T=w(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),M=w(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:T,layoutStyles:M,getLayoutItem:p,items:m,layoutRect:c,layoutIsReady:S,layoutRef:u}}function Zv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=at(t,n),{aliases:s={},components:o={},directives:a={}}=r,i=X0(r.defaults),l=J1(r.display,r.ssr),u=lw(r.theme),c=ow(r.icons),f=o1(r.locale),d=G1(r.date,f),h=ew(r.goTo,f);return{install:m=>{for(const p in a)m.directive(p,a[p]);for(const p in o)m.component(p,o[p]);for(const p in s)m.component(p,co({...s[p],name:p,aliasName:s[p].name}));if(u.install(m),m.provide(qr,i),m.provide(rl,l),m.provide(Ks,u),m.provide(sl,c),m.provide(oa,f),m.provide(K1,d.options),m.provide(of,d.instance),m.provide(Wv,h),ot&&r.ssr)if(m.$nuxt)m.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:p}=m;m.mount=function(){const b=p(...arguments);return Ot(()=>l.update()),m.mount=p,b}}Ra.reset(),m.mixin({computed:{$vuetify(){return je({defaults:Or.call(this,qr),display:Or.call(this,rl),theme:Or.call(this,Ks),icons:Or.call(this,sl),locale:Or.call(this,oa),date:Or.call(this,of)})}}})},defaults:i,display:l,theme:u,icons:c,locale:f,date:d,goTo:h}}const vw="3.6.14";Zv.version=vw;function Or(e){const t=this.$,n=t.parent?.provides??t.vnode.appContext?.provides;if(n&&e in n)return n[e]}var mw="M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",pw="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",gw="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",YY="M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7M7.5,13.5L9,12L11,14L15.5,9.5L17,11L11,17L7.5,13.5Z",yw="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",BY="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",HY="M5,3C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H5M15.78,5H19V17.18C18.74,16.38 17.69,15.79 16.8,15.79H15.8V12.79A1,1 0 0,0 14.8,11.79H8.8V9.79H10.8A1,1 0 0,0 11.8,8.79V6.79H13.8C14.83,6.79 15.67,6 15.78,5M5,10.29L9.8,14.79V15.79C9.8,16.9 10.7,17.79 11.8,17.79V19H5V10.29Z",jY="M9,3L3.36,4.9C3.16,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21C3.55,21 3.6,21 3.66,20.97L9,18.9L13.16,20.36C13.06,19.92 13,19.46 13,19C13,18.77 13,18.54 13.04,18.3L9,16.9V5L15,7.1V14.56C16.07,13.6 17.47,13 19,13C19.7,13 20.37,13.13 21,13.36V3.5A0.5,0.5 0 0,0 20.5,3H20.34L15,5.1L9,3M18,15V18H15V20H18V23H20V20H23V18H20V15H18Z",bw="M7,10L12,15L17,10H7Z",VY="M1,12L5,16V13H17.17C17.58,14.17 18.69,15 20,15A3,3 0 0,0 23,12A3,3 0 0,0 20,9C18.69,9 17.58,9.83 17.17,11H5V8L1,12Z",WY="M23,12L19,16V13H6.83C6.42,14.17 5.31,15 4,15A3,3 0 0,1 1,12A3,3 0 0,1 4,9C5.31,9 6.42,9.83 6.83,11H19V8L23,12Z";const ww=Zv({icons:{aliases:{next:[gw],prev:[pw],subgroup:[bw]}},theme:{themes:{dashboardTheme:{},light:{colors:{primary:"#1867C0",secondary:"#5CBBF6"}}}}});var _w=!1;/*! - * pinia v2.2.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */let Jv;const ja=e=>Jv=e,Xv=Symbol();function ol(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ls;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ls||(Ls={}));function Dw(){const e=Al(!0),t=e.run(()=>oe({}));let n=[],r=[];const s=Hl({install(o){ja(s),s._a=o,o.provide(Xv,s),o.config.globalProperties.$pinia=s,r.forEach(a=>n.push(a)),r=[]},use(o){return!this._a&&!_w?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Qv=()=>{};function pf(e,t,n,r=Qv){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&ph()&&Il(s),s}function Mr(e,...t){e.slice().forEach(n=>{n(...t)})}const Cw=e=>e(),gf=Symbol(),Di=Symbol();function al(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];ol(s)&&ol(r)&&e.hasOwnProperty(n)&&!Se(r)&&!Yn(r)?e[n]=al(s,r):e[n]=r}return e}const Sw=Symbol();function $w(e){return!ol(e)||!e.hasOwnProperty(Sw)}const{assign:xn}=Object;function Tw(e){return!!(Se(e)&&e.effect)}function Ew(e,t,n,r){const{state:s,actions:o,getters:a}=t,i=n.state.value[e];let l;function u(){i||(n.state.value[e]=s?s():{});const c=no(n.state.value[e]);return xn(c,o,Object.keys(a||{}).reduce((f,d)=>(f[d]=Hl(w(()=>{ja(n);const h=n._s.get(e);return a[d].call(h,h)})),f),{}))}return l=em(e,u,t,n,r,!0),l}function em(e,t,n={},r,s,o){let a;const i=xn({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],h;const v=r.state.value[e];!o&&!v&&(r.state.value[e]={}),oe({});let m;function p(P){let $;u=c=!1,typeof P=="function"?(P(r.state.value[e]),$={type:Ls.patchFunction,storeId:e,events:h}):(al(r.state.value[e],P),$={type:Ls.patchObject,payload:P,storeId:e,events:h});const I=m=Symbol();Ot().then(()=>{m===I&&(u=!0)}),c=!0,Mr(f,$,r.state.value[e])}const b=o?function(){const{state:$}=n,I=$?$():{};this.$patch(j=>{xn(j,I)})}:Qv;function S(){a.stop(),f=[],d=[],r._s.delete(e)}const T=(P,$="")=>{if(gf in P)return P[Di]=$,P;const I=function(){ja(r);const j=Array.from(arguments),O=[],W=[];function re(J){O.push(J)}function X(J){W.push(J)}Mr(d,{args:j,name:I[Di],store:D,after:re,onError:X});let ee;try{ee=P.apply(this&&this.$id===e?this:D,j)}catch(J){throw Mr(W,J),J}return ee instanceof Promise?ee.then(J=>(Mr(O,J),J)).catch(J=>(Mr(W,J),Promise.reject(J))):(Mr(O,ee),ee)};return I[gf]=!0,I[Di]=$,I},M={_p:r,$id:e,$onAction:pf.bind(null,d),$patch:p,$reset:b,$subscribe(P,$={}){const I=pf(f,P,$.detached,()=>j()),j=a.run(()=>Te(()=>r.state.value[e],O=>{($.flush==="sync"?c:u)&&P({storeId:e,type:Ls.direct,events:h},O)},xn({},l,$)));return I},$dispose:S},D=je(M);r._s.set(e,D);const E=(r._a&&r._a.runWithContext||Cw)(()=>r._e.run(()=>(a=Al()).run(()=>t({action:T}))));for(const P in E){const $=E[P];if(Se($)&&!Tw($)||Yn($))o||(v&&$w($)&&(Se($)?$.value=v[P]:al($,v[P])),r.state.value[e][P]=$);else if(typeof $=="function"){const I=T($,P);E[P]=I,i.actions[P]=$}}return xn(D,E),xn(ge(D),E),Object.defineProperty(D,"$state",{get:()=>r.state.value[e],set:P=>{p($=>{xn($,P)})}}),r._p.forEach(P=>{xn(D,a.run(()=>P({store:D,app:r._a,pinia:r,options:i})))}),v&&o&&n.hydrate&&n.hydrate(D.$state,v),u=!0,c=!0,D}function Ow(e,t,n){let r,s;const o=typeof t=="function";r=e,s=o?n:t;function a(i,l){const u=Gy();return i=i||(u?Pe(Xv,null):null),i&&ja(i),i=Jv,i._s.has(r)||(o?em(r,t,s,i):Ew(r,s,i)),i._s.get(r)}return a.$id=r,a}function Mw(e){{e=ge(e);const t={};for(const n in e){const r=e[n];(Se(r)||Yn(r))&&(t[n]=et(e,n))}return t}}const kw="modulepreload",xw=function(e){return"/eodash-instance-template/pr-preview/pr-17/"+e},yf={},Qe=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=o?.nonce||o?.getAttribute("nonce");s=Promise.all(n.map(i=>{if(i=xw(i),i in yf)return;yf[i]=!0;const l=i.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${u}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":kw,l||(c.as="script",c.crossOrigin=""),c.href=i,a&&c.setAttribute("nonce",a),document.head.appendChild(c),l)return new Promise((f,d)=>{c.addEventListener("load",f),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})}))}return s.then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},Pr=oe(""),Ts=oe(""),Yo=oe(new Date().toISOString()),ou=oe(""),il=oe([]),la=["EPSG:4326","EPSG:3857"],Pw=oe(""),Br=oe(null),Aw=Object.freeze(Object.defineProperty({__proto__:null,availableMapProjection:Pw,currentCompareUrl:Ts,currentUrl:Pr,datetime:Yo,indicator:ou,mapEl:Br,mapPosition:il,registeredProjections:la},Symbol.toStringTag,{value:"Module"})),au=je({id:"demo",stacEndpoint:"https://eodashcatalog.eox.at/test-style/trilateral/catalog.json",brand:{noLayout:!0,name:"Demo",theme:{colors:{primary:"#fff",secondary:"#fff",surface:"#fff"}},footerText:"Demo configuration of eodash client"},template:{loading:{id:Symbol(),type:"web-component",widget:{link:"https://cdn.jsdelivr.net/npm/ldrs/dist/auto/mirage.js",tagName:"l-mirage",properties:{class:"align-self-center justify-self-center",size:"120",speed:"2.5",color:"#004170"}}},background:{id:Symbol(),type:"internal",widget:{name:"EodashMap",properties:{}}},widgets:[{id:Symbol(),type:"internal",title:"Indicators",layout:{x:0,y:0,w:3,h:8},widget:{name:"EodashItemFilter",properties:{aggregateResults:"collection_group"}}},{id:Symbol(),type:"internal",title:"Layer Control",layout:{x:0,y:8,w:3,h:4},widget:{name:"EodashLayerControl"}},{defineWidget:e=>e?{id:"Information",title:"Information",layout:{x:9,y:0,w:3,h:12},type:"web-component",widget:{link:async()=>await Qe(()=>import("./eox-stacinfo-CES29oXd.js"),[]),properties:{for:Pr,allowHtml:"true",styleOverride:`.single-property {columns: 1!important;} - h1 {margin:0px!important;font-size:16px!important;} - header h1:after { - content:' '; - display:block; - border:1px solid #d0d0d0; - } - h2 {font-size:15px} - h3 {font-size:14px} - summary {cursor: pointer;} - #properties li > .value { font-weight: normal !important;} - main {padding-bottom: 10px;} - .footer-container {line-height:1;} - .footer-container button {margin-top: -10px;} - .footer-container small {font-size:10px;line-height:1;}`,header:'["title"]',tags:'["themes"]',subheader:"[]",properties:'["satellite","sensor","agency","extent"]',featured:'["description","providers","assets","links"]',footer:'["sci:citation"]'},tagName:"eox-stacinfo"}}:null},{defineWidget:e=>e?{id:"Datepicker",type:"internal",layout:{x:5,y:10,w:1,h:1},title:"Datepicker",widget:{name:"EodashDatePicker"}}:null},{defineWidget:e=>e?{id:"Buttons",layout:{x:8,y:0,w:1,h:1},title:"Buttons",type:"internal",widget:{name:"EodashMapBtns"}}:null}]}});var wt="top",Ht="bottom",jt="right",_t="left",iu="auto",fo=[wt,Ht,jt,_t],Zr="start",Gs="end",Iw="clippingParents",tm="viewport",ws="popper",Lw="reference",bf=fo.reduce(function(e,t){return e.concat([t+"-"+Zr,t+"-"+Gs])},[]),nm=[].concat(fo,[iu]).reduce(function(e,t){return e.concat([t,t+"-"+Zr,t+"-"+Gs])},[]),Rw="beforeRead",Nw="read",Fw="afterRead",Yw="beforeMain",Bw="main",Hw="afterMain",jw="beforeWrite",Vw="write",Ww="afterWrite",Uw=[Rw,Nw,Fw,Yw,Bw,Hw,jw,Vw,Ww];function an(e){return e?(e.nodeName||"").toLowerCase():null}function xt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mr(e){var t=xt(e).Element;return e instanceof t||e instanceof Element}function Yt(e){var t=xt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lu(e){if(typeof ShadowRoot>"u")return!1;var t=xt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zw(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!Yt(o)||!an(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(a){var i=s[a];i===!1?o.removeAttribute(a):o.setAttribute(a,i===!0?"":i)}))})}function Kw(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=a.reduce(function(l,u){return l[u]="",l},{});!Yt(s)||!an(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}}const Gw={name:"applyStyles",enabled:!0,phase:"write",fn:zw,effect:Kw,requires:["computeStyles"]};function on(e){return e.split("-")[0]}var fr=Math.max,ua=Math.min,Jr=Math.round;function ll(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function rm(){return!/^((?!chrome|android).)*safari/i.test(ll())}function Xr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,o=1;t&&Yt(e)&&(s=e.offsetWidth>0&&Jr(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Jr(r.height)/e.offsetHeight||1);var a=mr(e)?xt(e):window,i=a.visualViewport,l=!rm()&&n,u=(r.left+(l&&i?i.offsetLeft:0))/s,c=(r.top+(l&&i?i.offsetTop:0))/o,f=r.width/s,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function uu(e){var t=Xr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&lu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yn(e){return xt(e).getComputedStyle(e)}function qw(e){return["table","td","th"].indexOf(an(e))>=0}function Gn(e){return((mr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Va(e){return an(e)==="html"?e:e.assignedSlot||e.parentNode||(lu(e)?e.host:null)||Gn(e)}function wf(e){return!Yt(e)||yn(e).position==="fixed"?null:e.offsetParent}function Zw(e){var t=/firefox/i.test(ll()),n=/Trident/i.test(ll());if(n&&Yt(e)){var r=yn(e);if(r.position==="fixed")return null}var s=Va(e);for(lu(s)&&(s=s.host);Yt(s)&&["html","body"].indexOf(an(s))<0;){var o=yn(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function ho(e){for(var t=xt(e),n=wf(e);n&&qw(n)&&yn(n).position==="static";)n=wf(n);return n&&(an(n)==="html"||an(n)==="body"&&yn(n).position==="static")?t:n||Zw(e)||t}function cu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rs(e,t,n){return fr(e,ua(t,n))}function Jw(e,t,n){var r=Rs(e,t,n);return r>n?n:r}function om(){return{top:0,right:0,bottom:0,left:0}}function am(e){return Object.assign({},om(),e)}function im(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Xw=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,am(typeof t!="number"?t:im(t,fo))};function Qw(e){var t,n=e.state,r=e.name,s=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,i=on(n.placement),l=cu(i),u=[_t,jt].indexOf(i)>=0,c=u?"height":"width";if(!(!o||!a)){var f=Xw(s.padding,n),d=uu(o),h=l==="y"?wt:_t,v=l==="y"?Ht:jt,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],p=a[l]-n.rects.reference[l],b=ho(o),S=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,T=m/2-p/2,M=f[h],D=S-d[c]-f[v],C=S/2-d[c]/2+T,E=Rs(M,C,D),P=l;n.modifiersData[r]=(t={},t[P]=E,t.centerOffset=E-C,t)}}function e_(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||sm(t.elements.popper,s)&&(t.elements.arrow=s))}const t_={name:"arrow",enabled:!0,phase:"main",fn:Qw,effect:e_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qr(e){return e.split("-")[1]}var n_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function r_(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Jr(n*s)/s||0,y:Jr(r*s)/s||0}}function _f(e){var t,n=e.popper,r=e.popperRect,s=e.placement,o=e.variation,a=e.offsets,i=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,v=a.y,m=v===void 0?0:v,p=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=p.x,m=p.y;var b=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),T=_t,M=wt,D=window;if(u){var C=ho(n),E="clientHeight",P="clientWidth";if(C===xt(n)&&(C=Gn(n),yn(C).position!=="static"&&i==="absolute"&&(E="scrollHeight",P="scrollWidth")),C=C,s===wt||(s===_t||s===jt)&&o===Gs){M=Ht;var $=f&&C===D&&D.visualViewport?D.visualViewport.height:C[E];m-=$-r.height,m*=l?1:-1}if(s===_t||(s===wt||s===Ht)&&o===Gs){T=jt;var I=f&&C===D&&D.visualViewport?D.visualViewport.width:C[P];h-=I-r.width,h*=l?1:-1}}var j=Object.assign({position:i},u&&n_),O=c===!0?r_({x:h,y:m},xt(n)):{x:h,y:m};if(h=O.x,m=O.y,l){var W;return Object.assign({},j,(W={},W[M]=S?"0":"",W[T]=b?"0":"",W.transform=(D.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",W))}return Object.assign({},j,(t={},t[M]=S?m+"px":"",t[T]=b?h+"px":"",t.transform="",t))}function s_(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,u={placement:on(t.placement),variation:Qr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_f(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_f(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const o_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s_,data:{}};var ko={passive:!0};function a_(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,o=s===void 0?!0:s,a=r.resize,i=a===void 0?!0:a,l=xt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,ko)}),i&&l.addEventListener("resize",n.update,ko),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ko)}),i&&l.removeEventListener("resize",n.update,ko)}}const i_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:a_,data:{}};var l_={left:"right",right:"left",bottom:"top",top:"bottom"};function Bo(e){return e.replace(/left|right|bottom|top/g,function(t){return l_[t]})}var u_={start:"end",end:"start"};function Df(e){return e.replace(/start|end/g,function(t){return u_[t]})}function fu(e){var t=xt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function du(e){return Xr(Gn(e)).left+fu(e).scrollLeft}function c_(e,t){var n=xt(e),r=Gn(e),s=n.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,l=0;if(s){o=s.width,a=s.height;var u=rm();(u||!u&&t==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:o,height:a,x:i+du(e),y:l}}function f_(e){var t,n=Gn(e),r=fu(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=fr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=fr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-r.scrollLeft+du(e),l=-r.scrollTop;return yn(s||n).direction==="rtl"&&(i+=fr(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:a,x:i,y:l}}function hu(e){var t=yn(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function lm(e){return["html","body","#document"].indexOf(an(e))>=0?e.ownerDocument.body:Yt(e)&&hu(e)?e:lm(Va(e))}function Ns(e,t){var n;t===void 0&&(t=[]);var r=lm(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=xt(r),a=s?[o].concat(o.visualViewport||[],hu(r)?r:[]):r,i=t.concat(a);return s?i:i.concat(Ns(Va(a)))}function ul(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function d_(e,t){var n=Xr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Cf(e,t,n){return t===tm?ul(c_(e,n)):mr(t)?d_(t,n):ul(f_(Gn(e)))}function h_(e){var t=Ns(Va(e)),n=["absolute","fixed"].indexOf(yn(e).position)>=0,r=n&&Yt(e)?ho(e):e;return mr(r)?t.filter(function(s){return mr(s)&&sm(s,r)&&an(s)!=="body"}):[]}function v_(e,t,n,r){var s=t==="clippingParents"?h_(e):[].concat(t),o=[].concat(s,[n]),a=o[0],i=o.reduce(function(l,u){var c=Cf(e,u,r);return l.top=fr(c.top,l.top),l.right=ua(c.right,l.right),l.bottom=ua(c.bottom,l.bottom),l.left=fr(c.left,l.left),l},Cf(e,a,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function um(e){var t=e.reference,n=e.element,r=e.placement,s=r?on(r):null,o=r?Qr(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(s){case wt:l={x:a,y:t.y-n.height};break;case Ht:l={x:a,y:t.y+t.height};break;case jt:l={x:t.x+t.width,y:i};break;case _t:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var u=s?cu(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Zr:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Gs:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function qs(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?Iw:i,u=n.rootBoundary,c=u===void 0?tm:u,f=n.elementContext,d=f===void 0?ws:f,h=n.altBoundary,v=h===void 0?!1:h,m=n.padding,p=m===void 0?0:m,b=am(typeof p!="number"?p:im(p,fo)),S=d===ws?Lw:ws,T=e.rects.popper,M=e.elements[v?S:d],D=v_(mr(M)?M:M.contextElement||Gn(e.elements.popper),l,c,a),C=Xr(e.elements.reference),E=um({reference:C,element:T,strategy:"absolute",placement:s}),P=ul(Object.assign({},T,E)),$=d===ws?P:C,I={top:D.top-$.top+b.top,bottom:$.bottom-D.bottom+b.bottom,left:D.left-$.left+b.left,right:$.right-D.right+b.right},j=e.modifiersData.offset;if(d===ws&&j){var O=j[s];Object.keys(I).forEach(function(W){var re=[jt,Ht].indexOf(W)>=0?1:-1,X=[wt,Ht].indexOf(W)>=0?"y":"x";I[W]+=O[X]*re})}return I}function m_(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,o=n.rootBoundary,a=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?nm:l,c=Qr(r),f=c?i?bf:bf.filter(function(v){return Qr(v)===c}):fo,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,m){return v[m]=qs(e,{placement:m,boundary:s,rootBoundary:o,padding:a})[on(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function p_(e){if(on(e)===iu)return[];var t=Bo(e);return[Df(e),t,Df(t)]}function g_(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,i=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,m=n.allowedAutoPlacements,p=t.options.placement,b=on(p),S=b===p,T=l||(S||!v?[Bo(p)]:p_(p)),M=[p].concat(T).reduce(function(pe,Ye){return pe.concat(on(Ye)===iu?m_(t,{placement:Ye,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):Ye)},[]),D=t.rects.reference,C=t.rects.popper,E=new Map,P=!0,$=M[0],I=0;I=0,X=re?"width":"height",ee=qs(t,{placement:j,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),J=re?W?jt:_t:W?Ht:wt;D[X]>C[X]&&(J=Bo(J));var ue=Bo(J),we=[];if(o&&we.push(ee[O]<=0),i&&we.push(ee[J]<=0,ee[ue]<=0),we.every(function(pe){return pe})){$=j,P=!1;break}E.set(j,we)}if(P)for(var V=v?3:1,fe=function(Ye){var Re=M.find(function(ye){var ze=E.get(ye);if(ze)return ze.slice(0,Ye).every(function(tt){return tt})});if(Re)return $=Re,"break"},Q=V;Q>0;Q--){var Le=fe(Q);if(Le==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const y_={name:"flip",enabled:!0,phase:"main",fn:g_,requiresIfExists:["offset"],data:{_skip:!1}};function Sf(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $f(e){return[wt,jt,Ht,_t].some(function(t){return e[t]>=0})}function b_(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,a=qs(t,{elementContext:"reference"}),i=qs(t,{altBoundary:!0}),l=Sf(a,r),u=Sf(i,s,o),c=$f(l),f=$f(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const w_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b_};function __(e,t,n){var r=on(e),s=[_t,wt].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],i=o[1];return a=a||0,i=(i||0)*s,[_t,jt].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function D_(e){var t=e.state,n=e.options,r=e.name,s=n.offset,o=s===void 0?[0,0]:s,a=nm.reduce(function(c,f){return c[f]=__(f,t.rects,o),c},{}),i=a[t.placement],l=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const C_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:D_};function S_(e){var t=e.state,n=e.name;t.modifiersData[n]=um({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $_={name:"popperOffsets",enabled:!0,phase:"read",fn:S_,data:{}};function T_(e){return e==="x"?"y":"x"}function E_(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,i=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,v=n.tetherOffset,m=v===void 0?0:v,p=qs(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),b=on(t.placement),S=Qr(t.placement),T=!S,M=cu(b),D=T_(M),C=t.modifiersData.popperOffsets,E=t.rects.reference,P=t.rects.popper,$=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,I=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(C){if(o){var W,re=M==="y"?wt:_t,X=M==="y"?Ht:jt,ee=M==="y"?"height":"width",J=C[M],ue=J+p[re],we=J-p[X],V=h?-P[ee]/2:0,fe=S===Zr?E[ee]:P[ee],Q=S===Zr?-P[ee]:-E[ee],Le=t.elements.arrow,pe=h&&Le?uu(Le):{width:0,height:0},Ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:om(),Re=Ye[re],ye=Ye[X],ze=Rs(0,E[ee],pe[ee]),tt=T?E[ee]/2-V-ze-Re-I.mainAxis:fe-ze-Re-I.mainAxis,lt=T?-E[ee]/2+V+ze+ye+I.mainAxis:Q+ze+ye+I.mainAxis,mt=t.elements.arrow&&ho(t.elements.arrow),ut=mt?M==="y"?mt.clientTop||0:mt.clientLeft||0:0,g=(W=j?.[M])!=null?W:0,_=J+tt-g-ut,k=J+lt-g,Y=Rs(h?ua(ue,_):ue,J,h?fr(we,k):we);C[M]=Y,O[M]=Y-J}if(i){var R,H=M==="x"?wt:_t,K=M==="x"?Ht:jt,U=C[D],z=D==="y"?"height":"width",B=U+p[H],q=U-p[K],ne=[wt,_t].indexOf(b)!==-1,te=(R=j?.[D])!=null?R:0,ie=ne?B:U-E[z]-P[z]-te+I.altAxis,de=ne?U+E[z]+P[z]-te-I.altAxis:q,Ce=h&&ne?Jw(ie,U,de):Rs(h?ie:B,U,h?de:q);C[D]=Ce,O[D]=Ce-U}t.modifiersData[r]=O}}const O_={name:"preventOverflow",enabled:!0,phase:"main",fn:E_,requiresIfExists:["offset"]};function M_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function k_(e){return e===xt(e)||!Yt(e)?fu(e):M_(e)}function x_(e){var t=e.getBoundingClientRect(),n=Jr(t.width)/e.offsetWidth||1,r=Jr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function P_(e,t,n){n===void 0&&(n=!1);var r=Yt(t),s=Yt(t)&&x_(t),o=Gn(t),a=Xr(e,s,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((an(t)!=="body"||hu(o))&&(i=k_(t)),Yt(t)?(l=Xr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=du(o))),{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function A_(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&s(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),r}function I_(e){var t=A_(e);return Uw.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function L_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function R_(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Tf={placement:"bottom",modifiers:[],strategy:"absolute"};function Ef(){for(var e=arguments.length,t=new Array(e),n=0;nt in e?B_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,se=(e,t,n)=>(H_(e,typeof t!="symbol"?t+"":t,n),n),xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var j_=Object.prototype,V_=j_.hasOwnProperty;function W_(e,t){return e!=null&&V_.call(e,t)}var U_=W_,z_=Array.isArray,Zt=z_,K_=typeof xo=="object"&&xo&&xo.Object===Object&&xo,fm=K_,G_=fm,q_=typeof self=="object"&&self&&self.Object===Object&&self,Z_=G_||q_||Function("return this")(),un=Z_,J_=un,X_=J_.Symbol,Wa=X_,Of=Wa,dm=Object.prototype,Q_=dm.hasOwnProperty,eD=dm.toString,_s=Of?Of.toStringTag:void 0;function tD(e){var t=Q_.call(e,_s),n=e[_s];try{e[_s]=void 0;var r=!0}catch{}var s=eD.call(e);return r&&(t?e[_s]=n:delete e[_s]),s}var nD=tD,rD=Object.prototype,sD=rD.toString;function oD(e){return sD.call(e)}var aD=oD,Mf=Wa,iD=nD,lD=aD,uD="[object Null]",cD="[object Undefined]",kf=Mf?Mf.toStringTag:void 0;function fD(e){return e==null?e===void 0?cD:uD:kf&&kf in Object(e)?iD(e):lD(e)}var cn=fD;function dD(e){return e!=null&&typeof e=="object"}var Jt=dD,hD=cn,vD=Jt,mD="[object Symbol]";function pD(e){return typeof e=="symbol"||vD(e)&&hD(e)==mD}var vu=pD,gD=Zt,yD=vu,bD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wD=/^\w*$/;function _D(e,t){if(gD(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||yD(e)?!0:wD.test(e)||!bD.test(e)||t!=null&&e in Object(t)}var mu=_D;function DD(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Sn=DD,CD=cn,SD=Sn,$D="[object AsyncFunction]",TD="[object Function]",ED="[object GeneratorFunction]",OD="[object Proxy]";function MD(e){if(!SD(e))return!1;var t=CD(e);return t==TD||t==ED||t==$D||t==OD}var Dr=MD,kD=un,xD=kD["__core-js_shared__"],PD=xD,Ci=PD,xf=function(){var e=/[^.]+$/.exec(Ci&&Ci.keys&&Ci.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AD(e){return!!xf&&xf in e}var ID=AD,LD=Function.prototype,RD=LD.toString;function ND(e){if(e!=null){try{return RD.call(e)}catch{}try{return e+""}catch{}}return""}var hm=ND,FD=Dr,YD=ID,BD=Sn,HD=hm,jD=/[\\^$.*+?()[\]{}|]/g,VD=/^\[object .+?Constructor\]$/,WD=Function.prototype,UD=Object.prototype,zD=WD.toString,KD=UD.hasOwnProperty,GD=RegExp("^"+zD.call(KD).replace(jD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qD(e){if(!BD(e)||YD(e))return!1;var t=FD(e)?GD:VD;return t.test(HD(e))}var ZD=qD;function JD(e,t){return e?.[t]}var XD=JD,QD=ZD,eC=XD;function tC(e,t){var n=eC(e,t);return QD(n)?n:void 0}var Cr=tC,nC=Cr,rC=nC(Object,"create"),Ua=rC,Pf=Ua;function sC(){this.__data__=Pf?Pf(null):{},this.size=0}var oC=sC;function aC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var iC=aC,lC=Ua,uC="__lodash_hash_undefined__",cC=Object.prototype,fC=cC.hasOwnProperty;function dC(e){var t=this.__data__;if(lC){var n=t[e];return n===uC?void 0:n}return fC.call(t,e)?t[e]:void 0}var hC=dC,vC=Ua,mC=Object.prototype,pC=mC.hasOwnProperty;function gC(e){var t=this.__data__;return vC?t[e]!==void 0:pC.call(t,e)}var yC=gC,bC=Ua,wC="__lodash_hash_undefined__";function _C(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bC&&t===void 0?wC:t,this}var DC=_C,CC=oC,SC=iC,$C=hC,TC=yC,EC=DC;function as(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var WC=VC,UC=za;function zC(e,t){var n=this.__data__,r=UC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var KC=zC,GC=kC,qC=FC,ZC=HC,JC=WC,XC=KC;function ls(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=f$}var _u=d$,h$=vu,v$=1/0;function m$(e){if(typeof e=="string"||h$(e))return e;var t=e+"";return t=="0"&&1/e==-v$?"-0":t}var qa=m$,p$=pm,g$=bu,y$=Zt,b$=wu,w$=_u,_$=qa;function D$(e,t,n){t=p$(t,e);for(var r=-1,s=t.length,o=!1;++ri))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&$T?new _T:void 0;for(o.set(e,t),o.set(t,e);++f0){if(++t>=$x)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Mx=Ox,kx=Sx,xx=Mx,Px=xx(kx),Ax=Px,Ix=Tu,Lx=yx,Rx=Ax;function Nx(e,t){return Rx(Lx(e,t,Ix),e+"")}var Ou=Nx;function Fx(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Yx=Fx,Bx=Sn,Hx=Su,jx=Yx,Vx=Object.prototype,Wx=Vx.hasOwnProperty;function Ux(e){if(!Bx(e))return jx(e);var t=Hx(e),n=[];for(var r in e)r=="constructor"&&(t||!Wx.call(e,r))||n.push(r);return n}var zx=Ux,Kx=Sm,Gx=zx,qx=vo;function Zx(e){return qx(e)?Kx(e,!0):Gx(e)}var Mu=Zx,Jx=Ou,Xx=is,Qx=Eu,e2=Mu,Nm=Object.prototype,t2=Nm.hasOwnProperty,n2=Jx(function(e,t){e=Object(e);var n=-1,r=t.length,s=r>2?t[2]:void 0;for(s&&Qx(t[0],t[1],s)&&(r=1);++n1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,a&&pP(n[0],n[1],a)&&(o=s<3?void 0:o,s=1),t=Object(t);++rObject.prototype.toString.call(e).slice(8,-1),Hr=e=>R$(e)&&!isNaN(e.getTime()),bn=e=>kP(e)==="Object",zm=bm,pd=(e,t)=>Uk(t,n=>bm(e,n)),Oe=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.lengthArray.isArray(e),mn=e=>Bt(e)&&e.length>0,da=e=>e==null?null:document&&rn(e)?document.querySelector(e):e.$el??e,Rn=(e,t,n,r=void 0)=>{e.removeEventListener(t,n,r)},Nn=(e,t,n,r=void 0)=>(e.addEventListener(t,n,r),()=>Rn(e,t,n,r)),Ho=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),Ao=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},Km=(e,...t)=>{const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n},Gm=(e,t)=>{const n={};return t.forEach(r=>{r in e&&(n[r]=e[r])}),n};function xP(e,t,n){return Math.min(Math.max(e,t),n)}var ha={},PP={get exports(){return ha},set exports(e){ha=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var s=Number(r);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}e.exports=t.default})(PP,ha);const AP=cm(ha);var va={},IP={get exports(){return va},set exports(e){va=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var s=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return s.setUTCFullYear(r.getFullYear()),r.getTime()-s.getTime()}e.exports=t.default})(IP,va);const gd=cm(va);function LP(e,t){var n=YP(t);return n.formatToParts?NP(n,e):FP(n,e)}var RP={year:0,month:1,day:2,hour:3,minute:4,second:5};function NP(e,t){try{for(var n=e.formatToParts(t),r=[],s=0;s=0&&(r[o]=parseInt(n[s].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function FP(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Ti={};function YP(e){if(!Ti[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Ti[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ti[e]}function qm(e,t,n,r,s,o,a){var i=new Date(0);return i.setUTCFullYear(e,t,n),i.setUTCHours(r,s,o,a),i}var yd=36e5,BP=6e4,Ei={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function HP(e,t,n){var r,s;if(!e||(r=Ei.timezoneZ.exec(e),r))return 0;var o;if(r=Ei.timezoneHH.exec(e),r)return o=parseInt(r[1],10),bd(o)?-(o*yd):NaN;if(r=Ei.timezoneHHMM.exec(e),r){o=parseInt(r[1],10);var a=parseInt(r[2],10);return bd(o,a)?(s=Math.abs(o)*yd+a*BP,o>0?-s:s):NaN}if(WP(e)){t=new Date(t||Date.now());var i=jP(t),l=ml(i,e),u=VP(t,l,e);return-u}return NaN}function jP(e){return qm(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function ml(e,t){var n=LP(e,t),r=qm(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=e.getTime(),o=s%1e3;return s-=o>=0?o:1e3+o,r-s}function VP(e,t,n){var r=e.getTime(),s=r-t,o=ml(new Date(s),n);if(t===o)return t;s-=o-t;var a=ml(new Date(s),n);return o===a?o:Math.max(o,a)}function bd(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var wd={};function WP(e){if(wd[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),wd[e]=!0,!0}catch{return!1}}var UP=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const zP=UP;var Oi=36e5,_d=6e4,KP=2,vt={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:zP};function GP(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?KP:AP(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var s=qP(e),o=ZP(s.date,r),a=o.year,i=o.restDateString,l=JP(i,a);if(isNaN(l))return new Date(NaN);if(l){var u=l.getTime(),c=0,f;if(s.time&&(c=XP(s.time),isNaN(c)))return new Date(NaN);if(s.timeZone||n.timeZone){if(f=HP(s.timeZone||n.timeZone,new Date(u+c)),isNaN(f))return new Date(NaN)}else f=gd(new Date(u+c)),f=gd(new Date(u+c+f));return new Date(u+c+f)}else return new Date(NaN)}function qP(e){var t={},n=vt.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=vt.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var s=vt.timeZone.exec(r);s?(t.time=r.replace(s[1],""),t.timeZone=s[1].trim()):t.time=r}return t}function ZP(e,t){var n=vt.YYY[t],r=vt.YYYYY[t],s;if(s=vt.YYYY.exec(e)||r.exec(e),s){var o=s[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(s=vt.YY.exec(e)||n.exec(e),s){var a=s[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function JP(e,t){if(t===null)return null;var n,r,s,o;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=vt.MM.exec(e),n)return r=new Date(0),s=parseInt(n[1],10)-1,Cd(t,s)?(r.setUTCFullYear(t,s),r):new Date(NaN);if(n=vt.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return tA(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=vt.MMDD.exec(e),n){r=new Date(0),s=parseInt(n[1],10)-1;var i=parseInt(n[2],10);return Cd(t,s,i)?(r.setUTCFullYear(t,s,i),r):new Date(NaN)}if(n=vt.Www.exec(e),n)return o=parseInt(n[1],10)-1,Sd(t,o)?Dd(t,o):new Date(NaN);if(n=vt.WwwD.exec(e),n){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return Sd(t,o,l)?Dd(t,o,l):new Date(NaN)}return null}function XP(e){var t,n,r;if(t=vt.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Mi(n)?n%24*Oi:NaN;if(t=vt.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Mi(n,r)?n%24*Oi+r*_d:NaN;if(t=vt.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var s=parseFloat(t[3].replace(",","."));return Mi(n,r,s)?n%24*Oi+r*_d+s*1e3:NaN}return null}function Dd(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var s=r.getUTCDay()||7,o=t*7+n+1-s;return r.setUTCDate(r.getUTCDate()+o),r}var QP=[31,28,31,30,31,30,31,31,30,31,30,31],eA=[31,29,31,30,31,30,31,31,30,31,30,31];function Zm(e){return e%400===0||e%4===0&&e%100!==0}function Cd(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=Zm(e);if(r&&n>eA[t]||!r&&n>QP[t])return!1}return!0}function tA(e,t){if(t<1)return!1;var n=Zm(e);return!(n&&t>366||!n&&t>365)}function Sd(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Mi(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function it(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function jo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jo=function(n){return typeof n}:jo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jo(e)}function $n(e){it(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||jo(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ds(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var nA={};function ku(){return nA}function pr(e,t){var n,r,s,o,a,i,l,u;it(1,arguments);var c=ku(),f=ds((n=(r=(s=(o=t?.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(i=a.options)===null||i===void 0?void 0:i.weekStartsOn)!==null&&s!==void 0?s:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=$n(e),h=d.getDay(),v=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(f+1,0,h),v.setHours(0,0,0,0);var m=pr(v,t),p=new Date(0);p.setFullYear(f,0,h),p.setHours(0,0,0,0);var b=pr(p,t);return c.getTime()>=m.getTime()?f+1:c.getTime()>=b.getTime()?f:f-1}function uA(e,t){var n,r,s,o,a,i,l,u;it(1,arguments);var c=ku(),f=ds((n=(r=(s=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(i=a.options)===null||i===void 0?void 0:i.firstWeekContainsDate)!==null&&s!==void 0?s:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),d=lA(e,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var v=pr(h,t);return v}var cA=6048e5;function fA(e,t){it(1,arguments);var n=$n(e),r=pr(n,t).getTime()-uA(n,t).getTime();return Math.round(r/cA)+1}function ma(e){return it(1,arguments),pr(e,{weekStartsOn:1})}function dA(e){it(1,arguments);var t=$n(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var s=ma(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=ma(o);return t.getTime()>=s.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function hA(e){it(1,arguments);var t=dA(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=ma(n);return r}var vA=6048e5;function mA(e){it(1,arguments);var t=$n(e),n=ma(t).getTime()-hA(t).getTime();return Math.round(n/vA)+1}function ht(e,t){it(2,arguments);var n=$n(e),r=ds(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function pa(e,t){it(2,arguments);var n=$n(e),r=ds(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var s=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return s>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),s),n)}function Td(e,t){it(2,arguments);var n=ds(t);return pa(e,n*12)}const pA={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function gA({monthComps:e,prevMonthComps:t,nextMonthComps:n},r){const s=[],{firstDayOfWeek:o,firstWeekday:a,isoWeeknumbers:i,weeknumbers:l,numDays:u,numWeeks:c}=e,f=a+(a{const l=Math.floor(i/7);let u=o[l];return u||(u={id:`week-${l+1}`,title:"",week:a.week,weekPosition:a.weekPosition,weeknumber:a.weeknumber,isoWeeknumber:a.isoWeeknumber,weeknumberDisplay:t?a.weeknumber:n?a.isoWeeknumber:void 0,days:[]},o[l]=u),u.days.push(a),o},Array(e.length/nt));return s.forEach(o=>{const a=o.days[0],i=o.days[o.days.length-1];a.month===i.month?o.title=`${r.formatDate(a.date,"MMMM YYYY")}`:a.year===i.year?o.title=`${r.formatDate(a.date,"MMM")} - ${r.formatDate(i.date,"MMM YYYY")}`:o.title=`${r.formatDate(a.date,"MMM YYYY")} - ${r.formatDate(i.date,"MMM YYYY")}`}),s}function bA(e,t){return e.days.map(n=>({label:t.formatDate(n.date,t.masks.weekdays),weekday:n.weekday}))}function wA(e,t){return`${t}.${Oe(e,2)}`}function Jm(e,t,n){return Gm(n.getDateParts(n.toDate(e)),pA[t])}function Xm({day:e,week:t,month:n,year:r},s,o,a){if(o==="daily"&&e){const i=new Date(r,n-1,e),l=ht(i,s);return{day:l.getDate(),month:l.getMonth()+1,year:l.getFullYear()}}else if(o==="weekly"&&t){const l=a.getMonthParts(n,r).firstDayOfMonth,u=ht(l,(t-1+s)*7),c=a.getDateParts(u);return{week:c.week,month:c.month,year:c.year}}else{const i=new Date(r,n-1,1),l=pa(i,s);return{month:l.getMonth()+1,year:l.getFullYear()}}}function sn(e){return e!=null&&e.month!=null&&e.year!=null}function pl(e,t){return!sn(e)||!sn(t)?!1:(e=e,t=t,e.year!==t.year?e.yeart.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:e.day&&t.day&&e.day!==t.day?e.day>t.day:!1)}function _A(e,t,n){return(e||!1)&&!pl(e,t)&&!ga(e,n)}function DA(e,t){return!e&&t||e&&!t?!1:!e&&!t?!0:(e=e,t=t,e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day)}function CA(e,t,n,r){if(!sn(e)||!sn(t))return[];const s=[];for(;!ga(e,t);)s.push(e),e=Xm(e,1,n,r);return s}function Qm(e){const{day:t,week:n,month:r,year:s}=e;let o=`${s}-${Oe(r,2)}`;return n&&(o=`${o}-w${n}`),t&&(o=`${o}-${Oe(t,2)}`),o}function SA(e,t){const{month:n,year:r,showWeeknumbers:s,showIsoWeeknumbers:o}=e,a=new Date(r,n-1,15),i=t.getMonthParts(n,r),l=t.getPrevMonthParts(n,r),u=t.getNextMonthParts(n,r),c=gA({monthComps:i,prevMonthComps:l,nextMonthComps:u},t),f=yA(c,s,o,t),d=bA(f[0],t);return{id:Qm(e),month:n,year:r,monthTitle:t.formatDate(a,t.masks.title),shortMonthLabel:t.formatDate(a,"MMM"),monthLabel:t.formatDate(a,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:i,prevMonthComps:l,nextMonthComps:u,days:c,weeks:f,weekdays:d}}function $A(e,t){const{day:n,week:r,view:s,trimWeeks:o}=e,a={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(s){case"daily":{let i=a.days.find(u=>u.inMonth);n?i=a.days.find(u=>u.day===n&&u.inMonth)||i:r&&(i=a.days.find(u=>u.week===r&&u.inMonth));const l=a.weeks[i.week-1];a.viewWeeks=[l],a.viewDays=[i],a.week=i.week,a.weekTitle=l.title,a.day=i.day,a.dayTitle=i.ariaLabel,a.title=a.dayTitle;break}case"weekly":{a.week=r||1;const i=a.weeks[a.week-1];a.viewWeeks=[i],a.viewDays=i.days,a.weekTitle=i.title,a.title=a.weekTitle;break}default:{a.title=a.monthTitle,a.viewWeeks=a.weeks.slice(0,o?a.monthComps.numWeeks:void 0),a.viewDays=a.days;break}}return a}class Ed{constructor(t,n,r){se(this,"keys",[]),se(this,"store",{}),this.size=t,this.createKey=n,this.createItem=r}get(...t){const n=this.createKey(...t);return this.store[n]}getOrSet(...t){const n=this.createKey(...t);if(this.store[n])return this.store[n];const r=this.createItem(...t);if(this.keys.length>=this.size){const s=this.keys.shift();s!=null&&delete this.store[s]}return this.keys.push(n),this.store[n]=r,r}}class jr{constructor(t,n=new ya){se(this,"order"),se(this,"locale"),se(this,"start",null),se(this,"end",null),se(this,"repeat",null);var r;this.locale=n;const{start:s,end:o,span:a,order:i,repeat:l}=t;Hr(s)&&(this.start=n.getDateParts(s)),Hr(o)?this.end=n.getDateParts(o):this.start!=null&&a&&(this.end=n.getDateParts(ht(this.start.date,a-1))),this.order=i??0,l&&(this.repeat=new ba({from:(r=this.start)==null?void 0:r.date,...l},{locale:this.locale}))}static fromMany(t,n){return(Bt(t)?t:[t]).filter(r=>r).map(r=>jr.from(r,n))}static from(t,n){if(t instanceof jr)return t;const r={start:null,end:null};return t!=null&&(Bt(t)?(r.start=t[0]??null,r.end=t[1]??null):bn(t)?Object.assign(r,t):(r.start=t,r.end=t)),r.start!=null&&(r.start=new Date(r.start)),r.end!=null&&(r.end=new Date(r.end)),new jr(r,n)}get opts(){const{order:t,locale:n}=this;return{order:t,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:n}=this;return t&&n&&t.year===n.year&&t.month===n.month&&t.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(t){var n,r;return((n=this.start)==null?void 0:n.dayIndex)===t.dayIndex||!!((r=this.repeat)!=null&&r.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var n,r;return this.intersectsDayRange(((n=t.start)==null?void 0:n.dayIndex)??-1/0,((r=t.end)==null?void 0:r.dayIndex)??1/0)}intersectsDayRange(t,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex{var d,h;if(n.startsOnDay(f)){const v=n.daySpan<1/0?n.daySpan:1;l={startDay:f.dayIndex,startTime:((d=n.start)==null?void 0:d.time)??0,endDay:f.dayIndex+v-1,endTime:((h=n.end)==null?void 0:h.time)??Vo},this.getRangeRecords(t).push(l)}}):n.intersectsDayRange(u,c)&&(l={startDay:((s=n.start)==null?void 0:s.dayIndex)??-1/0,startTime:((o=n.start)==null?void 0:o.time)??-1/0,endDay:((a=n.end)==null?void 0:a.dayIndex)??1/0,endTime:((i=n.end)==null?void 0:i.time)??1/0},this.getRangeRecords(t).push(l)),l}getRangeRecords(t){let n=this.records[t.key];return n||(n={ranges:[],data:t},this.records[t.key]=n),n.ranges}getCell(t,n){return this.getCells(n).find(o=>o.data.key===t)}cellExists(t,n){const r=this.records[t];return r==null?!1:r.ranges.some(s=>s.startDay<=n&&s.endDay>=n)}getCells(t){const n=Object.values(this.records),r=[],{dayIndex:s}=t;return n.forEach(({data:o,ranges:a})=>{a.filter(i=>i.startDay<=s&&i.endDay>=s).forEach(i=>{const l=s===i.startDay,u=s===i.endDay,c=l?i.startTime:0,f=new Date(t.startDate.getTime()+c),d=u?i.endTime:Vo,h=new Date(t.endDate.getTime()+d),v=c===0&&d===Vo,m=o.order||0;r.push({...i,data:o,onStart:l,onEnd:u,startTime:c,startDate:f,endTime:d,endDate:h,allDay:v,order:m})})}),r.sort((o,a)=>o.order-a.order),r}}const wn={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};wn.en=wn["en-US"];wn.es=wn["es-ES"];wn.no=wn.nb;wn.zh=wn["zh-CN"];const EA=Object.entries(wn).reduce((e,[t,{dow:n,L:r}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:r}},e),{}),OA="MMMM YYYY",MA="W",kA="MMM",xA="h A",PA=["L","YYYY-MM-DD","YYYY/MM/DD"],AA=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],IA=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],LA=["h:mm A"],RA=["HH:mm"],NA="WWW, MMM D, YYYY",FA=["L","YYYY-MM-DD","YYYY/MM/DD"],YA="iso",BA="YYYY-MM-DDTHH:mm:ss.SSSZ",HA={title:OA,weekdays:MA,navMonths:kA,hours:xA,input:PA,inputDateTime:AA,inputDateTime24hr:IA,inputTime:LA,inputTime24hr:RA,dayPopover:NA,data:FA,model:YA,iso:BA},jA=300,VA=60,WA=80,UA={maxSwipeTime:jA,minHorizontalSwipeDistance:VA,maxVerticalSwipeDistance:WA},zA={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:UA,masks:HA,locales:EA,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},Vr=je(zA),KA=w(()=>vx(Vr.locales,e=>(e.masks=ts(e.masks,Vr.masks),e))),jn=e=>typeof window<"u"&&zm(window.__vcalendar__,e)?ar(window.__vcalendar__,e):ar(Vr,e),GA=(e,t)=>(e.config.globalProperties.$VCalendar=Vr,Object.assign(Vr,ts(t,Vr))),qA=12,ZA=5;function JA(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let r;rn(e)?r=e:zm(e,"id")&&(r=e.id),r=(r||n).toLowerCase();const s=Object.keys(t),o=l=>s.find(u=>u.toLowerCase()===l);r=o(r)||o(r.substring(0,2))||n;const a={...t["en-IE"],...t[r],id:r,monthCacheSize:qA,pageCacheSize:ZA};return bn(e)?ts(e,a):a}class ya{constructor(t=void 0,n){se(this,"id"),se(this,"daysInWeek"),se(this,"firstDayOfWeek"),se(this,"masks"),se(this,"timezone"),se(this,"hourLabels"),se(this,"dayNames"),se(this,"dayNamesShort"),se(this,"dayNamesShorter"),se(this,"dayNamesNarrow"),se(this,"monthNames"),se(this,"monthNamesShort"),se(this,"relativeTimeNames"),se(this,"amPm",["am","pm"]),se(this,"monthCache"),se(this,"pageCache");const{id:r,firstDayOfWeek:s,masks:o,monthCacheSize:a,pageCacheSize:i}=JA(t,KA.value);this.monthCache=new Ed(a,bI,wI),this.pageCache=new Ed(i,Qm,SA),this.id=r,this.daysInWeek=nt,this.firstDayOfWeek=xP(s,1,nt),this.masks=o,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=ki("long",this.id),this.dayNamesShort=ki("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(l=>l.substring(0,2)),this.dayNamesNarrow=ki("narrow",this.id),this.monthNames=Ad("long",this.id),this.monthNamesShort=Ad("short",this.id),this.relativeTimeNames=CI(this.id)}formatDate(t,n){return OI(t,n,this)}parseDate(t,n){return Id(t,n,this)}toDate(t,n={}){const r=new Date(NaN);let s=r;const{fillDate:o,mask:a,patch:i,rules:l}=n;if(Kt(t)?(n.type="number",s=new Date(+t)):rn(t)?(n.type="string",s=t?Id(t,a||"iso",this):r):Hr(t)?(n.type="date",s=new Date(t.getTime())):xu(t)&&(n.type="object",s=this.getDateFromParts(t)),s&&(i||l)){let u=this.getDateParts(s);if(i&&o!=null){const c=this.getDateParts(this.toDate(o));u=this.getDateParts(this.toDate({...c,...Gm(u,uI[i])}))}l&&(u=EI(u,l)),s=this.getDateFromParts(u)}return s||r}toDateOrNull(t,n={}){const r=this.toDate(t,n);return isNaN(r.getTime())?null:r}fromDate(t,{type:n,mask:r}={}){switch(n){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,r||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return jr.from(t,this)}ranges(t){return jr.fromMany(t,this)}getDateParts(t){return yI(t,this)}getDateFromParts(t){return cp(t,this.timezone)}getDateFromParams(t,n,r,s,o,a,i){return this.getDateFromParts({year:t,month:n,day:r,hours:s,minutes:o,seconds:a,milliseconds:i})}getPage(t){const n=this.pageCache.getOrSet(t,this);return $A(t,n)}getMonthParts(t,n){const{firstDayOfWeek:r}=this;return this.monthCache.getOrSet(t,n,r)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,n){return t===1?this.getMonthParts(12,n-1):this.getMonthParts(t-1,n)}getNextMonthParts(t,n){return t===12?this.getMonthParts(1,n+1):this.getMonthParts(t+1,n)}getHourLabels(){return DI().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var kr=(e=>(e.Any="any",e.All="all",e))(kr||{}),ep=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(ep||{}),tp=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(tp||{}),np=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(np||{});class XA{constructor(t,n,r){se(this,"validated",!0),this.type=t,this.interval=n,this.from=r,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(t){if(!this.validated)return!0;const{date:n}=t;switch(this.type){case"days":return Pu(this.from.date,n)%this.interval===0;case"weeks":return pI(this.from.date,n)%this.interval===0;case"months":return gI(this.from.date,n)%this.interval===0;case"years":return up(this.from.date,n)%this.interval===0;default:return!1}}}class hs{constructor(t,n,r,s){se(this,"components",[]),this.type=t,this.validator=r,this.getter=s,this.components=this.normalizeComponents(n)}static create(t,n){switch(t){case"days":return new QA(n);case"weekdays":return new eI(n);case"weeks":return new tI(n);case"months":return new nI(n);case"years":return new rI(n)}}normalizeComponents(t){if(this.validator(t))return[t];if(!Bt(t))return[];const n=[];return t.forEach(r=>{if(!this.validator(r)){console.error(`Component value ${r} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(r)}),n}passes(t){return this.getter(t).some(s=>this.components.includes(s))}}class QA extends hs{constructor(t){super("days",t,aI,({day:n,dayFromEnd:r})=>[n,-r])}}class eI extends hs{constructor(t){super("weekdays",t,gl,({weekday:n})=>[n])}}class tI extends hs{constructor(t){super("weeks",t,iI,({week:n,weekFromEnd:r})=>[n,-r])}}class nI extends hs{constructor(t){super("months",t,lI,({month:n})=>[n])}}class rI extends hs{constructor(t){super("years",t,Kt,({year:n})=>[n])}}class sI{constructor(t,n){se(this,"components"),this.type=t,this.components=this.normalizeComponents(n)}normalizeArrayConfig(t){const n=[];return t.forEach((r,s)=>{if(Kt(r)){if(s===0)return;if(!Od(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!gl(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],r])}else Bt(r)&&n.push(...this.normalizeArrayConfig(r))}),n}normalizeComponents(t){const n=[];return t.forEach((r,s)=>{if(Kt(r)){if(s===0)return;if(!Od(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!gl(r)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],r])}else Bt(r)&&n.push(...this.normalizeArrayConfig(r))}),n}passes(t){const{weekday:n,weekdayOrdinal:r,weekdayOrdinalFromEnd:s}=t;return this.components.some(([o,a])=>(o===r||o===-s)&&n===a)}}class oI{constructor(t){se(this,"type","function"),se(this,"validated",!0),this.fn=t,Dr(t)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(t){return this.validated?this.fn(t):!0}}class ba{constructor(t,n={},r){se(this,"validated",!0),se(this,"config"),se(this,"type",kr.Any),se(this,"from"),se(this,"until"),se(this,"rules",[]),se(this,"locale",new ya),this.parent=r,n.locale&&(this.locale=n.locale),this.config=t,Dr(t)?(this.type=kr.All,this.rules=[new oI(t)]):Bt(t)?(this.type=kr.Any,this.rules=t.map(s=>new ba(s,n,this))):bn(t)?(this.type=kr.All,this.from=t.from?this.locale.getDateParts(t.from):r?.from,this.until=t.until?this.locale.getDateParts(t.until):r?.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const n=[];if(t.every&&(rn(t.every)&&(t.every=[1,`${t.every}s`]),Bt(t.every))){const[r=1,s=ep.Days]=t.every;n.push(new XA(s,r,this.from))}return Object.values(tp).forEach(r=>{r in t&&n.push(hs.create(r,t[r]))}),Object.values(np).forEach(r=>{r in t&&n.push(new sI(r,t[r]))}),t.on!=null&&(Bt(t.on)||(t.on=[t.on]),n.push(new ba(t.on,{locale:this.locale},this.parent))),n}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===kr.Any?this.rules.some(n=>n.passes(t)):this.rules.every(n=>n.passes(t)):!0}}function aI(e){return Kt(e)?e>=1&&e<=31:!1}function gl(e){return Kt(e)?e>=1&&e<=7:!1}function iI(e){return Kt(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function lI(e){return Kt(e)?e>=1&&e<=12:!1}function Od(e){return!(!Kt(e)||e<-5||e>5||e===0)}const uI={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},nt=7,cI=6,rp=1e3,sp=rp*60,op=sp*60,Vo=op*24,fI=[31,28,31,30,31,30,31,31,30,31,30,31],dI=["L","iso"],Es={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},ap=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,hI=/\[([^]*?)\]/gm,Md={D(e){return e.day},DD(e){return Oe(e.day,2)},d(e){return e.weekday-1},dd(e){return Oe(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return Oe(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return Oe(e.year,4)},h(e){return e.hours%12||12},hh(e){return Oe(e.hours%12||12,2)},H(e){return e.hours},HH(e){return Oe(e.hours,2)},m(e){return e.minutes},mm(e){return Oe(e.minutes,2)},s(e){return e.seconds},ss(e){return Oe(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return Oe(Math.round(e.milliseconds/10),2)},SSS(e){return Oe(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Oe(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Oe(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Oe(Math.floor(Math.abs(t)/60),2)}:${Oe(Math.abs(t)%60,2)}`}},On=/\d\d?/,vI=/\d{3}/,mI=/\d{4}/,Ds=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,kd=()=>{},xd=e=>(t,n,r)=>{const s=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~s&&(t.month=s)},ke={D:[On,(e,t)=>{e.day=t}],Do:[new RegExp(On.source+Ds.source),(e,t)=>{e.day=parseInt(t,10)}],d:[On,kd],W:[Ds,kd],M:[On,(e,t)=>{e.month=t-1}],MMM:[Ds,xd("monthNamesShort")],MMMM:[Ds,xd("monthNames")],YY:[On,(e,t)=>{const r=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?r-1:r}${t}`}],YYYY:[mI,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[vI,(e,t)=>{e.milliseconds=t}],h:[On,(e,t)=>{e.hours=t}],m:[On,(e,t)=>{e.minutes=t}],s:[On,(e,t)=>{e.seconds=t}],a:[Ds,(e,t,n)=>{const r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const r=+n[1]*60+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?r:-r}}]};ke.DD=ke.D;ke.dd=ke.d;ke.WWWW=ke.WWW=ke.WW=ke.W;ke.MM=ke.M;ke.mm=ke.m;ke.hh=ke.H=ke.HH=ke.h;ke.ss=ke.s;ke.A=ke.a;ke.ZZZZ=ke.ZZZ=ke.ZZ=ke.Z;function ip(e,t){return(mn(e)&&e||[rn(e)&&e||"YYYY-MM-DD"]).map(n=>dI.reduce((r,s)=>r.replace(s,t.masks[s]||""),n))}function xu(e){return bn(e)&&"year"in e&&"month"in e&&"day"in e}function Pd(e,t=1){const n=e.getDay()+1,r=n>=t?t-n:-(7-(t-n));return ht(e,r)}function lp(e,t,n){const r=Date.UTC(e,t-1,n);return Pu(new Date(0),new Date(r))}function Pu(e,t){return Math.round((t.getTime()-e.getTime())/Vo)}function pI(e,t){return Math.ceil(Pu(Pd(e),Pd(t))/7)}function up(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function gI(e,t){return up(e,t)*12+(t.getMonth()-e.getMonth())}function cp(e,t=""){const n=new Date,{year:r=n.getFullYear(),month:s=n.getMonth()+1,day:o=n.getDate(),hours:a=0,minutes:i=0,seconds:l=0,milliseconds:u=0}=e;if(t){const c=`${Oe(r,4)}-${Oe(s,2)}-${Oe(o,2)}T${Oe(a,2)}:${Oe(i,2)}:${Oe(l,2)}.${Oe(u,3)}`;return GP(c,{timeZone:t})}return new Date(r,s-1,o,a,i,l,u)}function yI(e,t){let n=new Date(e.getTime());t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const r=n.getMilliseconds(),s=n.getSeconds(),o=n.getMinutes(),a=n.getHours(),i=r+s*rp+o*sp+a*op,l=n.getMonth()+1,u=n.getFullYear(),c=t.getMonthParts(l,u),f=n.getDate(),d=c.numDays-f+1,h=n.getDay()+1,v=Math.floor((f-1)/7+1),m=Math.floor((c.numDays-f)/7+1),p=Math.ceil((f+Math.abs(c.firstWeekday-c.firstDayOfWeek))/7),b=c.numWeeks-p+1,S=c.weeknumbers[p],T=lp(u,l,f);return{milliseconds:r,seconds:s,minutes:o,hours:a,time:i,day:f,dayFromEnd:d,weekday:h,weekdayOrdinal:v,weekdayOrdinalFromEnd:m,week:p,weekFromEnd:b,weeknumber:S,month:l,year:u,date:n,dateTime:n.getTime(),dayIndex:T,timezoneOffset:0,isValid:!0}}function bI(e,t,n){return`${t}-${e}-${n}`}function wI(e,t,n){const r=t%4===0&&t%100!==0||t%400===0,s=new Date(t,e-1,1),o=s.getDay()+1,a=e===2&&r?29:fI[e-1],i=n-1,l=iA(s,{weekStartsOn:i}),u=[],c=[];for(let f=0;fn.format(r))}function DI(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function CI(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce((r,s)=>{const o=n.formatToParts(100,s);return r[s]=o[1].unit,r},{})}function fp(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function Ad(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return fp().map(r=>n.format(r))}function SI(e,t,n){return Kt(t)?t===e:Bt(t)?t.includes(e):Dr(t)?t(e,n):!(t.min!=null&&t.min>e||t.max!=null&&t.max{if(i.disabled)return a;if(isNaN(a))return i.value;const l=Math.abs(a-n);return Math.abs(i.value-n){const o=Es[r],a=e[r];n[r]=TI(e,o,a,s)}),n}function Id(e,t,n){return ip(t,n).map(s=>{if(typeof s!="string")throw new Error("Invalid mask");let o=e;if(o.length>1e3)return!1;let a=!0;const i={};if(s.replace(ap,c=>{if(ke[c]){const f=ke[c],d=o.search(f[0]);~d?o.replace(f[0],h=>(f[1](i,h,n),o=o.substr(d+h.length),h)):a=!1}return ke[c]?"":c.slice(1,c.length-1)}),!a)return!1;const l=new Date;i.hours!=null&&(i.isPm===!0&&+i.hours!=12?i.hours=+i.hours+12:i.isPm===!1&&+i.hours==12&&(i.hours=0));let u;return i.timezoneOffset!=null?(i.minutes=+(i.minutes||0)-+i.timezoneOffset,u=new Date(Date.UTC(i.year||l.getFullYear(),i.month||0,i.day||1,i.hours||0,i.minutes||0,i.seconds||0,i.milliseconds||0))):u=n.getDateFromParts({year:i.year||l.getFullYear(),month:(i.month||0)+1,day:i.day||1,hours:i.hours||0,minutes:i.minutes||0,seconds:i.seconds||0,milliseconds:i.milliseconds||0}),u}).find(s=>s)||new Date(e)}function OI(e,t,n){if(e==null)return"";let r=ip(t,n)[0];/Z$/.test(r)&&(n.timezone="utc");const s=[];r=r.replace(hI,(a,i)=>(s.push(i),"??"));const o=n.getDateParts(e);return r=r.replace(ap,a=>a in Md?Md[a](o,n):a.slice(1,a.length-1)),r.replace(/\?\?/g,()=>s.shift())}let MI=0;class dp{constructor(t,n,r){se(this,"key",""),se(this,"hashcode",""),se(this,"highlight",null),se(this,"content",null),se(this,"dot",null),se(this,"bar",null),se(this,"event",null),se(this,"popover",null),se(this,"customData",null),se(this,"ranges"),se(this,"hasRanges",!1),se(this,"order",0),se(this,"pinPage",!1),se(this,"maxRepeatSpan",0),se(this,"locale");const{dates:s}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++MI),this.locale=r,n.normalizeGlyphs(this),this.ranges=r.ranges(s??[]),this.hasRanges=!!mn(this.ranges),this.maxRepeatSpan=this.ranges.filter(o=>o.hasRepeat).map(o=>o.daySpan).reduce((o,a)=>Math.max(o,a),0)}intersectsRange({start:t,end:n}){if(t==null||n==null)return!1;const r=this.ranges.filter(a=>!a.hasRepeat);for(const a of r)if(a.intersectsDayRange(t.dayIndex,n.dayIndex))return!0;const s=this.ranges.filter(a=>a.hasRepeat);if(!s.length)return!1;let o=t;for(this.maxRepeatSpan>1&&(o=this.locale.getDateParts(ht(o.date,-this.maxRepeatSpan)));o.dayIndex<=n.dayIndex;){for(const a of s)if(a.startsOnDay(o))return!0;o=this.locale.getDateParts(ht(o.date,1))}return!1}}function yl(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function Js(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function hp(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function vp(e){const{visibility:t}=e,n=t==="click",r=t==="hover",s=t==="hover-focus",o=t==="focus";e.autoHide=!n;let a=!1,i=!1;const l=v=>{n&&(hp({...e,target:e.target||v.currentTarget}),v.stopPropagation())},u=v=>{a||(a=!0,(r||s)&&yl({...e,target:e.target||v.currentTarget}))},c=()=>{a&&(a=!1,(r||s&&!i)&&Js(e))},f=v=>{i||(i=!0,(o||s)&&yl({...e,target:e.target||v.currentTarget}))},d=v=>{i&&!Ho(v.currentTarget,v.relatedTarget)&&(i=!1,(o||s&&!a)&&Js(e))},h={};switch(e.visibility){case"click":h.click=l;break;case"hover":h.mousemove=u,h.mouseleave=c;break;case"focus":h.focusin=f,h.focusout=d;break;case"hover-focus":h.mousemove=u,h.mouseleave=c,h.focusin=f,h.focusout=d;break}return h}const Ld=e=>{const t=da(e);if(t==null)return;const n=t.popoverHandlers;!n||!n.length||(n.forEach(r=>r()),delete t.popoverHandlers)},Rd=(e,t)=>{const n=da(e);if(n==null)return;const r=[],s=vp(t);Object.entries(s).forEach(([o,a])=>{r.push(Nn(n,o,a))}),n.popoverHandlers=r},mp={mounted(e,t){const{value:n}=t;n&&Rd(e,n)},updated(e,t){const{oldValue:n,value:r}=t,s=n?.visibility,o=r?.visibility;s!==o&&(s&&(Ld(e),o||Js(n)),o&&Rd(e,r))},unmounted(e){Ld(e)}},kI=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:s})=>{if(!e||!e.addEventListener||!Dr(t))return null;let o=0,a=0,i=null,l=!1;function u(f){const d=f.changedTouches[0];o=d.screenX,a=d.screenY,i=new Date().getTime(),l=!0}function c(f){if(!l||!i)return;l=!1;const d=f.changedTouches[0],h=d.screenX-o,v=d.screenY-a;if(new Date().getTime()-i=r&&Math.abs(v)<=s){const p={toLeft:!1,toRight:!1};h<0?p.toLeft=!0:p.toRight=!0,t(p)}}return Nn(e,"touchstart",u,{passive:!0}),Nn(e,"touchend",c,{passive:!0}),()=>{Rn(e,"touchstart",u),Rn(e,"touchend",c)}},Wo={},xI=(e,t=10)=>{Wo[e]=Date.now()+t},PI=(e,t)=>{if(e in Wo){const n=Wo[e];if(Date.now()t.value?"dark":"light");let r,s;function o(h){t.value=h.matches}function a(){AI("matchMedia")&&(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",o),t.value=r.matches)}function i(){const{selector:h=":root",darkClass:v="dark"}=e.value,m=document.querySelector(h);t.value=m.classList.contains(v)}function l(h){const{selector:v=":root",darkClass:m="dark"}=h;if(pp()&&v&&m){const p=document.querySelector(v);p&&(s=new MutationObserver(i),s.observe(p,{attributes:!0,attributeFilter:["class"]}),t.value=p.classList.contains(m))}}function u(){f();const h=typeof e.value;h==="string"&&e.value.toLowerCase()==="system"?a():h==="object"?l(e.value):t.value=!!e.value}const c=Te(()=>e.value,()=>u(),{immediate:!0});function f(){r&&(r.removeEventListener("change",o),r=void 0),s&&(s.disconnect(),s=void 0)}function d(){f(),c()}return ss(()=>d()),{isDark:t,displayMode:n,cleanup:d}}const LI=["base","start","end","startEnd"],RI=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],NI={base:{},start:{},end:{}};function Au(e,t,n=NI){let r=e,s={};t===!0||rn(t)?(r=rn(t)?t:r,s={...n}):bn(t)&&(pd(t,LI)?s={...t}:s={base:{...t},start:{...t},end:{...t}});const o=ts(s,{start:s.startEnd,end:s.startEnd},n);return Object.entries(o).forEach(([a,i])=>{let l=r;i===!0||rn(i)?(l=rn(i)?i:l,o[a]={color:l}):bn(i)&&(pd(i,RI)?o[a]={...i}:o[a]={}),ts(o[a],{color:l})}),o}class FI{constructor(){se(this,"type","highlight")}normalizeConfig(t,n){return Au(t,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:n,onEnd:r},s){const{key:o,highlight:a}=t;if(!a)return;const{highlights:i}=s,{base:l,start:u,end:c}=a;n&&r?i.push({...u,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]}):n?(i.push({...l,key:`${o}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${l.fillMode}`,l.class]}),i.push({...u,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]})):r?(i.push({...l,key:`${o}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${l.fillMode}`,l.class]}),i.push({...c,key:o,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]})):i.push({...l,key:`${o}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]})}}class Iu{constructor(t,n){se(this,"type",""),se(this,"collectionType",""),this.type=t,this.collectionType=n}normalizeConfig(t,n){return Au(t,n)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:n,onEnd:r},s){const{key:o}=t,a=t[this.type];if(!o||!a)return;const i=s[this.collectionType],{base:l,start:u,end:c}=a;n?i.push({...u,key:o,class:[`vc-${this.type} vc-${this.type}-start vc-${u.color} vc-attr`,u.class]}):r?i.push({...c,key:o,class:[`vc-${this.type} vc-${this.type}-end vc-${c.color} vc-attr`,c.class]}):i.push({...l,key:o,class:[`vc-${this.type} vc-${this.type}-base vc-${l.color} vc-attr`,l.class]})}}class YI extends Iu{constructor(){super("content","content")}normalizeConfig(t,n){return Au("base",n)}}class BI extends Iu{constructor(){super("dot","dots")}}class HI extends Iu{constructor(){super("bar","bars")}}class jI{constructor(t){se(this,"color"),se(this,"renderers",[new YI,new FI,new BI,new HI]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(n=>{const r=n.type;t[r]!=null&&(t[r]=n.normalizeConfig(this.color,t[r]))})}prepareRender(t={}){return this.renderers.forEach(n=>{n.prepareRender(t)}),t}render(t,n){this.renderers.forEach(r=>{r.render(t,n)})}}const gp=Symbol("__vc_base_context__"),yp={color:{type:String,default:()=>jn("color")},isDark:{type:[Boolean,String,Object],default:()=>jn("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function bp(e){const t=w(()=>e.color??""),n=w(()=>e.isDark??!1),{displayMode:r}=II(n),s=w(()=>new jI(t.value)),o=w(()=>{if(e.locale instanceof ya)return e.locale;const d=bn(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new ya(d,e.timezone)}),a=w(()=>o.value.masks),i=w(()=>e.minDate),l=w(()=>e.maxDate),u=w(()=>{const d=e.disabledDates?[...e.disabledDates]:[];return i.value!=null&&d.push({start:null,end:ht(o.value.toDate(i.value),-1)}),l.value!=null&&d.push({start:ht(o.value.toDate(l.value),1),end:null}),o.value.ranges(d)}),c=w(()=>new dp({key:"disabled",dates:u.value,order:100},s.value,o.value)),f={color:t,isDark:n,displayMode:r,theme:s,locale:o,masks:a,minDate:i,maxDate:l,disabledDates:u,disabledAttribute:c};return Pt(gp,f),f}function VI(e){return Pe(gp,()=>bp(e),!0)}function wp(e){return`__vc_slot_${e}__`}function _p(e,t={}){Object.keys(e).forEach(n=>{Pt(wp(t[n]??n),e[n])})}function Dp(e){return Pe(wp(e),null)}const WI={...yp,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>jn("titlePosition")},navVisibility:{type:String,default:()=>jn("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},UI=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],Cp=Symbol("__vc_calendar_context__");function zI(e,{slots:t,emit:n}){const r=oe(null),s=oe(null),o=oe(new Date().getDate()),a=oe(!1),i=oe(Symbol()),l=oe(Symbol()),u=oe(e.view),c=oe([]),f=oe("");let d=null,h=null;_p(t);const{theme:v,color:m,displayMode:p,locale:b,masks:S,minDate:T,maxDate:M,disabledAttribute:D,disabledDates:C}=VI(e),E=w(()=>e.rows*e.columns),P=w(()=>e.step||E.value),$=w(()=>Um(c.value)??null),I=w(()=>Ar(c.value)??null),j=w(()=>e.minPage||(T.value?Q(T.value):null)),O=w(()=>e.maxPage||(M.value?Q(M.value):null)),W=w(()=>e.navVisibility),re=w(()=>!!e.showWeeknumbers),X=w(()=>!!e.showIsoWeeknumbers),ee=w(()=>u.value==="monthly"),J=w(()=>u.value==="weekly"),ue=w(()=>u.value==="daily"),we=()=>{a.value=!0,n("transition-start")},V=()=>{a.value=!1,n("transition-end"),d&&(d.resolve(!0),d=null)},fe=(N,y,F=u.value)=>Xm(N,y,F,b.value),Q=N=>Jm(N,u.value,b.value),Le=N=>{!D.value||!tt.value||(N.isDisabled=tt.value.cellExists(D.value.key,N.dayIndex))},pe=N=>{N.isFocusable=N.inMonth&&N.day===o.value},Ye=(N,y)=>{for(const F of N)for(const Z of F.days)if(y(Z)===!1)return},Re=w(()=>c.value.reduce((N,y)=>(N.push(...y.viewDays),N),[])),ye=w(()=>{const N=[];return(e.attributes||[]).forEach((y,F)=>{!y||!y.dates||N.push(new dp({...y,order:y.order||0},v.value,b.value))}),D.value&&N.push(D.value),N}),ze=w(()=>mn(ye.value)),tt=w(()=>{const N=new TA;return ye.value.forEach(y=>{y.ranges.forEach(F=>{N.render(y,F,Re.value)})}),N}),lt=w(()=>Re.value.reduce((N,y)=>(N[y.dayIndex]={day:y,cells:[]},N[y.dayIndex].cells.push(...tt.value.getCells(y)),N),{})),mt=(N,y)=>{const F=e.showWeeknumbers||e.showIsoWeeknumbers;return F==null?"":Zk(F)?F?"left":"":F.startsWith("right")?y>1?"right":F:N>1?"left":F},ut=()=>{var N,y;if(!ze.value)return null;const F=ye.value.find(He=>He.pinPage)||ye.value[0];if(!F||!F.hasRanges)return null;const[Z]=F.ranges,he=((N=Z.start)==null?void 0:N.date)||((y=Z.end)==null?void 0:y.date);return he?Q(he):null},g=()=>{if(sn($.value))return $.value;const N=ut();return sn(N)?N:Q(new Date)},_=(N,y={})=>{const{view:F=u.value,position:Z=1,force:he}=y,He=Z>0?1-Z:-(E.value+Z);let ft=fe(N,He,F),$t=fe(ft,E.value-1,F);return he||(pl(ft,j.value)?ft=j.value:ga($t,O.value)&&(ft=fe(O.value,1-E.value)),$t=fe(ft,E.value-1)),{fromPage:ft,toPage:$t}},k=(N,y,F="")=>{if(F==="none"||F==="fade")return F;if(N?.view!==y?.view)return"fade";const Z=ga(y,N),he=pl(y,N);return!Z&&!he?"fade":F==="slide-v"?he?"slide-down":"slide-up":he?"slide-right":"slide-left"},Y=(N={})=>new Promise((y,F)=>{const{position:Z=1,force:he=!1,transition:He}=N,ft=sn(N.page)?N.page:g(),{fromPage:$t}=_(ft,{position:Z,force:he}),$r=[];for(let Tr=0;Tr{const y=$.value??Q(new Date);return fe(y,N)},H=(N,y={})=>{const F=sn(N)?N:Q(N);return Object.assign(y,_(F,{...y,force:!0})),CA(y.fromPage,y.toPage,u.value,b.value).map(he=>_A(he,j.value,O.value)).some(he=>he)},K=(N,y={})=>H(R(N),y),U=w(()=>K(-P.value)),z=w(()=>K(P.value)),B=async(N,y={})=>!y.force&&!H(N,y)?!1:(y.fromPage&&!DA(y.fromPage,$.value)&&(Js({id:i.value,hideDelay:0}),y.view&&(xI("view",10),u.value=y.view),await Y({...y,page:y.fromPage,position:1,force:!0}),n("did-move",c.value)),!0),q=(N,y={})=>B(R(N),y),ne=()=>q(-P.value),te=()=>q(P.value),ie=N=>{const y=ee.value?".in-month":"",F=`.id-${b.value.getDayId(N)}${y}`,Z=`${F}.vc-focusable, ${F} .vc-focusable`,he=r.value;if(he){const He=he.querySelector(Z);if(He)return He.focus(),!0}return!1},de=async(N,y={})=>ie(N)?!0:(await B(N,y),ie(N)),Ce=(N,y)=>{o.value=N.day,n("dayclick",N,y)},_e=(N,y)=>{n("daymouseenter",N,y)},Be=(N,y)=>{n("daymouseleave",N,y)},ct=(N,y)=>{o.value=N.day,s.value=N,N.isFocused=!0,n("dayfocusin",N,y)},Vt=(N,y)=>{s.value=null,N.isFocused=!1,n("dayfocusout",N,y)},Jn=(N,y)=>{n("daykeydown",N,y);const F=N.noonDate;let Z=null;switch(y.key){case"ArrowLeft":{Z=ht(F,-1);break}case"ArrowRight":{Z=ht(F,1);break}case"ArrowUp":{Z=ht(F,-7);break}case"ArrowDown":{Z=ht(F,7);break}case"Home":{Z=ht(F,-N.weekdayPosition+1);break}case"End":{Z=ht(F,N.weekdayPositionFromEnd);break}case"PageUp":{y.altKey?Z=Td(F,-1):Z=pa(F,-1);break}case"PageDown":{y.altKey?Z=Td(F,1):Z=pa(F,1);break}}Z&&(y.preventDefault(),de(Z).catch())},fn=N=>{const y=s.value;y!=null&&Jn(y,N)},Xn=(N,y)=>{n("weeknumberclick",N,y)};Y({page:e.initialPage,position:e.initialPagePosition}),Gt(()=>{!e.disablePageSwipe&&r.value&&(h=kI(r.value,({toLeft:N=!1,toRight:y=!1})=>{N?te():y&&ne()},jn("touch")))}),ss(()=>{c.value=[],h&&h()}),Te(()=>b.value,()=>{Y()}),Te(()=>E.value,()=>Y()),Te(()=>e.view,()=>u.value=e.view),Te(()=>u.value,()=>{PI("view",()=>{Y()}),n("update:view",u.value)}),Te(()=>o.value,()=>{Ye(c.value,N=>pe(N))}),zn(()=>{n("update:pages",c.value),Ye(c.value,N=>{Le(N),pe(N)})});const Je={emit:n,containerRef:r,focusedDay:s,inTransition:a,navPopoverId:i,dayPopoverId:l,view:u,pages:c,transitionName:f,theme:v,color:m,displayMode:p,locale:b,masks:S,attributes:ye,disabledAttribute:D,disabledDates:C,attributeContext:tt,days:Re,dayCells:lt,count:E,step:P,firstPage:$,lastPage:I,canMovePrev:U,canMoveNext:z,minPage:j,maxPage:O,isMonthly:ee,isWeekly:J,isDaily:ue,navVisibility:W,showWeeknumbers:re,showIsoWeeknumbers:X,getDateAddress:Q,canMove:H,canMoveBy:K,move:B,moveBy:q,movePrev:ne,moveNext:te,onTransitionBeforeEnter:we,onTransitionAfterEnter:V,tryFocusDate:ie,focusDate:de,onKeydown:fn,onDayKeydown:Jn,onDayClick:Ce,onDayMouseenter:_e,onDayMouseleave:Be,onDayFocusin:ct,onDayFocusout:Vt,onWeeknumberClick:Xn};return Pt(Cp,Je),Je}function Sr(){const e=Pe(Cp);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const KI=Ze({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let n;const r=oe();let s=null,o=null;const a=je({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function i(V){V&&(a.direction=V.split("-")[0])}function l({placement:V,options:fe}){i(V||fe?.placement)}const u=w(()=>({placement:a.placement,strategy:a.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:l},...a.modifiers||[]],onFirstUpdate:l})),c=w(()=>{const V=a.direction==="left"||a.direction==="right";let fe="";if(a.placement){const Q=a.placement.split("-");Q.length>1&&(fe=Q[1])}return["start","top","left"].includes(fe)?V?"top":"left":["end","bottom","right"].includes(fe)?V?"bottom":"right":V?"middle":"center"});function f(){o&&(o.destroy(),o=null)}function d(){Ot(()=>{const V=da(a.target);!V||!r.value||(o&&o.state.elements.reference!==V&&f(),o?o.update():o=Y_(V,r.value,u.value))})}function h(V){Object.assign(a,Km(V,"force"))}function v(V,fe){clearTimeout(n),V>0?n=setTimeout(fe,V):fe()}function m(V){return!V||!o?!1:da(V)===o.state.elements.reference}async function p(V={}){a.force||(V.force&&(a.force=!0),v(V.showDelay??e.showDelay,()=>{a.isVisible&&(a.force=!1),h({...V,isVisible:!0}),d()}))}function b(V={}){o&&(V.target&&!m(V.target)||a.force||(V.force&&(a.force=!0),v(V.hideDelay??e.hideDelay,()=>{a.isVisible||(a.force=!1),a.isVisible=!1})))}function S(V={}){V.target!=null&&(a.isVisible&&m(V.target)?b(V):p(V))}function T(V){if(!o)return;const fe=o.state.elements.reference;if(!r.value||!fe)return;const Q=V.target;Ho(r.value,Q)||Ho(fe,Q)||b({force:!0})}function M(V){(V.key==="Esc"||V.key==="Escape")&&b()}function D({detail:V}){!V.id||V.id!==e.id||p(V)}function C({detail:V}){!V.id||V.id!==e.id||b(V)}function E({detail:V}){!V.id||V.id!==e.id||S(V)}function P(){Nn(document,"keydown",M),Nn(document,"click",T),Nn(document,"show-popover",D),Nn(document,"hide-popover",C),Nn(document,"toggle-popover",E)}function $(){Rn(document,"keydown",M),Rn(document,"click",T),Rn(document,"show-popover",D),Rn(document,"hide-popover",C),Rn(document,"toggle-popover",E)}function I(V){t("before-show",V)}function j(V){a.force=!1,t("after-show",V)}function O(V){t("before-hide",V)}function W(V){a.force=!1,f(),t("after-hide",V)}function re(V){V.stopPropagation()}function X(){a.isHovered=!0,a.isInteractive&&["hover","hover-focus"].includes(a.visibility)&&p()}function ee(){if(a.isHovered=!1,!o)return;const V=o.state.elements.reference;a.autoHide&&!a.isFocused&&(!V||V!==document.activeElement)&&["hover","hover-focus"].includes(a.visibility)&&b()}function J(){a.isFocused=!0,a.isInteractive&&["focus","hover-focus"].includes(a.visibility)&&p()}function ue(V){["focus","hover-focus"].includes(a.visibility)&&(!V.relatedTarget||!Ho(r.value,V.relatedTarget))&&(a.isFocused=!1,!a.isHovered&&a.autoHide&&b())}function we(){s!=null&&(s.disconnect(),s=null)}return Te(()=>r.value,V=>{we(),V&&(s=new ResizeObserver(()=>{o&&o.update()}),s.observe(V))}),Te(()=>a.placement,i,{immediate:!0}),Gt(()=>{P()}),ss(()=>{f(),we(),$()}),{...no(a),popoverRef:r,alignment:c,hide:b,setupPopper:d,beforeEnter:I,afterEnter:j,beforeLeave:O,afterLeave:W,onClick:re,onMouseOver:X,onMouseLeave:ee,onFocusIn:J,onFocusOut:ue}}}),qn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function GI(e,t,n,r,s,o){return G(),ae("div",{class:xe(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...a)=>e.onClick&&e.onClick(...a)),onMouseover:t[1]||(t[1]=(...a)=>e.onMouseOver&&e.onMouseOver(...a)),onMouseleave:t[2]||(t[2]=(...a)=>e.onMouseLeave&&e.onMouseLeave(...a)),onFocusin:t[3]||(t[3]=(...a)=>e.onFocusIn&&e.onFocusIn(...a)),onFocusout:t[4]||(t[4]=(...a)=>e.onFocusOut&&e.onFocusOut(...a))},[L(uo,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:Ee(()=>[e.isVisible?(G(),ae("div",qt({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[so(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[Kr(Xe(e.data),1)]),me("span",{class:xe(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):We("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const Ja=qn(KI,[["render",GI]]),qI={class:"vc-day-popover-row"},ZI={key:0,class:"vc-day-popover-row-indicator"},JI={class:"vc-day-popover-row-label"},Sp=Ze({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=w(()=>{const{content:r,highlight:s,dot:o,bar:a,popover:i}=t.attribute;return i&&i.hideIndicator?null:r?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${r.base.color}`}:s?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${s.base.color}`}:o?{class:`vc-dot vc-attr vc-${o.base.color}`}:a?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${a.base.color}`}:null});return(r,s)=>(G(),ae("div",qI,[A(n)?(G(),ae("div",ZI,[me("span",{class:xe(A(n).class)},null,2)])):We("",!0),me("div",JI,[so(r.$slots,"default",{},()=>[Kr(Xe(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),XI={inheritAttrs:!1},Rt=Ze({...XI,__name:"CalendarSlot",props:{name:null},setup(e){const n=Dp(e.name);return(r,s)=>A(n)?(G(),Ae(Pa(A(n)),Rr(qt({key:0},r.$attrs)),null,16)):so(r.$slots,"default",{key:1})}}),QI={class:"vc-day-popover-container"},eL={key:0,class:"vc-day-popover-header"},tL=Ze({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:r,masks:s,locale:o}=Sr();function a(l,u){return o.value.formatDate(l,u)}function i(l){return o.value.formatDate(l.date,s.value.dayPopover)}return(l,u)=>(G(),Ae(Ja,{id:A(t),class:xe([`vc-${A(r)}`,`vc-${A(n)}`])},{default:Ee(({data:{day:c,attributes:f},hide:d})=>[L(Rt,{name:"day-popover",day:c,"day-title":i(c),attributes:f,format:a,masks:A(s),hide:d},{default:Ee(()=>[me("div",QI,[A(s).dayPopover?(G(),ae("div",eL,Xe(i(c)),1)):We("",!0),(G(!0),ae(be,null,Ft(f,h=>(G(),Ae(Sp,{key:h.key,attribute:h},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),nL={},rL={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},sL=me("polyline",{points:"9 18 15 12 9 6"},null,-1),oL=[sL];function aL(e,t){return G(),ae("svg",rL,oL)}const iL=qn(nL,[["render",aL]]),lL={},uL={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},cL=me("polyline",{points:"15 18 9 12 15 6"},null,-1),fL=[cL];function dL(e,t){return G(),ae("svg",uL,fL)}const hL=qn(lL,[["render",dL]]),vL={},mL={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},pL=me("polyline",{points:"6 9 12 15 18 9"},null,-1),gL=[pL];function yL(e,t){return G(),ae("svg",mL,gL)}const bL=qn(vL,[["render",yL]]),wL={},_L={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},DL=me("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),CL=[DL];function SL(e,t){return G(),ae("svg",_L,CL)}const $L=qn(wL,[["render",SL]]),TL=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:bL,IconChevronLeft:hL,IconChevronRight:iL,IconClock:$L},Symbol.toStringTag,{value:"Module"})),ns=Ze({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,n=w(()=>t.width||t.size),r=w(()=>t.height||t.size),s=w(()=>TL[`Icon${t.name}`]);return(o,a)=>(G(),Ae(Pa(A(s)),{width:A(n),height:A(r),class:"vc-base-icon"},null,8,["width","height"]))}}),EL=["disabled"],OL={key:1,class:"vc-title-wrapper"},ML={type:"button",class:"vc-title"},kL=["disabled"],$p=Ze({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:n,navVisibility:r,canMovePrev:s,movePrev:o,canMoveNext:a,moveNext:i}=Sr(),l=w(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),u=w(()=>{const{page:m}=t;return{id:n.value,visibility:r.value,placement:l.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:m},isInteractive:!0}}),c=w(()=>t.page.titlePosition.includes("left")),f=w(()=>t.page.titlePosition.includes("right")),d=w(()=>t.layout?t.layout:c.value?"tu-pn":f.value?"pn-tu":"p-tu-n;"),h=w(()=>({prev:d.value.includes("p")&&!t.hideArrows,title:d.value.includes("t")&&!t.hideTitle,next:d.value.includes("n")&&!t.hideArrows})),v=w(()=>({gridTemplateColumns:d.value.split("").map(p=>{switch(p){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(m,p)=>(G(),ae("div",{class:xe(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:pn(A(v))},[A(h).prev?(G(),ae("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!A(s),onClick:p[0]||(p[0]=(...b)=>A(o)&&A(o)(...b)),onKeydown:p[1]||(p[1]=Rc((...b)=>A(o)&&A(o)(...b),["space","enter"]))},[L(Rt,{name:"header-prev-button",disabled:!A(s)},{default:Ee(()=>[L(ns,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,EL)):We("",!0),A(h).title?(G(),ae("div",OL,[L(Rt,{name:"header-title-wrapper"},{default:Ee(()=>[Ul((G(),ae("button",ML,[L(Rt,{name:"header-title",title:e.page.title},{default:Ee(()=>[me("span",null,Xe(e.page.title),1)]),_:1},8,["title"])])),[[A(mp),A(u)]])]),_:1})])):We("",!0),A(h).next?(G(),ae("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!A(a),onClick:p[2]||(p[2]=(...b)=>A(i)&&A(i)(...b)),onKeydown:p[3]||(p[3]=Rc((...b)=>A(i)&&A(i)(...b),["space","enter"]))},[L(Rt,{name:"header-next-button",disabled:!A(a)},{default:Ee(()=>[L(ns,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,kL)):We("",!0)],6))}}),Tp=Symbol("__vc_page_context__");function xL(e){const{locale:t,getDateAddress:n,canMove:r}=Sr();function s(i,l){const{month:u,year:c}=n(new Date);return fp().map((f,d)=>{const h=d+1;return{month:h,year:i,id:wA(h,i),label:t.value.formatDate(f,l),ariaLabel:t.value.formatDate(f,"MMMM"),isActive:h===e.value.month&&i===e.value.year,isCurrent:h===u&&i===c,isDisabled:!r({month:h,year:i},{position:e.value.position})}})}function o(i,l){const{year:u}=n(new Date),{position:c}=e.value,f=[];for(let d=i;d<=l;d+=1){const h=[...Array(12).keys()].some(v=>r({month:v+1,year:d},{position:c}));f.push({year:d,id:d.toString(),label:d.toString(),ariaLabel:d.toString(),isActive:d===e.value.year,isCurrent:d===u,isDisabled:!h})}return f}const a={page:e,getMonthItems:s,getYearItems:o};return Pt(Tp,a),a}function Ep(){const e=Pe(Tp);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const PL={class:"vc-nav-header"},AL=["disabled"],IL=["disabled"],LL={class:"vc-nav-items"},RL=["data-id","aria-label","disabled","onClick","onKeydown"],NL=Ze({__name:"CalendarNav",setup(e){const{masks:t,move:n}=Sr(),{page:r,getMonthItems:s,getYearItems:o}=Ep(),a=oe(!0),i=12,l=oe(r.value.year),u=oe(d(r.value.year)),c=oe(null);function f(){setTimeout(()=>{if(c.value==null)return;const Q=c.value.querySelector(".vc-nav-item:not(:disabled)");Q&&Q.focus()},10)}function d(Q){return Math.floor(Q/i)}function h(){a.value=!a.value}function v(Q){return Q*i}function m(Q){return i*(Q+1)-1}function p(){J.value&&(a.value&&S(),M())}function b(){ue.value&&(a.value&&T(),D())}function S(){l.value--}function T(){l.value++}function M(){u.value--}function D(){u.value++}const C=w(()=>s(l.value,t.value.navMonths).map(Q=>({...Q,click:()=>n({month:Q.month,year:Q.year},{position:r.value.position})}))),E=w(()=>s(l.value-1,t.value.navMonths)),P=w(()=>E.value.some(Q=>!Q.isDisabled)),$=w(()=>s(l.value+1,t.value.navMonths)),I=w(()=>$.value.some(Q=>!Q.isDisabled)),j=w(()=>o(v(u.value),m(u.value)).map(Q=>({...Q,click:()=>{l.value=Q.year,a.value=!0,f()}}))),O=w(()=>o(v(u.value-1),m(u.value-1))),W=w(()=>O.value.some(Q=>!Q.isDisabled)),re=w(()=>o(v(u.value+1),m(u.value+1))),X=w(()=>re.value.some(Q=>!Q.isDisabled)),ee=w(()=>a.value?C.value:j.value),J=w(()=>a.value?P.value:W.value),ue=w(()=>a.value?I.value:X.value),we=w(()=>Um(j.value.map(Q=>Q.year))),V=w(()=>Ar(j.value.map(Q=>Q.year))),fe=w(()=>a.value?l.value:`${we.value} - ${V.value}`);return zn(()=>{l.value=r.value.year,f()}),Te(()=>l.value,Q=>u.value=d(Q)),Gt(()=>f()),(Q,Le)=>(G(),ae("div",{class:"vc-nav-container",ref_key:"navContainer",ref:c},[me("div",PL,[me("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!A(J),onClick:p,onKeydown:Le[0]||(Le[0]=pe=>A(Ao)(pe,p))},[L(Rt,{name:"nav-prev-button",move:p,disabled:!A(J)},{default:Ee(()=>[L(ns,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,AL),me("button",{type:"button",class:"vc-nav-title vc-focus",onClick:h,onKeydown:Le[1]||(Le[1]=pe=>A(Ao)(pe,h))},Xe(A(fe)),33),me("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!A(ue),onClick:b,onKeydown:Le[2]||(Le[2]=pe=>A(Ao)(pe,b))},[L(Rt,{name:"nav-next-button",move:b,disabled:!A(ue)},{default:Ee(()=>[L(ns,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,IL)]),me("div",LL,[(G(!0),ae(be,null,Ft(A(ee),pe=>(G(),ae("button",{key:pe.label,type:"button","data-id":pe.id,"aria-label":pe.ariaLabel,class:xe(["vc-nav-item vc-focus",[pe.isActive?"is-active":pe.isCurrent?"is-current":""]]),disabled:pe.isDisabled,onClick:pe.click,onKeydown:Ye=>A(Ao)(Ye,pe.click)},Xe(pe.label),43,RL))),128))])],512))}}),Op=Ze({__name:"CalendarPageProvider",props:{page:null},setup(e){return xL(et(e,"page")),(n,r)=>so(n.$slots,"default")}}),FL=Ze({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:r}=Sr();return(s,o)=>(G(),Ae(Ja,{id:A(t),class:xe(["vc-nav-popover-container",`vc-${A(n)}`,`vc-${A(r)}`])},{default:Ee(({data:a})=>[L(Op,{page:a.page},{default:Ee(()=>[L(Rt,{name:"nav"},{default:Ee(()=>[L(NL)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),YL=Ze({directives:{popover:mp},components:{CalendarSlot:Rt},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:r,dayPopoverId:s,onDayClick:o,onDayMouseenter:a,onDayMouseleave:i,onDayFocusin:l,onDayFocusout:u,onDayKeydown:c}=Sr(),f=w(()=>e.day),d=w(()=>r.value.getCells(f.value)),h=w(()=>d.value.map(X=>X.data)),v=w(()=>({...f.value,attributes:h.value,attributeCells:d.value}));function m({data:X},{popovers:ee}){const{key:J,customData:ue,popover:we}=X;if(!we)return;const V=ld({key:J,customData:ue,attribute:X},{...we},{visibility:we.label?"hover":"click",placement:"bottom",isInteractive:!we.label});ee.splice(0,0,V)}const p=w(()=>{const X={...n.value.prepareRender({}),popovers:[]};return d.value.forEach(ee=>{n.value.render(ee,X),m(ee,X)}),X}),b=w(()=>p.value.highlights),S=w(()=>!!mn(b.value)),T=w(()=>p.value.content),M=w(()=>p.value.dots),D=w(()=>!!mn(M.value)),C=w(()=>p.value.bars),E=w(()=>!!mn(C.value)),P=w(()=>p.value.popovers),$=w(()=>P.value.map(X=>X.attribute)),I=Dp("day-content"),j=w(()=>["vc-day",...f.value.classes,{"vc-day-box-center-center":!I},{"is-not-in-month":!e.day.inMonth}]),O=w(()=>{let X;f.value.isFocusable?X="0":X="-1";const ee=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":f.value.isDisabled},ar(Ar(b.value),"contentClass"),ar(Ar(T.value),"class")||""],J={...ar(Ar(b.value),"contentStyle"),...ar(Ar(T.value),"style")};return{class:ee,style:J,tabindex:X,"aria-label":f.value.ariaLabel,"aria-disabled":!!f.value.isDisabled,role:"button"}}),W=w(()=>({click(X){o(v.value,X)},mouseenter(X){a(v.value,X)},mouseleave(X){i(v.value,X)},focusin(X){l(v.value,X)},focusout(X){u(v.value,X)},keydown(X){c(v.value,X)}})),re=w(()=>mn(P.value)?ld({id:s.value,data:{day:f,attributes:$.value}},...P.value):null);return{attributes:h,attributeCells:d,bars:C,dayClasses:j,dayContentProps:O,dayContentEvents:W,dayPopover:re,glyphs:p,dots:M,hasDots:D,hasBars:E,highlights:b,hasHighlights:S,locale:t,popovers:P}}}),BL={key:0,class:"vc-highlights vc-day-layer"},HL={key:1,class:"vc-day-layer vc-day-box-center-bottom"},jL={class:"vc-dots"},VL={key:2,class:"vc-day-layer vc-day-box-center-bottom"},WL={class:"vc-bars"};function UL(e,t,n,r,s,o){const a=vn("CalendarSlot"),i=Fy("popover");return G(),ae("div",{class:xe(e.dayClasses)},[e.hasHighlights?(G(),ae("div",BL,[(G(!0),ae(be,null,Ft(e.highlights,({key:l,wrapperClass:u,class:c,style:f})=>(G(),ae("div",{key:l,class:xe(u)},[me("div",{class:xe(c),style:pn(f)},null,6)],2))),128))])):We("",!0),L(a,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:Ee(()=>[Ul((G(),ae("div",qt(e.dayContentProps,Yy(e.dayContentEvents,!0)),[Kr(Xe(e.day.label),1)],16)),[[i,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(G(),ae("div",HL,[me("div",jL,[(G(!0),ae(be,null,Ft(e.dots,({key:l,class:u,style:c})=>(G(),ae("span",{key:l,class:xe(u),style:pn(c)},null,6))),128))])])):We("",!0),e.hasBars?(G(),ae("div",VL,[me("div",WL,[(G(!0),ae(be,null,Ft(e.bars,({key:l,class:u,style:c})=>(G(),ae("span",{key:l,class:xe(u),style:pn(c)},null,6))),128))])])):We("",!0)],2)}const zL=qn(YL,[["render",UL]]),KL={class:"vc-weekdays"},GL=["onClick"],qL={inheritAttrs:!1},ZL=Ze({...qL,__name:"CalendarPage",setup(e){const{page:t}=Ep(),{onWeeknumberClick:n}=Sr();return(r,s)=>(G(),ae("div",{class:xe(["vc-pane",`row-${A(t).row}`,`row-from-end-${A(t).rowFromEnd}`,`column-${A(t).column}`,`column-from-end-${A(t).columnFromEnd}`]),ref:"pane"},[L($p,{page:A(t),"is-lg":"","hide-arrows":""},null,8,["page"]),me("div",{class:xe(["vc-weeks",{[`vc-show-weeknumbers-${A(t).weeknumberPosition}`]:A(t).weeknumberPosition}])},[me("div",KL,[(G(!0),ae(be,null,Ft(A(t).weekdays,({weekday:o,label:a},i)=>(G(),ae("div",{key:i,class:xe(`vc-weekday vc-weekday-${o}`)},Xe(a),3))),128))]),(G(!0),ae(be,null,Ft(A(t).viewWeeks,o=>(G(),ae("div",{key:`weeknumber-${o.weeknumber}`,class:"vc-week"},[A(t).weeknumberPosition?(G(),ae("div",{key:0,class:xe(["vc-weeknumber",`is-${A(t).weeknumberPosition}`])},[me("span",{class:xe(["vc-weeknumber-content"]),onClick:a=>A(n)(o,a)},Xe(o.weeknumberDisplay),9,GL)],2)):We("",!0),(G(!0),ae(be,null,Ft(o.days,a=>(G(),Ae(zL,{key:a.id,day:a},null,8,["day"]))),128))]))),128))],2)],2))}}),JL=Ze({components:{CalendarHeader:$p,CalendarPage:ZL,CalendarNavPopover:FL,CalendarDayPopover:tL,CalendarPageProvider:Op,CalendarSlot:Rt},props:WI,emit:UI,setup(e,{emit:t,slots:n}){return zI(e,{emit:t,slots:n})}}),XL={class:"vc-pane-header-wrapper"};function QL(e,t,n,r,s,o){const a=vn("CalendarHeader"),i=vn("CalendarPage"),l=vn("CalendarSlot"),u=vn("CalendarPageProvider"),c=vn("CalendarDayPopover"),f=vn("CalendarNavPopover");return G(),ae(be,null,[me("div",qt({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=h0(()=>{},["prevent"])),ref:"containerRef"}),[me("div",{class:xe(["vc-pane-container",{"in-transition":e.inTransition}])},[me("div",XL,[e.firstPage?(G(),Ae(a,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):We("",!0)]),L(uo,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:Ee(()=>[(G(),ae("div",{key:e.pages[0].id,class:"vc-pane-layout",style:pn({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(G(!0),ae(be,null,Ft(e.pages,d=>(G(),Ae(u,{key:d.id,page:d},{default:Ee(()=>[L(l,{name:"page",page:d},{default:Ee(()=>[L(i)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),L(l,{name:"footer"})],2)],16),L(c),L(f)],64)}const Mp=qn(JL,[["render",QL]]),kp=Symbol("__vc_date_picker_context__"),eR={...yp,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>jn("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>jn("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},tR=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function nR(e,{emit:t,slots:n}){_p(n,{footer:"dp-footer"});const r=bp(e),{locale:s,masks:o,disabledAttribute:a}=r,i=oe(!1),l=oe(Symbol()),u=oe(null),c=oe(null),f=oe(["",""]),d=oe(null),h=oe(null);let v,m,p=!0;const b=w(()=>e.isRange||e.modelModifiers.range===!0),S=w(()=>b.value&&u.value!=null?u.value.start:null),T=w(()=>b.value&&u.value!=null?u.value.end:null),M=w(()=>e.mode.toLowerCase()==="date"),D=w(()=>e.mode.toLowerCase()==="datetime"),C=w(()=>e.mode.toLowerCase()==="time"),E=w(()=>!!c.value),P=w(()=>{let y="date";e.modelModifiers.number&&(y="number"),e.modelModifiers.string&&(y="string");const F=o.value.modelValue||"iso";return Le({type:y,mask:F})}),$=w(()=>K(c.value??u.value)),I=w(()=>C.value?e.is24hr?o.value.inputTime24hr:o.value.inputTime:D.value?e.is24hr?o.value.inputDateTime24hr:o.value.inputDateTime:o.value.input),j=w(()=>/[Hh]/g.test(I.value)),O=w(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(I.value)),W=w(()=>{if(j.value&&O.value)return"dateTime";if(O.value)return"date";if(j.value)return"time"}),re=w(()=>{var y;const F=((y=d.value)==null?void 0:y.$el.previousElementSibling)??void 0;return ts({},e.popover,jn("datePicker.popover"),{target:F})}),X=w(()=>vp({...re.value,id:l.value})),ee=w(()=>b.value?{start:f.value[0],end:f.value[1]}:f.value[0]),J=w(()=>{const y=["start","end"].map(F=>({input:Y(F),change:R(F),keyup:H,...e.popover&&X.value}));return b.value?{start:y[0],end:y[1]}:y[0]}),ue=w(()=>{if(!ye(u.value))return null;const y={key:"select-drag",...e.selectAttribute,dates:u.value,pinPage:!0},{dot:F,bar:Z,highlight:he,content:He}=y;return!F&&!Z&&!he&&!He&&(y.highlight=!0),y}),we=w(()=>{if(!b.value||!ye(c.value))return null;const y={key:"select-drag",...e.dragAttribute,dates:c.value},{dot:F,bar:Z,highlight:he,content:He}=y;return!F&&!Z&&!he&&!He&&(y.highlight={startEnd:{fillMode:"outline"}}),y}),V=w(()=>{const y=Bt(e.attributes)?[...e.attributes]:[];return we.value?y.unshift(we.value):ue.value&&y.unshift(ue.value),y}),fe=w(()=>Le(e.rules==="auto"?Q():e.rules??{}));function Q(){const y={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},F=M.value?0:e.timeAccuracy;return[0,1].map(Z=>{switch(F){case 0:return{hours:y.hr[Z],minutes:y.min[Z],seconds:y.sec[Z],milliseconds:y.ms[Z]};case 1:return{minutes:y.min[Z],seconds:y.sec[Z],milliseconds:y.ms[Z]};case 3:return{milliseconds:y.ms[Z]};case 4:return{};default:return{seconds:y.sec[Z],milliseconds:y.ms[Z]}}})}function Le(y){return Bt(y)?y.length===1?[y[0],y[0]]:y:[y,y]}function pe(y){return Le(y).map((F,Z)=>({...F,rules:fe.value[Z]}))}function Ye(y){return y==null?!1:Kt(y)?!isNaN(y):Hr(y)?!isNaN(y.getTime()):rn(y)?y!=="":xu(y)}function Re(y){return bn(y)&&"start"in y&&"end"in y&&Ye(y.start??null)&&Ye(y.end??null)}function ye(y){return Re(y)||Ye(y)}function ze(y,F){if(y==null&&F==null)return!0;if(y==null||F==null)return!1;const Z=Hr(y),he=Hr(F);return Z&&he?y.getTime()===F.getTime():Z||he?!1:ze(y.start,F.start)&&ze(y.end,F.end)}function tt(y){return!ye(y)||!a.value?!1:a.value.intersectsRange(s.value.range(y))}function lt(y,F,Z,he){if(!ye(y))return null;if(Re(y)){const He=s.value.toDate(y.start,{...F[0],fillDate:S.value??void 0,patch:Z}),ft=s.value.toDate(y.end,{...F[1],fillDate:T.value??void 0,patch:Z});return Vt({start:He,end:ft},he)}return s.value.toDateOrNull(y,{...F[0],fillDate:u.value,patch:Z})}function mt(y,F){return Re(y)?{start:s.value.fromDate(y.start,F[0]),end:s.value.fromDate(y.end,F[1])}:b.value?null:s.value.fromDate(y,F[0])}function ut(y,F={}){return clearTimeout(v),new Promise(Z=>{const{debounce:he=0,...He}=F;he>0?v=window.setTimeout(()=>{Z(g(y,He))},he):Z(g(y,He))})}function g(y,{config:F=P.value,patch:Z="dateTime",clearIfEqual:he=!1,formatInput:He=!0,hidePopover:ft=!1,dragging:$t=E.value,targetPriority:$r,moveToValue:Tr=!1}={}){const ai=pe(F);let pt=lt(y,ai,Z,$r);if(tt(pt)){if($t)return null;pt=u.value,ft=!1}else pt==null&&e.isRequired?pt=u.value:pt!=null&&ze(u.value,pt)&&he&&(pt=null);const yo=$t?c:u,ps=!ze(yo.value,pt);yo.value=pt,$t||(c.value=null);const gs=mt(pt,P.value);return ps&&(p=!1,t($t?"drag":"update:modelValue",gs),Ot(()=>p=!0)),ft&&!$t&&Be(),He&&_(),Tr&&Ot(()=>Xn($r??"start")),gs}function _(){Ot(()=>{const y=pe({type:"string",mask:I.value}),F=mt(c.value??u.value,y);b.value?f.value=[F&&F.start,F&&F.end]:f.value=[F,""]})}function k(y,F,Z){f.value.splice(F==="start"?0:1,1,y);const he=b.value?{start:f.value[0],end:f.value[1]||f.value[0]}:y,He={type:"string",mask:I.value};ut(he,{...Z,config:He,patch:W.value,targetPriority:F,moveToValue:!0})}function Y(y){return F=>{e.updateOnInput&&k(F.currentTarget.value,y,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function R(y){return F=>{k(F.currentTarget.value,y,{formatInput:!0,hidePopover:!1})}}function H(y){y.key==="Escape"&&ut(u.value,{formatInput:!0,hidePopover:!0})}function K(y){return b.value?[y&&y.start?s.value.getDateParts(y.start):null,y&&y.end?s.value.getDateParts(y.end):null]:[y?s.value.getDateParts(y):null]}function U(){c.value=null,_()}function z(y){t("popover-will-show",y)}function B(y){t("popover-did-show",y)}function q(y){U(),t("popover-will-hide",y)}function ne(y){t("popover-did-hide",y)}function te(y){const F={patch:"date",formatInput:!0,hidePopover:!0};if(b.value){const Z=!E.value;Z?m={start:y.startDate,end:y.endDate}:m!=null&&(m.end=y.date),ut(m,{...F,dragging:Z})}else ut(y.date,{...F,clearIfEqual:!e.isRequired})}function ie(y,F){te(y),t("dayclick",y,F)}function de(y,F){switch(F.key){case" ":case"Enter":{te(y),F.preventDefault();break}case"Escape":Be()}t("daykeydown",y,F)}function Ce(y,F){!E.value||m==null||(m.end=y.date,ut(Vt(m),{patch:"date",formatInput:!0}))}function _e(y={}){yl({...re.value,...y,isInteractive:!0,id:l.value})}function Be(y={}){Js({hideDelay:10,force:!0,...re.value,...y,id:l.value})}function ct(y){hp({...re.value,...y,isInteractive:!0,id:l.value})}function Vt(y,F){const{start:Z,end:he}=y;if(Z>he)switch(F){case"start":return{start:Z,end:Z};case"end":return{start:he,end:he};default:return{start:he,end:Z}}return{start:Z,end:he}}async function Jn(y,F={}){return h.value==null?!1:h.value.move(y,F)}async function fn(y,F={}){return h.value==null?!1:h.value.moveBy(y,F)}async function Xn(y,F={}){const Z=u.value;if(h.value==null||!ye(Z))return!1;const he=y!=="end",He=he?1:-1,ft=Re(Z)?he?Z.start:Z.end:Z,$t=Jm(ft,"monthly",s.value);return h.value.move($t,{position:He,...F})}Te(()=>e.isRange,y=>{y&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),Te(()=>b.value,()=>{g(null,{formatInput:!0})}),Te(()=>I.value,()=>_()),Te(()=>e.modelValue,y=>{p&&g(y,{formatInput:!0,hidePopover:!1})}),Te(()=>fe.value,()=>{bn(e.rules)&&g(e.modelValue,{formatInput:!0,hidePopover:!1})}),Te(()=>e.timezone,()=>{g(u.value,{formatInput:!0})});const Je=Le(P.value);u.value=lt(e.modelValue??null,Je,"dateTime"),Gt(()=>{g(e.modelValue,{formatInput:!0,hidePopover:!1})}),Ot(()=>i.value=!0);const N={...r,showCalendar:i,datePickerPopoverId:l,popoverRef:d,popoverEvents:X,calendarRef:h,isRange:b,isTimeMode:C,isDateTimeMode:D,is24hr:et(e,"is24hr"),hideTimeHeader:et(e,"hideTimeHeader"),timeAccuracy:et(e,"timeAccuracy"),isDragging:E,inputValue:ee,inputEvents:J,dateParts:$,attributes:V,rules:fe,move:Jn,moveBy:fn,moveToValue:Xn,updateValue:ut,showPopover:_e,hidePopover:Be,togglePopover:ct,onDayClick:ie,onDayKeydown:de,onDayMouseEnter:Ce,onPopoverBeforeShow:z,onPopoverAfterShow:B,onPopoverBeforeHide:q,onPopoverAfterHide:ne};return Pt(kp,N),N}function Lu(){const e=Pe(kp);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const rR=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],sR=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function oR(e){const t=Lu(),{locale:n,isRange:r,isTimeMode:s,dateParts:o,rules:a,is24hr:i,hideTimeHeader:l,timeAccuracy:u,updateValue:c}=t;function f(O){O=Object.assign(h.value,O);let W=null;if(r.value){const re=d.value?O:o.value[0],X=d.value?o.value[1]:O;W={start:re,end:X}}else W=O;c(W,{patch:"time",targetPriority:d.value?"start":"end",moveToValue:!0})}const d=w(()=>e.position===0),h=w(()=>o.value[e.position]||{isValid:!1}),v=w(()=>xu(h.value)),m=w(()=>!!h.value.isValid),p=w(()=>!l.value&&m.value),b=w(()=>{if(!v.value)return null;let O=n.value.toDate(h.value);return h.value.hours===24&&(O=new Date(O.getTime()-1)),O}),S=w({get(){return h.value.hours},set(O){f({hours:O})}}),T=w({get(){return h.value.minutes},set(O){f({minutes:O})}}),M=w({get(){return h.value.seconds},set(O){f({seconds:O})}}),D=w({get(){return h.value.milliseconds},set(O){f({milliseconds:O})}}),C=w({get(){return h.value.hours<12},set(O){O=String(O).toLowerCase()=="true";let W=S.value;O&&W>=12?W-=12:!O&&W<12&&(W+=12),f({hours:W})}}),E=w(()=>$I(h.value,a.value[e.position])),P=w(()=>rR.filter(O=>E.value.hours.some(W=>W.value===O.value))),$=w(()=>sR.filter(O=>E.value.hours.some(W=>W.value===O.value))),I=w(()=>i.value?E.value.hours:C.value?P.value:$.value),j=w(()=>{const O=[];return mn(P.value)&&O.push({value:!0,label:"AM"}),mn($.value)&&O.push({value:!1,label:"PM"}),O});return{...t,showHeader:p,timeAccuracy:u,parts:h,isValid:m,date:b,hours:S,minutes:T,seconds:M,milliseconds:D,options:E,hourOptions:I,isAM:C,isAMOptions:j,is24hr:i}}const aR=["value"],iR=["value","disabled"],lR={key:1,class:"vc-base-sizer","aria-hidden":"true"},uR={inheritAttrs:!1},Cs=Ze({...uR,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,n=w(()=>{const r=t.options.find(s=>s.value===t.modelValue);return r?.label});return(r,s)=>(G(),ae("div",{class:xe(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[me("select",qt(r.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:s[0]||(s[0]=o=>r.$emit("update:modelValue",o.target.value))}),[(G(!0),ae(be,null,Ft(e.options,o=>(G(),ae("option",{key:o.value,value:o.value,disabled:o.disabled},Xe(o.label),9,iR))),128))],16,aR),e.showIcon?(G(),Ae(ns,{key:0,name:"ChevronDown",size:"18"})):We("",!0),e.fitContent?(G(),ae("div",lR,Xe(A(n)),1)):We("",!0)],2))}}),cR={key:0,class:"vc-time-header"},fR={class:"vc-time-weekday"},dR={class:"vc-time-month"},hR={class:"vc-time-day"},vR={class:"vc-time-year"},mR={class:"vc-time-select-group"},pR=me("span",{class:"vc-time-colon"},":",-1),gR=me("span",{class:"vc-time-colon"},":",-1),yR=me("span",{class:"vc-time-decimal"},".",-1),Nd=Ze({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const r=oR(e);t(r);const{locale:s,isValid:o,date:a,hours:i,minutes:l,seconds:u,milliseconds:c,options:f,hourOptions:d,isTimeMode:h,isAM:v,isAMOptions:m,is24hr:p,showHeader:b,timeAccuracy:S}=r;return(T,M)=>(G(),ae("div",{class:xe(["vc-time-picker",[{"vc-invalid":!A(o),"vc-attached":!A(h)}]])},[L(Rt,{name:"time-header"},{default:Ee(()=>[A(b)&&A(a)?(G(),ae("div",cR,[me("span",fR,Xe(A(s).formatDate(A(a),"WWW")),1),me("span",dR,Xe(A(s).formatDate(A(a),"MMM")),1),me("span",hR,Xe(A(s).formatDate(A(a),"D")),1),me("span",vR,Xe(A(s).formatDate(A(a),"YYYY")),1)])):We("",!0)]),_:1}),me("div",mR,[L(ns,{name:"Clock",size:"17"}),L(Cs,{modelValue:A(i),"onUpdate:modelValue":M[0]||(M[0]=D=>Se(i)?i.value=D:null),modelModifiers:{number:!0},options:A(d),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),A(S)>1?(G(),ae(be,{key:0},[pR,L(Cs,{modelValue:A(l),"onUpdate:modelValue":M[1]||(M[1]=D=>Se(l)?l.value=D:null),modelModifiers:{number:!0},options:A(f).minutes,class:"vc-time-select-minutes","align-left":A(S)===2},null,8,["modelValue","options","align-left"])],64)):We("",!0),A(S)>2?(G(),ae(be,{key:1},[gR,L(Cs,{modelValue:A(u),"onUpdate:modelValue":M[2]||(M[2]=D=>Se(u)?u.value=D:null),modelModifiers:{number:!0},options:A(f).seconds,class:"vc-time-select-seconds","align-left":A(S)===3},null,8,["modelValue","options","align-left"])],64)):We("",!0),A(S)>3?(G(),ae(be,{key:2},[yR,L(Cs,{modelValue:A(c),"onUpdate:modelValue":M[3]||(M[3]=D=>Se(c)?c.value=D:null),modelModifiers:{number:!0},options:A(f).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):We("",!0),A(p)?We("",!0):(G(),Ae(Cs,{key:3,modelValue:A(v),"onUpdate:modelValue":M[4]||(M[4]=D=>Se(v)?v.value=D:null),options:A(m)},null,8,["modelValue","options"]))])],2))}}),xp=Ze({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:r,displayMode:s,isDateTimeMode:o,isTimeMode:a,isRange:i,onDayClick:l,onDayMouseEnter:u,onDayKeydown:c}=Lu(),f=i.value?[0,1]:[0];return(d,h)=>A(a)?(G(),ae("div",{key:0,class:xe(`vc-container vc-bordered vc-${A(r)} vc-${A(s)}`)},[(G(!0),ae(be,null,Ft(A(f),v=>(G(),Ae(Nd,{key:v,position:v},null,8,["position"]))),128))],2)):(G(),Ae(Mp,{key:1,attributes:A(t),ref_key:"calendarRef",ref:n,onDayclick:A(l),onDaymouseenter:A(u),onDaykeydown:A(c)},{footer:Ee(()=>[A(o)?(G(!0),ae(be,{key:0},Ft(A(f),v=>(G(),Ae(Nd,{key:v,position:v},null,8,["position"]))),128)):We("",!0),L(Rt,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),bR={inheritAttrs:!1},wR=Ze({...bR,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:r,popoverRef:s,onPopoverBeforeShow:o,onPopoverAfterShow:a,onPopoverBeforeHide:i,onPopoverAfterHide:l}=Lu();return(u,c)=>(G(),Ae(Ja,{id:A(t),placement:"bottom-start",class:xe(`vc-date-picker-content vc-${A(n)} vc-${A(r)}`),ref_key:"popoverRef",ref:s,onBeforeShow:A(o),onAfterShow:A(a),onBeforeHide:A(i),onAfterHide:A(l)},{default:Ee(()=>[L(xp,Rr(Xo(u.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),_R=Ze({inheritAttrs:!1,emits:tR,props:eR,components:{DatePickerBase:xp,DatePickerPopover:wR},setup(e,t){const n=nR(e,t),r=je(Km(n,"calendarRef","popoverRef"));return{...n,slotCtx:r}}});function DR(e,t,n,r,s,o){const a=vn("DatePickerPopover"),i=vn("DatePickerBase");return e.$slots.default?(G(),ae(be,{key:0},[so(e.$slots,"default",Rr(Xo(e.slotCtx))),L(a,Rr(Xo(e.$attrs)),null,16)],64)):(G(),Ae(i,Rr(qt({key:1},e.$attrs)),null,16))}const CR=qn(_R,[["render",DR]]),Fd=Object.freeze(Object.defineProperty({__proto__:null,Calendar:Mp,DatePicker:CR,Popover:Ja,PopoverRow:Sp},Symbol.toStringTag,{value:"Module"})),SR=(e,t={})=>{e.use(GA,t);const n=e.config.globalProperties.$VCalendar.componentPrefix;for(const r in Fd){const s=Fd[r];e.component(`${n}${r}`,s)}},$R={install:SR},mo=Symbol("eodash"),TR=()=>Br.value?.layers.toReversed(),Pp=async e=>{e=typeof e=="number"?`EPSG:${e}`:e,!(!e||la.includes(e))&&(la.push(e),await Br.value?.registerProjectionFromCode(e))},ER=async e=>{if(e=typeof e=="number"?`EPSG:${e}`:e,!e){Br.value?.setAttribute("projection","EPSG:3857");return}la.includes(e)||await Pp(e),e=Br.value?.getAttribute("projection")===e?"EPSG:3857":e,Br.value?.setAttribute("projection",e)},OR=Object.freeze(Object.defineProperty({__proto__:null,changeMapProjection:ER,getLayers:TR,registerProjection:Pp},Symbol.toStringTag,{value:"Module"}));function Ap(e,t){return function(){return e.apply(t,arguments)}}const{toString:MR}=Object.prototype,{getPrototypeOf:Ru}=Object,Xa=(e=>t=>{const n=MR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=e=>(e=e.toLowerCase(),t=>Xa(t)===e),Qa=e=>t=>typeof t===e,{isArray:vs}=Array,Xs=Qa("undefined");function kR(e){return e!==null&&!Xs(e)&&e.constructor!==null&&!Xs(e.constructor)&&Mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ip=Xt("ArrayBuffer");function xR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ip(e.buffer),t}const PR=Qa("string"),Mt=Qa("function"),Lp=Qa("number"),ei=e=>e!==null&&typeof e=="object",AR=e=>e===!0||e===!1,Uo=e=>{if(Xa(e)!=="object")return!1;const t=Ru(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},IR=Xt("Date"),LR=Xt("File"),RR=Xt("Blob"),NR=Xt("FileList"),FR=e=>ei(e)&&Mt(e.pipe),YR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mt(e.append)&&((t=Xa(e))==="formdata"||t==="object"&&Mt(e.toString)&&e.toString()==="[object FormData]"))},BR=Xt("URLSearchParams"),[HR,jR,VR,WR]=["ReadableStream","Request","Response","Headers"].map(Xt),UR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function po(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),vs(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Np=e=>!Xs(e)&&e!==ir;function bl(){const{caseless:e}=Np(this)&&this||{},t={},n=(r,s)=>{const o=e&&Rp(t,s)||s;Uo(t[o])&&Uo(r)?t[o]=bl(t[o],r):Uo(r)?t[o]=bl({},r):vs(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(po(t,(s,o)=>{n&&Mt(s)?e[o]=Ap(s,n):e[o]=s},{allOwnKeys:r}),e),KR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),GR=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},qR=(e,t,n,r)=>{let s,o,a;const i={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],(!r||r(a,e,t))&&!i[a]&&(t[a]=e[a],i[a]=!0);e=n!==!1&&Ru(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ZR=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},JR=e=>{if(!e)return null;if(vs(e))return e;let t=e.length;if(!Lp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},XR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ru(Uint8Array)),QR=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},eN=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tN=Xt("HTMLFormElement"),nN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Yd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rN=Xt("RegExp"),Fp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};po(n,(s,o)=>{let a;(a=t(s,o,e))!==!1&&(r[o]=a||s)}),Object.defineProperties(e,r)},sN=e=>{Fp(e,(t,n)=>{if(Mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},oN=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return vs(e)?r(e):r(String(e).split(t)),n},aN=()=>{},iN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,xi="abcdefghijklmnopqrstuvwxyz",Bd="0123456789",Yp={DIGIT:Bd,ALPHA:xi,ALPHA_DIGIT:xi+xi.toUpperCase()+Bd},lN=(e=16,t=Yp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function uN(e){return!!(e&&Mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cN=e=>{const t=new Array(10),n=(r,s)=>{if(ei(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=vs(r)?[]:{};return po(r,(a,i)=>{const l=n(a,s+1);!Xs(l)&&(o[i]=l)}),t[s]=void 0,o}}return r};return n(e,0)},fN=Xt("AsyncFunction"),dN=e=>e&&(ei(e)||Mt(e))&&Mt(e.then)&&Mt(e.catch),Bp=((e,t)=>e?setImmediate:t?((n,r)=>(ir.addEventListener("message",({source:s,data:o})=>{s===ir&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ir.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Mt(ir.postMessage)),hN=typeof queueMicrotask<"u"?queueMicrotask.bind(ir):typeof process<"u"&&process.nextTick||Bp,x={isArray:vs,isArrayBuffer:Ip,isBuffer:kR,isFormData:YR,isArrayBufferView:xR,isString:PR,isNumber:Lp,isBoolean:AR,isObject:ei,isPlainObject:Uo,isReadableStream:HR,isRequest:jR,isResponse:VR,isHeaders:WR,isUndefined:Xs,isDate:IR,isFile:LR,isBlob:RR,isRegExp:rN,isFunction:Mt,isStream:FR,isURLSearchParams:BR,isTypedArray:XR,isFileList:NR,forEach:po,merge:bl,extend:zR,trim:UR,stripBOM:KR,inherits:GR,toFlatObject:qR,kindOf:Xa,kindOfTest:Xt,endsWith:ZR,toArray:JR,forEachEntry:QR,matchAll:eN,isHTMLForm:tN,hasOwnProperty:Yd,hasOwnProp:Yd,reduceDescriptors:Fp,freezeMethods:sN,toObjectSet:oN,toCamelCase:nN,noop:aN,toFiniteNumber:iN,findKey:Rp,global:ir,isContextDefined:Np,ALPHABET:Yp,generateString:lN,isSpecCompliantForm:uN,toJSONObject:cN,isAsyncFn:fN,isThenable:dN,setImmediate:Bp,asap:hN};function ve(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}x.inherits(ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hp=ve.prototype,jp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{jp[e]={value:e}});Object.defineProperties(ve,jp);Object.defineProperty(Hp,"isAxiosError",{value:!0});ve.from=(e,t,n,r,s,o)=>{const a=Object.create(Hp);return x.toFlatObject(e,a,function(l){return l!==Error.prototype},i=>i!=="isAxiosError"),ve.call(a,e.message,t,n,r,s),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const vN=null;function wl(e){return x.isPlainObject(e)||x.isArray(e)}function Vp(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Hd(e,t,n){return e?e.concat(t).map(function(s,o){return s=Vp(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function mN(e){return x.isArray(e)&&!e.some(wl)}const pN=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function ti(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!x.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(s))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(x.isDate(v))return v.toISOString();if(!l&&x.isBlob(v))throw new ve("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(v)||x.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,m,p){let b=v;if(v&&!p&&typeof v=="object"){if(x.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(x.isArray(v)&&mN(v)||(x.isFileList(v)||x.endsWith(m,"[]"))&&(b=x.toArray(v)))return m=Vp(m),b.forEach(function(T,M){!(x.isUndefined(T)||T===null)&&t.append(a===!0?Hd([m],M,o):a===null?m:m+"[]",u(T))}),!1}return wl(v)?!0:(t.append(Hd(p,m,o),u(v)),!1)}const f=[],d=Object.assign(pN,{defaultVisitor:c,convertValue:u,isVisitable:wl});function h(v,m){if(!x.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),x.forEach(v,function(b,S){(!(x.isUndefined(b)||b===null)&&s.call(t,b,x.isString(S)?S.trim():S,m,d))===!0&&h(b,m?m.concat(S):[S])}),f.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return h(e),t}function jd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Nu(e,t){this._pairs=[],e&&ti(e,this,t)}const Wp=Nu.prototype;Wp.append=function(t,n){this._pairs.push([t,n])};Wp.toString=function(t){const n=t?function(r){return t.call(this,r,jd)}:jd;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function gN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Up(e,t,n){if(!t)return e;const r=n&&n.encode||gN,s=n&&n.serialize;let o;if(s?o=s(t,n):o=x.isURLSearchParams(t)?t.toString():new Nu(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Vd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}const zp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yN=typeof URLSearchParams<"u"?URLSearchParams:Nu,bN=typeof FormData<"u"?FormData:null,wN=typeof Blob<"u"?Blob:null,_N={isBrowser:!0,classes:{URLSearchParams:yN,FormData:bN,Blob:wN},protocols:["http","https","file","blob","url","data"]},Fu=typeof window<"u"&&typeof document<"u",DN=(e=>Fu&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),CN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SN=Fu&&window.location.href||"http://localhost",$N=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fu,hasStandardBrowserEnv:DN,hasStandardBrowserWebWorkerEnv:CN,origin:SN},Symbol.toStringTag,{value:"Module"})),zt={...$N,..._N};function TN(e,t){return ti(e,new zt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return zt.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function EN(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ON(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return a=!a&&x.isArray(s)?s.length:a,l?(x.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!i):((!s[a]||!x.isObject(s[a]))&&(s[a]=[]),t(n,r,s[a],o)&&x.isArray(s[a])&&(s[a]=ON(s[a])),!i)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,s)=>{t(EN(r),s,n,0)}),n}return null}function MN(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const go={transitional:zp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=x.isObject(t);if(o&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return s?JSON.stringify(Kp(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return TN(t,this.formSerializer).toString();if((i=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ti(i?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),MN(t)):t}],transformResponse:[function(t){const n=this.transitional||go.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?ve.from(i,ve.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zt.classes.FormData,Blob:zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{go.headers[e]={}});const kN=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xN=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||t[n]&&kN[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wd=Symbol("internals");function Ss(e){return e&&String(e).trim().toLowerCase()}function zo(e){return e===!1||e==null?e:x.isArray(e)?e.map(zo):String(e)}function PN(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const AN=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pi(e,t,n,r,s){if(x.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function IN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function LN(e,t){const n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,a){return this[r].call(this,t,s,o,a)},configurable:!0})})}class Dt{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(i,l,u){const c=Ss(l);if(!c)throw new Error("header name must be a non-empty string");const f=x.findKey(s,c);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||l]=zo(i))}const a=(i,l)=>x.forEach(i,(u,c)=>o(u,c,l));if(x.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(x.isString(t)&&(t=t.trim())&&!AN(t))a(xN(t),n);else if(x.isHeaders(t))for(const[i,l]of t.entries())o(l,i,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ss(t),t){const r=x.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return PN(s);if(x.isFunction(n))return n.call(this,s,r);if(x.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ss(t),t){const r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Pi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(a){if(a=Ss(a),a){const i=x.findKey(r,a);i&&(!n||Pi(r,r[i],i,n))&&(delete r[i],s=!0)}}return x.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Pi(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return x.forEach(this,(s,o)=>{const a=x.findKey(r,o);if(a){n[a]=zo(s),delete n[o];return}const i=t?IN(o):String(o).trim();i!==o&&delete n[o],n[i]=zo(s),r[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return x.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Wd]=this[Wd]={accessors:{}}).accessors,s=this.prototype;function o(a){const i=Ss(a);r[i]||(LN(s,a),r[i]=!0)}return x.isArray(t)?t.forEach(o):o(t),this}}Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Dt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});x.freezeMethods(Dt);function Ai(e,t){const n=this||go,r=t||n,s=Dt.from(r.headers);let o=r.data;return x.forEach(e,function(i){o=i.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Gp(e){return!!(e&&e.__CANCEL__)}function ms(e,t,n){ve.call(this,e??"canceled",ve.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(ms,ve,{__CANCEL__:!0});function qp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function RN(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function NN(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[s]=l,r[s]=u;let f=o,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-a{n=c,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(s=u,o||(o=setTimeout(()=>{o=null,a(s)},r-f)))},()=>s&&a(s)]}const wa=(e,t,n=3)=>{let r=0;const s=NN(50,250);return FN(o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,l=a-r,u=s(l),c=a<=i;r=a;const f={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:u||void 0,estimated:u&&i&&c?(i-a)/u:void 0,event:o,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(f)},n)},Ud=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},zd=e=>(...t)=>x.asap(()=>e(...t)),YN=zt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(a){const i=x.isString(a)?s(a):a;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}(),BN=zt.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const a=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),x.isString(r)&&a.push("path="+r),x.isString(s)&&a.push("domain="+s),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function HN(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zp(e,t){return e&&!HN(t)?jN(e,t):t}const Kd=e=>e instanceof Dt?{...e}:e;function gr(e,t){t=t||{};const n={};function r(u,c,f){return x.isPlainObject(u)&&x.isPlainObject(c)?x.merge.call({caseless:f},u,c):x.isPlainObject(c)?x.merge({},c):x.isArray(c)?c.slice():c}function s(u,c,f){if(x.isUndefined(c)){if(!x.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!x.isUndefined(c))return r(void 0,c)}function a(u,c){if(x.isUndefined(c)){if(!x.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function i(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(u,c)=>s(Kd(u),Kd(c),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||s,d=f(e[c],t[c],c);x.isUndefined(d)&&f!==i||(n[c]=d)}),n}const Jp=e=>{const t=gr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:i}=t;t.headers=a=Dt.from(a),t.url=Up(Zp(t.baseURL,t.url),e.params,e.paramsSerializer),i&&a.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let l;if(x.isFormData(n)){if(zt.hasStandardBrowserEnv||zt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(zt.hasStandardBrowserEnv&&(r&&x.isFunction(r)&&(r=r(t)),r||r!==!1&&YN(t.url))){const u=s&&o&&BN.read(o);u&&a.set(s,u)}return t},VN=typeof XMLHttpRequest<"u",WN=VN&&function(e){return new Promise(function(n,r){const s=Jp(e);let o=s.data;const a=Dt.from(s.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:u}=s,c,f,d,h,v;function m(){h&&h(),v&&v(),s.cancelToken&&s.cancelToken.unsubscribe(c),s.signal&&s.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function b(){if(!p)return;const T=Dt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),D={data:!i||i==="text"||i==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:T,config:e,request:p};qp(function(E){n(E),m()},function(E){r(E),m()},D),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(r(new ve("Request aborted",ve.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new ve("Network Error",ve.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let M=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const D=s.transitional||zp;s.timeoutErrorMessage&&(M=s.timeoutErrorMessage),r(new ve(M,D.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,p)),p=null},o===void 0&&a.setContentType(null),"setRequestHeader"in p&&x.forEach(a.toJSON(),function(M,D){p.setRequestHeader(D,M)}),x.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),i&&i!=="json"&&(p.responseType=s.responseType),u&&([d,v]=wa(u,!0),p.addEventListener("progress",d)),l&&p.upload&&([f,h]=wa(l),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",h)),(s.cancelToken||s.signal)&&(c=T=>{p&&(r(!T||T.type?new ms(null,e,p):T),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(c),s.signal&&(s.signal.aborted?c():s.signal.addEventListener("abort",c)));const S=RN(s.url);if(S&&zt.protocols.indexOf(S)===-1){r(new ve("Unsupported protocol "+S+":",ve.ERR_BAD_REQUEST,e));return}p.send(o||null)})},UN=(e,t)=>{let n=new AbortController,r;const s=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof ve?u:new ms(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{s(new ve(`timeout ${t} of ms exceeded`,ve.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",s):l.unsubscribe(s))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",s));const{signal:i}=n;return i.unsubscribe=a,[i,()=>{o&&clearTimeout(o),o=null}]},zN=function*(e,t){let n=e.byteLength;if(!t||n{const o=KN(e,t,s);let a=0,i,l=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:f}=await o.next();if(c){l(),u.close();return}let d=f.byteLength;if(n){let h=a+=d;n(h)}u.enqueue(new Uint8Array(f))}catch(c){throw l(c),c}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},ni=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xp=ni&&typeof ReadableStream=="function",_l=ni&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Qp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},GN=Xp&&Qp(()=>{let e=!1;const t=new Request(zt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qd=64*1024,Dl=Xp&&Qp(()=>x.isReadableStream(new Response("").body)),_a={stream:Dl&&(e=>e.body)};ni&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_a[t]&&(_a[t]=x.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ve(`Response type '${t}' is not supported`,ve.ERR_NOT_SUPPORT,r)})})})(new Response);const qN=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await _l(e)).byteLength},ZN=async(e,t)=>{const n=x.toFiniteNumber(e.getContentLength());return n??qN(t)},JN=ni&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:i,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=Jp(e);u=u?(u+"").toLowerCase():"text";let[h,v]=s||o||a?UN([s,o],a):[],m,p;const b=()=>{!m&&setTimeout(()=>{h&&h.unsubscribe()}),m=!0};let S;try{if(l&&GN&&n!=="get"&&n!=="head"&&(S=await ZN(c,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(x.isFormData(r)&&(E=C.headers.get("content-type"))&&c.setContentType(E),C.body){const[P,$]=Ud(S,wa(zd(l)));r=Gd(C.body,qd,P,$,_l)}}x.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:f});let T=await fetch(p);const M=Dl&&(u==="stream"||u==="response");if(Dl&&(i||M)){const C={};["status","statusText","headers"].forEach(I=>{C[I]=T[I]});const E=x.toFiniteNumber(T.headers.get("content-length")),[P,$]=i&&Ud(E,wa(zd(i),!0))||[];T=new Response(Gd(T.body,qd,P,()=>{$&&$(),M&&b()},_l),C)}u=u||"text";let D=await _a[x.findKey(_a,u)||"text"](T,e);return!M&&b(),v&&v(),await new Promise((C,E)=>{qp(C,E,{data:D,headers:Dt.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:p})})}catch(T){throw b(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new ve("Network Error",ve.ERR_NETWORK,e,p),{cause:T.cause||T}):ve.from(T,T&&T.code,e,p)}}),Cl={http:vN,xhr:WN,fetch:JN};x.forEach(Cl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zd=e=>`- ${e}`,XN=e=>x.isFunction(e)||e===null||e===!1,eg={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${i} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : -`+o.map(Zd).join(` -`):" "+Zd(o[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Cl};function Ii(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ms(null,e)}function Jd(e){return Ii(e),e.headers=Dt.from(e.headers),e.data=Ai.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eg.getAdapter(e.adapter||go.adapter)(e).then(function(r){return Ii(e),r.data=Ai.call(e,e.transformResponse,r),r.headers=Dt.from(r.headers),r},function(r){return Gp(r)||(Ii(e),r&&r.response&&(r.response.data=Ai.call(e,e.transformResponse,r.response),r.response.headers=Dt.from(r.response.headers))),Promise.reject(r)})}const tg="1.7.3",Yu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xd={};Yu.transitional=function(t,n,r){function s(o,a){return"[Axios v"+tg+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,i)=>{if(t===!1)throw new ve(s(a," has been removed"+(n?" in "+n:"")),ve.ERR_DEPRECATED);return n&&!Xd[a]&&(Xd[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,i):!0}};function QN(e,t,n){if(typeof e!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],a=t[o];if(a){const i=e[o],l=i===void 0||a(i,o,e);if(l!==!0)throw new ve("option "+o+" must be "+l,ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ve("Unknown option "+o,ve.ERR_BAD_OPTION)}}const Sl={assertOptions:QN,validators:Yu},Mn=Sl.validators;class dr{constructor(t){this.defaults=t,this.interceptors={request:new Vd,response:new Vd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=gr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Sl.assertOptions(r,{silentJSONParsing:Mn.transitional(Mn.boolean),forcedJSONParsing:Mn.transitional(Mn.boolean),clarifyTimeoutError:Mn.transitional(Mn.boolean)},!1),s!=null&&(x.isFunction(s)?n.paramsSerializer={serialize:s}:Sl.assertOptions(s,{encode:Mn.function,serialize:Mn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Dt.concat(a,o);const i=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,i.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,d;if(!l){const v=[Jd.bind(this),void 0];for(v.unshift.apply(v,i),v.push.apply(v,u),d=v.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(i=>{r.subscribe(i),o=i}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,i){r.reason||(r.reason=new ms(o,a,i),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Bu(function(s){t=s}),cancel:t}}}function eF(e){return function(n){return e.apply(null,n)}}function tF(e){return x.isObject(e)&&e.isAxiosError===!0}const $l={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($l).forEach(([e,t])=>{$l[t]=e});function ng(e){const t=new dr(e),n=Ap(dr.prototype.request,t);return x.extend(n,dr.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ng(gr(e,s))},n}const Ue=ng(go);Ue.Axios=dr;Ue.CanceledError=ms;Ue.CancelToken=Bu;Ue.isCancel=Gp;Ue.VERSION=tg;Ue.toFormData=ti;Ue.AxiosError=ve;Ue.Cancel=Ue.CanceledError;Ue.all=function(t){return Promise.all(t)};Ue.spread=eF;Ue.isAxiosError=tF;Ue.mergeConfig=gr;Ue.AxiosHeaders=Dt;Ue.formToJSON=e=>Kp(x.isHTMLForm(e)?new FormData(e):e);Ue.getAdapter=eg.getAdapter;Ue.HttpStatusCode=$l;Ue.default=Ue;const nF=(e="",t=au.stacEndpoint)=>{if(!e||e.includes("http"))return Pr.value=t,Pr;const n=t.split("/"),r=e.split("/");n.pop();for(let s=0;s{if(!e||e.includes("http"))return Ts.value=t,Ts;const n=t.split("/"),r=e.split("/");n.pop();for(let s=0;s{const n=uw();return Object.keys(t).forEach(r=>{r==="dark"?n.themes.value[e][r]=t[r]:n.themes.value[e][r]={...n.themes.value[e][r],...t[r]}}),n},oF=()=>{Gt(async()=>{if(window.location.search){const e=new URLSearchParams(window.location.search);let t,n,r;e.forEach(async(s,o)=>{switch(o){case"indicator":{const{loadSelectedSTAC:a,stac:i}=ri(),l=i?.find(u=>u.id==s);l&&await a(l.href);break}case"x":t=Number(s);break;case"y":n=Number(s);break;case"z":r=Number(s);break;case"datetime":try{Yo.value=new Date(s).toISOString()}catch{Yo.value=new Date().toISOString()}break}}),t&&n&&r&&(il.value=[t,n,r])}Te([ou,il,Yo],([e,t,n])=>{if("URLSearchParams"in window){const r=new URLSearchParams(window.location.search);e!==""&&r.set("indicator",e),t&&t.length===3&&(r.set("x",t[0]?.toFixed(4)??""),r.set("y",t[1]?.toFixed(4)??""),r.set("z",t[2]?.toFixed(4)??"")),n&&r.set("datetime",n.split("T")?.[0]??"");const s=window.location.pathname+"?"+r.toString();history.pushState(null,"",s)}})})},UY=e=>{Gt(()=>{const t=e.value?.parentElement;t?.tagName==="EOX-LAYOUT-ITEM"&&(t.classList.remove("bg-surface"),t.style.background="transparent",t.style.border="transparent")})},ri=Ow("stac",()=>{const e=oe(null),t=oe(null),n=oe(null),r=Pe(mo);async function s(i=r.stacEndpoint){await Ue.get(i).then(l=>{const u=l.data.links.map(c=>(c.title||(c.title=`${c.rel} ${c.href}`),c));e.value=u}).catch(l=>{throw new Error("error loading assigned STAC endpoint",l)})}async function o(i=""){const l=nF(i);await Ue.get(l.value).then(u=>{t.value=u.data,ou.value=t.value?.id??""}).catch(u=>{throw new Error("error loading the selected STAC",u)})}async function a(i=""){const l=rF(i);await Ue.get(l.value).then(u=>{n.value=u.data}).catch(u=>{throw new Error("error loading the selected comparison STAC",u)})}return{stac:e,loadSTAC:s,loadSelectedSTAC:o,loadSelectedCompareSTAC:a,selectedStac:t,selectedCompareStac:n}}),aF=Object.freeze(Object.defineProperty({__proto__:null,useSTAcStore:ri},Symbol.toStringTag,{value:"Module"})),iF=Object.assign({"./Actions.js":OR,"./States.js":Aw,"./stac.js":aF}),rg=(()=>{const e={};for(const[t,n]of Object.entries(iF)){const r=t.split("/").at(-1)?.slice(0,-3).toLowerCase()??"";["keys"].includes(r)||(e[r]=n)}return e})(),lF=Dw();function uF(e){window.eodashStore=rg,e.use(ww).use(lF).use($R,{}).provide(mo,au)}const cF=async e=>{const t=Pe(mo),n=r=>{Object.keys(t).forEach(s=>{t[s]=r[s]})};if(e)return n((await import(new URL(e,import.meta.url).href)).default),t;try{const r="/config.js";n((await import(new URL(r,import.meta.url).href)).default)}catch{try{n(await Qe(()=>import("./main-ddE0Djvd.js"),[]).then(async r=>await r.default))}catch{console.error("no dashboard configuration defined")}}return t},zY=async e=>e instanceof Function?await e(rg):e,fF=async(e="",t="",n=!1)=>(e&&t&&(await Qe(async()=>{const{default:s}=await import("./webfontloader-OEBPRw3i.js").then(o=>o.w);return{default:s}},__vite__mapDeps([0,1]))).default.load({classes:!1,custom:{families:[e],urls:[t]},fontactive(s,o){const a=new CSSStyleSheet,i=n?`eo-dash {font-family: ${s};}`:`* {font-family: ${s};}`;a.replaceSync(i),document.adoptedStyleSheets.push(a)},fontinactive(s,o){throw new Error(`error loading font: ${s}`)}}),e),KY=async(e,t)=>{await navigator.clipboard.writeText(e),t.value=!0,setTimeout(()=>{t.value=!1},2e3)},dF=(()=>{const e={...Object.assign({"/widgets/EodashDatePicker.vue":()=>Qe(()=>import("./EodashDatePicker-g0QWHEy-.js"),__vite__mapDeps([2,3,1,4,5,6,7,8])),"/widgets/EodashItemFilter.vue":()=>Qe(()=>import("./EodashItemFilter-BTypMvp7.js"),[]),"/widgets/EodashLayerControl.vue":()=>Qe(()=>import("./EodashLayerControl-C8O3wm-N.js"),[]),"/widgets/EodashMap.vue":()=>Qe(()=>import("./EodashMap-BDE_gmHB.js").then(t=>t.E),__vite__mapDeps([9,1,3])),"/widgets/EodashMapBtns.vue":()=>Qe(()=>import("./EodashMapBtns-BBddO65x.js"),__vite__mapDeps([10,11,12,4,5,6,7,13,14,15,16,17,18])),"/widgets/ExportState.vue":()=>Qe(()=>import("./ExportState-D-Xz2LGJ.js"),__vite__mapDeps([11,12,4,5,6,7,13,14,15,16,17])),"/widgets/PopUp.vue":()=>Qe(()=>import("./PopUp-5-tUIM9N.js"),__vite__mapDeps([12,4,5,6,7,13])),"/widgets/WidgetsContainer.vue":()=>Qe(()=>import("./WidgetsContainer-CFwZEFgj.js"),[])}),...Object.assign({})};for(const t in e){const n=t.split("/").at(-1).slice(0,-4);Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(e,t)),delete e[t]}return e})(),hF=e=>{const t=[];for(const n of e??[]){const r=Ut({component:null,props:{},title:"",id:Symbol(),layout:{x:0,y:0,h:0,w:0}});if("defineWidget"in(n??{})){const{selectedStac:s}=Mw(ri());Te(s,o=>{let a=n?.defineWidget(o);a&&(a=je(a)),r.value=r.value.id===a?.id?r.value:Qd(a)},{immediate:!0})}else r.value=Qd(n);t.push(r)}return t},Qd=e=>{const t={component:null,props:{},title:"",id:Symbol(),layout:je({x:0,y:0,h:0,w:0})};switch(e?.type){case"internal":t.component=or({loader:dF[e?.widget.name],suspensible:!0}),t.props=je(e?.widget.properties??{});break;case"web-component":t.component=or({loader:()=>Qe(()=>import("./DynamicWebComponent-DPZoYKb-.js"),[]),suspensible:!0}),t.props=je(e.widget);break;case"iframe":t.component=or({loader:()=>Qe(()=>import("./IframeWrapper-CJivyMgq.js"),[]),suspensible:!0}),t.props=je(e.widget);break;default:if(e)console.error("Widget type not found");else return t;break}return t.title=e?.title??"",t.id=e?.id??t.id,"layout"in e&&(t.layout.x=e.layout.x,t.layout.y=e.layout.y,t.layout.h=e.layout.h,t.layout.w=e.layout.w),t},vF=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},mF=t1("v-alert-title"),sg=$e({border:[Boolean,Number,String]},"border");function og(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn();return{borderClasses:w(()=>{const r=Se(e)?e.value:e.border,s=[];if(r===!0||r==="")s.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))s.push(`border-${o}`);return s})}}const pF=[null,"default","comfortable","compact"],Hu=$e({density:{type:String,default:"default",validator:e=>pF.includes(e)}},"density");function ju(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn();return{densityClasses:w(()=>`${t}--density-${e.density}`)}}const Vu=$e({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Wu(e){return{elevationClasses:w(()=>{const n=Se(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const si=$e({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function oi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn();return{roundedClasses:w(()=>{const r=Se(e)?e.value:e.rounded,s=Se(e)?e.value:e.tile,o=[];if(r===!0||r==="")o.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const a of String(r).split(" "))o.push(`rounded-${a}`);else(s||r===!1)&&o.push("rounded-0");return o})}}const Zn=$e({tag:{type:String,default:"div"}},"tag");function Uu(e){return Mv(()=>{const t=[],n={};if(e.value.background)if(tl(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&V0(e.value.background)){const r=nn(e.value.background);if(r.a==null||r.a===1){const s=Lv(r);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(tl(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Qs(e,t){const n=w(()=>({text:Se(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Uu(n);return{textColorClasses:r,textColorStyles:s}}function Li(e,t){const n=w(()=>({background:Se(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Uu(n);return{backgroundColorClasses:r,backgroundColorStyles:s}}const gF=["elevated","flat","tonal","outlined","text","plain"];function ag(e,t){return L(be,null,[e&&L("span",{key:"overlay",class:`${t}__overlay`},null),L("span",{key:"underlay",class:`${t}__underlay`},null)])}const zu=$e({color:String,variant:{type:String,default:"elevated",validator:e=>gF.includes(e)}},"variant");function ig(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn();const n=w(()=>{const{variant:o}=A(e);return`${t}--variant-${o}`}),{colorClasses:r,colorStyles:s}=Uu(w(()=>{const{variant:o,color:a}=A(e);return{[["elevated","flat"].includes(o)?"background":"text"]:a}}));return{colorClasses:r,colorStyles:s,variantClasses:n}}const lg=$e({baseColor:String,divided:Boolean,...sg(),...ln(),...Hu(),...Vu(),...si(),...Zn(),...wr(),...zu()},"VBtnGroup"),eh=At()({name:"VBtnGroup",props:lg(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=_r(e),{densityClasses:s}=ju(e),{borderClasses:o}=og(e),{elevationClasses:a}=Wu(e),{roundedClasses:i}=oi(e);Nv({VBtn:{height:"auto",baseColor:et(e,"baseColor"),color:et(e,"color"),density:et(e,"density"),flat:!0,variant:et(e,"variant")}}),br(()=>L(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,o.value,s.value,a.value,i.value,e.class],style:e.style},n))}}),yF=$e({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),bF=$e({value:null,disabled:Boolean,selectedClass:String},"group-item");function wF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=St("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=Ra();Pt(Symbol.for(`${t.description}:id`),s);const o=Pe(t,null);if(!o){if(!n)return o;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const a=et(e,"value"),i=w(()=>!!(o.disabled.value||e.disabled));o.register({id:s,value:a,disabled:i},r),yr(()=>{o.unregister(s)});const l=w(()=>o.isSelected(s)),u=w(()=>o.items.value[0].id===s),c=w(()=>o.items.value[o.items.value.length-1].id===s),f=w(()=>l.value&&[o.selectedClass.value,e.selectedClass]);return Te(l,d=>{r.emit("group:selected",{value:d})},{flush:"sync"}),{id:s,isSelected:l,isFirst:u,isLast:c,toggle:()=>o.select(s,!l.value),select:d=>o.select(s,d),selectedClass:f,value:a,disabled:i,group:o}}function _F(e,t){let n=!1;const r=je([]),s=Na(e,"modelValue",[],d=>d==null?[]:ug(r,$0(d)),d=>{const h=CF(r,d);return e.multiple?h:h[0]}),o=St("useGroup");function a(d,h){const v=d,m=Symbol.for(`${t.description}:id`),b=xr(m,o?.vnode).indexOf(h);A(v.value)==null&&(v.value=b,v.useIndexAsValue=!0),b>-1?r.splice(b,0,v):r.push(v)}function i(d){if(n)return;l();const h=r.findIndex(v=>v.id===d);r.splice(h,1)}function l(){const d=r.find(h=>!h.disabled);d&&e.mandatory==="force"&&!s.value.length&&(s.value=[d.id])}Gt(()=>{l()}),yr(()=>{n=!0}),Kl(()=>{for(let d=0;dm.id===d);if(!(h&&v?.disabled))if(e.multiple){const m=s.value.slice(),p=m.findIndex(S=>S===d),b=~p;if(h=h??!b,b&&e.mandatory&&m.length<=1||!b&&e.max!=null&&m.length+1>e.max)return;p<0&&h?m.push(d):p>=0&&!h&&m.splice(p,1),s.value=m}else{const m=s.value.includes(d);if(e.mandatory&&m)return;s.value=h??!m?[d]:[]}}function c(d){if(e.multiple,s.value.length){const h=s.value[0],v=r.findIndex(b=>b.id===h);let m=(v+d)%r.length,p=r[m];for(;p.disabled&&m!==v;)m=(m+d)%r.length,p=r[m];if(p.disabled)return;s.value=[r[m].id]}else{const h=r.find(v=>!v.disabled);h&&(s.value=[h.id])}}const f={register:a,unregister:i,selected:s,select:u,disabled:et(e,"disabled"),prev:()=>c(r.length-1),next:()=>c(1),isSelected:d=>s.value.includes(d),selectedClass:w(()=>e.selectedClass),items:w(()=>r),getItemIndex:d=>DF(r,d)};return Pt(t,f),f}function DF(e,t){const n=ug(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function ug(e,t){const n=[];return t.forEach(r=>{const s=e.find(a=>tu(r,a.value)),o=e[r];s?.value!=null?n.push(s.id):o!=null&&n.push(o.id)}),n}function CF(e,t){const n=[];return t.forEach(r=>{const s=e.findIndex(o=>o.id===r);if(~s){const o=e[s];n.push(o.value!=null?o.value:s)}}),n}const cg=Symbol.for("vuetify:v-btn-toggle"),SF=$e({...lg(),...yF()},"VBtnToggle");At()({name:"VBtnToggle",props:SF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:s,prev:o,select:a,selected:i}=_F(e,cg);return br(()=>{const l=eh.filterProps(e);return L(eh,qt({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>[n.default?.({isSelected:r,next:s,prev:o,select:a,selected:i})]})}),{next:s,prev:o,select:a}}});const $F=$e({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Fs=At(!1)({name:"VDefaultsProvider",props:$F(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:o,root:a,scoped:i}=no(e);return Nv(r,{reset:o,root:a,scoped:i,disabled:s}),()=>n.default?.()}}),TF=["x-small","small","default","large","x-large"],Ku=$e({size:{type:[String,Number],default:"default"}},"size");function Gu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn();return Mv(()=>{let n,r;return ra(TF,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:Fe(e.size),height:Fe(e.size)}),{sizeClasses:n,sizeStyles:r}})}const EF=$e({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:zs,...ln(),...Ku(),...Zn({tag:"i"}),...wr()},"VIcon"),Ko=At()({name:"VIcon",props:EF(),setup(e,t){let{attrs:n,slots:r}=t;const s=oe(),{themeClasses:o}=_r(e),{iconData:a}=aw(w(()=>s.value||e.icon)),{sizeClasses:i}=Gu(e),{textColorClasses:l,textColorStyles:u}=Qs(et(e,"color"));return br(()=>{const c=r.default?.();c&&(s.value=Ov(c).filter(d=>d.type===ao&&d.children&&typeof d.children=="string")[0]?.children);const f=!!(n.onClick||n.onClickOnce);return L(a.value.component,{tag:e.tag,icon:a.value.icon,class:["v-icon","notranslate",o.value,i.value,l.value,{"v-icon--clickable":f,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[i.value?void 0:{fontSize:Fe(e.size),height:Fe(e.size),width:Fe(e.size)},u.value,e.style],role:f?"button":void 0,"aria-hidden":!f,tabindex:f?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function fg(e,t){const n=oe(),r=Ut(!1);if(w0){const s=new IntersectionObserver(o=>{r.value=!!o.find(a=>a.isIntersecting)},t);yr(()=>{s.disconnect()}),Te(n,(o,a)=>{a&&(s.unobserve(a),r.value=!1),o&&s.observe(o)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const OF=$e({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ln(),...Ku(),...Zn({tag:"div"}),...wr()},"VProgressCircular"),MF=At()({name:"VProgressCircular",props:OF(),setup(e,t){let{slots:n}=t;const r=20,s=2*Math.PI*r,o=oe(),{themeClasses:a}=_r(e),{sizeClasses:i,sizeStyles:l}=Gu(e),{textColorClasses:u,textColorStyles:c}=Qs(et(e,"color")),{textColorClasses:f,textColorStyles:d}=Qs(et(e,"bgColor")),{intersectionRef:h,isIntersecting:v}=fg(),{resizeRef:m,contentRect:p}=Gv(),b=w(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),S=w(()=>Number(e.width)),T=w(()=>l.value?Number(e.size):p.value?p.value.width:Math.max(S.value,32)),M=w(()=>r/(1-S.value/T.value)*2),D=w(()=>S.value/T.value*M.value),C=w(()=>Fe((100-b.value)/100*s));return zn(()=>{h.value=o.value,m.value=o.value}),br(()=>L(e.tag,{ref:o,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":v.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},a.value,i.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:b.value},{default:()=>[L("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${M.value} ${M.value}`},[L("circle",{class:["v-progress-circular__underlay",f.value],style:d.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":D.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),L("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":D.value,"stroke-dasharray":s,"stroke-dashoffset":C.value},null)]),n.default&&L("div",{class:"v-progress-circular__content"},[n.default({value:b.value})])]})),{}}}),dg=$e({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function hg(e){return{dimensionStyles:w(()=>{const n={},r=Fe(e.height),s=Fe(e.maxHeight),o=Fe(e.maxWidth),a=Fe(e.minHeight),i=Fe(e.minWidth),l=Fe(e.width);return r!=null&&(n.height=r),s!=null&&(n.maxHeight=s),o!=null&&(n.maxWidth=o),a!=null&&(n.minHeight=a),i!=null&&(n.minWidth=i),l!=null&&(n.width=l),n})}}const th={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},qu=$e({location:String},"location");function Zu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Fa();return{locationStyles:w(()=>{if(!e.location)return{};const{side:o,align:a}=M0(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function i(u){return n?n(u):0}const l={};return o!=="center"&&(t?l[th[o]]=`calc(100% - ${i(o)}px)`:l[o]=0),a!=="center"?t?l[th[a]]=`calc(100% - ${i(a)}px)`:l[a]=0:(o==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),l})}}const kF=$e({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ln(),...qu({location:"top"}),...si(),...Zn(),...wr()},"VProgressLinear"),xF=At()({name:"VProgressLinear",props:kF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Na(e,"modelValue"),{isRtl:s,rtlClasses:o}=Fa(),{themeClasses:a}=_r(e),{locationStyles:i}=Zu(e),{textColorClasses:l,textColorStyles:u}=Qs(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:f}=Li(w(()=>e.bgColor||e.color)),{backgroundColorClasses:d,backgroundColorStyles:h}=Li(w(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:v,backgroundColorStyles:m}=Li(e,"color"),{roundedClasses:p}=oi(e),{intersectionRef:b,isIntersecting:S}=fg(),T=w(()=>parseFloat(e.max)),M=w(()=>parseFloat(e.height)),D=w(()=>na(parseFloat(e.bufferValue)/T.value*100,0,100)),C=w(()=>na(parseFloat(r.value)/T.value*100,0,100)),E=w(()=>s.value!==e.reverse),P=w(()=>e.indeterminate?"fade-transition":"slide-x-transition"),$=ot&&window.matchMedia?.("(forced-colors: active)").matches;function I(j){if(!b.value)return;const{left:O,right:W,width:re}=b.value.getBoundingClientRect(),X=E.value?re-j.clientX+(W-re):j.clientX-O;r.value=Math.round(X/re*T.value)}return br(()=>L(e.tag,{ref:b,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&S.value,"v-progress-linear--reverse":E.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},p.value,a.value,o.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Fe(M.value):0,"--v-progress-linear-height":Fe(M.value),...e.absolute?i.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:C.value,onClick:e.clickable&&I},{default:()=>[e.stream&&L("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[E.value?"left":"right"]:Fe(-M.value),borderTop:`${Fe(M.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${Fe(M.value/4)})`,width:Fe(100-D.value,"%"),"--v-progress-linear-stream-to":Fe(M.value*(E.value?1:-1))}},null),L("div",{class:["v-progress-linear__background",$?void 0:c.value],style:[f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),L("div",{class:["v-progress-linear__buffer",$?void 0:d.value],style:[h.value,{opacity:parseFloat(e.bufferOpacity),width:Fe(D.value,"%")}]},null),L(uo,{name:P.value},{default:()=>[e.indeterminate?L("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(j=>L("div",{key:j,class:["v-progress-linear__indeterminate",j,$?void 0:v.value],style:m.value},null))]):L("div",{class:["v-progress-linear__determinate",$?void 0:v.value],style:[m.value,{width:Fe(C.value,"%")}]},null)]}),n.default&&L("div",{class:"v-progress-linear__content"},[n.default({value:C.value,buffer:D.value})])]})),{}}}),PF=$e({loading:[Boolean,String]},"loader");function AF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn();return{loaderClasses:w(()=>({[`${t}--loading`]:e.loading}))}}function GY(e,t){let{slots:n}=t;return L("div",{class:`${e.name}__loader`},[n.default?.({color:e.color,isActive:e.active})||L(xF,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const IF=["static","relative","fixed","absolute","sticky"],vg=$e({position:{type:String,validator:e=>IF.includes(e)}},"position");function mg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn();return{positionClasses:w(()=>e.position?`${t}--${e.position}`:void 0)}}function LF(){const e=St("useRoute");return w(()=>e?.proxy?.$route)}function qY(){return St("useRouter")?.proxy?.$router}function RF(e,t){const n=Pa("RouterLink"),r=w(()=>!!(e.href||e.to)),s=w(()=>r?.value||jc(t,"click")||jc(e,"click"));if(typeof n=="string"||!("useLink"in n))return{isLink:r,isClickable:s,href:et(e,"href")};const o=w(()=>({...e,to:et(()=>e.to||"")})),a=n.useLink(o.value),i=w(()=>e.to?a:void 0),l=LF();return{isLink:r,isClickable:s,route:i.value?.route,navigate:i.value?.navigate,isActive:w(()=>i.value?e.exact?l.value?i.value.isExactActive?.value&&tu(i.value.route.value.query,l.value.query):i.value.isExactActive?.value??!1:i.value.isActive?.value??!1:!1),href:w(()=>e.to?i.value?.route.value.href:e.href)}}const NF=$e({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Ri=!1;function ZY(e,t){let n=!1,r,s;ot&&(Ot(()=>{window.addEventListener("popstate",o),r=e?.beforeEach((a,i,l)=>{Ri?n?t(l):l():setTimeout(()=>n?t(l):l()),Ri=!0}),s=e?.afterEach(()=>{Ri=!1})}),Il(()=>{window.removeEventListener("popstate",o),r?.(),s?.()}));function o(a){a.state?.replaced||(n=!0,setTimeout(()=>n=!1))}}function FF(e,t){Te(()=>e.isActive?.value,n=>{e.isLink.value&&n&&t&&Ot(()=>{t(!0)})},{immediate:!0})}const Tl=Symbol("rippleStop"),YF=80;function nh(e,t){e.style.transform=t,e.style.webkitTransform=t}function El(e){return e.constructor.name==="TouchEvent"}function pg(e){return e.constructor.name==="KeyboardEvent"}const BF=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!pg(e)){const f=t.getBoundingClientRect(),d=El(e)?e.touches[e.touches.length-1]:e;r=d.clientX-f.left,s=d.clientY-f.top}let o=0,a=.3;t._ripple?.circle?(a=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((r-o)**2+(s-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const i=`${(t.clientWidth-o*2)/2}px`,l=`${(t.clientHeight-o*2)/2}px`,u=n.center?i:`${r-o}px`,c=n.center?l:`${s-o}px`;return{radius:o,scale:a,x:u,y:c,centerX:i,centerY:l}},Da={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:o,scale:a,x:i,y:l,centerX:u,centerY:c}=BF(e,t,n),f=`${o*2}px`;s.className="v-ripple__animation",s.style.width=f,s.style.height=f,t.appendChild(r);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),nh(s,`translate(${i}, ${l}) scale3d(${a},${a},${a})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),nh(s,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},s)}};function gg(e){return typeof e>"u"||!!e}function eo(e){const t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[Tl])){if(e[Tl]=!0,El(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||pg(e),n._ripple.class&&(t.class=n._ripple.class),El(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Da.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},YF)}else Da.show(e,n,t)}}function rh(e){e[Tl]=!0}function Et(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Et(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Da.hide(t)}}function yg(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let to=!1;function bg(e){!to&&(e.keyCode===Yc.enter||e.keyCode===Yc.space)&&(to=!0,eo(e))}function wg(e){to=!1,Et(e)}function _g(e){to&&(to=!1,Et(e))}function Dg(e,t,n){const{value:r,modifiers:s}=t,o=gg(r);if(o||Da.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=s.center,e._ripple.circle=s.circle,el(r)&&r.class&&(e._ripple.class=r.class),o&&!n){if(s.stop){e.addEventListener("touchstart",rh,{passive:!0}),e.addEventListener("mousedown",rh);return}e.addEventListener("touchstart",eo,{passive:!0}),e.addEventListener("touchend",Et,{passive:!0}),e.addEventListener("touchmove",yg,{passive:!0}),e.addEventListener("touchcancel",Et),e.addEventListener("mousedown",eo),e.addEventListener("mouseup",Et),e.addEventListener("mouseleave",Et),e.addEventListener("keydown",bg),e.addEventListener("keyup",wg),e.addEventListener("blur",_g),e.addEventListener("dragstart",Et,{passive:!0})}else!o&&n&&Cg(e)}function Cg(e){e.removeEventListener("mousedown",eo),e.removeEventListener("touchstart",eo),e.removeEventListener("touchend",Et),e.removeEventListener("touchmove",yg),e.removeEventListener("touchcancel",Et),e.removeEventListener("mouseup",Et),e.removeEventListener("mouseleave",Et),e.removeEventListener("keydown",bg),e.removeEventListener("keyup",wg),e.removeEventListener("dragstart",Et),e.removeEventListener("blur",_g)}function HF(e,t){Dg(e,t,!1)}function jF(e){delete e._ripple,Cg(e)}function VF(e,t){if(t.value===t.oldValue)return;const n=gg(t.oldValue);Dg(e,t,n)}const WF={mounted:HF,unmounted:jF,updated:VF},UF=$e({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:cg},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:zs,appendIcon:zs,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...sg(),...ln(),...Hu(),...dg(),...Vu(),...bF(),...PF(),...qu(),...vg(),...si(),...NF(),...Ku(),...Zn({tag:"button"}),...wr(),...zu({variant:"elevated"})},"VBtn"),zF=At()({name:"VBtn",props:UF(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=_r(e),{borderClasses:o}=og(e),{densityClasses:a}=ju(e),{dimensionStyles:i}=hg(e),{elevationClasses:l}=Wu(e),{loaderClasses:u}=AF(e),{locationStyles:c}=Zu(e),{positionClasses:f}=mg(e),{roundedClasses:d}=oi(e),{sizeClasses:h,sizeStyles:v}=Gu(e),m=wF(e,e.symbol,!1),p=RF(e,n),b=w(()=>e.active!==void 0?e.active:p.isLink.value?p.isActive?.value:m?.isSelected.value),S=w(()=>({color:m?.isSelected.value&&(!p.isLink.value||p.isActive?.value)||!m||p.isActive?.value?e.color??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:T,colorStyles:M,variantClasses:D}=ig(S),C=w(()=>m?.disabled.value||e.disabled),E=w(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),P=w(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function $(I){C.value||p.isLink.value&&(I.metaKey||I.ctrlKey||I.shiftKey||I.button!==0||n.target==="_blank")||(p.navigate?.(I),m?.toggle())}return FF(p,m?.select),br(()=>{const I=p.isLink.value?"a":e.tag,j=!!(e.prependIcon||r.prepend),O=!!(e.appendIcon||r.append),W=!!(e.icon&&e.icon!==!0);return Ul(L(I,{type:I==="a"?void 0:"button",class:["v-btn",m?.selectedClass.value,{"v-btn--active":b.value,"v-btn--block":e.block,"v-btn--disabled":C.value,"v-btn--elevated":E.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},s.value,o.value,T.value,a.value,l.value,u.value,f.value,d.value,h.value,D.value,e.class],style:[M.value,i.value,c.value,v.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:C.value||void 0,href:p.href.value,tabindex:e.loading||e.readonly?-1:void 0,onClick:$,value:P.value},{default:()=>[ag(!0,"v-btn"),!e.icon&&j&&L("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?L(Fs,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):L(Ko,{key:"prepend-icon",icon:e.prependIcon},null)]),L("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&W?L(Ko,{key:"content-icon",icon:e.icon},null):L(Fs,{key:"content-defaults",disabled:!W,defaults:{VIcon:{icon:e.icon}}},{default:()=>[r.default?.()??e.text]})]),!e.icon&&O&&L("span",{key:"append",class:"v-btn__append"},[r.append?L(Fs,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):L(Ko,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&L("span",{key:"loader",class:"v-btn__loader"},[r.loader?.()??L(MF,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[WF,!C.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}}),KF=["success","info","warning","error"],GF=$e({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:zs,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>KF.includes(e)},...ln(),...Hu(),...dg(),...Vu(),...qu(),...vg(),...si(),...Zn(),...wr(),...zu({variant:"flat"})},"VAlert"),qF=At()({name:"VAlert",props:GF(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Na(e,"modelValue"),o=w(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),a=w(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:i}=_r(e),{colorClasses:l,colorStyles:u,variantClasses:c}=ig(a),{densityClasses:f}=ju(e),{dimensionStyles:d}=hg(e),{elevationClasses:h}=Wu(e),{locationStyles:v}=Zu(e),{positionClasses:m}=mg(e),{roundedClasses:p}=oi(e),{textColorClasses:b,textColorStyles:S}=Qs(et(e,"borderColor")),{t:T}=a1(),M=w(()=>({"aria-label":T(e.closeLabel),onClick(D){s.value=!1,n("click:close",D)}}));return()=>{const D=!!(r.prepend||o.value),C=!!(r.title||e.title),E=!!(r.close||e.closable);return s.value&&L(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},i.value,l.value,f.value,h.value,m.value,p.value,c.value,e.class],style:[u.value,d.value,v.value,e.style],role:"alert"},{default:()=>[ag(!1,"v-alert"),e.border&&L("div",{key:"border",class:["v-alert__border",b.value],style:S.value},null),D&&L("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?L(Fs,{key:"prepend-defaults",disabled:!o.value,defaults:{VIcon:{density:e.density,icon:o.value,size:e.prominent?44:28}}},r.prepend):L(Ko,{key:"prepend-icon",density:e.density,icon:o.value,size:e.prominent?44:28},null)]),L("div",{class:"v-alert__content"},[C&&L(mF,{key:"title"},{default:()=>[r.title?.()??e.title]}),r.text?.()??e.text,r.default?.()]),r.append&&L("div",{key:"append",class:"v-alert__append"},[r.append()]),E&&L("div",{key:"close",class:"v-alert__close"},[r.close?L(Fs,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>[r.close?.({props:M.value})]}):L(zF,qt({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},M.value),null)])]})}}}),ZF=e=>(Ey("data-v-ac10aa7f"),e=e(),Oy(),e),JF={is:"animated-details"},XF=ZF(()=>me("summary",null,"Error",-1)),QF={__name:"ErrorAlert",props:{modelValue:{type:String,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=hb(e,"modelValue"),r=Pe(mo).brand.errorMessage??"something went wrong, please try again later";return(s,o)=>t.value?(G(),Ae(qF,{key:0,translate:"yes",location:"start bottom",type:"error",position:"fixed","onClick:close":o[0]||(o[0]=a=>t.value=""),variant:"elevated",icon:[A(mw)],class:"alert",closable:"","close-icon":[A(yw)]},{default:Ee(()=>[Kr(Xe(A(r))+" ",1),me("details",JF,[XF,Kr(" "+Xe(t.value),1)])]),_:1},8,["icon","close-icon"])):We("v-if",!0)}},Ju=vF(QF,[["__scopeId","data-v-ac10aa7f"]]),Sg=Ba.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}),$g=Ba.reduce((e,t)=>{const n="offset"+Dn(t);return e[n]={type:[String,Number],default:null},e},{}),Tg=Ba.reduce((e,t)=>{const n="order"+Dn(t);return e[n]={type:[String,Number],default:null},e},{}),sh={col:Object.keys(Sg),offset:Object.keys($g),order:Object.keys(Tg)};function eY(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const s=t.replace(e,"");r+=`-${s}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const tY=["auto","start","end","center","baseline","stretch"],nY=$e({cols:{type:[Boolean,String,Number],default:!1},...Sg,offset:{type:[String,Number],default:null},...$g,order:{type:[String,Number],default:null},...Tg,alignSelf:{type:String,default:null,validator:e=>tY.includes(e)},...ln(),...Zn()},"VCol"),rY=At()({name:"VCol",props:nY(),setup(e,t){let{slots:n}=t;const r=w(()=>{const s=[];let o;for(o in sh)sh[o].forEach(i=>{const l=e[i],u=eY(o,i,l);u&&s.push(u)});const a=s.some(i=>i.startsWith("v-col-"));return s.push({"v-col":!a||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),s});return()=>lo(e.tag,{class:[r.value,e.class],style:e.style},n.default?.())}}),Xu=["start","end","center"],Eg=["space-between","space-around","space-evenly"];function Qu(e,t){return Ba.reduce((n,r)=>{const s=e+Dn(r);return n[s]=t(),n},{})}const sY=[...Xu,"baseline","stretch"],Og=e=>sY.includes(e),Mg=Qu("align",()=>({type:String,default:null,validator:Og})),oY=[...Xu,...Eg],kg=e=>oY.includes(e),xg=Qu("justify",()=>({type:String,default:null,validator:kg})),aY=[...Xu,...Eg,"stretch"],Pg=e=>aY.includes(e),Ag=Qu("alignContent",()=>({type:String,default:null,validator:Pg})),oh={align:Object.keys(Mg),justify:Object.keys(xg),alignContent:Object.keys(Ag)},iY={align:"align",justify:"justify",alignContent:"align-content"};function lY(e,t,n){let r=iY[e];if(n!=null){if(t){const s=t.replace(e,"");r+=`-${s}`}return r+=`-${n}`,r.toLowerCase()}}const uY=$e({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:Og},...Mg,justify:{type:String,default:null,validator:kg},...xg,alignContent:{type:String,default:null,validator:Pg},...Ag,...ln(),...Zn()},"VRow"),cY=At()({name:"VRow",props:uY(),setup(e,t){let{slots:n}=t;const r=w(()=>{const s=[];let o;for(o in oh)oh[o].forEach(a=>{const i=e[a],l=lY(o,a,i);l&&s.push(l)});return s.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),s});return()=>lo(e.tag,{class:["v-row",r.value,e.class],style:e.style},n.default?.())}}),fY={key:1,class:"text-center"},dY=me("div",{class:"text-center"},"Loading...",-1),hY={__name:"Loading",setup(e){const t=Pe(mo),[n]=hF([t.template.loading]),r=oe("");return xa((s,o,a)=>{r.value=` - ${s}. - component: ${o?.$.type.name}. - info: ${a}. - `}),(s,o)=>(G(),Ae(cY,{class:"d-flex justify-center align-center"},{default:Ee(()=>[L(rY,{class:"flex-column justify-center align-center"},{default:Ee(()=>[L(Ju,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=a=>r.value=a)},null,8,["modelValue"]),(G(),Ae(Ia,null,{fallback:Ee(()=>[dY]),default:Ee(()=>[A(n).component?(G(),Ae(Pa(A(n).component),Rr(qt({key:0},A(n).props)),null,16)):(G(),ae("div",fY,"Loading..."))]),_:1}))]),_:1})]),_:1}))}},vY={class:"loading-container"},mY={__name:"Dashboard",props:{config:{type:String},onTemplateMount:{type:Function}},async setup(e){let t,n;Ub(b=>({"0e50fc87":A(d)}));const r=e,s=([t,n]=hi(()=>cF(r.config)),t=await t,n(),t);oF();const o=sF("dashboardTheme",s.brand?.theme);o.global.name.value="dashboardTheme",[t,n]=hi(()=>fF(s.brand?.font?.family,s.brand?.font?.link,!!r.onTemplateMount)),await t,n();const{loadSTAC:a}=ri();[t,n]=hi(()=>a()),await t,n();const{smAndDown:i}=X1(),l=i.value?or(()=>Qe(()=>import("./MobileLayout-DtBtTe7v.js"),__vite__mapDeps([19,5,20,6,14,21,22,23]))):or(()=>Qe(()=>import("./DashboardLayout-Bklr6-8p.js"),__vite__mapDeps([24,21,20,22,25]))),u=or(()=>Qe(()=>import("./Header-LhvQ5ty7.js"),__vite__mapDeps([26,15,6,16,14,20,27]))),c=or(()=>Qe(()=>import("./Footer-Bbz6BUHt.js"),__vite__mapDeps([28,29]))),{mainRect:f}=fw(),d=s.brand.noLayout?r.onTemplateMount?"100%":"90dvh":`calc(100dvh - ${f.value.top+f.value.bottom}px)`,h=oe(null),v=oe(null),m=[h,v];Gt(()=>{r.onTemplateMount&&!s.brand.noLayout&&m.forEach(b=>{b.value.$el.style.opacity="0"})});const p=oe("");return xa((b,S,T)=>{p.value=` - ${b}. - component: ${S?.$.type.name}. - info: ${T}. - `}),(b,S)=>(G(),ae(be,null,[A(s).brand.noLayout?We("v-if",!0):(G(),Ae(A(u),{key:0,ref_key:"headerRef",ref:h},null,512)),L(Ju,{modelValue:p.value,"onUpdate:modelValue":S[0]||(S[0]=T=>p.value=T)},null,8,["modelValue"]),(G(),Ae(Ia,null,{fallback:Ee(()=>[me("div",vY,[L(hY)])]),default:Ee(()=>[L(A(l),{onVnodeMounted:S[1]||(S[1]=T=>e.onTemplateMount?.(m)),class:"template"},null,512)]),_:1})),A(s).brand.noLayout?We("v-if",!0):(G(),Ae(A(c),{key:1,ref_key:"footerRef",ref:v},null,512))],64))}},pY=$e({...ln(),...cw({fullHeight:!0}),...wr()},"VApp"),gY=At()({name:"VApp",props:pY(),setup(e,t){let{slots:n}=t;const r=_r(e),{layoutClasses:s,getLayoutItem:o,items:a,layoutRef:i}=hw(e),{rtlClasses:l}=Fa();return br(()=>L("div",{ref:i,class:["v-application",r.themeClasses.value,s.value,l.value,e.class],style:[e.style]},[L("div",{class:"v-application__wrap"},[L(Ia,null,{default:()=>[L(be,null,[n.default?.()])]})])])),{getLayoutItem:o,items:a,theme:r}}}),yY={__name:"App",setup(e){const t=oe("");return xa((n,r,s)=>{t.value=` - ${n}. - component: ${r?.$.type.name}. - info: ${s}. - `}),(n,r)=>(G(),Ae(gY,null,{default:Ee(()=>[(G(),Ae(Ia,null,{fallback:Ee(()=>[L(Ju,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s)},null,8,["modelValue"])]),default:Ee(()=>[L(mY)]),_:1}))]),_:1}))}},Ig=p0(yY);uF(Ig);Ig.mount("#app");export{G as $,wF as A,_Y as B,Fe as C,Ot as D,LY as E,be as F,yF as G,X1 as H,zs as I,Gv as J,RY as K,ot as L,Ko as M,OY as N,Hu as O,ju as P,Li as Q,et as R,Nv as S,el as T,Ub as U,zF as V,mo as W,hF as X,fw as Y,Gt as Z,vF as _,br as a,ag as a$,Ae as a0,Ee as a1,Ia as a2,A as a3,Pa as a4,We as a5,ae as a6,Ft as a7,Kr as a8,me as a9,lo as aA,Mw as aB,ri as aC,cY as aD,Yy as aE,CR as aF,VY as aG,WY as aH,Yo as aI,Ue as aJ,Br as aK,Pp as aL,je as aM,il as aN,ss as aO,Pr as aP,Ts as aQ,Pw as aR,ER as aS,UY as aT,jY as aU,HY as aV,t1 as aW,Ku as aX,zu as aY,ig as aZ,Gu as a_,Xe as aa,uo as ab,dg as ac,hg as ad,sg as ae,Vu as af,si as ag,og as ah,Wu as ai,oi as aj,Fs as ak,na as al,yr as am,NY as an,b0 as ao,zn as ap,FY as aq,Ea as ar,Ey as as,Oy as at,zY as au,Qe as av,rg as aw,Ra as ax,vn as ay,CY as az,L as b,PF as b0,qu as b1,vg as b2,NF as b3,WF as b4,AF as b5,Zu as b6,mg as b7,RF as b8,GY as b9,ge as bA,qY as bB,wY as bC,ZY as bD,pn as bE,hi as bF,bY as ba,hb as bb,TR as bc,YY as bd,rY as be,BY as bf,KY as bg,w0 as bh,St as bi,Py as bj,DY as bk,kt as bl,so as bm,TY as bn,EY as bo,Il as bp,Mv as bq,M0 as br,xY as bs,PY as bt,AY as bu,IY as bv,Al as bw,kY as bx,E0 as by,MY as bz,w as c,qt as d,ln as e,Zn as f,At as g,wr as h,_r as i,Fa as j,SY as k,a1 as l,UF as m,_F as n,$Y as o,$e as p,Pt as q,oe as r,Ut as s,Ul as t,Qs as u,Fy as v,Te as w,Pe as x,Na as y,bF as z}; diff --git a/pr-preview/pr-17/assets/jpeg-BAgeD1d3-DG6CHa_P.js b/pr-preview/pr-17/assets/jpeg-BAgeD1d3-DG6CHa_P.js deleted file mode 100644 index 9651e0e..0000000 --- a/pr-preview/pr-17/assets/jpeg-BAgeD1d3-DG6CHa_P.js +++ /dev/null @@ -1 +0,0 @@ -import{g as oe}from"./basedecoder-DHcBySSe-gdlnpIMU.js";const J=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),$=4017,B=799,Q=3406,W=2276,K=1567,N=3784,j=5793,Z=2896;function ne(F,a){let s=0;const u=[];let D=16;for(;D>0&&!F[D-1];)--D;u.push({children:[],index:0});let y=u[0],P;for(let t=0;t0;)y=u.pop();for(y.index++,u.push(y);u.length<=t;)u.push(P={children:[],index:0}),y.children[y.index]=P.children,y=P;s++}t+10)return b--,c>>b&1;if(c=F[k++],c===255){const l=F[k++];if(l)throw new Error(`unexpected marker: ${(c<<8|l).toString(16)}`)}return b=7,c>>>7}function p(l){let h=l,w;for(;(w=d())!==null;){if(h=h[w],typeof h=="number")return h;if(typeof h!="object")throw new Error("invalid huffman sequence")}return null}function T(l){let h=l,w=0;for(;h>0;){const E=d();if(E===null)return;w=w<<1|E,--h}return w}function x(l){const h=T(l);return h>=1<>4;if(I===0){if(z<15)break;L+=16}else{L+=z;const U=J[L];h[U]=x(I),L++}}}function A(l,h){const w=p(l.huffmanTableDC),E=w===0?0:x(w)<0){n--;return}let w=y;const E=P;for(;w<=E;){const L=p(l.huffmanTableAC),v=L&15,I=L>>4;if(v===0){if(I<15){n=T(I)+(1<>4,U===0)L<15?(n=T(L)+(1<=65488&&Y<=65495)k+=2;else break}return k-i}function ie(F,a){const s=[],{blocksPerLine:u,blocksPerColumn:D}=a,y=u<<3,P=new Int32Array(64),t=new Uint8Array(64);function f(m,o,i){const k=a.quantizationTable;let c,b,d,p,T,x,g,A,r;const n=i;let C;for(C=0;C<64;C++)n[C]=m[C]*k[C];for(C=0;C<8;++C){const e=8*C;if(n[1+e]===0&&n[2+e]===0&&n[3+e]===0&&n[4+e]===0&&n[5+e]===0&&n[6+e]===0&&n[7+e]===0){r=j*n[0+e]+512>>10,n[0+e]=r,n[1+e]=r,n[2+e]=r,n[3+e]=r,n[4+e]=r,n[5+e]=r,n[6+e]=r,n[7+e]=r;continue}c=j*n[0+e]+128>>8,b=j*n[4+e]+128>>8,d=n[2+e],p=n[6+e],T=Z*(n[1+e]-n[7+e])+128>>8,A=Z*(n[1+e]+n[7+e])+128>>8,x=n[3+e]<<4,g=n[5+e]<<4,r=c-b+1>>1,c=c+b+1>>1,b=r,r=d*N+p*K+128>>8,d=d*K-p*N+128>>8,p=r,r=T-g+1>>1,T=T+g+1>>1,g=r,r=A+x+1>>1,x=A-x+1>>1,A=r,r=c-p+1>>1,c=c+p+1>>1,p=r,r=b-d+1>>1,b=b+d+1>>1,d=r,r=T*W+A*Q+2048>>12,T=T*Q-A*W+2048>>12,A=r,r=x*B+g*$+2048>>12,x=x*$-g*B+2048>>12,g=r,n[0+e]=c+A,n[7+e]=c-A,n[1+e]=b+g,n[6+e]=b-g,n[2+e]=d+x,n[5+e]=d-x,n[3+e]=p+T,n[4+e]=p-T}for(C=0;C<8;++C){const e=C;if(n[1*8+e]===0&&n[2*8+e]===0&&n[3*8+e]===0&&n[4*8+e]===0&&n[5*8+e]===0&&n[6*8+e]===0&&n[7*8+e]===0){r=j*i[C+0]+8192>>14,n[0*8+e]=r,n[1*8+e]=r,n[2*8+e]=r,n[3*8+e]=r,n[4*8+e]=r,n[5*8+e]=r,n[6*8+e]=r,n[7*8+e]=r;continue}c=j*n[0*8+e]+2048>>12,b=j*n[4*8+e]+2048>>12,d=n[2*8+e],p=n[6*8+e],T=Z*(n[1*8+e]-n[7*8+e])+2048>>12,A=Z*(n[1*8+e]+n[7*8+e])+2048>>12,x=n[3*8+e],g=n[5*8+e],r=c-b+1>>1,c=c+b+1>>1,b=r,r=d*N+p*K+2048>>12,d=d*K-p*N+2048>>12,p=r,r=T-g+1>>1,T=T+g+1>>1,g=r,r=A+x+1>>1,x=A-x+1>>1,A=r,r=c-p+1>>1,c=c+p+1>>1,p=r,r=b-d+1>>1,b=b+d+1>>1,d=r,r=T*W+A*Q+2048>>12,T=T*Q-A*W+2048>>12,A=r,r=x*B+g*$+2048>>12,x=x*$-g*B+2048>>12,g=r,n[0*8+e]=c+A,n[7*8+e]=c-A,n[1*8+e]=b+g,n[6*8+e]=b-g,n[2*8+e]=d+x,n[5*8+e]=d-x,n[3*8+e]=p+T,n[4*8+e]=p-T}for(C=0;C<64;++C){const e=128+(n[C]+8>>4);e<0?o[C]=0:e>255?o[C]=255:o[C]=e}}for(let m=0;m>4)if(f>>4===1)for(let o=0;o<64;o++){const i=J[o];m[i]=u()}else throw new Error("DQT: invalid table spec");else for(let o=0;o<64;o++){const i=J[o];m[i]=a[s++]}this.quantizationTables[f&15]=m}break}case 65472:case 65473:case 65474:{u();const t={extended:P===65473,progressive:P===65474,precision:a[s++],scanLines:u(),samplesPerLine:u(),components:{},componentsOrder:[]},f=a[s++];let m;for(let o=0;o>4,k=a[s+1]&15,c=a[s+2];t.componentsOrder.push(m),t.components[m]={h:i,v:k,quantizationIdx:c},s+=3}y(t),this.frames.push(t);break}case 65476:{const t=u();for(let f=2;f>4?this.huffmanTablesAC[m&15]=ne(o,k):this.huffmanTablesDC[m&15]=ne(o,k)}break}case 65501:u(),this.resetInterval=u();break;case 65498:{u();const t=a[s++],f=[],m=this.frames[0];for(let b=0;b>4],d.huffmanTableAC=this.huffmanTablesAC[p&15],f.push(d)}const o=a[s++],i=a[s++],k=a[s++],c=ce(a,s,m,f,this.resetInterval,o,i,k>>4,k&15);s+=c;break}case 65535:a[s]!==255&&s--;break;default:if(a[s-3]===255&&a[s-2]>=192&&a[s-2]<=254){s-=3;break}throw new Error(`unknown JPEG marker ${P.toString(16)}`)}P=u()}}getResult(){const{frames:a}=this;if(this.frames.length===0)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(let o=0;o>3],J<<=l&7),f=0;f>3]),J&128?(y&&(y[l]=1),i=k.encoding<2?R[U++]:L,e=e>i?i:e,h[l++]=i):(y&&(y[l]=0),h[l++]=g),J<<=1;l+=F}else if(k.encoding<2)for(c=0;ci?i:e,h[l++]=i;l+=F}else for(e=e>L?L:e,c=0;c0){var C=new Uint8Array(Math.ceil(g.width*g.height/8));B=new DataView(I,a,g.mask.numBytes);var t=B.getInt16(0,!0),o=2,s=0;do{if(t>0)for(;t--;)C[s++]=B.getUint8(o++);else{var n=B.getUint8(o++);for(t=-t;t--;)C[s++]=n}t=B.getInt16(o,!0),o+=2}while(o0?1:0),y=i+(g.height%i>0?1:0);g.pixels.blocks=new Array(h*y);for(var S=0,f=0;f3)throw"Invalid block encoding ("+w.encoding+")";if(w.encoding===2){a++;continue}if(D!==0&&D!==2){if(D>>=6,w.offsetType=D,D===2)w.offset=B.getInt8(1),G++;else if(D===1)w.offset=B.getInt16(1,!0),G+=2;else if(D===0)w.offset=B.getFloat32(1,!0),G+=4;else throw"Invalid block offset type";if(w.encoding===1)if(D=B.getUint8(G),G++,w.bitsPerPixel=D&63,D>>=6,w.numValidPixelsType=D,D===2)w.numValidPixels=B.getUint8(G),G++;else if(D===1)w.numValidPixels=B.getUint16(G,!0),G+=2;else if(D===0)w.numValidPixels=B.getUint32(G,!0),G+=4;else throw"Invalid valid pixel count type"}if(a+=G,w.encoding!==3){var l,F;if(w.encoding===0){var k=(g.pixels.numBytes-1)/4;if(k!==Math.floor(k))throw"uncompressed block has invalid length";l=new ArrayBuffer(k*4),F=new Uint8Array(l),F.set(new Uint8Array(I,a,k*4));var R=new Float32Array(l);w.rawData=R,a+=k*4}else if(w.encoding===1){var U=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),L=Math.ceil(U/4);l=new ArrayBuffer(L*4),F=new Uint8Array(l),F.set(new Uint8Array(I,a,U)),w.stuffedData=new Uint32Array(l),a+=U}}}return g.eofOffset=a,g},A=function(I,a,Q,g,r,B,C){var t=(1<=a)e=i>>>n-a&t,n-=a;else{var S=a-n;e=(i&t)<>>n}B[s]=e=I?(n=e>>>s-I&C,s-=I):(i=I-s,n=(e&C)<>>s),A[o]=Q[n];else for(h=Math.ceil((B-g)/r),o=0;o=I?(n=e>>>s-I&C,s-=I):(i=I-s,n=(e&C)<>>s),A[o]=n=A?(s=n>>>o-A&r,o-=A):(t=A-o,s=(n&r)<>>o),e[C]=s=I?(e=i>>>n&C,s-=I,n+=I):(h=I-s,e=i>>>n&C,i=E[t++],s=32-h,e|=(i&(1<=I?(e=i>>>n&C,s-=I,n+=I):(h=I-s,e=i>>>n&C,i=E[t++],s=32-h,e|=(i&(1<=A?(s=e>>>n&r,o-=A,n+=A):(t=A-o,s=e>>>n&r,e=E[B++],o=32-t,s|=(e&(1<=I?(C=t>>>B-I&Q,B-=I):(o=I-B,C=(t&Q)<>>B),A[r]=C;return A},originalUnstuff2:function(E,A,I,a){var Q=(1<=I?(t=o>>>C&Q,B-=I,C+=I):(s=I-B,t=o>>>C&Q,o=E[g++],B=32-s,t|=(o&(1<=359?359:Q;Q-=r;do A+=E[g++]<<8,I+=A+=E[g++];while(--r);A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16)}return a&1&&(I+=A+=E[g]<<8),A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16),(I<<16|A)>>>0},readHeaderInfo:function(E,A){var I=A.ptr,a=new Uint8Array(E,I,6),Q={};if(Q.fileIdentifierString=String.fromCharCode.apply(null,a),Q.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+Q.fileIdentifierString;I+=6;var g=new DataView(E,I,8),r=g.getInt32(0,!0);Q.fileVersion=r,I+=4,r>=3&&(Q.checksum=g.getUint32(4,!0),I+=4),g=new DataView(E,I,12),Q.height=g.getUint32(0,!0),Q.width=g.getUint32(4,!0),I+=8,r>=4?(Q.numDims=g.getUint32(8,!0),I+=4):Q.numDims=1,g=new DataView(E,I,40),Q.numValidPixel=g.getUint32(0,!0),Q.microBlockSize=g.getInt32(4,!0),Q.blobSize=g.getInt32(8,!0),Q.imageType=g.getInt32(12,!0),Q.maxZError=g.getFloat64(16,!0),Q.zMin=g.getFloat64(24,!0),Q.zMax=g.getFloat64(32,!0),I+=40,A.headerInfo=Q,A.ptr=I;var B,C;if(r>=3&&(C=r>=4?52:48,B=this.computeChecksumFletcher32(new Uint8Array(E,I-C,Q.blobSize-14)),B!==Q.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(E,A){var I=A.headerInfo,a=this.getDataTypeArray(I.imageType),Q=I.numDims*this.getDataTypeSize(I.imageType),g=this.readSubArray(E,A.ptr,a,Q),r=this.readSubArray(E,A.ptr+Q,a,Q);A.ptr+=2*Q;var B,C=!0;for(B=0;B0){C=new Uint8Array(Math.ceil(Q/8)),r=new DataView(E,I,B.numBytes);var o=r.getInt16(0,!0),s=2,n=0,e=0;do{if(o>0)for(;o--;)C[n++]=r.getUint8(s++);else for(e=r.getUint8(s++),o=-o;o--;)C[n++]=e;o=r.getInt16(s,!0),s+=2}while(s>3],i<<=h&7):i=C[h>>3],i&128&&(t[h]=1);A.pixels.resultMask=t,B.bitset=C,I+=B.numBytes}return A.ptr=I,A.mask=B,!0},readDataOneSweep:function(E,A,I,a){var Q=A.ptr,g=A.headerInfo,r=g.numDims,B=g.width*g.height,C=g.imageType,t=g.numValidPixel*d.getDataTypeSize(C)*r,o,s=A.pixels.resultMask;if(I===Uint8Array)o=new Uint8Array(E,Q,t);else{var n=new ArrayBuffer(t),e=new Uint8Array(n);e.set(new Uint8Array(E,Q,t)),o=new I(n)}if(o.length===B*r)a?A.pixels.resultPixels=d.swapDimensionOrder(o,B,r,I,!0):A.pixels.resultPixels=o;else{A.pixels.resultPixels=new I(B*r);var i=0,h=0,y=0,S=0;if(r>1){if(a){for(h=0;h=B)return!1;var C=new Uint32Array(B-r);d.decodeBits(E,A,C);var t=[],o,s,n,e;for(o=r;o0&&(t[s].second=G<>>32-e,32-c>=e?(c+=e,c===32&&(c=0,M++,G=f[M])):(c+=e-32,M++,G=f[M],t[s].second|=G>>>32-c));var w=0,D=0,l=new m;for(o=0;o=I?D=I:D=w;var F=[],k,R,U,L,J,q;for(o=r;o0)if(k=[e,s],e<=D)for(R=t[s].second<=0;L--)J=R>>>L&1,J?(q.right||(q.right=new m),q=q.right):(q.left||(q.left=new m),q=q.left),L===0&&!q.val&&(q.val=k[1]);return{decodeLut:F,numBitsLUTQick:D,numBitsLUT:w,tree:l,stuffedData:f,srcPtr:M,bitPos:c}},readHuffman:function(E,A,I,a){var Q=A.headerInfo,g=Q.numDims,r=A.headerInfo.height,B=A.headerInfo.width,C=B*r,t=this.readHuffmanTree(E,A),o=t.decodeLut,s=t.tree,n=t.stuffedData,e=t.srcPtr,i=t.bitPos,h=t.numBitsLUTQick,y=t.numBitsLUT,S=A.headerInfo.imageType===0?128:0,f,c,G,M=A.pixels.resultMask,w,D,l,F,k,R,U,L=0;i>0&&(e++,i=0);var J=n[e],q=A.encodeMode===1,O=new I(C*g),p=O,Y;if(g<2||q){for(Y=0;Y1&&(p=new I(O.buffer,C*Y,C),L=0),A.headerInfo.numValidPixel===B*r)for(R=0,F=0;F>>32-h,D=w,32-i>>64-i-h,D=w),o[D])c=o[D][1],i+=o[D][0];else for(w=J<>>32-y,D=w,32-i>>64-i-y,D=w),f=s,U=0;U>>y-U-1&1,f=l?f.right:f.left,!(f.left||f.right)){c=f.val,i=i+U+1;break}i>=32&&(i-=32,e++,J=n[e]),G=c-S,q?(k>0?G+=L:F>0?G+=p[R-B]:G+=L,G&=255,p[R]=G,L=G):p[R]=G}else for(R=0,F=0;F>>32-h,D=w,32-i>>64-i-h,D=w),o[D])c=o[D][1],i+=o[D][0];else for(w=J<>>32-y,D=w,32-i>>64-i-y,D=w),f=s,U=0;U>>y-U-1&1,f=l?f.right:f.left,!(f.left||f.right)){c=f.val,i=i+U+1;break}i>=32&&(i-=32,e++,J=n[e]),G=c-S,q?(k>0&&M[R-1]?G+=L:F>0&&M[R-B]?G+=p[R-B]:G+=L,G&=255,p[R]=G,L=G):p[R]=G}}else for(R=0,F=0;F>>32-h,D=w,32-i>>64-i-h,D=w),o[D])c=o[D][1],i+=o[D][0];else for(w=J<>>32-y,D=w,32-i>>64-i-y,D=w),f=s,U=0;U>>y-U-1&1,f=l?f.right:f.left,!(f.left||f.right)){c=f.val,i=i+U+1;break}i>=32&&(i-=32,e++,J=n[e]),G=c-S,p[R]=G}A.ptr=A.ptr+(e+1)*4+(i>0?4:0),A.pixels.resultPixels=O,g>1&&!a&&(A.pixels.resultPixels=d.swapDimensionOrder(O,C,g,I))},decodeBits:function(E,A,I,a,Q){{var g=A.headerInfo,r=g.fileVersion,B=0,C=E.byteLength-A.ptr>=5?5:E.byteLength-A.ptr,t=new DataView(E,A.ptr,C),o=t.getUint8(0);B++;var s=o>>6,n=s===0?4:3-s,e=(o&32)>0,i=o&31,h=0;if(n===1)h=t.getUint8(B),B++;else if(n===2)h=t.getUint16(B,!0),B+=2;else if(n===4)h=t.getUint32(B,!0),B+=4;else throw"Invalid valid pixel count type";var y=2*g.maxZError,S,f,c,G,M,w,D,l,F,k=g.numDims>1?g.maxValues[Q]:g.zMax;if(e){for(A.counter.lut++,l=t.getUint8(B),B++,G=Math.ceil((l-1)*i/8),M=Math.ceil(G/4),f=new ArrayBuffer(M*4),c=new Uint8Array(f),A.ptr+=B,c.set(new Uint8Array(E,A.ptr,G)),D=new Uint32Array(f),A.ptr+=G,F=0;l-1>>>F;)F++;G=Math.ceil(h*F/8),M=Math.ceil(G/4),f=new ArrayBuffer(M*4),c=new Uint8Array(f),c.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(f),A.ptr+=G,r>=3?w=N.unstuffLUT2(D,i,l-1,a,y,k):w=N.unstuffLUT(D,i,l-1,a,y,k),r>=3?N.unstuff2(S,I,F,h,w):N.unstuff(S,I,F,h,w)}else A.counter.bitstuffer++,F=i,A.ptr+=B,F>0&&(G=Math.ceil(h*F/8),M=Math.ceil(G/4),f=new ArrayBuffer(M*4),c=new Uint8Array(f),c.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(f),A.ptr+=G,r>=3?a==null?N.originalUnstuff2(S,I,F,h):N.unstuff2(S,I,F,h,!1,a,y,k):a==null?N.originalUnstuff(S,I,F,h):N.unstuff(S,I,F,h,!1,a,y,k))}},readTiles:function(E,A,I,a){var Q=A.headerInfo,g=Q.width,r=Q.height,B=g*r,C=Q.microBlockSize,t=Q.imageType,o=d.getDataTypeSize(t),s=Math.ceil(g/C),n=Math.ceil(r/C);A.pixels.numBlocksY=n,A.pixels.numBlocksX=s,A.pixels.ptr=0;var e=0,i=0,h=0,y=0,S=0,f=0,c=0,G=0,M=0,w=0,D=0,l=0,F=0,k=0,R=0,U=0,L,J,q,O,p,Y,j=new I(C*C),eA=r%C||C,aA=g%C||C,AA,T,_=Q.numDims,X,H=A.pixels.resultMask,x=A.pixels.resultPixels,oA=Q.fileVersion,CA=oA>=5?14:15,V,IA=Q.zMax,b;for(h=0;h1?(b=x,D=h*g*C+y*C,x=new I(A.pixels.resultPixels.buffer,B*X*o,B),IA=Q.maxValues[X]):b=null,c=E.byteLength-A.ptr,L=new DataView(E,A.ptr,Math.min(10,c)),J={},U=0,G=L.getUint8(0),U++,V=Q.fileVersion>=5?G&4:0,M=G>>6&255,w=G>>2&CA,w!==(y*C>>3&CA)||V&&X===0)throw"integrity issue";if(Y=G&3,Y>3)throw A.ptr+=U,"Invalid block encoding ("+Y+")";if(Y===2){if(V)if(H)for(e=0;e1&&!a&&(A.pixels.resultPixels=d.swapDimensionOrder(A.pixels.resultPixels,B,_,I))},formatFileInfo:function(E){return{fileIdentifierString:E.headerInfo.fileIdentifierString,fileVersion:E.headerInfo.fileVersion,imageType:E.headerInfo.imageType,height:E.headerInfo.height,width:E.headerInfo.width,numValidPixel:E.headerInfo.numValidPixel,microBlockSize:E.headerInfo.microBlockSize,blobSize:E.headerInfo.blobSize,maxZError:E.headerInfo.maxZError,pixelType:d.getPixelType(E.headerInfo.imageType),eofOffset:E.eofOffset,mask:E.mask?{numBytes:E.mask.numBytes}:null,pixels:{numBlocksX:E.pixels.numBlocksX,numBlocksY:E.pixels.numBlocksY,maxValue:E.headerInfo.zMax,minValue:E.headerInfo.zMin,noDataValue:E.noDataValue}}},constructConstantSurface:function(E,A){var I=E.headerInfo.zMax,a=E.headerInfo.zMin,Q=E.headerInfo.maxValues,g=E.headerInfo.numDims,r=E.headerInfo.height*E.headerInfo.width,B=0,C=0,t=0,o=E.pixels.resultMask,s=E.pixels.resultPixels;if(o)if(g>1){if(A)for(B=0;B1&&a!==I)if(A)for(B=0;B=-128&&A<=127;break;case 1:I=A>=0&&A<=255;break;case 2:I=A>=-32768&&A<=32767;break;case 3:I=A>=0&&A<=65536;break;case 4:I=A>=-2147483648&&A<=2147483647;break;case 5:I=A>=0&&A<=4294967296;break;case 6:I=A>=-34027999387901484e22&&A<=34027999387901484e22;break;case 7:I=A>=-17976931348623157e292&&A<=17976931348623157e292;break;default:I=!1}return I},getDataTypeSize:function(E){var A=0;switch(E){case 0:case 1:A=1;break;case 2:case 3:A=2;break;case 4:case 5:case 6:A=4;break;case 7:A=8;break;default:A=E}return A},getDataTypeUsed:function(E,A){var I=E;switch(E){case 2:case 4:I=E-A;break;case 3:case 5:I=E-2*A;break;case 6:A===0?I=E:A===1?I=2:I=1;break;case 7:A===0?I=E:I=E-2*A+1;break;default:I=E;break}return I},getOnePixel:function(E,A,I,a){var Q=0;switch(I){case 0:Q=a.getInt8(A);break;case 1:Q=a.getUint8(A);break;case 2:Q=a.getInt16(A,!0);break;case 3:Q=a.getUint16(A,!0);break;case 4:Q=a.getInt32(A,!0);break;case 5:Q=a.getUInt32(A,!0);break;case 6:Q=a.getFloat32(A,!0);break;case 7:Q=a.getFloat64(A,!0);break;default:throw"the decoder does not understand this pixel type"}return Q},swapDimensionOrder:function(E,A,I,a,Q){var g=0,r=0,B=0,C=0,t=E;if(I>1)if(t=new a(A*I),Q)for(g=0;g5)throw"unsupported lerc version 2."+r;d.readMask(E,Q),g.numValidPixel!==g.width*g.height&&!Q.pixels.resultMask&&(Q.pixels.resultMask=A.maskData);var C=g.width*g.height;Q.pixels.resultPixels=new B(C*g.numDims),Q.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var t=!A.returnPixelInterleavedDims;if(g.numValidPixel!==0)if(g.zMax===g.zMin)d.constructConstantSurface(Q,t);else if(r>=4&&d.checkMinMaxRanges(E,Q))d.constructConstantSurface(Q,t);else{var o=new DataView(E,Q.ptr,2),s=o.getUint8(0);if(Q.ptr++,s)d.readDataOneSweep(E,Q,B,t);else if(r>1&&g.imageType<=1&&Math.abs(g.maxZError-.5)<1e-5){var n=o.getUint8(1);if(Q.ptr++,Q.encodeMode=n,n>2||r<4&&n>1)throw"Invalid Huffman flag "+n;n?d.readHuffman(E,Q,B,t):d.readTiles(E,Q,B,t)}else d.readTiles(E,Q,B,t)}Q.eofOffset=Q.ptr;var e;A.inputOffset?(e=Q.headerInfo.blobSize+A.inputOffset-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=A.inputOffset+Q.headerInfo.blobSize)):(e=Q.headerInfo.blobSize-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=Q.headerInfo.blobSize));var i={width:g.width,height:g.height,pixelData:Q.pixels.resultPixels,minValue:g.zMin,maxValue:g.zMax,validPixelCount:g.numValidPixel,dimCount:g.numDims,dimStats:{minValues:g.minValues,maxValues:g.maxValues},maskData:Q.pixels.resultMask};if(Q.pixels.resultMask&&d.isValidPixelValue(g.imageType,I)){var h=Q.pixels.resultMask;for(a=0;a1&&(C&&r.push(C),s.fileInfo.mask&&s.fileInfo.mask.numBytes>0&&o++),a++,t.pixels.push(s.pixelData),t.statistics.push({minValue:s.minValue,maxValue:s.maxValue,noDataValue:s.noDataValue,dimStats:s.dimStats})}var n,e,i;if(I>1&&o>1){for(i=t.width*t.height,t.bandMasks=r,C=new Uint8Array(i),C.set(r[0]),n=1;nu.arrayBuffer()).then(u=>WebAssembly.instantiate(u,BA)).then(this._init):$=WebAssembly.instantiate(Buffer.from(EA,"base64"),BA).then(this._init),$)}_init(u){K=u.instance,BA.env.emscripten_notify_memory_growth(0)}decode(u,P=0){if(!K)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Z=u.byteLength,v=K.exports.malloc(Z);QA.set(u,v),P=P||Number(K.exports.ZSTD_findDecompressedSize(v,Z));const N=K.exports.malloc(P),d=K.exports.ZSTD_decompress(N,P,v,Z),m=QA.slice(N,N+d);return K.exports.free(v),K.exports.free(N),m}}const EA="AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9gA39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gAn9/AX5gAn5+AX5gAABgBX9/f39/AGAGf39/f39/AGAIf39/f39/f38AYAl/f39/f39/f38AYAABf2AIf39/f39/f38Bf2ANf39/f39/f39/f39/fwF/YAF/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH9LC34BBH9BAyEBIAAoAgQiA0EgTQRAIAAoAggiASAAKAIQTwRAIAAQDQ8LIAAoAgwiAiABRgRAQQFBAiADQSBJGw8LIAAgASABIAJrIANBA3YiBCABIARrIAJJIgEbIgJrIgQ2AgggACADIAJBA3RrNgIEIAAgBCgAADYCAAsgAQsUAQF/IAAgARACIQIgACABEAEgAgv3AQECfyACRQRAIABCADcCACAAQQA2AhAgAEIANwIIQbh/DwsgACABNgIMIAAgAUEEajYCECACQQRPBEAgACABIAJqIgFBfGoiAzYCCCAAIAMoAAA2AgAgAUF/ai0AACIBBEAgAEEIIAEQFGs2AgQgAg8LIABBADYCBEF/DwsgACABNgIIIAAgAS0AACIDNgIAIAJBfmoiBEEBTQRAIARBAWtFBEAgACABLQACQRB0IANyIgM2AgALIAAgAS0AAUEIdCADajYCAAsgASACakF/ai0AACIBRQRAIABBADYCBEFsDwsgAEEoIAEQFCACQQN0ams2AgQgAgsWACAAIAEpAAA3AAAgACABKQAINwAICy8BAX8gAUECdEGgHWooAgAgACgCAEEgIAEgACgCBGprQR9xdnEhAiAAIAEQASACCyEAIAFCz9bTvtLHq9lCfiAAfEIfiUKHla+vmLbem55/fgsdAQF/IAAoAgggACgCDEYEfyAAKAIEQSBGBUEACwuCBAEDfyACQYDAAE8EQCAAIAEgAhBnIAAPCyAAIAJqIQMCQCAAIAFzQQNxRQRAAkAgAkEBSARAIAAhAgwBCyAAQQNxRQRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADTw0BIAJBA3ENAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgA0F8aiIEIABJBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsMACAAIAEpAAA3AAALQQECfyAAKAIIIgEgACgCEEkEQEEDDwsgACAAKAIEIgJBB3E2AgQgACABIAJBA3ZrIgE2AgggACABKAAANgIAQQALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgASACaiAASwRAIAAgAmoiBCABSw0BCyAAIAEgAhALDwsgACABc0EDcSEDAkACQCAAIAFJBEAgAwRAIAAhAwwDCyAAQQNxRQRAIAAhAwwCCyAAIQMDQCACRQ0EIAMgAS0AADoAACABQQFqIQEgAkF/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQhBSAGQQR2IQRBICAAdCIAQQFyIQkgASgCACEPQQAhAiADIQYCQANAIAlBAkggAiAPS3JFBEAgAiEHAkAgCARAA0AgBEH//wNxQf//A0YEQCAHQRhqIQcgBiAQSQR/IAZBAmoiBigAACAFdgUgBUEQaiEFIARBEHYLIQQMAQsLA0AgBEEDcSIIQQNGBEAgBUECaiEFIARBAnYhBCAHQQNqIQcMAQsLIAcgCGoiByAPSw0EIAVBAmohBQNAIAIgB0kEQCANIAJBAXRqQQA7AQAgAkEBaiECDAELCyAGIA5LQQAgBiAFQQN1aiIHIAxLG0UEQCAHKAAAIAVBB3EiBXYhBAwCCyAEQQJ2IQQLIAYhBwsCfyALQX9qIAQgAEF/anEiBiAAQQF0QX9qIgggCWsiEUkNABogBCAIcSIEQQAgESAEIABIG2shBiALCyEIIA0gAkEBdGogBkF/aiIEOwEAIAlBASAGayAEIAZBAUgbayEJA0AgCSAASARAIABBAXUhACALQX9qIQsMAQsLAn8gByAOS0EAIAcgBSAIaiIFQQN1aiIGIAxLG0UEQCAFQQdxDAELIAUgDCIGIAdrQQN0awshBSACQQFqIQIgBEUhCCAGKAAAIAVBH3F2IQQMAQsLQWwgCUEBRyAFQSBKcg0BGiABIAJBf2o2AgAgBiAFQQdqQQN1aiADawwBC0FQCyEAIApBEGokACAACwkAQQFBBSAAGwsMACAAIAEoAAA2AAALqgMBCn8jAEHwAGsiCiQAIAJBAWohDiAAQQhqIQtBgIAEIAVBf2p0QRB1IQxBACECQQEhBkEBIAV0IglBf2oiDyEIA0AgAiAORkUEQAJAIAEgAkEBdCINai8BACIHQf//A0YEQCALIAhBA3RqIAI2AgQgCEF/aiEIQQEhBwwBCyAGQQAgDCAHQRB0QRB1ShshBgsgCiANaiAHOwEAIAJBAWohAgwBCwsgACAFNgIEIAAgBjYCACAJQQN2IAlBAXZqQQNqIQxBACEAQQAhBkEAIQIDQCAGIA5GBEADQAJAIAAgCUYNACAKIAsgAEEDdGoiASgCBCIGQQF0aiICIAIvAQAiAkEBajsBACABIAUgAhAUayIIOgADIAEgAiAIQf8BcXQgCWs7AQAgASAEIAZBAnQiAmooAgA6AAIgASACIANqKAIANgIEIABBAWohAAwBCwsFIAEgBkEBdGouAQAhDUEAIQcDQCAHIA1ORQRAIAsgAkEDdGogBjYCBANAIAIgDGogD3EiAiAISw0ACyAHQQFqIQcMAQsLIAZBAWohBgwBCwsgCkHwAGokAAsjAEIAIAEQCSAAhUKHla+vmLbem55/fkLj3MqV/M7y9YV/fAsQACAAQn43AwggACABNgIACyQBAX8gAARAIAEoAgQiAgRAIAEoAgggACACEQEADwsgABAmCwsfACAAIAEgAi8BABAINgIAIAEQBBogACACQQRqNgIEC0oBAX9BoCAoAgAiASAAaiIAQX9MBEBBiCBBMDYCAEF/DwsCQCAAPwBBEHRNDQAgABBmDQBBiCBBMDYCAEF/DwtBoCAgADYCACABC9cBAQh/Qbp/IQoCQCACKAIEIgggAigCACIJaiIOIAEgAGtLDQBBbCEKIAkgBCADKAIAIgtrSw0AIAAgCWoiBCACKAIIIgxrIQ0gACABQWBqIg8gCyAJQQAQKSADIAkgC2o2AgACQAJAIAwgBCAFa00EQCANIQUMAQsgDCAEIAZrSw0CIAcgDSAFayIAaiIBIAhqIAdNBEAgBCABIAgQDxoMAgsgBCABQQAgAGsQDyEBIAIgACAIaiIINgIEIAEgAGshBAsgBCAPIAUgCEEBECkLIA4hCgsgCgubAgEBfyMAQYABayINJAAgDSADNgJ8AkAgAkEDSwRAQX8hCQwBCwJAAkACQAJAIAJBAWsOAwADAgELIAZFBEBBuH8hCQwEC0FsIQkgBS0AACICIANLDQMgACAHIAJBAnQiAmooAgAgAiAIaigCABA7IAEgADYCAEEBIQkMAwsgASAJNgIAQQAhCQwCCyAKRQRAQWwhCQwCC0EAIQkgC0UgDEEZSHINAUEIIAR0QQhqIQBBACECA0AgAiAATw0CIAJBQGshAgwAAAsAC0FsIQkgDSANQfwAaiANQfgAaiAFIAYQFSICEAMNACANKAJ4IgMgBEsNACAAIA0gDSgCfCAHIAggAxAYIAEgADYCACACIQkLIA1BgAFqJAAgCQsLACAAIAEgAhALGgsQACAALwAAIAAtAAJBEHRyCy8AAn9BuH8gAUEISQ0AGkFyIAAoAAQiAEF3Sw0AGkG4fyAAQQhqIgAgACABSxsLCwkAIAAgATsAAAsDAAELigYBBX8gACAAKAIAIgVBfnE2AgBBACAAIAVBAXZqQYQgKAIAIgQgAEYbIQECQAJAIAAoAgQiAkUNACACKAIAIgNBAXENACACQQhqIgUgA0EBdkF4aiIDQQggA0EISxtnQR9zQQJ0QYAfaiIDKAIARgRAIAMgAigCDDYCAAsgAigCCCIDBEAgAyACKAIMNgIECyACKAIMIgMEQCADIAIoAgg2AgALIAIgAigCACAAKAIAQX5xajYCAEGEICEAAkACQCABRQ0AIAEgAjYCBCABKAIAIgNBAXENASADQQF2QXhqIgNBCCADQQhLG2dBH3NBAnRBgB9qIgMoAgAgAUEIakYEQCADIAEoAgw2AgALIAEoAggiAwRAIAMgASgCDDYCBAsgASgCDCIDBEAgAyABKAIINgIAQYQgKAIAIQQLIAIgAigCACABKAIAQX5xajYCACABIARGDQAgASABKAIAQQF2akEEaiEACyAAIAI2AgALIAIoAgBBAXZBeGoiAEEIIABBCEsbZ0Efc0ECdEGAH2oiASgCACEAIAEgBTYCACACIAA2AgwgAkEANgIIIABFDQEgACAFNgIADwsCQCABRQ0AIAEoAgAiAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAigCACABQQhqRgRAIAIgASgCDDYCAAsgASgCCCICBEAgAiABKAIMNgIECyABKAIMIgIEQCACIAEoAgg2AgBBhCAoAgAhBAsgACAAKAIAIAEoAgBBfnFqIgI2AgACQCABIARHBEAgASABKAIAQQF2aiAANgIEIAAoAgAhAgwBC0GEICAANgIACyACQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgIoAgAhASACIABBCGoiAjYCACAAIAE2AgwgAEEANgIIIAFFDQEgASACNgIADwsgBUEBdkF4aiIBQQggAUEISxtnQR9zQQJ0QYAfaiICKAIAIQEgAiAAQQhqIgI2AgAgACABNgIMIABBADYCCCABRQ0AIAEgAjYCAAsLDgAgAARAIABBeGoQJQsLgAIBA38CQCAAQQ9qQXhxQYQgKAIAKAIAQQF2ayICEB1Bf0YNAAJAQYQgKAIAIgAoAgAiAUEBcQ0AIAFBAXZBeGoiAUEIIAFBCEsbZ0Efc0ECdEGAH2oiASgCACAAQQhqRgRAIAEgACgCDDYCAAsgACgCCCIBBEAgASAAKAIMNgIECyAAKAIMIgFFDQAgASAAKAIINgIAC0EBIQEgACAAKAIAIAJBAXRqIgI2AgAgAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAygCACECIAMgAEEIaiIDNgIAIAAgAjYCDCAAQQA2AgggAkUNACACIAM2AgALIAELtwIBA38CQAJAIABBASAAGyICEDgiAA0AAkACQEGEICgCACIARQ0AIAAoAgAiA0EBcQ0AIAAgA0EBcjYCACADQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgAgAEEIakYEQCABIAAoAgw2AgALIAAoAggiAQRAIAEgACgCDDYCBAsgACgCDCIBBEAgASAAKAIINgIACyACECchAkEAIQFBhCAoAgAhACACDQEgACAAKAIAQX5xNgIAQQAPCyACQQ9qQXhxIgMQHSICQX9GDQIgAkEHakF4cSIAIAJHBEAgACACaxAdQX9GDQMLAkBBhCAoAgAiAUUEQEGAICAANgIADAELIAAgATYCBAtBhCAgADYCACAAIANBAXRBAXI2AgAMAQsgAEUNAQsgAEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigCACACaiAAQQZ2IgFBAnRBsB5qKAIAaiAAQSBxIgBFaiABRSAAQQV2cWoFQbh/CwsdACAAKAKQ4gEQWiAAQQA2AqDiASAAQgA3A5DiAQu1AwEFfyMAQZACayIKJABBuH8hBgJAIAVFDQAgBCwAACIIQf8BcSEHAkAgCEF/TARAIAdBgn9qQQF2IgggBU8NAkFsIQYgB0GBf2oiBUGAAk8NAiAEQQFqIQdBACEGA0AgBiAFTwRAIAUhBiAIIQcMAwUgACAGaiAHIAZBAXZqIgQtAABBBHY6AAAgACAGQQFyaiAELQAAQQ9xOgAAIAZBAmohBgwBCwAACwALIAcgBU8NASAAIARBAWogByAKEFMiBhADDQELIAYhBEEAIQYgAUEAQTQQECEJQQAhBQNAIAQgBkcEQCAAIAZqIggtAAAiAUELSwRAQWwhBgwDBSAJIAFBAnRqIgEgASgCAEEBajYCACAGQQFqIQZBASAILQAAdEEBdSAFaiEFDAILAAsLQWwhBiAFRQ0AIAUQFEEBaiIBQQxLDQAgAyABNgIAQQFBASABdCAFayIDEBQiAXQgA0cNACAAIARqIAFBAWoiADoAACAJIABBAnRqIgAgACgCAEEBajYCACAJKAIEIgBBAkkgAEEBcXINACACIARBAWo2AgAgB0EBaiEGCyAKQZACaiQAIAYLxhEBDH8jAEHwAGsiBSQAQWwhCwJAIANBCkkNACACLwAAIQogAi8AAiEJIAIvAAQhByAFQQhqIAQQDgJAIAMgByAJIApqakEGaiIMSQ0AIAUtAAohCCAFQdgAaiACQQZqIgIgChAGIgsQAw0BIAVBQGsgAiAKaiICIAkQBiILEAMNASAFQShqIAIgCWoiAiAHEAYiCxADDQEgBUEQaiACIAdqIAMgDGsQBiILEAMNASAAIAFqIg9BfWohECAEQQRqIQZBASELIAAgAUEDakECdiIDaiIMIANqIgIgA2oiDiEDIAIhBCAMIQcDQCALIAMgEElxBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgCS0AAyELIAcgBiAFQUBrIAgQAkECdGoiCS8BADsAACAFQUBrIAktAAIQASAJLQADIQogBCAGIAVBKGogCBACQQJ0aiIJLwEAOwAAIAVBKGogCS0AAhABIAktAAMhCSADIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgDS0AAyENIAAgC2oiCyAGIAVB2ABqIAgQAkECdGoiAC8BADsAACAFQdgAaiAALQACEAEgAC0AAyEAIAcgCmoiCiAGIAVBQGsgCBACQQJ0aiIHLwEAOwAAIAVBQGsgBy0AAhABIActAAMhByAEIAlqIgkgBiAFQShqIAgQAkECdGoiBC8BADsAACAFQShqIAQtAAIQASAELQADIQQgAyANaiIDIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgACALaiEAIAcgCmohByAEIAlqIQQgAyANLQADaiEDIAVB2ABqEA0gBUFAaxANciAFQShqEA1yIAVBEGoQDXJFIQsMAQsLIAQgDksgByACS3INAEFsIQsgACAMSw0BIAxBfWohCQNAQQAgACAJSSAFQdgAahAEGwRAIAAgBiAFQdgAaiAIEAJBAnRqIgovAQA7AAAgBUHYAGogCi0AAhABIAAgCi0AA2oiACAGIAVB2ABqIAgQAkECdGoiCi8BADsAACAFQdgAaiAKLQACEAEgACAKLQADaiEADAEFIAxBfmohCgNAIAVB2ABqEAQgACAKS3JFBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgACAJLQADaiEADAELCwNAIAAgCk0EQCAAIAYgBUHYAGogCBACQQJ0aiIJLwEAOwAAIAVB2ABqIAktAAIQASAAIAktAANqIQAMAQsLAkAgACAMTw0AIAAgBiAFQdgAaiAIEAIiAEECdGoiDC0AADoAACAMLQADQQFGBEAgBUHYAGogDC0AAhABDAELIAUoAlxBH0sNACAFQdgAaiAGIABBAnRqLQACEAEgBSgCXEEhSQ0AIAVBIDYCXAsgAkF9aiEMA0BBACAHIAxJIAVBQGsQBBsEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiIAIAYgBUFAayAIEAJBAnRqIgcvAQA7AAAgBUFAayAHLQACEAEgACAHLQADaiEHDAEFIAJBfmohDANAIAVBQGsQBCAHIAxLckUEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwNAIAcgDE0EQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwJAIAcgAk8NACAHIAYgBUFAayAIEAIiAEECdGoiAi0AADoAACACLQADQQFGBEAgBUFAayACLQACEAEMAQsgBSgCREEfSw0AIAVBQGsgBiAAQQJ0ai0AAhABIAUoAkRBIUkNACAFQSA2AkQLIA5BfWohAgNAQQAgBCACSSAFQShqEAQbBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2oiACAGIAVBKGogCBACQQJ0aiIELwEAOwAAIAVBKGogBC0AAhABIAAgBC0AA2ohBAwBBSAOQX5qIQIDQCAFQShqEAQgBCACS3JFBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsDQCAEIAJNBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsCQCAEIA5PDQAgBCAGIAVBKGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBKGogAi0AAhABDAELIAUoAixBH0sNACAFQShqIAYgAEECdGotAAIQASAFKAIsQSFJDQAgBUEgNgIsCwNAQQAgAyAQSSAFQRBqEAQbBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2oiACAGIAVBEGogCBACQQJ0aiICLwEAOwAAIAVBEGogAi0AAhABIAAgAi0AA2ohAwwBBSAPQX5qIQIDQCAFQRBqEAQgAyACS3JFBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsDQCADIAJNBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsCQCADIA9PDQAgAyAGIAVBEGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBEGogAi0AAhABDAELIAUoAhRBH0sNACAFQRBqIAYgAEECdGotAAIQASAFKAIUQSFJDQAgBUEgNgIUCyABQWwgBUHYAGoQCiAFQUBrEApxIAVBKGoQCnEgBUEQahAKcRshCwwJCwAACwALAAALAAsAAAsACwAACwALQWwhCwsgBUHwAGokACALC7UEAQ5/IwBBEGsiBiQAIAZBBGogABAOQVQhBQJAIARB3AtJDQAgBi0ABCEHIANB8ARqQQBB7AAQECEIIAdBDEsNACADQdwJaiIJIAggBkEIaiAGQQxqIAEgAhAxIhAQA0UEQCAGKAIMIgQgB0sNASADQdwFaiEPIANBpAVqIREgAEEEaiESIANBqAVqIQEgBCEFA0AgBSICQX9qIQUgCCACQQJ0aigCAEUNAAsgAkEBaiEOQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgASALaiAKNgIAIAVBAWohBSAKIAxqIQoMAQsLIAEgCjYCAEEAIQUgBigCCCELA0AgBSALRkUEQCABIAUgCWotAAAiDEECdGoiDSANKAIAIg1BAWo2AgAgDyANQQF0aiINIAw6AAEgDSAFOgAAIAVBAWohBQwBCwtBACEBIANBADYCqAUgBEF/cyAHaiEJQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgAyALaiABNgIAIAwgBSAJanQgAWohASAFQQFqIQUMAQsLIAcgBEEBaiIBIAJrIgRrQQFqIQgDQEEBIQUgBCAIT0UEQANAIAUgDk9FBEAgBUECdCIJIAMgBEE0bGpqIAMgCWooAgAgBHY2AgAgBUEBaiEFDAELCyAEQQFqIQQMAQsLIBIgByAPIAogESADIAIgARBkIAZBAToABSAGIAc6AAYgACAGKAIENgIACyAQIQULIAZBEGokACAFC8ENAQt/IwBB8ABrIgUkAEFsIQkCQCADQQpJDQAgAi8AACEKIAIvAAIhDCACLwAEIQYgBUEIaiAEEA4CQCADIAYgCiAMampBBmoiDUkNACAFLQAKIQcgBUHYAGogAkEGaiICIAoQBiIJEAMNASAFQUBrIAIgCmoiAiAMEAYiCRADDQEgBUEoaiACIAxqIgIgBhAGIgkQAw0BIAVBEGogAiAGaiADIA1rEAYiCRADDQEgACABaiIOQX1qIQ8gBEEEaiEGQQEhCSAAIAFBA2pBAnYiAmoiCiACaiIMIAJqIg0hAyAMIQQgCiECA0AgCSADIA9JcQRAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAACAGIAVBQGsgBxACQQF0aiIILQAAIQsgBUFAayAILQABEAEgAiALOgAAIAYgBUEoaiAHEAJBAXRqIggtAAAhCyAFQShqIAgtAAEQASAEIAs6AAAgBiAFQRBqIAcQAkEBdGoiCC0AACELIAVBEGogCC0AARABIAMgCzoAACAGIAVB2ABqIAcQAkEBdGoiCC0AACELIAVB2ABqIAgtAAEQASAAIAs6AAEgBiAFQUBrIAcQAkEBdGoiCC0AACELIAVBQGsgCC0AARABIAIgCzoAASAGIAVBKGogBxACQQF0aiIILQAAIQsgBUEoaiAILQABEAEgBCALOgABIAYgBUEQaiAHEAJBAXRqIggtAAAhCyAFQRBqIAgtAAEQASADIAs6AAEgA0ECaiEDIARBAmohBCACQQJqIQIgAEECaiEAIAkgBUHYAGoQDUVxIAVBQGsQDUVxIAVBKGoQDUVxIAVBEGoQDUVxIQkMAQsLIAQgDUsgAiAMS3INAEFsIQkgACAKSw0BIApBfWohCQNAIAVB2ABqEAQgACAJT3JFBEAgBiAFQdgAaiAHEAJBAXRqIggtAAAhCyAFQdgAaiAILQABEAEgACALOgAAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAASAAQQJqIQAMAQsLA0AgBUHYAGoQBCAAIApPckUEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCwNAIAAgCkkEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCyAMQX1qIQADQCAFQUBrEAQgAiAAT3JFBEAgBiAFQUBrIAcQAkEBdGoiCi0AACEJIAVBQGsgCi0AARABIAIgCToAACAGIAVBQGsgBxACQQF0aiIKLQAAIQkgBUFAayAKLQABEAEgAiAJOgABIAJBAmohAgwBCwsDQCAFQUBrEAQgAiAMT3JFBEAgBiAFQUBrIAcQAkEBdGoiAC0AACEKIAVBQGsgAC0AARABIAIgCjoAACACQQFqIQIMAQsLA0AgAiAMSQRAIAYgBUFAayAHEAJBAXRqIgAtAAAhCiAFQUBrIAAtAAEQASACIAo6AAAgAkEBaiECDAELCyANQX1qIQADQCAFQShqEAQgBCAAT3JFBEAgBiAFQShqIAcQAkEBdGoiAi0AACEKIAVBKGogAi0AARABIAQgCjoAACAGIAVBKGogBxACQQF0aiICLQAAIQogBUEoaiACLQABEAEgBCAKOgABIARBAmohBAwBCwsDQCAFQShqEAQgBCANT3JFBEAgBiAFQShqIAcQAkEBdGoiAC0AACECIAVBKGogAC0AARABIAQgAjoAACAEQQFqIQQMAQsLA0AgBCANSQRAIAYgBUEoaiAHEAJBAXRqIgAtAAAhAiAFQShqIAAtAAEQASAEIAI6AAAgBEEBaiEEDAELCwNAIAVBEGoQBCADIA9PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIAYgBUEQaiAHEAJBAXRqIgAtAAAhAiAFQRBqIAAtAAEQASADIAI6AAEgA0ECaiEDDAELCwNAIAVBEGoQBCADIA5PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIANBAWohAwwBCwsDQCADIA5JBEAgBiAFQRBqIAcQAkEBdGoiAC0AACECIAVBEGogAC0AARABIAMgAjoAACADQQFqIQMMAQsLIAFBbCAFQdgAahAKIAVBQGsQCnEgBUEoahAKcSAFQRBqEApxGyEJDAELQWwhCQsgBUHwAGokACAJC8oCAQR/IwBBIGsiBSQAIAUgBBAOIAUtAAIhByAFQQhqIAIgAxAGIgIQA0UEQCAEQQRqIQIgACABaiIDQX1qIQQDQCAFQQhqEAQgACAET3JFBEAgAiAFQQhqIAcQAkEBdGoiBi0AACEIIAVBCGogBi0AARABIAAgCDoAACACIAVBCGogBxACQQF0aiIGLQAAIQggBUEIaiAGLQABEAEgACAIOgABIABBAmohAAwBCwsDQCAFQQhqEAQgACADT3JFBEAgAiAFQQhqIAcQAkEBdGoiBC0AACEGIAVBCGogBC0AARABIAAgBjoAACAAQQFqIQAMAQsLA0AgACADT0UEQCACIAVBCGogBxACQQF0aiIELQAAIQYgBUEIaiAELQABEAEgACAGOgAAIABBAWohAAwBCwsgAUFsIAVBCGoQChshAgsgBUEgaiQAIAILtgMBCX8jAEEQayIGJAAgBkEANgIMIAZBADYCCEFUIQQCQAJAIANBQGsiDCADIAZBCGogBkEMaiABIAIQMSICEAMNACAGQQRqIAAQDiAGKAIMIgcgBi0ABEEBaksNASAAQQRqIQogBkEAOgAFIAYgBzoABiAAIAYoAgQ2AgAgB0EBaiEJQQEhBANAIAQgCUkEQCADIARBAnRqIgEoAgAhACABIAU2AgAgACAEQX9qdCAFaiEFIARBAWohBAwBCwsgB0EBaiEHQQAhBSAGKAIIIQkDQCAFIAlGDQEgAyAFIAxqLQAAIgRBAnRqIgBBASAEdEEBdSILIAAoAgAiAWoiADYCACAHIARrIQhBACEEAkAgC0EDTQRAA0AgBCALRg0CIAogASAEakEBdGoiACAIOgABIAAgBToAACAEQQFqIQQMAAALAAsDQCABIABPDQEgCiABQQF0aiIEIAg6AAEgBCAFOgAAIAQgCDoAAyAEIAU6AAIgBCAIOgAFIAQgBToABCAEIAg6AAcgBCAFOgAGIAFBBGohAQwAAAsACyAFQQFqIQUMAAALAAsgAiEECyAGQRBqJAAgBAutAQECfwJAQYQgKAIAIABHIAAoAgBBAXYiAyABa0F4aiICQXhxQQhHcgR/IAIFIAMQJ0UNASACQQhqC0EQSQ0AIAAgACgCACICQQFxIAAgAWpBD2pBeHEiASAAa0EBdHI2AgAgASAANgIEIAEgASgCAEEBcSAAIAJBAXZqIAFrIgJBAXRyNgIAQYQgIAEgAkH/////B3FqQQRqQYQgKAIAIABGGyABNgIAIAEQJQsLygIBBX8CQAJAAkAgAEEIIABBCEsbZ0EfcyAAaUEBR2oiAUEESSAAIAF2cg0AIAFBAnRB/B5qKAIAIgJFDQADQCACQXhqIgMoAgBBAXZBeGoiBSAATwRAIAIgBUEIIAVBCEsbZ0Efc0ECdEGAH2oiASgCAEYEQCABIAIoAgQ2AgALDAMLIARBHksNASAEQQFqIQQgAigCBCICDQALC0EAIQMgAUEgTw0BA0AgAUECdEGAH2ooAgAiAkUEQCABQR5LIQIgAUEBaiEBIAJFDQEMAwsLIAIgAkF4aiIDKAIAQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgBGBEAgASACKAIENgIACwsgAigCACIBBEAgASACKAIENgIECyACKAIEIgEEQCABIAIoAgA2AgALIAMgAygCAEEBcjYCACADIAAQNwsgAwvhCwINfwV+IwBB8ABrIgckACAHIAAoAvDhASIINgJcIAEgAmohDSAIIAAoAoDiAWohDwJAAkAgBUUEQCABIQQMAQsgACgCxOABIRAgACgCwOABIREgACgCvOABIQ4gAEEBNgKM4QFBACEIA0AgCEEDRwRAIAcgCEECdCICaiAAIAJqQazQAWooAgA2AkQgCEEBaiEIDAELC0FsIQwgB0EYaiADIAQQBhADDQEgB0EsaiAHQRhqIAAoAgAQEyAHQTRqIAdBGGogACgCCBATIAdBPGogB0EYaiAAKAIEEBMgDUFgaiESIAEhBEEAIQwDQCAHKAIwIAcoAixBA3RqKQIAIhRCEIinQf8BcSEIIAcoAkAgBygCPEEDdGopAgAiFUIQiKdB/wFxIQsgBygCOCAHKAI0QQN0aikCACIWQiCIpyEJIBVCIIghFyAUQiCIpyECAkAgFkIQiKdB/wFxIgNBAk8EQAJAIAZFIANBGUlyRQRAIAkgB0EYaiADQSAgBygCHGsiCiAKIANLGyIKEAUgAyAKayIDdGohCSAHQRhqEAQaIANFDQEgB0EYaiADEAUgCWohCQwBCyAHQRhqIAMQBSAJaiEJIAdBGGoQBBoLIAcpAkQhGCAHIAk2AkQgByAYNwNIDAELAkAgA0UEQCACBEAgBygCRCEJDAMLIAcoAkghCQwBCwJAAkAgB0EYakEBEAUgCSACRWpqIgNBA0YEQCAHKAJEQX9qIgMgA0VqIQkMAQsgA0ECdCAHaigCRCIJIAlFaiEJIANBAUYNAQsgByAHKAJINgJMCwsgByAHKAJENgJIIAcgCTYCRAsgF6chAyALBEAgB0EYaiALEAUgA2ohAwsgCCALakEUTwRAIAdBGGoQBBoLIAgEQCAHQRhqIAgQBSACaiECCyAHQRhqEAQaIAcgB0EYaiAUQhiIp0H/AXEQCCAUp0H//wNxajYCLCAHIAdBGGogFUIYiKdB/wFxEAggFadB//8DcWo2AjwgB0EYahAEGiAHIAdBGGogFkIYiKdB/wFxEAggFqdB//8DcWo2AjQgByACNgJgIAcoAlwhCiAHIAk2AmggByADNgJkAkACQAJAIAQgAiADaiILaiASSw0AIAIgCmoiEyAPSw0AIA0gBGsgC0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdBKGogACgCBBATQQAhBCAHQeAAaiEMIAdB5ABqIQoDQCAHQShqEARBAksgBCAXTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEJIAcoAkggBygCREEDdGopAgAiH0IgiKchCCAeQiCIISAgHUIgiKchAgJAIB9CEIinQf8BcSIDQQJPBEACQCAGRSADQRlJckUEQCAIIAdBKGogA0EgIAcoAixrIg0gDSADSxsiDRAFIAMgDWsiA3RqIQggB0EoahAEGiADRQ0BIAdBKGogAxAFIAhqIQgMAQsgB0EoaiADEAUgCGohCCAHQShqEAQaCyAHKQJUISEgByAINgJUIAcgITcDWAwBCwJAIANFBEAgAgRAIAcoAlQhCAwDCyAHKAJYIQgMAQsCQAJAIAdBKGpBARAFIAggAkVqaiIDQQNGBEAgBygCVEF/aiIDIANFaiEIDAELIANBAnQgB2ooAlQiCCAIRWohCCADQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAg2AlQLICCnIQMgCQRAIAdBKGogCRAFIANqIQMLIAkgC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgAmohAgsgB0EoahAEGiAHIAcoAmggAmoiCSADajYCaCAKIAwgCCAJSxsoAgAhDSAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogB0EoaiAfQhiIp0H/AXEQCCEOIAdB8ABqIARBBHRqIgsgCSANaiAIazYCDCALIAg2AgggCyADNgIEIAsgAjYCACAHIA4gH6dB//8DcWo2AkQgBEEBaiEEDAELCyAEIBdIDQEgEkFgaiEYIAdB4ABqIRogB0HkAGohGyABIQMDQCAHQShqEARBAksgBCAFTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEIIAcoAkggBygCREEDdGopAgAiH0IgiKchCSAeQiCIISAgHUIgiKchDAJAIB9CEIinQf8BcSICQQJPBEACQCAGRSACQRlJckUEQCAJIAdBKGogAkEgIAcoAixrIgogCiACSxsiChAFIAIgCmsiAnRqIQkgB0EoahAEGiACRQ0BIAdBKGogAhAFIAlqIQkMAQsgB0EoaiACEAUgCWohCSAHQShqEAQaCyAHKQJUISEgByAJNgJUIAcgITcDWAwBCwJAIAJFBEAgDARAIAcoAlQhCQwDCyAHKAJYIQkMAQsCQAJAIAdBKGpBARAFIAkgDEVqaiICQQNGBEAgBygCVEF/aiICIAJFaiEJDAELIAJBAnQgB2ooAlQiCSAJRWohCSACQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAk2AlQLICCnIRQgCARAIAdBKGogCBAFIBRqIRQLIAggC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgDGohDAsgB0EoahAEGiAHIAcoAmggDGoiGSAUajYCaCAbIBogCSAZSxsoAgAhHCAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogByAHQShqIB9CGIinQf8BcRAIIB+nQf//A3FqNgJEIAcgB0HwAGogBEEDcUEEdGoiDSkDCCIdNwPIASAHIA0pAwAiHjcDwAECQAJAAkAgBygCvAEiDiAepyICaiIWIBNLDQAgAyAHKALEASIKIAJqIgtqIBhLDQAgEiADayALQSBqTw0BCyAHIAcpA8gBNwMQIAcgBykDwAE3AwggAyASIAdBCGogB0G8AWogEyAPIBUgERAeIQsMAQsgAiADaiEIIAMgDhAHIAJBEU8EQCADQRBqIQIDQCACIA5BEGoiDhAHIAJBEGoiAiAISQ0ACwsgCCAdpyIOayECIAcgFjYCvAEgDiAIIA9rSwRAIA4gCCAVa0sEQEFsIQsMAgsgESACIA9rIgJqIhYgCmogEU0EQCAIIBYgChAPGgwCCyAIIBZBACACaxAPIQggByACIApqIgo2AsQBIAggAmshCCAPIQILIA5BEE8EQCAIIApqIQoDQCAIIAIQByACQRBqIQIgCEEQaiIIIApJDQALDAELAkAgDkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgDkECdCIKQcAeaigCAGoiAhAXIAIgCkHgHmooAgBrIQIgBygCxAEhCgwBCyAIIAIQDAsgCkEJSQ0AIAggCmohCiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAKSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAKSQ0ACwsgCxADBEAgCyEQDAQFIA0gDDYCACANIBkgHGogCWs2AgwgDSAJNgIIIA0gFDYCBCAEQQFqIQQgAyALaiEDDAILAAsLIAQgBUgNASAEIBdrIQtBACEEA0AgCyAFSARAIAcgB0HwAGogC0EDcUEEdGoiAikDCCIdNwPIASAHIAIpAwAiHjcDwAECQAJAAkAgBygCvAEiDCAepyICaiIKIBNLDQAgAyAHKALEASIJIAJqIhBqIBhLDQAgEiADayAQQSBqTw0BCyAHIAcpA8gBNwMgIAcgBykDwAE3AxggAyASIAdBGGogB0G8AWogEyAPIBUgERAeIRAMAQsgAiADaiEIIAMgDBAHIAJBEU8EQCADQRBqIQIDQCACIAxBEGoiDBAHIAJBEGoiAiAISQ0ACwsgCCAdpyIGayECIAcgCjYCvAEgBiAIIA9rSwRAIAYgCCAVa0sEQEFsIRAMAgsgESACIA9rIgJqIgwgCWogEU0EQCAIIAwgCRAPGgwCCyAIIAxBACACaxAPIQggByACIAlqIgk2AsQBIAggAmshCCAPIQILIAZBEE8EQCAIIAlqIQYDQCAIIAIQByACQRBqIQIgCEEQaiIIIAZJDQALDAELAkAgBkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgBkECdCIGQcAeaigCAGoiAhAXIAIgBkHgHmooAgBrIQIgBygCxAEhCQwBCyAIIAIQDAsgCUEJSQ0AIAggCWohBiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAGSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAGSQ0ACwsgEBADDQMgC0EBaiELIAMgEGohAwwBCwsDQCAEQQNHBEAgACAEQQJ0IgJqQazQAWogAiAHaigCVDYCACAEQQFqIQQMAQsLIAcoArwBIQgLQbp/IRAgEyAIayIAIBIgA2tLDQAgAwR/IAMgCCAAEAsgAGoFQQALIAFrIRALIAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY0AAQMyIFEAMiBg0AIANBHzYCfCADIANB/ABqIANB+ABqIAQgBCAFaiAGGyIEIAEgAmoiAiAEaxAVIgUQAw0AIAMoAnwiBkEfSw0AIAMoAngiB0EJTw0AIABBiCBqIAMgBkGAC0GADCAHEBggA0E0NgJ8IAMgA0H8AGogA0H4AGogBCAFaiIEIAIgBGsQFSIFEAMNACADKAJ8IgZBNEsNACADKAJ4IgdBCk8NACAAQZAwaiADIAZBgA1B4A4gBxAYIANBIzYCfCADIANB/ABqIANB+ABqIAQgBWoiBCACIARrEBUiBRADDQAgAygCfCIGQSNLDQAgAygCeCIHQQpPDQAgACADIAZBwBBB0BEgBxAYIAQgBWoiBEEMaiIFIAJLDQAgAiAFayEFQQAhAgNAIAJBA0cEQCAEKAAAIgZBf2ogBU8NAiAAIAJBAnRqQZzQAWogBjYCACACQQFqIQIgBEEEaiEEDAELCyAEIAFrIQgLIANBgAFqJAAgCAtGAQN/IABBCGohAyAAKAIEIQJBACEAA0AgACACdkUEQCABIAMgAEEDdGotAAJBFktqIQEgAEEBaiEADAELCyABQQggAmt0C4YDAQV/Qbh/IQcCQCADRQ0AIAItAAAiBEUEQCABQQA2AgBBAUG4fyADQQFGGw8LAn8gAkEBaiIFIARBGHRBGHUiBkF/Sg0AGiAGQX9GBEAgA0EDSA0CIAUvAABBgP4BaiEEIAJBA2oMAQsgA0ECSA0BIAItAAEgBEEIdHJBgIB+aiEEIAJBAmoLIQUgASAENgIAIAVBAWoiASACIANqIgNLDQBBbCEHIABBEGogACAFLQAAIgVBBnZBI0EJIAEgAyABa0HAEEHQEUHwEiAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBmCBqIABBCGogBUEEdkEDcUEfQQggASABIAZqIAgbIgEgAyABa0GAC0GADEGAFyAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBoDBqIABBBGogBUECdkEDcUE0QQkgASABIAZqIAgbIgEgAyABa0GADUHgDkGQGSAAKAKM4QEgACgCnOIBIAQQHyIAEAMNACAAIAFqIAJrIQcLIAcLrQMBCn8jAEGABGsiCCQAAn9BUiACQf8BSw0AGkFUIANBDEsNABogAkEBaiELIABBBGohCUGAgAQgA0F/anRBEHUhCkEAIQJBASEEQQEgA3QiB0F/aiIMIQUDQCACIAtGRQRAAkAgASACQQF0Ig1qLwEAIgZB//8DRgRAIAkgBUECdGogAjoAAiAFQX9qIQVBASEGDAELIARBACAKIAZBEHRBEHVKGyEECyAIIA1qIAY7AQAgAkEBaiECDAELCyAAIAQ7AQIgACADOwEAIAdBA3YgB0EBdmpBA2ohBkEAIQRBACECA0AgBCALRkUEQCABIARBAXRqLgEAIQpBACEAA0AgACAKTkUEQCAJIAJBAnRqIAQ6AAIDQCACIAZqIAxxIgIgBUsNAAsgAEEBaiEADAELCyAEQQFqIQQMAQsLQX8gAg0AGkEAIQIDfyACIAdGBH9BAAUgCCAJIAJBAnRqIgAtAAJBAXRqIgEgAS8BACIBQQFqOwEAIAAgAyABEBRrIgU6AAMgACABIAVB/wFxdCAHazsBACACQQFqIQIMAQsLCyEFIAhBgARqJAAgBQvjBgEIf0FsIQcCQCACQQNJDQACQAJAAkACQCABLQAAIgNBA3EiCUEBaw4DAwEAAgsgACgCiOEBDQBBYg8LIAJBBUkNAkEDIQYgASgAACEFAn8CQAJAIANBAnZBA3EiCEF+aiIEQQFNBEAgBEEBaw0BDAILIAVBDnZB/wdxIQQgBUEEdkH/B3EhAyAIRQwCCyAFQRJ2IQRBBCEGIAVBBHZB//8AcSEDQQAMAQsgBUEEdkH//w9xIgNBgIAISw0DIAEtAARBCnQgBUEWdnIhBEEFIQZBAAshBSAEIAZqIgogAksNAgJAIANBgQZJDQAgACgCnOIBRQ0AQQAhAgNAIAJBg4ABSw0BIAJBQGshAgwAAAsACwJ/IAlBA0YEQCABIAZqIQEgAEHw4gFqIQIgACgCDCEGIAUEQCACIAMgASAEIAYQXwwCCyACIAMgASAEIAYQXQwBCyAAQbjQAWohAiABIAZqIQEgAEHw4gFqIQYgAEGo0ABqIQggBQRAIAggBiADIAEgBCACEF4MAQsgCCAGIAMgASAEIAIQXAsQAw0CIAAgAzYCgOIBIABBATYCiOEBIAAgAEHw4gFqNgLw4QEgCUECRgRAIAAgAEGo0ABqNgIMCyAAIANqIgBBiOMBakIANwAAIABBgOMBakIANwAAIABB+OIBakIANwAAIABB8OIBakIANwAAIAoPCwJ/AkACQAJAIANBAnZBA3FBf2oiBEECSw0AIARBAWsOAgACAQtBASEEIANBA3YMAgtBAiEEIAEvAABBBHYMAQtBAyEEIAEQIUEEdgsiAyAEaiIFQSBqIAJLBEAgBSACSw0CIABB8OIBaiABIARqIAMQCyEBIAAgAzYCgOIBIAAgATYC8OEBIAEgA2oiAEIANwAYIABCADcAECAAQgA3AAggAEIANwAAIAUPCyAAIAM2AoDiASAAIAEgBGo2AvDhASAFDwsCfwJAAkACQCADQQJ2QQNxQX9qIgRBAksNACAEQQFrDgIAAgELQQEhByADQQN2DAILQQIhByABLwAAQQR2DAELIAJBBEkgARAhIgJBj4CAAUtyDQFBAyEHIAJBBHYLIQIgAEHw4gFqIAEgB2otAAAgAkEgahAQIQEgACACNgKA4gEgACABNgLw4QEgB0EBaiEHCyAHC0sAIABC+erQ0OfJoeThADcDICAAQgA3AxggAELP1tO+0ser2UI3AxAgAELW64Lu6v2J9eAANwMIIABCADcDACAAQShqQQBBKBAQGgviAgICfwV+IABBKGoiASAAKAJIaiECAn4gACkDACIDQiBaBEAgACkDECIEQgeJIAApAwgiBUIBiXwgACkDGCIGQgyJfCAAKQMgIgdCEol8IAUQGSAEEBkgBhAZIAcQGQwBCyAAKQMYQsXP2bLx5brqJ3wLIAN8IQMDQCABQQhqIgAgAk0EQEIAIAEpAAAQCSADhUIbiUKHla+vmLbem55/fkLj3MqV/M7y9YV/fCEDIAAhAQwBCwsCQCABQQRqIgAgAksEQCABIQAMAQsgASgAAK1Ch5Wvr5i23puef34gA4VCF4lCz9bTvtLHq9lCfkL5893xmfaZqxZ8IQMLA0AgACACSQRAIAAxAABCxc/ZsvHluuonfiADhUILiUKHla+vmLbem55/fiEDIABBAWohAAwBCwsgA0IhiCADhULP1tO+0ser2UJ+IgNCHYggA4VC+fPd8Zn2masWfiIDQiCIIAOFC+8CAgJ/BH4gACAAKQMAIAKtfDcDAAJAAkAgACgCSCIDIAJqIgRBH00EQCABRQ0BIAAgA2pBKGogASACECAgACgCSCACaiEEDAELIAEgAmohAgJ/IAMEQCAAQShqIgQgA2ogAUEgIANrECAgACAAKQMIIAQpAAAQCTcDCCAAIAApAxAgACkAMBAJNwMQIAAgACkDGCAAKQA4EAk3AxggACAAKQMgIABBQGspAAAQCTcDICAAKAJIIQMgAEEANgJIIAEgA2tBIGohAQsgAUEgaiACTQsEQCACQWBqIQMgACkDICEFIAApAxghBiAAKQMQIQcgACkDCCEIA0AgCCABKQAAEAkhCCAHIAEpAAgQCSEHIAYgASkAEBAJIQYgBSABKQAYEAkhBSABQSBqIgEgA00NAAsgACAFNwMgIAAgBjcDGCAAIAc3AxAgACAINwMICyABIAJPDQEgAEEoaiABIAIgAWsiBBAgCyAAIAQ2AkgLCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQEBogAwVBun8LCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQCxogAwVBun8LC6gCAQZ/IwBBEGsiByQAIABB2OABaikDAEKAgIAQViEIQbh/IQUCQCAEQf//B0sNACAAIAMgBBBCIgUQAyIGDQAgACgCnOIBIQkgACAHQQxqIAMgAyAFaiAGGyIKIARBACAFIAYbayIGEEAiAxADBEAgAyEFDAELIAcoAgwhBCABRQRAQbp/IQUgBEEASg0BCyAGIANrIQUgAyAKaiEDAkAgCQRAIABBADYCnOIBDAELAkACQAJAIARBBUgNACAAQdjgAWopAwBCgICACFgNAAwBCyAAQQA2ApziAQwBCyAAKAIIED8hBiAAQQA2ApziASAGQRRPDQELIAAgASACIAMgBSAEIAgQOSEFDAELIAAgASACIAMgBSAEIAgQOiEFCyAHQRBqJAAgBQtnACAAQdDgAWogASACIAAoAuzhARAuIgEQAwRAIAEPC0G4fyECAkAgAQ0AIABB7OABaigCACIBBEBBYCECIAAoApjiASABRw0BC0EAIQIgAEHw4AFqKAIARQ0AIABBkOEBahBDCyACCycBAX8QVyIERQRAQUAPCyAEIAAgASACIAMgBBBLEE8hACAEEFYgAAs/AQF/AkACQAJAIAAoAqDiAUEBaiIBQQJLDQAgAUEBaw4CAAECCyAAEDBBAA8LIABBADYCoOIBCyAAKAKU4gELvAMCB38BfiMAQRBrIgkkAEG4fyEGAkAgBCgCACIIQQVBCSAAKALs4QEiBRtJDQAgAygCACIHQQFBBSAFGyAFEC8iBRADBEAgBSEGDAELIAggBUEDakkNACAAIAcgBRBJIgYQAw0AIAEgAmohCiAAQZDhAWohCyAIIAVrIQIgBSAHaiEHIAEhBQNAIAcgAiAJECwiBhADDQEgAkF9aiICIAZJBEBBuH8hBgwCCyAJKAIAIghBAksEQEFsIQYMAgsgB0EDaiEHAn8CQAJAAkAgCEEBaw4CAgABCyAAIAUgCiAFayAHIAYQSAwCCyAFIAogBWsgByAGEEcMAQsgBSAKIAVrIActAAAgCSgCCBBGCyIIEAMEQCAIIQYMAgsgACgC8OABBEAgCyAFIAgQRQsgAiAGayECIAYgB2ohByAFIAhqIQUgCSgCBEUNAAsgACkD0OABIgxCf1IEQEFsIQYgDCAFIAFrrFINAQsgACgC8OABBEBBaiEGIAJBBEkNASALEEQhDCAHKAAAIAynRw0BIAdBBGohByACQXxqIQILIAMgBzYCACAEIAI2AgAgBSABayEGCyAJQRBqJAAgBgsuACAAECsCf0EAQQAQAw0AGiABRSACRXJFBEBBYiAAIAEgAhA9EAMNARoLQQALCzcAIAEEQCAAIAAoAsTgASABKAIEIAEoAghqRzYCnOIBCyAAECtBABADIAFFckUEQCAAIAEQWwsL0QIBB38jAEEQayIGJAAgBiAENgIIIAYgAzYCDCAFBEAgBSgCBCEKIAUoAgghCQsgASEIAkACQANAIAAoAuzhARAWIQsCQANAIAQgC0kNASADKAAAQXBxQdDUtMIBRgRAIAMgBBAiIgcQAw0EIAQgB2shBCADIAdqIQMMAQsLIAYgAzYCDCAGIAQ2AggCQCAFBEAgACAFEE5BACEHQQAQA0UNAQwFCyAAIAogCRBNIgcQAw0ECyAAIAgQUCAMQQFHQQAgACAIIAIgBkEMaiAGQQhqEEwiByIDa0EAIAMQAxtBCkdyRQRAQbh/IQcMBAsgBxADDQMgAiAHayECIAcgCGohCEEBIQwgBigCDCEDIAYoAgghBAwBCwsgBiADNgIMIAYgBDYCCEG4fyEHIAQNASAIIAFrIQcMAQsgBiADNgIMIAYgBDYCCAsgBkEQaiQAIAcLRgECfyABIAAoArjgASICRwRAIAAgAjYCxOABIAAgATYCuOABIAAoArzgASEDIAAgATYCvOABIAAgASADIAJrajYCwOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEEdCAAbiECCyAAQQh2IgEgAkEYbCIAQYwIaigCAGwgAEGICGooAgBqIgJBA3YgAmogAEGACGooAgAgAEGECGooAgAgAWxqSQs3ACAAIAMgBCAFQYAQEDMiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQMgVBuH8LC78DAQN/IwBBIGsiBSQAIAVBCGogAiADEAYiAhADRQRAIAAgAWoiB0F9aiEGIAUgBBAOIARBBGohAiAFLQACIQMDQEEAIAAgBkkgBUEIahAEGwRAIAAgAiAFQQhqIAMQAkECdGoiBC8BADsAACAFQQhqIAQtAAIQASAAIAQtAANqIgQgAiAFQQhqIAMQAkECdGoiAC8BADsAACAFQQhqIAAtAAIQASAEIAAtAANqIQAMAQUgB0F+aiEEA0AgBUEIahAEIAAgBEtyRQRAIAAgAiAFQQhqIAMQAkECdGoiBi8BADsAACAFQQhqIAYtAAIQASAAIAYtAANqIQAMAQsLA0AgACAES0UEQCAAIAIgBUEIaiADEAJBAnRqIgYvAQA7AAAgBUEIaiAGLQACEAEgACAGLQADaiEADAELCwJAIAAgB08NACAAIAIgBUEIaiADEAIiA0ECdGoiAC0AADoAACAALQADQQFGBEAgBUEIaiAALQACEAEMAQsgBSgCDEEfSw0AIAVBCGogAiADQQJ0ai0AAhABIAUoAgxBIUkNACAFQSA2AgwLIAFBbCAFQQhqEAobIQILCwsgBUEgaiQAIAILkgIBBH8jAEFAaiIJJAAgCSADQTQQCyEDAkAgBEECSA0AIAMgBEECdGooAgAhCSADQTxqIAgQIyADQQE6AD8gAyACOgA+QQAhBCADKAI8IQoDQCAEIAlGDQEgACAEQQJ0aiAKNgEAIARBAWohBAwAAAsAC0EAIQkDQCAGIAlGRQRAIAMgBSAJQQF0aiIKLQABIgtBAnRqIgwoAgAhBCADQTxqIAotAABBCHQgCGpB//8DcRAjIANBAjoAPyADIAcgC2siCiACajoAPiAEQQEgASAKa3RqIQogAygCPCELA0AgACAEQQJ0aiALNgEAIARBAWoiBCAKSQ0ACyAMIAo2AgAgCUEBaiEJDAELCyADQUBrJAALowIBCX8jAEHQAGsiCSQAIAlBEGogBUE0EAsaIAcgBmshDyAHIAFrIRADQAJAIAMgCkcEQEEBIAEgByACIApBAXRqIgYtAAEiDGsiCGsiC3QhDSAGLQAAIQ4gCUEQaiAMQQJ0aiIMKAIAIQYgCyAPTwRAIAAgBkECdGogCyAIIAUgCEE0bGogCCAQaiIIQQEgCEEBShsiCCACIAQgCEECdGooAgAiCEEBdGogAyAIayAHIA4QYyAGIA1qIQgMAgsgCUEMaiAOECMgCUEBOgAPIAkgCDoADiAGIA1qIQggCSgCDCELA0AgBiAITw0CIAAgBkECdGogCzYBACAGQQFqIQYMAAALAAsgCUHQAGokAA8LIAwgCDYCACAKQQFqIQoMAAALAAs0ACAAIAMgBCAFEDYiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQNAVBuH8LCyMAIAA/AEEQdGtB//8DakEQdkAAQX9GBEBBAA8LQQAQAEEBCzsBAX8gAgRAA0AgACABIAJBgCAgAkGAIEkbIgMQCyEAIAFBgCBqIQEgAEGAIGohACACIANrIgINAAsLCwYAIAAQAwsLqBUJAEGICAsNAQAAAAEAAAACAAAAAgBBoAgLswYBAAAAAQAAAAIAAAACAAAAJgAAAIIAAAAhBQAASgAAAGcIAAAmAAAAwAEAAIAAAABJBQAASgAAAL4IAAApAAAALAIAAIAAAABJBQAASgAAAL4IAAAvAAAAygIAAIAAAACKBQAASgAAAIQJAAA1AAAAcwMAAIAAAACdBQAASgAAAKAJAAA9AAAAgQMAAIAAAADrBQAASwAAAD4KAABEAAAAngMAAIAAAABNBgAASwAAAKoKAABLAAAAswMAAIAAAADBBgAATQAAAB8NAABNAAAAUwQAAIAAAAAjCAAAUQAAAKYPAABUAAAAmQQAAIAAAABLCQAAVwAAALESAABYAAAA2gQAAIAAAABvCQAAXQAAACMUAABUAAAARQUAAIAAAABUCgAAagAAAIwUAABqAAAArwUAAIAAAAB2CQAAfAAAAE4QAAB8AAAA0gIAAIAAAABjBwAAkQAAAJAHAACSAAAAAAAAAAEAAAABAAAABQAAAA0AAAAdAAAAPQAAAH0AAAD9AAAA/QEAAP0DAAD9BwAA/Q8AAP0fAAD9PwAA/X8AAP3/AAD9/wEA/f8DAP3/BwD9/w8A/f8fAP3/PwD9/38A/f//AP3//wH9//8D/f//B/3//w/9//8f/f//P/3//38AAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcAAAAYAAAAGQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAAFAAAABUAAAAWAAAAFwAAABgAAAAZAAAAGgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACUAAAAnAAAAKQAAACsAAAAvAAAAMwAAADsAAABDAAAAUwAAAGMAAACDAAAAAwEAAAMCAAADBAAAAwgAAAMQAAADIAAAA0AAAAOAAAADAAEAQeAPC1EBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAEAAAABQAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAABAAQcQQC4sBAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABIAAAAUAAAAFgAAABgAAAAcAAAAIAAAACgAAAAwAAAAQAAAAIAAAAAAAQAAAAIAAAAEAAAACAAAABAAAAAgAAAAQAAAAIAAAAAAAQBBkBIL5gQBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAAAEAAAAEAAAACAAAAAAAAAABAAEBBgAAAAAAAAQAAAAAEAAABAAAAAAgAAAFAQAAAAAAAAUDAAAAAAAABQQAAAAAAAAFBgAAAAAAAAUHAAAAAAAABQkAAAAAAAAFCgAAAAAAAAUMAAAAAAAABg4AAAAAAAEFEAAAAAAAAQUUAAAAAAABBRYAAAAAAAIFHAAAAAAAAwUgAAAAAAAEBTAAAAAgAAYFQAAAAAAABwWAAAAAAAAIBgABAAAAAAoGAAQAAAAADAYAEAAAIAAABAAAAAAAAAAEAQAAAAAAAAUCAAAAIAAABQQAAAAAAAAFBQAAACAAAAUHAAAAAAAABQgAAAAgAAAFCgAAAAAAAAULAAAAAAAABg0AAAAgAAEFEAAAAAAAAQUSAAAAIAABBRYAAAAAAAIFGAAAACAAAwUgAAAAAAADBSgAAAAAAAYEQAAAABAABgRAAAAAIAAHBYAAAAAAAAkGAAIAAAAACwYACAAAMAAABAAAAAAQAAAEAQAAACAAAAUCAAAAIAAABQMAAAAgAAAFBQAAACAAAAUGAAAAIAAABQgAAAAgAAAFCQAAACAAAAULAAAAIAAABQwAAAAAAAAGDwAAACAAAQUSAAAAIAABBRQAAAAgAAIFGAAAACAAAgUcAAAAIAADBSgAAAAgAAQFMAAAAAAAEAYAAAEAAAAPBgCAAAAAAA4GAEAAAAAADQYAIABBgBcLhwIBAAEBBQAAAAAAAAUAAAAAAAAGBD0AAAAAAAkF/QEAAAAADwX9fwAAAAAVBf3/HwAAAAMFBQAAAAAABwR9AAAAAAAMBf0PAAAAABIF/f8DAAAAFwX9/38AAAAFBR0AAAAAAAgE/QAAAAAADgX9PwAAAAAUBf3/DwAAAAIFAQAAABAABwR9AAAAAAALBf0HAAAAABEF/f8BAAAAFgX9/z8AAAAEBQ0AAAAQAAgE/QAAAAAADQX9HwAAAAATBf3/BwAAAAEFAQAAABAABgQ9AAAAAAAKBf0DAAAAABAF/f8AAAAAHAX9//8PAAAbBf3//wcAABoF/f//AwAAGQX9//8BAAAYBf3//wBBkBkLhgQBAAEBBgAAAAAAAAYDAAAAAAAABAQAAAAgAAAFBQAAAAAAAAUGAAAAAAAABQgAAAAAAAAFCQAAAAAAAAULAAAAAAAABg0AAAAAAAAGEAAAAAAAAAYTAAAAAAAABhYAAAAAAAAGGQAAAAAAAAYcAAAAAAAABh8AAAAAAAAGIgAAAAAAAQYlAAAAAAABBikAAAAAAAIGLwAAAAAAAwY7AAAAAAAEBlMAAAAAAAcGgwAAAAAACQYDAgAAEAAABAQAAAAAAAAEBQAAACAAAAUGAAAAAAAABQcAAAAgAAAFCQAAAAAAAAUKAAAAAAAABgwAAAAAAAAGDwAAAAAAAAYSAAAAAAAABhUAAAAAAAAGGAAAAAAAAAYbAAAAAAAABh4AAAAAAAAGIQAAAAAAAQYjAAAAAAABBicAAAAAAAIGKwAAAAAAAwYzAAAAAAAEBkMAAAAAAAUGYwAAAAAACAYDAQAAIAAABAQAAAAwAAAEBAAAABAAAAQFAAAAIAAABQcAAAAgAAAFCAAAACAAAAUKAAAAIAAABQsAAAAAAAAGDgAAAAAAAAYRAAAAAAAABhQAAAAAAAAGFwAAAAAAAAYaAAAAAAAABh0AAAAAAAAGIAAAAAAAEAYDAAEAAAAPBgOAAAAAAA4GA0AAAAAADQYDIAAAAAAMBgMQAAAAAAsGAwgAAAAACgYDBABBpB0L2QEBAAAAAwAAAAcAAAAPAAAAHwAAAD8AAAB/AAAA/wAAAP8BAAD/AwAA/wcAAP8PAAD/HwAA/z8AAP9/AAD//wAA//8BAP//AwD//wcA//8PAP//HwD//z8A//9/AP///wD///8B////A////wf///8P////H////z////9/AAAAAAEAAAACAAAABAAAAAAAAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",fA=new wA;class UA extends DA{constructor(u){super(),this.planarConfiguration=typeof u.PlanarConfiguration<"u"?u.PlanarConfiguration:1,this.samplesPerPixel=typeof u.SamplesPerPixel<"u"?u.SamplesPerPixel:1,this.addCompression=u.LercParameters[sA.AddCompression]}decodeBlock(u){switch(this.addCompression){case gA.None:break;case gA.Deflate:u=tA(new Uint8Array(u)).buffer;break;case gA.Zstandard:u=fA.decode(new Uint8Array(u)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return hA.decode(u,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}}export{UA as default,fA as zstd}; diff --git a/pr-preview/pr-17/assets/lzw-LAGDNbSC-uvu3SnH0.js b/pr-preview/pr-17/assets/lzw-LAGDNbSC-uvu3SnH0.js deleted file mode 100644 index cc48363..0000000 --- a/pr-preview/pr-17/assets/lzw-LAGDNbSC-uvu3SnH0.js +++ /dev/null @@ -1 +0,0 @@ -import{g as E}from"./basedecoder-DHcBySSe-gdlnpIMU.js";const A=9,y=256,x=257,b=12;function U(f,r,o){const i=r%8,t=Math.floor(r/8),d=8-i,g=r+o-(t+1)*8;let u=8*(t+2)-(r+o);const w=(t+2)*8-r;if(u=Math.max(0,u),t>=f.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),x;let a=f[t]&2**(8-i)-1;a<<=o-d;let s=a;if(t+1>>u;l<<=Math.max(0,o-w),s+=l}if(g>8&&t+2>>l;s+=e}return s}function m(f,r){for(let o=r.length-1;o>=0;o--)f.push(r[o]);return f}function $(f){const r=new Uint16Array(4093),o=new Uint8Array(4093);for(let n=0;n<=257;n++)r[n]=4096,o[n]=n;let i=258,t=A,d=0;function g(){i=258,t=A}function u(n){const h=U(n,d,t);return d+=t,h}function w(n,h){return o[i]=h,r[i]=n,i++,i-1}function a(n){const h=[];for(let p=n;p!==4096;p=r[p])h.push(o[p]);return h}const s=[];g();const l=new Uint8Array(f);let e=u(l),c;for(;e!==x;){if(e===y){for(g(),e=u(l);e===y;)e=u(l);if(e===x)break;if(e>y)throw new Error(`corrupted code at scanline ${e}`);{const n=a(e);m(s,n),c=e}}else if(e=2**t&&(t===b?c=void 0:t++),e=u(l)}return new Uint8Array(s)}class B extends E{decodeBlock(r){return $(r).buffer}}export{B as default}; diff --git a/pr-preview/pr-17/assets/main-ddE0Djvd.js b/pr-preview/pr-17/assets/main-ddE0Djvd.js deleted file mode 100644 index ad93cd9..0000000 --- a/pr-preview/pr-17/assets/main-ddE0Djvd.js +++ /dev/null @@ -1,15 +0,0 @@ -import{au as e,av as o,aw as a}from"./index-Dvu417lt.js";const{currentUrl:i}=a.states,r=e({id:"template-id",stacEndpoint:"https://eodashcatalog.eox.at/test-style/trilateral/catalog.json",brand:{name:"Dashboard",font:{family:"Poppins",link:new URL("data:text/css;base64,QGZvbnQtZmFjZSB7CiAgZm9udC1mYW1pbHk6ICJQb3BwaW5zIjsKICBzcmM6IGxvY2FsKCJQb3BwaW5zIiksIHVybCgiLi9Qb3BwaW5zL1BvcHBpbnMtUmVndWxhci50dGYiKSBmb3JtYXQoIndvZmYiKTsKfQo=",import.meta.url).href},logo:"/logo.png",errorMessage:"something went wrong, please contact demo@email.com if the issue persists",footerText:"eodash instance template",theme:{colors:{primary:"#004170",secondary:"#004170",background:"#fff",surface:"#fff"}}},template:{gap:0,background:{id:Symbol(),type:"internal",widget:{name:"EodashMap",properties:{}}},widgets:[{id:Symbol(),type:"internal",title:"Indicators",layout:{x:0,y:0,w:3,h:8},widget:{name:"EodashItemFilter",properties:{aggregateResults:"collection_group"}}},{id:Symbol(),type:"internal",title:"Layer Control",layout:{x:0,y:8,w:3,h:4},widget:{name:"EodashLayerControl"}},{defineWidget:t=>t?{id:"Information",title:"Information",layout:{x:9,y:0,w:3,h:12},type:"web-component",widget:{link:async()=>await o(()=>import("./eox-stacinfo-CES29oXd.js"),[]),properties:{for:i,allowHtml:"true",styleOverride:`.single-property {columns: 1!important;} - h1 {margin:0px!important;font-size:16px!important;} - header h1:after { - content:' '; - display:block; - border:1px solid #d0d0d0; - } - h2 {font-size:15px} - h3 {font-size:14px} - summary {cursor: pointer;} - #properties li > .value { font-weight: normal !important;} - main {padding-bottom: 10px;} - .footer-container {line-height:1;} - .footer-container button {margin-top: -10px;} - .footer-container small {font-size:10px;line-height:1;}`,header:'["title"]',tags:'["themes"]',subheader:"[]",properties:'["satellite","sensor","agency","extent"]',featured:'["description","providers","assets","links"]',footer:'["sci:citation"]'},tagName:"eox-stacinfo"}}:null},{defineWidget:t=>t?{id:"Datepicker",type:"internal",layout:{x:5,y:10,w:1,h:1},title:"Datepicker",widget:{name:"EodashDatePicker"}}:null},{defineWidget:t=>t?{id:"Buttons",layout:{x:8,y:0,w:1,h:1},title:"Buttons",type:"internal",widget:{name:"EodashMapBtns"}}:null}]}});export{r as default}; diff --git a/pr-preview/pr-17/assets/packbits-BlDR4Kj5-myqVpMVP.js b/pr-preview/pr-17/assets/packbits-BlDR4Kj5-myqVpMVP.js deleted file mode 100644 index 4c5e709..0000000 --- a/pr-preview/pr-17/assets/packbits-BlDR4Kj5-myqVpMVP.js +++ /dev/null @@ -1 +0,0 @@ -import{g as s}from"./basedecoder-DHcBySSe-gdlnpIMU.js";class c extends s{decodeBlock(l){const o=new DataView(l),r=[];for(let e=0;e=0;)e[a]=0}const ae=3,ne=258,Mt=29,ie=256,re=ie+1+Mt,Ht=30,se=512,oe=new Array((re+2)*2);z(oe);const le=new Array(Ht*2);z(le);const de=new Array(se);z(de);const fe=new Array(ne-ae+1);z(fe);const ce=new Array(Mt);z(ce);const he=new Array(Ht);z(he);const ue=(e,a,t,s)=>{let o=e&65535|0,r=e>>>16&65535|0,c=0;for(;t!==0;){c=t>2e3?2e3:t,t-=c;do o=o+a[s++]|0,r=r+o|0;while(--c);o%=65521,r%=65521}return o|r<<16|0};var it=ue;const we=()=>{let e,a=[];for(var t=0;t<256;t++){e=t;for(var s=0;s<8;s++)e=e&1?3988292384^e>>>1:e>>>1;a[t]=e}return a},be=new Uint32Array(we()),me=(e,a,t,s)=>{const o=be,r=s+t;e^=-1;for(let c=s;c>>8^o[(e^a[c])&255];return e^-1};var T=me,rt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ot={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const ke=(e,a)=>Object.prototype.hasOwnProperty.call(e,a);var _e=function(e){const a=Array.prototype.slice.call(arguments,1);for(;a.length;){const t=a.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const s in t)ke(t,s)&&(e[s]=t[s])}}return e},ge=e=>{let a=0;for(let s=0,o=e.length;s=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;L[254]=L[254]=1;var pe=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let a,t,s,o,r,c=e.length,d=0;for(o=0;o>>6,a[r++]=128|t&63):t<65536?(a[r++]=224|t>>>12,a[r++]=128|t>>>6&63,a[r++]=128|t&63):(a[r++]=240|t>>>18,a[r++]=128|t>>>12&63,a[r++]=128|t>>>6&63,a[r++]=128|t&63);return a};const ve=(e,a)=>{if(a<65534&&e.subarray&&Pt)return String.fromCharCode.apply(null,e.length===a?e:e.subarray(0,a));let t="";for(let s=0;s{const t=a||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,a));let s,o;const r=new Array(t*2);for(o=0,s=0;s4){r[o++]=65533,s+=d-1;continue}for(c&=d===2?31:d===3?15:7;d>1&&s1){r[o++]=65533;continue}c<65536?r[o++]=c:(c-=65536,r[o++]=55296|c>>10&1023,r[o++]=56320|c&1023)}return ve(r,o)},xe=(e,a)=>{a=a||e.length,a>e.length&&(a=e.length);let t=a-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?a:t+L[e[t]]>a?t:a},st={string2buf:pe,buf2string:ye,utf8border:xe};function Ee(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Ae=Ee;const j=16209,Re=16191;var Ze=function(e,a){let t,s,o,r,c,d,v,n,i,E,h,l,R,Z,g,m,b,f,w,A,p,_,y,u;const k=e.state;t=e.next_in,y=e.input,s=t+(e.avail_in-5),o=e.next_out,u=e.output,r=o-(a-e.avail_out),c=o+(e.avail_out-257),d=k.dmax,v=k.wsize,n=k.whave,i=k.wnext,E=k.window,h=k.hold,l=k.bits,R=k.lencode,Z=k.distcode,g=(1<>>24,h>>>=f,l-=f,f=b>>>16&255,f===0)u[o++]=b&65535;else if(f&16){w=b&65535,f&=15,f&&(l>>=f,l-=f),l<15&&(h+=y[t++]<>>24,h>>>=f,l-=f,f=b>>>16&255,f&16){if(A=b&65535,f&=15,ld){e.msg="invalid distance too far back",k.mode=j;break t}if(h>>>=f,l-=f,f=o-r,A>f){if(f=A-f,f>n&&k.sane){e.msg="invalid distance too far back",k.mode=j;break t}if(p=0,_=E,i===0){if(p+=v-f,f2;)u[o++]=_[p++],u[o++]=_[p++],u[o++]=_[p++],w-=3;w&&(u[o++]=_[p++],w>1&&(u[o++]=_[p++]))}else{p=o-A;do u[o++]=u[p++],u[o++]=u[p++],u[o++]=u[p++],w-=3;while(w>2);w&&(u[o++]=u[p++],w>1&&(u[o++]=u[p++]))}}else if(f&64){e.msg="invalid distance code",k.mode=j;break t}else{b=Z[(b&65535)+(h&(1<>3,t-=w,l-=w<<3,h&=(1<{const v=d.bits;let n=0,i=0,E=0,h=0,l=0,R=0,Z=0,g=0,m=0,b=0,f,w,A,p,_,y=null,u;const k=new Uint16Array(B+1),S=new Uint16Array(B+1);let I=null,dt,K,P;for(n=0;n<=B;n++)k[n]=0;for(i=0;i=1&&k[h]===0;h--);if(l>h&&(l=h),h===0)return o[r++]=1<<24|64<<16|0,o[r++]=1<<24|64<<16|0,d.bits=1,0;for(E=1;E0&&(e===ht||h!==1))return-1;for(S[1]=0,n=1;nft||e===ut&&m>ct)return 1;for(;;){dt=n-Z,c[i]+1=u?(K=I[c[i]-u],P=y[c[i]-u]):(K=96,P=0),f=1<>Z)+w]=dt<<24|K<<16|P|0;while(w!==0);for(f=1<>=1;if(f!==0?(b&=f-1,b+=f):b=0,i++,--k[n]===0){if(n===h)break;n=a[t+c[i]]}if(n>l&&(b&p)!==A){for(Z===0&&(Z=l),_+=E,R=n-Z,g=1<ft||e===ut&&m>ct)return 1;A=b&p,o[A]=l<<24|R<<16|_-r|0}}return b!==0&&(o[_+b]=n-Z<<24|64<<16|0),d.bits=l,0};var F=Oe;const Ie=0,jt=1,Gt=2,{Z_FINISH:wt,Z_BLOCK:Ce,Z_TREES:G,Z_OK:C,Z_STREAM_END:Ne,Z_NEED_DICT:Be,Z_STREAM_ERROR:D,Z_DATA_ERROR:Yt,Z_MEM_ERROR:Jt,Z_BUF_ERROR:ze,Z_DEFLATED:bt}=ot,$=16180,mt=16181,kt=16182,_t=16183,gt=16184,pt=16185,vt=16186,yt=16187,xt=16188,Et=16189,X=16190,U=16191,Q=16192,At=16193,W=16194,Rt=16195,Zt=16196,St=16197,Dt=16198,Y=16199,J=16200,Tt=16201,Ut=16202,Ot=16203,It=16204,Ct=16205,V=16206,Nt=16207,Bt=16208,x=16209,Xt=16210,$t=16211,Fe=852,Le=592,Me=15,He=Me,zt=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Ke(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const N=e=>{if(!e)return 1;const a=e.state;return!a||a.strm!==e||a.mode<$||a.mode>$t?1:0},qt=e=>{if(N(e))return D;const a=e.state;return e.total_in=e.total_out=a.total=0,e.msg="",a.wrap&&(e.adler=a.wrap&1),a.mode=$,a.last=0,a.havedict=0,a.flags=-1,a.dmax=32768,a.head=null,a.hold=0,a.bits=0,a.lencode=a.lendyn=new Int32Array(Fe),a.distcode=a.distdyn=new Int32Array(Le),a.sane=1,a.back=-1,C},Qt=e=>{if(N(e))return D;const a=e.state;return a.wsize=0,a.whave=0,a.wnext=0,qt(e)},Wt=(e,a)=>{let t;if(N(e))return D;const s=e.state;return a<0?(t=0,a=-a):(t=(a>>4)+5,a<48&&(a&=15)),a&&(a<8||a>15)?D:(s.window!==null&&s.wbits!==a&&(s.window=null),s.wrap=t,s.wbits=a,Qt(e))},Vt=(e,a)=>{if(!e)return D;const t=new Ke;e.state=t,t.strm=e,t.window=null,t.mode=$;const s=Wt(e,a);return s!==C&&(e.state=null),s},Pe=e=>Vt(e,He);let Ft=!0,tt,et;const je=e=>{if(Ft){tt=new Int32Array(512),et=new Int32Array(32);let a=0;for(;a<144;)e.lens[a++]=8;for(;a<256;)e.lens[a++]=9;for(;a<280;)e.lens[a++]=7;for(;a<288;)e.lens[a++]=8;for(F(jt,e.lens,0,288,tt,0,e.work,{bits:9}),a=0;a<32;)e.lens[a++]=5;F(Gt,e.lens,0,32,et,0,e.work,{bits:5}),Ft=!1}e.lencode=tt,e.lenbits=9,e.distcode=et,e.distbits=5},te=(e,a,t,s)=>{let o;const r=e.state;return r.window===null&&(r.wsize=1<=r.wsize?(r.window.set(a.subarray(t-r.wsize,t),0),r.wnext=0,r.whave=r.wsize):(o=r.wsize-r.wnext,o>s&&(o=s),r.window.set(a.subarray(t-s,t-s+o),r.wnext),s-=o,s?(r.window.set(a.subarray(t-s,t),0),r.wnext=s,r.whave=r.wsize):(r.wnext+=o,r.wnext===r.wsize&&(r.wnext=0),r.whave{let t,s,o,r,c,d,v,n,i,E,h,l,R,Z,g=0,m,b,f,w,A,p,_,y;const u=new Uint8Array(4);let k,S;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(N(e)||!e.output||!e.input&&e.avail_in!==0)return D;t=e.state,t.mode===U&&(t.mode=Q),c=e.next_out,o=e.output,v=e.avail_out,r=e.next_in,s=e.input,d=e.avail_in,n=t.hold,i=t.bits,E=d,h=v,y=C;t:for(;;)switch(t.mode){case $:if(t.wrap===0){t.mode=Q;break}for(;i<16;){if(d===0)break t;d--,n+=s[r++]<>>8&255,t.check=T(t.check,u,2,0),n=0,i=0,t.mode=mt;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((n&255)<<8)+(n>>8))%31){e.msg="incorrect header check",t.mode=x;break}if((n&15)!==bt){e.msg="unknown compression method",t.mode=x;break}if(n>>>=4,i-=4,_=(n&15)+8,t.wbits===0&&(t.wbits=_),_>15||_>t.wbits){e.msg="invalid window size",t.mode=x;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(u[0]=n&255,u[1]=n>>>8&255,t.check=T(t.check,u,2,0)),n=0,i=0,t.mode=kt;case kt:for(;i<32;){if(d===0)break t;d--,n+=s[r++]<>>8&255,u[2]=n>>>16&255,u[3]=n>>>24&255,t.check=T(t.check,u,4,0)),n=0,i=0,t.mode=_t;case _t:for(;i<16;){if(d===0)break t;d--,n+=s[r++]<>8),t.flags&512&&t.wrap&4&&(u[0]=n&255,u[1]=n>>>8&255,t.check=T(t.check,u,2,0)),n=0,i=0,t.mode=gt;case gt:if(t.flags&1024){for(;i<16;){if(d===0)break t;d--,n+=s[r++]<>>8&255,t.check=T(t.check,u,2,0)),n=0,i=0}else t.head&&(t.head.extra=null);t.mode=pt;case pt:if(t.flags&1024&&(l=t.length,l>d&&(l=d),l&&(t.head&&(_=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(s.subarray(r,r+l),_)),t.flags&512&&t.wrap&4&&(t.check=T(t.check,s,l,r)),d-=l,r+=l,t.length-=l),t.length))break t;t.length=0,t.mode=vt;case vt:if(t.flags&2048){if(d===0)break t;l=0;do _=s[r+l++],t.head&&_&&t.length<65536&&(t.head.name+=String.fromCharCode(_));while(_&&l>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=U;break;case Et:for(;i<32;){if(d===0)break t;d--,n+=s[r++]<>>=i&7,i-=i&7,t.mode=V;break}for(;i<3;){if(d===0)break t;d--,n+=s[r++]<>>=1,i-=1,n&3){case 0:t.mode=At;break;case 1:if(je(t),t.mode=Y,a===G){n>>>=2,i-=2;break t}break;case 2:t.mode=Zt;break;case 3:e.msg="invalid block type",t.mode=x}n>>>=2,i-=2;break;case At:for(n>>>=i&7,i-=i&7;i<32;){if(d===0)break t;d--,n+=s[r++]<>>16^65535)){e.msg="invalid stored block lengths",t.mode=x;break}if(t.length=n&65535,n=0,i=0,t.mode=W,a===G)break t;case W:t.mode=Rt;case Rt:if(l=t.length,l){if(l>d&&(l=d),l>v&&(l=v),l===0)break t;o.set(s.subarray(r,r+l),c),d-=l,r+=l,v-=l,c+=l,t.length-=l;break}t.mode=U;break;case Zt:for(;i<14;){if(d===0)break t;d--,n+=s[r++]<>>=5,i-=5,t.ndist=(n&31)+1,n>>>=5,i-=5,t.ncode=(n&15)+4,n>>>=4,i-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=x;break}t.have=0,t.mode=St;case St:for(;t.have>>=3,i-=3}for(;t.have<19;)t.lens[I[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,k={bits:t.lenbits},y=F(Ie,t.lens,0,19,t.lencode,0,t.work,k),t.lenbits=k.bits,y){e.msg="invalid code lengths set",t.mode=x;break}t.have=0,t.mode=Dt;case Dt:for(;t.have>>24,b=g>>>16&255,f=g&65535,!(m<=i);){if(d===0)break t;d--,n+=s[r++]<>>=m,i-=m,t.lens[t.have++]=f;else{if(f===16){for(S=m+2;i>>=m,i-=m,t.have===0){e.msg="invalid bit length repeat",t.mode=x;break}_=t.lens[t.have-1],l=3+(n&3),n>>>=2,i-=2}else if(f===17){for(S=m+3;i>>=m,i-=m,_=0,l=3+(n&7),n>>>=3,i-=3}else{for(S=m+7;i>>=m,i-=m,_=0,l=11+(n&127),n>>>=7,i-=7}if(t.have+l>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=x;break}for(;l--;)t.lens[t.have++]=_}}if(t.mode===x)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=x;break}if(t.lenbits=9,k={bits:t.lenbits},y=F(jt,t.lens,0,t.nlen,t.lencode,0,t.work,k),t.lenbits=k.bits,y){e.msg="invalid literal/lengths set",t.mode=x;break}if(t.distbits=6,t.distcode=t.distdyn,k={bits:t.distbits},y=F(Gt,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,k),t.distbits=k.bits,y){e.msg="invalid distances set",t.mode=x;break}if(t.mode=Y,a===G)break t;case Y:t.mode=J;case J:if(d>=6&&v>=258){e.next_out=c,e.avail_out=v,e.next_in=r,e.avail_in=d,t.hold=n,t.bits=i,Ze(e,h),c=e.next_out,o=e.output,v=e.avail_out,r=e.next_in,s=e.input,d=e.avail_in,n=t.hold,i=t.bits,t.mode===U&&(t.back=-1);break}for(t.back=0;g=t.lencode[n&(1<>>24,b=g>>>16&255,f=g&65535,!(m<=i);){if(d===0)break t;d--,n+=s[r++]<>w)],m=g>>>24,b=g>>>16&255,f=g&65535,!(w+m<=i);){if(d===0)break t;d--,n+=s[r++]<>>=w,i-=w,t.back+=w}if(n>>>=m,i-=m,t.back+=m,t.length=f,b===0){t.mode=Ct;break}if(b&32){t.back=-1,t.mode=U;break}if(b&64){e.msg="invalid literal/length code",t.mode=x;break}t.extra=b&15,t.mode=Tt;case Tt:if(t.extra){for(S=t.extra;i>>=t.extra,i-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=Ut;case Ut:for(;g=t.distcode[n&(1<>>24,b=g>>>16&255,f=g&65535,!(m<=i);){if(d===0)break t;d--,n+=s[r++]<>w)],m=g>>>24,b=g>>>16&255,f=g&65535,!(w+m<=i);){if(d===0)break t;d--,n+=s[r++]<>>=w,i-=w,t.back+=w}if(n>>>=m,i-=m,t.back+=m,b&64){e.msg="invalid distance code",t.mode=x;break}t.offset=f,t.extra=b&15,t.mode=Ot;case Ot:if(t.extra){for(S=t.extra;i>>=t.extra,i-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=x;break}t.mode=It;case It:if(v===0)break t;if(l=h-v,t.offset>l){if(l=t.offset-l,l>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=x;break}l>t.wnext?(l-=t.wnext,R=t.wsize-l):R=t.wnext-l,l>t.length&&(l=t.length),Z=t.window}else Z=o,R=c-t.offset,l=t.length;l>v&&(l=v),v-=l,t.length-=l;do o[c++]=Z[R++];while(--l);t.length===0&&(t.mode=J);break;case Ct:if(v===0)break t;o[c++]=t.length,v--,t.mode=J;break;case V:if(t.wrap){for(;i<32;){if(d===0)break t;d--,n|=s[r++]<{if(N(e))return D;let a=e.state;return a.window&&(a.window=null),e.state=null,C},Je=(e,a)=>{if(N(e))return D;const t=e.state;return t.wrap&2?(t.head=a,a.done=!1,C):D},Xe=(e,a)=>{const t=a.length;let s,o,r;return N(e)||(s=e.state,s.wrap!==0&&s.mode!==X)?D:s.mode===X&&(o=1,o=it(o,a,t,0),o!==s.check)?Yt:(r=te(e,a,t,t),r?(s.mode=Xt,Jt):(s.havedict=1,C))};var $e=Qt,qe=Wt,Qe=qt,We=Pe,Ve=Vt,ta=Ge,ea=Ye,aa=Je,na=Xe,ia="pako inflate (from Nodeca project)",O={inflateReset:$e,inflateReset2:qe,inflateResetKeep:Qe,inflateInit:We,inflateInit2:Ve,inflate:ta,inflateEnd:ea,inflateGetHeader:aa,inflateSetDictionary:na,inflateInfo:ia};function ra(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var sa=ra;const ee=Object.prototype.toString,{Z_NO_FLUSH:oa,Z_FINISH:la,Z_OK:M,Z_STREAM_END:at,Z_NEED_DICT:nt,Z_STREAM_ERROR:da,Z_DATA_ERROR:Lt,Z_MEM_ERROR:fa}=ot;function H(e){this.options=Kt.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const a=this.options;a.raw&&a.windowBits>=0&&a.windowBits<16&&(a.windowBits=-a.windowBits,a.windowBits===0&&(a.windowBits=-15)),a.windowBits>=0&&a.windowBits<16&&!(e&&e.windowBits)&&(a.windowBits+=32),a.windowBits>15&&a.windowBits<48&&(a.windowBits&15||(a.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ae,this.strm.avail_out=0;let t=O.inflateInit2(this.strm,a.windowBits);if(t!==M)throw new Error(rt[t]);if(this.header=new sa,O.inflateGetHeader(this.strm,this.header),a.dictionary&&(typeof a.dictionary=="string"?a.dictionary=st.string2buf(a.dictionary):ee.call(a.dictionary)==="[object ArrayBuffer]"&&(a.dictionary=new Uint8Array(a.dictionary)),a.raw&&(t=O.inflateSetDictionary(this.strm,a.dictionary),t!==M)))throw new Error(rt[t])}H.prototype.push=function(e,a){const t=this.strm,s=this.options.chunkSize,o=this.options.dictionary;let r,c,d;if(this.ended)return!1;for(a===~~a?c=a:c=a===!0?la:oa,ee.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(s),t.next_out=0,t.avail_out=s),r=O.inflate(t,c),r===nt&&o&&(r=O.inflateSetDictionary(t,o),r===M?r=O.inflate(t,c):r===Lt&&(r=nt));t.avail_in>0&&r===at&&t.state.wrap>0&&e[t.next_in]!==0;)O.inflateReset(t),r=O.inflate(t,c);switch(r){case da:case Lt:case nt:case fa:return this.onEnd(r),this.ended=!0,!1}if(d=t.avail_out,t.next_out&&(t.avail_out===0||r===at))if(this.options.to==="string"){let v=st.utf8border(t.output,t.next_out),n=t.next_out-v,i=st.buf2string(t.output,v);t.next_out=n,t.avail_out=s-n,n&&t.output.set(t.output.subarray(v,v+n),0),this.onData(i)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(r===M&&d===0)){if(r===at)return r=O.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};H.prototype.onData=function(e){this.chunks.push(e)};H.prototype.onEnd=function(e){e===M&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Kt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function lt(e,a){const t=new H(a);if(t.push(e),t.err)throw t.msg||rt[t.err];return t.result}function ca(e,a){return a=a||{},a.raw=!0,lt(e,a)}var ha=H,ua=lt,wa=ca,ba=lt,ma=ot,ka={Inflate:ha,inflate:ua,inflateRaw:wa,ungzip:ba,constants:ma};const{Inflate:ga,inflate:_a,inflateRaw:pa,ungzip:va}=ka;var ya=_a;export{ya as b}; diff --git a/pr-preview/pr-17/assets/raw-CMGvRjfu-Blplg0lv.js b/pr-preview/pr-17/assets/raw-CMGvRjfu-Blplg0lv.js deleted file mode 100644 index fb11d30..0000000 --- a/pr-preview/pr-17/assets/raw-CMGvRjfu-Blplg0lv.js +++ /dev/null @@ -1 +0,0 @@ -import{g as d}from"./basedecoder-DHcBySSe-gdlnpIMU.js";class t extends d{decodeBlock(e){return e}}export{t as default}; diff --git a/pr-preview/pr-17/assets/ssrBoot-Uu_-yAhn.js b/pr-preview/pr-17/assets/ssrBoot-Uu_-yAhn.js deleted file mode 100644 index c6f9cbc..0000000 --- a/pr-preview/pr-17/assets/ssrBoot-Uu_-yAhn.js +++ /dev/null @@ -1 +0,0 @@ -import{s,Z as t,c as e,ar as n}from"./index-Dvu417lt.js";function i(){const o=s(!1);return t(()=>{window.requestAnimationFrame(()=>{o.value=!0})}),{ssrBootStyles:e(()=>o.value?void 0:{transition:"none !important"}),isBooted:n(o)}}export{i as u}; diff --git a/pr-preview/pr-17/assets/transition-BKtsYhmO.js b/pr-preview/pr-17/assets/transition-BKtsYhmO.js deleted file mode 100644 index 30c61c4..0000000 --- a/pr-preview/pr-17/assets/transition-BKtsYhmO.js +++ /dev/null @@ -1 +0,0 @@ -import{p as m,aA as b,d,bk as l,ab as u}from"./index-Dvu417lt.js";const j=m({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:o=>o!==!0}},"transition"),T=(o,s)=>{let{slots:e}=s;const{transition:t,disabled:n,group:r,...a}=o,{component:i=r?l:u,...p}=typeof t=="object"?t:{};return b(i,d(typeof t=="string"?{name:n?"":t}:p,typeof t=="string"?{}:Object.fromEntries(Object.entries({disabled:n,group:r}).filter(c=>{let[y,f]=c;return f!==void 0})),a),e)};export{T as M,j as m}; diff --git a/pr-preview/pr-17/assets/webfontloader-OEBPRw3i.js b/pr-preview/pr-17/assets/webfontloader-OEBPRw3i.js deleted file mode 100644 index 03a9103..0000000 --- a/pr-preview/pr-17/assets/webfontloader-OEBPRw3i.js +++ /dev/null @@ -1 +0,0 @@ -import{g as Ft}from"./_commonjsHelpers-Cpj98o6Y.js";var ot={exports:{}};(function(O){(function(){function st(t,n,e){return t.call.apply(t.bind,arguments)}function rt(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function K(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new _(this.c,this.s),this.h=new _(this.c,this.s),this.j=new _(this.c,this.s),this.m=new _(this.c,this.s),t=new p(this.a.c+",serif",l(this.a)),t=S(t),this.g.a.style.cssText=t,t=new p(this.a.c+",sans-serif",l(this.a)),t=S(t),this.h.a.style.cssText=t,t=new p("serif",l(this.a)),t=S(t),this.j.a.style.cssText=t,t=new p("sans-serif",l(this.a)),t=S(t),this.m.a.style.cssText=t,T(this.g),T(this.h),T(this.j),T(this.m)}var E={D:"serif",C:"sans-serif"},N=null;function R(){if(N===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);N=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return N}K.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=x(),V(this)};function U(t,n,e){for(var i in E)if(E.hasOwnProperty(i)&&n===t.f[E[i]]&&e===t.f[E[i]])return!0;return!1}function V(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=R()&&U(t,n,e)),i?x()-t.A>=t.w?R()&&U(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?F(t,t.v):F(t,t.B):mt(t):F(t,t.v)}function mt(t){setTimeout(v(function(){V(this)},t),50)}function F(t,n){setTimeout(v(function(){j(this.g.a),j(this.h.a),j(this.j.a),j(this.m.a),n(this.a)},t),0)}function W(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var C=null;W.prototype.g=function(t){var n=this.a;n.g&&d(n.f,[n.a.c("wf",t.c,l(t).toString(),"active")],[n.a.c("wf",t.c,l(t).toString(),"loading"),n.a.c("wf",t.c,l(t).toString(),"inactive")]),w(n,"fontactive",t),this.m=!0,X(this)},W.prototype.h=function(t){var n=this.a;if(n.g){var e=P(n.f,n.a.c("wf",t.c,l(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,l(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,l(t).toString(),"inactive")),d(n.f,i,o)}w(n,"fontinactive",t),X(this)};function X(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),w(t,"active")):M(t.a))}function J(t){this.j=t,this.a=new gt,this.h=0,this.f=this.g=!0}J.prototype.load=function(t){this.c=new at(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,wt(this,new lt(this.c,t),t)};function dt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)M(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;f"u")throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if(typeof document>"u"&&typeof OffscreenCanvas>"u")throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available")}async decode(i,n){const o=new Blob([n]),e=await createImageBitmap(o);let t;typeof document<"u"?(t=document.createElement("canvas"),t.width=e.width,t.height=e.height):t=new OffscreenCanvas(e.width,e.height);const a=t.getContext("2d");return a.drawImage(e,0,0),a.getImageData(0,0,e.width,e.height).data.buffer}}export{d as default}; diff --git a/pr-preview/pr-17/index.html b/pr-preview/pr-17/index.html deleted file mode 100644 index bdbbe65..0000000 --- a/pr-preview/pr-17/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - Welcome to Eodash v5 - - - - - -
        - - - \ No newline at end of file diff --git a/pr-preview/pr-17/logo.png b/pr-preview/pr-17/logo.png deleted file mode 100644 index 03c831e..0000000 Binary files a/pr-preview/pr-17/logo.png and /dev/null differ