@eox/layercontrol 0.28.1 → 0.28.2-dev.1736961804.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,77 +1,77 @@
1
- (function(R,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(R=typeof globalThis<"u"?globalThis:R||self,P(R["eox-layercontrol"]={}))})(this,function(R){"use strict";var wa=Object.defineProperty;var jr=R=>{throw TypeError(R)};var xa=(R,P,X)=>P in R?wa(R,P,{enumerable:!0,configurable:!0,writable:!0,value:X}):R[P]=X;var Z=(R,P,X)=>xa(R,typeof P!="symbol"?P+"":P,X),gn=(R,P,X)=>P.has(R)||jr("Cannot "+X);var T=(R,P,X)=>(gn(R,P,"read from private field"),X?X.call(R):P.get(R)),L=(R,P,X)=>P.has(R)?jr("Cannot add the same private member more than once"):P instanceof WeakSet?P.add(R):P.set(R,X),fe=(R,P,X,ie)=>(gn(R,P,"write to private field"),ie?ie.call(R,X):P.set(R,X),X),q=(R,P,X)=>(gn(R,P,"access private method"),X);/**
1
+ (function(R,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(R=typeof globalThis<"u"?globalThis:R||self,P(R["eox-layercontrol"]={}))})(this,function(R){"use strict";var wa=Object.defineProperty;var jr=R=>{throw TypeError(R)};var xa=(R,P,X)=>P in R?wa(R,P,{enumerable:!0,configurable:!0,writable:!0,value:X}):R[P]=X;var Z=(R,P,X)=>xa(R,typeof P!="symbol"?P+"":P,X),gn=(R,P,X)=>P.has(R)||jr("Cannot "+X);var T=(R,P,X)=>(gn(R,P,"read from private field"),X?X.call(R):P.get(R)),O=(R,P,X)=>P.has(R)?jr("Cannot add the same private member more than once"):P instanceof WeakSet?P.add(R):P.set(R,X),ge=(R,P,X,ne)=>(gn(R,P,"write to private field"),ne?ne.call(R,X):P.set(R,X),X),q=(R,P,X)=>(gn(R,P,"access private method"),X);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var Ur,oi,si,Mt,he,Ie,Ne,mn,ai,li,di,zr,ci,ui,He,hi,pi,fi,gi,Ct,ge,Zr,mi,yi,bi,vi,wi,xi,Ei,qr,st,Xr,Yr,yn,Wr,Gr,Ti,$i,Si,Ft,pe,Jr,Kr,Ai;const P=globalThis,X=P.ShadowRoot&&(P.ShadyCSS===void 0||P.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ie=Symbol(),bn=new WeakMap;let vn=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==ie)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(X&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=bn.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&bn.set(e,t))}return t}toString(){return this.cssText}};const Qr=i=>new vn(typeof i=="string"?i:i+"",void 0,ie),wn=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((n,r,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[o+1],i[0]);return new vn(e,i,ie)},to=(i,t)=>{if(X)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),r=P.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=e.cssText,i.appendChild(n)}},xn=X?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return Qr(e)})(i):i;/**
5
+ */var Ur,oi,si,Mt,pe,Ne,He,mn,ai,li,di,zr,ci,ui,ke,hi,pi,fi,gi,Ct,me,Zr,mi,yi,bi,vi,wi,xi,$i,qr,st,Xr,Yr,yn,Wr,Gr,Ti,Ei,Si,jt,fe,Jr,Kr,Ai;const P=globalThis,X=P.ShadowRoot&&(P.ShadyCSS===void 0||P.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ne=Symbol(),bn=new WeakMap;let vn=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==ne)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(X&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=bn.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&bn.set(e,t))}return t}toString(){return this.cssText}};const Qr=i=>new vn(typeof i=="string"?i:i+"",void 0,ne),wn=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((n,r,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[o+1],i[0]);return new vn(e,i,ne)},to=(i,t)=>{if(X)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),r=P.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=e.cssText,i.appendChild(n)}},xn=X?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return Qr(e)})(i):i;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:eo,defineProperty:io,getOwnPropertyDescriptor:no,getOwnPropertyNames:ro,getOwnPropertySymbols:oo,getPrototypeOf:so}=Object,Nt=globalThis,En=Nt.trustedTypes,ao=En?En.emptyScript:"",Di=Nt.reactiveElementPolyfillSupport,me=(i,t)=>i,Pi={toAttribute(i,t){switch(t){case Boolean:i=i?ao:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},$n=(i,t)=>!eo(i,t),Sn={attribute:!0,type:String,converter:Pi,reflect:!1,hasChanged:$n};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Nt.litPropertyMetadata??(Nt.litPropertyMetadata=new WeakMap);class ne 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=Sn){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(t,n,e);r!==void 0&&io(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){const{get:r,set:o}=no(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return r==null?void 0:r.call(this)},set(s){const a=r==null?void 0:r.call(this);o.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Sn}static _$Ei(){if(this.hasOwnProperty(me("elementProperties")))return;const t=so(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(me("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(me("properties"))){const e=this.properties,n=[...ro(e),...oo(e)];for(const r of n)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,r]of e)this.elementProperties.set(n,r)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const r=this._$Eu(e,n);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const r of n)e.unshift(xn(r))}else t!==void 0&&e.push(xn(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n: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 n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return to(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 n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EC(t,e){var o;const n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(r!==void 0&&n.reflect===!0){const s=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:Pi).toAttribute(e,n.type);this._$Em=t,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(t,e){var o;const n=this.constructor,r=n._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const s=n.getPropertyOptions(r),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:Pi;this._$Em=r,this[r]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??$n)(this[t],e))return;this.P(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,n){this._$AL.has(t)||this._$AL.set(t,e),n.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 n;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 r=this.constructor.elementProperties;if(r.size>0)for(const[o,s]of r)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostUpdated)==null?void 0:r.call(n)}),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){}}ne.elementStyles=[],ne.shadowRootOptions={mode:"open"},ne[me("elementProperties")]=new Map,ne[me("finalized")]=new Map,Di==null||Di({ReactiveElement:ne}),(Nt.reactiveElementVersions??(Nt.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:eo,defineProperty:io,getOwnPropertyDescriptor:no,getOwnPropertyNames:ro,getOwnPropertySymbols:oo,getPrototypeOf:so}=Object,Nt=globalThis,$n=Nt.trustedTypes,ao=$n?$n.emptyScript:"",Di=Nt.reactiveElementPolyfillSupport,ye=(i,t)=>i,Pi={toAttribute(i,t){switch(t){case Boolean:i=i?ao:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},En=(i,t)=>!eo(i,t),Sn={attribute:!0,type:String,converter:Pi,reflect:!1,hasChanged:En};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Nt.litPropertyMetadata??(Nt.litPropertyMetadata=new WeakMap);class re 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=Sn){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(t,n,e);r!==void 0&&io(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){const{get:r,set:o}=no(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return r==null?void 0:r.call(this)},set(s){const a=r==null?void 0:r.call(this);o.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Sn}static _$Ei(){if(this.hasOwnProperty(ye("elementProperties")))return;const t=so(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ye("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ye("properties"))){const e=this.properties,n=[...ro(e),...oo(e)];for(const r of n)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,r]of e)this.elementProperties.set(n,r)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const r=this._$Eu(e,n);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const r of n)e.unshift(xn(r))}else t!==void 0&&e.push(xn(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n: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 n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return to(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 n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EC(t,e){var o;const n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(r!==void 0&&n.reflect===!0){const s=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:Pi).toAttribute(e,n.type);this._$Em=t,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(t,e){var o;const n=this.constructor,r=n._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const s=n.getPropertyOptions(r),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:Pi;this._$Em=r,this[r]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??En)(this[t],e))return;this.P(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,n){this._$AL.has(t)||this._$AL.set(t,e),n.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 n;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 r=this.constructor.elementProperties;if(r.size>0)for(const[o,s]of r)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostUpdated)==null?void 0:r.call(n)}),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){}}re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[ye("elementProperties")]=new Map,re[ye("finalized")]=new Map,Di==null||Di({ReactiveElement:re}),(Nt.reactiveElementVersions??(Nt.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const ye=globalThis,ke=ye.trustedTypes,An=ke?ke.createPolicy("lit-html",{createHTML:i=>i}):void 0,Oi="$lit$",Tt=`lit$${Math.random().toFixed(9).slice(2)}$`,Li="?"+Tt,lo=`<${Li}>`,zt=document,be=()=>zt.createComment(""),ve=i=>i===null||typeof i!="object"&&typeof i!="function",Ri=Array.isArray,_n=i=>Ri(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Mi=`[
14
- \f\r]`,we=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cn=/-->/g,Tn=/>/g,Zt=RegExp(`>|${Mi}(?:([^\\s"'>=/]+)(${Mi}*=${Mi}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Dn=/'/g,Pn=/"/g,On=/^(?:script|style|textarea|title)$/i,co=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),x=co(1),xt=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),Ln=new WeakMap,qt=zt.createTreeWalker(zt,129);function Rn(i,t){if(!Ri(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return An!==void 0?An.createHTML(t):t}const Mn=(i,t)=>{const e=i.length-1,n=[];let r,o=t===2?"<svg>":t===3?"<math>":"",s=we;for(let a=0;a<e;a++){const l=i[a];let d,u,c=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===we?u[1]==="!--"?s=Cn:u[1]!==void 0?s=Tn:u[2]!==void 0?(On.test(u[2])&&(r=RegExp("</"+u[2],"g")),s=Zt):u[3]!==void 0&&(s=Zt):s===Zt?u[0]===">"?(s=r??we,c=-1):u[1]===void 0?c=-2:(c=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Zt:u[3]==='"'?Pn:Dn):s===Pn||s===Dn?s=Zt:s===Cn||s===Tn?s=we:(s=Zt,r=void 0);const f=s===Zt&&i[a+1].startsWith("/>")?" ":"";o+=s===we?l+lo:c>=0?(n.push(d),l.slice(0,c)+Oi+l.slice(c)+Tt+f):l+Tt+(c===-2?a:f)}return[Rn(i,o+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class xe{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,s=0;const a=t.length-1,l=this.parts,[d,u]=Mn(t,e);if(this.el=xe.createElement(d,n),qt.currentNode=this.el.content,e===2||e===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=qt.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const c of r.getAttributeNames())if(c.endsWith(Oi)){const p=u[s++],f=r.getAttribute(c).split(Tt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:g[2],strings:f,ctor:g[1]==="."?Nn:g[1]==="?"?Hn:g[1]==="@"?Vn:Ee}),r.removeAttribute(c)}else c.startsWith(Tt)&&(l.push({type:6,index:o}),r.removeAttribute(c));if(On.test(r.tagName)){const c=r.textContent.split(Tt),p=c.length-1;if(p>0){r.textContent=ke?ke.emptyScript:"";for(let f=0;f<p;f++)r.append(c[f],be()),qt.nextNode(),l.push({type:2,index:++o});r.append(c[p],be())}}}else if(r.nodeType===8)if(r.data===Li)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(Tt,c+1))!==-1;)l.push({type:7,index:o}),c+=Tt.length-1}o++}}static createElement(t,e){const n=zt.createElement("template");return n.innerHTML=t,n}}function Xt(i,t,e=i,n){var s,a;if(t===xt)return t;let r=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const o=ve(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==o&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),o===void 0?r=void 0:(r=new o(i),r._$AT(i,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=r:e._$Cl=r),r!==void 0&&(t=Xt(i,r._$AS(i,t.values),r,n)),t}let In=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,r=((t==null?void 0:t.creationScope)??zt).importNode(e,!0);qt.currentNode=r;let o=qt.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new re(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new kn(o,this,t)),this._$AV.push(d),l=n[++a]}s!==(l==null?void 0:l.index)&&(o=qt.nextNode(),s++)}return qt.currentNode=zt,r}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}};class re{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,r){this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Xt(this,t,e),ve(t)?t===O||t==null||t===""?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==xt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_n(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==O&&ve(this._$AH)?this._$AA.nextSibling.data=t:this.T(zt.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=xe.createElement(Rn(n.h,n.h[0]),this.options)),n);if(((o=this._$AH)==null?void 0:o._$AD)===r)this._$AH.p(e);else{const s=new In(r,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=Ln.get(t.strings);return e===void 0&&Ln.set(t.strings,e=new xe(t)),e}k(t){Ri(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const o of t)r===e.length?e.push(n=new re(this.O(be()),this.O(be()),this,this.options)):n=e[r],n._$AI(o),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ee{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,r,o){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=O}_$AI(t,e=this,n,r){const o=this.strings;let s=!1;if(o===void 0)t=Xt(this,t,e,0),s=!ve(t)||t!==this._$AH&&t!==xt,s&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=Xt(this,a[n+l],e,l),d===xt&&(d=this._$AH[l]),s||(s=!ve(d)||d!==this._$AH[l]),d===O?t=O:t!==O&&(t+=(d??"")+o[l+1]),this._$AH[l]=d}s&&!r&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Nn extends Ee{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}}class Hn extends Ee{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==O)}}class Vn extends Ee{constructor(t,e,n,r,o){super(t,e,n,r,o),this.type=5}_$AI(t,e=this){if((t=Xt(this,t,e,0)??O)===xt)return;const n=this._$AH,r=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==O&&(n===O||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class kn{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Xt(this,t)}}const uo={M:Oi,P:Tt,A:Li,C:1,L:Mn,R:In,D:_n,V:Xt,I:re,H:Ee,N:Hn,U:Vn,B:Nn,F:kn},Ii=ye.litHtmlPolyfillSupport;Ii==null||Ii(xe,re),(ye.litHtmlVersions??(ye.litHtmlVersions=[])).push("3.2.1");const ho=(i,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let r=n._$litPart$;if(r===void 0){const o=(e==null?void 0:e.renderBefore)??null;n._$litPart$=r=new re(t.insertBefore(be(),o),o,void 0,e??{})}return r._$AI(i),r};/**
13
+ */const be=globalThis,Be=be.trustedTypes,An=Be?Be.createPolicy("lit-html",{createHTML:i=>i}):void 0,Li="$lit$",Tt=`lit$${Math.random().toFixed(9).slice(2)}$`,Oi="?"+Tt,lo=`<${Oi}>`,Zt=document,ve=()=>Zt.createComment(""),we=i=>i===null||typeof i!="object"&&typeof i!="function",Ri=Array.isArray,_n=i=>Ri(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Mi=`[
14
+ \f\r]`,xe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cn=/-->/g,Tn=/>/g,qt=RegExp(`>|${Mi}(?:([^\\s"'>=/]+)(${Mi}*=${Mi}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Dn=/'/g,Pn=/"/g,Ln=/^(?:script|style|textarea|title)$/i,co=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),v=co(1),xt=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),On=new WeakMap,Xt=Zt.createTreeWalker(Zt,129);function Rn(i,t){if(!Ri(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return An!==void 0?An.createHTML(t):t}const Mn=(i,t)=>{const e=i.length-1,n=[];let r,o=t===2?"<svg>":t===3?"<math>":"",s=xe;for(let a=0;a<e;a++){const l=i[a];let d,u,c=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===xe?u[1]==="!--"?s=Cn:u[1]!==void 0?s=Tn:u[2]!==void 0?(Ln.test(u[2])&&(r=RegExp("</"+u[2],"g")),s=qt):u[3]!==void 0&&(s=qt):s===qt?u[0]===">"?(s=r??xe,c=-1):u[1]===void 0?c=-2:(c=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?qt:u[3]==='"'?Pn:Dn):s===Pn||s===Dn?s=qt:s===Cn||s===Tn?s=xe:(s=qt,r=void 0);const f=s===qt&&i[a+1].startsWith("/>")?" ":"";o+=s===xe?l+lo:c>=0?(n.push(d),l.slice(0,c)+Li+l.slice(c)+Tt+f):l+Tt+(c===-2?a:f)}return[Rn(i,o+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class $e{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,s=0;const a=t.length-1,l=this.parts,[d,u]=Mn(t,e);if(this.el=$e.createElement(d,n),Xt.currentNode=this.el.content,e===2||e===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=Xt.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const c of r.getAttributeNames())if(c.endsWith(Li)){const p=u[s++],f=r.getAttribute(c).split(Tt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:g[2],strings:f,ctor:g[1]==="."?Nn:g[1]==="?"?Hn:g[1]==="@"?kn:Ee}),r.removeAttribute(c)}else c.startsWith(Tt)&&(l.push({type:6,index:o}),r.removeAttribute(c));if(Ln.test(r.tagName)){const c=r.textContent.split(Tt),p=c.length-1;if(p>0){r.textContent=Be?Be.emptyScript:"";for(let f=0;f<p;f++)r.append(c[f],ve()),Xt.nextNode(),l.push({type:2,index:++o});r.append(c[p],ve())}}}else if(r.nodeType===8)if(r.data===Oi)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(Tt,c+1))!==-1;)l.push({type:7,index:o}),c+=Tt.length-1}o++}}static createElement(t,e){const n=Zt.createElement("template");return n.innerHTML=t,n}}function Yt(i,t,e=i,n){var s,a;if(t===xt)return t;let r=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const o=we(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==o&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),o===void 0?r=void 0:(r=new o(i),r._$AT(i,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=r:e._$Cl=r),r!==void 0&&(t=Yt(i,r._$AS(i,t.values),r,n)),t}let In=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,r=((t==null?void 0:t.creationScope)??Zt).importNode(e,!0);Xt.currentNode=r;let o=Xt.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new oe(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new Vn(o,this,t)),this._$AV.push(d),l=n[++a]}s!==(l==null?void 0:l.index)&&(o=Xt.nextNode(),s++)}return Xt.currentNode=Zt,r}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}};class oe{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,r){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Yt(this,t,e),we(t)?t===L||t==null||t===""?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==xt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_n(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==L&&we(this._$AH)?this._$AA.nextSibling.data=t:this.T(Zt.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=$e.createElement(Rn(n.h,n.h[0]),this.options)),n);if(((o=this._$AH)==null?void 0:o._$AD)===r)this._$AH.p(e);else{const s=new In(r,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=On.get(t.strings);return e===void 0&&On.set(t.strings,e=new $e(t)),e}k(t){Ri(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const o of t)r===e.length?e.push(n=new oe(this.O(ve()),this.O(ve()),this,this.options)):n=e[r],n._$AI(o),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ee{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,r,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}_$AI(t,e=this,n,r){const o=this.strings;let s=!1;if(o===void 0)t=Yt(this,t,e,0),s=!we(t)||t!==this._$AH&&t!==xt,s&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=Yt(this,a[n+l],e,l),d===xt&&(d=this._$AH[l]),s||(s=!we(d)||d!==this._$AH[l]),d===L?t=L:t!==L&&(t+=(d??"")+o[l+1]),this._$AH[l]=d}s&&!r&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Nn extends Ee{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}class Hn extends Ee{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==L)}}class kn extends Ee{constructor(t,e,n,r,o){super(t,e,n,r,o),this.type=5}_$AI(t,e=this){if((t=Yt(this,t,e,0)??L)===xt)return;const n=this._$AH,r=t===L&&n!==L||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==L&&(n===L||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Vn{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Yt(this,t)}}const uo={M:Li,P:Tt,A:Oi,C:1,L:Mn,R:In,D:_n,V:Yt,I:oe,H:Ee,N:Hn,U:kn,B:Nn,F:Vn},Ii=be.litHtmlPolyfillSupport;Ii==null||Ii($e,oe),(be.litHtmlVersions??(be.litHtmlVersions=[])).push("3.2.1");const ho=(i,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let r=n._$litPart$;if(r===void 0){const o=(e==null?void 0:e.renderBefore)??null;n._$litPart$=r=new oe(t.insertBefore(ve(),o),o,void 0,e??{})}return r._$AI(i),r};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */let dt=class extends ne{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ho(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 xt}};dt._$litElement$=!0,dt.finalized=!0,(Ur=globalThis.litElementHydrateSupport)==null||Ur.call(globalThis,{LitElement:dt});const Ni=globalThis.litElementPolyfillSupport;Ni==null||Ni({LitElement:dt}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
19
+ */let dt=class extends re{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ho(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 xt}};dt._$litElement$=!0,dt.finalized=!0,(Ur=globalThis.litElementHydrateSupport)==null||Ur.call(globalThis,{LitElement:dt});const Ni=globalThis.litElementPolyfillSupport;Ni==null||Ni({LitElement:dt}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
20
20
  * @license
21
21
  * Copyright 2021 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */function Q(i,t,e){return i?t(i):e==null?void 0:e(i)}/**
23
+ */function W(i,t,e){return i?t(i):e==null?void 0:e(i)}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Ht={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Hi=i=>(...t)=>({_$litDirective$:i,values:t});class Vi{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
27
+ */const Ht={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Hi=i=>(...t)=>({_$litDirective$:i,values:t});class ki{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
28
28
  * @license
29
29
  * Copyright 2020 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const{I:po}=uo,fo=i=>i.strings===void 0,Bn=()=>document.createComment(""),$e=(i,t,e)=>{var o;const n=i._$AA.parentNode,r=t===void 0?i._$AB:t._$AA;if(e===void 0){const s=n.insertBefore(Bn(),r),a=n.insertBefore(Bn(),r);e=new po(s,a,i,i.options)}else{const s=e._$AB.nextSibling,a=e._$AM,l=a!==i;if(l){let d;(o=e._$AQ)==null||o.call(e,i),e._$AM=i,e._$AP!==void 0&&(d=i._$AU)!==a._$AU&&e._$AP(d)}if(s!==r||l){let d=e._$AA;for(;d!==s;){const u=d.nextSibling;n.insertBefore(d,r),d=u}}}return e},Yt=(i,t,e=i)=>(i._$AI(t,e),i),go={},Un=(i,t=go)=>i._$AH=t,mo=i=>i._$AH,ki=i=>{var n;(n=i._$AP)==null||n.call(i,!1,!0);let t=i._$AA;const e=i._$AB.nextSibling;for(;t!==e;){const r=t.nextSibling;t.remove(),t=r}};/**
31
+ */const{I:po}=uo,fo=i=>i.strings===void 0,Bn=()=>document.createComment(""),Se=(i,t,e)=>{var o;const n=i._$AA.parentNode,r=t===void 0?i._$AB:t._$AA;if(e===void 0){const s=n.insertBefore(Bn(),r),a=n.insertBefore(Bn(),r);e=new po(s,a,i,i.options)}else{const s=e._$AB.nextSibling,a=e._$AM,l=a!==i;if(l){let d;(o=e._$AQ)==null||o.call(e,i),e._$AM=i,e._$AP!==void 0&&(d=i._$AU)!==a._$AU&&e._$AP(d)}if(s!==r||l){let d=e._$AA;for(;d!==s;){const u=d.nextSibling;n.insertBefore(d,r),d=u}}}return e},Wt=(i,t,e=i)=>(i._$AI(t,e),i),go={},Un=(i,t=go)=>i._$AH=t,mo=i=>i._$AH,Vi=i=>{var n;(n=i._$AP)==null||n.call(i,!1,!0);let t=i._$AA;const e=i._$AB.nextSibling;for(;t!==e;){const r=t.nextSibling;t.remove(),t=r}};/**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */const Fn=(i,t,e)=>{const n=new Map;for(let r=t;r<=e;r++)n.set(i[r],r);return n},yo=Hi(class extends Vi{constructor(i){if(super(i),i.type!==Ht.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,t,e){let n;e===void 0?e=t:t!==void 0&&(n=t);const r=[],o=[];let s=0;for(const a of i)r[s]=n?n(a,s):s,o[s]=e(a,s),s++;return{values:o,keys:r}}render(i,t,e){return this.dt(i,t,e).values}update(i,[t,e,n]){const r=mo(i),{values:o,keys:s}=this.dt(t,e,n);if(!Array.isArray(r))return this.ut=s,o;const a=this.ut??(this.ut=[]),l=[];let d,u,c=0,p=r.length-1,f=0,g=o.length-1;for(;c<=p&&f<=g;)if(r[c]===null)c++;else if(r[p]===null)p--;else if(a[c]===s[f])l[f]=Yt(r[c],o[f]),c++,f++;else if(a[p]===s[g])l[g]=Yt(r[p],o[g]),p--,g--;else if(a[c]===s[g])l[g]=Yt(r[c],o[g]),$e(i,l[g+1],r[c]),c++,g--;else if(a[p]===s[f])l[f]=Yt(r[p],o[f]),$e(i,r[c],r[p]),p--,f++;else if(d===void 0&&(d=Fn(s,f,g),u=Fn(a,c,p)),d.has(a[c]))if(d.has(a[p])){const b=u.get(s[f]),V=b!==void 0?r[b]:null;if(V===null){const et=$e(i,r[c]);Yt(et,o[f]),l[f]=et}else l[f]=Yt(V,o[f]),$e(i,r[c],V),r[b]=null;f++}else ki(r[p]),p--;else ki(r[c]),c++;for(;f<=g;){const b=$e(i,l[g+1]);Yt(b,o[f]),l[f++]=b}for(;c<=p;){const b=r[c++];b!==null&&ki(b)}return this.ut=s,Un(i,l),xt}});/**
35
+ */const Fn=(i,t,e)=>{const n=new Map;for(let r=t;r<=e;r++)n.set(i[r],r);return n},yo=Hi(class extends ki{constructor(i){if(super(i),i.type!==Ht.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,t,e){let n;e===void 0?e=t:t!==void 0&&(n=t);const r=[],o=[];let s=0;for(const a of i)r[s]=n?n(a,s):s,o[s]=e(a,s),s++;return{values:o,keys:r}}render(i,t,e){return this.dt(i,t,e).values}update(i,[t,e,n]){const r=mo(i),{values:o,keys:s}=this.dt(t,e,n);if(!Array.isArray(r))return this.ut=s,o;const a=this.ut??(this.ut=[]),l=[];let d,u,c=0,p=r.length-1,f=0,g=o.length-1;for(;c<=p&&f<=g;)if(r[c]===null)c++;else if(r[p]===null)p--;else if(a[c]===s[f])l[f]=Wt(r[c],o[f]),c++,f++;else if(a[p]===s[g])l[g]=Wt(r[p],o[g]),p--,g--;else if(a[c]===s[g])l[g]=Wt(r[c],o[g]),Se(i,l[g+1],r[c]),c++,g--;else if(a[p]===s[f])l[f]=Wt(r[p],o[f]),Se(i,r[c],r[p]),p--,f++;else if(d===void 0&&(d=Fn(s,f,g),u=Fn(a,c,p)),d.has(a[c]))if(d.has(a[p])){const b=u.get(s[f]),k=b!==void 0?r[b]:null;if(k===null){const et=Se(i,r[c]);Wt(et,o[f]),l[f]=et}else l[f]=Wt(k,o[f]),Se(i,r[c],k),r[b]=null;f++}else Vi(r[p]),p--;else Vi(r[c]),c++;for(;f<=g;){const b=Se(i,l[g+1]);Wt(b,o[f]),l[f++]=b}for(;c<=p;){const b=r[c++];b!==null&&Vi(b)}return this.ut=s,Un(i,l),xt}});/**
36
36
  * wms-capabilities @0.6.0
37
37
  * @description WMS service Capabilities > JSON, based on openlayers
38
38
  * @license BSD-2-Clause
39
39
  * @preserve
40
- */var S=i=>i!==void 0,jn=(i,t,e)=>t in i?i[t]:i[t]=e;const Se={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 bo{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,e){return Be(t,e).join("")}}function Be(i,t){return zn(i,t,[]).join("")}function zn(i,t,e){if(i.nodeType===Se.CDATA_SECTION||i.nodeType===Se.TEXT)t?e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(i.nodeValue);else{var n;for(n=i.firstChild;n;n=n.nextSibling)zn(n,t,e)}return e}function vo(i,t,e,n){for(var r=wo(t);r;r=xo(r)){var o=r.namespaceURI||null,s=i[o];if(S(s)){var a=s[r.localName];S(a)&&a.call(n,r,e)}}}function wo(i){let t=i.firstElementChild||i.firstChild;for(;t&&t.nodeType!==Se.ELEMENT;)t=t.nextSibling;return t}function xo(i){let t=i.nextElementSibling||i.nextSibling;for(;t&&t.nodeType!==Se.ELEMENT;)t=t.nextSibling;return t}function nt(i,t,e){return Eo(i,t,e)}function Eo(i,t,e){var n=S(e)?e:{},r,o;for(r=0,o=i.length;r<o;++r)n[i[r]]=t;return n}function Zn(i,t){return function(e,n){var r=i.call(S(t)?t:this,e,n);if(S(r)){var o=n[n.length-1];o.push(r)}}}function tt(i,t,e,n,r){return n.push(i),vo(t,e,n,r),n.pop()}function y(i,t,e){return function(n,r){let o=i.call(S(e)?e:this,n,r);if(S(o)){var s=r[r.length-1],a=S(t)?t:n.localName;s[a]=o}}}function ht(i,t,e){return function(n,r){var o=i.call(S(e)?e:this,n,r);if(S(o)){var s=r[r.length-1],a=S(t)?t:n.localName,l=jn(s,a,[]);l.push(o)}}}const $o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function So(i){return i.replace($o,"")}function Wt(i){const t=/^\s*(true|1)|(false|0)\s*$/.exec(i);if(t)return S(t[1])||!1}function oe(i){return Dt(Be(i,!1))}function Dt(i){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(i);if(t)return parseFloat(t[1])}function Bi(i){return Ue(Be(i,!1))}function Ue(i){const t=/^\s*(\d+)\s*$/.exec(i);if(t)return parseInt(t[1],10)}function D(i){return So(Be(i,!1))}const Ao="http://www.w3.org/1999/xlink";function Ui(i){return i.getAttributeNS(Ao,"href")}function _o(i,t){return tt({},Qo,i,t)}function qn(i){return[Dt(i.getAttribute("minx")),Dt(i.getAttribute("miny")),Dt(i.getAttribute("maxx")),Dt(i.getAttribute("maxy"))]}function Co(i,t){const e=qn(i),n=[Dt(i.getAttribute("resx")),Dt(i.getAttribute("resy"))];return{crs:i.getAttribute("CRS")||i.getAttribute("SRS"),extent:e,res:n}}function To(i,t){const e=qn(i);if(!(!S(e[0])||!S(e[1])||!S(e[2])||!S(e[3])))return e}function Do(i,t){const e=parseFloat(i.getAttribute("min")),n=parseFloat(i.getAttribute("max"));return{min:e,max:n}}function Po(i,t){const e=tt({},ts,i,t);if(!S(e))return;const n=e.westBoundLongitude,r=e.southBoundLatitude,o=e.eastBoundLongitude,s=e.northBoundLatitude;if(!(!S(n)||!S(r)||!S(o)||!S(s)))return[n,r,o,s]}function Oo(i,t){return tt({},Xo,i,t)}function Lo(i,t){return tt({},Yo,i,t)}function Ro(i,t){return tt({},Wo,i,t)}function Mo(i,t){return tt({},Go,i,t)}function Io(i,t){return tt({},Jo,i,t)}function No(i,t){return tt([],Ko,i,t)}function Ho(i,t){const e=Wt(i.getAttribute("queryable"));return tt({queryable:S(e)?e:!1},Wn,i,t)}function Vo(i,t){var e=t[t.length-1];const n=tt({},Wn,i,t);if(!S(n))return;let r=Wt(i.getAttribute("queryable"));S(r)||(r=e.queryable),n.queryable=S(r)?r:!1;let o=Ue(i.getAttribute("cascaded"));S(o)||(o=e.cascaded),n.cascaded=o;let s=Wt(i.getAttribute("opaque"));S(s)||(s=e.opaque),n.opaque=S(s)?s:!1;let a=Wt(i.getAttribute("noSubsets"));S(a)||(a=e.noSubsets),n.noSubsets=S(a)?a:!1;let l=Dt(i.getAttribute("fixedWidth"));S(l)||(l=e.fixedWidth),n.fixedWidth=l;let d=Dt(i.getAttribute("fixedHeight"));S(d)||(d=e.fixedHeight),n.fixedHeight=d;const u=["Style","CRS","AuthorityURL"];for(let p=0,f=u.length;p<f;p++){const g=u[p],b=e[g];if(S(b)){let V=jn(n,g,[]);V=V.concat(b),n[g]=V}}const c=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=c.length;p<f;p++){const g=c[p],b=n[g];if(!S(b)){const V=e[g];n[g]=V}}return n}function ko(i,t){return{name:i.getAttribute("name"),units:i.getAttribute("units"),unitSymbol:i.getAttribute("unitSymbol"),default:i.getAttribute("default"),multipleValues:Wt(i.getAttribute("multipleValues")),nearestValue:Wt(i.getAttribute("nearestValue")),current:Wt(i.getAttribute("current")),values:D(i)}}function Pt(i,t){return tt({},ss,i,t)}function Bo(i,t){return tt({},es,i,t)}function Uo(i,t){return tt({},ns,i,t)}function Fo(i,t){return tt({},rs,i,t)}function Fi(i,t){return tt({},is,i,t)}function Xn(i,t){var e=Pt(i,t);if(S(e)){const n=[Ue(i.getAttribute("width")),Ue(i.getAttribute("height"))];return e.size=n,e}}function jo(i,t){var e=Pt(i,t);if(S(e))return e.name=i.getAttribute("name"),e}function zo(i,t){var e=Pt(i,t);if(S(e))return e.type=i.getAttribute("type"),e}function Zo(i,t){return tt({},os,i,t)}function Yn(i,t){return tt([],as,i,t)}const rt=[null,"http://www.opengis.net/wms"],qo=nt(rt,{Service:y(Lo),Capability:y(Oo)}),Xo=nt(rt,{Request:y(Bo),Exception:y(No),Layer:y(Ho)}),Yo=nt(rt,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),OnlineResource:y(Ui),ContactInformation:y(Ro),Fees:y(D),AccessConstraints:y(D),LayerLimit:y(Bi),MaxWidth:y(Bi),MaxHeight:y(Bi)}),Wo=nt(rt,{ContactPersonPrimary:y(Mo),ContactPosition:y(D),ContactAddress:y(Io),ContactVoiceTelephone:y(D),ContactFacsimileTelephone:y(D),ContactElectronicMailAddress:y(D)}),Go=nt(rt,{ContactPerson:y(D),ContactOrganization:y(D)}),Jo=nt(rt,{AddressType:y(D),Address:y(D),City:y(D),StateOrProvince:y(D),PostCode:y(D),Country:y(D)}),Ko=nt(rt,{Format:Zn(D)}),Wn=nt(rt,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),CRS:ht(D),SRS:ht(D),EX_GeographicBoundingBox:y(Po),LatLonBoundingBox:y(To),BoundingBox:ht(Co),Dimension:ht(ko),Attribution:y(_o),AuthorityURL:ht(jo),Identifier:ht(D),MetadataURL:ht(zo),DataURL:ht(Pt),FeatureListURL:ht(Pt),Style:ht(Zo),MinScaleDenominator:y(oe),MaxScaleDenominator:y(oe),ScaleHint:y(Do),Layer:ht(Vo)}),Qo=nt(rt,{Title:y(D),OnlineResource:y(Ui),LogoURL:y(Xn)}),ts=nt(rt,{westBoundLongitude:y(oe),eastBoundLongitude:y(oe),southBoundLatitude:y(oe),northBoundLatitude:y(oe)}),es=nt(rt,{GetCapabilities:y(Fi),GetMap:y(Fi),GetFeatureInfo:y(Fi)}),is=nt(rt,{Format:ht(D),DCPType:ht(Uo)}),ns=nt(rt,{HTTP:y(Fo)}),rs=nt(rt,{Get:y(Pt),Post:y(Pt)}),os=nt(rt,{Name:y(D),Title:y(D),Abstract:y(D),LegendURL:ht(Xn),StyleSheetURL:y(Pt),StyleURL:y(Pt)}),ss=nt(rt,{Format:y(D),OnlineResource:y(Ui)}),as=nt(rt,{Keyword:Zn(D)});class ls{constructor(t,e){!e&&typeof window<"u"&&(e=window.DOMParser),this.version=void 0,this._parser=new bo(e),this._data=t}data(t){return this._data=t,this}toJSON(t){return t=t||this._data,this.parse(t)}parse(t){return this.readFromDocument(this._parser.toDocument(t))}readFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Se.ELEMENT)return this.readFromNode(e);return null}readFromNode(t){return this.version=t.getAttribute("version"),tt({version:this.version},qo,t,[])||null}}async function ds(i){let t=new URL(i),e=t.searchParams;e.set("SERVICE","WMS"),e.set("REQUEST","GetCapabilities");let n=t.toString();const r=await fetch(n);if(r.ok){const o=await r.text();return new ls(o).toJSON()}else throw new Error(`Error: ${r.status}`)}function ji(i){const t=/\b(?:wms|ows)\b/i,e=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(i)?"TileWMS":e.test(i)?"XYZ":!1}function cs(i){const e=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i),n=ji(i);return!!(i&&e&&n)}function Gn(i){return i.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function us(i){try{return JSON.parse(Gn(i)),!!i}catch{return!1}}function hs(i,t){const e=new URL(i).searchParams;Object.entries(t).forEach(([s,a])=>{typeof a=="object"&&!Array.isArray(a)&&a!==null?Object.keys(a).forEach(l=>{e.set(l,a[l])}):e.set(s,a)});const n=i.split("?")[0],r=e.toString();return`${n}?${r}`}/**!
40
+ */var S=i=>i!==void 0,jn=(i,t,e)=>t in i?i[t]:i[t]=e;const Ae={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 bo{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,e){return Ue(t,e).join("")}}function Ue(i,t){return zn(i,t,[]).join("")}function zn(i,t,e){if(i.nodeType===Ae.CDATA_SECTION||i.nodeType===Ae.TEXT)t?e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(i.nodeValue);else{var n;for(n=i.firstChild;n;n=n.nextSibling)zn(n,t,e)}return e}function vo(i,t,e,n){for(var r=wo(t);r;r=xo(r)){var o=r.namespaceURI||null,s=i[o];if(S(s)){var a=s[r.localName];S(a)&&a.call(n,r,e)}}}function wo(i){let t=i.firstElementChild||i.firstChild;for(;t&&t.nodeType!==Ae.ELEMENT;)t=t.nextSibling;return t}function xo(i){let t=i.nextElementSibling||i.nextSibling;for(;t&&t.nodeType!==Ae.ELEMENT;)t=t.nextSibling;return t}function nt(i,t,e){return $o(i,t,e)}function $o(i,t,e){var n=S(e)?e:{},r,o;for(r=0,o=i.length;r<o;++r)n[i[r]]=t;return n}function Zn(i,t){return function(e,n){var r=i.call(S(t)?t:this,e,n);if(S(r)){var o=n[n.length-1];o.push(r)}}}function tt(i,t,e,n,r){return n.push(i),vo(t,e,n,r),n.pop()}function y(i,t,e){return function(n,r){let o=i.call(S(e)?e:this,n,r);if(S(o)){var s=r[r.length-1],a=S(t)?t:n.localName;s[a]=o}}}function ht(i,t,e){return function(n,r){var o=i.call(S(e)?e:this,n,r);if(S(o)){var s=r[r.length-1],a=S(t)?t:n.localName,l=jn(s,a,[]);l.push(o)}}}const Eo=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function So(i){return i.replace(Eo,"")}function Gt(i){const t=/^\s*(true|1)|(false|0)\s*$/.exec(i);if(t)return S(t[1])||!1}function se(i){return Dt(Ue(i,!1))}function Dt(i){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(i);if(t)return parseFloat(t[1])}function Bi(i){return Fe(Ue(i,!1))}function Fe(i){const t=/^\s*(\d+)\s*$/.exec(i);if(t)return parseInt(t[1],10)}function D(i){return So(Ue(i,!1))}const Ao="http://www.w3.org/1999/xlink";function Ui(i){return i.getAttributeNS(Ao,"href")}function _o(i,t){return tt({},Qo,i,t)}function qn(i){return[Dt(i.getAttribute("minx")),Dt(i.getAttribute("miny")),Dt(i.getAttribute("maxx")),Dt(i.getAttribute("maxy"))]}function Co(i,t){const e=qn(i),n=[Dt(i.getAttribute("resx")),Dt(i.getAttribute("resy"))];return{crs:i.getAttribute("CRS")||i.getAttribute("SRS"),extent:e,res:n}}function To(i,t){const e=qn(i);if(!(!S(e[0])||!S(e[1])||!S(e[2])||!S(e[3])))return e}function Do(i,t){const e=parseFloat(i.getAttribute("min")),n=parseFloat(i.getAttribute("max"));return{min:e,max:n}}function Po(i,t){const e=tt({},ts,i,t);if(!S(e))return;const n=e.westBoundLongitude,r=e.southBoundLatitude,o=e.eastBoundLongitude,s=e.northBoundLatitude;if(!(!S(n)||!S(r)||!S(o)||!S(s)))return[n,r,o,s]}function Lo(i,t){return tt({},Xo,i,t)}function Oo(i,t){return tt({},Yo,i,t)}function Ro(i,t){return tt({},Wo,i,t)}function Mo(i,t){return tt({},Go,i,t)}function Io(i,t){return tt({},Jo,i,t)}function No(i,t){return tt([],Ko,i,t)}function Ho(i,t){const e=Gt(i.getAttribute("queryable"));return tt({queryable:S(e)?e:!1},Wn,i,t)}function ko(i,t){var e=t[t.length-1];const n=tt({},Wn,i,t);if(!S(n))return;let r=Gt(i.getAttribute("queryable"));S(r)||(r=e.queryable),n.queryable=S(r)?r:!1;let o=Fe(i.getAttribute("cascaded"));S(o)||(o=e.cascaded),n.cascaded=o;let s=Gt(i.getAttribute("opaque"));S(s)||(s=e.opaque),n.opaque=S(s)?s:!1;let a=Gt(i.getAttribute("noSubsets"));S(a)||(a=e.noSubsets),n.noSubsets=S(a)?a:!1;let l=Dt(i.getAttribute("fixedWidth"));S(l)||(l=e.fixedWidth),n.fixedWidth=l;let d=Dt(i.getAttribute("fixedHeight"));S(d)||(d=e.fixedHeight),n.fixedHeight=d;const u=["Style","CRS","AuthorityURL"];for(let p=0,f=u.length;p<f;p++){const g=u[p],b=e[g];if(S(b)){let k=jn(n,g,[]);k=k.concat(b),n[g]=k}}const c=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=c.length;p<f;p++){const g=c[p],b=n[g];if(!S(b)){const k=e[g];n[g]=k}}return n}function Vo(i,t){return{name:i.getAttribute("name"),units:i.getAttribute("units"),unitSymbol:i.getAttribute("unitSymbol"),default:i.getAttribute("default"),multipleValues:Gt(i.getAttribute("multipleValues")),nearestValue:Gt(i.getAttribute("nearestValue")),current:Gt(i.getAttribute("current")),values:D(i)}}function Pt(i,t){return tt({},ss,i,t)}function Bo(i,t){return tt({},es,i,t)}function Uo(i,t){return tt({},ns,i,t)}function Fo(i,t){return tt({},rs,i,t)}function Fi(i,t){return tt({},is,i,t)}function Xn(i,t){var e=Pt(i,t);if(S(e)){const n=[Fe(i.getAttribute("width")),Fe(i.getAttribute("height"))];return e.size=n,e}}function jo(i,t){var e=Pt(i,t);if(S(e))return e.name=i.getAttribute("name"),e}function zo(i,t){var e=Pt(i,t);if(S(e))return e.type=i.getAttribute("type"),e}function Zo(i,t){return tt({},os,i,t)}function Yn(i,t){return tt([],as,i,t)}const rt=[null,"http://www.opengis.net/wms"],qo=nt(rt,{Service:y(Oo),Capability:y(Lo)}),Xo=nt(rt,{Request:y(Bo),Exception:y(No),Layer:y(Ho)}),Yo=nt(rt,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),OnlineResource:y(Ui),ContactInformation:y(Ro),Fees:y(D),AccessConstraints:y(D),LayerLimit:y(Bi),MaxWidth:y(Bi),MaxHeight:y(Bi)}),Wo=nt(rt,{ContactPersonPrimary:y(Mo),ContactPosition:y(D),ContactAddress:y(Io),ContactVoiceTelephone:y(D),ContactFacsimileTelephone:y(D),ContactElectronicMailAddress:y(D)}),Go=nt(rt,{ContactPerson:y(D),ContactOrganization:y(D)}),Jo=nt(rt,{AddressType:y(D),Address:y(D),City:y(D),StateOrProvince:y(D),PostCode:y(D),Country:y(D)}),Ko=nt(rt,{Format:Zn(D)}),Wn=nt(rt,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),CRS:ht(D),SRS:ht(D),EX_GeographicBoundingBox:y(Po),LatLonBoundingBox:y(To),BoundingBox:ht(Co),Dimension:ht(Vo),Attribution:y(_o),AuthorityURL:ht(jo),Identifier:ht(D),MetadataURL:ht(zo),DataURL:ht(Pt),FeatureListURL:ht(Pt),Style:ht(Zo),MinScaleDenominator:y(se),MaxScaleDenominator:y(se),ScaleHint:y(Do),Layer:ht(ko)}),Qo=nt(rt,{Title:y(D),OnlineResource:y(Ui),LogoURL:y(Xn)}),ts=nt(rt,{westBoundLongitude:y(se),eastBoundLongitude:y(se),southBoundLatitude:y(se),northBoundLatitude:y(se)}),es=nt(rt,{GetCapabilities:y(Fi),GetMap:y(Fi),GetFeatureInfo:y(Fi)}),is=nt(rt,{Format:ht(D),DCPType:ht(Uo)}),ns=nt(rt,{HTTP:y(Fo)}),rs=nt(rt,{Get:y(Pt),Post:y(Pt)}),os=nt(rt,{Name:y(D),Title:y(D),Abstract:y(D),LegendURL:ht(Xn),StyleSheetURL:y(Pt),StyleURL:y(Pt)}),ss=nt(rt,{Format:y(D),OnlineResource:y(Ui)}),as=nt(rt,{Keyword:Zn(D)});class ls{constructor(t,e){!e&&typeof window<"u"&&(e=window.DOMParser),this.version=void 0,this._parser=new bo(e),this._data=t}data(t){return this._data=t,this}toJSON(t){return t=t||this._data,this.parse(t)}parse(t){return this.readFromDocument(this._parser.toDocument(t))}readFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Ae.ELEMENT)return this.readFromNode(e);return null}readFromNode(t){return this.version=t.getAttribute("version"),tt({version:this.version},qo,t,[])||null}}async function ds(i){let t=new URL(i),e=t.searchParams;e.set("SERVICE","WMS"),e.set("REQUEST","GetCapabilities");let n=t.toString();const r=await fetch(n);if(r.ok){const o=await r.text();return new ls(o).toJSON()}else throw new Error(`Error: ${r.status}`)}function ji(i){const t=/\b(?:wms|ows)\b/i,e=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(i)?"TileWMS":e.test(i)?"XYZ":!1}function cs(i){const e=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i),n=ji(i);return!!(i&&e&&n)}function Gn(i){return i.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function us(i){try{return JSON.parse(Gn(i)),!!i}catch{return!1}}function hs(i,t){const e=new URL(i).searchParams;Object.entries(t).forEach(([s,a])=>{typeof a=="object"&&!Array.isArray(a)&&a!==null?Object.keys(a).forEach(l=>{e.set(l,a[l])}):e.set(s,a)});const n=i.split("?")[0],r=e.toString();return`${n}?${r}`}/**!
41
41
  * Sortable 1.15.6
42
42
  * @author RubaXa <trash@rubaxa.org>
43
43
  * @author owenm <owen23355@gmail.com>
44
44
  * @license MIT
45
- */function Jn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),e.push.apply(e,n)}return e}function At(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Jn(Object(e),!0).forEach(function(n){ps(i,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Jn(Object(e)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(e,n))})}return i}function Fe(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(t){return typeof t}:Fe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fe(i)}function ps(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function Ot(){return Ot=Object.assign||function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Ot.apply(this,arguments)}function fs(i,t){if(i==null)return{};var e={},n=Object.keys(i),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(e[r]=i[r]);return e}function gs(i,t){if(i==null)return{};var e=fs(i,t),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(e[n]=i[n])}return e}var ms="1.15.6";function Lt(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var Rt=Lt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ae=Lt(/Edge/i),Kn=Lt(/firefox/i),_e=Lt(/safari/i)&&!Lt(/chrome/i)&&!Lt(/android/i),zi=Lt(/iP(ad|od|hone)/i),Qn=Lt(/chrome/i)&&Lt(/android/i),tr={capture:!1,passive:!1};function C(i,t,e){i.addEventListener(t,e,!Rt&&tr)}function A(i,t,e){i.removeEventListener(t,e,!Rt&&tr)}function je(i,t){if(t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch{return!1}return!1}}function er(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function $t(i,t,e,n){if(i){e=e||document;do{if(t!=null&&(t[0]===">"?i.parentNode===e&&je(i,t):je(i,t))||n&&i===e)return i;if(i===e)break}while(i=er(i))}return null}var ir=/\s+/g;function bt(i,t,e){if(i&&t)if(i.classList)i.classList[e?"add":"remove"](t);else{var n=(" "+i.className+" ").replace(ir," ").replace(" "+t+" "," ");i.className=(n+(e?" "+t:"")).replace(ir," ")}}function v(i,t,e){var n=i&&i.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function se(i,t){var e="";if(typeof i=="string")e=i;else do{var n=v(i,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(i=i.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function nr(i,t,e){if(i){var n=i.getElementsByTagName(t),r=0,o=n.length;if(e)for(;r<o;r++)e(n[r],r);return n}return[]}function _t(){var i=document.scrollingElement;return i||document.documentElement}function W(i,t,e,n,r){if(!(!i.getBoundingClientRect&&i!==window)){var o,s,a,l,d,u,c;if(i!==window&&i.parentNode&&i!==_t()?(o=i.getBoundingClientRect(),s=o.top,a=o.left,l=o.bottom,d=o.right,u=o.height,c=o.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,u=window.innerHeight,c=window.innerWidth),(t||e)&&i!==window&&(r=r||i.parentNode,!Rt))do if(r&&r.getBoundingClientRect&&(v(r,"transform")!=="none"||e&&v(r,"position")!=="static")){var p=r.getBoundingClientRect();s-=p.top+parseInt(v(r,"border-top-width")),a-=p.left+parseInt(v(r,"border-left-width")),l=s+o.height,d=a+o.width;break}while(r=r.parentNode);if(n&&i!==window){var f=se(r||i),g=f&&f.a,b=f&&f.d;f&&(s/=b,a/=g,c/=g,u/=b,l=s+u,d=a+c)}return{top:s,left:a,bottom:l,right:d,width:c,height:u}}}function rr(i,t,e){for(var n=Vt(i,!0),r=W(i)[t];n;){var o=W(n)[e],s=void 0;if(s=r>=o,!s)return n;if(n===_t())break;n=Vt(n,!1)}return!1}function ae(i,t,e,n){for(var r=0,o=0,s=i.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==w.ghost&&(n||s[o]!==w.dragged)&&$t(s[o],e.draggable,i,!1)){if(r===t)return s[o];r++}o++}return null}function Zi(i,t){for(var e=i.lastElementChild;e&&(e===w.ghost||v(e,"display")==="none"||t&&!je(e,t));)e=e.previousElementSibling;return e||null}function Et(i,t){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==w.clone&&(!t||je(i,t))&&e++;return e}function or(i){var t=0,e=0,n=_t();if(i)do{var r=se(i),o=r.a,s=r.d;t+=i.scrollLeft*o,e+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[t,e]}function ys(i,t){for(var e in i)if(i.hasOwnProperty(e)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===i[e][n])return Number(e)}return-1}function Vt(i,t){if(!i||!i.getBoundingClientRect)return _t();var e=i,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=v(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return _t();if(n||t)return e;n=!0}}while(e=e.parentNode);return _t()}function bs(i,t){if(i&&t)for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function qi(i,t){return Math.round(i.top)===Math.round(t.top)&&Math.round(i.left)===Math.round(t.left)&&Math.round(i.height)===Math.round(t.height)&&Math.round(i.width)===Math.round(t.width)}var Ce;function sr(i,t){return function(){if(!Ce){var e=arguments,n=this;e.length===1?i.call(n,e[0]):i.apply(n,e),Ce=setTimeout(function(){Ce=void 0},t)}}}function vs(){clearTimeout(Ce),Ce=void 0}function ar(i,t,e){i.scrollLeft+=t,i.scrollTop+=e}function lr(i){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}function dr(i,t,e){var n={};return Array.from(i.children).forEach(function(r){var o,s,a,l;if(!(!$t(r,t.draggable,i,!1)||r.animated||r===e)){var d=W(r);n.left=Math.min((o=n.left)!==null&&o!==void 0?o:1/0,d.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,d.top),n.right=Math.max((a=n.right)!==null&&a!==void 0?a:-1/0,d.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,d.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var pt="Sortable"+new Date().getTime();function ws(){var i=[],t;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(v(r,"display")==="none"||r===w.ghost)){i.push({target:r,rect:W(r)});var o=At({},i[i.length-1].rect);if(r.thisAnimationDuration){var s=se(r,!0);s&&(o.top-=s.f,o.left-=s.e)}r.fromRect=o}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ys(i,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var o=!1,s=0;i.forEach(function(a){var l=0,d=a.target,u=d.fromRect,c=W(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,b=se(d,!0);b&&(c.top-=b.f,c.left-=b.e),d.toRect=c,d.thisAnimationDuration&&qi(p,c)&&!qi(u,c)&&(g.top-c.top)/(g.left-c.left)===(u.top-c.top)/(u.left-c.left)&&(l=Es(g,p,f,r.options)),qi(c,u)||(d.prevFromRect=u,d.prevToRect=c,l||(l=r.options.animation),r.animate(d,g,c,l)),l&&(o=!0,s=Math.max(s,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),i=[]},animate:function(n,r,o,s){if(s){v(n,"transition",""),v(n,"transform","");var a=se(this.el),l=a&&a.a,d=a&&a.d,u=(r.left-o.left)/(l||1),c=(r.top-o.top)/(d||1);n.animatingX=!!u,n.animatingY=!!c,v(n,"transform","translate3d("+u+"px,"+c+"px,0)"),this.forRepaintDummy=xs(n),v(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),v(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){v(n,"transition",""),v(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function xs(i){return i.offsetWidth}function Es(i,t,e,n){return Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*n.animation}var le=[],Xi={initializeByDefault:!0},Te={mount:function(t){for(var e in Xi)Xi.hasOwnProperty(e)&&!(e in t)&&(t[e]=Xi[e]);le.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),le.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=t+"Global";le.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][o]&&e[s.pluginName][o](At({sortable:e},n)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](At({sortable:e},n)))})},initializePlugins:function(t,e,n,r){le.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,e,t.options);d.sortable=t,d.options=t.options,t[l]=d,Ot(n,d.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);typeof s<"u"&&(t.options[o]=s)}},getEventProperties:function(t,e){var n={};return le.forEach(function(r){typeof r.eventProperties=="function"&&Ot(n,r.eventProperties.call(e[r.pluginName],t))}),n},modifyOption:function(t,e,n){var r;return le.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],n))}),r}};function $s(i){var t=i.sortable,e=i.rootEl,n=i.name,r=i.targetEl,o=i.cloneEl,s=i.toEl,a=i.fromEl,l=i.oldIndex,d=i.newIndex,u=i.oldDraggableIndex,c=i.newDraggableIndex,p=i.originalEvent,f=i.putSortable,g=i.extraEventProperties;if(t=t||e&&e[pt],!!t){var b,V=t.options,et="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Rt&&!Ae?b=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(n,!0,!0)),b.to=s||e,b.from=a||e,b.item=r||e,b.clone=o,b.oldIndex=l,b.newIndex=d,b.oldDraggableIndex=u,b.newDraggableIndex=c,b.originalEvent=p,b.pullMode=f?f.lastPutMode:void 0;var z=At(At({},g),Te.getEventProperties(n,t));for(var ut in z)b[ut]=z[ut];e&&e.dispatchEvent(b),V[et]&&V[et].call(t,b)}}var Ss=["evt"],ft=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,o=gs(n,Ss);Te.pluginEvent.bind(w)(t,e,At({dragEl:h,parentEl:j,ghostEl:E,rootEl:k,nextEl:Gt,lastDownEl:ze,cloneEl:U,cloneHidden:kt,dragStarted:Pe,putSortable:ot,activeSortable:w.active,originalEvent:r,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:Bt,hideGhostForTarget:mr,unhideGhostForTarget:yr,cloneNowHidden:function(){kt=!0},cloneNowShown:function(){kt=!1},dispatchSortableEvent:function(a){ct({sortable:e,name:a,originalEvent:r})}},o))};function ct(i){$s(At({putSortable:ot,cloneEl:U,targetEl:h,rootEl:k,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:Bt},i))}var h,j,E,k,Gt,ze,U,kt,de,vt,De,Bt,Ze,ot,ce=!1,qe=!1,Xe=[],Jt,St,Yi,Wi,cr,ur,Pe,ue,Oe,Le=!1,Ye=!1,We,lt,Gi=[],Ji=!1,Ge=[],Je=typeof document<"u",Ke=zi,hr=Ae||Rt?"cssFloat":"float",As=Je&&!Qn&&!zi&&"draggable"in document.createElement("div"),pr=function(){if(Je){if(Rt)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),fr=function(t,e){var n=v(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=ae(t,0,e),s=ae(t,1,e),a=o&&v(o),l=s&&v(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+W(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+W(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=r&&n[hr]==="none"||s&&n[hr]==="none"&&d+u>r)?"vertical":"horizontal"},_s=function(t,e,n){var r=n?t.left:t.top,o=n?t.right:t.bottom,s=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,d=n?e.width:e.height;return r===a||o===l||r+s/2===a+d/2},Cs=function(t,e){var n;return Xe.some(function(r){var o=r[pt].options.emptyInsertThreshold;if(!(!o||Zi(r))){var s=W(r),a=t>=s.left-o&&t<=s.right+o,l=e>=s.top-o&&e<=s.bottom+o;if(a&&l)return n=r}}),n},gr=function(t){function e(o,s){return function(a,l,d,u){var c=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(s||c))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return e(o(a,l,d,u),s)(a,l,d,u);var p=(s?a:l).options.group.name;return o===!0||typeof o=="string"&&o===p||o.join&&o.indexOf(p)>-1}}var n={},r=t.group;(!r||Fe(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},mr=function(){!pr&&E&&v(E,"display","none")},yr=function(){!pr&&E&&v(E,"display","")};Je&&!Qn&&document.addEventListener("click",function(i){if(qe)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),qe=!1,!1},!0);var Kt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=Cs(t.clientX,t.clientY);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[pt]._onDragOver(n)}}},Ts=function(t){h&&h.parentNode[pt]._isOutsideThisEl(t.target)};function w(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=Ot({},t),i[pt]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return fr(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.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:w.supportPointer!==!1&&"PointerEvent"in window&&(!_e||zi),emptyInsertThreshold:5};Te.initializePlugins(this,i,e);for(var n in e)!(n in t)&&(t[n]=e[n]);gr(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:As,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(i,"pointerdown",this._onTapStart):(C(i,"mousedown",this._onTapStart),C(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(i,"dragover",this),C(i,"dragenter",this)),Xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ot(this,ws())}w.prototype={constructor:w,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(ue=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,o=r.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,u=r.filter;if(Ns(n),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&_e&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=$t(l,r.draggable,n,!1),!(l&&l.animated)&&ze!==l)){if(de=Et(l),De=Et(l,r.draggable),typeof u=="function"){if(u.call(this,t,l,this)){ct({sortable:e,rootEl:d,name:"filter",targetEl:l,toEl:n,fromEl:n}),ft("filter",e,{evt:t}),o&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=$t(d,c.trim(),n,!1),c)return ct({sortable:e,rootEl:c,name:"filter",targetEl:l,fromEl:n,toEl:n}),ft("filter",e,{evt:t}),!0}),u)){o&&t.preventDefault();return}r.handle&&!$t(d,r.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var r=this,o=r.el,s=r.options,a=o.ownerDocument,l;if(n&&!h&&n.parentNode===o){var d=W(n);if(k=o,h=n,j=h.parentNode,Gt=h.nextSibling,ze=n,Ze=s.group,w.dragged=h,Jt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},cr=Jt.clientX-d.left,ur=Jt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(ft("delayEnded",r,{evt:t}),w.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Kn&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(t,e),ct({sortable:r,name:"choose",originalEvent:t}),bt(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){nr(h,u.trim(),Ki)}),C(a,"dragover",Kt),C(a,"mousemove",Kt),C(a,"touchmove",Kt),s.supportPointer?(C(a,"pointerup",r._onDrop),!this.nativeDraggable&&C(a,"pointercancel",r._onDrop)):(C(a,"mouseup",r._onDrop),C(a,"touchend",r._onDrop),C(a,"touchcancel",r._onDrop)),Kn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),ft("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Ae||Rt))){if(w.eventCanceled){this._onDrop();return}s.supportPointer?(C(a,"pointerup",r._disableDelayedDrag),C(a,"pointercancel",r._disableDelayedDrag)):(C(a,"mouseup",r._disableDelayedDrag),C(a,"touchend",r._disableDelayedDrag),C(a,"touchcancel",r._disableDelayedDrag)),C(a,"mousemove",r._delayedDragTouchMoveHandler),C(a,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&C(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;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(){h&&Ki(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;A(t,"mouseup",this._disableDelayedDrag),A(t,"touchend",this._disableDelayedDrag),A(t,"touchcancel",this._disableDelayedDrag),A(t,"pointerup",this._disableDelayedDrag),A(t,"pointercancel",this._disableDelayedDrag),A(t,"mousemove",this._delayedDragTouchMoveHandler),A(t,"touchmove",this._delayedDragTouchMoveHandler),A(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):e?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C(k,"dragstart",this._onDragStart));try{document.selection?ti(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(ce=!1,k&&h){ft("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",Ts);var n=this.options;!t&&bt(h,n.dragClass,!1),bt(h,n.ghostClass,!0),w.active=this,t&&this._appendGhost(),ct({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,mr();for(var t=document.elementFromPoint(St.clientX,St.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(St.clientX,St.clientY),t!==e);)e=t;if(h.parentNode[pt]._isOutsideThisEl(t),e)do{if(e[pt]){var n=void 0;if(n=e[pt]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=er(e));yr()}},_onTouchMove:function(t){if(Jt){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,s=E&&se(E,!0),a=E&&s&&s.a,l=E&&s&&s.d,d=Ke&&lt&&or(lt),u=(o.clientX-Jt.clientX+r.x)/(a||1)+(d?d[0]-Gi[0]:0)/(a||1),c=(o.clientY-Jt.clientY+r.y)/(l||1)+(d?d[1]-Gi[1]:0)/(l||1);if(!w.active&&!ce){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(E){s?(s.e+=u-(Yi||0),s.f+=c-(Wi||0)):s={a:1,b:0,c:0,d:1,e:u,f:c};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");v(E,"webkitTransform",p),v(E,"mozTransform",p),v(E,"msTransform",p),v(E,"transform",p),Yi=u,Wi=c,St=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!E){var t=this.options.fallbackOnBody?document.body:k,e=W(h,!0,Ke,!0,t),n=this.options;if(Ke){for(lt=t;v(lt,"position")==="static"&&v(lt,"transform")==="none"&&lt!==document;)lt=lt.parentNode;lt!==document.body&&lt!==document.documentElement?(lt===document&&(lt=_t()),e.top+=lt.scrollTop,e.left+=lt.scrollLeft):lt=_t(),Gi=or(lt)}E=h.cloneNode(!0),bt(E,n.ghostClass,!1),bt(E,n.fallbackClass,!0),bt(E,n.dragClass,!0),v(E,"transition",""),v(E,"transform",""),v(E,"box-sizing","border-box"),v(E,"margin",0),v(E,"top",e.top),v(E,"left",e.left),v(E,"width",e.width),v(E,"height",e.height),v(E,"opacity","0.8"),v(E,"position",Ke?"absolute":"fixed"),v(E,"zIndex","100000"),v(E,"pointerEvents","none"),w.ghost=E,t.appendChild(E),v(E,"transform-origin",cr/parseInt(E.style.width)*100+"% "+ur/parseInt(E.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,o=n.options;if(ft("dragStart",this,{evt:t}),w.eventCanceled){this._onDrop();return}ft("setupClone",this),w.eventCanceled||(U=lr(h),U.removeAttribute("id"),U.draggable=!1,U.style["will-change"]="",this._hideClone(),bt(U,this.options.chosenClass,!1),w.clone=U),n.cloneId=ti(function(){ft("clone",n),!w.eventCanceled&&(n.options.removeCloneOnHide||k.insertBefore(U,h),n._hideClone(),ct({sortable:n,name:"clone"}))}),!e&&bt(h,o.dragClass,!0),e?(qe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(A(document,"mouseup",n._onDrop),A(document,"touchend",n._onDrop),A(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,h)),C(document,"drop",n),v(h,"transform","translateZ(0)")),ce=!0,n._dragStartId=ti(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Pe=!0,window.getSelection().removeAllRanges(),_e&&v(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,r,o,s,a=this.options,l=a.group,d=w.active,u=Ze===l,c=a.sort,p=ot||d,f,g=this,b=!1;if(Ji)return;function V(wt,Qt){ft(wt,g,At({evt:t,isOwner:u,axis:f?"vertical":"horizontal",revert:s,dragRect:r,targetRect:o,canSort:c,fromSortable:p,target:n,completed:z,onMove:function(te,It){return Qe(k,e,h,r,te,W(te),t,It)},changed:ut},Qt))}function et(){V("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function z(wt){return V("dragOverCompleted",{insertion:wt}),wt&&(u?d._hideClone():d._showClone(g),g!==p&&(bt(h,ot?ot.options.ghostClass:d.options.ghostClass,!1),bt(h,a.ghostClass,!0)),ot!==g&&g!==w.active?ot=g:g===w.active&&ot&&(ot=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){V("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===e&&!n.animated)&&(ue=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(h.parentNode[pt]._isOutsideThisEl(t.target),!wt&&Kt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function ut(){vt=Et(h),Bt=Et(h,a.draggable),ct({sortable:g,name:"change",toEl:e,newIndex:vt,newDraggableIndex:Bt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=$t(n,a.draggable,e,!0),V("dragOver"),w.eventCanceled)return b;if(h.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return z(!1);if(qe=!1,d&&!a.disabled&&(u?c||(s=j!==k):ot===this||(this.lastPutMode=Ze.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,n)==="vertical",r=W(h),V("dragOverValid"),w.eventCanceled)return b;if(s)return j=k,et(),this._hideClone(),V("revert"),w.eventCanceled||(Gt?k.insertBefore(h,Gt):k.appendChild(h)),z(!0);var it=Zi(e,a.draggable);if(!it||Ls(t,f,this)&&!it.animated){if(it===h)return z(!1);if(it&&e===t.target&&(n=it),n&&(o=W(n)),Qe(k,e,h,r,n,o,t,!!n)!==!1)return et(),it&&it.nextSibling?e.insertBefore(h,it.nextSibling):e.appendChild(h),j=e,ut(),z(!0)}else if(it&&Os(t,f,this)){var $=ae(e,0,a,!0);if($===h)return z(!1);if(n=$,o=W(n),Qe(k,e,h,r,n,o,t,!1)!==!1)return et(),e.insertBefore(h,$),j=e,ut(),z(!0)}else if(n.parentNode===e){o=W(n);var m=0,_,N=h.parentNode!==e,M=!_s(h.animated&&h.toRect||r,n.animated&&n.toRect||o,f),J=f?"top":"left",K=rr(n,"top","top")||rr(h,"top","top"),B=K?K.scrollTop:void 0;ue!==n&&(_=o[J],Le=!1,Ye=!M&&a.invertSwap||N),m=Rs(t,n,o,f,M?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ye,ue===n);var I;if(m!==0){var Y=Et(h);do Y-=m,I=j.children[Y];while(I&&(v(I,"display")==="none"||I===E))}if(m===0||I===n)return z(!1);ue=n,Oe=m;var gt=n.nextElementSibling,at=!1;at=m===1;var mt=Qe(k,e,h,r,n,o,t,at);if(mt!==!1)return(mt===1||mt===-1)&&(at=mt===1),Ji=!0,setTimeout(Ps,30),et(),at&&!gt?e.appendChild(h):n.parentNode.insertBefore(h,at?gt:n),K&&ar(K,0,B-K.scrollTop),j=h.parentNode,_!==void 0&&!Ye&&(We=Math.abs(_-W(n)[J])),ut(),z(!0)}if(e.contains(h))return z(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){A(document,"mousemove",this._onTouchMove),A(document,"touchmove",this._onTouchMove),A(document,"pointermove",this._onTouchMove),A(document,"dragover",Kt),A(document,"mousemove",Kt),A(document,"touchmove",Kt)},_offUpEvents:function(){var t=this.el.ownerDocument;A(t,"mouseup",this._onDrop),A(t,"touchend",this._onDrop),A(t,"pointerup",this._onDrop),A(t,"pointercancel",this._onDrop),A(t,"touchcancel",this._onDrop),A(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(vt=Et(h),Bt=Et(h,n.draggable),ft("drop",this,{evt:t}),j=h&&h.parentNode,vt=Et(h),Bt=Et(h,n.draggable),w.eventCanceled){this._nulling();return}ce=!1,Ye=!1,Le=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qi(this.cloneId),Qi(this._dragStartId),this.nativeDraggable&&(A(document,"drop",this),A(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_e&&v(document.body,"user-select",""),v(h,"transform",""),t&&(Pe&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),E&&E.parentNode&&E.parentNode.removeChild(E),(k===j||ot&&ot.lastPutMode!=="clone")&&U&&U.parentNode&&U.parentNode.removeChild(U),h&&(this.nativeDraggable&&A(h,"dragend",this),Ki(h),h.style["will-change"]="",Pe&&!ce&&bt(h,ot?ot.options.ghostClass:this.options.ghostClass,!1),bt(h,this.options.chosenClass,!1),ct({sortable:this,name:"unchoose",toEl:j,newIndex:null,newDraggableIndex:null,originalEvent:t}),k!==j?(vt>=0&&(ct({rootEl:j,name:"add",toEl:j,fromEl:k,originalEvent:t}),ct({sortable:this,name:"remove",toEl:j,originalEvent:t}),ct({rootEl:j,name:"sort",toEl:j,fromEl:k,originalEvent:t}),ct({sortable:this,name:"sort",toEl:j,originalEvent:t})),ot&&ot.save()):vt!==de&&vt>=0&&(ct({sortable:this,name:"update",toEl:j,originalEvent:t}),ct({sortable:this,name:"sort",toEl:j,originalEvent:t})),w.active&&((vt==null||vt===-1)&&(vt=de,Bt=De),ct({sortable:this,name:"end",toEl:j,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ft("nulling",this),k=h=j=E=Gt=U=ze=kt=Jt=St=Pe=vt=Bt=de=De=ue=Oe=ot=Ze=w.dragged=w.ghost=w.clone=w.active=null,Ge.forEach(function(t){t.checked=!0}),Ge.length=Yi=Wi=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Ds(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,r=0,o=n.length,s=this.options;r<o;r++)e=n[r],$t(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||Is(e));return t},sort:function(t,e){var n={},r=this.el;this.toArray().forEach(function(o,s){var a=r.children[s];$t(a,this.options.draggable,r,!1)&&(n[o]=a)},this),e&&this.captureAnimationState(),t.forEach(function(o){n[o]&&(r.removeChild(n[o]),r.appendChild(n[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return $t(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var r=Te.modifyOption(this,t,e);typeof r<"u"?n[t]=r:n[t]=e,t==="group"&&gr(n)},destroy:function(){ft("destroy",this);var t=this.el;t[pt]=null,A(t,"mousedown",this._onTapStart),A(t,"touchstart",this._onTapStart),A(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(A(t,"dragover",this),A(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Xe.splice(Xe.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!kt){if(ft("hideClone",this),w.eventCanceled)return;v(U,"display","none"),this.options.removeCloneOnHide&&U.parentNode&&U.parentNode.removeChild(U),kt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(kt){if(ft("showClone",this),w.eventCanceled)return;h.parentNode==k&&!this.options.group.revertClone?k.insertBefore(U,h):Gt?k.insertBefore(U,Gt):k.appendChild(U),this.options.group.revertClone&&this.animate(h,U),v(U,"display",""),kt=!1}}};function Ds(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function Qe(i,t,e,n,r,o,s,a){var l,d=i[pt],u=d.options.onMove,c;return window.CustomEvent&&!Rt&&!Ae?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=i,l.dragged=e,l.draggedRect=n,l.related=r||t,l.relatedRect=o||W(t),l.willInsertAfter=a,l.originalEvent=s,i.dispatchEvent(l),u&&(c=u.call(d,l,s)),c}function Ki(i){i.draggable=!1}function Ps(){Ji=!1}function Os(i,t,e){var n=W(ae(e.el,0,e.options,!0)),r=dr(e.el,e.options,E),o=10;return t?i.clientX<r.left-o||i.clientY<n.top&&i.clientX<n.right:i.clientY<r.top-o||i.clientY<n.bottom&&i.clientX<n.left}function Ls(i,t,e){var n=W(Zi(e.el,e.options.draggable)),r=dr(e.el,e.options,E),o=10;return t?i.clientX>r.right+o||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>r.bottom+o||i.clientX>n.right&&i.clientY>n.top}function Rs(i,t,e,n,r,o,s,a){var l=n?i.clientY:i.clientX,d=n?e.height:e.width,u=n?e.top:e.left,c=n?e.bottom:e.right,p=!1;if(!s){if(a&&We<d*r){if(!Le&&(Oe===1?l>u+d*o/2:l<c-d*o/2)&&(Le=!0),Le)p=!0;else if(Oe===1?l<u+We:l>c-We)return-Oe}else if(l>u+d*(1-r)/2&&l<c-d*(1-r)/2)return Ms(t)}return p=p||s,p&&(l<u+d*o/2||l>c-d*o/2)?l>u+d/2?1:-1:0}function Ms(i){return Et(h)<Et(i)?1:-1}function Is(i){for(var t=i.tagName+i.className+i.src+i.href+i.textContent,e=t.length,n=0;e--;)n+=t.charCodeAt(e);return n.toString(36)}function Ns(i){Ge.length=0;for(var t=i.getElementsByTagName("input"),e=t.length;e--;){var n=t[e];n.checked&&Ge.push(n)}}function ti(i){return setTimeout(i,0)}function Qi(i){return clearTimeout(i)}Je&&C(document,"touchmove",function(i){(w.active||ce)&&i.cancelable&&i.preventDefault()}),w.utils={on:C,off:A,css:v,find:nr,is:function(t,e){return!!$t(t,e,t,!1)},extend:bs,throttle:sr,closest:$t,toggleClass:bt,clone:lr,index:Et,nextTick:ti,cancelNextTick:Qi,detectDirection:fr,getChild:ae,expando:pt},w.get=function(i){return i[pt]},w.mount=function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(w.utils=At(At({},w.utils),n.utils)),Te.mount(n)})},w.create=function(i,t){return new w(i,t)},w.version=ms;var G=[],Re,tn,en=!1,nn,rn,ei,Me;function Hs(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return i.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):n.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):(A(document,"pointermove",this._handleFallbackAutoScroll),A(document,"touchmove",this._handleFallbackAutoScroll),A(document,"mousemove",this._handleFallbackAutoScroll)),br(),ii(),vs()},nulling:function(){ei=tn=Re=en=Me=nn=rn=null,G.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var r=this,o=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(o,s);if(ei=e,n||this.options.forceAutoScrollFallback||Ae||Rt||_e){on(e,this.options,a,n);var l=Vt(a,!0);en&&(!Me||o!==nn||s!==rn)&&(Me&&br(),Me=setInterval(function(){var d=Vt(document.elementFromPoint(o,s),!0);d!==l&&(l=d,ii()),on(e,r.options,d,n)},10),nn=o,rn=s)}else{if(!this.options.bubbleScroll||Vt(a,!0)===_t()){ii();return}on(e,this.options,Vt(a,!1),!1)}}},Ot(i,{pluginName:"scroll",initializeByDefault:!0})}function ii(){G.forEach(function(i){clearInterval(i.pid)}),G=[]}function br(){clearInterval(Me)}var on=sr(function(i,t,e,n){if(t.scroll){var r=(i.touches?i.touches[0]:i).clientX,o=(i.touches?i.touches[0]:i).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=_t(),d=!1,u;tn!==e&&(tn=e,ii(),Re=t.scroll,u=t.scrollFn,Re===!0&&(Re=Vt(e,!0)));var c=0,p=Re;do{var f=p,g=W(f),b=g.top,V=g.bottom,et=g.left,z=g.right,ut=g.width,it=g.height,$=void 0,m=void 0,_=f.scrollWidth,N=f.scrollHeight,M=v(f),J=f.scrollLeft,K=f.scrollTop;f===l?($=ut<_&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):($=ut<_&&(M.overflowX==="auto"||M.overflowX==="scroll"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"));var B=$&&(Math.abs(z-r)<=s&&J+ut<_)-(Math.abs(et-r)<=s&&!!J),I=m&&(Math.abs(V-o)<=s&&K+it<N)-(Math.abs(b-o)<=s&&!!K);if(!G[c])for(var Y=0;Y<=c;Y++)G[Y]||(G[Y]={});(G[c].vx!=B||G[c].vy!=I||G[c].el!==f)&&(G[c].el=f,G[c].vx=B,G[c].vy=I,clearInterval(G[c].pid),(B!=0||I!=0)&&(d=!0,G[c].pid=setInterval((function(){n&&this.layer===0&&w.active._onTouchMove(ei);var gt=G[this.layer].vy?G[this.layer].vy*a:0,at=G[this.layer].vx?G[this.layer].vx*a:0;typeof u=="function"&&u.call(w.dragged.parentNode[pt],at,gt,i,ei,G[this.layer].el)!=="continue"||ar(G[this.layer].el,at,gt)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&p!==l&&(p=Vt(p,!1)));en=d}},30),vr=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var d=n||o;a();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(u.clientX,u.clientY);l(),d&&!d.el.contains(c)&&(s("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function sn(){}sn.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=ae(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:vr},Ot(sn,{pluginName:"revertOnSpill"});function an(){}an.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,r=n||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:vr},Ot(an,{pluginName:"removeOnSpill"}),w.mount(new Hs),w.mount(an,sn);const Vs=i=>{const t=i.item;let e=Array.prototype.slice.call(t.parentNode.childNodes);return e=e.filter(n=>n.nodeType!=Node.ELEMENT_NODE||!n.classList.contains("sortable-fallback")),e},ks=(i,t,e,n,r,o)=>{const a=i.item.parentNode;for(const b of e)a.appendChild(b);if(i.oldIndex==i.newIndex)return;const l=n.getArray(),d=i.item.querySelector("eox-layercontrol-layer").layer.get(r),u=l.find(b=>b.get(r)===d),c=o.dataset.layer,p=l.find(b=>b.get(r)==c);let f,g;for(f=0;f<l.length;f++)if(l[f]==u){n.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?n.insertAt(g,u):n.insertAt(g+1,u);break}t.requestUpdate()};function Bs(i,t,e,n){let r=[],o=null;i._sortable=w.create(i,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>r=Vs(s),onMove:s=>{o=s.related},onEnd:s=>ks(s,n,r,t,e,o)})}function Us(i,t,e,n){const r=i.getArray();let o=!1;r.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),o=!0),s.get(e)||(s.set(e,`layer ${a}`),o=!0),o&&n.requestUpdate()})}function ln(i,t,e){let n=[];const r=(o,s,a)=>{n=[...n,...o.filter(d=>d.get(s)===a)];const l=o.filter(d=>d.getLayers);return l.length>0&&l.forEach(d=>r(d.getLayers().getArray(),s,a)),n};return r(i,t,e),n}function Fs(i,t,e){if(!i||!t)return!1;if(!wr(i,e))return!0;const n=i.get("minZoom"),r=i.get("maxZoom"),o=t.getView().getZoom();return o>n&&o<r}function wr(i,t){const e=i.get("minZoom"),n=i.get("maxZoom");return!!(t&&(e!==-1/0||n!==1/0))}function js(i,t){var r,o,s;return!i||!t?void 0:i.getLayers?"group":((s=(r=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:r.ol_uid)==null?void 0:s.includes(i.getSource?(o=i.getSource())==null?void 0:o.ol_uid:void 0))?"draw":i.declutter_!==void 0?"vector":"raster"}const zs=(i,t,e)=>{let n=t;return e.layer.getSource().getTileUrlFunction()&&(n||(n=e.layer.getSource().getTileUrlFunction()),e.layer.getSource().setTileUrlFunction((...r)=>hs(n(...r),i)),e.layer.getSource().setKey(new Date)),n};function Zs(i,t,e){const n="updateStyleVariables"in t,r="setStyle"in t,o=n?t.style_:e.style;let s=o==null?void 0:o.variables;if(s){const a=dn(i);if(o.variables={...s,...a},n)t.updateStyleVariables(a);else if(r){const l=qs(o);t.setStyle(l)}}}const dn=i=>{const t={};for(const e in i)if(typeof i[e]=="object"&&i[e]!==null){const n=dn(i[e]);for(const r in n)t[r]=n==null?void 0:n[r]}else t[e]=i==null?void 0:i[e];return t};function qs(i){let t=i;if("variables"in i){let e=JSON.stringify(i);const{variables:n}=i;for(const r in n)typeof n[r]=="number"?e=e.replaceAll(`["var","${r}"]`,n[r]):e=e.replaceAll(`["var","${r}"]`,`"${n[r]}"`);t=JSON.parse(e)}return t}const Xs=(i,t)=>{var e;if(i)return!("domainProperties"in i)||"domain"in i?{...i}:(e=Object.keys(i))==null?void 0:e.reduce((n,r)=>{if(r==="domainProperties"){const o=dn(t);n.domain=i[r].map(s=>o[s])}else n[r]=i[r];return n},{})};function xr(i,t){var n;let e={};for(const r in i){const o=i[r].type;if(o&&o!=="object")e[r]=o==="number"?Number(t[r]):t[r];else if(typeof i[r]=="object"&&((n=i[r])!=null&&n.properties)){const s=xr(i[r].properties,t);Object.keys(s).length>0&&(e[r]=s)}}return e}function Ys(i,t){var o,s,a,l,d;if(!t)return null;let e={},n="updateStyleVariables"in i?(o=i.style_)==null?void 0:o.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&n)e=n;else if((l=(a=i.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const u=new URL(i.getSource().getTileUrlFunction()([0,0,0]));e=Object.fromEntries(u.searchParams.entries())}else return null;const r=xr(((d=t.schema)==null?void 0:d.properties)||t.schema,e);return Object.keys(r).length?r:null}const Ws=(i,t)=>i==null?void 0:i.filter(e=>["remove","sort"].filter(n=>t!=null&&t.get("layerControlDisable")?n!=="sort":!0).includes(e)),Gs=(i,t)=>i==null?void 0:i.filter(e=>{let n=!0;return["remove","sort"].includes(e)&&(n=!1),e==="info"&&(n=t.get("description")),e==="config"&&(n=t.get("layerConfig")),e==="datetime"&&(n=t.get("layerDatetime")),e==="legend"&&(n=t.get("layerLegend")),n}),Js=(i,t)=>x`
46
- <button slot="${i}-icon" class="icon">${t?i:O}</button>
47
- `,Ks=i=>x`
45
+ */function Jn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),e.push.apply(e,n)}return e}function At(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Jn(Object(e),!0).forEach(function(n){ps(i,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Jn(Object(e)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(e,n))})}return i}function je(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?je=function(t){return typeof t}:je=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(i)}function ps(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function Lt(){return Lt=Object.assign||function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Lt.apply(this,arguments)}function fs(i,t){if(i==null)return{};var e={},n=Object.keys(i),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(e[r]=i[r]);return e}function gs(i,t){if(i==null)return{};var e=fs(i,t),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(e[n]=i[n])}return e}var ms="1.15.6";function Ot(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var Rt=Ot(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_e=Ot(/Edge/i),Kn=Ot(/firefox/i),Ce=Ot(/safari/i)&&!Ot(/chrome/i)&&!Ot(/android/i),zi=Ot(/iP(ad|od|hone)/i),Qn=Ot(/chrome/i)&&Ot(/android/i),tr={capture:!1,passive:!1};function C(i,t,e){i.addEventListener(t,e,!Rt&&tr)}function A(i,t,e){i.removeEventListener(t,e,!Rt&&tr)}function ze(i,t){if(t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch{return!1}return!1}}function er(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function Et(i,t,e,n){if(i){e=e||document;do{if(t!=null&&(t[0]===">"?i.parentNode===e&&ze(i,t):ze(i,t))||n&&i===e)return i;if(i===e)break}while(i=er(i))}return null}var ir=/\s+/g;function bt(i,t,e){if(i&&t)if(i.classList)i.classList[e?"add":"remove"](t);else{var n=(" "+i.className+" ").replace(ir," ").replace(" "+t+" "," ");i.className=(n+(e?" "+t:"")).replace(ir," ")}}function w(i,t,e){var n=i&&i.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function ae(i,t){var e="";if(typeof i=="string")e=i;else do{var n=w(i,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(i=i.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function nr(i,t,e){if(i){var n=i.getElementsByTagName(t),r=0,o=n.length;if(e)for(;r<o;r++)e(n[r],r);return n}return[]}function _t(){var i=document.scrollingElement;return i||document.documentElement}function G(i,t,e,n,r){if(!(!i.getBoundingClientRect&&i!==window)){var o,s,a,l,d,u,c;if(i!==window&&i.parentNode&&i!==_t()?(o=i.getBoundingClientRect(),s=o.top,a=o.left,l=o.bottom,d=o.right,u=o.height,c=o.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,u=window.innerHeight,c=window.innerWidth),(t||e)&&i!==window&&(r=r||i.parentNode,!Rt))do if(r&&r.getBoundingClientRect&&(w(r,"transform")!=="none"||e&&w(r,"position")!=="static")){var p=r.getBoundingClientRect();s-=p.top+parseInt(w(r,"border-top-width")),a-=p.left+parseInt(w(r,"border-left-width")),l=s+o.height,d=a+o.width;break}while(r=r.parentNode);if(n&&i!==window){var f=ae(r||i),g=f&&f.a,b=f&&f.d;f&&(s/=b,a/=g,c/=g,u/=b,l=s+u,d=a+c)}return{top:s,left:a,bottom:l,right:d,width:c,height:u}}}function rr(i,t,e){for(var n=kt(i,!0),r=G(i)[t];n;){var o=G(n)[e],s=void 0;if(s=r>=o,!s)return n;if(n===_t())break;n=kt(n,!1)}return!1}function le(i,t,e,n){for(var r=0,o=0,s=i.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==x.ghost&&(n||s[o]!==x.dragged)&&Et(s[o],e.draggable,i,!1)){if(r===t)return s[o];r++}o++}return null}function Zi(i,t){for(var e=i.lastElementChild;e&&(e===x.ghost||w(e,"display")==="none"||t&&!ze(e,t));)e=e.previousElementSibling;return e||null}function $t(i,t){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==x.clone&&(!t||ze(i,t))&&e++;return e}function or(i){var t=0,e=0,n=_t();if(i)do{var r=ae(i),o=r.a,s=r.d;t+=i.scrollLeft*o,e+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[t,e]}function ys(i,t){for(var e in i)if(i.hasOwnProperty(e)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===i[e][n])return Number(e)}return-1}function kt(i,t){if(!i||!i.getBoundingClientRect)return _t();var e=i,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=w(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return _t();if(n||t)return e;n=!0}}while(e=e.parentNode);return _t()}function bs(i,t){if(i&&t)for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function qi(i,t){return Math.round(i.top)===Math.round(t.top)&&Math.round(i.left)===Math.round(t.left)&&Math.round(i.height)===Math.round(t.height)&&Math.round(i.width)===Math.round(t.width)}var Te;function sr(i,t){return function(){if(!Te){var e=arguments,n=this;e.length===1?i.call(n,e[0]):i.apply(n,e),Te=setTimeout(function(){Te=void 0},t)}}}function vs(){clearTimeout(Te),Te=void 0}function ar(i,t,e){i.scrollLeft+=t,i.scrollTop+=e}function lr(i){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}function dr(i,t,e){var n={};return Array.from(i.children).forEach(function(r){var o,s,a,l;if(!(!Et(r,t.draggable,i,!1)||r.animated||r===e)){var d=G(r);n.left=Math.min((o=n.left)!==null&&o!==void 0?o:1/0,d.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,d.top),n.right=Math.max((a=n.right)!==null&&a!==void 0?a:-1/0,d.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,d.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var pt="Sortable"+new Date().getTime();function ws(){var i=[],t;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(w(r,"display")==="none"||r===x.ghost)){i.push({target:r,rect:G(r)});var o=At({},i[i.length-1].rect);if(r.thisAnimationDuration){var s=ae(r,!0);s&&(o.top-=s.f,o.left-=s.e)}r.fromRect=o}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ys(i,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var o=!1,s=0;i.forEach(function(a){var l=0,d=a.target,u=d.fromRect,c=G(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,b=ae(d,!0);b&&(c.top-=b.f,c.left-=b.e),d.toRect=c,d.thisAnimationDuration&&qi(p,c)&&!qi(u,c)&&(g.top-c.top)/(g.left-c.left)===(u.top-c.top)/(u.left-c.left)&&(l=$s(g,p,f,r.options)),qi(c,u)||(d.prevFromRect=u,d.prevToRect=c,l||(l=r.options.animation),r.animate(d,g,c,l)),l&&(o=!0,s=Math.max(s,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),i=[]},animate:function(n,r,o,s){if(s){w(n,"transition",""),w(n,"transform","");var a=ae(this.el),l=a&&a.a,d=a&&a.d,u=(r.left-o.left)/(l||1),c=(r.top-o.top)/(d||1);n.animatingX=!!u,n.animatingY=!!c,w(n,"transform","translate3d("+u+"px,"+c+"px,0)"),this.forRepaintDummy=xs(n),w(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),w(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){w(n,"transition",""),w(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function xs(i){return i.offsetWidth}function $s(i,t,e,n){return Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*n.animation}var de=[],Xi={initializeByDefault:!0},De={mount:function(t){for(var e in Xi)Xi.hasOwnProperty(e)&&!(e in t)&&(t[e]=Xi[e]);de.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),de.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=t+"Global";de.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][o]&&e[s.pluginName][o](At({sortable:e},n)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](At({sortable:e},n)))})},initializePlugins:function(t,e,n,r){de.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,e,t.options);d.sortable=t,d.options=t.options,t[l]=d,Lt(n,d.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);typeof s<"u"&&(t.options[o]=s)}},getEventProperties:function(t,e){var n={};return de.forEach(function(r){typeof r.eventProperties=="function"&&Lt(n,r.eventProperties.call(e[r.pluginName],t))}),n},modifyOption:function(t,e,n){var r;return de.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],n))}),r}};function Es(i){var t=i.sortable,e=i.rootEl,n=i.name,r=i.targetEl,o=i.cloneEl,s=i.toEl,a=i.fromEl,l=i.oldIndex,d=i.newIndex,u=i.oldDraggableIndex,c=i.newDraggableIndex,p=i.originalEvent,f=i.putSortable,g=i.extraEventProperties;if(t=t||e&&e[pt],!!t){var b,k=t.options,et="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Rt&&!_e?b=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(n,!0,!0)),b.to=s||e,b.from=a||e,b.item=r||e,b.clone=o,b.oldIndex=l,b.newIndex=d,b.oldDraggableIndex=u,b.newDraggableIndex=c,b.originalEvent=p,b.pullMode=f?f.lastPutMode:void 0;var z=At(At({},g),De.getEventProperties(n,t));for(var ut in z)b[ut]=z[ut];e&&e.dispatchEvent(b),k[et]&&k[et].call(t,b)}}var Ss=["evt"],ft=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,o=gs(n,Ss);De.pluginEvent.bind(x)(t,e,At({dragEl:h,parentEl:j,ghostEl:$,rootEl:V,nextEl:Jt,lastDownEl:Ze,cloneEl:U,cloneHidden:Vt,dragStarted:Le,putSortable:ot,activeSortable:x.active,originalEvent:r,oldIndex:ce,oldDraggableIndex:Pe,newIndex:vt,newDraggableIndex:Bt,hideGhostForTarget:mr,unhideGhostForTarget:yr,cloneNowHidden:function(){Vt=!0},cloneNowShown:function(){Vt=!1},dispatchSortableEvent:function(a){ct({sortable:e,name:a,originalEvent:r})}},o))};function ct(i){Es(At({putSortable:ot,cloneEl:U,targetEl:h,rootEl:V,oldIndex:ce,oldDraggableIndex:Pe,newIndex:vt,newDraggableIndex:Bt},i))}var h,j,$,V,Jt,Ze,U,Vt,ce,vt,Pe,Bt,qe,ot,ue=!1,Xe=!1,Ye=[],Kt,St,Yi,Wi,cr,ur,Le,he,Oe,Re=!1,We=!1,Ge,lt,Gi=[],Ji=!1,Je=[],Ke=typeof document<"u",Qe=zi,hr=_e||Rt?"cssFloat":"float",As=Ke&&!Qn&&!zi&&"draggable"in document.createElement("div"),pr=function(){if(Ke){if(Rt)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),fr=function(t,e){var n=w(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=le(t,0,e),s=le(t,1,e),a=o&&w(o),l=s&&w(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+G(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+G(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=r&&n[hr]==="none"||s&&n[hr]==="none"&&d+u>r)?"vertical":"horizontal"},_s=function(t,e,n){var r=n?t.left:t.top,o=n?t.right:t.bottom,s=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,d=n?e.width:e.height;return r===a||o===l||r+s/2===a+d/2},Cs=function(t,e){var n;return Ye.some(function(r){var o=r[pt].options.emptyInsertThreshold;if(!(!o||Zi(r))){var s=G(r),a=t>=s.left-o&&t<=s.right+o,l=e>=s.top-o&&e<=s.bottom+o;if(a&&l)return n=r}}),n},gr=function(t){function e(o,s){return function(a,l,d,u){var c=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(s||c))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return e(o(a,l,d,u),s)(a,l,d,u);var p=(s?a:l).options.group.name;return o===!0||typeof o=="string"&&o===p||o.join&&o.indexOf(p)>-1}}var n={},r=t.group;(!r||je(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},mr=function(){!pr&&$&&w($,"display","none")},yr=function(){!pr&&$&&w($,"display","")};Ke&&!Qn&&document.addEventListener("click",function(i){if(Xe)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),Xe=!1,!1},!0);var Qt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=Cs(t.clientX,t.clientY);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[pt]._onDragOver(n)}}},Ts=function(t){h&&h.parentNode[pt]._isOutsideThisEl(t.target)};function x(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=Lt({},t),i[pt]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return fr(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.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:x.supportPointer!==!1&&"PointerEvent"in window&&(!Ce||zi),emptyInsertThreshold:5};De.initializePlugins(this,i,e);for(var n in e)!(n in t)&&(t[n]=e[n]);gr(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:As,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(i,"pointerdown",this._onTapStart):(C(i,"mousedown",this._onTapStart),C(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(i,"dragover",this),C(i,"dragenter",this)),Ye.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Lt(this,ws())}x.prototype={constructor:x,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(he=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,o=r.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,u=r.filter;if(Ns(n),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ce&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Et(l,r.draggable,n,!1),!(l&&l.animated)&&Ze!==l)){if(ce=$t(l),Pe=$t(l,r.draggable),typeof u=="function"){if(u.call(this,t,l,this)){ct({sortable:e,rootEl:d,name:"filter",targetEl:l,toEl:n,fromEl:n}),ft("filter",e,{evt:t}),o&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=Et(d,c.trim(),n,!1),c)return ct({sortable:e,rootEl:c,name:"filter",targetEl:l,fromEl:n,toEl:n}),ft("filter",e,{evt:t}),!0}),u)){o&&t.preventDefault();return}r.handle&&!Et(d,r.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var r=this,o=r.el,s=r.options,a=o.ownerDocument,l;if(n&&!h&&n.parentNode===o){var d=G(n);if(V=o,h=n,j=h.parentNode,Jt=h.nextSibling,Ze=n,qe=s.group,x.dragged=h,Kt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},cr=Kt.clientX-d.left,ur=Kt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(ft("delayEnded",r,{evt:t}),x.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Kn&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(t,e),ct({sortable:r,name:"choose",originalEvent:t}),bt(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){nr(h,u.trim(),Ki)}),C(a,"dragover",Qt),C(a,"mousemove",Qt),C(a,"touchmove",Qt),s.supportPointer?(C(a,"pointerup",r._onDrop),!this.nativeDraggable&&C(a,"pointercancel",r._onDrop)):(C(a,"mouseup",r._onDrop),C(a,"touchend",r._onDrop),C(a,"touchcancel",r._onDrop)),Kn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),ft("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(_e||Rt))){if(x.eventCanceled){this._onDrop();return}s.supportPointer?(C(a,"pointerup",r._disableDelayedDrag),C(a,"pointercancel",r._disableDelayedDrag)):(C(a,"mouseup",r._disableDelayedDrag),C(a,"touchend",r._disableDelayedDrag),C(a,"touchcancel",r._disableDelayedDrag)),C(a,"mousemove",r._delayedDragTouchMoveHandler),C(a,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&C(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;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(){h&&Ki(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;A(t,"mouseup",this._disableDelayedDrag),A(t,"touchend",this._disableDelayedDrag),A(t,"touchcancel",this._disableDelayedDrag),A(t,"pointerup",this._disableDelayedDrag),A(t,"pointercancel",this._disableDelayedDrag),A(t,"mousemove",this._delayedDragTouchMoveHandler),A(t,"touchmove",this._delayedDragTouchMoveHandler),A(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):e?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C(V,"dragstart",this._onDragStart));try{document.selection?ei(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(ue=!1,V&&h){ft("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",Ts);var n=this.options;!t&&bt(h,n.dragClass,!1),bt(h,n.ghostClass,!0),x.active=this,t&&this._appendGhost(),ct({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,mr();for(var t=document.elementFromPoint(St.clientX,St.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(St.clientX,St.clientY),t!==e);)e=t;if(h.parentNode[pt]._isOutsideThisEl(t),e)do{if(e[pt]){var n=void 0;if(n=e[pt]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=er(e));yr()}},_onTouchMove:function(t){if(Kt){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,s=$&&ae($,!0),a=$&&s&&s.a,l=$&&s&&s.d,d=Qe&&lt&&or(lt),u=(o.clientX-Kt.clientX+r.x)/(a||1)+(d?d[0]-Gi[0]:0)/(a||1),c=(o.clientY-Kt.clientY+r.y)/(l||1)+(d?d[1]-Gi[1]:0)/(l||1);if(!x.active&&!ue){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if($){s?(s.e+=u-(Yi||0),s.f+=c-(Wi||0)):s={a:1,b:0,c:0,d:1,e:u,f:c};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");w($,"webkitTransform",p),w($,"mozTransform",p),w($,"msTransform",p),w($,"transform",p),Yi=u,Wi=c,St=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!$){var t=this.options.fallbackOnBody?document.body:V,e=G(h,!0,Qe,!0,t),n=this.options;if(Qe){for(lt=t;w(lt,"position")==="static"&&w(lt,"transform")==="none"&&lt!==document;)lt=lt.parentNode;lt!==document.body&&lt!==document.documentElement?(lt===document&&(lt=_t()),e.top+=lt.scrollTop,e.left+=lt.scrollLeft):lt=_t(),Gi=or(lt)}$=h.cloneNode(!0),bt($,n.ghostClass,!1),bt($,n.fallbackClass,!0),bt($,n.dragClass,!0),w($,"transition",""),w($,"transform",""),w($,"box-sizing","border-box"),w($,"margin",0),w($,"top",e.top),w($,"left",e.left),w($,"width",e.width),w($,"height",e.height),w($,"opacity","0.8"),w($,"position",Qe?"absolute":"fixed"),w($,"zIndex","100000"),w($,"pointerEvents","none"),x.ghost=$,t.appendChild($),w($,"transform-origin",cr/parseInt($.style.width)*100+"% "+ur/parseInt($.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,o=n.options;if(ft("dragStart",this,{evt:t}),x.eventCanceled){this._onDrop();return}ft("setupClone",this),x.eventCanceled||(U=lr(h),U.removeAttribute("id"),U.draggable=!1,U.style["will-change"]="",this._hideClone(),bt(U,this.options.chosenClass,!1),x.clone=U),n.cloneId=ei(function(){ft("clone",n),!x.eventCanceled&&(n.options.removeCloneOnHide||V.insertBefore(U,h),n._hideClone(),ct({sortable:n,name:"clone"}))}),!e&&bt(h,o.dragClass,!0),e?(Xe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(A(document,"mouseup",n._onDrop),A(document,"touchend",n._onDrop),A(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,h)),C(document,"drop",n),w(h,"transform","translateZ(0)")),ue=!0,n._dragStartId=ei(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Le=!0,window.getSelection().removeAllRanges(),Ce&&w(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,r,o,s,a=this.options,l=a.group,d=x.active,u=qe===l,c=a.sort,p=ot||d,f,g=this,b=!1;if(Ji)return;function k(wt,te){ft(wt,g,At({evt:t,isOwner:u,axis:f?"vertical":"horizontal",revert:s,dragRect:r,targetRect:o,canSort:c,fromSortable:p,target:n,completed:z,onMove:function(ee,It){return ti(V,e,h,r,ee,G(ee),t,It)},changed:ut},te))}function et(){k("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function z(wt){return k("dragOverCompleted",{insertion:wt}),wt&&(u?d._hideClone():d._showClone(g),g!==p&&(bt(h,ot?ot.options.ghostClass:d.options.ghostClass,!1),bt(h,a.ghostClass,!0)),ot!==g&&g!==x.active?ot=g:g===x.active&&ot&&(ot=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){k("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===e&&!n.animated)&&(he=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(h.parentNode[pt]._isOutsideThisEl(t.target),!wt&&Qt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function ut(){vt=$t(h),Bt=$t(h,a.draggable),ct({sortable:g,name:"change",toEl:e,newIndex:vt,newDraggableIndex:Bt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=Et(n,a.draggable,e,!0),k("dragOver"),x.eventCanceled)return b;if(h.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return z(!1);if(Xe=!1,d&&!a.disabled&&(u?c||(s=j!==V):ot===this||(this.lastPutMode=qe.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,n)==="vertical",r=G(h),k("dragOverValid"),x.eventCanceled)return b;if(s)return j=V,et(),this._hideClone(),k("revert"),x.eventCanceled||(Jt?V.insertBefore(h,Jt):V.appendChild(h)),z(!0);var it=Zi(e,a.draggable);if(!it||Os(t,f,this)&&!it.animated){if(it===h)return z(!1);if(it&&e===t.target&&(n=it),n&&(o=G(n)),ti(V,e,h,r,n,o,t,!!n)!==!1)return et(),it&&it.nextSibling?e.insertBefore(h,it.nextSibling):e.appendChild(h),j=e,ut(),z(!0)}else if(it&&Ls(t,f,this)){var E=le(e,0,a,!0);if(E===h)return z(!1);if(n=E,o=G(n),ti(V,e,h,r,n,o,t,!1)!==!1)return et(),e.insertBefore(h,E),j=e,ut(),z(!0)}else if(n.parentNode===e){o=G(n);var m=0,_,N=h.parentNode!==e,M=!_s(h.animated&&h.toRect||r,n.animated&&n.toRect||o,f),K=f?"top":"left",Q=rr(n,"top","top")||rr(h,"top","top"),B=Q?Q.scrollTop:void 0;he!==n&&(_=o[K],Re=!1,We=!M&&a.invertSwap||N),m=Rs(t,n,o,f,M?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,We,he===n);var I;if(m!==0){var Y=$t(h);do Y-=m,I=j.children[Y];while(I&&(w(I,"display")==="none"||I===$))}if(m===0||I===n)return z(!1);he=n,Oe=m;var gt=n.nextElementSibling,at=!1;at=m===1;var mt=ti(V,e,h,r,n,o,t,at);if(mt!==!1)return(mt===1||mt===-1)&&(at=mt===1),Ji=!0,setTimeout(Ps,30),et(),at&&!gt?e.appendChild(h):n.parentNode.insertBefore(h,at?gt:n),Q&&ar(Q,0,B-Q.scrollTop),j=h.parentNode,_!==void 0&&!We&&(Ge=Math.abs(_-G(n)[K])),ut(),z(!0)}if(e.contains(h))return z(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){A(document,"mousemove",this._onTouchMove),A(document,"touchmove",this._onTouchMove),A(document,"pointermove",this._onTouchMove),A(document,"dragover",Qt),A(document,"mousemove",Qt),A(document,"touchmove",Qt)},_offUpEvents:function(){var t=this.el.ownerDocument;A(t,"mouseup",this._onDrop),A(t,"touchend",this._onDrop),A(t,"pointerup",this._onDrop),A(t,"pointercancel",this._onDrop),A(t,"touchcancel",this._onDrop),A(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(vt=$t(h),Bt=$t(h,n.draggable),ft("drop",this,{evt:t}),j=h&&h.parentNode,vt=$t(h),Bt=$t(h,n.draggable),x.eventCanceled){this._nulling();return}ue=!1,We=!1,Re=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qi(this.cloneId),Qi(this._dragStartId),this.nativeDraggable&&(A(document,"drop",this),A(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ce&&w(document.body,"user-select",""),w(h,"transform",""),t&&(Le&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),$&&$.parentNode&&$.parentNode.removeChild($),(V===j||ot&&ot.lastPutMode!=="clone")&&U&&U.parentNode&&U.parentNode.removeChild(U),h&&(this.nativeDraggable&&A(h,"dragend",this),Ki(h),h.style["will-change"]="",Le&&!ue&&bt(h,ot?ot.options.ghostClass:this.options.ghostClass,!1),bt(h,this.options.chosenClass,!1),ct({sortable:this,name:"unchoose",toEl:j,newIndex:null,newDraggableIndex:null,originalEvent:t}),V!==j?(vt>=0&&(ct({rootEl:j,name:"add",toEl:j,fromEl:V,originalEvent:t}),ct({sortable:this,name:"remove",toEl:j,originalEvent:t}),ct({rootEl:j,name:"sort",toEl:j,fromEl:V,originalEvent:t}),ct({sortable:this,name:"sort",toEl:j,originalEvent:t})),ot&&ot.save()):vt!==ce&&vt>=0&&(ct({sortable:this,name:"update",toEl:j,originalEvent:t}),ct({sortable:this,name:"sort",toEl:j,originalEvent:t})),x.active&&((vt==null||vt===-1)&&(vt=ce,Bt=Pe),ct({sortable:this,name:"end",toEl:j,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ft("nulling",this),V=h=j=$=Jt=U=Ze=Vt=Kt=St=Le=vt=Bt=ce=Pe=he=Oe=ot=qe=x.dragged=x.ghost=x.clone=x.active=null,Je.forEach(function(t){t.checked=!0}),Je.length=Yi=Wi=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Ds(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,r=0,o=n.length,s=this.options;r<o;r++)e=n[r],Et(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||Is(e));return t},sort:function(t,e){var n={},r=this.el;this.toArray().forEach(function(o,s){var a=r.children[s];Et(a,this.options.draggable,r,!1)&&(n[o]=a)},this),e&&this.captureAnimationState(),t.forEach(function(o){n[o]&&(r.removeChild(n[o]),r.appendChild(n[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return Et(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var r=De.modifyOption(this,t,e);typeof r<"u"?n[t]=r:n[t]=e,t==="group"&&gr(n)},destroy:function(){ft("destroy",this);var t=this.el;t[pt]=null,A(t,"mousedown",this._onTapStart),A(t,"touchstart",this._onTapStart),A(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(A(t,"dragover",this),A(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ye.splice(Ye.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Vt){if(ft("hideClone",this),x.eventCanceled)return;w(U,"display","none"),this.options.removeCloneOnHide&&U.parentNode&&U.parentNode.removeChild(U),Vt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Vt){if(ft("showClone",this),x.eventCanceled)return;h.parentNode==V&&!this.options.group.revertClone?V.insertBefore(U,h):Jt?V.insertBefore(U,Jt):V.appendChild(U),this.options.group.revertClone&&this.animate(h,U),w(U,"display",""),Vt=!1}}};function Ds(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function ti(i,t,e,n,r,o,s,a){var l,d=i[pt],u=d.options.onMove,c;return window.CustomEvent&&!Rt&&!_e?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=i,l.dragged=e,l.draggedRect=n,l.related=r||t,l.relatedRect=o||G(t),l.willInsertAfter=a,l.originalEvent=s,i.dispatchEvent(l),u&&(c=u.call(d,l,s)),c}function Ki(i){i.draggable=!1}function Ps(){Ji=!1}function Ls(i,t,e){var n=G(le(e.el,0,e.options,!0)),r=dr(e.el,e.options,$),o=10;return t?i.clientX<r.left-o||i.clientY<n.top&&i.clientX<n.right:i.clientY<r.top-o||i.clientY<n.bottom&&i.clientX<n.left}function Os(i,t,e){var n=G(Zi(e.el,e.options.draggable)),r=dr(e.el,e.options,$),o=10;return t?i.clientX>r.right+o||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>r.bottom+o||i.clientX>n.right&&i.clientY>n.top}function Rs(i,t,e,n,r,o,s,a){var l=n?i.clientY:i.clientX,d=n?e.height:e.width,u=n?e.top:e.left,c=n?e.bottom:e.right,p=!1;if(!s){if(a&&Ge<d*r){if(!Re&&(Oe===1?l>u+d*o/2:l<c-d*o/2)&&(Re=!0),Re)p=!0;else if(Oe===1?l<u+Ge:l>c-Ge)return-Oe}else if(l>u+d*(1-r)/2&&l<c-d*(1-r)/2)return Ms(t)}return p=p||s,p&&(l<u+d*o/2||l>c-d*o/2)?l>u+d/2?1:-1:0}function Ms(i){return $t(h)<$t(i)?1:-1}function Is(i){for(var t=i.tagName+i.className+i.src+i.href+i.textContent,e=t.length,n=0;e--;)n+=t.charCodeAt(e);return n.toString(36)}function Ns(i){Je.length=0;for(var t=i.getElementsByTagName("input"),e=t.length;e--;){var n=t[e];n.checked&&Je.push(n)}}function ei(i){return setTimeout(i,0)}function Qi(i){return clearTimeout(i)}Ke&&C(document,"touchmove",function(i){(x.active||ue)&&i.cancelable&&i.preventDefault()}),x.utils={on:C,off:A,css:w,find:nr,is:function(t,e){return!!Et(t,e,t,!1)},extend:bs,throttle:sr,closest:Et,toggleClass:bt,clone:lr,index:$t,nextTick:ei,cancelNextTick:Qi,detectDirection:fr,getChild:le,expando:pt},x.get=function(i){return i[pt]},x.mount=function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(x.utils=At(At({},x.utils),n.utils)),De.mount(n)})},x.create=function(i,t){return new x(i,t)},x.version=ms;var J=[],Me,tn,en=!1,nn,rn,ii,Ie;function Hs(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return i.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):n.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):(A(document,"pointermove",this._handleFallbackAutoScroll),A(document,"touchmove",this._handleFallbackAutoScroll),A(document,"mousemove",this._handleFallbackAutoScroll)),br(),ni(),vs()},nulling:function(){ii=tn=Me=en=Ie=nn=rn=null,J.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var r=this,o=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(o,s);if(ii=e,n||this.options.forceAutoScrollFallback||_e||Rt||Ce){on(e,this.options,a,n);var l=kt(a,!0);en&&(!Ie||o!==nn||s!==rn)&&(Ie&&br(),Ie=setInterval(function(){var d=kt(document.elementFromPoint(o,s),!0);d!==l&&(l=d,ni()),on(e,r.options,d,n)},10),nn=o,rn=s)}else{if(!this.options.bubbleScroll||kt(a,!0)===_t()){ni();return}on(e,this.options,kt(a,!1),!1)}}},Lt(i,{pluginName:"scroll",initializeByDefault:!0})}function ni(){J.forEach(function(i){clearInterval(i.pid)}),J=[]}function br(){clearInterval(Ie)}var on=sr(function(i,t,e,n){if(t.scroll){var r=(i.touches?i.touches[0]:i).clientX,o=(i.touches?i.touches[0]:i).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=_t(),d=!1,u;tn!==e&&(tn=e,ni(),Me=t.scroll,u=t.scrollFn,Me===!0&&(Me=kt(e,!0)));var c=0,p=Me;do{var f=p,g=G(f),b=g.top,k=g.bottom,et=g.left,z=g.right,ut=g.width,it=g.height,E=void 0,m=void 0,_=f.scrollWidth,N=f.scrollHeight,M=w(f),K=f.scrollLeft,Q=f.scrollTop;f===l?(E=ut<_&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):(E=ut<_&&(M.overflowX==="auto"||M.overflowX==="scroll"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"));var B=E&&(Math.abs(z-r)<=s&&K+ut<_)-(Math.abs(et-r)<=s&&!!K),I=m&&(Math.abs(k-o)<=s&&Q+it<N)-(Math.abs(b-o)<=s&&!!Q);if(!J[c])for(var Y=0;Y<=c;Y++)J[Y]||(J[Y]={});(J[c].vx!=B||J[c].vy!=I||J[c].el!==f)&&(J[c].el=f,J[c].vx=B,J[c].vy=I,clearInterval(J[c].pid),(B!=0||I!=0)&&(d=!0,J[c].pid=setInterval((function(){n&&this.layer===0&&x.active._onTouchMove(ii);var gt=J[this.layer].vy?J[this.layer].vy*a:0,at=J[this.layer].vx?J[this.layer].vx*a:0;typeof u=="function"&&u.call(x.dragged.parentNode[pt],at,gt,i,ii,J[this.layer].el)!=="continue"||ar(J[this.layer].el,at,gt)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&p!==l&&(p=kt(p,!1)));en=d}},30),vr=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var d=n||o;a();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(u.clientX,u.clientY);l(),d&&!d.el.contains(c)&&(s("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function sn(){}sn.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=le(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:vr},Lt(sn,{pluginName:"revertOnSpill"});function an(){}an.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,r=n||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:vr},Lt(an,{pluginName:"removeOnSpill"}),x.mount(new Hs),x.mount(an,sn);const ks=i=>{const t=i.item;let e=Array.prototype.slice.call(t.parentNode.childNodes);return e=e.filter(n=>n.nodeType!=Node.ELEMENT_NODE||!n.classList.contains("sortable-fallback")),e},Vs=(i,t,e,n,r,o)=>{const a=i.item.parentNode;for(const b of e)a.appendChild(b);if(i.oldIndex==i.newIndex)return;const l=n.getArray(),d=i.item.querySelector("eox-layercontrol-layer").layer.get(r),u=l.find(b=>b.get(r)===d),c=o.dataset.layer,p=l.find(b=>b.get(r)==c);let f,g;for(f=0;f<l.length;f++)if(l[f]==u){n.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?n.insertAt(g,u):n.insertAt(g+1,u);break}t.requestUpdate()};function Bs(i,t,e,n){let r=[],o=null;i._sortable=x.create(i,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>r=ks(s),onMove:s=>{o=s.related},onEnd:s=>Vs(s,n,r,t,e,o)})}function Us(i,t,e,n){const r=i.getArray();let o=!1;r.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),o=!0),s.get(e)||(s.set(e,`layer ${a}`),o=!0),o&&n.requestUpdate()})}function ln(i,t,e){let n=[];const r=(o,s,a)=>{n=[...n,...o.filter(d=>d.get(s)===a)];const l=o.filter(d=>d.getLayers);return l.length>0&&l.forEach(d=>r(d.getLayers().getArray(),s,a)),n};return r(i,t,e),n}function Fs(i,t,e){if(!i||!t)return!1;if(!wr(i,e))return!0;const n=i.get("minZoom"),r=i.get("maxZoom"),o=t.getView().getZoom();return o>n&&o<r}function wr(i,t){const e=i.get("minZoom"),n=i.get("maxZoom");return!!(t&&(e!==-1/0||n!==1/0))}function js(i,t){var r,o,s;return!i||!t?void 0:i.getLayers?"group":((s=(r=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:r.ol_uid)==null?void 0:s.includes(i.getSource?(o=i.getSource())==null?void 0:o.ol_uid:void 0))?"draw":i.declutter_!==void 0?"vector":"raster"}const zs=(i,t,e)=>{let n=t;return e.layer.getSource().getTileUrlFunction()&&(n||(n=e.layer.getSource().getTileUrlFunction()),e.layer.getSource().setTileUrlFunction((...r)=>hs(n(...r),i)),e.layer.getSource().setKey(new Date)),n};function Zs(i,t,e){const n="updateStyleVariables"in t,r="setStyle"in t,o=n?t.style_:e.style;let s=o==null?void 0:o.variables;if(s){const a=dn(i);if(o.variables={...s,...a},n)t.updateStyleVariables(a);else if(r){const l=qs(o);t.setStyle(l)}}}const dn=i=>{const t={};for(const e in i)if(typeof i[e]=="object"&&i[e]!==null){const n=dn(i[e]);for(const r in n)t[r]=n==null?void 0:n[r]}else t[e]=i==null?void 0:i[e];return t};function qs(i){let t=i;if("variables"in i){let e=JSON.stringify(i);const{variables:n}=i;for(const r in n)typeof n[r]=="number"?e=e.replaceAll(`["var","${r}"]`,n[r]):e=e.replaceAll(`["var","${r}"]`,`"${n[r]}"`);t=JSON.parse(e)}return t}const Xs=(i,t)=>{if(!i)return;let e;const n=dn(t);return Array.isArray(i)&&i.length?(e=i.find(r=>{const o=r.boundTo.key,s=r.boundTo.value;return n[o]==s}),e||(e=i)):e=i,Array.isArray(e)||(e=[e]),e.map(r=>{var o;return!("domainProperties"in r)||"domain"in r?{...r}:(o=Object.keys(r))==null?void 0:o.reduce((s,a)=>(a==="domainProperties"?s.domain=r[a].map(l=>n[l]):s[a]=r[a],s),{})})};function xr(i,t){var n;let e={};for(const r in i){const o=i[r].type;if(o&&o!=="object")e[r]=o==="number"?Number(t[r]):t[r];else if(typeof i[r]=="object"&&((n=i[r])!=null&&n.properties)){const s=xr(i[r].properties,t);Object.keys(s).length>0&&(e[r]=s)}}return e}function Ys(i,t){var o,s,a,l,d;if(!t)return null;let e={},n="updateStyleVariables"in i?(o=i.style_)==null?void 0:o.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&n)e=n;else if((l=(a=i.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const u=new URL(i.getSource().getTileUrlFunction()([0,0,0]));e=Object.fromEntries(u.searchParams.entries())}else return null;const r=xr(((d=t.schema)==null?void 0:d.properties)||t.schema,e);return Object.keys(r).length?r:null}const Ws=(i,t)=>i==null?void 0:i.filter(e=>["remove","sort"].filter(n=>t!=null&&t.get("layerControlDisable")?n!=="sort":!0).includes(e)),Gs=(i,t)=>i==null?void 0:i.filter(e=>{let n=!0;return["remove","sort"].includes(e)&&(n=!1),e==="info"&&(n=t.get("description")),e==="config"&&(n=t.get("layerConfig")),e==="datetime"&&(n=t.get("layerDatetime")),e==="legend"&&(n=t.get("layerLegend")),n}),Js=(i,t)=>v`
46
+ <button slot="${i}-icon" class="icon">${t?i:L}</button>
47
+ `,Ks=i=>v`
48
48
  <button
49
49
  class="remove-icon icon"
50
50
  @click=${()=>{const{layer:t}=i;t==null||t.set("layerControlOptional",!0),t==null||t.setVisible(!1),i.dispatchEvent(new CustomEvent("changed",{detail:t,bubbles:!0}))}}
51
51
  >
52
- ${i.unstyled?"x":O}
52
+ ${i.unstyled?"x":L}
53
53
  </button>
54
- `,Qs=i=>x`
54
+ `,Qs=i=>v`
55
55
  <span class="button sort-icon icon drag-handle">
56
- ${i?"═":O}
56
+ ${i?"═":L}
57
57
  </span>
58
- `,Er=i=>{var e;const t=["layerControlHide","layerControlOptional"];return(e=i==null?void 0:i.getArray())==null?void 0:e.filter(n=>t.every(r=>!n.get(r)))};/**
58
+ `,$r=i=>{var e;const t=["layerControlHide","layerControlOptional"];return(e=i==null?void 0:i.getArray())==null?void 0:e.filter(n=>t.every(r=>!n.get(r)))};/**
59
59
  * @license
60
60
  * Copyright 2020 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */const $r=Hi(class extends Vi{constructor(i){if(super(i),i.type!==Ht.PROPERTY&&i.type!==Ht.ATTRIBUTE&&i.type!==Ht.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!fo(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[t]){if(t===xt||t===O)return t;const e=i.element,n=i.name;if(i.type===Ht.PROPERTY){if(t===e[n])return xt}else if(i.type===Ht.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(n))return xt}else if(i.type===Ht.ATTRIBUTE&&e.getAttribute(n)===t+"")return xt;return Un(i),t}});/**
62
+ */const Er=Hi(class extends ki{constructor(i){if(super(i),i.type!==Ht.PROPERTY&&i.type!==Ht.ATTRIBUTE&&i.type!==Ht.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!fo(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[t]){if(t===xt||t===L)return t;const e=i.element,n=i.name;if(i.type===Ht.PROPERTY){if(t===e[n])return xt}else if(i.type===Ht.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(n))return xt}else if(i.type===Ht.ATTRIBUTE&&e.getAttribute(n)===t+"")return xt;return Un(i),t}});/**
63
63
  * @license
64
64
  * Copyright 2017 Google LLC
65
65
  * SPDX-License-Identifier: BSD-3-Clause
66
- */class cn extends Vi{constructor(t){if(super(t),this.it=O,t.type!==Ht.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===O||t==null)return this._t=void 0,this.it=t;if(t===xt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const ta=Hi(cn);/**
66
+ */class cn extends ki{constructor(t){if(super(t),this.it=L,t.type!==Ht.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===L||t==null)return this._t=void 0,this.it=t;if(t===xt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const ta=Hi(cn);/**
67
67
  * @license
68
68
  * Copyright 2021 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */function*ni(i,t){if(i!==void 0){let e=0;for(const n of i)yield t(n,e++)}}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sr(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var un,Ar;function ea(){if(Ar)return un;Ar=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,d=typeof self=="object"&&self&&self.Object===Object&&self,u=l||d||Function("return this")(),c=Object.prototype,p=c.toString,f=Math.max,g=Math.min,b=function(){return u.Date.now()};function V(m,_,N){var M,J,K,B,I,Y,gt=0,at=!1,mt=!1,wt=!0;if(typeof m!="function")throw new TypeError(i);_=$(_)||0,z(N)&&(at=!!N.leading,mt="maxWait"in N,K=mt?f($(N.maxWait)||0,_):K,wt="trailing"in N?!!N.trailing:wt);function Qt(H){var yt=M,jt=J;return M=J=void 0,gt=H,B=m.apply(jt,yt),B}function _i(H){return gt=H,I=setTimeout(ee,_),at?Qt(H):B}function te(H){var yt=H-Y,jt=H-gt,Fr=_-yt;return mt?g(Fr,K-jt):Fr}function It(H){var yt=H-Y,jt=H-gt;return Y===void 0||yt>=_||yt<0||mt&&jt>=K}function ee(){var H=b();if(It(H))return Ci(H);I=setTimeout(ee,te(H))}function Ci(H){return I=void 0,wt&&M?Qt(H):(M=J=void 0,B)}function fn(){I!==void 0&&clearTimeout(I),gt=0,M=Y=J=I=void 0}function Ve(){return I===void 0?B:Ci(b())}function F(){var H=b(),yt=It(H);if(M=arguments,J=this,Y=H,yt){if(I===void 0)return _i(Y);if(mt)return I=setTimeout(ee,_),Qt(Y)}return I===void 0&&(I=setTimeout(ee,_)),B}return F.cancel=fn,F.flush=Ve,F}function et(m,_,N){var M=!0,J=!0;if(typeof m!="function")throw new TypeError(i);return z(N)&&(M="leading"in N?!!N.leading:M,J="trailing"in N?!!N.trailing:J),V(m,_,{leading:M,maxWait:_,trailing:J})}function z(m){var _=typeof m;return!!m&&(_=="object"||_=="function")}function ut(m){return!!m&&typeof m=="object"}function it(m){return typeof m=="symbol"||ut(m)&&p.call(m)==e}function $(m){if(typeof m=="number")return m;if(it(m))return t;if(z(m)){var _=typeof m.valueOf=="function"?m.valueOf():m;m=z(_)?_+"":_}if(typeof m!="string")return m===0?m:+m;m=m.replace(n,"");var N=o.test(m);return N||s.test(m)?a(m.slice(2),N?2:8):r.test(m)?t:+m}return un=et,un}var ia=ea();const _r=Sr(ia);/**
70
+ */function*ri(i,t){if(i!==void 0){let e=0;for(const n of i)yield t(n,e++)}}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sr(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var un,Ar;function ea(){if(Ar)return un;Ar=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,d=typeof self=="object"&&self&&self.Object===Object&&self,u=l||d||Function("return this")(),c=Object.prototype,p=c.toString,f=Math.max,g=Math.min,b=function(){return u.Date.now()};function k(m,_,N){var M,K,Q,B,I,Y,gt=0,at=!1,mt=!1,wt=!0;if(typeof m!="function")throw new TypeError(i);_=E(_)||0,z(N)&&(at=!!N.leading,mt="maxWait"in N,Q=mt?f(E(N.maxWait)||0,_):Q,wt="trailing"in N?!!N.trailing:wt);function te(H){var yt=M,zt=K;return M=K=void 0,gt=H,B=m.apply(zt,yt),B}function _i(H){return gt=H,I=setTimeout(ie,_),at?te(H):B}function ee(H){var yt=H-Y,zt=H-gt,Fr=_-yt;return mt?g(Fr,Q-zt):Fr}function It(H){var yt=H-Y,zt=H-gt;return Y===void 0||yt>=_||yt<0||mt&&zt>=Q}function ie(){var H=b();if(It(H))return Ci(H);I=setTimeout(ie,ee(H))}function Ci(H){return I=void 0,wt&&M?te(H):(M=K=void 0,B)}function fn(){I!==void 0&&clearTimeout(I),gt=0,M=Y=K=I=void 0}function Ve(){return I===void 0?B:Ci(b())}function F(){var H=b(),yt=It(H);if(M=arguments,K=this,Y=H,yt){if(I===void 0)return _i(Y);if(mt)return I=setTimeout(ie,_),te(Y)}return I===void 0&&(I=setTimeout(ie,_)),B}return F.cancel=fn,F.flush=Ve,F}function et(m,_,N){var M=!0,K=!0;if(typeof m!="function")throw new TypeError(i);return z(N)&&(M="leading"in N?!!N.leading:M,K="trailing"in N?!!N.trailing:K),k(m,_,{leading:M,maxWait:_,trailing:K})}function z(m){var _=typeof m;return!!m&&(_=="object"||_=="function")}function ut(m){return!!m&&typeof m=="object"}function it(m){return typeof m=="symbol"||ut(m)&&p.call(m)==e}function E(m){if(typeof m=="number")return m;if(it(m))return t;if(z(m)){var _=typeof m.valueOf=="function"?m.valueOf():m;m=z(_)?_+"":_}if(typeof m!="string")return m===0?m:+m;m=m.replace(n,"");var N=o.test(m);return N||s.test(m)?a(m.slice(2),N?2:8):r.test(m)?t:+m}return un=et,un}var ia=ea();const _r=Sr(ia);/**
71
71
  * @license
72
72
  * Copyright 2018 Google LLC
73
73
  * SPDX-License-Identifier: BSD-3-Clause
74
- */const ri=i=>i??O;class Cr extends dt{constructor(){super();L(this,oi,wn`
74
+ */const Ft=i=>i??L;class Cr extends dt{constructor(){super();O(this,oi,wn`
75
75
  color-legend {
76
76
  --cle-background: transparent;
77
77
  --cle-font-family: inherit;
@@ -80,32 +80,51 @@
80
80
  --cle-letter-spacing-title: inherit;
81
81
  --cle-padding: 0;
82
82
  }
83
- `);L(this,si,"");this.unstyled=!1,this.noShadow=!1,this.layerLegend=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){this.layerLegend.width||new ResizeObserver(()=>{this.offsetWidth!==this.layerLegend.width&&(this.layerLegend.width=this.offsetWidth,this.requestUpdate())}).observe(this.renderRoot.querySelector(".legend-container"))}render(){return customElements.get("color-legend")||console.error("Please import `color-legend-element` in order to use layerLegend"),x`
83
+ `);O(this,si,"");this.unstyled=!1,this.noShadow=!1,this.layerLegend=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){this.layerLegend.width||new ResizeObserver(()=>{this.offsetWidth!==this.layerLegend.width&&(this.layerLegend.width=this.offsetWidth,this.requestUpdate())}).observe(this.renderRoot.querySelector(".legend-container"))}render(){return customElements.get("color-legend")||console.error("Please import `color-legend-element` in order to use layerLegend"),v`
84
84
  <style>
85
85
  ${T(this,oi)}
86
86
  ${!this.unstyled&&T(this,si)}
87
87
  </style>
88
- ${Q(this.layerLegend,()=>x`
88
+ ${W(this.layerLegend,()=>v`
89
89
  <div class="legend-container">
90
90
  <!-- Render color-legend-->
91
- <color-legend
92
- id="${this.layer.get("id")}"
93
- width=${this.layerLegend.width??325}
94
- scaleType="${ri(this.layerLegend.scaleType)}"
95
- markType="${ri(this.layerLegend.markType)}"
96
- titleText="${ri(this.layerLegend.title)}"
97
- .range=${this.layerLegend.range}
98
- .domain=${this.layerLegend.domain}
99
- tickFormat="${ri(this.layerLegend.tickFormat)}"
100
- .ticks=${this.layerLegend.ticks??5}
101
- .tickValues=${this.layerLegend.tickValues}
102
- .marginLeft=${0}
103
- .marginRight=${0}
104
- >
105
- </color-legend>
91
+ ${W(Array.isArray(this.layerLegend),()=>this.layerLegend.map((e,n)=>v`
92
+ <color-legend
93
+ id="${this.layer.get("id")+n}"
94
+ width=${e.width??325}
95
+ scaleType="${Ft(e.scaleType)}"
96
+ markType="${Ft(e.markType)}"
97
+ titleText="${Ft(e.title)}"
98
+ .range=${e.range}
99
+ .domain=${e.domain}
100
+ tickFormat="${Ft(e.tickFormat)}"
101
+ .ticks=${e.ticks??5}
102
+ .tickValues=${e.tickValues}
103
+ .marginLeft=${0}
104
+ .marginRight=${0}
105
+ >
106
+ </color-legend>
107
+ <div></div>
108
+ `),()=>v`
109
+ <color-legend
110
+ id="${this.layer.get("id")}"
111
+ width=${this.layerLegend.width??325}
112
+ scaleType="${Ft(this.layerLegend.scaleType)}"
113
+ markType="${Ft(this.layerLegend.markType)}"
114
+ titleText="${Ft(this.layerLegend.title)}"
115
+ .range=${this.layerLegend.range}
116
+ .domain=${this.layerLegend.domain}
117
+ tickFormat="${Ft(this.layerLegend.tickFormat)}"
118
+ .ticks=${this.layerLegend.ticks??5}
119
+ .tickValues=${this.layerLegend.tickValues}
120
+ .marginLeft=${0}
121
+ .marginRight=${0}
122
+ >
123
+ </color-legend>
124
+ `)}
106
125
  </div>
107
126
  `)}
108
- `}}oi=new WeakMap,si=new WeakMap,Z(Cr,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerLegend:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-legend",Cr);class Tr extends dt{constructor(){super();L(this,Ne);L(this,Mt,{});L(this,he,null);L(this,Ie);L(this,ai,wn`
127
+ `}}oi=new WeakMap,si=new WeakMap,Z(Cr,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerLegend:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-legend",Cr);class Tr extends dt{constructor(){super();O(this,He);O(this,Mt,{});O(this,pe,null);O(this,Ne);O(this,ai,wn`
109
128
  color-legend {
110
129
  --cle-background: transparent;
111
130
  --cle-font-family: inherit;
@@ -113,13 +132,13 @@
113
132
  --cle-font-weight: inherit --cle-letter-spacing: inherit;
114
133
  --cle-letter-spacing-title: inherit;
115
134
  }
116
- `);L(this,li,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.throttleDataChange=_r(q(this,Ne,mn),1e3)}updated(e){if(e.has("layerConfig")){const n=this.layerConfig.type==="style"||this.layerConfig.style?100:1e3;this.throttleDataChange=_r(q(this,Ne,mn),n),this.requestUpdate()}}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){fe(this,he,Ys(this.layer,this.layerConfig)),Object.keys(T(this,Mt)).length!==0&&fe(this,he,T(this,Mt)),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 x`
135
+ `);O(this,li,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.throttleDataChange=_r(q(this,He,mn),1e3)}updated(e){if(e.has("layerConfig")){const n=this.layerConfig.type==="style"||this.layerConfig.style?100:1e3;this.throttleDataChange=_r(q(this,He,mn),n),this.requestUpdate()}}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){ge(this,pe,Ys(this.layer,this.layerConfig)),Object.keys(T(this,Mt)).length!==0&&ge(this,pe,T(this,Mt)),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 v`
117
136
  <style>
118
137
  ${T(this,ai)}
119
138
  ${!this.unstyled&&T(this,li)}
120
139
  </style>
121
- ${Q(this.layerConfig,()=>x`
122
- ${Q(this.layerConfig.legend,()=>x`
140
+ ${W(this.layerConfig,()=>v`
141
+ ${W(this.layerConfig.legend,()=>v`
123
142
  <eox-layercontrol-layer-legend
124
143
  .noShadow=${!0}
125
144
  .unstyled=${this.unstyled}
@@ -130,17 +149,17 @@
130
149
  <!-- Render a JSON form for layer configuration -->
131
150
  <eox-jsonform
132
151
  .schema=${this.layerConfig.schema}
133
- .value=${T(this,he)}
152
+ .value=${T(this,pe)}
134
153
  .options=${e}
135
154
  @change=${this.throttleDataChange}
136
155
  ></eox-jsonform>
137
156
  `)}
138
- `}}Mt=new WeakMap,he=new WeakMap,Ie=new WeakMap,Ne=new WeakSet,mn=function(e){fe(this,Mt,e.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?Zs(T(this,Mt),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):fe(this,Ie,zs(T(this,Mt),T(this,Ie),this)),this.requestUpdate()},ai=new WeakMap,li=new WeakMap,Z(Tr,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",Tr);class Dr extends dt{constructor(){super();L(this,di);L(this,ci,"");L(this,ui,"");this.unstyled=!1,this.noShadow=!1,this.layerDatetime=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return customElements.get("eox-timecontrol")||console.error("Please import @eox/timecontrol in order to use layerDatetime"),x`
157
+ `}}Mt=new WeakMap,pe=new WeakMap,Ne=new WeakMap,He=new WeakSet,mn=function(e){ge(this,Mt,e.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?Zs(T(this,Mt),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):ge(this,Ne,zs(T(this,Mt),T(this,Ne),this)),this.requestUpdate()},ai=new WeakMap,li=new WeakMap,Z(Tr,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",Tr);class Dr extends dt{constructor(){super();O(this,di);O(this,ci,"");O(this,ui,"");this.unstyled=!1,this.noShadow=!1,this.layerDatetime=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return customElements.get("eox-timecontrol")||console.error("Please import @eox/timecontrol in order to use layerDatetime"),v`
139
158
  <style>
140
159
  ${T(this,ci)}
141
160
  ${!this.unstyled&&T(this,ui)}
142
161
  </style>
143
- ${Q(this.layerDatetime,()=>x`
162
+ ${W(this.layerDatetime,()=>v`
144
163
  <!-- Render a Timecontrol for layer date time -->
145
164
  <eox-timecontrol
146
165
  ?unstyled=${this.unstyled}
@@ -156,7 +175,7 @@
156
175
  @stepchange=${q(this,di,zr)}
157
176
  ></eox-timecontrol>
158
177
  `)}
159
- `}}di=new WeakSet,zr=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{bubbles:!0,detail:{datetime:e.detail.currentStep,layer:this.layer}})),this.layerDatetime.currentStep=e.detail.currentStep,this.requestUpdate()},ci=new WeakMap,ui=new WeakMap,Z(Dr,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",Dr);class Pr extends dt{constructor(){super();L(this,He,e=>(this.selectedTab===e||this.toolsAsList)&&"highlighted");L(this,hi,`
178
+ `}}di=new WeakSet,zr=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{bubbles:!0,detail:{datetime:e.detail.currentStep,layer:this.layer}})),this.layerDatetime.currentStep=e.detail.currentStep,this.requestUpdate()},ci=new WeakMap,ui=new WeakMap,Z(Dr,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",Dr);class Pr extends dt{constructor(){super();O(this,ke,e=>(this.selectedTab===e||this.toolsAsList)&&"highlighted");O(this,hi,`
160
179
  .tabbed figure,
161
180
  .listed figure {
162
181
  margin: 0;
@@ -178,7 +197,7 @@
178
197
  .listed .tab.highlighted {
179
198
  display: block;
180
199
  }
181
- `);L(this,pi,`
200
+ `);O(this,pi,`
182
201
  .listed label {
183
202
  display: flex;
184
203
  justify-content: start;
@@ -216,21 +235,21 @@
216
235
  border-radius: 2px;
217
236
  padding: var(--padding-vertical) var(--padding);
218
237
  }
219
- `);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.tabs,n=this.actions,r=n.length+e.length>1;return x`
238
+ `);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.tabs,n=this.actions,r=n.length+e.length>1;return v`
220
239
  <style>
221
240
  ${T(this,hi)}
222
241
  ${!this.unstyled&&T(this,pi)}
223
242
  </style>
224
243
  <div class="${this.toolsAsList?"listed":"tabbed"}">
225
244
  <!-- Navigation for tabs and actions -->
226
- ${Q(r,()=>x`
245
+ ${W(r,()=>v`
227
246
  <nav>
228
- ${Q(!this.toolsAsList,()=>x`
247
+ ${W(!this.toolsAsList,()=>v`
229
248
  <div>
230
249
  <!-- Labels for tabs -->
231
- ${ni(e,(o,s)=>x`
250
+ ${ri(e,(o,s)=>v`
232
251
  <label
233
- class=${T(this,He).call(this,s)}
252
+ class=${T(this,ke).call(this,s)}
234
253
  @click=${()=>this.selectedTab=s}
235
254
  >
236
255
  <!-- Customizable icon for each tab -->
@@ -240,7 +259,7 @@
240
259
  </div>
241
260
  <div>
242
261
  <!-- Icons for actions -->
243
- ${ni(n,o=>x`
262
+ ${ri(n,o=>v`
244
263
  <span>
245
264
  <!-- Customizable icon for each action -->
246
265
  <slot name=${`${o}-icon`}>${o}</slot>
@@ -252,22 +271,22 @@
252
271
  `)}
253
272
  <figure>
254
273
  <!-- Content for each tab -->
255
- ${ni(e,(o,s)=>x`
256
- ${Q(this.toolsAsList,()=>x`
274
+ ${ri(e,(o,s)=>v`
275
+ ${W(this.toolsAsList,()=>v`
257
276
  <label>
258
277
  <!-- Customizable icon for each tab -->
259
278
  <slot name=${`${o}-icon`}>${o}</slot>
260
279
  <span>${o}</span>
261
280
  </label>
262
281
  `)}
263
- <div class="tab ${T(this,He).call(this,s)}">
282
+ <div class="tab ${T(this,ke).call(this,s)}">
264
283
  <!-- Content slot for each tab -->
265
284
  <slot name=${`${o}-content`}>${o}</slot>
266
285
  </div>
267
286
  `)}
268
287
  </figure>
269
288
  </div>
270
- `}}He=new WeakMap,hi=new WeakMap,pi=new WeakMap,Z(Pr,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-tools-items",Pr);const na="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: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}",ra=`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");}`,Or=`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");}`,oa=':root,:host { --range-slider-height: 6px; --range-slider-thumb-size: 15px; --range-slider-thumb-border-radius: 50%; --range-slider-color: #004170; --range-slider-track-color: #d7dcdf; --range-slider-track-border-radius: 0;}input[type="range"] { -webkit-appearance: none; border: none; color: var(--range-slider-color); overflow: hidden; padding-left: 0; margin-left: 7px;}/*webkit*/input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; margin-top: calc( var(--range-slider-height) * 0.5 - var(--range-slider-thumb-size) * 0.5 );}input[type="range"]::-webkit-slider-runnable-track { height: var(--range-slider-height); border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-webkit-slider-thumb { cursor: grab; --clip-edges: 4px; --clip-top: calc( (var(--range-slider-thumb-size) - var(--range-slider-height)) * 0.5 ); --clip-bottom: calc(var(--range-slider-thumb-size) - var(--clip-top)); --clip-further: calc(100% + 1px); --box-fill: calc( -100vmax - var(--range-slider-thumb-size, var(--range-slider-thumb-size)) + 1px ) 0 0 100vmax currentColor; background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--range-slider-height) + 1px); background-color: currentColor; box-shadow: var(--box-fill); border-radius: var(--range-slider-thumb-size, var(--range-slider-thumb-size)); filter: brightness(100%); clip-path: polygon( 100% -1px, var(--clip-edges) -1px, 0 var(--clip-top), -100vmax var(--clip-top), -100vmax var(--clip-bottom), 0 var(--clip-bottom), var(--clip-edges) 100%, var(--clip-further) var(--clip-further) );}/*mozilla*/input[type="range"]::-moz-range-thumb { width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; cursor: grab;}input[type="range"]::-moz-range-track { border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-moz-range-progress { appearance: none; background: currentColor; transition-delay: 30ms;}input[type="range"]::-moz-range-track,input[type="range"]::-moz-range-progress { height: calc(var(--range-slider-height)); border-radius: var(--range-slider-track-border-radius);}/*toolcool slider*/tc-range-slider { --height: var(--range-slider-height); --panel-bg: var(--range-slider-track-color); --panel-bg-hover: var(--range-slider-track-color); --panel-bg-fill: var(--range-slider-color); --panel-bg-border-radius: var(--range-slider-track-border-radius); --pointer-bg: var(--range-slider-color); --pointer-bg-hover: var(--range-slider-color); --pointer-bg-focus: var(--range-slider-color); --pointer-width: var(--range-slider-thumb-size); --pointer-height: var(--range-slider-thumb-size); --pointer-shadow: none; --pointer-shadow-hover: none; --pointer-shadow-focus: none; --pointer-border: none; --pointer-border-hover: 0; --pointer-border-focus: 0; --pointer-border-radius: var(--range-slider-thumb-border-radius);}';class Lr extends dt{constructor(){super();Z(this,"_removeButton",()=>Ks(this));Z(this,"_sortButton",()=>Qs(this.unstyled));Z(this,"_button",e=>Js(e,this.unstyled));Z(this,"_getDefaultTools",()=>{var e;return x`
289
+ `}}ke=new WeakMap,hi=new WeakMap,pi=new WeakMap,Z(Pr,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-tools-items",Pr);const na="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: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}",ra=`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");}`,Lr=`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");}`,oa=':root,:host { --range-slider-height: 6px; --range-slider-thumb-size: 15px; --range-slider-thumb-border-radius: 50%; --range-slider-color: #004170; --range-slider-track-color: #d7dcdf; --range-slider-track-border-radius: 0;}input[type="range"] { -webkit-appearance: none; border: none; color: var(--range-slider-color); overflow: hidden; padding-left: 0; margin-left: 7px;}/*webkit*/input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; margin-top: calc( var(--range-slider-height) * 0.5 - var(--range-slider-thumb-size) * 0.5 );}input[type="range"]::-webkit-slider-runnable-track { height: var(--range-slider-height); border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-webkit-slider-thumb { cursor: grab; --clip-edges: 4px; --clip-top: calc( (var(--range-slider-thumb-size) - var(--range-slider-height)) * 0.5 ); --clip-bottom: calc(var(--range-slider-thumb-size) - var(--clip-top)); --clip-further: calc(100% + 1px); --box-fill: calc( -100vmax - var(--range-slider-thumb-size, var(--range-slider-thumb-size)) + 1px ) 0 0 100vmax currentColor; background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--range-slider-height) + 1px); background-color: currentColor; box-shadow: var(--box-fill); border-radius: var(--range-slider-thumb-size, var(--range-slider-thumb-size)); filter: brightness(100%); clip-path: polygon( 100% -1px, var(--clip-edges) -1px, 0 var(--clip-top), -100vmax var(--clip-top), -100vmax var(--clip-bottom), 0 var(--clip-bottom), var(--clip-edges) 100%, var(--clip-further) var(--clip-further) );}/*mozilla*/input[type="range"]::-moz-range-thumb { width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; cursor: grab;}input[type="range"]::-moz-range-track { border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-moz-range-progress { appearance: none; background: currentColor; transition-delay: 30ms;}input[type="range"]::-moz-range-track,input[type="range"]::-moz-range-progress { height: calc(var(--range-slider-height)); border-radius: var(--range-slider-track-border-radius);}/*toolcool slider*/tc-range-slider { --height: var(--range-slider-height); --panel-bg: var(--range-slider-track-color); --panel-bg-hover: var(--range-slider-track-color); --panel-bg-fill: var(--range-slider-color); --panel-bg-border-radius: var(--range-slider-track-border-radius); --pointer-bg: var(--range-slider-color); --pointer-bg-hover: var(--range-slider-color); --pointer-bg-focus: var(--range-slider-color); --pointer-width: var(--range-slider-thumb-size); --pointer-height: var(--range-slider-thumb-size); --pointer-shadow: none; --pointer-shadow-hover: none; --pointer-shadow-focus: none; --pointer-border: none; --pointer-border-hover: 0; --pointer-border-focus: 0; --pointer-border-radius: var(--range-slider-thumb-border-radius);}';class Or extends dt{constructor(){super();Z(this,"_removeButton",()=>Ks(this));Z(this,"_sortButton",()=>Qs(this.unstyled));Z(this,"_button",e=>Js(e,this.unstyled));Z(this,"_getDefaultTools",()=>{var e;return v`
271
290
  <div slot="info-content">
272
291
  ${ta(this.layer.get("description"))}
273
292
  </div>
@@ -278,13 +297,13 @@
278
297
  min="0"
279
298
  max="1"
280
299
  step="0.01"
281
- value=${$r((e=this.layer)==null?void 0:e.getOpacity())}
300
+ value=${Er((e=this.layer)==null?void 0:e.getOpacity())}
282
301
  @input=${n=>this.layer.setOpacity(parseFloat(n.target.value))}
283
302
  />
284
303
  </div>
285
304
  <div slot="config-content">
286
305
  <!-- Layer configuration -->
287
- ${Q(this.layer.get("layerConfig"),()=>x`
306
+ ${W(this.layer.get("layerConfig"),()=>v`
288
307
  <eox-layercontrol-layerconfig
289
308
  slot="config-content"
290
309
  .layer=${this.layer}
@@ -297,7 +316,7 @@
297
316
  </div>
298
317
  <div slot="datetime-content">
299
318
  <!-- Layer datetime -->
300
- ${Q(this.layer.get("layerDatetime"),()=>x`
319
+ ${W(this.layer.get("layerDatetime"),()=>v`
301
320
  <eox-layercontrol-layer-datetime
302
321
  slot="datetime-content"
303
322
  .noShadow=${!0}
@@ -310,7 +329,7 @@
310
329
  </div>
311
330
  <div slot="legend-content">
312
331
  <!-- Layer legend -->
313
- ${Q(this.layer.get("layerLegend"),()=>x`
332
+ ${W(this.layer.get("layerLegend"),()=>v`
314
333
  <eox-layercontrol-layer-legend
315
334
  slot="legend-content"
316
335
  .noShadow=${!0}
@@ -323,10 +342,10 @@
323
342
  </div>
324
343
  <div slot="remove-icon">${this._removeButton()}</div>
325
344
  <div slot="sort-icon">${this._sortButton()}</div>
326
- `});L(this,fi,"");L(this,gi,`
345
+ `});O(this,fi,"");O(this,gi,`
327
346
  ${na}
328
347
  ${ra}
329
- ${Or}
348
+ ${Lr}
330
349
  ${oa}
331
350
  .drag-handle {
332
351
  cursor: n-resize;
@@ -444,20 +463,20 @@
444
463
  [slot=info-content] * {
445
464
  max-width: 100%;
446
465
  }
447
- `);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const e=Ws(this.tools,this.layer),n=Gs(this.tools,this.layer),r=this[`_${e==null?void 0:e[0]}Button`]?this[`_${e==null?void 0:e[0]}Button`]():O,o=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=e==null?void 0:e.length,a=n==null?void 0:n.length;return x`
466
+ `);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const e=Ws(this.tools,this.layer),n=Gs(this.tools,this.layer),r=this[`_${e==null?void 0:e[0]}Button`]?this[`_${e==null?void 0:e[0]}Button`]():L,o=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=e==null?void 0:e.length,a=n==null?void 0:n.length;return v`
448
467
  <style>
449
468
  ${T(this,fi)}
450
469
  ${!this.unstyled&&T(this,gi)}
451
470
  </style>
452
- ${Q(s+a>0,()=>x`
453
- ${Q(s===1&&a===0,()=>x`
471
+ ${W(s+a>0,()=>v`
472
+ ${W(s===1&&a===0,()=>v`
454
473
  <div class="single-action-container">
455
474
  <div class="single-action">${r}</div>
456
475
  </div>
457
- `,()=>x`
476
+ `,()=>v`
458
477
  <details
459
478
  class="tools"
460
- open=${this.layer.get("layerControlToolsExpand")||O}
479
+ open=${this.layer.get("layerControlToolsExpand")||L}
461
480
  >
462
481
  <summary>
463
482
  <button class="icon ${o}">Tools</button>
@@ -471,15 +490,15 @@
471
490
  .toolsAsList=${this.toolsAsList}
472
491
  >
473
492
  <!-- Rendering tabs and content -->
474
- ${ni(n,d=>this._button(d))}
493
+ ${ri(n,d=>this._button(d))}
475
494
  <!-- Including default tools -->
476
495
  ${this._getDefaultTools()}
477
496
  </eox-layercontrol-tools-items>
478
497
  </details>
479
498
  `)}
480
499
  `)}
481
- `}}fi=new WeakMap,gi=new WeakMap,Z(Lr,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",Lr);const sa=i=>{const t=()=>{const e=Fs(i.layer,i.map,i.showLayerZoomState);let n=!1;!e&&i.currLayerVisibilityBasedOnZoom?(i.currLayerVisibilityBasedOnZoom=!1,n=!0):e&&!i.currLayerVisibilityBasedOnZoom&&(i.currLayerVisibilityBasedOnZoom=!0,n=!0),n&&(i.requestUpdate(),i.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};wr(i.layer,i.showLayerZoomState)&&(t(),i.map.getView().on("change:resolution",()=>t()))},aa=(i,t)=>{const e=t.layer;e.setVisible(i.target.checked),i.target.checked&&e.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(r=>{var o;r.layer!==e&&((o=r.layer)!=null&&o.get("layerControlExclusive"))&&(r.layer.setVisible(!1),r.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:e})),t.requestUpdate()};class Rr extends dt{constructor(){super();L(this,Ct);Z(this,"currLayerVisibilityBasedOnZoom",!0);L(this,mi,"");L(this,yi,`
482
- ${Or}
500
+ `}}fi=new WeakMap,gi=new WeakMap,Z(Or,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",Or);const sa=i=>{const t=()=>{const e=Fs(i.layer,i.map,i.showLayerZoomState);let n=!1;!e&&i.currLayerVisibilityBasedOnZoom?(i.currLayerVisibilityBasedOnZoom=!1,n=!0):e&&!i.currLayerVisibilityBasedOnZoom&&(i.currLayerVisibilityBasedOnZoom=!0,n=!0),n&&(i.requestUpdate(),i.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};wr(i.layer,i.showLayerZoomState)&&(t(),i.map.getView().on("change:resolution",()=>t()))},aa=(i,t)=>{const e=t.layer;e.setVisible(i.target.checked),i.target.checked&&e.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(r=>{var o;r.layer!==e&&((o=r.layer)!=null&&o.get("layerControlExclusive"))&&(r.layer.setVisible(!1),r.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:e})),t.requestUpdate()};class Rr extends dt{constructor(){super();O(this,Ct);Z(this,"currLayerVisibilityBasedOnZoom",!0);O(this,mi,"");O(this,yi,`
501
+ ${Lr}
483
502
  eox-layercontrol-layer {
484
503
  width: 100%;
485
504
  position: relative;
@@ -537,30 +556,30 @@
537
556
  [data-type=draw] .title::before {
538
557
  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");
539
558
  }
540
- `);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){sa(this)}render(){var l;const e=this.layer.getVisible(),n=e?"visible":"",r=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",o=q(this,Ct,ge).call(this,"layerControlDisable")?"disabled":"",s=q(this,Ct,ge).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return x`
559
+ `);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){sa(this)}render(){var l;const e=this.layer.getVisible(),n=e?"visible":"",r=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",o=q(this,Ct,me).call(this,"layerControlDisable")?"disabled":"",s=q(this,Ct,me).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return v`
541
560
  <style>
542
561
  ${T(this,mi)}
543
562
  ${!this.unstyled&&T(this,yi)}
544
563
  </style>
545
- ${Q(this.layer,()=>x`
564
+ ${W(this.layer,()=>v`
546
565
  <!-- Render the layer -->
547
566
  <div class="layer ${n} ${r}">
548
567
  <label class="drag-handle ${o}">
549
568
  <!-- Input element for layer visibility -->
550
569
  <input
551
570
  type=${s}
552
- .checked=${$r(e)}
571
+ .checked=${Er(e)}
553
572
  @click=${q(this,Ct,Zr)}
554
573
  />
555
574
 
556
575
  <!-- Layer title -->
557
576
  <span
558
- class="title ${q(this,Ct,ge).call(this,"color")?"color-swatch":""}"
559
- style="--layer-color: ${q(this,Ct,ge).call(this,"color")}"
577
+ class="title ${q(this,Ct,me).call(this,"color")?"color-swatch":""}"
578
+ style="--layer-color: ${q(this,Ct,me).call(this,"color")}"
560
579
  >
561
- ${q(this,Ct,ge).call(this,this.titleProperty)}
580
+ ${q(this,Ct,me).call(this,this.titleProperty)}
562
581
  </span>
563
- ${Q(a,()=>x`<span class="tools-placeholder"></span>`)}
582
+ ${W(a,()=>v`<span class="tools-placeholder"></span>`)}
564
583
  </label>
565
584
  </div>
566
585
 
@@ -573,7 +592,7 @@
573
592
  .toolsAsList=${this.toolsAsList}
574
593
  ></eox-layercontrol-layer-tools>
575
594
  `)}
576
- `}}Ct=new WeakSet,ge=function(e){var n;return(n=this.layer)==null?void 0:n.get(e)},Zr=function(e){aa(e,this)},mi=new WeakMap,yi=new WeakMap,Z(Rr,"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},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer",Rr);class Mr extends dt{constructor(){super();L(this,bi,"");L(this,vi,`
595
+ `}}Ct=new WeakSet,me=function(e){var n;return(n=this.layer)==null?void 0:n.get(e)},Zr=function(e){aa(e,this)},mi=new WeakMap,yi=new WeakMap,Z(Rr,"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},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer",Rr);class Mr extends dt{constructor(){super();O(this,bi,"");O(this,vi,`
577
596
  details summary {
578
597
  cursor: pointer;
579
598
  display: var(--layer-summary-visibility);
@@ -597,15 +616,15 @@
597
616
  details[data-children-length="0"] summary::before {
598
617
  display: none;
599
618
  }
600
- `);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var r,o;const e=!!((r=this.group)!=null&&r.get("layerControlExpand")),n=(o=Er(this.group.getLayers()))==null?void 0:o.length;return x`
619
+ `);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var r,o;const e=!!((r=this.group)!=null&&r.get("layerControlExpand")),n=(o=$r(this.group.getLayers()))==null?void 0:o.length;return v`
601
620
  <style>
602
621
  ${T(this,bi)}
603
622
  ${!this.unstyled&&T(this,vi)}
604
623
  </style>
605
- ${Q(this.group,()=>x`
624
+ ${W(this.group,()=>v`
606
625
  <!-- Render the details element with the layer control -->
607
626
  <details
608
- open=${e||O}
627
+ open=${e||L}
609
628
  data-children-length=${n}
610
629
  >
611
630
  <summary>
@@ -638,7 +657,7 @@
638
657
  ></eox-layercontrol-layer-list>
639
658
  </details>
640
659
  `)}
641
- `}}bi=new WeakMap,vi=new WeakMap,Z(Mr,"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},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-group",Mr);var hn,Ir;function la(){if(Ir)return hn;Ir=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,d=typeof self=="object"&&self&&self.Object===Object&&self,u=l||d||Function("return this")(),c=Object.prototype,p=c.toString,f=Math.max,g=Math.min,b=function(){return u.Date.now()};function V($,m,_){var N,M,J,K,B,I,Y=0,gt=!1,at=!1,mt=!0;if(typeof $!="function")throw new TypeError(i);m=it(m)||0,et(_)&&(gt=!!_.leading,at="maxWait"in _,J=at?f(it(_.maxWait)||0,m):J,mt="trailing"in _?!!_.trailing:mt);function wt(F){var H=N,yt=M;return N=M=void 0,Y=F,K=$.apply(yt,H),K}function Qt(F){return Y=F,B=setTimeout(It,m),gt?wt(F):K}function _i(F){var H=F-I,yt=F-Y,jt=m-H;return at?g(jt,J-yt):jt}function te(F){var H=F-I,yt=F-Y;return I===void 0||H>=m||H<0||at&&yt>=J}function It(){var F=b();if(te(F))return ee(F);B=setTimeout(It,_i(F))}function ee(F){return B=void 0,mt&&N?wt(F):(N=M=void 0,K)}function Ci(){B!==void 0&&clearTimeout(B),Y=0,N=I=M=B=void 0}function fn(){return B===void 0?K:ee(b())}function Ve(){var F=b(),H=te(F);if(N=arguments,M=this,I=F,H){if(B===void 0)return Qt(I);if(at)return B=setTimeout(It,m),wt(I)}return B===void 0&&(B=setTimeout(It,m)),K}return Ve.cancel=Ci,Ve.flush=fn,Ve}function et($){var m=typeof $;return!!$&&(m=="object"||m=="function")}function z($){return!!$&&typeof $=="object"}function ut($){return typeof $=="symbol"||z($)&&p.call($)==e}function it($){if(typeof $=="number")return $;if(ut($))return t;if(et($)){var m=typeof $.valueOf=="function"?$.valueOf():$;$=et(m)?m+"":m}if(typeof $!="string")return $===0?$:+$;$=$.replace(n,"");var _=o.test($);return _||s.test($)?a($.slice(2),_?2:8):r.test($)?t:+$}return hn=V,hn}var da=la();const ca=Sr(da),ua=i=>{const{layers:t,idProperty:e,titleProperty:n,renderRoot:r}=i,o=ca(()=>{i.requestUpdate(),i.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))},50),s=()=>o();if(t&&(t.hasListener("change:length")&&(t==null||t.un("change:length",s)),t.on("change:length",s),t)){const a=r.querySelector("ul");Us(t,e,n,i),Bs(a,t,e,i)}};class Nr extends dt{constructor(){super();L(this,wi,"");L(this,xi,`
660
+ `}}bi=new WeakMap,vi=new WeakMap,Z(Mr,"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},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-group",Mr);var hn,Ir;function la(){if(Ir)return hn;Ir=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,d=typeof self=="object"&&self&&self.Object===Object&&self,u=l||d||Function("return this")(),c=Object.prototype,p=c.toString,f=Math.max,g=Math.min,b=function(){return u.Date.now()};function k(E,m,_){var N,M,K,Q,B,I,Y=0,gt=!1,at=!1,mt=!0;if(typeof E!="function")throw new TypeError(i);m=it(m)||0,et(_)&&(gt=!!_.leading,at="maxWait"in _,K=at?f(it(_.maxWait)||0,m):K,mt="trailing"in _?!!_.trailing:mt);function wt(F){var H=N,yt=M;return N=M=void 0,Y=F,Q=E.apply(yt,H),Q}function te(F){return Y=F,B=setTimeout(It,m),gt?wt(F):Q}function _i(F){var H=F-I,yt=F-Y,zt=m-H;return at?g(zt,K-yt):zt}function ee(F){var H=F-I,yt=F-Y;return I===void 0||H>=m||H<0||at&&yt>=K}function It(){var F=b();if(ee(F))return ie(F);B=setTimeout(It,_i(F))}function ie(F){return B=void 0,mt&&N?wt(F):(N=M=void 0,Q)}function Ci(){B!==void 0&&clearTimeout(B),Y=0,N=I=M=B=void 0}function fn(){return B===void 0?Q:ie(b())}function Ve(){var F=b(),H=ee(F);if(N=arguments,M=this,I=F,H){if(B===void 0)return te(I);if(at)return B=setTimeout(It,m),wt(I)}return B===void 0&&(B=setTimeout(It,m)),Q}return Ve.cancel=Ci,Ve.flush=fn,Ve}function et(E){var m=typeof E;return!!E&&(m=="object"||m=="function")}function z(E){return!!E&&typeof E=="object"}function ut(E){return typeof E=="symbol"||z(E)&&p.call(E)==e}function it(E){if(typeof E=="number")return E;if(ut(E))return t;if(et(E)){var m=typeof E.valueOf=="function"?E.valueOf():E;E=et(m)?m+"":m}if(typeof E!="string")return E===0?E:+E;E=E.replace(n,"");var _=o.test(E);return _||s.test(E)?a(E.slice(2),_?2:8):r.test(E)?t:+E}return hn=k,hn}var da=la();const ca=Sr(da),ua=i=>{const{layers:t,idProperty:e,titleProperty:n,renderRoot:r}=i,o=ca(()=>{i.requestUpdate(),i.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))},50),s=()=>o();if(t&&(t.hasListener("change:length")&&(t==null||t.un("change:length",s)),t.on("change:length",s),t)){const a=r.querySelector("ul");Us(t,e,n,i),Bs(a,t,e,i)}};class Nr extends dt{constructor(){super();O(this,wi,"");O(this,xi,`
642
661
  ul {
643
662
  padding: 0;
644
663
  margin: 0;
@@ -665,19 +684,19 @@
665
684
  }
666
685
  li.sortable-ghost {
667
686
  }
668
- `);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,this.toolsAsList=!1}firstUpdated(){ua(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.layers?Er(this.layers).reverse():[];return x`
687
+ `);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,this.toolsAsList=!1}firstUpdated(){ua(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.layers?$r(this.layers).reverse():[];return v`
669
688
  <style>
670
689
  ${T(this,wi)}
671
690
  ${!this.unstyled&&T(this,xi)}
672
691
  </style>
673
692
  <ul>
674
- ${Q(this.layers,()=>x`
675
- ${yo(e,n=>n,n=>x`
693
+ ${W(this.layers,()=>v`
694
+ ${yo(e,n=>n,n=>v`
676
695
  <li
677
696
  data-layer="${n.get(this.idProperty)}"
678
697
  data-type="${js(n,this.map)}"
679
698
  >
680
- ${n.getLayers?x`
699
+ ${n.getLayers?v`
681
700
  <eox-layercontrol-layer-group
682
701
  .noShadow=${!0}
683
702
  .group=${n}
@@ -691,7 +710,7 @@
691
710
  @changed=${()=>this.requestUpdate()}
692
711
  >
693
712
  </eox-layercontrol-layer-group>
694
- `:x`
713
+ `:v`
695
714
  <eox-layercontrol-layer
696
715
  .noShadow=${!0}
697
716
  .layer=${n}
@@ -708,7 +727,7 @@
708
727
  `)}
709
728
  `)}
710
729
  </ul>
711
- `}}wi=new WeakMap,xi=new WeakMap,Z(Nr,"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},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-list",Nr);const ha=i=>{const t=i.querySelector("select[name=optional]"),e=t?t.value:null,n=ln(i.layers.getArray(),"layerControlOptional",!0).find(r=>(r.get(i.idProperty)||r.ol_uid)===e);n==null||n.set("layerControlOptional",!1),n==null||n.setVisible(!0),i.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),i.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(r=>r.requestUpdate()),i.requestUpdate()};class Hr extends dt{constructor(){super();L(this,Ei);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=ln(this.layers.getArray(),"layerControlOptional",!0);return x`
730
+ `}}wi=new WeakMap,xi=new WeakMap,Z(Nr,"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},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-list",Nr);const ha=i=>{const t=i.querySelector("select[name=optional]"),e=t?t.value:null,n=ln(i.layers.getArray(),"layerControlOptional",!0).find(r=>(r.get(i.idProperty)||r.ol_uid)===e);n==null||n.set("layerControlOptional",!1),n==null||n.setVisible(!0),i.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),i.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(r=>r.requestUpdate()),i.requestUpdate()};class Hr extends dt{constructor(){super();O(this,$i);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=ln(this.layers.getArray(),"layerControlOptional",!0);return v`
712
731
  <!-- Label for the dropdown -->
713
732
  <label for="optional">Optional layers</label>
714
733
 
@@ -720,19 +739,19 @@
720
739
  </option>
721
740
 
722
741
  <!-- Mapping through filtered layers list to generate dropdown options -->
723
- ${e.map(n=>{const r=n.get(this.idProperty)||n.ol_uid,o=n.get(this.titleProperty),s=`layer ${n.get(this.idProperty)}`;return x` <option value="${r}">${o||s}</option> `})}
742
+ ${e.map(n=>{const r=n.get(this.idProperty)||n.ol_uid,o=n.get(this.titleProperty),s=`layer ${n.get(this.idProperty)}`;return v` <option value="${r}">${o||s}</option> `})}
724
743
  </select>
725
744
 
726
745
  <!-- Button to handle adding layers -->
727
- <button @click="${q(this,Ei,qr)}">add</button>
728
- `}}Ei=new WeakSet,qr=function(){ha(this)},Z(Hr,"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",Hr);const pa=(i,t)=>{t.jsonInput=i.target.value,t.requestUpdate()},Vr=i=>{const t=JSON.parse(`{"data":${Gn(i.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(e=>{i.eoxMap.addOrUpdateLayer(e)}):i.eoxMap.addOrUpdateLayer(t.data),i.jsonInput=null,i.requestUpdate()},fa=(i,t)=>{t.urlInput=i.target.value,t.requestUpdate()};async function ga(i){const t=i.urlInput;if(i.wmsCapabilities=null,i.searchLoad=!0,i.requestUpdate(),!t)return!1;if(ji(t)==="XYZ")return{Name:t};try{const e=await ds(t);i.wmsCapabilities=e}catch{}finally{i.searchLoad=!1,i.requestUpdate()}return!1}const ma=(i,t)=>{const{Name:e}=i,n=ji(t.urlInput)||"XYZ",r={type:"Tile",properties:{id:e,title:e},source:{type:n,url:t.urlInput,params:{LAYERS:e}}};t.jsonInput=JSON.stringify(r)},ya=(i,t)=>{t.open=i||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class kr extends dt{constructor(){super();L(this,st);Z(this,"urlInput",null);Z(this,"jsonInput",null);Z(this,"open",null);Z(this,"searchLoad",!1);Z(this,"wmsCapabilities",null);L(this,$i,`
746
+ <button @click="${q(this,$i,qr)}">add</button>
747
+ `}}$i=new WeakSet,qr=function(){ha(this)},Z(Hr,"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",Hr);const pa=(i,t)=>{t.jsonInput=i.target.value,t.requestUpdate()},kr=i=>{const t=JSON.parse(`{"data":${Gn(i.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(e=>{i.eoxMap.addOrUpdateLayer(e)}):i.eoxMap.addOrUpdateLayer(t.data),i.jsonInput=null,i.requestUpdate()},fa=(i,t)=>{t.urlInput=i.target.value,t.requestUpdate()};async function ga(i){const t=i.urlInput;if(i.wmsCapabilities=null,i.searchLoad=!0,i.requestUpdate(),!t)return!1;if(ji(t)==="XYZ")return{Name:t};try{const e=await ds(t);i.wmsCapabilities=e}catch{}finally{i.searchLoad=!1,i.requestUpdate()}return!1}const ma=(i,t)=>{const{Name:e}=i,n=ji(t.urlInput)||"XYZ",r={type:"Tile",properties:{id:e,title:e},source:{type:n,url:t.urlInput,params:{LAYERS:e}}};t.jsonInput=JSON.stringify(r)},ya=(i,t)=>{t.open=i||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class Vr extends dt{constructor(){super();O(this,st);Z(this,"urlInput",null);Z(this,"jsonInput",null);Z(this,"open",null);Z(this,"searchLoad",!1);Z(this,"wmsCapabilities",null);O(this,Ei,`
729
748
  .eox-add-layer-main .open {
730
749
  position: relative;
731
750
  }
732
751
  .eox-add-layer-main .close {
733
752
  display: none;
734
753
  }
735
- `);L(this,Si,`
754
+ `);O(this,Si,`
736
755
  .eox-add {
737
756
  background: #f0f2f5;
738
757
  border-top: 1px solid #0041701a;
@@ -865,9 +884,9 @@
865
884
  font-weight: bold;
866
885
  display: inline-block;
867
886
  }
868
- `);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.open?"open":"close",n=this.open==="url",r=this.open==="json",o=!cs(this.urlInput)||this.searchLoad?!0:O;return x`
887
+ `);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.open?"open":"close",n=this.open==="url",r=this.open==="json",o=!cs(this.urlInput)||this.searchLoad?!0:L;return v`
869
888
  <style>
870
- ${T(this,$i)}
889
+ ${T(this,Ei)}
871
890
  ${!this.unstyled&&T(this,Si)}
872
891
  </style>
873
892
  <div class="eox-add-layer-main">
@@ -897,7 +916,7 @@
897
916
  </button>
898
917
  </div>
899
918
  <div class="eox-add ${e}">
900
- ${n?x`
919
+ ${n?v`
901
920
  <!-- Input field for URL -->
902
921
  <div class="eox-add-layer-col">
903
922
  <input
@@ -919,8 +938,8 @@
919
938
  </div>
920
939
 
921
940
  <!-- Display layers for WMS capabilities -->
922
- ${this.wmsCapabilities?x`<ul class="search-lists">
923
- ${this.wmsCapabilities.Capability.Layer.Layer.map(s=>{const a=s.Name;return x`
941
+ ${this.wmsCapabilities?v`<ul class="search-lists">
942
+ ${this.wmsCapabilities.Capability.Layer.Layer.map(s=>{const a=s.Name;return v`
924
943
  <li class="search-list">
925
944
  ${a}
926
945
  <!-- Button to add layer -->
@@ -932,8 +951,8 @@
932
951
  </button>
933
952
  </li>
934
953
  `})}
935
- </ul>`:O}
936
- `:x`
954
+ </ul>`:L}
955
+ `:v`
937
956
  <!-- Textarea for JSON input -->
938
957
  <textarea
939
958
  class="add-layer-input"
@@ -945,7 +964,7 @@
945
964
  <!-- Button to add JSON layer -->
946
965
  <button
947
966
  class="add-layer-icon json-add-layer"
948
- disabled=${us(this.jsonInput)?O:!0}
967
+ disabled=${us(this.jsonInput)?L:!0}
949
968
  @click=${q(this,st,Wr)}
950
969
  >
951
970
  ${this.unstyled?"Add JSON":""}
@@ -953,7 +972,7 @@
953
972
  `}
954
973
  </div>
955
974
  </div>
956
- `}}st=new WeakSet,Xr=function(e){fa(e,this)},Yr=async function(){const e=await ga(this);e&&q(this,st,yn).call(this,e)},yn=function(e){ma(e,this),Vr(this)},Wr=function(){Vr(this)},Gr=function(e){pa(e,this)},Ti=function(e){ya(e,this)},$i=new WeakMap,Si=new WeakMap,Z(kr,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",kr);const ba=(i,t)=>{if(t.requestUpdate(),i.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const e=t.renderRoot.querySelector("eox-layercontrol-optional-list");e==null||e.requestUpdate()}},va=i=>{let t;return typeof i=="string"?t=document.querySelector(i):t=i,t},Br=i=>{const t=va(i.for);return t&&t.map!==i.map&&(i.map=t.map),t};class pn extends dt{constructor(){super();L(this,pe);L(this,Ft);L(this,Ai,`
975
+ `}}st=new WeakSet,Xr=function(e){fa(e,this)},Yr=async function(){const e=await ga(this);e&&q(this,st,yn).call(this,e)},yn=function(e){ma(e,this),kr(this)},Wr=function(){kr(this)},Gr=function(e){pa(e,this)},Ti=function(e){ya(e,this)},Ei=new WeakMap,Si=new WeakMap,Z(Vr,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",Vr);const ba=(i,t)=>{if(t.requestUpdate(),i.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const e=t.renderRoot.querySelector("eox-layercontrol-optional-list");e==null||e.requestUpdate()}},va=i=>{let t;return typeof i=="string"?t=document.querySelector(i):t=i,t},Br=i=>{const t=va(i.for);return t&&t.map!==i.map&&(i.map=t.map),t};class pn extends dt{constructor(){super();O(this,fe);O(this,jt);O(this,Ai,`
957
976
  :host, :root {
958
977
  font-family: Roboto, sans-serif;
959
978
  --padding: 0.5rem;
@@ -974,23 +993,23 @@
974
993
  select {
975
994
  background-color: var(--background-color);
976
995
  }
977
- `);this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","datetime","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride="",this.toolsAsList=!1}firstUpdated(){this.eoxMap=Br(this)}updated(e){e.has("for")&&(this.eoxMap=Br(this))}get eoxMap(){return T(this,Ft)}set eoxMap(e){const n=T(this,Ft);fe(this,Ft,e),this.requestUpdate("eoxMap",n)}render(){var r,o,s;const e=(r=this.map)==null?void 0:r.getLayers().getArray(),n=e&&((o=ln(e,"layerControlOptional",!0))==null?void 0:o.length)>0;return x`
996
+ `);this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","datetime","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride="",this.toolsAsList=!1}firstUpdated(){this.eoxMap=Br(this)}updated(e){e.has("for")&&(this.eoxMap=Br(this))}get eoxMap(){return T(this,jt)}set eoxMap(e){const n=T(this,jt);ge(this,jt,e),this.requestUpdate("eoxMap",n)}render(){var r,o,s;const e=(r=this.map)==null?void 0:r.getLayers().getArray(),n=e&&((o=ln(e,"layerControlOptional",!0))==null?void 0:o.length)>0;return v`
978
997
  <style>
979
998
  ${!this.unstyled&&T(this,Ai)}
980
999
  ${this.styleOverride}
981
1000
  </style>
982
1001
 
983
1002
  <!-- Conditional rendering of add layers component -->
984
- ${Q(this.addExternalLayers&&((s=T(this,Ft))==null?void 0:s.addOrUpdateLayer),()=>x`
1003
+ ${W(this.addExternalLayers&&((s=T(this,jt))==null?void 0:s.addOrUpdateLayer),()=>v`
985
1004
  <eox-layercontrol-add-layers
986
1005
  .noShadow=${!0}
987
- .eoxMap=${T(this,Ft)}
1006
+ .eoxMap=${T(this,jt)}
988
1007
  .unstyled=${this.unstyled}
989
1008
  ></eox-layercontrol-add-layers>
990
1009
  `)}
991
1010
 
992
1011
  <!-- Conditional rendering of layer list component -->
993
- ${Q(this.map,()=>x`
1012
+ ${W(this.map,()=>v`
994
1013
  <eox-layercontrol-layer-list
995
1014
  .noShadow=${!0}
996
1015
  class="layers"
@@ -1002,13 +1021,13 @@
1002
1021
  .tools=${this.tools}
1003
1022
  .unstyled=${this.unstyled}
1004
1023
  .toolsAsList=${this.toolsAsList}
1005
- @changed=${q(this,pe,Jr)}
1006
- @datetime:updated=${q(this,pe,Kr)}
1024
+ @changed=${q(this,fe,Jr)}
1025
+ @datetime:updated=${q(this,fe,Kr)}
1007
1026
  ></eox-layercontrol-layer-list>
1008
1027
  `)}
1009
1028
 
1010
1029
  <!-- Conditional rendering of optional list component -->
1011
- ${Q(n,()=>x`
1030
+ ${W(n,()=>v`
1012
1031
  <eox-layercontrol-optional-list
1013
1032
  .noShadow=${!0}
1014
1033
  .idProperty=${this.idProperty}
@@ -1017,4 +1036,4 @@
1017
1036
  @changed=${()=>this.requestUpdate()}
1018
1037
  ></eox-layercontrol-optional-list>
1019
1038
  `)}
1020
- `}}Ft=new WeakMap,pe=new WeakSet,Jr=function(e){ba(e,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:e.detail}))},Kr=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:e.detail}))},Ai=new WeakMap,Z(pn,"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},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol",pn),R.EOxLayerControl=pn,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
1039
+ `}}jt=new WeakMap,fe=new WeakSet,Jr=function(e){ba(e,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:e.detail}))},Kr=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:e.detail}))},Ai=new WeakMap,Z(pn,"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},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol",pn),R.EOxLayerControl=pn,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});