@eox/layercontrol 0.25.2 → 0.27.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(O,T){typeof exports=="object"&&typeof module<"u"?T(exports):typeof define=="function"&&define.amd?define(["exports"],T):(O=typeof globalThis<"u"?globalThis:O||self,T(O["eox-layercontrol"]={}))})(this,function(O){"use strict";var qa=Object.defineProperty;var Ho=O=>{throw TypeError(O)};var Ya=(O,T,B)=>T in O?qa(O,T,{enumerable:!0,configurable:!0,writable:!0,value:B}):O[T]=B;var V=(O,T,B)=>Ya(O,typeof T!="symbol"?T+"":T,B),on=(O,T,B)=>T.has(O)||Ho("Cannot "+B);var _=(O,T,B)=>(on(O,T,"read from private field"),B?B.call(O):T.get(O)),P=(O,T,B)=>T.has(O)?Ho("Cannot add the same private member more than once"):T instanceof WeakSet?T.add(O):T.set(O,B),ee=(O,T,B,jt)=>(on(O,T,"write to private field"),jt?jt.call(O,B):T.set(O,B),B),j=(O,T,B)=>(on(O,T,"access private method"),B);/**
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 zo=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)||zo("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)?zo("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);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var Io,We,Ge,$t,Qt,$e,xe,rn,Je,Ke,Qe,Vo,ti,ei,Ee,ii,ni,oi,ri,Dt,yi,Bo,si,ai,li,di,ui,ci,hi,ko,G,Uo,Fo,sn,jo,Zo,bi,pi,fi,Pt,te,zo,Xo,gi;const T=globalThis,B=T.ShadowRoot&&(T.ShadyCSS===void 0||T.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jt=Symbol(),an=new WeakMap;let ln=class{constructor(t,i,n){if(this._$cssResult$=!0,n!==jt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(B&&t===void 0){const n=i!==void 0&&i.length===1;n&&(t=an.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&an.set(i,t))}return t}toString(){return this.cssText}};const qo=e=>new ln(typeof e=="string"?e:e+"",void 0,jt),dn=(e,...t)=>{const i=e.length===1?e[0]:t.reduce((n,o,r)=>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.")})(o)+e[r+1],e[0]);return new ln(i,e,jt)},Yo=(e,t)=>{if(B)e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of t){const n=document.createElement("style"),o=T.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=i.cssText,e.appendChild(n)}},un=B?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(const n of t.cssRules)i+=n.cssText;return qo(i)})(e):e;/**
5
+ */var Fo,ri,si,Mt,he,Ie,Ne,mn,ai,li,di,Zo,ui,ci,He,hi,pi,fi,gi,Ct,ge,qo,mi,yi,bi,vi,wi,xi,Ei,Xo,st,Yo,Wo,yn,Go,Jo,Ti,$i,Si,Ft,pe,Ko,Qo,_i;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 tr=i=>new vn(typeof i=="string"?i:i+"",void 0,ie),wn=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((n,o,r)=>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.")})(o)+i[r+1],i[0]);return new vn(e,i,ie)},er=(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"),o=P.litNonce;o!==void 0&&n.setAttribute("nonce",o),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 tr(e)})(i):i;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Wo,defineProperty:Go,getOwnPropertyDescriptor:Jo,getOwnPropertyNames:Ko,getOwnPropertySymbols:Qo,getPrototypeOf:tr}=Object,Et=globalThis,cn=Et.trustedTypes,er=cn?cn.emptyScript:"",vi=Et.reactiveElementPolyfillSupport,ie=(e,t)=>e,wi={toAttribute(e,t){switch(t){case Boolean:e=e?er:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=e!==null;break;case Number:i=e===null?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch{i=null}}return i}},hn=(e,t)=>!Wo(e,t),pn={attribute:!0,type:String,converter:wi,reflect:!1,hasChanged:hn};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Et.litPropertyMetadata??(Et.litPropertyMetadata=new WeakMap);class Zt 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,i=pn){if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(t,i),!i.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,i);o!==void 0&&Go(this.prototype,t,o)}}static getPropertyDescriptor(t,i,n){const{get:o,set:r}=Jo(this.prototype,t)??{get(){return this[i]},set(s){this[i]=s}};return{get(){return o==null?void 0:o.call(this)},set(s){const a=o==null?void 0:o.call(this);r.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pn}static _$Ei(){if(this.hasOwnProperty(ie("elementProperties")))return;const t=tr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ie("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ie("properties"))){const i=this.properties,n=[...Ko(i),...Qo(i)];for(const o of n)this.createProperty(o,i[o])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[n,o]of i)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[i,n]of this.elementProperties){const o=this._$Eu(i,n);o!==void 0&&this._$Eh.set(o,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const o of n)i.unshift(un(o))}else t!==void 0&&i.push(un(t));return i}static _$Eu(t,i){const n=i.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(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(i=>i(this))}addController(t){var i;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var i;(i=this._$EO)==null||i.delete(t)}_$E_(){const t=new Map,i=this.constructor.elementProperties;for(const n of i.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 Yo(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var n;return(n=i.hostConnected)==null?void 0:n.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(i=>{var n;return(n=i.hostDisconnected)==null?void 0:n.call(i)})}attributeChangedCallback(t,i,n){this._$AK(t,n)}_$EC(t,i){var r;const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){const s=(((r=n.converter)==null?void 0:r.toAttribute)!==void 0?n.converter:wi).toAttribute(i,n.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,i){var r;const n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const s=n.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:wi;this._$Em=o,this[o]=a.fromAttribute(i,s.type),this._$Em=null}}requestUpdate(t,i,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??hn)(this[t],i))return;this.P(t,i,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,i,n){this._$AL.has(t)||this._$AL.set(t,i),n.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}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[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[r,s]of o)s.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],s)}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(n=this._$EO)==null||n.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(i)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(i)}willUpdate(t){}_$AE(t){var i;(i=this._$EO)==null||i.forEach(n=>{var o;return(o=n.hostUpdated)==null?void 0:o.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(i=>this._$EC(i,this[i]))),this._$EU()}updated(t){}firstUpdated(t){}}Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Zt[ie("elementProperties")]=new Map,Zt[ie("finalized")]=new Map,vi==null||vi({ReactiveElement:Zt}),(Et.reactiveElementVersions??(Et.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:ir,defineProperty:nr,getOwnPropertyDescriptor:or,getOwnPropertyNames:rr,getOwnPropertySymbols:sr,getPrototypeOf:ar}=Object,Nt=globalThis,En=Nt.trustedTypes,lr=En?En.emptyScript:"",Di=Nt.reactiveElementPolyfillSupport,me=(i,t)=>i,Pi={toAttribute(i,t){switch(t){case Boolean:i=i?lr: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)=>!ir(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(),o=this.getPropertyDescriptor(t,n,e);o!==void 0&&nr(this.prototype,t,o)}}static getPropertyDescriptor(t,e,n){const{get:o,set:r}=or(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return o==null?void 0:o.call(this)},set(s){const a=o==null?void 0:o.call(this);r.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=ar(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=[...rr(e),...sr(e)];for(const o of n)this.createProperty(o,e[o])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,o]of e)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const o=this._$Eu(e,n);o!==void 0&&this._$Eh.set(o,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 o of n)e.unshift(xn(o))}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 er(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 r;const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){const s=(((r=n.converter)==null?void 0:r.toAttribute)!==void 0?n.converter:Pi).toAttribute(e,n.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var r;const n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const s=n.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:Pi;this._$Em=o,this[o]=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[r,s]of this._$Ep)this[r]=s;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[r,s]of o)s.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],s)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(e)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var o;return(o=n.hostUpdated)==null?void 0:o.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");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const ne=globalThis,Te=ne.trustedTypes,fn=Te?Te.createPolicy("lit-html",{createHTML:e=>e}):void 0,$i="$lit$",gt=`lit$${Math.random().toFixed(9).slice(2)}$`,xi="?"+gt,ir=`<${xi}>`,Lt=document,oe=()=>Lt.createComment(""),re=e=>e===null||typeof e!="object"&&typeof e!="function",Ei=Array.isArray,gn=e=>Ei(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Si=`[
14
- \f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mn=/-->/g,yn=/>/g,Mt=RegExp(`>|${Si}(?:([^\\s"'>=/]+)(${Si}*=${Si}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),bn=/'/g,vn=/"/g,wn=/^(?:script|style|textarea|title)$/i,nr=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),$=nr(1),dt=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),$n=new WeakMap,It=Lt.createTreeWalker(Lt,129);function xn(e,t){if(!Ei(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fn!==void 0?fn.createHTML(t):t}const En=(e,t)=>{const i=e.length-1,n=[];let o,r=t===2?"<svg>":t===3?"<math>":"",s=se;for(let a=0;a<i;a++){const l=e[a];let d,c,u=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===se?c[1]==="!--"?s=mn:c[1]!==void 0?s=yn:c[2]!==void 0?(wn.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Mt):c[3]!==void 0&&(s=Mt):s===Mt?c[0]===">"?(s=o??se,u=-1):c[1]===void 0?u=-2:(u=s.lastIndex-c[2].length,d=c[1],s=c[3]===void 0?Mt:c[3]==='"'?vn:bn):s===vn||s===bn?s=Mt:s===mn||s===yn?s=se:(s=Mt,o=void 0);const f=s===Mt&&e[a+1].startsWith("/>")?" ":"";r+=s===se?l+ir:u>=0?(n.push(d),l.slice(0,u)+$i+l.slice(u)+gt+f):l+gt+(u===-2?a:f)}return[xn(e,r+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class ae{constructor({strings:t,_$litType$:i},n){let o;this.parts=[];let r=0,s=0;const a=t.length-1,l=this.parts,[d,c]=En(t,i);if(this.el=ae.createElement(d,n),It.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=It.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const u of o.getAttributeNames())if(u.endsWith($i)){const p=c[s++],f=o.getAttribute(u).split(gt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:f,ctor:g[1]==="."?An:g[1]==="?"?_n:g[1]==="@"?Cn:le}),o.removeAttribute(u)}else u.startsWith(gt)&&(l.push({type:6,index:r}),o.removeAttribute(u));if(wn.test(o.tagName)){const u=o.textContent.split(gt),p=u.length-1;if(p>0){o.textContent=Te?Te.emptyScript:"";for(let f=0;f<p;f++)o.append(u[f],oe()),It.nextNode(),l.push({type:2,index:++r});o.append(u[p],oe())}}}else if(o.nodeType===8)if(o.data===xi)l.push({type:2,index:r});else{let u=-1;for(;(u=o.data.indexOf(gt,u+1))!==-1;)l.push({type:7,index:r}),u+=gt.length-1}r++}}static createElement(t,i){const n=Lt.createElement("template");return n.innerHTML=t,n}}function Nt(e,t,i=e,n){var s,a;if(t===dt)return t;let o=n!==void 0?(s=i._$Co)==null?void 0:s[n]:i._$Cl;const r=re(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==r&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),r===void 0?o=void 0:(o=new r(e),o._$AT(e,i,n)),n!==void 0?(i._$Co??(i._$Co=[]))[n]=o:i._$Cl=o),o!==void 0&&(t=Nt(e,o._$AS(e,t.values),o,n)),t}let Sn=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:n}=this._$AD,o=((t==null?void 0:t.creationScope)??Lt).importNode(i,!0);It.currentNode=o;let r=It.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new zt(r,r.nextSibling,this,t):l.type===1?d=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(d=new Tn(r,this,t)),this._$AV.push(d),l=n[++a]}s!==(l==null?void 0:l.index)&&(r=It.nextNode(),s++)}return It.currentNode=Lt,o}p(t){let i=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}};class zt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,i,n,o){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Nt(this,t,i),re(t)?t===D||t==null||t===""?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==dt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):gn(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!==D&&re(this._$AH)?this._$AA.nextSibling.data=t:this.T(Lt.createTextNode(t)),this._$AH=t}$(t){var r;const{values:i,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ae.createElement(xn(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(i);else{const s=new Sn(o,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(t){let i=$n.get(t.strings);return i===void 0&&$n.set(t.strings,i=new ae(t)),i}k(t){Ei(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of t)o===i.length?i.push(n=new zt(this.O(oe()),this.O(oe()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,i);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var i;this._$AM===void 0&&(this._$Cv=t,(i=this._$AP)==null||i.call(this,t))}}class le{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,n,o,r){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=D}_$AI(t,i=this,n,o){const r=this.strings;let s=!1;if(r===void 0)t=Nt(this,t,i,0),s=!re(t)||t!==this._$AH&&t!==dt,s&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=Nt(this,a[n+l],i,l),d===dt&&(d=this._$AH[l]),s||(s=!re(d)||d!==this._$AH[l]),d===D?t=D:t!==D&&(t+=(d??"")+r[l+1]),this._$AH[l]=d}s&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class An extends le{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}class _n extends le{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==D)}}class Cn extends le{constructor(t,i,n,o,r){super(t,i,n,o,r),this.type=5}_$AI(t,i=this){if((t=Nt(this,t,i,0)??D)===dt)return;const n=this._$AH,o=t===D&&n!==D||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==D&&(n===D||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i;typeof this._$AH=="function"?this._$AH.call(((i=this.options)==null?void 0:i.host)??this.element,t):this._$AH.handleEvent(t)}}class Tn{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Nt(this,t)}}const or={M:$i,P:gt,A:xi,C:1,L:En,R:Sn,D:gn,V:Nt,I:zt,H:le,N:_n,U:Cn,B:An,F:Tn},Ai=ne.litHtmlPolyfillSupport;Ai==null||Ai(ae,zt),(ne.litHtmlVersions??(ne.litHtmlVersions=[])).push("3.2.1");const rr=(e,t,i)=>{const n=(i==null?void 0:i.renderBefore)??t;let o=n._$litPart$;if(o===void 0){const r=(i==null?void 0:i.renderBefore)??null;n._$litPart$=o=new zt(t.insertBefore(oe(),r),r,void 0,i??{})}return o._$AI(e),o};/**
13
+ */const ye=globalThis,Be=ye.trustedTypes,_n=Be?Be.createPolicy("lit-html",{createHTML:i=>i}):void 0,Oi="$lit$",Tt=`lit$${Math.random().toFixed(9).slice(2)}$`,Li="?"+Tt,dr=`<${Li}>`,zt=document,be=()=>zt.createComment(""),ve=i=>i===null||typeof i!="object"&&typeof i!="function",Ri=Array.isArray,An=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,ur=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),x=ur(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 _n!==void 0?_n.createHTML(t):t}const Mn=(i,t)=>{const e=i.length-1,n=[];let o,r=t===2?"<svg>":t===3?"<math>":"",s=we;for(let a=0;a<e;a++){const l=i[a];let d,c,u=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===we?c[1]==="!--"?s=Cn:c[1]!==void 0?s=Tn:c[2]!==void 0?(On.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Zt):c[3]!==void 0&&(s=Zt):s===Zt?c[0]===">"?(s=o??we,u=-1):c[1]===void 0?u=-2:(u=s.lastIndex-c[2].length,d=c[1],s=c[3]===void 0?Zt:c[3]==='"'?Pn:Dn):s===Pn||s===Dn?s=Zt:s===Cn||s===Tn?s=we:(s=Zt,o=void 0);const f=s===Zt&&i[a+1].startsWith("/>")?" ":"";r+=s===we?l+dr:u>=0?(n.push(d),l.slice(0,u)+Oi+l.slice(u)+Tt+f):l+Tt+(u===-2?a:f)}return[Rn(i,r+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class xe{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let r=0,s=0;const a=t.length-1,l=this.parts,[d,c]=Mn(t,e);if(this.el=xe.createElement(d,n),qt.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=qt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const u of o.getAttributeNames())if(u.endsWith(Oi)){const p=c[s++],f=o.getAttribute(u).split(Tt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:f,ctor:g[1]==="."?Nn:g[1]==="?"?Hn:g[1]==="@"?Vn:Ee}),o.removeAttribute(u)}else u.startsWith(Tt)&&(l.push({type:6,index:r}),o.removeAttribute(u));if(On.test(o.tagName)){const u=o.textContent.split(Tt),p=u.length-1;if(p>0){o.textContent=Be?Be.emptyScript:"";for(let f=0;f<p;f++)o.append(u[f],be()),qt.nextNode(),l.push({type:2,index:++r});o.append(u[p],be())}}}else if(o.nodeType===8)if(o.data===Li)l.push({type:2,index:r});else{let u=-1;for(;(u=o.data.indexOf(Tt,u+1))!==-1;)l.push({type:7,index:r}),u+=Tt.length-1}r++}}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 o=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const r=ve(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==r&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),r===void 0?o=void 0:(o=new r(i),o._$AT(i,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=o:e._$Cl=o),o!==void 0&&(t=Xt(i,o._$AS(i,t.values),o,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,o=((t==null?void 0:t.creationScope)??zt).importNode(e,!0);qt.currentNode=o;let r=qt.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new oe(r,r.nextSibling,this,t):l.type===1?d=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(d=new Bn(r,this,t)),this._$AV.push(d),l=n[++a]}s!==(l==null?void 0:l.index)&&(r=qt.nextNode(),s++)}return qt.currentNode=zt,o}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,o){this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cv=(o==null?void 0:o.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):An(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 r;const{values:e,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=xe.createElement(Rn(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else{const s=new In(o,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,o=0;for(const r of t)o===e.length?e.push(n=new oe(this.O(be()),this.O(be()),this,this.options)):n=e[o],n._$AI(r),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$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 o=t.nextSibling;t.remove(),t=o}}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,o,r){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,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,o){const r=this.strings;let s=!1;if(r===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=r[0],l=0;l<r.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??"")+r[l+1]),this._$AH[l]=d}s&&!o&&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,o,r){super(t,e,n,o,r),this.type=5}_$AI(t,e=this){if((t=Xt(this,t,e,0)??O)===xt)return;const n=this._$AH,o=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==O&&(n===O||o);o&&this.element.removeEventListener(this.name,this,n),r&&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 Bn{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 cr={M:Oi,P:Tt,A:Li,C:1,L:Mn,R:In,D:An,V:Xt,I:oe,H:Ee,N:Hn,U:Vn,B:Nn,F:Bn},Ii=ye.litHtmlPolyfillSupport;Ii==null||Ii(xe,oe),(ye.litHtmlVersions??(ye.litHtmlVersions=[])).push("3.2.1");const hr=(i,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let o=n._$litPart$;if(o===void 0){const r=(e==null?void 0:e.renderBefore)??null;n._$litPart$=o=new oe(t.insertBefore(be(),r),r,void 0,e??{})}return o._$AI(i),o};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */let tt=class extends Zt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i;const t=super.createRenderRoot();return(i=this.renderOptions).renderBefore??(i.renderBefore=t.firstChild),t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=rr(i,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 dt}};tt._$litElement$=!0,tt.finalized=!0,(Io=globalThis.litElementHydrateSupport)==null||Io.call(globalThis,{LitElement:tt});const _i=globalThis.litElementPolyfillSupport;_i==null||_i({LitElement:tt}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
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=hr(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,(Fo=globalThis.litElementHydrateSupport)==null||Fo.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 Z(e,t,i){return e?t(e):i==null?void 0:i(e)}/**
23
+ */function Q(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 St={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ci=e=>(...t)=>({_$litDirective$:e,values:t});class Ti{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,n){this._$Ct=t,this._$AM=i,this._$Ci=n}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}/**
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)}}/**
28
28
  * @license
29
29
  * Copyright 2020 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const{I:sr}=or,ar=e=>e.strings===void 0,Dn=()=>document.createComment(""),de=(e,t,i)=>{var r;const n=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(i===void 0){const s=n.insertBefore(Dn(),o),a=n.insertBefore(Dn(),o);i=new sr(s,a,e,e.options)}else{const s=i._$AB.nextSibling,a=i._$AM,l=a!==e;if(l){let d;(r=i._$AQ)==null||r.call(i,e),i._$AM=e,i._$AP!==void 0&&(d=e._$AU)!==a._$AU&&i._$AP(d)}if(s!==o||l){let d=i._$AA;for(;d!==s;){const c=d.nextSibling;n.insertBefore(d,o),d=c}}}return i},Ht=(e,t,i=e)=>(e._$AI(t,i),e),lr={},Pn=(e,t=lr)=>e._$AH=t,dr=e=>e._$AH,Di=e=>{var n;(n=e._$AP)==null||n.call(e,!1,!0);let t=e._$AA;const i=e._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o}};/**
31
+ */const{I:pr}=cr,fr=i=>i.strings===void 0,kn=()=>document.createComment(""),$e=(i,t,e)=>{var r;const n=i._$AA.parentNode,o=t===void 0?i._$AB:t._$AA;if(e===void 0){const s=n.insertBefore(kn(),o),a=n.insertBefore(kn(),o);e=new pr(s,a,i,i.options)}else{const s=e._$AB.nextSibling,a=e._$AM,l=a!==i;if(l){let d;(r=e._$AQ)==null||r.call(e,i),e._$AM=i,e._$AP!==void 0&&(d=i._$AU)!==a._$AU&&e._$AP(d)}if(s!==o||l){let d=e._$AA;for(;d!==s;){const c=d.nextSibling;n.insertBefore(d,o),d=c}}}return e},Yt=(i,t,e=i)=>(i._$AI(t,e),i),gr={},Un=(i,t=gr)=>i._$AH=t,mr=i=>i._$AH,Bi=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 o=t.nextSibling;t.remove(),t=o}};/**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */const On=(e,t,i)=>{const n=new Map;for(let o=t;o<=i;o++)n.set(e[o],o);return n},ur=Ci(class extends Ti{constructor(e){if(super(e),e.type!==St.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,i){let n;i===void 0?i=t:t!==void 0&&(n=t);const o=[],r=[];let s=0;for(const a of e)o[s]=n?n(a,s):s,r[s]=i(a,s),s++;return{values:r,keys:o}}render(e,t,i){return this.dt(e,t,i).values}update(e,[t,i,n]){const o=dr(e),{values:r,keys:s}=this.dt(t,i,n);if(!Array.isArray(o))return this.ut=s,r;const a=this.ut??(this.ut=[]),l=[];let d,c,u=0,p=o.length-1,f=0,g=r.length-1;for(;u<=p&&f<=g;)if(o[u]===null)u++;else if(o[p]===null)p--;else if(a[u]===s[f])l[f]=Ht(o[u],r[f]),u++,f++;else if(a[p]===s[g])l[g]=Ht(o[p],r[g]),p--,g--;else if(a[u]===s[g])l[g]=Ht(o[u],r[g]),de(e,l[g+1],o[u]),u++,g--;else if(a[p]===s[f])l[f]=Ht(o[p],r[f]),de(e,o[u],o[p]),p--,f++;else if(d===void 0&&(d=On(s,f,g),c=On(a,u,p)),d.has(a[u]))if(d.has(a[p])){const y=c.get(s[f]),R=y!==void 0?o[y]:null;if(R===null){const H=de(e,o[u]);Ht(H,r[f]),l[f]=H}else l[f]=Ht(R,r[f]),de(e,o[u],R),o[y]=null;f++}else Di(o[p]),p--;else Di(o[u]),u++;for(;f<=g;){const y=de(e,l[g+1]);Ht(y,r[f]),l[f++]=y}for(;u<=p;){const y=o[u++];y!==null&&Di(y)}return this.ut=s,Pn(e,l),dt}});/**
35
+ */const Fn=(i,t,e)=>{const n=new Map;for(let o=t;o<=e;o++)n.set(i[o],o);return n},yr=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 o=[],r=[];let s=0;for(const a of i)o[s]=n?n(a,s):s,r[s]=e(a,s),s++;return{values:r,keys:o}}render(i,t,e){return this.dt(i,t,e).values}update(i,[t,e,n]){const o=mr(i),{values:r,keys:s}=this.dt(t,e,n);if(!Array.isArray(o))return this.ut=s,r;const a=this.ut??(this.ut=[]),l=[];let d,c,u=0,p=o.length-1,f=0,g=r.length-1;for(;u<=p&&f<=g;)if(o[u]===null)u++;else if(o[p]===null)p--;else if(a[u]===s[f])l[f]=Yt(o[u],r[f]),u++,f++;else if(a[p]===s[g])l[g]=Yt(o[p],r[g]),p--,g--;else if(a[u]===s[g])l[g]=Yt(o[u],r[g]),$e(i,l[g+1],o[u]),u++,g--;else if(a[p]===s[f])l[f]=Yt(o[p],r[f]),$e(i,o[u],o[p]),p--,f++;else if(d===void 0&&(d=Fn(s,f,g),c=Fn(a,u,p)),d.has(a[u]))if(d.has(a[p])){const b=c.get(s[f]),V=b!==void 0?o[b]:null;if(V===null){const et=$e(i,o[u]);Yt(et,r[f]),l[f]=et}else l[f]=Yt(V,r[f]),$e(i,o[u],V),o[b]=null;f++}else Bi(o[p]),p--;else Bi(o[u]),u++;for(;f<=g;){const b=$e(i,l[g+1]);Yt(b,r[f]),l[f++]=b}for(;u<=p;){const b=o[u++];b!==null&&Bi(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 E=e=>e!==void 0,Rn=(e,t,i)=>t in e?e[t]:e[t]=i;const ue={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 cr{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,i){return De(t,i).join("")}}function De(e,t){return Ln(e,t,[]).join("")}function Ln(e,t,i){if(e.nodeType===ue.CDATA_SECTION||e.nodeType===ue.TEXT)t?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else{var n;for(n=e.firstChild;n;n=n.nextSibling)Ln(n,t,i)}return i}function hr(e,t,i,n){for(var o=pr(t);o;o=fr(o)){var r=o.namespaceURI||null,s=e[r];if(E(s)){var a=s[o.localName];E(a)&&a.call(n,o,i)}}}function pr(e){let t=e.firstElementChild||e.firstChild;for(;t&&t.nodeType!==ue.ELEMENT;)t=t.nextSibling;return t}function fr(e){let t=e.nextElementSibling||e.nextSibling;for(;t&&t.nodeType!==ue.ELEMENT;)t=t.nextSibling;return t}function q(e,t,i){return gr(e,t,i)}function gr(e,t,i){var n=E(i)?i:{},o,r;for(o=0,r=e.length;o<r;++o)n[e[o]]=t;return n}function Mn(e,t){return function(i,n){var o=e.call(E(t)?t:this,i,n);if(E(o)){var r=n[n.length-1];r.push(o)}}}function X(e,t,i,n,o){return n.push(e),hr(t,i,n,o),n.pop()}function m(e,t,i){return function(n,o){let r=e.call(E(i)?i:this,n,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:n.localName;s[a]=r}}}function ot(e,t,i){return function(n,o){var r=e.call(E(i)?i:this,n,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:n.localName,l=Rn(s,a,[]);l.push(r)}}}const mr=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function yr(e){return e.replace(mr,"")}function Vt(e){const t=/^\s*(true|1)|(false|0)\s*$/.exec(e);if(t)return E(t[1])||!1}function Xt(e){return mt(De(e,!1))}function mt(e){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);if(t)return parseFloat(t[1])}function Pi(e){return Pe(De(e,!1))}function Pe(e){const t=/^\s*(\d+)\s*$/.exec(e);if(t)return parseInt(t[1],10)}function C(e){return yr(De(e,!1))}const br="http://www.w3.org/1999/xlink";function Oi(e){return e.getAttributeNS(br,"href")}function vr(e,t){return X({},Xr,e,t)}function In(e){return[mt(e.getAttribute("minx")),mt(e.getAttribute("miny")),mt(e.getAttribute("maxx")),mt(e.getAttribute("maxy"))]}function wr(e,t){const i=In(e),n=[mt(e.getAttribute("resx")),mt(e.getAttribute("resy"))];return{crs:e.getAttribute("CRS")||e.getAttribute("SRS"),extent:i,res:n}}function $r(e,t){const i=In(e);if(!(!E(i[0])||!E(i[1])||!E(i[2])||!E(i[3])))return i}function xr(e,t){const i=parseFloat(e.getAttribute("min")),n=parseFloat(e.getAttribute("max"));return{min:i,max:n}}function Er(e,t){const i=X({},qr,e,t);if(!E(i))return;const n=i.westBoundLongitude,o=i.southBoundLatitude,r=i.eastBoundLongitude,s=i.northBoundLatitude;if(!(!E(n)||!E(o)||!E(r)||!E(s)))return[n,o,r,s]}function Sr(e,t){return X({},kr,e,t)}function Ar(e,t){return X({},Ur,e,t)}function _r(e,t){return X({},Fr,e,t)}function Cr(e,t){return X({},jr,e,t)}function Tr(e,t){return X({},Zr,e,t)}function Dr(e,t){return X([],zr,e,t)}function Pr(e,t){const i=Vt(e.getAttribute("queryable"));return X({queryable:E(i)?i:!1},Vn,e,t)}function Or(e,t){var i=t[t.length-1];const n=X({},Vn,e,t);if(!E(n))return;let o=Vt(e.getAttribute("queryable"));E(o)||(o=i.queryable),n.queryable=E(o)?o:!1;let r=Pe(e.getAttribute("cascaded"));E(r)||(r=i.cascaded),n.cascaded=r;let s=Vt(e.getAttribute("opaque"));E(s)||(s=i.opaque),n.opaque=E(s)?s:!1;let a=Vt(e.getAttribute("noSubsets"));E(a)||(a=i.noSubsets),n.noSubsets=E(a)?a:!1;let l=mt(e.getAttribute("fixedWidth"));E(l)||(l=i.fixedWidth),n.fixedWidth=l;let d=mt(e.getAttribute("fixedHeight"));E(d)||(d=i.fixedHeight),n.fixedHeight=d;const c=["Style","CRS","AuthorityURL"];for(let p=0,f=c.length;p<f;p++){const g=c[p],y=i[g];if(E(y)){let R=Rn(n,g,[]);R=R.concat(y),n[g]=R}}const u=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=u.length;p<f;p++){const g=u[p],y=n[g];if(!E(y)){const R=i[g];n[g]=R}}return n}function Rr(e,t){return{name:e.getAttribute("name"),units:e.getAttribute("units"),unitSymbol:e.getAttribute("unitSymbol"),default:e.getAttribute("default"),multipleValues:Vt(e.getAttribute("multipleValues")),nearestValue:Vt(e.getAttribute("nearestValue")),current:Vt(e.getAttribute("current")),values:C(e)}}function yt(e,t){return X({},Qr,e,t)}function Lr(e,t){return X({},Yr,e,t)}function Mr(e,t){return X({},Gr,e,t)}function Ir(e,t){return X({},Jr,e,t)}function Ri(e,t){return X({},Wr,e,t)}function Nn(e,t){var i=yt(e,t);if(E(i)){const n=[Pe(e.getAttribute("width")),Pe(e.getAttribute("height"))];return i.size=n,i}}function Nr(e,t){var i=yt(e,t);if(E(i))return i.name=e.getAttribute("name"),i}function Hr(e,t){var i=yt(e,t);if(E(i))return i.type=e.getAttribute("type"),i}function Vr(e,t){return X({},Kr,e,t)}function Hn(e,t){return X([],ts,e,t)}const Y=[null,"http://www.opengis.net/wms"],Br=q(Y,{Service:m(Ar),Capability:m(Sr)}),kr=q(Y,{Request:m(Lr),Exception:m(Dr),Layer:m(Pr)}),Ur=q(Y,{Name:m(C),Title:m(C),Abstract:m(C),KeywordList:m(Hn),OnlineResource:m(Oi),ContactInformation:m(_r),Fees:m(C),AccessConstraints:m(C),LayerLimit:m(Pi),MaxWidth:m(Pi),MaxHeight:m(Pi)}),Fr=q(Y,{ContactPersonPrimary:m(Cr),ContactPosition:m(C),ContactAddress:m(Tr),ContactVoiceTelephone:m(C),ContactFacsimileTelephone:m(C),ContactElectronicMailAddress:m(C)}),jr=q(Y,{ContactPerson:m(C),ContactOrganization:m(C)}),Zr=q(Y,{AddressType:m(C),Address:m(C),City:m(C),StateOrProvince:m(C),PostCode:m(C),Country:m(C)}),zr=q(Y,{Format:Mn(C)}),Vn=q(Y,{Name:m(C),Title:m(C),Abstract:m(C),KeywordList:m(Hn),CRS:ot(C),SRS:ot(C),EX_GeographicBoundingBox:m(Er),LatLonBoundingBox:m($r),BoundingBox:ot(wr),Dimension:ot(Rr),Attribution:m(vr),AuthorityURL:ot(Nr),Identifier:ot(C),MetadataURL:ot(Hr),DataURL:ot(yt),FeatureListURL:ot(yt),Style:ot(Vr),MinScaleDenominator:m(Xt),MaxScaleDenominator:m(Xt),ScaleHint:m(xr),Layer:ot(Or)}),Xr=q(Y,{Title:m(C),OnlineResource:m(Oi),LogoURL:m(Nn)}),qr=q(Y,{westBoundLongitude:m(Xt),eastBoundLongitude:m(Xt),southBoundLatitude:m(Xt),northBoundLatitude:m(Xt)}),Yr=q(Y,{GetCapabilities:m(Ri),GetMap:m(Ri),GetFeatureInfo:m(Ri)}),Wr=q(Y,{Format:ot(C),DCPType:ot(Mr)}),Gr=q(Y,{HTTP:m(Ir)}),Jr=q(Y,{Get:m(yt),Post:m(yt)}),Kr=q(Y,{Name:m(C),Title:m(C),Abstract:m(C),LegendURL:ot(Nn),StyleSheetURL:m(yt),StyleURL:m(yt)}),Qr=q(Y,{Format:m(C),OnlineResource:m(Oi)}),ts=q(Y,{Keyword:Mn(C)});class es{constructor(t,i){!i&&typeof window<"u"&&(i=window.DOMParser),this.version=void 0,this._parser=new cr(i),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 i=t.firstChild;i;i=i.nextSibling)if(i.nodeType==ue.ELEMENT)return this.readFromNode(i);return null}readFromNode(t){return this.version=t.getAttribute("version"),X({version:this.version},Br,t,[])||null}}async function is(e){let t=new URL(e),i=t.searchParams;i.set("SERVICE","WMS"),i.set("REQUEST","GetCapabilities");let n=t.toString();const o=await fetch(n);if(o.ok){const r=await o.text();return new es(r).toJSON()}else throw new Error(`Error: ${o.status}`)}function Li(e){const t=/\b(?:wms|ows)\b/i,i=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(e)?"TileWMS":i.test(e)?"XYZ":!1}function ns(e){const i=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e),n=Li(e);return!!(e&&i&&n)}function Bn(e){return e.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function os(e){try{return JSON.parse(Bn(e)),!!e}catch{return!1}}function rs(e,t){const i=new URL(e).searchParams;Object.entries(t).forEach(([s,a])=>{typeof a=="object"&&!Array.isArray(a)&&a!==null?Object.keys(a).forEach(l=>{i.set(l,a[l])}):i.set(s,a)});const n=e.split("?")[0],o=i.toString();return`${n}?${o}`}/**!
41
- * Sortable 1.15.4
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 br{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,e){return ke(t,e).join("")}}function ke(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 vr(i,t,e,n){for(var o=wr(t);o;o=xr(o)){var r=o.namespaceURI||null,s=i[r];if(S(s)){var a=s[o.localName];S(a)&&a.call(n,o,e)}}}function wr(i){let t=i.firstElementChild||i.firstChild;for(;t&&t.nodeType!==Se.ELEMENT;)t=t.nextSibling;return t}function xr(i){let t=i.nextElementSibling||i.nextSibling;for(;t&&t.nodeType!==Se.ELEMENT;)t=t.nextSibling;return t}function nt(i,t,e){return Er(i,t,e)}function Er(i,t,e){var n=S(e)?e:{},o,r;for(o=0,r=i.length;o<r;++o)n[i[o]]=t;return n}function Zn(i,t){return function(e,n){var o=i.call(S(t)?t:this,e,n);if(S(o)){var r=n[n.length-1];r.push(o)}}}function tt(i,t,e,n,o){return n.push(i),vr(t,e,n,o),n.pop()}function y(i,t,e){return function(n,o){let r=i.call(S(e)?e:this,n,o);if(S(r)){var s=o[o.length-1],a=S(t)?t:n.localName;s[a]=r}}}function ht(i,t,e){return function(n,o){var r=i.call(S(e)?e:this,n,o);if(S(r)){var s=o[o.length-1],a=S(t)?t:n.localName,l=jn(s,a,[]);l.push(r)}}}const $r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function Sr(i){return i.replace($r,"")}function Wt(i){const t=/^\s*(true|1)|(false|0)\s*$/.exec(i);if(t)return S(t[1])||!1}function re(i){return Dt(ke(i,!1))}function Dt(i){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(i);if(t)return parseFloat(t[1])}function ki(i){return Ue(ke(i,!1))}function Ue(i){const t=/^\s*(\d+)\s*$/.exec(i);if(t)return parseInt(t[1],10)}function D(i){return Sr(ke(i,!1))}const _r="http://www.w3.org/1999/xlink";function Ui(i){return i.getAttributeNS(_r,"href")}function Ar(i,t){return tt({},Qr,i,t)}function qn(i){return[Dt(i.getAttribute("minx")),Dt(i.getAttribute("miny")),Dt(i.getAttribute("maxx")),Dt(i.getAttribute("maxy"))]}function Cr(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 Tr(i,t){const e=qn(i);if(!(!S(e[0])||!S(e[1])||!S(e[2])||!S(e[3])))return e}function Dr(i,t){const e=parseFloat(i.getAttribute("min")),n=parseFloat(i.getAttribute("max"));return{min:e,max:n}}function Pr(i,t){const e=tt({},ts,i,t);if(!S(e))return;const n=e.westBoundLongitude,o=e.southBoundLatitude,r=e.eastBoundLongitude,s=e.northBoundLatitude;if(!(!S(n)||!S(o)||!S(r)||!S(s)))return[n,o,r,s]}function Or(i,t){return tt({},Xr,i,t)}function Lr(i,t){return tt({},Yr,i,t)}function Rr(i,t){return tt({},Wr,i,t)}function Mr(i,t){return tt({},Gr,i,t)}function Ir(i,t){return tt({},Jr,i,t)}function Nr(i,t){return tt([],Kr,i,t)}function Hr(i,t){const e=Wt(i.getAttribute("queryable"));return tt({queryable:S(e)?e:!1},Wn,i,t)}function Vr(i,t){var e=t[t.length-1];const n=tt({},Wn,i,t);if(!S(n))return;let o=Wt(i.getAttribute("queryable"));S(o)||(o=e.queryable),n.queryable=S(o)?o:!1;let r=Ue(i.getAttribute("cascaded"));S(r)||(r=e.cascaded),n.cascaded=r;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 c=["Style","CRS","AuthorityURL"];for(let p=0,f=c.length;p<f;p++){const g=c[p],b=e[g];if(S(b)){let V=jn(n,g,[]);V=V.concat(b),n[g]=V}}const u=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=u.length;p<f;p++){const g=u[p],b=n[g];if(!S(b)){const V=e[g];n[g]=V}}return n}function Br(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 kr(i,t){return tt({},es,i,t)}function Ur(i,t){return tt({},ns,i,t)}function Fr(i,t){return tt({},os,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 jr(i,t){var e=Pt(i,t);if(S(e))return e.name=i.getAttribute("name"),e}function zr(i,t){var e=Pt(i,t);if(S(e))return e.type=i.getAttribute("type"),e}function Zr(i,t){return tt({},rs,i,t)}function Yn(i,t){return tt([],as,i,t)}const ot=[null,"http://www.opengis.net/wms"],qr=nt(ot,{Service:y(Lr),Capability:y(Or)}),Xr=nt(ot,{Request:y(kr),Exception:y(Nr),Layer:y(Hr)}),Yr=nt(ot,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),OnlineResource:y(Ui),ContactInformation:y(Rr),Fees:y(D),AccessConstraints:y(D),LayerLimit:y(ki),MaxWidth:y(ki),MaxHeight:y(ki)}),Wr=nt(ot,{ContactPersonPrimary:y(Mr),ContactPosition:y(D),ContactAddress:y(Ir),ContactVoiceTelephone:y(D),ContactFacsimileTelephone:y(D),ContactElectronicMailAddress:y(D)}),Gr=nt(ot,{ContactPerson:y(D),ContactOrganization:y(D)}),Jr=nt(ot,{AddressType:y(D),Address:y(D),City:y(D),StateOrProvince:y(D),PostCode:y(D),Country:y(D)}),Kr=nt(ot,{Format:Zn(D)}),Wn=nt(ot,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),CRS:ht(D),SRS:ht(D),EX_GeographicBoundingBox:y(Pr),LatLonBoundingBox:y(Tr),BoundingBox:ht(Cr),Dimension:ht(Br),Attribution:y(Ar),AuthorityURL:ht(jr),Identifier:ht(D),MetadataURL:ht(zr),DataURL:ht(Pt),FeatureListURL:ht(Pt),Style:ht(Zr),MinScaleDenominator:y(re),MaxScaleDenominator:y(re),ScaleHint:y(Dr),Layer:ht(Vr)}),Qr=nt(ot,{Title:y(D),OnlineResource:y(Ui),LogoURL:y(Xn)}),ts=nt(ot,{westBoundLongitude:y(re),eastBoundLongitude:y(re),southBoundLatitude:y(re),northBoundLatitude:y(re)}),es=nt(ot,{GetCapabilities:y(Fi),GetMap:y(Fi),GetFeatureInfo:y(Fi)}),is=nt(ot,{Format:ht(D),DCPType:ht(Ur)}),ns=nt(ot,{HTTP:y(Fr)}),os=nt(ot,{Get:y(Pt),Post:y(Pt)}),rs=nt(ot,{Name:y(D),Title:y(D),Abstract:y(D),LegendURL:ht(Xn),StyleSheetURL:y(Pt),StyleURL:y(Pt)}),ss=nt(ot,{Format:y(D),OnlineResource:y(Ui)}),as=nt(ot,{Keyword:Zn(D)});class ls{constructor(t,e){!e&&typeof window<"u"&&(e=window.DOMParser),this.version=void 0,this._parser=new br(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},qr,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 o=await fetch(n);if(o.ok){const r=await o.text();return new ls(r).toJSON()}else throw new Error(`Error: ${o.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 us(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 cs(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],o=e.toString();return`${n}?${o}`}/**!
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 kn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,n)}return i}function pt(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?kn(Object(i),!0).forEach(function(n){ss(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):kn(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function Oe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oe=function(t){return typeof t}:Oe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(e)}function ss(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},bt.apply(this,arguments)}function as(e,t){if(e==null)return{};var i={},n=Object.keys(e),o,r;for(r=0;r<n.length;r++)o=n[r],!(t.indexOf(o)>=0)&&(i[o]=e[o]);return i}function ls(e,t){if(e==null)return{};var i=as(e,t),n,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ds="1.15.4";function vt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var wt=vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ce=vt(/Edge/i),Un=vt(/firefox/i),he=vt(/safari/i)&&!vt(/chrome/i)&&!vt(/android/i),Fn=vt(/iP(ad|od|hone)/i),jn=vt(/chrome/i)&&vt(/android/i),Zn={capture:!1,passive:!1};function A(e,t,i){e.addEventListener(t,i,!wt&&Zn)}function S(e,t,i){e.removeEventListener(t,i,!wt&&Zn)}function Re(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function zn(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ct(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&Re(e,t):Re(e,t))||n&&e===i)return e;if(e===i)break}while(e=zn(e))}return null}var Xn=/\s+/g;function at(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Xn," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(Xn," ")}}function v(e,t,i){var n=e&&e.style;if(n){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),t===void 0?i:i[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=i+(typeof i=="string"?"":"px")}}function qt(e,t){var i="";if(typeof e=="string")i=e;else do{var n=v(e,"transform");n&&n!=="none"&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function qn(e,t,i){if(e){var n=e.getElementsByTagName(t),o=0,r=n.length;if(i)for(;o<r;o++)i(n[o],o);return n}return[]}function ft(){var e=document.scrollingElement;return e||document.documentElement}function U(e,t,i,n,o){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,d,c,u;if(e!==window&&e.parentNode&&e!==ft()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,d=r.right,c=r.height,u=r.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||i)&&e!==window&&(o=o||e.parentNode,!wt))do if(o&&o.getBoundingClientRect&&(v(o,"transform")!=="none"||i&&v(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(v(o,"border-top-width")),a-=p.left+parseInt(v(o,"border-left-width")),l=s+r.height,d=a+r.width;break}while(o=o.parentNode);if(n&&e!==window){var f=qt(o||e),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,u/=g,c/=y,l=s+c,d=a+u)}return{top:s,left:a,bottom:l,right:d,width:u,height:c}}}function Yn(e,t,i){for(var n=At(e,!0),o=U(e)[t];n;){var r=U(n)[i],s=void 0;if(s=o>=r,!s)return n;if(n===ft())break;n=At(n,!1)}return!1}function Yt(e,t,i,n){for(var o=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==w.ghost&&(n||s[r]!==w.dragged)&&ct(s[r],i.draggable,e,!1)){if(o===t)return s[r];o++}r++}return null}function Mi(e,t){for(var i=e.lastElementChild;i&&(i===w.ghost||v(i,"display")==="none"||t&&!Re(i,t));)i=i.previousElementSibling;return i||null}function ut(e,t){var i=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==w.clone&&(!t||Re(e,t))&&i++;return i}function Wn(e){var t=0,i=0,n=ft();if(e)do{var o=qt(e),r=o.a,s=o.d;t+=e.scrollLeft*r,i+=e.scrollTop*s}while(e!==n&&(e=e.parentNode));return[t,i]}function us(e,t){for(var i in e)if(e.hasOwnProperty(i)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[i][n])return Number(i)}return-1}function At(e,t){if(!e||!e.getBoundingClientRect)return ft();var i=e,n=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=v(i);if(i.clientWidth<i.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return ft();if(n||t)return i;n=!0}}while(i=i.parentNode);return ft()}function cs(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Ii(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var pe;function Gn(e,t){return function(){if(!pe){var i=arguments,n=this;i.length===1?e.call(n,i[0]):e.apply(n,i),pe=setTimeout(function(){pe=void 0},t)}}}function hs(){clearTimeout(pe),pe=void 0}function Jn(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Kn(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}function Qn(e,t,i){var n={};return Array.from(e.children).forEach(function(o){var r,s,a,l;if(!(!ct(o,t.draggable,e,!1)||o.animated||o===i)){var d=U(o);n.left=Math.min((r=n.left)!==null&&r!==void 0?r: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 rt="Sortable"+new Date().getTime();function ps(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(v(o,"display")==="none"||o===w.ghost)){e.push({target:o,rect:U(o)});var r=pt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=qt(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(us(e,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,s=0;e.forEach(function(a){var l=0,d=a.target,c=d.fromRect,u=U(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,y=qt(d,!0);y&&(u.top-=y.f,u.left-=y.e),d.toRect=u,d.thisAnimationDuration&&Ii(p,u)&&!Ii(c,u)&&(g.top-u.top)/(g.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=gs(g,p,f,o.options)),Ii(u,c)||(d.prevFromRect=c,d.prevToRect=u,l||(l=o.options.animation),o.animate(d,g,u,l)),l&&(r=!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),r?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),e=[]},animate:function(n,o,r,s){if(s){v(n,"transition",""),v(n,"transform","");var a=qt(this.el),l=a&&a.a,d=a&&a.d,c=(o.left-r.left)/(l||1),u=(o.top-r.top)/(d||1);n.animatingX=!!c,n.animatingY=!!u,v(n,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=fs(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 fs(e){return e.offsetWidth}function gs(e,t,i,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))*n.animation}var Wt=[],Ni={initializeByDefault:!0},fe={mount:function(t){for(var i in Ni)Ni.hasOwnProperty(i)&&!(i in t)&&(t[i]=Ni[i]);Wt.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Wt.push(t)},pluginEvent:function(t,i,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Wt.forEach(function(s){i[s.pluginName]&&(i[s.pluginName][r]&&i[s.pluginName][r](pt({sortable:i},n)),i.options[s.pluginName]&&i[s.pluginName][t]&&i[s.pluginName][t](pt({sortable:i},n)))})},initializePlugins:function(t,i,n,o){Wt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,i,t.options);d.sortable=t,d.options=t.options,t[l]=d,bt(n,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,i){var n={};return Wt.forEach(function(o){typeof o.eventProperties=="function"&&bt(n,o.eventProperties.call(i[o.pluginName],t))}),n},modifyOption:function(t,i,n){var o;return Wt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[i]=="function"&&(o=r.optionListeners[i].call(t[r.pluginName],n))}),o}};function ms(e){var t=e.sortable,i=e.rootEl,n=e.name,o=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,d=e.newIndex,c=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||i&&i[rt],!!t){var y,R=t.options,H="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!wt&&!ce?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=s||i,y.from=a||i,y.item=o||i,y.clone=r,y.oldIndex=l,y.newIndex=d,y.oldDraggableIndex=c,y.newDraggableIndex=u,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var k=pt(pt({},g),fe.getEventProperties(n,t));for(var it in k)y[it]=k[it];i&&i.dispatchEvent(y),R[H]&&R[H].call(t,y)}}var ys=["evt"],st=function(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,r=ls(n,ys);fe.pluginEvent.bind(w)(t,i,pt({dragEl:h,parentEl:N,ghostEl:x,rootEl:M,nextEl:Bt,lastDownEl:Le,cloneEl:I,cloneHidden:_t,dragStarted:me,putSortable:W,activeSortable:w.active,originalEvent:o,oldIndex:Gt,oldDraggableIndex:ge,newIndex:lt,newDraggableIndex:Ct,hideGhostForTarget:so,unhideGhostForTarget:ao,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){et({sortable:i,name:a,originalEvent:o})}},r))};function et(e){ms(pt({putSortable:W,cloneEl:I,targetEl:h,rootEl:M,oldIndex:Gt,oldDraggableIndex:ge,newIndex:lt,newDraggableIndex:Ct},e))}var h,N,x,M,Bt,Le,I,_t,Gt,lt,ge,Ct,Me,W,Jt=!1,Ie=!1,Ne=[],kt,ht,Hi,Vi,to,eo,me,Kt,ye,be=!1,He=!1,Ve,Q,Bi=[],ki=!1,Be=[],ke=typeof document<"u",Ue=Fn,io=ce||wt?"cssFloat":"float",bs=ke&&!jn&&!Fn&&"draggable"in document.createElement("div"),no=function(){if(ke){if(wt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),oo=function(t,i){var n=v(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Yt(t,0,i),s=Yt(t,1,i),a=r&&v(r),l=s&&v(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+U(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+U(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(r&&a.float&&a.float!=="none"){var u=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=o&&n[io]==="none"||s&&n[io]==="none"&&d+c>o)?"vertical":"horizontal"},vs=function(t,i,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,s=n?t.width:t.height,a=n?i.left:i.top,l=n?i.right:i.bottom,d=n?i.width:i.height;return o===a||r===l||o+s/2===a+d/2},ws=function(t,i){var n;return Ne.some(function(o){var r=o[rt].options.emptyInsertThreshold;if(!(!r||Mi(o))){var s=U(o),a=t>=s.left-r&&t<=s.right+r,l=i>=s.top-r&&i<=s.bottom+r;if(a&&l)return n=o}}),n},ro=function(t){function i(r,s){return function(a,l,d,c){var u=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return i(r(a,l,d,c),s)(a,l,d,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var n={},o=t.group;(!o||Oe(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=i(o.pull,!0),n.checkPut=i(o.put),n.revertClone=o.revertClone,t.group=n},so=function(){!no&&x&&v(x,"display","none")},ao=function(){!no&&x&&v(x,"display","")};ke&&!jn&&document.addEventListener("click",function(e){if(Ie)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ie=!1,!1},!0);var Ut=function(t){if(h){t=t.touches?t.touches[0]:t;var i=ws(t.clientX,t.clientY);if(i){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[rt]._onDragOver(n)}}},$s=function(t){h&&h.parentNode[rt]._isOutsideThisEl(t.target)};function w(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=bt({},t),e[rt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return oo(e,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&&!he,emptyInsertThreshold:5};fe.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);ro(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:bs,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?A(e,"pointerdown",this._onTapStart):(A(e,"mousedown",this._onTapStart),A(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(e,"dragover",this),A(e,"dragenter",this)),Ne.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),bt(this,ps())}w.prototype={constructor:w,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Kt=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i=this,n=this.el,o=this.options,r=o.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,c=o.filter;if(Ds(n),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&he&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=ct(l,o.draggable,n,!1),!(l&&l.animated)&&Le!==l)){if(Gt=ut(l),ge=ut(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){et({sortable:i,rootEl:d,name:"filter",targetEl:l,toEl:n,fromEl:n}),st("filter",i,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=ct(d,u.trim(),n,!1),u)return et({sortable:i,rootEl:u,name:"filter",targetEl:l,fromEl:n,toEl:n}),st("filter",i,{evt:t}),!0}),c)){r&&t.preventDefault();return}o.handle&&!ct(d,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,i,n){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(n&&!h&&n.parentNode===r){var d=U(n);if(M=r,h=n,N=h.parentNode,Bt=h.nextSibling,Le=n,Me=s.group,w.dragged=h,kt={target:h,clientX:(i||t).clientX,clientY:(i||t).clientY},to=kt.clientX-d.left,eo=kt.clientY-d.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,h.style["will-change"]="all",l=function(){if(st("delayEnded",o,{evt:t}),w.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Un&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,i),et({sortable:o,name:"choose",originalEvent:t}),at(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){qn(h,c.trim(),Ui)}),A(a,"dragover",Ut),A(a,"mousemove",Ut),A(a,"touchmove",Ut),s.supportPointer?(A(a,"pointerup",o._onDrop),!this.nativeDraggable&&A(a,"pointercancel",o._onDrop)):(A(a,"mouseup",o._onDrop),A(a,"touchend",o._onDrop),A(a,"touchcancel",o._onDrop)),Un&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),st("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(ce||wt))){if(w.eventCanceled){this._onDrop();return}s.supportPointer?(A(a,"pointerup",o._disableDelayedDrag),A(a,"pointercancel",o._disableDelayedDrag)):(A(a,"mouseup",o._disableDelayedDrag),A(a,"touchend",o._disableDelayedDrag),A(a,"touchcancel",o._disableDelayedDrag)),A(a,"mousemove",o._delayedDragTouchMoveHandler),A(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&A(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Ui(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"pointerup",this._disableDelayedDrag),S(t,"pointercancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||t.pointerType=="touch"&&t,!this.nativeDraggable||i?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):i?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(h,"dragend",this),A(M,"dragstart",this._onDragStart));try{je(function(){document.selection?document.selection.empty():window.getSelection().removeAllRanges()})}catch{}},_dragStarted:function(t,i){if(Jt=!1,M&&h){st("dragStarted",this,{evt:i}),this.nativeDraggable&&A(document,"dragover",$s);var n=this.options;!t&&at(h,n.dragClass,!1),at(h,n.ghostClass,!0),w.active=this,t&&this._appendGhost(),et({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(ht){this._lastX=ht.clientX,this._lastY=ht.clientY,so();for(var t=document.elementFromPoint(ht.clientX,ht.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ht.clientX,ht.clientY),t!==i);)i=t;if(h.parentNode[rt]._isOutsideThisEl(t),i)do{if(i[rt]){var n=void 0;if(n=i[rt]._onDragOver({clientX:ht.clientX,clientY:ht.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=zn(i));ao()}},_onTouchMove:function(t){if(kt){var i=this.options,n=i.fallbackTolerance,o=i.fallbackOffset,r=t.touches?t.touches[0]:t,s=x&&qt(x,!0),a=x&&s&&s.a,l=x&&s&&s.d,d=Ue&&Q&&Wn(Q),c=(r.clientX-kt.clientX+o.x)/(a||1)+(d?d[0]-Bi[0]:0)/(a||1),u=(r.clientY-kt.clientY+o.y)/(l||1)+(d?d[1]-Bi[1]:0)/(l||1);if(!w.active&&!Jt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(x){s?(s.e+=c-(Hi||0),s.f+=u-(Vi||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");v(x,"webkitTransform",p),v(x,"mozTransform",p),v(x,"msTransform",p),v(x,"transform",p),Hi=c,Vi=u,ht=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!x){var t=this.options.fallbackOnBody?document.body:M,i=U(h,!0,Ue,!0,t),n=this.options;if(Ue){for(Q=t;v(Q,"position")==="static"&&v(Q,"transform")==="none"&&Q!==document;)Q=Q.parentNode;Q!==document.body&&Q!==document.documentElement?(Q===document&&(Q=ft()),i.top+=Q.scrollTop,i.left+=Q.scrollLeft):Q=ft(),Bi=Wn(Q)}x=h.cloneNode(!0),at(x,n.ghostClass,!1),at(x,n.fallbackClass,!0),at(x,n.dragClass,!0),v(x,"transition",""),v(x,"transform",""),v(x,"box-sizing","border-box"),v(x,"margin",0),v(x,"top",i.top),v(x,"left",i.left),v(x,"width",i.width),v(x,"height",i.height),v(x,"opacity","0.8"),v(x,"position",Ue?"absolute":"fixed"),v(x,"zIndex","100000"),v(x,"pointerEvents","none"),w.ghost=x,t.appendChild(x),v(x,"transform-origin",to/parseInt(x.style.width)*100+"% "+eo/parseInt(x.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,o=t.dataTransfer,r=n.options;if(st("dragStart",this,{evt:t}),w.eventCanceled){this._onDrop();return}st("setupClone",this),w.eventCanceled||(I=Kn(h),I.removeAttribute("id"),I.draggable=!1,I.style["will-change"]="",this._hideClone(),at(I,this.options.chosenClass,!1),w.clone=I),n.cloneId=je(function(){st("clone",n),!w.eventCanceled&&(n.options.removeCloneOnHide||M.insertBefore(I,h),n._hideClone(),et({sortable:n,name:"clone"}))}),!i&&at(h,r.dragClass,!0),i?(Ie=!0,n._loopId=setInterval(n._emulateDragOver,50)):(S(document,"mouseup",n._onDrop),S(document,"touchend",n._onDrop),S(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,h)),A(document,"drop",n),v(h,"transform","translateZ(0)")),Jt=!0,n._dragStartId=je(n._dragStarted.bind(n,i,t)),A(document,"selectstart",n),me=!0,he&&v(document.body,"user-select","none")},_onDragOver:function(t){var i=this.el,n=t.target,o,r,s,a=this.options,l=a.group,d=w.active,c=Me===l,u=a.sort,p=W||d,f,g=this,y=!1;if(ki)return;function R(Ce,za){st(Ce,g,pt({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:n,completed:k,onMove:function(No,Xa){return Fe(M,i,h,o,No,U(No),t,Xa)},changed:it},za))}function H(){R("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function k(Ce){return R("dragOverCompleted",{insertion:Ce}),Ce&&(c?d._hideClone():d._showClone(g),g!==p&&(at(h,W?W.options.ghostClass:d.options.ghostClass,!1),at(h,a.ghostClass,!0)),W!==g&&g!==w.active?W=g:g===w.active&&W&&(W=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){R("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===i&&!n.animated)&&(Kt=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(h.parentNode[rt]._isOutsideThisEl(t.target),!Ce&&Ut(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function it(){lt=ut(h),Ct=ut(h,a.draggable),et({sortable:g,name:"change",toEl:i,newIndex:lt,newDraggableIndex:Ct,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=ct(n,a.draggable,i,!0),R("dragOver"),w.eventCanceled)return y;if(h.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return k(!1);if(Ie=!1,d&&!a.disabled&&(c?u||(s=N!==M):W===this||(this.lastPutMode=Me.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,n)==="vertical",o=U(h),R("dragOverValid"),w.eventCanceled)return y;if(s)return N=M,H(),this._hideClone(),R("revert"),w.eventCanceled||(Bt?M.insertBefore(h,Bt):M.appendChild(h)),k(!0);var J=Mi(i,a.draggable);if(!J||As(t,f,this)&&!J.animated){if(J===h)return k(!1);if(J&&i===t.target&&(n=J),n&&(r=U(n)),Fe(M,i,h,o,n,r,t,!!n)!==!1)return H(),J&&J.nextSibling?i.insertBefore(h,J.nextSibling):i.appendChild(h),N=i,it(),k(!0)}else if(J&&Ss(t,f,this)){var nt=Yt(i,0,a,!0);if(nt===h)return k(!1);if(n=nt,r=U(n),Fe(M,i,h,o,n,r,t,!1)!==!1)return H(),i.insertBefore(h,nt),N=i,it(),k(!0)}else if(n.parentNode===i){r=U(n);var b=0,L,K=h.parentNode!==i,z=!vs(h.animated&&h.toRect||o,n.animated&&n.toRect||r,f),Se=f?"top":"left",Ot=Yn(n,"top","top")||Yn(h,"top","top"),Ae=Ot?Ot.scrollTop:void 0;Kt!==n&&(L=r[Se],be=!1,He=!z&&a.invertSwap||K),b=_s(t,n,r,f,z?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,He,Kt===n);var xt;if(b!==0){var Ft=ut(h);do Ft-=b,xt=N.children[Ft];while(xt&&(v(xt,"display")==="none"||xt===x))}if(b===0||xt===n)return k(!1);Kt=n,ye=b;var _e=n.nextElementSibling,Rt=!1;Rt=b===1;var mi=Fe(M,i,h,o,n,r,t,Rt);if(mi!==!1)return(mi===1||mi===-1)&&(Rt=mi===1),ki=!0,setTimeout(Es,30),H(),Rt&&!_e?i.appendChild(h):n.parentNode.insertBefore(h,Rt?_e:n),Ot&&Jn(Ot,0,Ae-Ot.scrollTop),N=h.parentNode,L!==void 0&&!He&&(Ve=Math.abs(L-U(n)[Se])),it(),k(!0)}if(i.contains(h))return k(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Ut),S(document,"mousemove",Ut),S(document,"touchmove",Ut)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"pointercancel",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var i=this.el,n=this.options;if(lt=ut(h),Ct=ut(h,n.draggable),st("drop",this,{evt:t}),N=h&&h.parentNode,lt=ut(h),Ct=ut(h,n.draggable),w.eventCanceled){this._nulling();return}Jt=!1,He=!1,be=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fi(this.cloneId),Fi(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),he&&v(document.body,"user-select",""),v(h,"transform",""),t&&(me&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),x&&x.parentNode&&x.parentNode.removeChild(x),(M===N||W&&W.lastPutMode!=="clone")&&I&&I.parentNode&&I.parentNode.removeChild(I),h&&(this.nativeDraggable&&S(h,"dragend",this),Ui(h),h.style["will-change"]="",me&&!Jt&&at(h,W?W.options.ghostClass:this.options.ghostClass,!1),at(h,this.options.chosenClass,!1),et({sortable:this,name:"unchoose",toEl:N,newIndex:null,newDraggableIndex:null,originalEvent:t}),M!==N?(lt>=0&&(et({rootEl:N,name:"add",toEl:N,fromEl:M,originalEvent:t}),et({sortable:this,name:"remove",toEl:N,originalEvent:t}),et({rootEl:N,name:"sort",toEl:N,fromEl:M,originalEvent:t}),et({sortable:this,name:"sort",toEl:N,originalEvent:t})),W&&W.save()):lt!==Gt&&lt>=0&&(et({sortable:this,name:"update",toEl:N,originalEvent:t}),et({sortable:this,name:"sort",toEl:N,originalEvent:t})),w.active&&((lt==null||lt===-1)&&(lt=Gt,Ct=ge),et({sortable:this,name:"end",toEl:N,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){st("nulling",this),M=h=N=x=Bt=I=Le=_t=kt=ht=me=lt=Ct=Gt=ge=Kt=ye=W=Me=w.dragged=w.ghost=w.clone=w.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Hi=Vi=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),xs(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],i,n=this.el.children,o=0,r=n.length,s=this.options;o<r;o++)i=n[o],ct(i,s.draggable,this.el,!1)&&t.push(i.getAttribute(s.dataIdAttr)||Ts(i));return t},sort:function(t,i){var n={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];ct(a,this.options.draggable,o,!1)&&(n[r]=a)},this),i&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(o.removeChild(n[r]),o.appendChild(n[r]))}),i&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return ct(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var n=this.options;if(i===void 0)return n[t];var o=fe.modifyOption(this,t,i);typeof o<"u"?n[t]=o:n[t]=i,t==="group"&&ro(n)},destroy:function(){st("destroy",this);var t=this.el;t[rt]=null,S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart),S(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ne.splice(Ne.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_t){if(st("hideClone",this),w.eventCanceled)return;v(I,"display","none"),this.options.removeCloneOnHide&&I.parentNode&&I.parentNode.removeChild(I),_t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(st("showClone",this),w.eventCanceled)return;h.parentNode==M&&!this.options.group.revertClone?M.insertBefore(I,h):Bt?M.insertBefore(I,Bt):M.appendChild(I),this.options.group.revertClone&&this.animate(h,I),v(I,"display",""),_t=!1}}};function xs(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Fe(e,t,i,n,o,r,s,a){var l,d=e[rt],c=d.options.onMove,u;return window.CustomEvent&&!wt&&!ce?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=i,l.draggedRect=n,l.related=o||t,l.relatedRect=r||U(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),c&&(u=c.call(d,l,s)),u}function Ui(e){e.draggable=!1}function Es(){ki=!1}function Ss(e,t,i){var n=U(Yt(i.el,0,i.options,!0)),o=Qn(i.el,i.options,x),r=10;return t?e.clientX<o.left-r||e.clientY<n.top&&e.clientX<n.right:e.clientY<o.top-r||e.clientY<n.bottom&&e.clientX<n.left}function As(e,t,i){var n=U(Mi(i.el,i.options.draggable)),o=Qn(i.el,i.options,x),r=10;return t?e.clientX>o.right+r||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>o.bottom+r||e.clientX>n.right&&e.clientY>n.top}function _s(e,t,i,n,o,r,s,a){var l=n?e.clientY:e.clientX,d=n?i.height:i.width,c=n?i.top:i.left,u=n?i.bottom:i.right,p=!1;if(!s){if(a&&Ve<d*o){if(!be&&(ye===1?l>c+d*r/2:l<u-d*r/2)&&(be=!0),be)p=!0;else if(ye===1?l<c+Ve:l>u-Ve)return-ye}else if(l>c+d*(1-o)/2&&l<u-d*(1-o)/2)return Cs(t)}return p=p||s,p&&(l<c+d*r/2||l>u-d*r/2)?l>c+d/2?1:-1:0}function Cs(e){return ut(h)<ut(e)?1:-1}function Ts(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,n=0;i--;)n+=t.charCodeAt(i);return n.toString(36)}function Ds(e){Be.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var n=t[i];n.checked&&Be.push(n)}}function je(e){return setTimeout(e,0)}function Fi(e){return clearTimeout(e)}ke&&A(document,"touchmove",function(e){(w.active||Jt)&&e.cancelable&&e.preventDefault()}),w.utils={on:A,off:S,css:v,find:qn,is:function(t,i){return!!ct(t,i,t,!1)},extend:cs,throttle:Gn,closest:ct,toggleClass:at,clone:Kn,index:ut,nextTick:je,cancelNextTick:Fi,detectDirection:oo,getChild:Yt,expando:rt},w.get=function(e){return e[rt]},w.mount=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];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=pt(pt({},w.utils),n.utils)),fe.mount(n)})},w.create=function(e,t){return new w(e,t)},w.version=ds;var F=[],ve,ji,Zi=!1,zi,Xi,Ze,we;function Ps(){function e(){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 e.prototype={dragStarted:function(i){var n=i.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):n.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var n=i.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),lo(),ze(),hs()},nulling:function(){Ze=ji=ve=Zi=we=zi=Xi=null,F.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,n){var o=this,r=(i.touches?i.touches[0]:i).clientX,s=(i.touches?i.touches[0]:i).clientY,a=document.elementFromPoint(r,s);if(Ze=i,n||this.options.forceAutoScrollFallback||ce||wt||he){qi(i,this.options,a,n);var l=At(a,!0);Zi&&(!we||r!==zi||s!==Xi)&&(we&&lo(),we=setInterval(function(){var d=At(document.elementFromPoint(r,s),!0);d!==l&&(l=d,ze()),qi(i,o.options,d,n)},10),zi=r,Xi=s)}else{if(!this.options.bubbleScroll||At(a,!0)===ft()){ze();return}qi(i,this.options,At(a,!1),!1)}}},bt(e,{pluginName:"scroll",initializeByDefault:!0})}function ze(){F.forEach(function(e){clearInterval(e.pid)}),F=[]}function lo(){clearInterval(we)}var qi=Gn(function(e,t,i,n){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=ft(),d=!1,c;ji!==i&&(ji=i,ze(),ve=t.scroll,c=t.scrollFn,ve===!0&&(ve=At(i,!0)));var u=0,p=ve;do{var f=p,g=U(f),y=g.top,R=g.bottom,H=g.left,k=g.right,it=g.width,J=g.height,nt=void 0,b=void 0,L=f.scrollWidth,K=f.scrollHeight,z=v(f),Se=f.scrollLeft,Ot=f.scrollTop;f===l?(nt=it<L&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),b=J<K&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(nt=it<L&&(z.overflowX==="auto"||z.overflowX==="scroll"),b=J<K&&(z.overflowY==="auto"||z.overflowY==="scroll"));var Ae=nt&&(Math.abs(k-o)<=s&&Se+it<L)-(Math.abs(H-o)<=s&&!!Se),xt=b&&(Math.abs(R-r)<=s&&Ot+J<K)-(Math.abs(y-r)<=s&&!!Ot);if(!F[u])for(var Ft=0;Ft<=u;Ft++)F[Ft]||(F[Ft]={});(F[u].vx!=Ae||F[u].vy!=xt||F[u].el!==f)&&(F[u].el=f,F[u].vx=Ae,F[u].vy=xt,clearInterval(F[u].pid),(Ae!=0||xt!=0)&&(d=!0,F[u].pid=setInterval((function(){n&&this.layer===0&&w.active._onTouchMove(Ze);var _e=F[this.layer].vy?F[this.layer].vy*a:0,Rt=F[this.layer].vx?F[this.layer].vx*a:0;typeof c=="function"&&c.call(w.dragged.parentNode[rt],Rt,_e,e,Ze,F[this.layer].el)!=="continue"||Jn(F[this.layer].el,Rt,_e)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=At(p,!1)));Zi=d}},30),uo=function(t){var i=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(i){var d=n||r;a();var c=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,u=document.elementFromPoint(c.clientX,c.clientY);l(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function Yi(){}Yi.prototype={startIndex:null,dragStart:function(t){var i=t.oldDraggableIndex;this.startIndex=i},onSpill:function(t){var i=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=Yt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(i,o):this.sortable.el.appendChild(i),this.sortable.animateAll(),n&&n.animateAll()},drop:uo},bt(Yi,{pluginName:"revertOnSpill"});function Wi(){}Wi.prototype={onSpill:function(t){var i=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),o.animateAll()},drop:uo},bt(Wi,{pluginName:"removeOnSpill"}),w.mount(new Ps),w.mount(Wi,Yi);const Os=e=>{const t=e.item;let i=Array.prototype.slice.call(t.parentNode.childNodes);return i=i.filter(n=>n.nodeType!=Node.ELEMENT_NODE||!n.classList.contains("sortable-fallback")),i},Rs=(e,t,i,n,o,r)=>{const a=e.item.parentNode;for(const y of i)a.appendChild(y);if(e.oldIndex==e.newIndex)return;const l=n.getArray(),d=e.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===d),u=r.dataset.layer,p=l.find(y=>y.get(o)==u);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){n.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?n.insertAt(g,c):n.insertAt(g+1,c);break}t.requestUpdate()};function Ls(e,t,i,n){let o=[],r=null;e._sortable=w.create(e,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=Os(s),onMove:s=>{r=s.related},onEnd:s=>Rs(s,n,o,t,i,r)})}function Ms(e,t,i,n){const o=e.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(i)||(s.set(i,`layer ${a}`),r=!0),r&&n.requestUpdate()})}function Gi(e,t,i){let n=[];const o=(r,s,a)=>{n=[...n,...r.filter(d=>d.get(s)===a)];const l=r.filter(d=>d.getLayers);return l.length>0&&l.forEach(d=>o(d.getLayers().getArray(),s,a)),n};return o(e,t,i),n}function Is(e,t,i){if(!e||!t)return!1;if(!co(e,i))return!0;const n=e.get("minZoom"),o=e.get("maxZoom"),r=t.getView().getZoom();return r>n&&r<o}function co(e,t){const i=e.get("minZoom"),n=e.get("maxZoom");return!!(t&&(i!==-1/0||n!==1/0))}function Ns(e,t){var o,r,s;return!e||!t?void 0:e.getLayers?"group":((s=(o=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:o.ol_uid)==null?void 0:s.includes(e.getSource?(r=e.getSource())==null?void 0:r.ol_uid:void 0))?"draw":e.declutter_!==void 0?"vector":"raster"}const Hs=(e,t,i)=>{let n=t;return i.layer.getSource().getTileUrlFunction()&&(n||(n=i.layer.getSource().getTileUrlFunction()),i.layer.getSource().setTileUrlFunction((...o)=>rs(n(...o),e)),i.layer.getSource().setKey(new Date)),n};function Vs(e,t,i){const n="updateStyleVariables"in t,o="setStyle"in t,r=n?t.style_:i.style;let s=r==null?void 0:r.variables;if(s){const a=Ji(e);if(r.variables={...s,...a},n)t.updateStyleVariables(a);else if(o){const l=Bs(r);t.setStyle(l)}}}const Ji=e=>{const t={};for(const i in e)if(typeof e[i]=="object"&&e[i]!==null){const n=Ji(e[i]);for(const o in n)t[o]=n==null?void 0:n[o]}else t[i]=e==null?void 0:e[i];return t};function Bs(e){let t=e;if("variables"in e){let i=JSON.stringify(e);const{variables:n}=e;for(const o in n)typeof n[o]=="number"?i=i.replaceAll(`["var","${o}"]`,n[o]):i=i.replaceAll(`["var","${o}"]`,`"${n[o]}"`);t=JSON.parse(i)}return t}const ks=(e,t)=>{var i;if(e)return!("domainProperties"in e)||"domain"in e?{...e}:(i=Object.keys(e))==null?void 0:i.reduce((n,o)=>{if(o==="domainProperties"){const r=Ji(t);n.domain=e[o].map(s=>r[s])}else n[o]=e[o];return n},{})};function ho(e,t){var n;let i={};for(const o in e){const r=e[o].type;if(r&&r!=="object")i[o]=r==="number"?Number(t[o]):t[o];else if(typeof e[o]=="object"&&((n=e[o])!=null&&n.properties)){const s=ho(e[o].properties,t);Object.keys(s).length>0&&(i[o]=s)}}return i}function Us(e,t){var r,s,a,l,d;if(!t)return null;let i={},n="updateStyleVariables"in e?(r=e.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&n)i=n;else if((l=(a=e.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const c=new URL(e.getSource().getTileUrlFunction()([0,0,0]));i=Object.fromEntries(c.searchParams.entries())}else return null;const o=ho(((d=t.schema)==null?void 0:d.properties)||t.schema,i);return Object.keys(o).length?o:null}const Fs=(e,t)=>e==null?void 0:e.filter(i=>["remove","sort"].filter(n=>t!=null&&t.get("layerControlDisable")?n!=="sort":!0).includes(i)),js=(e,t)=>e==null?void 0:e.filter(i=>{let n=!0;return["remove","sort"].includes(i)&&(n=!1),i==="info"&&(n=t.get("description")),i==="config"&&(n=t.get("layerConfig")),i==="datetime"&&(n=t.get("layerDatetime")),i==="legend"&&(n=t.get("layerLegend")),n}),Zs=(e,t)=>$`
46
- <button slot="${e}-icon" class="icon">${t?e:D}</button>
47
- `,zs=e=>$`
45
+ */function Jn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),e.push.apply(e,n)}return e}function _t(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),o,r;for(r=0;r<n.length;r++)o=n[r],!(t.indexOf(o)>=0)&&(e[o]=i[o]);return e}function gs(i,t){if(i==null)return{};var e=fs(i,t),n,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);for(o=0;o<r.length;o++)n=r[o],!(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),_e=Lt(/Edge/i),Kn=Lt(/firefox/i),Ae=Lt(/safari/i)&&!Lt(/chrome/i)&&!Lt(/android/i),zi=Lt(/iP(ad|od|hone)/i),Qn=Lt(/chrome/i)&&Lt(/android/i),to={capture:!1,passive:!1};function C(i,t,e){i.addEventListener(t,e,!Rt&&to)}function _(i,t,e){i.removeEventListener(t,e,!Rt&&to)}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 eo(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=eo(i))}return null}var io=/\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(io," ").replace(" "+t+" "," ");i.className=(n+(e?" "+t:"")).replace(io," ")}}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 o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function no(i,t,e){if(i){var n=i.getElementsByTagName(t),o=0,r=n.length;if(e)for(;o<r;o++)e(n[o],o);return n}return[]}function At(){var i=document.scrollingElement;return i||document.documentElement}function W(i,t,e,n,o){if(!(!i.getBoundingClientRect&&i!==window)){var r,s,a,l,d,c,u;if(i!==window&&i.parentNode&&i!==At()?(r=i.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,d=r.right,c=r.height,u=r.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||e)&&i!==window&&(o=o||i.parentNode,!Rt))do if(o&&o.getBoundingClientRect&&(v(o,"transform")!=="none"||e&&v(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(v(o,"border-top-width")),a-=p.left+parseInt(v(o,"border-left-width")),l=s+r.height,d=a+r.width;break}while(o=o.parentNode);if(n&&i!==window){var f=se(o||i),g=f&&f.a,b=f&&f.d;f&&(s/=b,a/=g,u/=g,c/=b,l=s+c,d=a+u)}return{top:s,left:a,bottom:l,right:d,width:u,height:c}}}function oo(i,t,e){for(var n=Vt(i,!0),o=W(i)[t];n;){var r=W(n)[e],s=void 0;if(s=o>=r,!s)return n;if(n===At())break;n=Vt(n,!1)}return!1}function ae(i,t,e,n){for(var o=0,r=0,s=i.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==w.ghost&&(n||s[r]!==w.dragged)&&$t(s[r],e.draggable,i,!1)){if(o===t)return s[r];o++}r++}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 ro(i){var t=0,e=0,n=At();if(i)do{var o=se(i),r=o.a,s=o.d;t+=i.scrollLeft*r,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 At();var e=i,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=v(e);if(e.clientWidth<e.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return At();if(n||t)return e;n=!0}}while(e=e.parentNode);return At()}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 so(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 ao(i,t,e){i.scrollLeft+=t,i.scrollTop+=e}function lo(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 uo(i,t,e){var n={};return Array.from(i.children).forEach(function(o){var r,s,a,l;if(!(!$t(o,t.draggable,i,!1)||o.animated||o===e)){var d=W(o);n.left=Math.min((r=n.left)!==null&&r!==void 0?r: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(o){if(!(v(o,"display")==="none"||o===w.ghost)){i.push({target:o,rect:W(o)});var r=_t({},i[i.length-1].rect);if(o.thisAnimationDuration){var s=se(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ys(i,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,s=0;i.forEach(function(a){var l=0,d=a.target,c=d.fromRect,u=W(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,b=se(d,!0);b&&(u.top-=b.f,u.left-=b.e),d.toRect=u,d.thisAnimationDuration&&qi(p,u)&&!qi(c,u)&&(g.top-u.top)/(g.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=Es(g,p,f,o.options)),qi(u,c)||(d.prevFromRect=c,d.prevToRect=u,l||(l=o.options.animation),o.animate(d,g,u,l)),l&&(r=!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),r?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),i=[]},animate:function(n,o,r,s){if(s){v(n,"transition",""),v(n,"transform","");var a=se(this.el),l=a&&a.a,d=a&&a.d,c=(o.left-r.left)/(l||1),u=(o.top-r.top)/(d||1);n.animatingX=!!c,n.animatingY=!!u,v(n,"transform","translate3d("+c+"px,"+u+"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 o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";le.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](_t({sortable:e},n)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](_t({sortable:e},n)))})},initializePlugins:function(t,e,n,o){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 r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,e){var n={};return le.forEach(function(o){typeof o.eventProperties=="function"&&Ot(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return le.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],n))}),o}};function $s(i){var t=i.sortable,e=i.rootEl,n=i.name,o=i.targetEl,r=i.cloneEl,s=i.toEl,a=i.fromEl,l=i.oldIndex,d=i.newIndex,c=i.oldDraggableIndex,u=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&&!_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=o||e,b.clone=r,b.oldIndex=l,b.newIndex=d,b.oldDraggableIndex=c,b.newDraggableIndex=u,b.originalEvent=p,b.pullMode=f?f.lastPutMode:void 0;var z=_t(_t({},g),Te.getEventProperties(n,t));for(var ct in z)b[ct]=z[ct];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]:{},o=n.evt,r=gs(n,Ss);Te.pluginEvent.bind(w)(t,e,_t({dragEl:h,parentEl:j,ghostEl:E,rootEl:B,nextEl:Gt,lastDownEl:ze,cloneEl:U,cloneHidden:Bt,dragStarted:Pe,putSortable:rt,activeSortable:w.active,originalEvent:o,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:kt,hideGhostForTarget:yo,unhideGhostForTarget:bo,cloneNowHidden:function(){Bt=!0},cloneNowShown:function(){Bt=!1},dispatchSortableEvent:function(a){ut({sortable:e,name:a,originalEvent:o})}},r))};function ut(i){$s(_t({putSortable:rt,cloneEl:U,targetEl:h,rootEl:B,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:kt},i))}var h,j,E,B,Gt,ze,U,Bt,de,vt,De,kt,Ze,rt,ue=!1,qe=!1,Xe=[],Jt,St,Yi,Wi,co,ho,Pe,ce,Oe,Le=!1,Ye=!1,We,lt,Gi=[],Ji=!1,Ge=[],Je=typeof document<"u",Ke=zi,po=_e||Rt?"cssFloat":"float",_s=Je&&!Qn&&!zi&&"draggable"in document.createElement("div"),fo=function(){if(Je){if(Rt)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),go=function(t,e){var n=v(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=ae(t,0,e),s=ae(t,1,e),a=r&&v(r),l=s&&v(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+W(r).width,c=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(r&&a.float&&a.float!=="none"){var u=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=o&&n[po]==="none"||s&&n[po]==="none"&&d+c>o)?"vertical":"horizontal"},As=function(t,e,n){var o=n?t.left:t.top,r=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 o===a||r===l||o+s/2===a+d/2},Cs=function(t,e){var n;return Xe.some(function(o){var r=o[pt].options.emptyInsertThreshold;if(!(!r||Zi(o))){var s=W(o),a=t>=s.left-r&&t<=s.right+r,l=e>=s.top-r&&e<=s.bottom+r;if(a&&l)return n=o}}),n},mo=function(t){function e(r,s){return function(a,l,d,c){var u=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return e(r(a,l,d,c),s)(a,l,d,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var n={},o=t.group;(!o||Fe(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},yo=function(){!fo&&E&&v(E,"display","none")},bo=function(){!fo&&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 o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);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 go(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&&(!Ae||zi),emptyInsertThreshold:5};Te.initializePlugins(this,i,e);for(var n in e)!(n in t)&&(t[n]=e[n]);mo(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:_s,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&&(ce=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,o=this.options,r=o.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,c=o.filter;if(Ns(n),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ae&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=$t(l,o.draggable,n,!1),!(l&&l.animated)&&ze!==l)){if(de=Et(l),De=Et(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){ut({sortable:e,rootEl:d,name:"filter",targetEl:l,toEl:n,fromEl:n}),ft("filter",e,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=$t(d,u.trim(),n,!1),u)return ut({sortable:e,rootEl:u,name:"filter",targetEl:l,fromEl:n,toEl:n}),ft("filter",e,{evt:t}),!0}),c)){r&&t.preventDefault();return}o.handle&&!$t(d,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(n&&!h&&n.parentNode===r){var d=W(n);if(B=r,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},co=Jt.clientX-d.left,ho=Jt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(ft("delayEnded",o,{evt:t}),w.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Kn&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,e),ut({sortable:o,name:"choose",originalEvent:t}),bt(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){no(h,c.trim(),Ki)}),C(a,"dragover",Kt),C(a,"mousemove",Kt),C(a,"touchmove",Kt),s.supportPointer?(C(a,"pointerup",o._onDrop),!this.nativeDraggable&&C(a,"pointercancel",o._onDrop)):(C(a,"mouseup",o._onDrop),C(a,"touchend",o._onDrop),C(a,"touchcancel",o._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(w.eventCanceled){this._onDrop();return}s.supportPointer?(C(a,"pointerup",o._disableDelayedDrag),C(a,"pointercancel",o._disableDelayedDrag)):(C(a,"mouseup",o._disableDelayedDrag),C(a,"touchend",o._disableDelayedDrag),C(a,"touchcancel",o._disableDelayedDrag)),C(a,"mousemove",o._delayedDragTouchMoveHandler),C(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&C(a,"pointermove",o._delayedDragTouchMoveHandler),o._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;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"pointerup",this._disableDelayedDrag),_(t,"pointercancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(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(B,"dragstart",this._onDragStart));try{document.selection?ti(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(ue=!1,B&&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(),ut({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,yo();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=eo(e));bo()}},_onTouchMove:function(t){if(Jt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=E&&se(E,!0),a=E&&s&&s.a,l=E&&s&&s.d,d=Ke&&lt&&ro(lt),c=(r.clientX-Jt.clientX+o.x)/(a||1)+(d?d[0]-Gi[0]:0)/(a||1),u=(r.clientY-Jt.clientY+o.y)/(l||1)+(d?d[1]-Gi[1]:0)/(l||1);if(!w.active&&!ue){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(E){s?(s.e+=c-(Yi||0),s.f+=u-(Wi||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};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=c,Wi=u,St=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!E){var t=this.options.fallbackOnBody?document.body:B,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=At()),e.top+=lt.scrollTop,e.left+=lt.scrollLeft):lt=At(),Gi=ro(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",co/parseInt(E.style.width)*100+"% "+ho/parseInt(E.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;if(ft("dragStart",this,{evt:t}),w.eventCanceled){this._onDrop();return}ft("setupClone",this),w.eventCanceled||(U=lo(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||B.insertBefore(U,h),n._hideClone(),ut({sortable:n,name:"clone"}))}),!e&&bt(h,r.dragClass,!0),e?(qe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,h)),C(document,"drop",n),v(h,"transform","translateZ(0)")),ue=!0,n._dragStartId=ti(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Pe=!0,window.getSelection().removeAllRanges(),Ae&&v(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,o,r,s,a=this.options,l=a.group,d=w.active,c=Ze===l,u=a.sort,p=rt||d,f,g=this,b=!1;if(Ji)return;function V(wt,Qt){ft(wt,g,_t({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:n,completed:z,onMove:function(te,It){return Qe(B,e,h,o,te,W(te),t,It)},changed:ct},Qt))}function et(){V("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function z(wt){return V("dragOverCompleted",{insertion:wt}),wt&&(c?d._hideClone():d._showClone(g),g!==p&&(bt(h,rt?rt.options.ghostClass:d.options.ghostClass,!1),bt(h,a.ghostClass,!0)),rt!==g&&g!==w.active?rt=g:g===w.active&&rt&&(rt=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)&&(ce=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 ct(){vt=Et(h),kt=Et(h,a.draggable),ut({sortable:g,name:"change",toEl:e,newIndex:vt,newDraggableIndex:kt,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&&(c?u||(s=j!==B):rt===this||(this.lastPutMode=Ze.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,n)==="vertical",o=W(h),V("dragOverValid"),w.eventCanceled)return b;if(s)return j=B,et(),this._hideClone(),V("revert"),w.eventCanceled||(Gt?B.insertBefore(h,Gt):B.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&&(r=W(n)),Qe(B,e,h,o,n,r,t,!!n)!==!1)return et(),it&&it.nextSibling?e.insertBefore(h,it.nextSibling):e.appendChild(h),j=e,ct(),z(!0)}else if(it&&Os(t,f,this)){var $=ae(e,0,a,!0);if($===h)return z(!1);if(n=$,r=W(n),Qe(B,e,h,o,n,r,t,!1)!==!1)return et(),e.insertBefore(h,$),j=e,ct(),z(!0)}else if(n.parentNode===e){r=W(n);var m=0,A,N=h.parentNode!==e,M=!As(h.animated&&h.toRect||o,n.animated&&n.toRect||r,f),J=f?"top":"left",K=oo(n,"top","top")||oo(h,"top","top"),k=K?K.scrollTop:void 0;ce!==n&&(A=r[J],Le=!1,Ye=!M&&a.invertSwap||N),m=Rs(t,n,r,f,M?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ye,ce===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);ce=n,Oe=m;var gt=n.nextElementSibling,at=!1;at=m===1;var mt=Qe(B,e,h,o,n,r,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&&ao(K,0,k-K.scrollTop),j=h.parentNode,A!==void 0&&!Ye&&(We=Math.abs(A-W(n)[J])),ct(),z(!0)}if(e.contains(h))return z(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Kt),_(document,"mousemove",Kt),_(document,"touchmove",Kt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"pointercancel",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(vt=Et(h),kt=Et(h,n.draggable),ft("drop",this,{evt:t}),j=h&&h.parentNode,vt=Et(h),kt=Et(h,n.draggable),w.eventCanceled){this._nulling();return}ue=!1,Ye=!1,Le=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qi(this.cloneId),Qi(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ae&&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),(B===j||rt&&rt.lastPutMode!=="clone")&&U&&U.parentNode&&U.parentNode.removeChild(U),h&&(this.nativeDraggable&&_(h,"dragend",this),Ki(h),h.style["will-change"]="",Pe&&!ue&&bt(h,rt?rt.options.ghostClass:this.options.ghostClass,!1),bt(h,this.options.chosenClass,!1),ut({sortable:this,name:"unchoose",toEl:j,newIndex:null,newDraggableIndex:null,originalEvent:t}),B!==j?(vt>=0&&(ut({rootEl:j,name:"add",toEl:j,fromEl:B,originalEvent:t}),ut({sortable:this,name:"remove",toEl:j,originalEvent:t}),ut({rootEl:j,name:"sort",toEl:j,fromEl:B,originalEvent:t}),ut({sortable:this,name:"sort",toEl:j,originalEvent:t})),rt&&rt.save()):vt!==de&&vt>=0&&(ut({sortable:this,name:"update",toEl:j,originalEvent:t}),ut({sortable:this,name:"sort",toEl:j,originalEvent:t})),w.active&&((vt==null||vt===-1)&&(vt=de,kt=De),ut({sortable:this,name:"end",toEl:j,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ft("nulling",this),B=h=j=E=Gt=U=ze=Bt=Jt=St=Pe=vt=kt=de=De=ce=Oe=rt=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,o=0,r=n.length,s=this.options;o<r;o++)e=n[o],$t(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||Is(e));return t},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];$t(a,this.options.draggable,o,!1)&&(n[r]=a)},this),e&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(o.removeChild(n[r]),o.appendChild(n[r]))}),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 o=Te.modifyOption(this,t,e);typeof o<"u"?n[t]=o:n[t]=e,t==="group"&&mo(n)},destroy:function(){ft("destroy",this);var t=this.el;t[pt]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(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(!Bt){if(ft("hideClone",this),w.eventCanceled)return;v(U,"display","none"),this.options.removeCloneOnHide&&U.parentNode&&U.parentNode.removeChild(U),Bt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Bt){if(ft("showClone",this),w.eventCanceled)return;h.parentNode==B&&!this.options.group.revertClone?B.insertBefore(U,h):Gt?B.insertBefore(U,Gt):B.appendChild(U),this.options.group.revertClone&&this.animate(h,U),v(U,"display",""),Bt=!1}}};function Ds(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function Qe(i,t,e,n,o,r,s,a){var l,d=i[pt],c=d.options.onMove,u;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=o||t,l.relatedRect=r||W(t),l.willInsertAfter=a,l.originalEvent=s,i.dispatchEvent(l),c&&(u=c.call(d,l,s)),u}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)),o=uo(e.el,e.options,E),r=10;return t?i.clientX<o.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<o.top-r||i.clientY<n.bottom&&i.clientX<n.left}function Ls(i,t,e){var n=W(Zi(e.el,e.options.draggable)),o=uo(e.el,e.options,E),r=10;return t?i.clientX>o.right+r||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>o.bottom+r||i.clientX>n.right&&i.clientY>n.top}function Rs(i,t,e,n,o,r,s,a){var l=n?i.clientY:i.clientX,d=n?e.height:e.width,c=n?e.top:e.left,u=n?e.bottom:e.right,p=!1;if(!s){if(a&&We<d*o){if(!Le&&(Oe===1?l>c+d*r/2:l<u-d*r/2)&&(Le=!0),Le)p=!0;else if(Oe===1?l<c+We:l>u-We)return-Oe}else if(l>c+d*(1-o)/2&&l<u-d*(1-o)/2)return Ms(t)}return p=p||s,p&&(l<c+d*r/2||l>u-d*r/2)?l>c+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||ue)&&i.cancelable&&i.preventDefault()}),w.utils={on:C,off:_,css:v,find:no,is:function(t,e){return!!$t(t,e,t,!1)},extend:bs,throttle:so,closest:$t,toggleClass:bt,clone:lo,index:Et,nextTick:ti,cancelNextTick:Qi,detectDirection:go,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=_t(_t({},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,on,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?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),vo(),ii(),vs()},nulling:function(){ei=tn=Re=en=Me=nn=on=null,G.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var o=this,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,s);if(ei=e,n||this.options.forceAutoScrollFallback||_e||Rt||Ae){rn(e,this.options,a,n);var l=Vt(a,!0);en&&(!Me||r!==nn||s!==on)&&(Me&&vo(),Me=setInterval(function(){var d=Vt(document.elementFromPoint(r,s),!0);d!==l&&(l=d,ii()),rn(e,o.options,d,n)},10),nn=r,on=s)}else{if(!this.options.bubbleScroll||Vt(a,!0)===At()){ii();return}rn(e,this.options,Vt(a,!1),!1)}}},Ot(i,{pluginName:"scroll",initializeByDefault:!0})}function ii(){G.forEach(function(i){clearInterval(i.pid)}),G=[]}function vo(){clearInterval(Me)}var rn=so(function(i,t,e,n){if(t.scroll){var o=(i.touches?i.touches[0]:i).clientX,r=(i.touches?i.touches[0]:i).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=At(),d=!1,c;tn!==e&&(tn=e,ii(),Re=t.scroll,c=t.scrollFn,Re===!0&&(Re=Vt(e,!0)));var u=0,p=Re;do{var f=p,g=W(f),b=g.top,V=g.bottom,et=g.left,z=g.right,ct=g.width,it=g.height,$=void 0,m=void 0,A=f.scrollWidth,N=f.scrollHeight,M=v(f),J=f.scrollLeft,K=f.scrollTop;f===l?($=ct<A&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):($=ct<A&&(M.overflowX==="auto"||M.overflowX==="scroll"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"));var k=$&&(Math.abs(z-o)<=s&&J+ct<A)-(Math.abs(et-o)<=s&&!!J),I=m&&(Math.abs(V-r)<=s&&K+it<N)-(Math.abs(b-r)<=s&&!!K);if(!G[u])for(var Y=0;Y<=u;Y++)G[Y]||(G[Y]={});(G[u].vx!=k||G[u].vy!=I||G[u].el!==f)&&(G[u].el=f,G[u].vx=k,G[u].vy=I,clearInterval(G[u].pid),(k!=0||I!=0)&&(d=!0,G[u].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 c=="function"&&c.call(w.dragged.parentNode[pt],at,gt,i,ei,G[this.layer].el)!=="continue"||ao(G[this.layer].el,at,gt)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=Vt(p,!1)));en=d}},30),wo=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var d=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,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 o=ae(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:wo},Ot(sn,{pluginName:"revertOnSpill"});function an(){}an.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:wo},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},Bs=(i,t,e,n,o,r)=>{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(o),c=l.find(b=>b.get(o)===d),u=r.dataset.layer,p=l.find(b=>b.get(o)==u);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){n.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?n.insertAt(g,c):n.insertAt(g+1,c);break}t.requestUpdate()};function ks(i,t,e,n){let o=[],r=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=>o=Vs(s),onMove:s=>{r=s.related},onEnd:s=>Bs(s,n,o,t,e,r)})}function Us(i,t,e,n){const o=i.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(e)||(s.set(e,`layer ${a}`),r=!0),r&&n.requestUpdate()})}function ln(i,t,e){let n=[];const o=(r,s,a)=>{n=[...n,...r.filter(d=>d.get(s)===a)];const l=r.filter(d=>d.getLayers);return l.length>0&&l.forEach(d=>o(d.getLayers().getArray(),s,a)),n};return o(i,t,e),n}function Fs(i,t,e){if(!i||!t)return!1;if(!xo(i,e))return!0;const n=i.get("minZoom"),o=i.get("maxZoom"),r=t.getView().getZoom();return r>n&&r<o}function xo(i,t){const e=i.get("minZoom"),n=i.get("maxZoom");return!!(t&&(e!==-1/0||n!==1/0))}function js(i,t){var o,r,s;return!i||!t?void 0:i.getLayers?"group":((s=(o=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:o.ol_uid)==null?void 0:s.includes(i.getSource?(r=i.getSource())==null?void 0:r.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((...o)=>hs(n(...o),i)),e.layer.getSource().setKey(new Date)),n};function Zs(i,t,e){const n="updateStyleVariables"in t,o="setStyle"in t,r=n?t.style_:e.style;let s=r==null?void 0:r.variables;if(s){const a=dn(i);if(r.variables={...s,...a},n)t.updateStyleVariables(a);else if(o){const l=qs(r);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 o in n)t[o]=n==null?void 0:n[o]}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 o in n)typeof n[o]=="number"?e=e.replaceAll(`["var","${o}"]`,n[o]):e=e.replaceAll(`["var","${o}"]`,`"${n[o]}"`);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,o)=>{if(o==="domainProperties"){const r=dn(t);n.domain=i[o].map(s=>r[s])}else n[o]=i[o];return n},{})};function Eo(i,t){var n;let e={};for(const o in i){const r=i[o].type;if(r&&r!=="object")e[o]=r==="number"?Number(t[o]):t[o];else if(typeof i[o]=="object"&&((n=i[o])!=null&&n.properties)){const s=Eo(i[o].properties,t);Object.keys(s).length>0&&(e[o]=s)}}return e}function Ys(i,t){var r,s,a,l,d;if(!t)return null;let e={},n="updateStyleVariables"in i?(r=i.style_)==null?void 0:r.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 c=new URL(i.getSource().getTileUrlFunction()([0,0,0]));e=Object.fromEntries(c.searchParams.entries())}else return null;const o=Eo(((d=t.schema)==null?void 0:d.properties)||t.schema,e);return Object.keys(o).length?o: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`
48
48
  <button
49
49
  class="remove-icon icon"
50
- @click=${()=>{const{layer:t}=e;t==null||t.set("layerControlOptional",!0),t==null||t.setVisible(!1),e.dispatchEvent(new CustomEvent("changed",{detail:t,bubbles:!0}))}}
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
- ${e.unstyled?"x":D}
52
+ ${i.unstyled?"x":O}
53
53
  </button>
54
- `,Xs=e=>$`
54
+ `,Qs=i=>x`
55
55
  <span class="button sort-icon icon drag-handle">
56
- ${e?"═":D}
56
+ ${i?"═":O}
57
57
  </span>
58
- `,po=e=>{var i;const t=["layerControlHide","layerControlOptional"];return(i=e==null?void 0:e.getArray())==null?void 0:i.filter(n=>t.every(o=>!n.get(o)))};/**
58
+ `,$o=i=>{var e;const t=["layerControlHide","layerControlOptional"];return(e=i==null?void 0:i.getArray())==null?void 0:e.filter(n=>t.every(o=>!n.get(o)))};/**
59
59
  * @license
60
60
  * Copyright 2020 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */const fo=Ci(class extends Ti{constructor(e){if(super(e),e.type!==St.PROPERTY&&e.type!==St.ATTRIBUTE&&e.type!==St.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ar(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===dt||t===D)return t;const i=e.element,n=e.name;if(e.type===St.PROPERTY){if(t===i[n])return dt}else if(e.type===St.BOOLEAN_ATTRIBUTE){if(!!t===i.hasAttribute(n))return dt}else if(e.type===St.ATTRIBUTE&&i.getAttribute(n)===t+"")return dt;return Pn(e),t}});/**
62
+ */const So=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(!fr(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}});/**
63
63
  * @license
64
64
  * Copyright 2017 Google LLC
65
65
  * SPDX-License-Identifier: BSD-3-Clause
66
- */class Ki extends Ti{constructor(t){if(super(t),this.it=D,t.type!==St.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===D||t==null)return this._t=void 0,this.it=t;if(t===dt)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 i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Ki.directiveName="unsafeHTML",Ki.resultType=1;const qs=Ci(Ki);/**
66
+ */class un 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:[]}}}un.directiveName="unsafeHTML",un.resultType=1;const ta=Hi(un);/**
67
67
  * @license
68
68
  * Copyright 2021 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */function*Xe(e,t){if(e!==void 0){let i=0;for(const n of e)yield t(n,i++)}}var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function go(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mo="Expected a function",yo=NaN,Ys="[object Symbol]",Ws=/^\s+|\s+$/g,Gs=/^[-+]0x[0-9a-f]+$/i,Js=/^0b[01]+$/i,Ks=/^0o[0-7]+$/i,Qs=parseInt,ta=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,ea=typeof self=="object"&&self&&self.Object===Object&&self,ia=ta||ea||Function("return this")(),na=Object.prototype,oa=na.toString,ra=Math.max,sa=Math.min,Qi=function(){return ia.Date.now()};function aa(e,t,i){var n,o,r,s,a,l,d=0,c=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(mo);t=bo(t)||0,qe(i)&&(c=!!i.leading,u="maxWait"in i,r=u?ra(bo(i.maxWait)||0,t):r,p="trailing"in i?!!i.trailing:p);function f(b){var L=n,K=o;return n=o=void 0,d=b,s=e.apply(K,L),s}function g(b){return d=b,a=setTimeout(H,t),c?f(b):s}function y(b){var L=b-l,K=b-d,z=t-L;return u?sa(z,r-K):z}function R(b){var L=b-l,K=b-d;return l===void 0||L>=t||L<0||u&&K>=r}function H(){var b=Qi();if(R(b))return k(b);a=setTimeout(H,y(b))}function k(b){return a=void 0,p&&n?f(b):(n=o=void 0,s)}function it(){a!==void 0&&clearTimeout(a),d=0,n=l=o=a=void 0}function J(){return a===void 0?s:k(Qi())}function nt(){var b=Qi(),L=R(b);if(n=arguments,o=this,l=b,L){if(a===void 0)return g(l);if(u)return a=setTimeout(H,t),f(l)}return a===void 0&&(a=setTimeout(H,t)),s}return nt.cancel=it,nt.flush=J,nt}function la(e,t,i){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(mo);return qe(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),aa(e,t,{leading:n,maxWait:t,trailing:o})}function qe(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function da(e){return!!e&&typeof e=="object"}function ua(e){return typeof e=="symbol"||da(e)&&oa.call(e)==Ys}function bo(e){if(typeof e=="number")return e;if(ua(e))return yo;if(qe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Ws,"");var i=Js.test(e);return i||Ks.test(e)?Qs(e.slice(2),i?2:8):Gs.test(e)?yo:+e}var ca=la;const vo=go(ca);/**
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 _o(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var cn,Ao;function ea(){if(Ao)return cn;Ao=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^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,c=l||d||Function("return this")(),u=Object.prototype,p=u.toString,f=Math.max,g=Math.min,b=function(){return c.Date.now()};function V(m,A,N){var M,J,K,k,I,Y,gt=0,at=!1,mt=!1,wt=!0;if(typeof m!="function")throw new TypeError(i);A=$(A)||0,z(N)&&(at=!!N.leading,mt="maxWait"in N,K=mt?f($(N.maxWait)||0,A):K,wt="trailing"in N?!!N.trailing:wt);function Qt(H){var yt=M,jt=J;return M=J=void 0,gt=H,k=m.apply(jt,yt),k}function Ai(H){return gt=H,I=setTimeout(ee,A),at?Qt(H):k}function te(H){var yt=H-Y,jt=H-gt,jo=A-yt;return mt?g(jo,K-jt):jo}function It(H){var yt=H-Y,jt=H-gt;return Y===void 0||yt>=A||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,k)}function fn(){I!==void 0&&clearTimeout(I),gt=0,M=Y=J=I=void 0}function Ve(){return I===void 0?k:Ci(b())}function F(){var H=b(),yt=It(H);if(M=arguments,J=this,Y=H,yt){if(I===void 0)return Ai(Y);if(mt)return I=setTimeout(ee,A),Qt(Y)}return I===void 0&&(I=setTimeout(ee,A)),k}return F.cancel=fn,F.flush=Ve,F}function et(m,A,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,A,{leading:M,maxWait:A,trailing:J})}function z(m){var A=typeof m;return!!m&&(A=="object"||A=="function")}function ct(m){return!!m&&typeof m=="object"}function it(m){return typeof m=="symbol"||ct(m)&&p.call(m)==e}function $(m){if(typeof m=="number")return m;if(it(m))return t;if(z(m)){var A=typeof m.valueOf=="function"?m.valueOf():m;m=z(A)?A+"":A}if(typeof m!="string")return m===0?m:+m;m=m.replace(n,"");var N=r.test(m);return N||s.test(m)?a(m.slice(2),N?2:8):o.test(m)?t:+m}return cn=et,cn}var ia=ea();const Co=_o(ia);/**
71
71
  * @license
72
72
  * Copyright 2018 Google LLC
73
73
  * SPDX-License-Identifier: BSD-3-Clause
74
- */const Ye=e=>e??D;class wo extends tt{constructor(){super();P(this,We,dn`
74
+ */const oi=i=>i??O;class To extends dt{constructor(){super();L(this,ri,wn`
75
75
  .legend-container {
76
76
  display: flex;
77
77
  justify-content: center;
@@ -83,31 +83,32 @@
83
83
  --cle-font-size: inherit;
84
84
  --cle-font-weight: inherit --cle-letter-spacing: inherit;
85
85
  --cle-letter-spacing-title: inherit;
86
+ --cle-padding: 0;
86
87
  }
87
- `);P(this,Ge,"");this.unstyled=!1,this.noShadow=!1,this.layerLegend=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return customElements.get("color-legend")||console.error("Please import `color-legend-element` in order to use layerLegend"),$`
88
+ `);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`
88
89
  <style>
89
- ${_(this,We)}
90
- ${!this.unstyled&&_(this,Ge)}
90
+ ${T(this,ri)}
91
+ ${!this.unstyled&&T(this,si)}
91
92
  </style>
92
- ${Z(this.layerLegend,()=>$`
93
+ ${Q(this.layerLegend,()=>x`
93
94
  <div class="legend-container">
94
95
  <!-- Render color-legend-->
95
96
  <color-legend
96
97
  id="${this.layer.get("id")}"
97
98
  width=${this.layerLegend.width??325}
98
- scaleType="${Ye(this.layerLegend.scaleType)}"
99
- markType="${Ye(this.layerLegend.markType)}"
100
- titleText="${Ye(this.layerLegend.title)}"
99
+ scaleType="${oi(this.layerLegend.scaleType)}"
100
+ markType="${oi(this.layerLegend.markType)}"
101
+ titleText="${oi(this.layerLegend.title)}"
101
102
  .range=${this.layerLegend.range}
102
103
  .domain=${this.layerLegend.domain}
103
- tickFormat="${Ye(this.layerLegend.tickFormat)}"
104
+ tickFormat="${oi(this.layerLegend.tickFormat)}"
104
105
  .ticks=${this.layerLegend.ticks??5}
105
106
  .tickValues=${this.layerLegend.tickValues}
106
107
  >
107
108
  </color-legend>
108
109
  </div>
109
110
  `)}
110
- `}}We=new WeakMap,Ge=new WeakMap,V(wo,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerLegend:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-legend",wo);class $o extends tt{constructor(){super();P(this,xe);P(this,$t,{});P(this,Qt,null);P(this,$e);P(this,Je,dn`
111
+ `}}ri=new WeakMap,si=new WeakMap,Z(To,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerLegend:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-legend",To);class Do extends dt{constructor(){super();L(this,Ne);L(this,Mt,{});L(this,he,null);L(this,Ie);L(this,ai,wn`
111
112
  color-legend {
112
113
  --cle-background: transparent;
113
114
  --cle-font-family: inherit;
@@ -115,34 +116,34 @@
115
116
  --cle-font-weight: inherit --cle-letter-spacing: inherit;
116
117
  --cle-letter-spacing-title: inherit;
117
118
  }
118
- `);P(this,Ke,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.throttleDataChange=vo(j(this,xe,rn),1e3)}updated(i){if(i.has("layerConfig")){const n=this.layerConfig.type==="style"||this.layerConfig.style?100:1e3;this.throttleDataChange=vo(j(this,xe,rn),n),this.requestUpdate()}}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){ee(this,Qt,Us(this.layer,this.layerConfig)),Object.keys(_(this,$t)).length!==0&&ee(this,Qt,_(this,$t)),customElements.get("eox-jsonform")||console.error("Please import @eox/jsonform in order to use layerconfig");const i={disable_edit_json:!0,disable_collapse:!0,disable_properties:!0};return $`
119
+ `);L(this,li,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.throttleDataChange=Co(q(this,Ne,mn),1e3)}updated(e){if(e.has("layerConfig")){const n=this.layerConfig.type==="style"||this.layerConfig.style?100:1e3;this.throttleDataChange=Co(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`
119
120
  <style>
120
- ${_(this,Je)}
121
- ${!this.unstyled&&_(this,Ke)}
121
+ ${T(this,ai)}
122
+ ${!this.unstyled&&T(this,li)}
122
123
  </style>
123
- ${Z(this.layerConfig,()=>$`
124
- ${Z(this.layerConfig.legend,()=>$`
124
+ ${Q(this.layerConfig,()=>x`
125
+ ${Q(this.layerConfig.legend,()=>x`
125
126
  <eox-layercontrol-layer-legend
126
127
  .noShadow=${!0}
127
128
  .unstyled=${this.unstyled}
128
129
  .layer=${this.layer}
129
- .layerLegend=${ks(this.layerConfig.legend,_(this,$t))}
130
+ .layerLegend=${Xs(this.layerConfig.legend,T(this,Mt))}
130
131
  ></eox-layercontrol-layer-legend>
131
132
  `)}
132
133
  <!-- Render a JSON form for layer configuration -->
133
134
  <eox-jsonform
134
135
  .schema=${this.layerConfig.schema}
135
- .value=${_(this,Qt)}
136
- .options=${i}
136
+ .value=${T(this,he)}
137
+ .options=${e}
137
138
  @change=${this.throttleDataChange}
138
139
  ></eox-jsonform>
139
140
  `)}
140
- `}}$t=new WeakMap,Qt=new WeakMap,$e=new WeakMap,xe=new WeakSet,rn=function(i){ee(this,$t,i.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?Vs(_(this,$t),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):ee(this,$e,Hs(_(this,$t),_(this,$e),this)),this.requestUpdate()},Je=new WeakMap,Ke=new WeakMap,V($o,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",$o);class xo extends tt{constructor(){super();P(this,Qe);P(this,ti,"");P(this,ei,"");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"),$`
141
+ `}}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(Do,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",Do);class Po extends dt{constructor(){super();L(this,di);L(this,ui,"");L(this,ci,"");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`
141
142
  <style>
142
- ${_(this,ti)}
143
- ${!this.unstyled&&_(this,ei)}
143
+ ${T(this,ui)}
144
+ ${!this.unstyled&&T(this,ci)}
144
145
  </style>
145
- ${Z(this.layerDatetime,()=>$`
146
+ ${Q(this.layerDatetime,()=>x`
146
147
  <!-- Render a Timecontrol for layer date time -->
147
148
  <eox-timecontrol
148
149
  ?unstyled=${this.unstyled}
@@ -153,36 +154,50 @@
153
154
  .controlValues=${this.layerDatetime.controlValues}
154
155
  .controlProperty=${void 0}
155
156
  current-step=${this.layerDatetime.currentStep}
156
- @stepchange=${j(this,Qe,Vo)}
157
+ @stepchange=${q(this,di,Zo)}
157
158
  ></eox-timecontrol>
158
159
  `)}
159
- `}}Qe=new WeakSet,Vo=function(i){this.dispatchEvent(new CustomEvent("datetime:updated",{bubbles:!0,detail:{datetime:i.detail.currentStep,layer:this.layer}})),this.layerDatetime.currentStep=i.detail.currentStep,this.requestUpdate()},ti=new WeakMap,ei=new WeakMap,V(xo,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",xo);class Eo extends tt{constructor(){super();P(this,Ee,i=>(this.selectedTab===i||this.toolsAsList)&&"highlighted");P(this,ii,`
160
- .tabbed figure {
160
+ `}}di=new WeakSet,Zo=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()},ui=new WeakMap,ci=new WeakMap,Z(Po,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",Po);class Oo extends dt{constructor(){super();L(this,He,e=>(this.selectedTab===e||this.toolsAsList)&&"highlighted");L(this,hi,`
161
+ .tabbed figure,
162
+ .listed figure {
161
163
  margin: 0;
162
164
  }
163
- .tabbed nav {
165
+ .tabbed nav,
166
+ .listed nav {
164
167
  display: flex;
165
168
  justify-content: space-between;
166
169
  }
167
- .tabbed nav div {
170
+ .tabbed nav div,
171
+ .listed nav div {
168
172
  display: flex;
169
173
  }
170
- .tabbed .tab {
174
+ .tabbed .tab,
175
+ .listed .tab {
171
176
  display: none;
172
177
  }
173
- .tabbed .tab.highlighted {
178
+ .tabbed .tab.highlighted,
179
+ .listed .tab.highlighted {
174
180
  display: block;
175
181
  }
176
- .tabbed label.highlighted {
182
+ .tabbed label.highlighted,
183
+ .listed label.highlighted {
177
184
  background: lightgrey;
178
185
  }
179
- `);P(this,ni,`
180
- .listed {
181
- background: #ffffff !important;
186
+ `);L(this,pi,`
187
+ .listed label {
182
188
  display: flex;
183
- justify-content: end;
189
+ justify-content: start;
190
+ align-items: center;
191
+ background: var(--background-color) !important;
192
+ }
193
+ .listed label:not(:first-of-type) {
194
+ margin-top: 10px;
184
195
  }
185
- .tabbed {
196
+ .listed label span {
197
+ text-transform: capitalize;
198
+ font-weight: 300;
199
+ }
200
+ .tabbed, .listed {
186
201
  font-size: small;
187
202
  }
188
203
  .tabbed label.highlighted {
@@ -199,24 +214,25 @@
199
214
  cursor: pointer;
200
215
  }
201
216
  figure {
202
- background: #00417011;
217
+ background: var(--background-color);
203
218
  border-top: 1px solid #0041701a;
219
+ padding: 8px var(--padding);
204
220
  }
205
- `);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 i=this.tabs,n=this.actions,o=n.length+i.length>1;return $`
221
+ `);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,o=n.length+e.length>1;return x`
206
222
  <style>
207
- ${_(this,ii)}
208
- ${!this.unstyled&&_(this,ni)}
223
+ ${T(this,hi)}
224
+ ${!this.unstyled&&T(this,pi)}
209
225
  </style>
210
- <div class="tabbed">
226
+ <div class="${this.toolsAsList?"listed":"tabbed"}">
211
227
  <!-- Navigation for tabs and actions -->
212
- ${Z(o,()=>$`
228
+ ${Q(o,()=>x`
213
229
  <nav>
214
- ${Z(!this.toolsAsList,()=>$`
230
+ ${Q(!this.toolsAsList,()=>x`
215
231
  <div>
216
232
  <!-- Labels for tabs -->
217
- ${Xe(i,(r,s)=>$`
233
+ ${ni(e,(r,s)=>x`
218
234
  <label
219
- class=${_(this,Ee).call(this,s)}
235
+ class=${T(this,He).call(this,s)}
220
236
  @click=${()=>this.selectedTab=s}
221
237
  >
222
238
  <!-- Customizable icon for each tab -->
@@ -226,7 +242,7 @@
226
242
  </div>
227
243
  <div>
228
244
  <!-- Icons for actions -->
229
- ${Xe(n,r=>$`
245
+ ${ni(n,r=>x`
230
246
  <span>
231
247
  <!-- Customizable icon for each action -->
232
248
  <slot name=${`${r}-icon`}>${r}</slot>
@@ -238,21 +254,22 @@
238
254
  `)}
239
255
  <figure>
240
256
  <!-- Content for each tab -->
241
- ${Xe(i,(r,s)=>$`
242
- ${Z(this.toolsAsList,()=>$`
243
- <label class="listed">
257
+ ${ni(e,(r,s)=>x`
258
+ ${Q(this.toolsAsList,()=>x`
259
+ <label>
244
260
  <!-- Customizable icon for each tab -->
245
261
  <slot name=${`${r}-icon`}>${r}</slot>
262
+ <span>${r}</span>
246
263
  </label>
247
264
  `)}
248
- <div class="tab ${_(this,Ee).call(this,s)}">
265
+ <div class="tab ${T(this,He).call(this,s)}">
249
266
  <!-- Content slot for each tab -->
250
267
  <slot name=${`${r}-content`}>${r}</slot>
251
268
  </div>
252
269
  `)}
253
270
  </figure>
254
271
  </div>
255
- `}}Ee=new WeakMap,ii=new WeakMap,ni=new WeakMap,V(Eo,"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",Eo);const ha=`
272
+ `}}He=new WeakMap,hi=new WeakMap,pi=new WeakMap,Z(Oo,"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",Oo);const na=`
256
273
  button,
257
274
  .button {
258
275
  /* TODO: why does this only work here and not from :root? */
@@ -376,7 +393,7 @@ button.smallest.icon::before {
376
393
  width: 16px;
377
394
  padding: 0px;
378
395
  }
379
- `,pa=`
396
+ `,oa=`
380
397
  input[type=radio] {
381
398
  appearance: none;
382
399
  -webkit-appearance: none;
@@ -404,7 +421,7 @@ input[type=radio]:checked:after {
404
421
  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");
405
422
 
406
423
  }
407
- `,So=`
424
+ `,Lo=`
408
425
  input[type=checkbox] {
409
426
  appearance: none;
410
427
  -webkit-appearance: none;
@@ -427,7 +444,7 @@ input[type=checkbox]:checked:after {
427
444
  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");
428
445
 
429
446
  }
430
- `,fa=`
447
+ `,ra=`
431
448
  input[type="range"] {
432
449
  -webkit-appearance: none;
433
450
  width: 90%;
@@ -504,9 +521,9 @@ input[type="range"]:focus::-webkit-slider-thumb {
504
521
  input::-moz-focus-inner, input::-moz-focus-outer {
505
522
  border: 0;
506
523
  }
507
- `;class Ao extends tt{constructor(){super();V(this,"_removeButton",()=>zs(this));V(this,"_sortButton",()=>Xs(this.unstyled));V(this,"_button",i=>Zs(i,this.unstyled));V(this,"_getDefaultTools",()=>{var i;return $`
524
+ `;class Ro 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`
508
525
  <div slot="info-content">
509
- ${qs(this.layer.get("description"))}
526
+ ${ta(this.layer.get("description"))}
510
527
  </div>
511
528
  <div slot="opacity-content">
512
529
  <!-- Input for opacity -->
@@ -515,13 +532,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
515
532
  min="0"
516
533
  max="1"
517
534
  step="0.01"
518
- value=${fo((i=this.layer)==null?void 0:i.getOpacity())}
535
+ value=${So((e=this.layer)==null?void 0:e.getOpacity())}
519
536
  @input=${n=>this.layer.setOpacity(parseFloat(n.target.value))}
520
537
  />
521
538
  </div>
522
539
  <div slot="config-content">
523
540
  <!-- Layer configuration -->
524
- ${Z(this.layer.get("layerConfig"),()=>$`
541
+ ${Q(this.layer.get("layerConfig"),()=>x`
525
542
  <eox-layercontrol-layerconfig
526
543
  slot="config-content"
527
544
  .layer=${this.layer}
@@ -534,7 +551,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
534
551
  </div>
535
552
  <div slot="datetime-content">
536
553
  <!-- Layer datetime -->
537
- ${Z(this.layer.get("layerDatetime"),()=>$`
554
+ ${Q(this.layer.get("layerDatetime"),()=>x`
538
555
  <eox-layercontrol-layer-datetime
539
556
  slot="datetime-content"
540
557
  .noShadow=${!0}
@@ -547,7 +564,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
547
564
  </div>
548
565
  <div slot="legend-content">
549
566
  <!-- Layer legend -->
550
- ${Z(this.layer.get("layerLegend"),()=>$`
567
+ ${Q(this.layer.get("layerLegend"),()=>x`
551
568
  <eox-layercontrol-layer-legend
552
569
  slot="legend-content"
553
570
  .noShadow=${!0}
@@ -560,11 +577,11 @@ input::-moz-focus-inner, input::-moz-focus-outer {
560
577
  </div>
561
578
  <div slot="remove-icon">${this._removeButton()}</div>
562
579
  <div slot="sort-icon">${this._sortButton()}</div>
563
- `});P(this,oi,"");P(this,ri,`
564
- ${ha}
565
- ${pa}
566
- ${So}
567
- ${fa}
580
+ `});L(this,fi,"");L(this,gi,`
581
+ ${na}
582
+ ${oa}
583
+ ${Lo}
584
+ ${ra}
568
585
  .drag-handle {
569
586
  cursor: n-resize;
570
587
  }
@@ -634,6 +651,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
634
651
  display: flex;
635
652
  justify-content: center;
636
653
  }
654
+ eox-layercontrol-tools-items.tools-list button.icon,
655
+ eox-layercontrol-tools-items.tools-list .button.icon {
656
+ margin-left: -6px;
657
+ }
637
658
  eox-layercontrol-tools-items button.icon::before,
638
659
  eox-layercontrol-tools-items .button.icon::before {
639
660
  width: 16px;
@@ -668,23 +689,29 @@ input::-moz-focus-inner, input::-moz-focus-outer {
668
689
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag-horizontal-variant%3C/title%3E%3Cpath d='M21 11H3V9H21V11M21 13H3V15H21V13Z' /%3E%3C/svg%3E");
669
690
  }
670
691
  [slot=info-content],
671
- [slot=opacity-content] {
672
- padding: 12px 6px;
692
+ [slot=opacity-content],
693
+ [slot=config-content],
694
+ [slot=datetime-content],
695
+ [slot=legend-content] {
696
+ padding: 6px 0;
697
+ }
698
+ [slot=info-content] * {
699
+ max-width: 100%;
673
700
  }
674
- `);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 i=Fs(this.tools,this.layer),n=js(this.tools,this.layer),o=this[`_${i==null?void 0:i[0]}Button`]?this[`_${i==null?void 0:i[0]}Button`]():D,r=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=i==null?void 0:i.length,a=n==null?void 0:n.length;return $`
701
+ `);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),o=this[`_${e==null?void 0:e[0]}Button`]?this[`_${e==null?void 0:e[0]}Button`]():O,r=((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`
675
702
  <style>
676
- ${_(this,oi)}
677
- ${!this.unstyled&&_(this,ri)}
703
+ ${T(this,fi)}
704
+ ${!this.unstyled&&T(this,gi)}
678
705
  </style>
679
- ${Z(s+a>0,()=>$`
680
- ${Z(s===1&&a===0,()=>$`
706
+ ${Q(s+a>0,()=>x`
707
+ ${Q(s===1&&a===0,()=>x`
681
708
  <div class="single-action-container">
682
709
  <div class="single-action">${o}</div>
683
710
  </div>
684
- `,()=>$`
711
+ `,()=>x`
685
712
  <details
686
713
  class="tools"
687
- open=${this.layer.get("layerControlToolsExpand")||D}
714
+ open=${this.layer.get("layerControlToolsExpand")||O}
688
715
  >
689
716
  <summary>
690
717
  <button class="icon ${r}">Tools</button>
@@ -692,23 +719,24 @@ input::-moz-focus-inner, input::-moz-focus-outer {
692
719
  <eox-layercontrol-tools-items
693
720
  class="${this.toolsAsList?"tools-list":"tools-tab"}"
694
721
  .noShadow=${!1}
695
- .actions=${i}
722
+ .actions=${e}
696
723
  .tabs=${n}
697
724
  .unstyled=${this.unstyled}
698
725
  .toolsAsList=${this.toolsAsList}
699
726
  >
700
727
  <!-- Rendering tabs and content -->
701
- ${Xe(n,d=>this._button(d))}
728
+ ${ni(n,d=>this._button(d))}
702
729
  <!-- Including default tools -->
703
730
  ${this._getDefaultTools()}
704
731
  </eox-layercontrol-tools-items>
705
732
  </details>
706
733
  `)}
707
734
  `)}
708
- `}}oi=new WeakMap,ri=new WeakMap,V(Ao,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",Ao);const ga=e=>{const t=()=>{const i=Is(e.layer,e.map,e.showLayerZoomState);let n=!1;!i&&e.currLayerVisibilityBasedOnZoom?(e.currLayerVisibilityBasedOnZoom=!1,n=!0):i&&!e.currLayerVisibilityBasedOnZoom&&(e.currLayerVisibilityBasedOnZoom=!0,n=!0),n&&(e.requestUpdate(),e.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};co(e.layer,e.showLayerZoomState)&&(t(),e.map.getView().on("change:resolution",()=>t()))},ma=(e,t)=>{const i=t.layer;i.setVisible(e.target.checked),e.target.checked&&i.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(o=>{var r;o.layer!==i&&((r=o.layer)!=null&&r.get("layerControlExclusive"))&&(o.layer.setVisible(!1),o.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:i})),t.requestUpdate()};class _o extends tt{constructor(){super();P(this,Dt);V(this,"currLayerVisibilityBasedOnZoom",!0);P(this,si,"");P(this,ai,`
709
- ${So}
735
+ `}}fi=new WeakMap,gi=new WeakMap,Z(Ro,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",Ro);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})))};xo(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(o=>{var r;o.layer!==e&&((r=o.layer)!=null&&r.get("layerControlExclusive"))&&(o.layer.setVisible(!1),o.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:e})),t.requestUpdate()};class Mo extends dt{constructor(){super();L(this,Ct);Z(this,"currLayerVisibilityBasedOnZoom",!0);L(this,mi,"");L(this,yi,`
736
+ ${Lo}
710
737
  eox-layercontrol-layer {
711
738
  width: 100%;
739
+ position: relative;
712
740
  }
713
741
  .layer input[type=checkbox],
714
742
  .layer input[type=radio] {
@@ -740,6 +768,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
740
768
  margin-right: 6px;
741
769
  display: var(--layer-type-visibility);
742
770
  }
771
+ [data-type] .title.color-swatch::before {
772
+ background: var(--layer-color);
773
+ border-radius: 3px;
774
+ content: "" !important;
775
+ width: 16px;
776
+ min-width: 16px;
777
+ height: 16px;
778
+ }
743
779
  [data-type=group] .title::before {
744
780
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-outline%3C/title%3E%3Cpath d='M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z' /%3E%3C/svg%3E");
745
781
  }
@@ -755,25 +791,30 @@ input::-moz-focus-inner, input::-moz-focus-outer {
755
791
  [data-type=draw] .title::before {
756
792
  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");
757
793
  }
758
- `);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(){ga(this)}render(){var l;const i=this.layer.getVisible(),n=i?"visible":"",o=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",r=j(this,Dt,yi).call(this,"layerControlDisable")?"disabled":"",s=j(this,Dt,yi).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return $`
794
+ `);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":"",o=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",r=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`
759
795
  <style>
760
- ${_(this,si)}
761
- ${!this.unstyled&&_(this,ai)}
796
+ ${T(this,mi)}
797
+ ${!this.unstyled&&T(this,yi)}
762
798
  </style>
763
- ${Z(this.layer,()=>$`
799
+ ${Q(this.layer,()=>x`
764
800
  <!-- Render the layer -->
765
801
  <div class="layer ${n} ${o}">
766
802
  <label class="drag-handle ${r}">
767
803
  <!-- Input element for layer visibility -->
768
804
  <input
769
805
  type=${s}
770
- .checked=${fo(i)}
771
- @click=${j(this,Dt,Bo)}
806
+ .checked=${So(e)}
807
+ @click=${q(this,Ct,qo)}
772
808
  />
773
809
 
774
810
  <!-- Layer title -->
775
- <span class="title">${j(this,Dt,yi).call(this,this.titleProperty)}</span>
776
- ${Z(a,()=>$`<span class="tools-placeholder"></span>`)}
811
+ <span
812
+ class="title ${q(this,Ct,ge).call(this,"color")?"color-swatch":""}"
813
+ style="--layer-color: ${q(this,Ct,ge).call(this,"color")}"
814
+ >
815
+ ${q(this,Ct,ge).call(this,this.titleProperty)}
816
+ </span>
817
+ ${Q(a,()=>x`<span class="tools-placeholder"></span>`)}
777
818
  </label>
778
819
  </div>
779
820
 
@@ -786,7 +827,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
786
827
  .toolsAsList=${this.toolsAsList}
787
828
  ></eox-layercontrol-layer-tools>
788
829
  `)}
789
- `}}Dt=new WeakSet,yi=function(i){var n;return(n=this.layer)==null?void 0:n.get(i)},Bo=function(i){ma(i,this)},si=new WeakMap,ai=new WeakMap,V(_o,"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",_o);class Co extends tt{constructor(){super();P(this,li,"");P(this,di,`
830
+ `}}Ct=new WeakSet,ge=function(e){var n;return(n=this.layer)==null?void 0:n.get(e)},qo=function(e){aa(e,this)},mi=new WeakMap,yi=new WeakMap,Z(Mo,"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",Mo);class Io extends dt{constructor(){super();L(this,bi,"");L(this,vi,`
790
831
  details summary {
791
832
  cursor: pointer;
792
833
  display: flex;
@@ -810,15 +851,15 @@ input::-moz-focus-inner, input::-moz-focus-outer {
810
851
  details[data-children-length="0"] summary::before {
811
852
  display: none;
812
853
  }
813
- `);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 o,r;const i=!!((o=this.group)!=null&&o.get("layerControlExpand")),n=(r=po(this.group.getLayers()))==null?void 0:r.length;return $`
854
+ `);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 o,r;const e=!!((o=this.group)!=null&&o.get("layerControlExpand")),n=(r=$o(this.group.getLayers()))==null?void 0:r.length;return x`
814
855
  <style>
815
- ${_(this,li)}
816
- ${!this.unstyled&&_(this,di)}
856
+ ${T(this,bi)}
857
+ ${!this.unstyled&&T(this,vi)}
817
858
  </style>
818
- ${Z(this.group,()=>$`
859
+ ${Q(this.group,()=>x`
819
860
  <!-- Render the details element with the layer control -->
820
861
  <details
821
- open=${i||D}
862
+ open=${e||O}
822
863
  data-children-length=${n}
823
864
  >
824
865
  <summary>
@@ -851,7 +892,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
851
892
  ></eox-layercontrol-layer-list>
852
893
  </details>
853
894
  `)}
854
- `}}li=new WeakMap,di=new WeakMap,V(Co,"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",Co);var ya="Expected a function",To=NaN,ba="[object Symbol]",va=/^\s+|\s+$/g,wa=/^[-+]0x[0-9a-f]+$/i,$a=/^0b[01]+$/i,xa=/^0o[0-7]+$/i,Ea=parseInt,Sa=typeof Tt=="object"&&Tt&&Tt.Object===Object&&Tt,Aa=typeof self=="object"&&self&&self.Object===Object&&self,_a=Sa||Aa||Function("return this")(),Ca=Object.prototype,Ta=Ca.toString,Da=Math.max,Pa=Math.min,tn=function(){return _a.Date.now()};function Oa(e,t,i){var n,o,r,s,a,l,d=0,c=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(ya);t=Do(t)||0,en(i)&&(c=!!i.leading,u="maxWait"in i,r=u?Da(Do(i.maxWait)||0,t):r,p="trailing"in i?!!i.trailing:p);function f(b){var L=n,K=o;return n=o=void 0,d=b,s=e.apply(K,L),s}function g(b){return d=b,a=setTimeout(H,t),c?f(b):s}function y(b){var L=b-l,K=b-d,z=t-L;return u?Pa(z,r-K):z}function R(b){var L=b-l,K=b-d;return l===void 0||L>=t||L<0||u&&K>=r}function H(){var b=tn();if(R(b))return k(b);a=setTimeout(H,y(b))}function k(b){return a=void 0,p&&n?f(b):(n=o=void 0,s)}function it(){a!==void 0&&clearTimeout(a),d=0,n=l=o=a=void 0}function J(){return a===void 0?s:k(tn())}function nt(){var b=tn(),L=R(b);if(n=arguments,o=this,l=b,L){if(a===void 0)return g(l);if(u)return a=setTimeout(H,t),f(l)}return a===void 0&&(a=setTimeout(H,t)),s}return nt.cancel=it,nt.flush=J,nt}function en(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ra(e){return!!e&&typeof e=="object"}function La(e){return typeof e=="symbol"||Ra(e)&&Ta.call(e)==ba}function Do(e){if(typeof e=="number")return e;if(La(e))return To;if(en(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=en(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(va,"");var i=$a.test(e);return i||xa.test(e)?Ea(e.slice(2),i?2:8):wa.test(e)?To:+e}var Ma=Oa;const Ia=go(Ma),Na=e=>{const{layers:t,idProperty:i,titleProperty:n,renderRoot:o}=e,r=Ia(()=>{e.requestUpdate(),e.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))},50),s=()=>r();if(t&&(t.hasListener("change:length")&&(t==null||t.un("change:length",s)),t.on("change:length",s),t)){const a=o.querySelector("ul");Ms(t,i,n,e),Ls(a,t,i,e)}};class Po extends tt{constructor(){super();P(this,ui,"");P(this,ci,`
895
+ `}}bi=new WeakMap,vi=new WeakMap,Z(Io,"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",Io);var hn,No;function la(){if(No)return hn;No=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^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,c=l||d||Function("return this")(),u=Object.prototype,p=u.toString,f=Math.max,g=Math.min,b=function(){return c.Date.now()};function V($,m,A){var N,M,J,K,k,I,Y=0,gt=!1,at=!1,mt=!0;if(typeof $!="function")throw new TypeError(i);m=it(m)||0,et(A)&&(gt=!!A.leading,at="maxWait"in A,J=at?f(it(A.maxWait)||0,m):J,mt="trailing"in A?!!A.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,k=setTimeout(It,m),gt?wt(F):K}function Ai(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);k=setTimeout(It,Ai(F))}function ee(F){return k=void 0,mt&&N?wt(F):(N=M=void 0,K)}function Ci(){k!==void 0&&clearTimeout(k),Y=0,N=I=M=k=void 0}function fn(){return k===void 0?K:ee(b())}function Ve(){var F=b(),H=te(F);if(N=arguments,M=this,I=F,H){if(k===void 0)return Qt(I);if(at)return k=setTimeout(It,m),wt(I)}return k===void 0&&(k=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 ct($){return typeof $=="symbol"||z($)&&p.call($)==e}function it($){if(typeof $=="number")return $;if(ct($))return t;if(et($)){var m=typeof $.valueOf=="function"?$.valueOf():$;$=et(m)?m+"":m}if(typeof $!="string")return $===0?$:+$;$=$.replace(n,"");var A=r.test($);return A||s.test($)?a($.slice(2),A?2:8):o.test($)?t:+$}return hn=V,hn}var da=la();const ua=_o(da),ca=i=>{const{layers:t,idProperty:e,titleProperty:n,renderRoot:o}=i,r=ua(()=>{i.requestUpdate(),i.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))},50),s=()=>r();if(t&&(t.hasListener("change:length")&&(t==null||t.un("change:length",s)),t.on("change:length",s),t)){const a=o.querySelector("ul");Us(t,e,n,i),ks(a,t,e,i)}};class Ho extends dt{constructor(){super();L(this,wi,"");L(this,xi,`
855
896
  ul {
856
897
  padding: 0;
857
898
  margin: 0;
@@ -878,19 +919,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
878
919
  }
879
920
  li.sortable-ghost {
880
921
  }
881
- `);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(){Na(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const i=this.layers?po(this.layers).reverse():[];return $`
922
+ `);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(){ca(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.layers?$o(this.layers).reverse():[];return x`
882
923
  <style>
883
- ${_(this,ui)}
884
- ${!this.unstyled&&_(this,ci)}
924
+ ${T(this,wi)}
925
+ ${!this.unstyled&&T(this,xi)}
885
926
  </style>
886
927
  <ul>
887
- ${Z(this.layers,()=>$`
888
- ${ur(i,n=>n,n=>$`
928
+ ${Q(this.layers,()=>x`
929
+ ${yr(e,n=>n,n=>x`
889
930
  <li
890
931
  data-layer="${n.get(this.idProperty)}"
891
- data-type="${Ns(n,this.map)}"
932
+ data-type="${js(n,this.map)}"
892
933
  >
893
- ${n.getLayers?$`
934
+ ${n.getLayers?x`
894
935
  <eox-layercontrol-layer-group
895
936
  .noShadow=${!0}
896
937
  .group=${n}
@@ -904,7 +945,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
904
945
  @changed=${()=>this.requestUpdate()}
905
946
  >
906
947
  </eox-layercontrol-layer-group>
907
- `:$`
948
+ `:x`
908
949
  <eox-layercontrol-layer
909
950
  .noShadow=${!0}
910
951
  .layer=${n}
@@ -921,7 +962,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
921
962
  `)}
922
963
  `)}
923
964
  </ul>
924
- `}}ui=new WeakMap,ci=new WeakMap,V(Po,"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",Po);const Ha=e=>{const t=e.querySelector("select[name=optional]"),i=t?t.value:null,n=Gi(e.layers.getArray(),"layerControlOptional",!0).find(o=>(o.get(e.idProperty)||o.ol_uid)===i);n==null||n.set("layerControlOptional",!1),n==null||n.setVisible(!0),e.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),e.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(o=>o.requestUpdate()),e.requestUpdate()};class Oo extends tt{constructor(){super();P(this,hi);this.idProperty="id",this.layers=null,this.titleProperty="title",this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const i=Gi(this.layers.getArray(),"layerControlOptional",!0);return $`
965
+ `}}wi=new WeakMap,xi=new WeakMap,Z(Ho,"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",Ho);const ha=i=>{const t=i.querySelector("select[name=optional]"),e=t?t.value:null,n=ln(i.layers.getArray(),"layerControlOptional",!0).find(o=>(o.get(i.idProperty)||o.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(o=>o.requestUpdate()),i.requestUpdate()};class Vo 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`
925
966
  <!-- Label for the dropdown -->
926
967
  <label for="optional">Optional layers</label>
927
968
 
@@ -933,19 +974,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
933
974
  </option>
934
975
 
935
976
  <!-- Mapping through filtered layers list to generate dropdown options -->
936
- ${i.map(n=>{const o=n.get(this.idProperty)||n.ol_uid,r=n.get(this.titleProperty),s=`layer ${n.get(this.idProperty)}`;return $` <option value="${o}">${r||s}</option> `})}
977
+ ${e.map(n=>{const o=n.get(this.idProperty)||n.ol_uid,r=n.get(this.titleProperty),s=`layer ${n.get(this.idProperty)}`;return x` <option value="${o}">${r||s}</option> `})}
937
978
  </select>
938
979
 
939
980
  <!-- Button to handle adding layers -->
940
- <button @click="${j(this,hi,ko)}">add</button>
941
- `}}hi=new WeakSet,ko=function(){Ha(this)},V(Oo,"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",Oo);const Va=(e,t)=>{t.jsonInput=e.target.value,t.requestUpdate()},Ro=e=>{const t=JSON.parse(`{"data":${Bn(e.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(i=>{e.eoxMap.addOrUpdateLayer(i)}):e.eoxMap.addOrUpdateLayer(t.data),e.jsonInput=null,e.requestUpdate()},Ba=(e,t)=>{t.urlInput=e.target.value,t.requestUpdate()};async function ka(e){const t=e.urlInput;if(e.wmsCapabilities=null,e.searchLoad=!0,e.requestUpdate(),!t)return!1;if(Li(t)==="XYZ")return{Name:t};try{const i=await is(t);e.wmsCapabilities=i}catch{}finally{e.searchLoad=!1,e.requestUpdate()}return!1}const Ua=(e,t)=>{const{Name:i}=e,n=Li(t.urlInput)||"XYZ",o={type:"Tile",properties:{id:i,title:i},source:{type:n,url:t.urlInput,params:{LAYERS:i}}};t.jsonInput=JSON.stringify(o)},Fa=(e,t)=>{t.open=e||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class Lo extends tt{constructor(){super();P(this,G);V(this,"urlInput",null);V(this,"jsonInput",null);V(this,"open",null);V(this,"searchLoad",!1);V(this,"wmsCapabilities",null);P(this,pi,`
981
+ <button @click="${q(this,Ei,Xo)}">add</button>
982
+ `}}Ei=new WeakSet,Xo=function(){ha(this)},Z(Vo,"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",Vo);const pa=(i,t)=>{t.jsonInput=i.target.value,t.requestUpdate()},Bo=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",o={type:"Tile",properties:{id:e,title:e},source:{type:n,url:t.urlInput,params:{LAYERS:e}}};t.jsonInput=JSON.stringify(o)},ya=(i,t)=>{t.open=i||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class ko 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,`
942
983
  .eox-add-layer-main .open {
943
984
  position: relative;
944
985
  }
945
986
  .eox-add-layer-main .close {
946
987
  display: none;
947
988
  }
948
- `);P(this,fi,`
989
+ `);L(this,Si,`
949
990
  .eox-add {
950
991
  background: #f0f2f5;
951
992
  border-top: 1px solid #0041701a;
@@ -1078,23 +1119,23 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1078
1119
  font-weight: bold;
1079
1120
  display: inline-block;
1080
1121
  }
1081
- `);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const i=this.open?"open":"close",n=this.open==="url",o=this.open==="json",r=!ns(this.urlInput)||this.searchLoad?!0:D;return $`
1122
+ `);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",o=this.open==="json",r=!us(this.urlInput)||this.searchLoad?!0:O;return x`
1082
1123
  <style>
1083
- ${_(this,pi)}
1084
- ${!this.unstyled&&_(this,fi)}
1124
+ ${T(this,$i)}
1125
+ ${!this.unstyled&&T(this,Si)}
1085
1126
  </style>
1086
1127
  <div class="eox-add-layer-main">
1087
1128
  <div class="eox-add-layer-col">
1088
1129
  <!-- Tabbed interface for URL and JSON -->
1089
- <ul class="eox-add-layer-tab ${i}">
1130
+ <ul class="eox-add-layer-tab ${e}">
1090
1131
  <li
1091
- @click=${()=>j(this,G,bi).call(this,"url")}
1132
+ @click=${()=>q(this,st,Ti).call(this,"url")}
1092
1133
  class="${n?"active":""}"
1093
1134
  >
1094
1135
  URL
1095
1136
  </li>
1096
1137
  <li
1097
- @click=${()=>j(this,G,bi).call(this,"json")}
1138
+ @click=${()=>q(this,st,Ti).call(this,"json")}
1098
1139
  class="${o?"active":""}"
1099
1140
  >
1100
1141
  JSON
@@ -1104,13 +1145,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1104
1145
  <!-- Button to toggle tabs -->
1105
1146
  <button
1106
1147
  class="add-icon icon"
1107
- @click=${()=>j(this,G,bi).call(this,this.open?null:"url")}
1148
+ @click=${()=>q(this,st,Ti).call(this,this.open?null:"url")}
1108
1149
  >
1109
1150
  ${this.unstyled?"Add Layer":""}
1110
1151
  </button>
1111
1152
  </div>
1112
- <div class="eox-add ${i}">
1113
- ${n?$`
1153
+ <div class="eox-add ${e}">
1154
+ ${n?x`
1114
1155
  <!-- Input field for URL -->
1115
1156
  <div class="eox-add-layer-col">
1116
1157
  <input
@@ -1118,55 +1159,55 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1118
1159
  class="add-url"
1119
1160
  placeholder="Add URL (WMS/XYZ)"
1120
1161
  .value="${this.urlInput}"
1121
- @input=${j(this,G,Uo)}
1162
+ @input=${q(this,st,Yo)}
1122
1163
  >
1123
1164
  </input>
1124
1165
  <!-- Search button for URL -->
1125
1166
  <button
1126
1167
  class="search-icon"
1127
1168
  disabled=${r}
1128
- @click=${j(this,G,Fo)}
1169
+ @click=${q(this,st,Wo)}
1129
1170
  >
1130
1171
  ${this.unstyled?"Search":""}
1131
1172
  </button>
1132
1173
  </div>
1133
1174
 
1134
1175
  <!-- Display layers for WMS capabilities -->
1135
- ${this.wmsCapabilities?$`<ul class="search-lists">
1136
- ${this.wmsCapabilities.Capability.Layer.Layer.map(s=>{const a=s.Name;return $`
1176
+ ${this.wmsCapabilities?x`<ul class="search-lists">
1177
+ ${this.wmsCapabilities.Capability.Layer.Layer.map(s=>{const a=s.Name;return x`
1137
1178
  <li class="search-list">
1138
1179
  ${a}
1139
1180
  <!-- Button to add layer -->
1140
1181
  <button
1141
1182
  class="add-layer-icon icon"
1142
- @click=${()=>j(this,G,sn).call(this,s)}
1183
+ @click=${()=>q(this,st,yn).call(this,s)}
1143
1184
  >
1144
1185
  ${this.unstyled?"+":""}
1145
1186
  </button>
1146
1187
  </li>
1147
1188
  `})}
1148
- </ul>`:D}
1149
- `:$`
1189
+ </ul>`:O}
1190
+ `:x`
1150
1191
  <!-- Textarea for JSON input -->
1151
1192
  <textarea
1152
1193
  class="add-layer-input"
1153
1194
  placeholder="Please put a valid eox-map layer JSON."
1154
- @input=${j(this,G,Zo)}
1195
+ @input=${q(this,st,Jo)}
1155
1196
  .value=${this.jsonInput}
1156
1197
  ></textarea>
1157
1198
 
1158
1199
  <!-- Button to add JSON layer -->
1159
1200
  <button
1160
1201
  class="add-layer-icon json-add-layer"
1161
- disabled=${os(this.jsonInput)?D:!0}
1162
- @click=${j(this,G,jo)}
1202
+ disabled=${cs(this.jsonInput)?O:!0}
1203
+ @click=${q(this,st,Go)}
1163
1204
  >
1164
1205
  ${this.unstyled?"Add JSON":""}
1165
1206
  </button>
1166
1207
  `}
1167
1208
  </div>
1168
1209
  </div>
1169
- `}}G=new WeakSet,Uo=function(i){Ba(i,this)},Fo=async function(){const i=await ka(this);i&&j(this,G,sn).call(this,i)},sn=function(i){Ua(i,this),Ro(this)},jo=function(){Ro(this)},Zo=function(i){Va(i,this)},bi=function(i){Fa(i,this)},pi=new WeakMap,fi=new WeakMap,V(Lo,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",Lo);const ja=(e,t)=>{if(t.requestUpdate(),e.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const i=t.renderRoot.querySelector("eox-layercontrol-optional-list");i==null||i.requestUpdate()}},Za=e=>{let t;return typeof e=="string"?t=document.querySelector(e):t=e,t},Mo=e=>{const t=Za(e.for);return t&&t.map!==e.map&&(e.map=t.map),t};class nn extends tt{constructor(){super();P(this,te);P(this,Pt);P(this,gi,`
1210
+ `}}st=new WeakSet,Yo=function(e){fa(e,this)},Wo=async function(){const e=await ga(this);e&&q(this,st,yn).call(this,e)},yn=function(e){ma(e,this),Bo(this)},Go=function(){Bo(this)},Jo=function(e){pa(e,this)},Ti=function(e){ya(e,this)},$i=new WeakMap,Si=new WeakMap,Z(ko,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",ko);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},Uo=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,_i,`
1170
1211
  :host, :root {
1171
1212
  font-family: Roboto, sans-serif;
1172
1213
  --padding: 0.5rem;
@@ -1179,24 +1220,29 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1179
1220
 
1180
1221
  display: block;
1181
1222
  padding: var(--padding) 0;
1223
+ --background-color: var(--eox-background-color, transparent);
1224
+ background-color: var(--background-color, transparent);
1225
+ }
1226
+ select {
1227
+ background-color: var(--background-color);
1182
1228
  }
1183
- `);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=Mo(this)}updated(i){i.has("for")&&(this.eoxMap=Mo(this))}get eoxMap(){return _(this,Pt)}set eoxMap(i){const n=_(this,Pt);ee(this,Pt,i),this.requestUpdate("eoxMap",n)}render(){var o,r,s;const i=(o=this.map)==null?void 0:o.getLayers().getArray(),n=i&&((r=Gi(i,"layerControlOptional",!0))==null?void 0:r.length)>0;return $`
1229
+ `);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=Uo(this)}updated(e){e.has("for")&&(this.eoxMap=Uo(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 o,r,s;const e=(o=this.map)==null?void 0:o.getLayers().getArray(),n=e&&((r=ln(e,"layerControlOptional",!0))==null?void 0:r.length)>0;return x`
1184
1230
  <style>
1185
- ${!this.unstyled&&_(this,gi)}
1231
+ ${!this.unstyled&&T(this,_i)}
1186
1232
  ${this.styleOverride}
1187
1233
  </style>
1188
1234
 
1189
1235
  <!-- Conditional rendering of add layers component -->
1190
- ${Z(this.addExternalLayers&&((s=_(this,Pt))==null?void 0:s.addOrUpdateLayer),()=>$`
1236
+ ${Q(this.addExternalLayers&&((s=T(this,Ft))==null?void 0:s.addOrUpdateLayer),()=>x`
1191
1237
  <eox-layercontrol-add-layers
1192
1238
  .noShadow=${!0}
1193
- .eoxMap=${_(this,Pt)}
1239
+ .eoxMap=${T(this,Ft)}
1194
1240
  .unstyled=${this.unstyled}
1195
1241
  ></eox-layercontrol-add-layers>
1196
1242
  `)}
1197
1243
 
1198
1244
  <!-- Conditional rendering of layer list component -->
1199
- ${Z(this.map,()=>$`
1245
+ ${Q(this.map,()=>x`
1200
1246
  <eox-layercontrol-layer-list
1201
1247
  .noShadow=${!0}
1202
1248
  class="layers"
@@ -1208,13 +1254,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1208
1254
  .tools=${this.tools}
1209
1255
  .unstyled=${this.unstyled}
1210
1256
  .toolsAsList=${this.toolsAsList}
1211
- @changed=${j(this,te,zo)}
1212
- @datetime:updated=${j(this,te,Xo)}
1257
+ @changed=${q(this,pe,Ko)}
1258
+ @datetime:updated=${q(this,pe,Qo)}
1213
1259
  ></eox-layercontrol-layer-list>
1214
1260
  `)}
1215
1261
 
1216
1262
  <!-- Conditional rendering of optional list component -->
1217
- ${Z(n,()=>$`
1263
+ ${Q(n,()=>x`
1218
1264
  <eox-layercontrol-optional-list
1219
1265
  .noShadow=${!0}
1220
1266
  .idProperty=${this.idProperty}
@@ -1223,4 +1269,4 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1223
1269
  @changed=${()=>this.requestUpdate()}
1224
1270
  ></eox-layercontrol-optional-list>
1225
1271
  `)}
1226
- `}}Pt=new WeakMap,te=new WeakSet,zo=function(i){ja(i,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:i.detail}))},Xo=function(i){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:i.detail}))},gi=new WeakMap,V(nn,"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",nn),O.EOxLayerControl=nn,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
1272
+ `}}Ft=new WeakMap,pe=new WeakSet,Ko=function(e){ba(e,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:e.detail}))},Qo=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:e.detail}))},_i=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"})});