@eox/layercontrol 0.18.0 → 0.18.1-dev.1722353171.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,87 +1,106 @@
1
- (function(C,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(C=typeof globalThis<"u"?globalThis:C||self,_(C["eox-layercontrol"]={}))})(this,function(C){"use strict";var la=Object.defineProperty;var yo=C=>{throw TypeError(C)};var ua=(C,_,H)=>_ in C?la(C,_,{enumerable:!0,configurable:!0,writable:!0,value:H}):C[_]=H;var L=(C,_,H)=>ua(C,typeof _!="symbol"?_+"":_,H),qn=(C,_,H)=>_.has(C)||yo("Cannot "+H);var M=(C,_,H)=>(qn(C,_,"read from private field"),H?H.call(C):_.get(C)),O=(C,_,H)=>_.has(C)?yo("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(C):_.set(C,H),$e=(C,_,H,Gt)=>(qn(C,_,"write to private field"),Gt?Gt.call(C,H):_.set(C,H),H),Y=(C,_,H)=>(qn(C,_,"access private method"),H);/**
1
+ (function(C,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(C=typeof globalThis<"u"?globalThis:C||self,_(C["eox-layercontrol"]={}))})(this,function(C){"use strict";var fa=Object.defineProperty;var Eo=C=>{throw TypeError(C)};var ga=(C,_,H)=>_ in C?fa(C,_,{enumerable:!0,configurable:!0,writable:!0,value:H}):C[_]=H;var L=(C,_,H)=>ga(C,typeof _!="symbol"?_+"":_,H),Jn=(C,_,H)=>_.has(C)||Eo("Cannot "+H);var R=(C,_,H)=>(Jn(C,_,"read from private field"),H?H.call(C):_.get(C)),D=(C,_,H)=>_.has(C)?Eo("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(C):_.set(C,H),_e=(C,_,H,Jt)=>(Jn(C,_,"write to private field"),Jt?Jt.call(C,H):_.set(C,H),H),U=(C,_,H)=>(Jn(C,_,"access private method"),H);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var go,me,ye,be,Ze,bo,Xe,Ye,ve,qe,We,Ge,Je,Ct,cn,vo,Ke,Qe,tn,en,nn,on,rn,wo,Z,Eo,xo,Wn,So,$o,hn,sn,an,Wt,ln,_o,un;const _=globalThis,H=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gt=Symbol(),Gn=new WeakMap;let Ao=class{constructor(t,n,i){if(this._$cssResult$=!0,i!==Gt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(H&&t===void 0){const i=n!==void 0&&n.length===1;i&&(t=Gn.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Gn.set(n,t))}return t}toString(){return this.cssText}};const Co=e=>new Ao(typeof e=="string"?e:e+"",void 0,Gt),To=(e,t)=>{if(H)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const i=document.createElement("style"),o=_.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=n.cssText,e.appendChild(i)}},Jn=H?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const i of t.cssRules)n+=i.cssText;return Co(n)})(e):e;/**
5
+ */var vo,ye,be,ve,Xe,xo,qe,Ye,We,$o,Ge,Je,we,Ke,Qe,tn,en,Ct,fn,So,nn,on,rn,sn,an,ln,un,_o,X,Ao,Co,Kn,To,Po,gn,dn,cn,Wt,Gt,Do,Ro,hn;const _=globalThis,H=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jt=Symbol(),Qn=new WeakMap;let Oo=class{constructor(t,n,i){if(this._$cssResult$=!0,i!==Jt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(H&&t===void 0){const i=n!==void 0&&n.length===1;i&&(t=Qn.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Qn.set(n,t))}return t}toString(){return this.cssText}};const Mo=e=>new Oo(typeof e=="string"?e:e+"",void 0,Jt),No=(e,t)=>{if(H)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const i=document.createElement("style"),o=_.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=n.cssText,e.appendChild(i)}},ti=H?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const i of t.cssRules)n+=i.cssText;return Mo(n)})(e):e;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Po,defineProperty:Oo,getOwnPropertyDescriptor:Ro,getOwnPropertyNames:Do,getOwnPropertySymbols:No,getPrototypeOf:Mo}=Object,xt=globalThis,Kn=xt.trustedTypes,Io=Kn?Kn.emptyScript:"",pn=xt.reactiveElementPolyfillSupport,Jt=(e,t)=>e,fn={toAttribute(e,t){switch(t){case Boolean:e=e?Io:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Qn=(e,t)=>!Po(e,t),ti={attribute:!0,type:String,converter:fn,reflect:!1,hasChanged:Qn};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),xt.litPropertyMetadata??(xt.litPropertyMetadata=new WeakMap);class kt 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,n=ti){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,n);o!==void 0&&Oo(this.prototype,t,o)}}static getPropertyDescriptor(t,n,i){const{get:o,set:r}=Ro(this.prototype,t)??{get(){return this[n]},set(s){this[n]=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,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ti}static _$Ei(){if(this.hasOwnProperty(Jt("elementProperties")))return;const t=Mo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Jt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jt("properties"))){const n=this.properties,i=[...Do(n),...No(n)];for(const o of i)this.createProperty(o,n[o])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[i,o]of n)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const o=this._$Eu(n,i);o!==void 0&&this._$Eh.set(o,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)n.unshift(Jn(o))}else t!==void 0&&n.push(Jn(t));return n}static _$Eu(t,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return To(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var i;return(i=n.hostDisconnected)==null?void 0:i.call(n)})}attributeChangedCallback(t,n,i){this._$AK(t,i)}_$EC(t,n){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const s=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:fn).toAttribute(n,i.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,n){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const s=i.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:fn;this._$Em=o,this[o]=a.fromAttribute(n,s.type),this._$Em=null}}requestUpdate(t,n,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??Qn)(this[t],n))return;this.P(t,n,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,i){this._$AL.has(t)||this._$AL.set(t,n),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;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 n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(i=this._$EO)==null||i.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(n)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(n)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}}kt.elementStyles=[],kt.shadowRootOptions={mode:"open"},kt[Jt("elementProperties")]=new Map,kt[Jt("finalized")]=new Map,pn==null||pn({ReactiveElement:kt}),(xt.reactiveElementVersions??(xt.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:Io,defineProperty:Ho,getOwnPropertyDescriptor:Bo,getOwnPropertyNames:Vo,getOwnPropertySymbols:Lo,getPrototypeOf:Uo}=Object,xt=globalThis,ei=xt.trustedTypes,ko=ei?ei.emptyScript:"",mn=xt.reactiveElementPolyfillSupport,Kt=(e,t)=>e,yn={toAttribute(e,t){switch(t){case Boolean:e=e?ko:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},ni=(e,t)=>!Io(e,t),ii={attribute:!0,type:String,converter:yn,reflect:!1,hasChanged:ni};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),xt.litPropertyMetadata??(xt.litPropertyMetadata=new WeakMap);class Ut 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,n=ii){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,n);o!==void 0&&Ho(this.prototype,t,o)}}static getPropertyDescriptor(t,n,i){const{get:o,set:r}=Bo(this.prototype,t)??{get(){return this[n]},set(s){this[n]=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,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ii}static _$Ei(){if(this.hasOwnProperty(Kt("elementProperties")))return;const t=Uo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Kt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Kt("properties"))){const n=this.properties,i=[...Vo(n),...Lo(n)];for(const o of i)this.createProperty(o,n[o])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[i,o]of n)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const o=this._$Eu(n,i);o!==void 0&&this._$Eh.set(o,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)n.unshift(ti(o))}else t!==void 0&&n.push(ti(t));return n}static _$Eu(t,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return No(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var i;return(i=n.hostDisconnected)==null?void 0:i.call(n)})}attributeChangedCallback(t,n,i){this._$AK(t,i)}_$EC(t,n){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const s=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:yn).toAttribute(n,i.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,n){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const s=i.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:yn;this._$Em=o,this[o]=a.fromAttribute(n,s.type),this._$Em=null}}requestUpdate(t,n,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??ni)(this[t],n))return;this.P(t,n,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,i){this._$AL.has(t)||this._$AL.set(t,n),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;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 n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(i=this._$EO)==null||i.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(n)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(n)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}}Ut.elementStyles=[],Ut.shadowRootOptions={mode:"open"},Ut[Kt("elementProperties")]=new Map,Ut[Kt("finalized")]=new Map,mn==null||mn({ReactiveElement:Ut}),(xt.reactiveElementVersions??(xt.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const Kt=globalThis,_e=Kt.trustedTypes,ei=_e?_e.createPolicy("lit-html",{createHTML:e=>e}):void 0,gn="$lit$",gt=`lit$${(Math.random()+"").slice(9)}$`,mn="?"+gt,Ho=`<${mn}>`,Ot=document,Qt=()=>Ot.createComment(""),te=e=>e===null||typeof e!="object"&&typeof e!="function",ni=Array.isArray,ii=e=>ni(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",yn=`[
14
- \f\r]`,ee=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oi=/-->/g,ri=/>/g,Rt=RegExp(`>|${yn}(?:([^\\s"'>=/]+)(${yn}*=${yn}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),si=/'/g,ai=/"/g,li=/^(?:script|style|textarea|title)$/i,Bo=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),x=Bo(1),st=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),ui=new WeakMap,Dt=Ot.createTreeWalker(Ot,129);function di(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ei!==void 0?ei.createHTML(t):t}const ci=(e,t)=>{const n=e.length-1,i=[];let o,r=t===2?"<svg>":"",s=ee;for(let a=0;a<n;a++){const l=e[a];let u,c,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===ee?c[1]==="!--"?s=oi:c[1]!==void 0?s=ri:c[2]!==void 0?(li.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Rt):c[3]!==void 0&&(s=Rt):s===Rt?c[0]===">"?(s=o??ee,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Rt:c[3]==='"'?ai:si):s===ai||s===si?s=Rt:s===oi||s===ri?s=ee:(s=Rt,o=void 0);const f=s===Rt&&e[a+1].startsWith("/>")?" ":"";r+=s===ee?l+Ho:d>=0?(i.push(u),l.slice(0,d)+gn+l.slice(d)+gt+f):l+gt+(d===-2?a:f)}return[di(e,r+(e[n]||"<?>")+(t===2?"</svg>":"")),i]};class ne{constructor({strings:t,_$litType$:n},i){let o;this.parts=[];let r=0,s=0;const a=t.length-1,l=this.parts,[u,c]=ci(t,n);if(this.el=ne.createElement(u,i),Dt.currentNode=this.el.content,n===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=Dt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const d of o.getAttributeNames())if(d.endsWith(gn)){const p=c[s++],f=o.getAttribute(d).split(gt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:f,ctor:g[1]==="."?pi:g[1]==="?"?fi:g[1]==="@"?gi:ie}),o.removeAttribute(d)}else d.startsWith(gt)&&(l.push({type:6,index:r}),o.removeAttribute(d));if(li.test(o.tagName)){const d=o.textContent.split(gt),p=d.length-1;if(p>0){o.textContent=_e?_e.emptyScript:"";for(let f=0;f<p;f++)o.append(d[f],Qt()),Dt.nextNode(),l.push({type:2,index:++r});o.append(d[p],Qt())}}}else if(o.nodeType===8)if(o.data===mn)l.push({type:2,index:r});else{let d=-1;for(;(d=o.data.indexOf(gt,d+1))!==-1;)l.push({type:7,index:r}),d+=gt.length-1}r++}}static createElement(t,n){const i=Ot.createElement("template");return i.innerHTML=t,i}}function Nt(e,t,n=e,i){var s,a;if(t===st)return t;let o=i!==void 0?(s=n._$Co)==null?void 0:s[i]:n._$Cl;const r=te(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,n,i)),i!==void 0?(n._$Co??(n._$Co=[]))[i]=o:n._$Cl=o),o!==void 0&&(t=Nt(e,o._$AS(e,t.values),o,i)),t}class hi{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:i}=this._$AD,o=((t==null?void 0:t.creationScope)??Ot).importNode(n,!0);Dt.currentNode=o;let r=Dt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new Ut(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new mi(r,this,t)),this._$AV.push(u),l=i[++a]}s!==(l==null?void 0:l.index)&&(r=Dt.nextNode(),s++)}return Dt.currentNode=Ot,o}p(t){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}class Ut{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,n,i,o){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=Nt(this,t,n),te(t)?t===T||t==null||t===""?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==st&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ii(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==T&&te(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ot.createTextNode(t)),this._$AH=t}$(t){var r;const{values:n,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=ne.createElement(di(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(n);else{const s=new hi(o,this),a=s.u(this.options);s.p(n),this.T(a),this._$AH=s}}_$AC(t){let n=ui.get(t.strings);return n===void 0&&ui.set(t.strings,n=new ne(t)),n}k(t){ni(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,o=0;for(const r of t)o===n.length?n.push(i=new Ut(this.S(Qt()),this.S(Qt()),this,this.options)):i=n[o],i._$AI(r),o++;o<n.length&&(this._$AR(i&&i._$AB.nextSibling,o),n.length=o)}_$AR(t=this._$AA.nextSibling,n){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,n);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)==null||n.call(this,t))}}class ie{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,i,o,r){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=n,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}_$AI(t,n=this,i,o){const r=this.strings;let s=!1;if(r===void 0)t=Nt(this,t,n,0),s=!te(t)||t!==this._$AH&&t!==st,s&&(this._$AH=t);else{const a=t;let l,u;for(t=r[0],l=0;l<r.length-1;l++)u=Nt(this,a[i+l],n,l),u===st&&(u=this._$AH[l]),s||(s=!te(u)||u!==this._$AH[l]),u===T?t=T:t!==T&&(t+=(u??"")+r[l+1]),this._$AH[l]=u}s&&!o&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class pi extends ie{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class fi extends ie{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class gi extends ie{constructor(t,n,i,o,r){super(t,n,i,o,r),this.type=5}_$AI(t,n=this){if((t=Nt(this,t,n,0)??T)===st)return;const i=this._$AH,o=t===T&&i!==T||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==T&&(i===T||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}}class mi{constructor(t,n,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Nt(this,t)}}const Vo={P:gn,A:gt,C:mn,M:1,L:ci,R:hi,D:ii,V:Nt,I:Ut,H:ie,N:fi,U:gi,B:pi,F:mi},bn=Kt.litHtmlPolyfillSupport;bn==null||bn(ne,Ut),(Kt.litHtmlVersions??(Kt.litHtmlVersions=[])).push("3.1.2");const Lo=(e,t,n)=>{const i=(n==null?void 0:n.renderBefore)??t;let o=i._$litPart$;if(o===void 0){const r=(n==null?void 0:n.renderBefore)??null;i._$litPart$=o=new Ut(t.insertBefore(Qt(),r),r,void 0,n??{})}return o._$AI(e),o};/**
13
+ */const Qt=globalThis,Ae=Qt.trustedTypes,oi=Ae?Ae.createPolicy("lit-html",{createHTML:e=>e}):void 0,bn="$lit$",gt=`lit$${Math.random().toFixed(9).slice(2)}$`,vn="?"+gt,Fo=`<${vn}>`,Dt=document,te=()=>Dt.createComment(""),ee=e=>e===null||typeof e!="object"&&typeof e!="function",ri=Array.isArray,si=e=>ri(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",wn=`[
14
+ \f\r]`,ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ai=/-->/g,li=/>/g,Rt=RegExp(`>|${wn}(?:([^\\s"'>=/]+)(${wn}*=${wn}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ui=/'/g,di=/"/g,ci=/^(?:script|style|textarea|title)$/i,jo=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),E=jo(1),at=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),hi=new WeakMap,Ot=Dt.createTreeWalker(Dt,129);function pi(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return oi!==void 0?oi.createHTML(t):t}const fi=(e,t)=>{const n=e.length-1,i=[];let o,r=t===2?"<svg>":"",s=ne;for(let a=0;a<n;a++){const l=e[a];let u,c,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===ne?c[1]==="!--"?s=ai:c[1]!==void 0?s=li:c[2]!==void 0?(ci.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Rt):c[3]!==void 0&&(s=Rt):s===Rt?c[0]===">"?(s=o??ne,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Rt:c[3]==='"'?di:ui):s===di||s===ui?s=Rt:s===ai||s===li?s=ne:(s=Rt,o=void 0);const f=s===Rt&&e[a+1].startsWith("/>")?" ":"";r+=s===ne?l+Fo:d>=0?(i.push(u),l.slice(0,d)+bn+l.slice(d)+gt+f):l+gt+(d===-2?a:f)}return[pi(e,r+(e[n]||"<?>")+(t===2?"</svg>":"")),i]};class ie{constructor({strings:t,_$litType$:n},i){let o;this.parts=[];let r=0,s=0;const a=t.length-1,l=this.parts,[u,c]=fi(t,n);if(this.el=ie.createElement(u,i),Ot.currentNode=this.el.content,n===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(o=Ot.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const d of o.getAttributeNames())if(d.endsWith(bn)){const p=c[s++],f=o.getAttribute(d).split(gt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:f,ctor:g[1]==="."?mi:g[1]==="?"?yi:g[1]==="@"?bi:oe}),o.removeAttribute(d)}else d.startsWith(gt)&&(l.push({type:6,index:r}),o.removeAttribute(d));if(ci.test(o.tagName)){const d=o.textContent.split(gt),p=d.length-1;if(p>0){o.textContent=Ae?Ae.emptyScript:"";for(let f=0;f<p;f++)o.append(d[f],te()),Ot.nextNode(),l.push({type:2,index:++r});o.append(d[p],te())}}}else if(o.nodeType===8)if(o.data===vn)l.push({type:2,index:r});else{let d=-1;for(;(d=o.data.indexOf(gt,d+1))!==-1;)l.push({type:7,index:r}),d+=gt.length-1}r++}}static createElement(t,n){const i=Dt.createElement("template");return i.innerHTML=t,i}}function Mt(e,t,n=e,i){var s,a;if(t===at)return t;let o=i!==void 0?(s=n._$Co)==null?void 0:s[i]:n._$Cl;const r=ee(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,n,i)),i!==void 0?(n._$Co??(n._$Co=[]))[i]=o:n._$Cl=o),o!==void 0&&(t=Mt(e,o._$AS(e,t.values),o,i)),t}class gi{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:i}=this._$AD,o=((t==null?void 0:t.creationScope)??Dt).importNode(n,!0);Ot.currentNode=o;let r=Ot.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new kt(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new vi(r,this,t)),this._$AV.push(u),l=i[++a]}s!==(l==null?void 0:l.index)&&(r=Ot.nextNode(),s++)}return Ot.currentNode=Dt,o}p(t){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}class kt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,n,i,o){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=Mt(this,t,n),ee(t)?t===T||t==null||t===""?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==at&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):si(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==T&&ee(this._$AH)?this._$AA.nextSibling.data=t:this.T(Dt.createTextNode(t)),this._$AH=t}$(t){var r;const{values:n,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=ie.createElement(pi(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(n);else{const s=new gi(o,this),a=s.u(this.options);s.p(n),this.T(a),this._$AH=s}}_$AC(t){let n=hi.get(t.strings);return n===void 0&&hi.set(t.strings,n=new ie(t)),n}k(t){ri(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,o=0;for(const r of t)o===n.length?n.push(i=new kt(this.S(te()),this.S(te()),this,this.options)):i=n[o],i._$AI(r),o++;o<n.length&&(this._$AR(i&&i._$AB.nextSibling,o),n.length=o)}_$AR(t=this._$AA.nextSibling,n){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,n);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)==null||n.call(this,t))}}class oe{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,i,o,r){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=n,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}_$AI(t,n=this,i,o){const r=this.strings;let s=!1;if(r===void 0)t=Mt(this,t,n,0),s=!ee(t)||t!==this._$AH&&t!==at,s&&(this._$AH=t);else{const a=t;let l,u;for(t=r[0],l=0;l<r.length-1;l++)u=Mt(this,a[i+l],n,l),u===at&&(u=this._$AH[l]),s||(s=!ee(u)||u!==this._$AH[l]),u===T?t=T:t!==T&&(t+=(u??"")+r[l+1]),this._$AH[l]=u}s&&!o&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class mi extends oe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class yi extends oe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class bi extends oe{constructor(t,n,i,o,r){super(t,n,i,o,r),this.type=5}_$AI(t,n=this){if((t=Mt(this,t,n,0)??T)===at)return;const i=this._$AH,o=t===T&&i!==T||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==T&&(i===T||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}}class vi{constructor(t,n,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Mt(this,t)}}const Zo={P:bn,A:gt,C:vn,M:1,L:fi,R:gi,D:si,V:Mt,I:kt,H:oe,N:yi,U:bi,B:mi,F:vi},En=Qt.litHtmlPolyfillSupport;En==null||En(ie,kt),(Qt.litHtmlVersions??(Qt.litHtmlVersions=[])).push("3.1.4");const zo=(e,t,n)=>{const i=(n==null?void 0:n.renderBefore)??t;let o=i._$litPart$;if(o===void 0){const r=(n==null?void 0:n.renderBefore)??null;i._$litPart$=o=new kt(t.insertBefore(te(),r),r,void 0,n??{})}return o._$AI(e),o};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */let et=class extends kt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const t=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=t.firstChild),t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Lo(n,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 st}};et._$litElement$=!0,et.finalized=!0,(go=globalThis.litElementHydrateSupport)==null||go.call(globalThis,{LitElement:et});const vn=globalThis.litElementPolyfillSupport;vn==null||vn({LitElement:et}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
19
+ */let Q=class extends Ut{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const t=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=t.firstChild),t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=zo(n,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 at}};Q._$litElement$=!0,Q.finalized=!0,(vo=globalThis.litElementHydrateSupport)==null||vo.call(globalThis,{LitElement:Q});const xn=globalThis.litElementPolyfillSupport;xn==null||xn({LitElement:Q}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/**
20
20
  * @license
21
21
  * Copyright 2021 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */function at(e,t,n){return e?t(e):n==null?void 0:n(e)}/**
23
+ */function tt(e,t,n){return e?t(e):n==null?void 0:n(e)}/**
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},wn=e=>(...t)=>({_$litDirective$:e,values:t});class En{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,i){this._$Ct=t,this._$AM=n,this._$Ci=i}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}}/**
27
+ */const $t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$n=e=>(...t)=>({_$litDirective$:e,values:t});class Sn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,i){this._$Ct=t,this._$AM=n,this._$Ci=i}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}}/**
28
28
  * @license
29
29
  * Copyright 2020 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const{I:ko}=Vo,Uo=e=>e.strings===void 0,yi=()=>document.createComment(""),oe=(e,t,n)=>{var r;const i=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(n===void 0){const s=i.insertBefore(yi(),o),a=i.insertBefore(yi(),o);n=new ko(s,a,e,e.options)}else{const s=n._$AB.nextSibling,a=n._$AM,l=a!==e;if(l){let u;(r=n._$AQ)==null||r.call(n,e),n._$AM=e,n._$AP!==void 0&&(u=e._$AU)!==a._$AU&&n._$AP(u)}if(s!==o||l){let u=n._$AA;for(;u!==s;){const c=u.nextSibling;i.insertBefore(u,o),u=c}}}return n},Mt=(e,t,n=e)=>(e._$AI(t,n),e),Fo={},bi=(e,t=Fo)=>e._$AH=t,jo=e=>e._$AH,xn=e=>{var i;(i=e._$AP)==null||i.call(e,!1,!0);let t=e._$AA;const n=e._$AB.nextSibling;for(;t!==n;){const o=t.nextSibling;t.remove(),t=o}};/**
31
+ */const{I:Xo}=Zo,qo=e=>e.strings===void 0,wi=()=>document.createComment(""),re=(e,t,n)=>{var r;const i=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(n===void 0){const s=i.insertBefore(wi(),o),a=i.insertBefore(wi(),o);n=new Xo(s,a,e,e.options)}else{const s=n._$AB.nextSibling,a=n._$AM,l=a!==e;if(l){let u;(r=n._$AQ)==null||r.call(n,e),n._$AM=e,n._$AP!==void 0&&(u=e._$AU)!==a._$AU&&n._$AP(u)}if(s!==o||l){let u=n._$AA;for(;u!==s;){const c=u.nextSibling;i.insertBefore(u,o),u=c}}}return n},Nt=(e,t,n=e)=>(e._$AI(t,n),e),Yo={},Ei=(e,t=Yo)=>e._$AH=t,Wo=e=>e._$AH,_n=e=>{var i;(i=e._$AP)==null||i.call(e,!1,!0);let t=e._$AA;const n=e._$AB.nextSibling;for(;t!==n;){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 vi=(e,t,n)=>{const i=new Map;for(let o=t;o<=n;o++)i.set(e[o],o);return i},zo=wn(class extends En{constructor(e){if(super(e),e.type!==St.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,n){let i;n===void 0?n=t:t!==void 0&&(i=t);const o=[],r=[];let s=0;for(const a of e)o[s]=i?i(a,s):s,r[s]=n(a,s),s++;return{values:r,keys:o}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,i]){const o=jo(e),{values:r,keys:s}=this.dt(t,n,i);if(!Array.isArray(o))return this.ut=s,r;const a=this.ut??(this.ut=[]),l=[];let u,c,d=0,p=o.length-1,f=0,g=r.length-1;for(;d<=p&&f<=g;)if(o[d]===null)d++;else if(o[p]===null)p--;else if(a[d]===s[f])l[f]=Mt(o[d],r[f]),d++,f++;else if(a[p]===s[g])l[g]=Mt(o[p],r[g]),p--,g--;else if(a[d]===s[g])l[g]=Mt(o[d],r[g]),oe(e,l[g+1],o[d]),d++,g--;else if(a[p]===s[f])l[f]=Mt(o[p],r[f]),oe(e,o[d],o[p]),p--,f++;else if(u===void 0&&(u=vi(s,f,g),c=vi(a,d,p)),u.has(a[d]))if(u.has(a[p])){const y=c.get(s[f]),D=y!==void 0?o[y]:null;if(D===null){const X=oe(e,o[d]);Mt(X,r[f]),l[f]=X}else l[f]=Mt(D,r[f]),oe(e,o[d],D),o[y]=null;f++}else xn(o[p]),p--;else xn(o[d]),d++;for(;f<=g;){const y=oe(e,l[g+1]);Mt(y,r[f]),l[f++]=y}for(;d<=p;){const y=o[d++];y!==null&&xn(y)}return this.ut=s,bi(e,l),st}});/**
35
+ */const xi=(e,t,n)=>{const i=new Map;for(let o=t;o<=n;o++)i.set(e[o],o);return i},Go=$n(class extends Sn{constructor(e){if(super(e),e.type!==$t.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,n){let i;n===void 0?n=t:t!==void 0&&(i=t);const o=[],r=[];let s=0;for(const a of e)o[s]=i?i(a,s):s,r[s]=n(a,s),s++;return{values:r,keys:o}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,i]){const o=Wo(e),{values:r,keys:s}=this.dt(t,n,i);if(!Array.isArray(o))return this.ut=s,r;const a=this.ut??(this.ut=[]),l=[];let u,c,d=0,p=o.length-1,f=0,g=r.length-1;for(;d<=p&&f<=g;)if(o[d]===null)d++;else if(o[p]===null)p--;else if(a[d]===s[f])l[f]=Nt(o[d],r[f]),d++,f++;else if(a[p]===s[g])l[g]=Nt(o[p],r[g]),p--,g--;else if(a[d]===s[g])l[g]=Nt(o[d],r[g]),re(e,l[g+1],o[d]),d++,g--;else if(a[p]===s[f])l[f]=Nt(o[p],r[f]),re(e,o[d],o[p]),p--,f++;else if(u===void 0&&(u=xi(s,f,g),c=xi(a,d,p)),u.has(a[d]))if(u.has(a[p])){const y=c.get(s[f]),M=y!==void 0?o[y]:null;if(M===null){const q=re(e,o[d]);Nt(q,r[f]),l[f]=q}else l[f]=Nt(M,r[f]),re(e,o[d],M),o[y]=null;f++}else _n(o[p]),p--;else _n(o[d]),d++;for(;f<=g;){const y=re(e,l[g+1]);Nt(y,r[f]),l[f++]=y}for(;d<=p;){const y=o[d++];y!==null&&_n(y)}return this.ut=s,Ei(e,l),at}});/**
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,wi=(e,t,n)=>t in e?e[t]:e[t]=n;const re={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 Zo{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,n){return Ae(t,n).join("")}}function Ae(e,t){return Ei(e,t,[]).join("")}function Ei(e,t,n){if(e.nodeType===re.CDATA_SECTION||e.nodeType===re.TEXT)t?n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(e.nodeValue);else{var i;for(i=e.firstChild;i;i=i.nextSibling)Ei(i,t,n)}return n}function Xo(e,t,n,i){for(var o=Yo(t);o;o=qo(o)){var r=o.namespaceURI||null,s=e[r];if(E(s)){var a=s[o.localName];E(a)&&a.call(i,o,n)}}}function Yo(e){let t=e.firstElementChild||e.firstChild;for(;t&&t.nodeType!==re.ELEMENT;)t=t.nextSibling;return t}function qo(e){let t=e.nextElementSibling||e.nextSibling;for(;t&&t.nodeType!==re.ELEMENT;)t=t.nextSibling;return t}function F(e,t,n){return Wo(e,t,n)}function Wo(e,t,n){var i=E(n)?n:{},o,r;for(o=0,r=e.length;o<r;++o)i[e[o]]=t;return i}function xi(e,t){return function(n,i){var o=e.call(E(t)?t:this,n,i);if(E(o)){var r=i[i.length-1];r.push(o)}}}function k(e,t,n,i,o){return i.push(e),Xo(t,n,i,o),i.pop()}function m(e,t,n){return function(i,o){let r=e.call(E(n)?n:this,i,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:i.localName;s[a]=r}}}function Q(e,t,n){return function(i,o){var r=e.call(E(n)?n:this,i,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:i.localName,l=wi(s,a,[]);l.push(r)}}}const Go=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function Jo(e){return e.replace(Go,"")}function It(e){const t=/^\s*(true|1)|(false|0)\s*$/.exec(e);if(t)return E(t[1])||!1}function Ft(e){return mt(Ae(e,!1))}function mt(e){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);if(t)return parseFloat(t[1])}function Sn(e){return Ce(Ae(e,!1))}function Ce(e){const t=/^\s*(\d+)\s*$/.exec(e);if(t)return parseInt(t[1],10)}function $(e){return Jo(Ae(e,!1))}const Ko="http://www.w3.org/1999/xlink";function $n(e){return e.getAttributeNS(Ko,"href")}function Qo(e,t){return k({},Ar,e,t)}function Si(e){return[mt(e.getAttribute("minx")),mt(e.getAttribute("miny")),mt(e.getAttribute("maxx")),mt(e.getAttribute("maxy"))]}function tr(e,t){const n=Si(e),i=[mt(e.getAttribute("resx")),mt(e.getAttribute("resy"))];return{crs:e.getAttribute("CRS")||e.getAttribute("SRS"),extent:n,res:i}}function er(e,t){const n=Si(e);if(!(!E(n[0])||!E(n[1])||!E(n[2])||!E(n[3])))return n}function nr(e,t){const n=parseFloat(e.getAttribute("min")),i=parseFloat(e.getAttribute("max"));return{min:n,max:i}}function ir(e,t){const n=k({},Cr,e,t);if(!E(n))return;const i=n.westBoundLongitude,o=n.southBoundLatitude,r=n.eastBoundLongitude,s=n.northBoundLatitude;if(!(!E(i)||!E(o)||!E(r)||!E(s)))return[i,o,r,s]}function or(e,t){return k({},wr,e,t)}function rr(e,t){return k({},Er,e,t)}function sr(e,t){return k({},xr,e,t)}function ar(e,t){return k({},Sr,e,t)}function lr(e,t){return k({},$r,e,t)}function ur(e,t){return k([],_r,e,t)}function dr(e,t){const n=It(e.getAttribute("queryable"));return k({queryable:E(n)?n:!1},Ai,e,t)}function cr(e,t){var n=t[t.length-1];const i=k({},Ai,e,t);if(!E(i))return;let o=It(e.getAttribute("queryable"));E(o)||(o=n.queryable),i.queryable=E(o)?o:!1;let r=Ce(e.getAttribute("cascaded"));E(r)||(r=n.cascaded),i.cascaded=r;let s=It(e.getAttribute("opaque"));E(s)||(s=n.opaque),i.opaque=E(s)?s:!1;let a=It(e.getAttribute("noSubsets"));E(a)||(a=n.noSubsets),i.noSubsets=E(a)?a:!1;let l=mt(e.getAttribute("fixedWidth"));E(l)||(l=n.fixedWidth),i.fixedWidth=l;let u=mt(e.getAttribute("fixedHeight"));E(u)||(u=n.fixedHeight),i.fixedHeight=u;const c=["Style","CRS","AuthorityURL"];for(let p=0,f=c.length;p<f;p++){const g=c[p],y=n[g];if(E(y)){let D=wi(i,g,[]);D=D.concat(y),i[g]=D}}const d=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=d.length;p<f;p++){const g=d[p],y=i[g];if(!E(y)){const D=n[g];i[g]=D}}return i}function hr(e,t){return{name:e.getAttribute("name"),units:e.getAttribute("units"),unitSymbol:e.getAttribute("unitSymbol"),default:e.getAttribute("default"),multipleValues:It(e.getAttribute("multipleValues")),nearestValue:It(e.getAttribute("nearestValue")),current:It(e.getAttribute("current")),values:$(e)}}function yt(e,t){return k({},Nr,e,t)}function pr(e,t){return k({},Tr,e,t)}function fr(e,t){return k({},Or,e,t)}function gr(e,t){return k({},Rr,e,t)}function _n(e,t){return k({},Pr,e,t)}function $i(e,t){var n=yt(e,t);if(E(n)){const i=[Ce(e.getAttribute("width")),Ce(e.getAttribute("height"))];return n.size=i,n}}function mr(e,t){var n=yt(e,t);if(E(n))return n.name=e.getAttribute("name"),n}function yr(e,t){var n=yt(e,t);if(E(n))return n.type=e.getAttribute("type"),n}function br(e,t){return k({},Dr,e,t)}function _i(e,t){return k([],Mr,e,t)}const j=[null,"http://www.opengis.net/wms"],vr=F(j,{Service:m(rr),Capability:m(or)}),wr=F(j,{Request:m(pr),Exception:m(ur),Layer:m(dr)}),Er=F(j,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(_i),OnlineResource:m($n),ContactInformation:m(sr),Fees:m($),AccessConstraints:m($),LayerLimit:m(Sn),MaxWidth:m(Sn),MaxHeight:m(Sn)}),xr=F(j,{ContactPersonPrimary:m(ar),ContactPosition:m($),ContactAddress:m(lr),ContactVoiceTelephone:m($),ContactFacsimileTelephone:m($),ContactElectronicMailAddress:m($)}),Sr=F(j,{ContactPerson:m($),ContactOrganization:m($)}),$r=F(j,{AddressType:m($),Address:m($),City:m($),StateOrProvince:m($),PostCode:m($),Country:m($)}),_r=F(j,{Format:xi($)}),Ai=F(j,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(_i),CRS:Q($),SRS:Q($),EX_GeographicBoundingBox:m(ir),LatLonBoundingBox:m(er),BoundingBox:Q(tr),Dimension:Q(hr),Attribution:m(Qo),AuthorityURL:Q(mr),Identifier:Q($),MetadataURL:Q(yr),DataURL:Q(yt),FeatureListURL:Q(yt),Style:Q(br),MinScaleDenominator:m(Ft),MaxScaleDenominator:m(Ft),ScaleHint:m(nr),Layer:Q(cr)}),Ar=F(j,{Title:m($),OnlineResource:m($n),LogoURL:m($i)}),Cr=F(j,{westBoundLongitude:m(Ft),eastBoundLongitude:m(Ft),southBoundLatitude:m(Ft),northBoundLatitude:m(Ft)}),Tr=F(j,{GetCapabilities:m(_n),GetMap:m(_n),GetFeatureInfo:m(_n)}),Pr=F(j,{Format:Q($),DCPType:Q(fr)}),Or=F(j,{HTTP:m(gr)}),Rr=F(j,{Get:m(yt),Post:m(yt)}),Dr=F(j,{Name:m($),Title:m($),Abstract:m($),LegendURL:Q($i),StyleSheetURL:m(yt),StyleURL:m(yt)}),Nr=F(j,{Format:m($),OnlineResource:m($n)}),Mr=F(j,{Keyword:xi($)});class Ir{constructor(t,n){!n&&typeof window<"u"&&(n=window.DOMParser),this.version=void 0,this._parser=new Zo(n),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 n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==re.ELEMENT)return this.readFromNode(n);return null}readFromNode(t){return this.version=t.getAttribute("version"),k({version:this.version},vr,t,[])||null}}async function Hr(e){let t=new URL(e),n=t.searchParams;n.set("SERVICE","WMS"),n.set("REQUEST","GetCapabilities");let i=t.toString();const o=await fetch(i);if(o.ok){const r=await o.text();return new Ir(r).toJSON()}else throw new Error(`Error: ${o.status}`)}function An(e){const t=/\b(?:wms|ows)\b/i,n=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(e)?"TileWMS":n.test(e)?"XYZ":!1}function Br(e){const n=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e),i=An(e);return!!(e&&n&&i)}function Ci(e){return e.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function Vr(e){try{return JSON.parse(Ci(e)),!!e}catch{return!1}}function Lr(e,t){const n=new URL(e).searchParams;Object.entries(t).forEach(([s,a])=>{typeof a=="object"&&!Array.isArray(a)&&a!==null?Object.keys(a).forEach(l=>{n.set(l,a[l])}):n.set(s,a)});const i=e.split("?")[0],o=n.toString();return`${i}?${o}`}/**!
40
+ */var x=e=>e!==void 0,$i=(e,t,n)=>t in e?e[t]:e[t]=n;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 Jo{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,n){return Ce(t,n).join("")}}function Ce(e,t){return Si(e,t,[]).join("")}function Si(e,t,n){if(e.nodeType===se.CDATA_SECTION||e.nodeType===se.TEXT)t?n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(e.nodeValue);else{var i;for(i=e.firstChild;i;i=i.nextSibling)Si(i,t,n)}return n}function Ko(e,t,n,i){for(var o=Qo(t);o;o=tr(o)){var r=o.namespaceURI||null,s=e[r];if(x(s)){var a=s[o.localName];x(a)&&a.call(i,o,n)}}}function Qo(e){let t=e.firstElementChild||e.firstChild;for(;t&&t.nodeType!==se.ELEMENT;)t=t.nextSibling;return t}function tr(e){let t=e.nextElementSibling||e.nextSibling;for(;t&&t.nodeType!==se.ELEMENT;)t=t.nextSibling;return t}function j(e,t,n){return er(e,t,n)}function er(e,t,n){var i=x(n)?n:{},o,r;for(o=0,r=e.length;o<r;++o)i[e[o]]=t;return i}function _i(e,t){return function(n,i){var o=e.call(x(t)?t:this,n,i);if(x(o)){var r=i[i.length-1];r.push(o)}}}function k(e,t,n,i,o){return i.push(e),Ko(t,n,i,o),i.pop()}function m(e,t,n){return function(i,o){let r=e.call(x(n)?n:this,i,o);if(x(r)){var s=o[o.length-1],a=x(t)?t:i.localName;s[a]=r}}}function et(e,t,n){return function(i,o){var r=e.call(x(n)?n:this,i,o);if(x(r)){var s=o[o.length-1],a=x(t)?t:i.localName,l=$i(s,a,[]);l.push(r)}}}const nr=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function ir(e){return e.replace(nr,"")}function It(e){const t=/^\s*(true|1)|(false|0)\s*$/.exec(e);if(t)return x(t[1])||!1}function Ft(e){return mt(Ce(e,!1))}function mt(e){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);if(t)return parseFloat(t[1])}function An(e){return Te(Ce(e,!1))}function Te(e){const t=/^\s*(\d+)\s*$/.exec(e);if(t)return parseInt(t[1],10)}function S(e){return ir(Ce(e,!1))}const or="http://www.w3.org/1999/xlink";function Cn(e){return e.getAttributeNS(or,"href")}function rr(e,t){return k({},Or,e,t)}function Ai(e){return[mt(e.getAttribute("minx")),mt(e.getAttribute("miny")),mt(e.getAttribute("maxx")),mt(e.getAttribute("maxy"))]}function sr(e,t){const n=Ai(e),i=[mt(e.getAttribute("resx")),mt(e.getAttribute("resy"))];return{crs:e.getAttribute("CRS")||e.getAttribute("SRS"),extent:n,res:i}}function ar(e,t){const n=Ai(e);if(!(!x(n[0])||!x(n[1])||!x(n[2])||!x(n[3])))return n}function lr(e,t){const n=parseFloat(e.getAttribute("min")),i=parseFloat(e.getAttribute("max"));return{min:n,max:i}}function ur(e,t){const n=k({},Mr,e,t);if(!x(n))return;const i=n.westBoundLongitude,o=n.southBoundLatitude,r=n.eastBoundLongitude,s=n.northBoundLatitude;if(!(!x(i)||!x(o)||!x(r)||!x(s)))return[i,o,r,s]}function dr(e,t){return k({},Ar,e,t)}function cr(e,t){return k({},Cr,e,t)}function hr(e,t){return k({},Tr,e,t)}function pr(e,t){return k({},Pr,e,t)}function fr(e,t){return k({},Dr,e,t)}function gr(e,t){return k([],Rr,e,t)}function mr(e,t){const n=It(e.getAttribute("queryable"));return k({queryable:x(n)?n:!1},Pi,e,t)}function yr(e,t){var n=t[t.length-1];const i=k({},Pi,e,t);if(!x(i))return;let o=It(e.getAttribute("queryable"));x(o)||(o=n.queryable),i.queryable=x(o)?o:!1;let r=Te(e.getAttribute("cascaded"));x(r)||(r=n.cascaded),i.cascaded=r;let s=It(e.getAttribute("opaque"));x(s)||(s=n.opaque),i.opaque=x(s)?s:!1;let a=It(e.getAttribute("noSubsets"));x(a)||(a=n.noSubsets),i.noSubsets=x(a)?a:!1;let l=mt(e.getAttribute("fixedWidth"));x(l)||(l=n.fixedWidth),i.fixedWidth=l;let u=mt(e.getAttribute("fixedHeight"));x(u)||(u=n.fixedHeight),i.fixedHeight=u;const c=["Style","CRS","AuthorityURL"];for(let p=0,f=c.length;p<f;p++){const g=c[p],y=n[g];if(x(y)){let M=$i(i,g,[]);M=M.concat(y),i[g]=M}}const d=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=d.length;p<f;p++){const g=d[p],y=i[g];if(!x(y)){const M=n[g];i[g]=M}}return i}function br(e,t){return{name:e.getAttribute("name"),units:e.getAttribute("units"),unitSymbol:e.getAttribute("unitSymbol"),default:e.getAttribute("default"),multipleValues:It(e.getAttribute("multipleValues")),nearestValue:It(e.getAttribute("nearestValue")),current:It(e.getAttribute("current")),values:S(e)}}function yt(e,t){return k({},Lr,e,t)}function vr(e,t){return k({},Nr,e,t)}function wr(e,t){return k({},Hr,e,t)}function Er(e,t){return k({},Br,e,t)}function Tn(e,t){return k({},Ir,e,t)}function Ci(e,t){var n=yt(e,t);if(x(n)){const i=[Te(e.getAttribute("width")),Te(e.getAttribute("height"))];return n.size=i,n}}function xr(e,t){var n=yt(e,t);if(x(n))return n.name=e.getAttribute("name"),n}function $r(e,t){var n=yt(e,t);if(x(n))return n.type=e.getAttribute("type"),n}function Sr(e,t){return k({},Vr,e,t)}function Ti(e,t){return k([],Ur,e,t)}const Z=[null,"http://www.opengis.net/wms"],_r=j(Z,{Service:m(cr),Capability:m(dr)}),Ar=j(Z,{Request:m(vr),Exception:m(gr),Layer:m(mr)}),Cr=j(Z,{Name:m(S),Title:m(S),Abstract:m(S),KeywordList:m(Ti),OnlineResource:m(Cn),ContactInformation:m(hr),Fees:m(S),AccessConstraints:m(S),LayerLimit:m(An),MaxWidth:m(An),MaxHeight:m(An)}),Tr=j(Z,{ContactPersonPrimary:m(pr),ContactPosition:m(S),ContactAddress:m(fr),ContactVoiceTelephone:m(S),ContactFacsimileTelephone:m(S),ContactElectronicMailAddress:m(S)}),Pr=j(Z,{ContactPerson:m(S),ContactOrganization:m(S)}),Dr=j(Z,{AddressType:m(S),Address:m(S),City:m(S),StateOrProvince:m(S),PostCode:m(S),Country:m(S)}),Rr=j(Z,{Format:_i(S)}),Pi=j(Z,{Name:m(S),Title:m(S),Abstract:m(S),KeywordList:m(Ti),CRS:et(S),SRS:et(S),EX_GeographicBoundingBox:m(ur),LatLonBoundingBox:m(ar),BoundingBox:et(sr),Dimension:et(br),Attribution:m(rr),AuthorityURL:et(xr),Identifier:et(S),MetadataURL:et($r),DataURL:et(yt),FeatureListURL:et(yt),Style:et(Sr),MinScaleDenominator:m(Ft),MaxScaleDenominator:m(Ft),ScaleHint:m(lr),Layer:et(yr)}),Or=j(Z,{Title:m(S),OnlineResource:m(Cn),LogoURL:m(Ci)}),Mr=j(Z,{westBoundLongitude:m(Ft),eastBoundLongitude:m(Ft),southBoundLatitude:m(Ft),northBoundLatitude:m(Ft)}),Nr=j(Z,{GetCapabilities:m(Tn),GetMap:m(Tn),GetFeatureInfo:m(Tn)}),Ir=j(Z,{Format:et(S),DCPType:et(wr)}),Hr=j(Z,{HTTP:m(Er)}),Br=j(Z,{Get:m(yt),Post:m(yt)}),Vr=j(Z,{Name:m(S),Title:m(S),Abstract:m(S),LegendURL:et(Ci),StyleSheetURL:m(yt),StyleURL:m(yt)}),Lr=j(Z,{Format:m(S),OnlineResource:m(Cn)}),Ur=j(Z,{Keyword:_i(S)});class kr{constructor(t,n){!n&&typeof window<"u"&&(n=window.DOMParser),this.version=void 0,this._parser=new Jo(n),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 n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==se.ELEMENT)return this.readFromNode(n);return null}readFromNode(t){return this.version=t.getAttribute("version"),k({version:this.version},_r,t,[])||null}}async function Fr(e){let t=new URL(e),n=t.searchParams;n.set("SERVICE","WMS"),n.set("REQUEST","GetCapabilities");let i=t.toString();const o=await fetch(i);if(o.ok){const r=await o.text();return new kr(r).toJSON()}else throw new Error(`Error: ${o.status}`)}function Pn(e){const t=/\b(?:wms|ows)\b/i,n=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(e)?"TileWMS":n.test(e)?"XYZ":!1}function jr(e){const n=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(e),i=Pn(e);return!!(e&&n&&i)}function Di(e){return e.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function Zr(e){try{return JSON.parse(Di(e)),!!e}catch{return!1}}function zr(e,t){const n=new URL(e).searchParams;Object.entries(t).forEach(([s,a])=>{typeof a=="object"&&!Array.isArray(a)&&a!==null?Object.keys(a).forEach(l=>{n.set(l,a[l])}):n.set(s,a)});const i=e.split("?")[0],o=n.toString();return`${i}?${o}`}/**!
41
41
  * Sortable 1.15.2
42
42
  * @author RubaXa <trash@rubaxa.org>
43
43
  * @author owenm <owen23355@gmail.com>
44
44
  * @license MIT
45
- */function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ti(Object(n),!0).forEach(function(i){kr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Te(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Te=function(t){return typeof t}:Te=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Te(e)}function kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bt.apply(this,arguments)}function Ur(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Fr(e,t){if(e==null)return{};var n=Ur(e,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var jr="1.15.2";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),se=vt(/Edge/i),Pi=vt(/firefox/i),ae=vt(/safari/i)&&!vt(/chrome/i)&&!vt(/android/i),Oi=vt(/iP(ad|od|hone)/i),Ri=vt(/chrome/i)&&vt(/android/i),Di={capture:!1,passive:!1};function A(e,t,n){e.addEventListener(t,n,!wt&&Di)}function S(e,t,n){e.removeEventListener(t,n,!wt&&Di)}function Pe(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 zr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ut(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Pe(e,t):Pe(e,t))||i&&e===n)return e;if(e===n)break}while(e=zr(e))}return null}var Ni=/\s+/g;function nt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Ni," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Ni," ")}}function b(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function jt(e,t){var n="";if(typeof e=="string")n=e;else do{var i=b(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Mi(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function ft(){var e=document.scrollingElement;return e||document.documentElement}function B(e,t,n,i,o){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,u,c,d;if(e!==window&&e.parentNode&&e!==ft()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,u=r.right,c=r.height,d=r.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!wt))do if(o&&o.getBoundingClientRect&&(b(o,"transform")!=="none"||n&&b(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(b(o,"border-top-width")),a-=p.left+parseInt(b(o,"border-left-width")),l=s+r.height,u=a+r.width;break}while(o=o.parentNode);if(i&&e!==window){var f=jt(o||e),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,d/=g,c/=y,l=s+c,u=a+d)}return{top:s,left:a,bottom:l,right:u,width:d,height:c}}}function Ii(e,t,n){for(var i=$t(e,!0),o=B(e)[t];i;){var r=B(i)[n],s=void 0;if(n==="top"||n==="left"?s=o>=r:s=o<=r,!s)return i;if(i===ft())break;i=$t(i,!1)}return!1}function zt(e,t,n,i){for(var o=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==v.ghost&&(i||s[r]!==v.dragged)&&ut(s[r],n.draggable,e,!1)){if(o===t)return s[r];o++}r++}return null}function Cn(e,t){for(var n=e.lastElementChild;n&&(n===v.ghost||b(n,"display")==="none"||t&&!Pe(n,t));)n=n.previousElementSibling;return n||null}function lt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==v.clone&&(!t||Pe(e,t))&&n++;return n}function Hi(e){var t=0,n=0,i=ft();if(e)do{var o=jt(e),r=o.a,s=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function Zr(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function $t(e,t){if(!e||!e.getBoundingClientRect)return ft();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=b(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ft();if(i||t)return n;i=!0}}while(n=n.parentNode);return ft()}function Xr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Tn(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 le;function Bi(e,t){return function(){if(!le){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),le=setTimeout(function(){le=void 0},t)}}}function Yr(){clearTimeout(le),le=void 0}function Vi(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Li(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function ki(e,t,n){var i={};return Array.from(e.children).forEach(function(o){var r,s,a,l;if(!(!ut(o,t.draggable,e,!1)||o.animated||o===n)){var u=B(o);i.left=Math.min((r=i.left)!==null&&r!==void 0?r:1/0,u.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,u.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,u.right),i.bottom=Math.max((l=i.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var it="Sortable"+new Date().getTime();function qr(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(b(o,"display")==="none"||o===v.ghost)){e.push({target:o,rect:B(o)});var r=pt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=jt(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){e.push(i)},removeAnimationState:function(i){e.splice(Zr(e,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;e.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=B(u),p=u.prevFromRect,f=u.prevToRect,g=a.rect,y=jt(u,!0);y&&(d.top-=y.f,d.left-=y.e),u.toRect=d,u.thisAnimationDuration&&Tn(p,d)&&!Tn(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=Gr(g,p,f,o.options)),Tn(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=o.options.animation),o.animate(u,g,d,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),e=[]},animate:function(i,o,r,s){if(s){b(i,"transition",""),b(i,"transform","");var a=jt(this.el),l=a&&a.a,u=a&&a.d,c=(o.left-r.left)/(l||1),d=(o.top-r.top)/(u||1);i.animatingX=!!c,i.animatingY=!!d,b(i,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=Wr(i),b(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),b(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){b(i,"transition",""),b(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function Wr(e){return e.offsetWidth}function Gr(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var Zt=[],Pn={initializeByDefault:!0},ue={mount:function(t){for(var n in Pn)Pn.hasOwnProperty(n)&&!(n in t)&&(t[n]=Pn[n]);Zt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Zt.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Zt.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][r]&&n[s.pluginName][r](pt({sortable:n},i)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](pt({sortable:n},i)))})},initializePlugins:function(t,n,i,o){Zt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var u=new a(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,bt(i,u.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,n){var i={};return Zt.forEach(function(o){typeof o.eventProperties=="function"&&bt(i,o.eventProperties.call(n[o.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return Zt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(t[r.pluginName],i))}),o}};function Jr(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[it],!!t){var y,D=t.options,X="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!wt&&!se?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=o||n,y.clone=r,y.oldIndex=l,y.newIndex=u,y.oldDraggableIndex=c,y.newDraggableIndex=d,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var U=pt(pt({},g),ue.getEventProperties(i,t));for(var rt in U)y[rt]=U[rt];n&&n.dispatchEvent(y),D[X]&&D[X].call(t,y)}}var Kr=["evt"],tt=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Fr(i,Kr);ue.pluginEvent.bind(v)(t,n,pt({dragEl:h,parentEl:I,ghostEl:w,rootEl:R,nextEl:Ht,lastDownEl:Oe,cloneEl:N,cloneHidden:_t,dragStarted:ce,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:Xt,oldDraggableIndex:de,newIndex:ot,newDraggableIndex:At,hideGhostForTarget:Yi,unhideGhostForTarget:qi,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){J({sortable:n,name:a,originalEvent:o})}},r))};function J(e){Jr(pt({putSortable:z,cloneEl:N,targetEl:h,rootEl:R,oldIndex:Xt,oldDraggableIndex:de,newIndex:ot,newDraggableIndex:At},e))}var h,I,w,R,Ht,Oe,N,_t,Xt,ot,de,At,Re,z,Yt=!1,De=!1,Ne=[],Bt,dt,On,Rn,Ui,Fi,ce,qt,he,pe=!1,Me=!1,Ie,q,Dn=[],Nn=!1,He=[],Be=typeof document<"u",Ve=Oi,ji=se||wt?"cssFloat":"float",Qr=Be&&!Ri&&!Oi&&"draggable"in document.createElement("div"),zi=function(){if(Be){if(wt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Zi=function(t,n){var i=b(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=zt(t,0,n),s=zt(t,1,n),a=r&&b(r),l=s&&b(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+B(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+B(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=o&&i[ji]==="none"||s&&i[ji]==="none"&&u+c>o)?"vertical":"horizontal"},ts=function(t,n,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,a=i?n.left:n.top,l=i?n.right:n.bottom,u=i?n.width:n.height;return o===a||r===l||o+s/2===a+u/2},es=function(t,n){var i;return Ne.some(function(o){var r=o[it].options.emptyInsertThreshold;if(!(!r||Cn(o))){var s=B(o),a=t>=s.left-r&&t<=s.right+r,l=n>=s.top-r&&n<=s.bottom+r;if(a&&l)return i=o}}),i},Xi=function(t){function n(r,s){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||d))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return n(r(a,l,u,c),s)(a,l,u,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||Te(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},Yi=function(){!zi&&w&&b(w,"display","none")},qi=function(){!zi&&w&&b(w,"display","")};Be&&!Ri&&document.addEventListener("click",function(e){if(De)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),De=!1,!1},!0);var Vt=function(t){if(h){t=t.touches?t.touches[0]:t;var n=es(t.clientX,t.clientY);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[it]._onDragOver(i)}}},ns=function(t){h&&h.parentNode[it]._isOutsideThisEl(t.target)};function v(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[it]=this;var n={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 Zi(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:v.supportPointer!==!1&&"PointerEvent"in window&&!ae,emptyInsertThreshold:5};ue.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);Xi(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:Qr,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,qr())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(qt=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=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,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(ds(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ae&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=ut(l,o.draggable,i,!1),!(l&&l.animated)&&Oe!==l)){if(Xt=lt(l),de=lt(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){J({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:i,fromEl:i}),tt("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=ut(u,d.trim(),i,!1),d)return J({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:i,toEl:i}),tt("filter",n,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!ut(u,o.handle,i,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,i){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(i&&!h&&i.parentNode===r){var u=B(i);if(R=r,h=i,I=h.parentNode,Ht=h.nextSibling,Oe=i,Re=s.group,v.dragged=h,Bt={target:h,clientX:(n||t).clientX,clientY:(n||t).clientY},Ui=Bt.clientX-u.left,Fi=Bt.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,h.style["will-change"]="all",l=function(){if(tt("delayEnded",o,{evt:t}),v.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Pi&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,n),J({sortable:o,name:"choose",originalEvent:t}),nt(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){Mi(h,c.trim(),Mn)}),A(a,"dragover",Vt),A(a,"mousemove",Vt),A(a,"touchmove",Vt),A(a,"mouseup",o._onDrop),A(a,"touchend",o._onDrop),A(a,"touchcancel",o._onDrop),Pi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),tt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(se||wt))){if(v.eventCanceled){this._onDrop();return}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 n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Mn(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,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):n?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(h,"dragend",this),A(R,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Yt=!1,R&&h){tt("dragStarted",this,{evt:n}),this.nativeDraggable&&A(document,"dragover",ns);var i=this.options;!t&&nt(h,i.dragClass,!1),nt(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Yi();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY),t!==n);)n=t;if(h.parentNode[it]._isOutsideThisEl(t),n)do{if(n[it]){var i=void 0;if(i=n[it]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);qi()}},_onTouchMove:function(t){if(Bt){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=w&&jt(w,!0),a=w&&s&&s.a,l=w&&s&&s.d,u=Ve&&q&&Hi(q),c=(r.clientX-Bt.clientX+o.x)/(a||1)+(u?u[0]-Dn[0]:0)/(a||1),d=(r.clientY-Bt.clientY+o.y)/(l||1)+(u?u[1]-Dn[1]:0)/(l||1);if(!v.active&&!Yt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(w){s?(s.e+=c-(On||0),s.f+=d-(Rn||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");b(w,"webkitTransform",p),b(w,"mozTransform",p),b(w,"msTransform",p),b(w,"transform",p),On=c,Rn=d,dt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:R,n=B(h,!0,Ve,!0,t),i=this.options;if(Ve){for(q=t;b(q,"position")==="static"&&b(q,"transform")==="none"&&q!==document;)q=q.parentNode;q!==document.body&&q!==document.documentElement?(q===document&&(q=ft()),n.top+=q.scrollTop,n.left+=q.scrollLeft):q=ft(),Dn=Hi(q)}w=h.cloneNode(!0),nt(w,i.ghostClass,!1),nt(w,i.fallbackClass,!0),nt(w,i.dragClass,!0),b(w,"transition",""),b(w,"transform",""),b(w,"box-sizing","border-box"),b(w,"margin",0),b(w,"top",n.top),b(w,"left",n.left),b(w,"width",n.width),b(w,"height",n.height),b(w,"opacity","0.8"),b(w,"position",Ve?"absolute":"fixed"),b(w,"zIndex","100000"),b(w,"pointerEvents","none"),v.ghost=w,t.appendChild(w),b(w,"transform-origin",Ui/parseInt(w.style.width)*100+"% "+Fi/parseInt(w.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,r=i.options;if(tt("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}tt("setupClone",this),v.eventCanceled||(N=Li(h),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),nt(N,this.options.chosenClass,!1),v.clone=N),i.cloneId=ke(function(){tt("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||R.insertBefore(N,h),i._hideClone(),J({sortable:i,name:"clone"}))}),!n&&nt(h,r.dragClass,!0),n?(De=!0,i._loopId=setInterval(i._emulateDragOver,50)):(S(document,"mouseup",i._onDrop),S(document,"touchend",i._onDrop),S(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,h)),A(document,"drop",i),b(h,"transform","translateZ(0)")),Yt=!0,i._dragStartId=ke(i._dragStarted.bind(i,n,t)),A(document,"selectstart",i),ce=!0,ae&&b(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,i=t.target,o,r,s,a=this.options,l=a.group,u=v.active,c=Re===l,d=a.sort,p=z||u,f,g=this,y=!1;if(Nn)return;function D(Se,sa){tt(Se,g,pt({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:d,fromSortable:p,target:i,completed:U,onMove:function(mo,aa){return Le(R,n,h,o,mo,B(mo),t,aa)},changed:rt},sa))}function X(){D("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function U(Se){return D("dragOverCompleted",{insertion:Se}),Se&&(c?u._hideClone():u._showClone(g),g!==p&&(nt(h,z?z.options.ghostClass:u.options.ghostClass,!1),nt(h,a.ghostClass,!0)),z!==g&&g!==v.active?z=g:g===v.active&&z&&(z=null),p===g&&(g._ignoreWhileAnimating=i),g.animateAll(function(){D("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===n&&!i.animated)&&(qt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[it]._isOutsideThisEl(t.target),!Se&&Vt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function rt(){ot=lt(h),At=lt(h,a.draggable),J({sortable:g,name:"change",toEl:n,newIndex:ot,newDraggableIndex:At,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=ut(i,a.draggable,n,!0),D("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return U(!1);if(De=!1,u&&!a.disabled&&(c?d||(s=I!==R):z===this||(this.lastPutMode=Re.checkPull(this,u,h,t))&&l.checkPut(this,u,h,t))){if(f=this._getDirection(t,i)==="vertical",o=B(h),D("dragOverValid"),v.eventCanceled)return y;if(s)return I=R,X(),this._hideClone(),D("revert"),v.eventCanceled||(Ht?R.insertBefore(h,Ht):R.appendChild(h)),U(!0);var K=Cn(n,a.draggable);if(!K||ss(t,f,this)&&!K.animated){if(K===h)return U(!1);if(K&&n===t.target&&(i=K),i&&(r=B(i)),Le(R,n,h,o,i,r,t,!!i)!==!1)return X(),K&&K.nextSibling?n.insertBefore(h,K.nextSibling):n.appendChild(h),I=n,rt(),U(!0)}else if(K&&rs(t,f,this)){var ct=zt(n,0,a,!0);if(ct===h)return U(!1);if(i=ct,r=B(i),Le(R,n,h,o,i,r,t,!1)!==!1)return X(),n.insertBefore(h,ct),I=n,rt(),U(!0)}else if(i.parentNode===n){r=B(i);var P=0,W,ht=h.parentNode!==n,G=!ts(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),we=f?"top":"left",Tt=Ii(i,"top","top")||Ii(h,"top","top"),Ee=Tt?Tt.scrollTop:void 0;qt!==i&&(W=r[we],pe=!1,Me=!G&&a.invertSwap||ht),P=as(t,i,r,f,G?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Me,qt===i);var Et;if(P!==0){var Lt=lt(h);do Lt-=P,Et=I.children[Lt];while(Et&&(b(Et,"display")==="none"||Et===w))}if(P===0||Et===i)return U(!1);qt=i,he=P;var xe=i.nextElementSibling,Pt=!1;Pt=P===1;var dn=Le(R,n,h,o,i,r,t,Pt);if(dn!==!1)return(dn===1||dn===-1)&&(Pt=dn===1),Nn=!0,setTimeout(os,30),X(),Pt&&!xe?n.appendChild(h):i.parentNode.insertBefore(h,Pt?xe:i),Tt&&Vi(Tt,0,Ee-Tt.scrollTop),I=h.parentNode,W!==void 0&&!Me&&(Ie=Math.abs(W-B(i)[we])),rt(),U(!0)}if(n.contains(h))return U(!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",Vt),S(document,"mousemove",Vt),S(document,"touchmove",Vt)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;if(ot=lt(h),At=lt(h,i.draggable),tt("drop",this,{evt:t}),I=h&&h.parentNode,ot=lt(h),At=lt(h,i.draggable),v.eventCanceled){this._nulling();return}Yt=!1,Me=!1,pe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),In(this.cloneId),In(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ae&&b(document.body,"user-select",""),b(h,"transform",""),t&&(ce&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),w&&w.parentNode&&w.parentNode.removeChild(w),(R===I||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),h&&(this.nativeDraggable&&S(h,"dragend",this),Mn(h),h.style["will-change"]="",ce&&!Yt&&nt(h,z?z.options.ghostClass:this.options.ghostClass,!1),nt(h,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:I,newIndex:null,newDraggableIndex:null,originalEvent:t}),R!==I?(ot>=0&&(J({rootEl:I,name:"add",toEl:I,fromEl:R,originalEvent:t}),J({sortable:this,name:"remove",toEl:I,originalEvent:t}),J({rootEl:I,name:"sort",toEl:I,fromEl:R,originalEvent:t}),J({sortable:this,name:"sort",toEl:I,originalEvent:t})),z&&z.save()):ot!==Xt&&ot>=0&&(J({sortable:this,name:"update",toEl:I,originalEvent:t}),J({sortable:this,name:"sort",toEl:I,originalEvent:t})),v.active&&((ot==null||ot===-1)&&(ot=Xt,At=de),J({sortable:this,name:"end",toEl:I,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){tt("nulling",this),R=h=I=w=Ht=N=Oe=_t=Bt=dt=ce=ot=At=Xt=de=qt=he=z=Re=v.dragged=v.ghost=v.clone=v.active=null,He.forEach(function(t){t.checked=!0}),He.length=On=Rn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),is(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)n=i[o],ut(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||us(n));return t},sort:function(t,n){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];ut(a,this.options.draggable,o,!1)&&(i[r]=a)},this),n&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return ut(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(n===void 0)return i[t];var o=ue.modifyOption(this,t,n);typeof o<"u"?i[t]=o:i[t]=n,t==="group"&&Xi(i)},destroy:function(){tt("destroy",this);var t=this.el;t[it]=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(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ne.splice(Ne.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_t){if(tt("hideClone",this),v.eventCanceled)return;b(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),_t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(tt("showClone",this),v.eventCanceled)return;h.parentNode==R&&!this.options.group.revertClone?R.insertBefore(N,h):Ht?R.insertBefore(N,Ht):R.appendChild(N),this.options.group.revertClone&&this.animate(h,N),b(N,"display",""),_t=!1}}};function is(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Le(e,t,n,i,o,r,s,a){var l,u=e[it],c=u.options.onMove,d;return window.CustomEvent&&!wt&&!se?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=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||B(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function Mn(e){e.draggable=!1}function os(){Nn=!1}function rs(e,t,n){var i=B(zt(n.el,0,n.options,!0)),o=ki(n.el,n.options,w),r=10;return t?e.clientX<o.left-r||e.clientY<i.top&&e.clientX<i.right:e.clientY<o.top-r||e.clientY<i.bottom&&e.clientX<i.left}function ss(e,t,n){var i=B(Cn(n.el,n.options.draggable)),o=ki(n.el,n.options,w),r=10;return t?e.clientX>o.right+r||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+r||e.clientX>i.right&&e.clientY>i.top}function as(e,t,n,i,o,r,s,a){var l=i?e.clientY:e.clientX,u=i?n.height:n.width,c=i?n.top:n.left,d=i?n.bottom:n.right,p=!1;if(!s){if(a&&Ie<u*o){if(!pe&&(he===1?l>c+u*r/2:l<d-u*r/2)&&(pe=!0),pe)p=!0;else if(he===1?l<c+Ie:l>d-Ie)return-he}else if(l>c+u*(1-o)/2&&l<d-u*(1-o)/2)return ls(t)}return p=p||s,p&&(l<c+u*r/2||l>d-u*r/2)?l>c+u/2?1:-1:0}function ls(e){return lt(h)<lt(e)?1:-1}function us(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function ds(e){He.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&He.push(i)}}function ke(e){return setTimeout(e,0)}function In(e){return clearTimeout(e)}Be&&A(document,"touchmove",function(e){(v.active||Yt)&&e.cancelable&&e.preventDefault()}),v.utils={on:A,off:S,css:b,find:Mi,is:function(t,n){return!!ut(t,n,t,!1)},extend:Xr,throttle:Bi,closest:ut,toggleClass:nt,clone:Li,index:lt,nextTick:ke,cancelNextTick:In,detectDirection:Zi,getChild:zt},v.get=function(e){return e[it]},v.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(v.utils=pt(pt({},v.utils),i.utils)),ue.mount(i)})},v.create=function(e,t){return new v(e,t)},v.version=jr;var V=[],fe,Hn,Bn=!1,Vn,Ln,Ue,ge;function cs(){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(n){var i=n.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):i.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},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)),Wi(),Fe(),Yr()},nulling:function(){Ue=Hn=fe=Bn=ge=Vn=Ln=null,V.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var o=this,r=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,s);if(Ue=n,i||this.options.forceAutoScrollFallback||se||wt||ae){kn(n,this.options,a,i);var l=$t(a,!0);Bn&&(!ge||r!==Vn||s!==Ln)&&(ge&&Wi(),ge=setInterval(function(){var u=$t(document.elementFromPoint(r,s),!0);u!==l&&(l=u,Fe()),kn(n,o.options,u,i)},10),Vn=r,Ln=s)}else{if(!this.options.bubbleScroll||$t(a,!0)===ft()){Fe();return}kn(n,this.options,$t(a,!1),!1)}}},bt(e,{pluginName:"scroll",initializeByDefault:!0})}function Fe(){V.forEach(function(e){clearInterval(e.pid)}),V=[]}function Wi(){clearInterval(ge)}var kn=Bi(function(e,t,n,i){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(),u=!1,c;Hn!==n&&(Hn=n,Fe(),fe=t.scroll,c=t.scrollFn,fe===!0&&(fe=$t(n,!0)));var d=0,p=fe;do{var f=p,g=B(f),y=g.top,D=g.bottom,X=g.left,U=g.right,rt=g.width,K=g.height,ct=void 0,P=void 0,W=f.scrollWidth,ht=f.scrollHeight,G=b(f),we=f.scrollLeft,Tt=f.scrollTop;f===l?(ct=rt<W&&(G.overflowX==="auto"||G.overflowX==="scroll"||G.overflowX==="visible"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"||G.overflowY==="visible")):(ct=rt<W&&(G.overflowX==="auto"||G.overflowX==="scroll"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"));var Ee=ct&&(Math.abs(U-o)<=s&&we+rt<W)-(Math.abs(X-o)<=s&&!!we),Et=P&&(Math.abs(D-r)<=s&&Tt+K<ht)-(Math.abs(y-r)<=s&&!!Tt);if(!V[d])for(var Lt=0;Lt<=d;Lt++)V[Lt]||(V[Lt]={});(V[d].vx!=Ee||V[d].vy!=Et||V[d].el!==f)&&(V[d].el=f,V[d].vx=Ee,V[d].vy=Et,clearInterval(V[d].pid),(Ee!=0||Et!=0)&&(u=!0,V[d].pid=setInterval((function(){i&&this.layer===0&&v.active._onTouchMove(Ue);var xe=V[this.layer].vy?V[this.layer].vy*a:0,Pt=V[this.layer].vx?V[this.layer].vx*a:0;typeof c=="function"&&c.call(v.dragged.parentNode[it],Pt,xe,e,Ue,V[this.layer].el)!=="continue"||Vi(V[this.layer].el,Pt,xe)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=$t(p,!1)));Bn=u}},30),Gi=function(t){var n=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=i||r;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function Un(){}Un.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=zt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:Gi},bt(Un,{pluginName:"revertOnSpill"});function Fn(){}Fn.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:Gi},bt(Fn,{pluginName:"removeOnSpill"}),v.mount(new cs),v.mount(Fn,Un);const hs=e=>{const t=e.item;let n=Array.prototype.slice.call(t.parentNode.childNodes);return n=n.filter(i=>i.nodeType!=Node.ELEMENT_NODE||!i.classList.contains("sortable-fallback")),n},ps=(e,t,n,i,o,r)=>{const a=e.item.parentNode;for(const y of n)a.appendChild(y);if(e.oldIndex==e.newIndex)return;const l=i.getArray(),u=e.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===u),d=r.dataset.layer,p=l.find(y=>y.get(o)==d);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){i.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?i.insertAt(g,c):i.insertAt(g+1,c);break}t.requestUpdate()};function fs(e,t,n,i){let o=[],r=null;e._sortable=v.create(e,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=hs(s),onMove:s=>{r=s.related},onEnd:s=>ps(s,i,o,t,n,r)})}function gs(e,t,n,i){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(n)||(s.set(n,`layer ${a}`),r=!0),r&&i.requestUpdate()})}function jn(e,t,n){let i=[];const o=(r,s,a)=>{i=[...i,...r.filter(u=>u.get(s)===a)];const l=r.filter(u=>u.getLayers);return l.length>0&&l.forEach(u=>o(u.getLayers().getArray(),s,a)),i};return o(e,t,n),i}function ms(e,t,n){if(!e||!t)return!1;if(!Ji(e,n))return!0;const i=e.get("minZoom"),o=e.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function Ji(e,t){const n=e.get("minZoom"),i=e.get("maxZoom");return!!(t&&(n!==-1/0||i!==1/0))}function ys(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"}function Ki(e,t){var i;let n={};for(const o in e){const r=e[o].type;if(r&&r!=="object")n[o]=r==="number"?Number(t[o]):t[o];else if(typeof e[o]=="object"&&((i=e[o])!=null&&i.properties)){const s=Ki(e[o].properties,t);Object.keys(s).length>0&&(n[o]=s)}}return n}function bs(e,t){var r;if(!t||!e.getSource().getTileUrlFunction())return null;const n=new URL(e.getSource().getTileUrlFunction()([0,0,0])),i=Object.fromEntries(n.searchParams.entries()),o=Ki(((r=t.schema)==null?void 0:r.properties)||t.schema,i);return Object.keys(o).length?o:null}const vs=(e,t)=>e==null?void 0:e.filter(n=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(n)),ws=(e,t)=>e==null?void 0:e.filter(n=>{let i=!0;return["remove","sort"].includes(n)&&(i=!1),n==="info"&&(i=t.get("description")),n==="config"&&(i=t.get("layerConfig")),i}),Es=(e,t)=>x`
45
+ */function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ri(Object(n),!0).forEach(function(i){Xr(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(t){return typeof t}:Pe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(e)}function Xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(){return bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bt.apply(this,arguments)}function qr(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Yr(e,t){if(e==null)return{};var n=qr(e,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var Wr="1.15.2";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),ae=vt(/Edge/i),Oi=vt(/firefox/i),le=vt(/safari/i)&&!vt(/chrome/i)&&!vt(/android/i),Mi=vt(/iP(ad|od|hone)/i),Ni=vt(/chrome/i)&&vt(/android/i),Ii={capture:!1,passive:!1};function A(e,t,n){e.addEventListener(t,n,!wt&&Ii)}function $(e,t,n){e.removeEventListener(t,n,!wt&&Ii)}function De(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 Gr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ut(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&De(e,t):De(e,t))||i&&e===n)return e;if(e===n)break}while(e=Gr(e))}return null}var Hi=/\s+/g;function it(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Hi," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Hi," ")}}function b(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function jt(e,t){var n="";if(typeof e=="string")n=e;else do{var i=b(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Bi(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function ft(){var e=document.scrollingElement;return e||document.documentElement}function B(e,t,n,i,o){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,u,c,d;if(e!==window&&e.parentNode&&e!==ft()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,u=r.right,c=r.height,d=r.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!wt))do if(o&&o.getBoundingClientRect&&(b(o,"transform")!=="none"||n&&b(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(b(o,"border-top-width")),a-=p.left+parseInt(b(o,"border-left-width")),l=s+r.height,u=a+r.width;break}while(o=o.parentNode);if(i&&e!==window){var f=jt(o||e),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,d/=g,c/=y,l=s+c,u=a+d)}return{top:s,left:a,bottom:l,right:u,width:d,height:c}}}function Vi(e,t,n){for(var i=St(e,!0),o=B(e)[t];i;){var r=B(i)[n],s=void 0;if(s=o>=r,!s)return i;if(i===ft())break;i=St(i,!1)}return!1}function Zt(e,t,n,i){for(var o=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==v.ghost&&(i||s[r]!==v.dragged)&&ut(s[r],n.draggable,e,!1)){if(o===t)return s[r];o++}r++}return null}function Dn(e,t){for(var n=e.lastElementChild;n&&(n===v.ghost||b(n,"display")==="none"||t&&!De(n,t));)n=n.previousElementSibling;return n||null}function lt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==v.clone&&(!t||De(e,t))&&n++;return n}function Li(e){var t=0,n=0,i=ft();if(e)do{var o=jt(e),r=o.a,s=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function Jr(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function St(e,t){if(!e||!e.getBoundingClientRect)return ft();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=b(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ft();if(i||t)return n;i=!0}}while(n=n.parentNode);return ft()}function Kr(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Rn(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 ue;function Ui(e,t){return function(){if(!ue){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),ue=setTimeout(function(){ue=void 0},t)}}}function Qr(){clearTimeout(ue),ue=void 0}function ki(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Fi(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function ji(e,t,n){var i={};return Array.from(e.children).forEach(function(o){var r,s,a,l;if(!(!ut(o,t.draggable,e,!1)||o.animated||o===n)){var u=B(o);i.left=Math.min((r=i.left)!==null&&r!==void 0?r:1/0,u.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,u.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,u.right),i.bottom=Math.max((l=i.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var ot="Sortable"+new Date().getTime();function ts(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(b(o,"display")==="none"||o===v.ghost)){e.push({target:o,rect:B(o)});var r=pt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=jt(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){e.push(i)},removeAnimationState:function(i){e.splice(Jr(e,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;e.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=B(u),p=u.prevFromRect,f=u.prevToRect,g=a.rect,y=jt(u,!0);y&&(d.top-=y.f,d.left-=y.e),u.toRect=d,u.thisAnimationDuration&&Rn(p,d)&&!Rn(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=ns(g,p,f,o.options)),Rn(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=o.options.animation),o.animate(u,g,d,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),e=[]},animate:function(i,o,r,s){if(s){b(i,"transition",""),b(i,"transform","");var a=jt(this.el),l=a&&a.a,u=a&&a.d,c=(o.left-r.left)/(l||1),d=(o.top-r.top)/(u||1);i.animatingX=!!c,i.animatingY=!!d,b(i,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=es(i),b(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),b(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){b(i,"transition",""),b(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function es(e){return e.offsetWidth}function ns(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var zt=[],On={initializeByDefault:!0},de={mount:function(t){for(var n in On)On.hasOwnProperty(n)&&!(n in t)&&(t[n]=On[n]);zt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),zt.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";zt.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][r]&&n[s.pluginName][r](pt({sortable:n},i)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](pt({sortable:n},i)))})},initializePlugins:function(t,n,i,o){zt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var u=new a(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,bt(i,u.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,n){var i={};return zt.forEach(function(o){typeof o.eventProperties=="function"&&bt(i,o.eventProperties.call(n[o.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return zt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(t[r.pluginName],i))}),o}};function is(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[ot],!!t){var y,M=t.options,q="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!wt&&!ae?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=o||n,y.clone=r,y.oldIndex=l,y.newIndex=u,y.oldDraggableIndex=c,y.newDraggableIndex=d,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var F=pt(pt({},g),de.getEventProperties(i,t));for(var st in F)y[st]=F[st];n&&n.dispatchEvent(y),M[q]&&M[q].call(t,y)}}var os=["evt"],nt=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Yr(i,os);de.pluginEvent.bind(v)(t,n,pt({dragEl:h,parentEl:I,ghostEl:w,rootEl:O,nextEl:Ht,lastDownEl:Re,cloneEl:N,cloneHidden:_t,dragStarted:he,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:Xt,oldDraggableIndex:ce,newIndex:rt,newDraggableIndex:At,hideGhostForTarget:Gi,unhideGhostForTarget:Ji,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){J({sortable:n,name:a,originalEvent:o})}},r))};function J(e){is(pt({putSortable:z,cloneEl:N,targetEl:h,rootEl:O,oldIndex:Xt,oldDraggableIndex:ce,newIndex:rt,newDraggableIndex:At},e))}var h,I,w,O,Ht,Re,N,_t,Xt,rt,ce,At,Oe,z,qt=!1,Me=!1,Ne=[],Bt,dt,Mn,Nn,Zi,zi,he,Yt,pe,fe=!1,Ie=!1,He,Y,In=[],Hn=!1,Be=[],Ve=typeof document<"u",Le=Mi,Xi=ae||wt?"cssFloat":"float",rs=Ve&&!Ni&&!Mi&&"draggable"in document.createElement("div"),qi=function(){if(Ve){if(wt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Yi=function(t,n){var i=b(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=Zt(t,0,n),s=Zt(t,1,n),a=r&&b(r),l=s&&b(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+B(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+B(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=o&&i[Xi]==="none"||s&&i[Xi]==="none"&&u+c>o)?"vertical":"horizontal"},ss=function(t,n,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,a=i?n.left:n.top,l=i?n.right:n.bottom,u=i?n.width:n.height;return o===a||r===l||o+s/2===a+u/2},as=function(t,n){var i;return Ne.some(function(o){var r=o[ot].options.emptyInsertThreshold;if(!(!r||Dn(o))){var s=B(o),a=t>=s.left-r&&t<=s.right+r,l=n>=s.top-r&&n<=s.bottom+r;if(a&&l)return i=o}}),i},Wi=function(t){function n(r,s){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||d))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return n(r(a,l,u,c),s)(a,l,u,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||Pe(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},Gi=function(){!qi&&w&&b(w,"display","none")},Ji=function(){!qi&&w&&b(w,"display","")};Ve&&!Ni&&document.addEventListener("click",function(e){if(Me)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Me=!1,!1},!0);var Vt=function(t){if(h){t=t.touches?t.touches[0]:t;var n=as(t.clientX,t.clientY);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[ot]._onDragOver(i)}}},ls=function(t){h&&h.parentNode[ot]._isOutsideThisEl(t.target)};function v(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[ot]=this;var n={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 Yi(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:v.supportPointer!==!1&&"PointerEvent"in window&&!le,emptyInsertThreshold:5};de.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);Wi(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:rs,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,ts())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Yt=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=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,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(ms(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&le&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=ut(l,o.draggable,i,!1),!(l&&l.animated)&&Re!==l)){if(Xt=lt(l),ce=lt(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){J({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:i,fromEl:i}),nt("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=ut(u,d.trim(),i,!1),d)return J({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:i,toEl:i}),nt("filter",n,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!ut(u,o.handle,i,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,i){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(i&&!h&&i.parentNode===r){var u=B(i);if(O=r,h=i,I=h.parentNode,Ht=h.nextSibling,Re=i,Oe=s.group,v.dragged=h,Bt={target:h,clientX:(n||t).clientX,clientY:(n||t).clientY},Zi=Bt.clientX-u.left,zi=Bt.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,h.style["will-change"]="all",l=function(){if(nt("delayEnded",o,{evt:t}),v.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Oi&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,n),J({sortable:o,name:"choose",originalEvent:t}),it(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){Bi(h,c.trim(),Bn)}),A(a,"dragover",Vt),A(a,"mousemove",Vt),A(a,"touchmove",Vt),A(a,"mouseup",o._onDrop),A(a,"touchend",o._onDrop),A(a,"touchcancel",o._onDrop),Oi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),nt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ae||wt))){if(v.eventCanceled){this._onDrop();return}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 n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Bn(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,"mousemove",this._delayedDragTouchMoveHandler),$(t,"touchmove",this._delayedDragTouchMoveHandler),$(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):n?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(h,"dragend",this),A(O,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(qt=!1,O&&h){nt("dragStarted",this,{evt:n}),this.nativeDraggable&&A(document,"dragover",ls);var i=this.options;!t&&it(h,i.dragClass,!1),it(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Gi();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY),t!==n);)n=t;if(h.parentNode[ot]._isOutsideThisEl(t),n)do{if(n[ot]){var i=void 0;if(i=n[ot]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Ji()}},_onTouchMove:function(t){if(Bt){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=w&&jt(w,!0),a=w&&s&&s.a,l=w&&s&&s.d,u=Le&&Y&&Li(Y),c=(r.clientX-Bt.clientX+o.x)/(a||1)+(u?u[0]-In[0]:0)/(a||1),d=(r.clientY-Bt.clientY+o.y)/(l||1)+(u?u[1]-In[1]:0)/(l||1);if(!v.active&&!qt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(w){s?(s.e+=c-(Mn||0),s.f+=d-(Nn||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");b(w,"webkitTransform",p),b(w,"mozTransform",p),b(w,"msTransform",p),b(w,"transform",p),Mn=c,Nn=d,dt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:O,n=B(h,!0,Le,!0,t),i=this.options;if(Le){for(Y=t;b(Y,"position")==="static"&&b(Y,"transform")==="none"&&Y!==document;)Y=Y.parentNode;Y!==document.body&&Y!==document.documentElement?(Y===document&&(Y=ft()),n.top+=Y.scrollTop,n.left+=Y.scrollLeft):Y=ft(),In=Li(Y)}w=h.cloneNode(!0),it(w,i.ghostClass,!1),it(w,i.fallbackClass,!0),it(w,i.dragClass,!0),b(w,"transition",""),b(w,"transform",""),b(w,"box-sizing","border-box"),b(w,"margin",0),b(w,"top",n.top),b(w,"left",n.left),b(w,"width",n.width),b(w,"height",n.height),b(w,"opacity","0.8"),b(w,"position",Le?"absolute":"fixed"),b(w,"zIndex","100000"),b(w,"pointerEvents","none"),v.ghost=w,t.appendChild(w),b(w,"transform-origin",Zi/parseInt(w.style.width)*100+"% "+zi/parseInt(w.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,o=t.dataTransfer,r=i.options;if(nt("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}nt("setupClone",this),v.eventCanceled||(N=Fi(h),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),it(N,this.options.chosenClass,!1),v.clone=N),i.cloneId=ke(function(){nt("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||O.insertBefore(N,h),i._hideClone(),J({sortable:i,name:"clone"}))}),!n&&it(h,r.dragClass,!0),n?(Me=!0,i._loopId=setInterval(i._emulateDragOver,50)):($(document,"mouseup",i._onDrop),$(document,"touchend",i._onDrop),$(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,h)),A(document,"drop",i),b(h,"transform","translateZ(0)")),qt=!0,i._dragStartId=ke(i._dragStarted.bind(i,n,t)),A(document,"selectstart",i),he=!0,le&&b(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,i=t.target,o,r,s,a=this.options,l=a.group,u=v.active,c=Oe===l,d=a.sort,p=z||u,f,g=this,y=!1;if(Hn)return;function M(Se,ha){nt(Se,g,pt({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:d,fromSortable:p,target:i,completed:F,onMove:function(wo,pa){return Ue(O,n,h,o,wo,B(wo),t,pa)},changed:st},ha))}function q(){M("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function F(Se){return M("dragOverCompleted",{insertion:Se}),Se&&(c?u._hideClone():u._showClone(g),g!==p&&(it(h,z?z.options.ghostClass:u.options.ghostClass,!1),it(h,a.ghostClass,!0)),z!==g&&g!==v.active?z=g:g===v.active&&z&&(z=null),p===g&&(g._ignoreWhileAnimating=i),g.animateAll(function(){M("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===n&&!i.animated)&&(Yt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[ot]._isOutsideThisEl(t.target),!Se&&Vt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function st(){rt=lt(h),At=lt(h,a.draggable),J({sortable:g,name:"change",toEl:n,newIndex:rt,newDraggableIndex:At,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=ut(i,a.draggable,n,!0),M("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return F(!1);if(Me=!1,u&&!a.disabled&&(c?d||(s=I!==O):z===this||(this.lastPutMode=Oe.checkPull(this,u,h,t))&&l.checkPut(this,u,h,t))){if(f=this._getDirection(t,i)==="vertical",o=B(h),M("dragOverValid"),v.eventCanceled)return y;if(s)return I=O,q(),this._hideClone(),M("revert"),v.eventCanceled||(Ht?O.insertBefore(h,Ht):O.appendChild(h)),F(!0);var K=Dn(n,a.draggable);if(!K||hs(t,f,this)&&!K.animated){if(K===h)return F(!1);if(K&&n===t.target&&(i=K),i&&(r=B(i)),Ue(O,n,h,o,i,r,t,!!i)!==!1)return q(),K&&K.nextSibling?n.insertBefore(h,K.nextSibling):n.appendChild(h),I=n,st(),F(!0)}else if(K&&cs(t,f,this)){var ct=Zt(n,0,a,!0);if(ct===h)return F(!1);if(i=ct,r=B(i),Ue(O,n,h,o,i,r,t,!1)!==!1)return q(),n.insertBefore(h,ct),I=n,st(),F(!0)}else if(i.parentNode===n){r=B(i);var P=0,W,ht=h.parentNode!==n,G=!ss(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),Ee=f?"top":"left",Tt=Vi(i,"top","top")||Vi(h,"top","top"),xe=Tt?Tt.scrollTop:void 0;Yt!==i&&(W=r[Ee],fe=!1,Ie=!G&&a.invertSwap||ht),P=ps(t,i,r,f,G?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ie,Yt===i);var Et;if(P!==0){var Lt=lt(h);do Lt-=P,Et=I.children[Lt];while(Et&&(b(Et,"display")==="none"||Et===w))}if(P===0||Et===i)return F(!1);Yt=i,pe=P;var $e=i.nextElementSibling,Pt=!1;Pt=P===1;var pn=Ue(O,n,h,o,i,r,t,Pt);if(pn!==!1)return(pn===1||pn===-1)&&(Pt=pn===1),Hn=!0,setTimeout(ds,30),q(),Pt&&!$e?n.appendChild(h):i.parentNode.insertBefore(h,Pt?$e:i),Tt&&ki(Tt,0,xe-Tt.scrollTop),I=h.parentNode,W!==void 0&&!Ie&&(He=Math.abs(W-B(i)[Ee])),st(),F(!0)}if(n.contains(h))return F(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){$(document,"mousemove",this._onTouchMove),$(document,"touchmove",this._onTouchMove),$(document,"pointermove",this._onTouchMove),$(document,"dragover",Vt),$(document,"mousemove",Vt),$(document,"touchmove",Vt)},_offUpEvents:function(){var t=this.el.ownerDocument;$(t,"mouseup",this._onDrop),$(t,"touchend",this._onDrop),$(t,"pointerup",this._onDrop),$(t,"touchcancel",this._onDrop),$(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;if(rt=lt(h),At=lt(h,i.draggable),nt("drop",this,{evt:t}),I=h&&h.parentNode,rt=lt(h),At=lt(h,i.draggable),v.eventCanceled){this._nulling();return}qt=!1,Ie=!1,fe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Vn(this.cloneId),Vn(this._dragStartId),this.nativeDraggable&&($(document,"drop",this),$(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),le&&b(document.body,"user-select",""),b(h,"transform",""),t&&(he&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),w&&w.parentNode&&w.parentNode.removeChild(w),(O===I||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),h&&(this.nativeDraggable&&$(h,"dragend",this),Bn(h),h.style["will-change"]="",he&&!qt&&it(h,z?z.options.ghostClass:this.options.ghostClass,!1),it(h,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:I,newIndex:null,newDraggableIndex:null,originalEvent:t}),O!==I?(rt>=0&&(J({rootEl:I,name:"add",toEl:I,fromEl:O,originalEvent:t}),J({sortable:this,name:"remove",toEl:I,originalEvent:t}),J({rootEl:I,name:"sort",toEl:I,fromEl:O,originalEvent:t}),J({sortable:this,name:"sort",toEl:I,originalEvent:t})),z&&z.save()):rt!==Xt&&rt>=0&&(J({sortable:this,name:"update",toEl:I,originalEvent:t}),J({sortable:this,name:"sort",toEl:I,originalEvent:t})),v.active&&((rt==null||rt===-1)&&(rt=Xt,At=ce),J({sortable:this,name:"end",toEl:I,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){nt("nulling",this),O=h=I=w=Ht=N=Re=_t=Bt=dt=he=rt=At=Xt=ce=Yt=pe=z=Oe=v.dragged=v.ghost=v.clone=v.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=Mn=Nn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),us(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)n=i[o],ut(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||gs(n));return t},sort:function(t,n){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];ut(a,this.options.draggable,o,!1)&&(i[r]=a)},this),n&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return ut(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(n===void 0)return i[t];var o=de.modifyOption(this,t,n);typeof o<"u"?i[t]=o:i[t]=n,t==="group"&&Wi(i)},destroy:function(){nt("destroy",this);var t=this.el;t[ot]=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(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ne.splice(Ne.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_t){if(nt("hideClone",this),v.eventCanceled)return;b(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),_t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(nt("showClone",this),v.eventCanceled)return;h.parentNode==O&&!this.options.group.revertClone?O.insertBefore(N,h):Ht?O.insertBefore(N,Ht):O.appendChild(N),this.options.group.revertClone&&this.animate(h,N),b(N,"display",""),_t=!1}}};function us(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ue(e,t,n,i,o,r,s,a){var l,u=e[ot],c=u.options.onMove,d;return window.CustomEvent&&!wt&&!ae?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=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||B(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function Bn(e){e.draggable=!1}function ds(){Hn=!1}function cs(e,t,n){var i=B(Zt(n.el,0,n.options,!0)),o=ji(n.el,n.options,w),r=10;return t?e.clientX<o.left-r||e.clientY<i.top&&e.clientX<i.right:e.clientY<o.top-r||e.clientY<i.bottom&&e.clientX<i.left}function hs(e,t,n){var i=B(Dn(n.el,n.options.draggable)),o=ji(n.el,n.options,w),r=10;return t?e.clientX>o.right+r||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>o.bottom+r||e.clientX>i.right&&e.clientY>i.top}function ps(e,t,n,i,o,r,s,a){var l=i?e.clientY:e.clientX,u=i?n.height:n.width,c=i?n.top:n.left,d=i?n.bottom:n.right,p=!1;if(!s){if(a&&He<u*o){if(!fe&&(pe===1?l>c+u*r/2:l<d-u*r/2)&&(fe=!0),fe)p=!0;else if(pe===1?l<c+He:l>d-He)return-pe}else if(l>c+u*(1-o)/2&&l<d-u*(1-o)/2)return fs(t)}return p=p||s,p&&(l<c+u*r/2||l>d-u*r/2)?l>c+u/2?1:-1:0}function fs(e){return lt(h)<lt(e)?1:-1}function gs(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function ms(e){Be.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Be.push(i)}}function ke(e){return setTimeout(e,0)}function Vn(e){return clearTimeout(e)}Ve&&A(document,"touchmove",function(e){(v.active||qt)&&e.cancelable&&e.preventDefault()}),v.utils={on:A,off:$,css:b,find:Bi,is:function(t,n){return!!ut(t,n,t,!1)},extend:Kr,throttle:Ui,closest:ut,toggleClass:it,clone:Fi,index:lt,nextTick:ke,cancelNextTick:Vn,detectDirection:Yi,getChild:Zt},v.get=function(e){return e[ot]},v.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(v.utils=pt(pt({},v.utils),i.utils)),de.mount(i)})},v.create=function(e,t){return new v(e,t)},v.version=Wr;var V=[],ge,Ln,Un=!1,kn,Fn,Fe,me;function ys(){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(n){var i=n.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):i.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?$(document,"dragover",this._handleAutoScroll):($(document,"pointermove",this._handleFallbackAutoScroll),$(document,"touchmove",this._handleFallbackAutoScroll),$(document,"mousemove",this._handleFallbackAutoScroll)),Ki(),je(),Qr()},nulling:function(){Fe=Ln=ge=Un=me=kn=Fn=null,V.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var o=this,r=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,s);if(Fe=n,i||this.options.forceAutoScrollFallback||ae||wt||le){jn(n,this.options,a,i);var l=St(a,!0);Un&&(!me||r!==kn||s!==Fn)&&(me&&Ki(),me=setInterval(function(){var u=St(document.elementFromPoint(r,s),!0);u!==l&&(l=u,je()),jn(n,o.options,u,i)},10),kn=r,Fn=s)}else{if(!this.options.bubbleScroll||St(a,!0)===ft()){je();return}jn(n,this.options,St(a,!1),!1)}}},bt(e,{pluginName:"scroll",initializeByDefault:!0})}function je(){V.forEach(function(e){clearInterval(e.pid)}),V=[]}function Ki(){clearInterval(me)}var jn=Ui(function(e,t,n,i){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(),u=!1,c;Ln!==n&&(Ln=n,je(),ge=t.scroll,c=t.scrollFn,ge===!0&&(ge=St(n,!0)));var d=0,p=ge;do{var f=p,g=B(f),y=g.top,M=g.bottom,q=g.left,F=g.right,st=g.width,K=g.height,ct=void 0,P=void 0,W=f.scrollWidth,ht=f.scrollHeight,G=b(f),Ee=f.scrollLeft,Tt=f.scrollTop;f===l?(ct=st<W&&(G.overflowX==="auto"||G.overflowX==="scroll"||G.overflowX==="visible"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"||G.overflowY==="visible")):(ct=st<W&&(G.overflowX==="auto"||G.overflowX==="scroll"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"));var xe=ct&&(Math.abs(F-o)<=s&&Ee+st<W)-(Math.abs(q-o)<=s&&!!Ee),Et=P&&(Math.abs(M-r)<=s&&Tt+K<ht)-(Math.abs(y-r)<=s&&!!Tt);if(!V[d])for(var Lt=0;Lt<=d;Lt++)V[Lt]||(V[Lt]={});(V[d].vx!=xe||V[d].vy!=Et||V[d].el!==f)&&(V[d].el=f,V[d].vx=xe,V[d].vy=Et,clearInterval(V[d].pid),(xe!=0||Et!=0)&&(u=!0,V[d].pid=setInterval((function(){i&&this.layer===0&&v.active._onTouchMove(Fe);var $e=V[this.layer].vy?V[this.layer].vy*a:0,Pt=V[this.layer].vx?V[this.layer].vx*a:0;typeof c=="function"&&c.call(v.dragged.parentNode[ot],Pt,$e,e,Fe,V[this.layer].el)!=="continue"||ki(V[this.layer].el,Pt,$e)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=St(p,!1)));Un=u}},30),Qi=function(t){var n=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=i||r;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function Zn(){}Zn.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=Zt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:Qi},bt(Zn,{pluginName:"revertOnSpill"});function zn(){}zn.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:Qi},bt(zn,{pluginName:"removeOnSpill"}),v.mount(new ys),v.mount(zn,Zn);const bs=e=>{const t=e.item;let n=Array.prototype.slice.call(t.parentNode.childNodes);return n=n.filter(i=>i.nodeType!=Node.ELEMENT_NODE||!i.classList.contains("sortable-fallback")),n},vs=(e,t,n,i,o,r)=>{const a=e.item.parentNode;for(const y of n)a.appendChild(y);if(e.oldIndex==e.newIndex)return;const l=i.getArray(),u=e.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===u),d=r.dataset.layer,p=l.find(y=>y.get(o)==d);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){i.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?i.insertAt(g,c):i.insertAt(g+1,c);break}t.requestUpdate()};function ws(e,t,n,i){let o=[],r=null;e._sortable=v.create(e,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=bs(s),onMove:s=>{r=s.related},onEnd:s=>vs(s,i,o,t,n,r)})}function Es(e,t,n,i){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(n)||(s.set(n,`layer ${a}`),r=!0),r&&i.requestUpdate()})}function Xn(e,t,n){let i=[];const o=(r,s,a)=>{i=[...i,...r.filter(u=>u.get(s)===a)];const l=r.filter(u=>u.getLayers);return l.length>0&&l.forEach(u=>o(u.getLayers().getArray(),s,a)),i};return o(e,t,n),i}function xs(e,t,n){if(!e||!t)return!1;if(!to(e,n))return!0;const i=e.get("minZoom"),o=e.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function to(e,t){const n=e.get("minZoom"),i=e.get("maxZoom");return!!(t&&(n!==-1/0||i!==1/0))}function $s(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"}function eo(e,t){var i;let n={};for(const o in e){const r=e[o].type;if(r&&r!=="object")n[o]=r==="number"?Number(t[o]):t[o];else if(typeof e[o]=="object"&&((i=e[o])!=null&&i.properties)){const s=eo(e[o].properties,t);Object.keys(s).length>0&&(n[o]=s)}}return n}function Ss(e,t){var r;if(!t||!e.getSource().getTileUrlFunction())return null;const n=new URL(e.getSource().getTileUrlFunction()([0,0,0])),i=Object.fromEntries(n.searchParams.entries()),o=eo(((r=t.schema)==null?void 0:r.properties)||t.schema,i);return Object.keys(o).length?o:null}const _s=(e,t)=>e==null?void 0:e.filter(n=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(n)),As=(e,t)=>e==null?void 0:e.filter(n=>{let i=!0;return["remove","sort"].includes(n)&&(i=!1),n==="info"&&(i=t.get("description")),n==="config"&&(i=t.get("layerConfig")),n==="datetime"&&(i=t.get("layerDatetime")),i}),Cs=(e,t)=>E`
46
46
  <button slot="${e}-icon" class="icon">${t?e:T}</button>
47
- `,xs=e=>x`
47
+ `,Ts=e=>E`
48
48
  <button
49
49
  class="remove-icon icon"
50
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}))}}
51
51
  >
52
52
  ${e.unstyled?"x":T}
53
53
  </button>
54
- `,Ss=e=>x`
54
+ `,Ps=e=>E`
55
55
  <span class="button sort-icon icon drag-handle">
56
56
  ${e?"═":T}
57
57
  </span>
58
- `,Qi=e=>{var n;const t=["layerControlHide","layerControlOptional"];return(n=e==null?void 0:e.getArray())==null?void 0:n.filter(i=>t.every(o=>!i.get(o)))};/**
58
+ `,no=e=>{var n;const t=["layerControlHide","layerControlOptional"];return(n=e==null?void 0:e.getArray())==null?void 0:n.filter(i=>t.every(o=>!i.get(o)))};/**
59
59
  * @license
60
60
  * Copyright 2020 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */const to=wn(class extends En{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(!Uo(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===st||t===T)return t;const n=e.element,i=e.name;if(e.type===St.PROPERTY){if(t===n[i])return st}else if(e.type===St.BOOLEAN_ATTRIBUTE){if(!!t===n.hasAttribute(i))return st}else if(e.type===St.ATTRIBUTE&&n.getAttribute(i)===t+"")return st;return bi(e),t}});/**
62
+ */const io=$n(class extends Sn{constructor(e){if(super(e),e.type!==$t.PROPERTY&&e.type!==$t.ATTRIBUTE&&e.type!==$t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!qo(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===at||t===T)return t;const n=e.element,i=e.name;if(e.type===$t.PROPERTY){if(t===n[i])return at}else if(e.type===$t.BOOLEAN_ATTRIBUTE){if(!!t===n.hasAttribute(i))return at}else if(e.type===$t.ATTRIBUTE&&n.getAttribute(i)===t+"")return at;return Ei(e),t}});/**
63
63
  * @license
64
64
  * Copyright 2017 Google LLC
65
65
  * SPDX-License-Identifier: BSD-3-Clause
66
- */class zn extends En{constructor(t){if(super(t),this.it=T,t.type!==St.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===T||t==null)return this._t=void 0,this.it=t;if(t===st)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 n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}zn.directiveName="unsafeHTML",zn.resultType=1;const $s=wn(zn);/**
66
+ */class qn extends Sn{constructor(t){if(super(t),this.it=T,t.type!==$t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===T||t==null)return this._t=void 0,this.it=t;if(t===at)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 n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}qn.directiveName="unsafeHTML",qn.resultType=1;const Ds=$n(qn);/**
67
67
  * @license
68
68
  * Copyright 2021 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */function*je(e,t){if(e!==void 0){let n=0;for(const i of e)yield t(i,n++)}}const _s=(e,t,n)=>{let i=t;return n.layer.getSource().getTileUrlFunction()&&(i||(i=n.layer.getSource().getTileUrlFunction()),n.layer.getSource().setTileUrlFunction((...o)=>Lr(i(...o),e)),n.layer.getSource().setKey(new Date)),i};var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cs="Expected a function",eo=NaN,Ts="[object Symbol]",Ps=/^\s+|\s+$/g,Os=/^[-+]0x[0-9a-f]+$/i,Rs=/^0b[01]+$/i,Ds=/^0o[0-7]+$/i,Ns=parseInt,Ms=typeof ze=="object"&&ze&&ze.Object===Object&&ze,Is=typeof self=="object"&&self&&self.Object===Object&&self,Hs=Ms||Is||Function("return this")(),Bs=Object.prototype,Vs=Bs.toString,Ls=Math.max,ks=Math.min,Zn=function(){return Hs.Date.now()};function Us(e,t,n){var i,o,r,s,a,l,u=0,c=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(Cs);t=no(t)||0,Xn(n)&&(c=!!n.leading,d="maxWait"in n,r=d?Ls(no(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p);function f(P){var W=i,ht=o;return i=o=void 0,u=P,s=e.apply(ht,W),s}function g(P){return u=P,a=setTimeout(X,t),c?f(P):s}function y(P){var W=P-l,ht=P-u,G=t-W;return d?ks(G,r-ht):G}function D(P){var W=P-l,ht=P-u;return l===void 0||W>=t||W<0||d&&ht>=r}function X(){var P=Zn();if(D(P))return U(P);a=setTimeout(X,y(P))}function U(P){return a=void 0,p&&i?f(P):(i=o=void 0,s)}function rt(){a!==void 0&&clearTimeout(a),u=0,i=l=o=a=void 0}function K(){return a===void 0?s:U(Zn())}function ct(){var P=Zn(),W=D(P);if(i=arguments,o=this,l=P,W){if(a===void 0)return g(l);if(d)return a=setTimeout(X,t),f(l)}return a===void 0&&(a=setTimeout(X,t)),s}return ct.cancel=rt,ct.flush=K,ct}function Xn(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Fs(e){return!!e&&typeof e=="object"}function js(e){return typeof e=="symbol"||Fs(e)&&Vs.call(e)==Ts}function no(e){if(typeof e=="number")return e;if(js(e))return eo;if(Xn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Ps,"");var n=Rs.test(e);return n||Ds.test(e)?Ns(e.slice(2),n?2:8):Os.test(e)?eo:+e}var zs=Us;const io=As(zs);class oo extends et{constructor(){super();O(this,Ze);O(this,me,{});O(this,ye,null);O(this,be);O(this,Xe,"");O(this,Ye,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.debouncedDataChange=io(Y(this,Ze,bo),1e3,{leading:!0})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){$e(this,ye,bs(this.layer,this.layerConfig)),customElements.get("eox-jsonform")||console.error("Please import @eox/jsonform in order to use layerconfig");const n={disable_edit_json:!0,disable_collapse:!0,disable_properties:!0};return x`
70
+ */function*Ze(e,t){if(e!==void 0){let n=0;for(const i of e)yield t(i,n++)}}const Rs=(e,t,n)=>{let i=t;return n.layer.getSource().getTileUrlFunction()&&(i||(i=n.layer.getSource().getTileUrlFunction()),n.layer.getSource().setTileUrlFunction((...o)=>zr(i(...o),e)),n.layer.getSource().setKey(new Date)),i};var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ms="Expected a function",oo=NaN,Ns="[object Symbol]",Is=/^\s+|\s+$/g,Hs=/^[-+]0x[0-9a-f]+$/i,Bs=/^0b[01]+$/i,Vs=/^0o[0-7]+$/i,Ls=parseInt,Us=typeof ze=="object"&&ze&&ze.Object===Object&&ze,ks=typeof self=="object"&&self&&self.Object===Object&&self,Fs=Us||ks||Function("return this")(),js=Object.prototype,Zs=js.toString,zs=Math.max,Xs=Math.min,Yn=function(){return Fs.Date.now()};function qs(e,t,n){var i,o,r,s,a,l,u=0,c=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(Ms);t=ro(t)||0,Wn(n)&&(c=!!n.leading,d="maxWait"in n,r=d?zs(ro(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p);function f(P){var W=i,ht=o;return i=o=void 0,u=P,s=e.apply(ht,W),s}function g(P){return u=P,a=setTimeout(q,t),c?f(P):s}function y(P){var W=P-l,ht=P-u,G=t-W;return d?Xs(G,r-ht):G}function M(P){var W=P-l,ht=P-u;return l===void 0||W>=t||W<0||d&&ht>=r}function q(){var P=Yn();if(M(P))return F(P);a=setTimeout(q,y(P))}function F(P){return a=void 0,p&&i?f(P):(i=o=void 0,s)}function st(){a!==void 0&&clearTimeout(a),u=0,i=l=o=a=void 0}function K(){return a===void 0?s:F(Yn())}function ct(){var P=Yn(),W=M(P);if(i=arguments,o=this,l=P,W){if(a===void 0)return g(l);if(d)return a=setTimeout(q,t),f(l)}return a===void 0&&(a=setTimeout(q,t)),s}return ct.cancel=st,ct.flush=K,ct}function Wn(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ys(e){return!!e&&typeof e=="object"}function Ws(e){return typeof e=="symbol"||Ys(e)&&Zs.call(e)==Ns}function ro(e){if(typeof e=="number")return e;if(Ws(e))return oo;if(Wn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Is,"");var n=Bs.test(e);return n||Vs.test(e)?Ls(e.slice(2),n?2:8):Hs.test(e)?oo:+e}var Gs=qs;const so=Os(Gs);class ao extends Q{constructor(){super();D(this,Xe);D(this,ye,{});D(this,be,null);D(this,ve);D(this,qe,"");D(this,Ye,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.debouncedDataChange=so(U(this,Xe,xo),1e3,{leading:!0})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){_e(this,be,Ss(this.layer,this.layerConfig)),customElements.get("eox-jsonform")||console.error("Please import @eox/jsonform in order to use layerconfig");const n={disable_edit_json:!0,disable_collapse:!0,disable_properties:!0};return E`
71
71
  <style>
72
- ${M(this,Xe)}
73
- ${!this.unstyled&&M(this,Ye)}
72
+ ${R(this,qe)}
73
+ ${!this.unstyled&&R(this,Ye)}
74
74
  </style>
75
- ${at(this.layerConfig,()=>x`
75
+ ${tt(this.layerConfig,()=>E`
76
76
  <!-- Render a JSON form for layer configuration -->
77
77
  <eox-jsonform
78
78
  .schema=${this.layerConfig.schema}
79
- .value=${M(this,ye)}
79
+ .value=${R(this,be)}
80
80
  .options=${n}
81
81
  @change=${this.debouncedDataChange}
82
82
  ></eox-jsonform>
83
83
  `)}
84
- `}}me=new WeakMap,ye=new WeakMap,be=new WeakMap,Ze=new WeakSet,bo=function(n){$e(this,me,n.detail),$e(this,be,_s(M(this,me),M(this,be),this)),this.requestUpdate()},Xe=new WeakMap,Ye=new WeakMap,L(oo,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",oo);class ro extends et{constructor(){super();O(this,ve,n=>this.selectedTab===n&&"highlighted");O(this,qe,`
84
+ `}}ye=new WeakMap,be=new WeakMap,ve=new WeakMap,Xe=new WeakSet,xo=function(n){_e(this,ye,n.detail),_e(this,ve,Rs(R(this,ye),R(this,ve),this)),this.requestUpdate()},qe=new WeakMap,Ye=new WeakMap,L(ao,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",ao);class lo extends Q{constructor(){super();D(this,We);D(this,Ge,"");D(this,Je,"");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"),E`
85
+ <style>
86
+ ${R(this,Ge)}
87
+ ${!this.unstyled&&R(this,Je)}
88
+ </style>
89
+ ${tt(this.layerDatetime,()=>E`
90
+ <!-- Render a Timecontrol for layer date time -->
91
+ <eox-timecontrol
92
+ ?unstyled=${this.unstyled}
93
+ .for=${void 0}
94
+ .layer=${void 0}
95
+ slider=${!0}
96
+ .disablePlay=${!0}
97
+ .controlValues=${this.layerDatetime.values}
98
+ .controlProperty=${void 0}
99
+ current-step=${this.layerDatetime.current}
100
+ @stepchange=${U(this,We,$o)}
101
+ ></eox-timecontrol>
102
+ `)}
103
+ `}}We=new WeakSet,$o=function(n){this.dispatchEvent(new CustomEvent("datetime:updated",{bubbles:!0,detail:{datetime:n.detail.currentStep,layer:this.layer.get("id")}})),this.layerDatetime.current=n.detail.currentStep,this.requestUpdate()},Ge=new WeakMap,Je=new WeakMap,L(lo,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",lo);class uo extends Q{constructor(){super();D(this,we,n=>this.selectedTab===n&&"highlighted");D(this,Ke,`
85
104
  .tabbed figure {
86
105
  margin: 0;
87
106
  }
@@ -101,7 +120,7 @@
101
120
  .tabbed label.highlighted {
102
121
  background: lightgrey;
103
122
  }
104
- `);O(this,We,`
123
+ `);D(this,Qe,`
105
124
  .tabbed {
106
125
  font-size: small;
107
126
  }
@@ -122,20 +141,20 @@
122
141
  background: #00417011;
123
142
  border-top: 1px solid #0041701a;
124
143
  }
125
- `);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const n=this.tabs,i=this.actions,o=i.length+n.length>1;return x`
144
+ `);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const n=this.tabs,i=this.actions,o=i.length+n.length>1;return E`
126
145
  <style>
127
- ${M(this,qe)}
128
- ${!this.unstyled&&M(this,We)}
146
+ ${R(this,Ke)}
147
+ ${!this.unstyled&&R(this,Qe)}
129
148
  </style>
130
149
  <div class="tabbed">
131
150
  <!-- Navigation for tabs and actions -->
132
- ${at(o,()=>x`
151
+ ${tt(o,()=>E`
133
152
  <nav>
134
153
  <div>
135
154
  <!-- Labels for tabs -->
136
- ${je(n,(r,s)=>x`
155
+ ${Ze(n,(r,s)=>E`
137
156
  <label
138
- class=${M(this,ve).call(this,s)}
157
+ class=${R(this,we).call(this,s)}
139
158
  @click=${()=>this.selectedTab=s}
140
159
  >
141
160
  <!-- Customizable icon for each tab -->
@@ -145,7 +164,7 @@
145
164
  </div>
146
165
  <div>
147
166
  <!-- Icons for actions -->
148
- ${je(i,r=>x`
167
+ ${Ze(i,r=>E`
149
168
  <span>
150
169
  <!-- Customizable icon for each action -->
151
170
  <slot name=${`${r}-icon`}>${r}</slot>
@@ -156,15 +175,15 @@
156
175
  `)}
157
176
  <figure>
158
177
  <!-- Content for each tab -->
159
- ${je(n,(r,s)=>x`
160
- <div class="tab ${M(this,ve).call(this,s)}">
178
+ ${Ze(n,(r,s)=>E`
179
+ <div class="tab ${R(this,we).call(this,s)}">
161
180
  <!-- Content slot for each tab -->
162
181
  <slot name=${`${r}-content`}>${r}</slot>
163
182
  </div>
164
183
  `)}
165
184
  </figure>
166
185
  </div>
167
- `}}ve=new WeakMap,qe=new WeakMap,We=new WeakMap,L(ro,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-tabs",ro);const Zs=`
186
+ `}}we=new WeakMap,Ke=new WeakMap,Qe=new WeakMap,L(uo,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-tabs",uo);const Js=`
168
187
  button,
169
188
  .button {
170
189
  /* TODO: why does this only work here and not from :root? */
@@ -288,7 +307,7 @@ button.smallest.icon::before {
288
307
  width: 16px;
289
308
  padding: 0px;
290
309
  }
291
- `,Xs=`
310
+ `,Ks=`
292
311
  input[type=radio] {
293
312
  appearance: none;
294
313
  -webkit-appearance: none;
@@ -316,7 +335,7 @@ input[type=radio]:checked:after {
316
335
  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");
317
336
 
318
337
  }
319
- `,so=`
338
+ `,co=`
320
339
  input[type=checkbox] {
321
340
  appearance: none;
322
341
  -webkit-appearance: none;
@@ -339,7 +358,7 @@ input[type=checkbox]:checked:after {
339
358
  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");
340
359
 
341
360
  }
342
- `,Ys=`
361
+ `,Qs=`
343
362
  input[type="range"] {
344
363
  -webkit-appearance: none;
345
364
  width: 90%;
@@ -416,11 +435,11 @@ input[type="range"]:focus::-webkit-slider-thumb {
416
435
  input::-moz-focus-inner, input::-moz-focus-outer {
417
436
  border: 0;
418
437
  }
419
- `;class ao extends et{constructor(){super();L(this,"_removeButton",()=>xs(this));L(this,"_sortButton",()=>Ss(this.unstyled));L(this,"_button",n=>Es(n,this.unstyled));O(this,Ge,"");O(this,Je,`
420
- ${Zs}
421
- ${Xs}
422
- ${so}
423
- ${Ys}
438
+ `;class ho extends Q{constructor(){super();L(this,"_removeButton",()=>Ts(this));L(this,"_sortButton",()=>Ps(this.unstyled));L(this,"_button",n=>Cs(n,this.unstyled));D(this,tn,"");D(this,en,`
439
+ ${Js}
440
+ ${Ks}
441
+ ${co}
442
+ ${Qs}
424
443
  .drag-handle {
425
444
  cursor: n-resize;
426
445
  }
@@ -500,6 +519,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
500
519
  button.icon[slot=config-icon]::before {
501
520
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Etune%3C/title%3E%3Cpath d='M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z' /%3E%3C/svg%3E");
502
521
  }
522
+ details.tools summary .datetime-icon,
523
+ button.icon[slot=datetime-icon]::before {
524
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eclock-outline%3C/title%3E%3Cpath d='M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z' /%3E%3C/svg%3E");
525
+ }
503
526
  .single-action .remove-icon::before,
504
527
  [slot=remove-icon] button.icon::before {
505
528
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff0000' viewBox='0 0 24 24'%3E%3Ctitle%3Edelete-outline%3C/title%3E%3Cpath d='M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z' /%3E%3C/svg%3E");
@@ -512,17 +535,17 @@ input::-moz-focus-inner, input::-moz-focus-outer {
512
535
  [slot=opacity-content] {
513
536
  padding: 12px 6px;
514
537
  }
515
- `);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const n=vs(this.tools,this.layer),i=ws(this.tools,this.layer),o=this[`_${n==null?void 0:n[0]}Button`]?this[`_${n==null?void 0:n[0]}Button`]():T,r=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=n==null?void 0:n.length,a=i==null?void 0:i.length;return x`
538
+ `);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const n=_s(this.tools,this.layer),i=As(this.tools,this.layer),o=this[`_${n==null?void 0:n[0]}Button`]?this[`_${n==null?void 0:n[0]}Button`]():T,r=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=n==null?void 0:n.length,a=i==null?void 0:i.length;return E`
516
539
  <style>
517
- ${M(this,Ge)}
518
- ${!this.unstyled&&M(this,Je)}
540
+ ${R(this,tn)}
541
+ ${!this.unstyled&&R(this,en)}
519
542
  </style>
520
- ${at(s+a>0,()=>x`
521
- ${at(s===1&&a===0,()=>x`
543
+ ${tt(s+a>0,()=>E`
544
+ ${tt(s===1&&a===0,()=>E`
522
545
  <div class="single-action-container">
523
546
  <div class="single-action">${o}</div>
524
547
  </div>
525
- `,()=>{var u;return x`
548
+ `,()=>{var u;return E`
526
549
  <details
527
550
  class="tools"
528
551
  open=${this.layer.get("layerControlToolsExpand")||T}
@@ -537,10 +560,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
537
560
  .unstyled=${this.unstyled}
538
561
  >
539
562
  <!-- Rendering tabs and content -->
540
- ${je(i,c=>this._button(c))}
563
+ ${Ze(i,c=>this._button(c))}
541
564
 
542
565
  <div slot="info-content">
543
- ${$s(this.layer.get("description"))}
566
+ ${Ds(this.layer.get("description"))}
544
567
  </div>
545
568
  <div slot="opacity-content">
546
569
  <!-- Input for opacity -->
@@ -549,13 +572,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
549
572
  min="0"
550
573
  max="1"
551
574
  step="0.01"
552
- value=${to((u=this.layer)==null?void 0:u.getOpacity())}
575
+ value=${io((u=this.layer)==null?void 0:u.getOpacity())}
553
576
  @input=${c=>this.layer.setOpacity(parseFloat(c.target.value))}
554
577
  />
555
578
  </div>
556
579
  <div slot="config-content">
557
580
  <!-- Layer configuration -->
558
- ${at(this.layer.get("layerConfig"),()=>x`
581
+ ${tt(this.layer.get("layerConfig"),()=>E`
559
582
  <eox-layercontrol-layerconfig
560
583
  slot="config-content"
561
584
  .layer=${this.layer}
@@ -566,14 +589,27 @@ input::-moz-focus-inner, input::-moz-focus-outer {
566
589
  ></eox-layercontrol-layerconfig>
567
590
  `)}
568
591
  </div>
592
+ <div slot="datetime-content">
593
+ <!-- Layer datetime -->
594
+ ${tt(this.layer.get("layerDatetime"),()=>E`
595
+ <eox-layercontrol-layer-datetime
596
+ slot="datetime-content"
597
+ .noShadow=${!0}
598
+ .layerDatetime=${this.layer.get("layerDatetime")}
599
+ .layer=${this.layer}
600
+ .unstyled=${this.unstyled}
601
+ @changed=${()=>this.requestUpdate()}
602
+ ></eox-layercontrol-layer-datetime>
603
+ `)}
604
+ </div>
569
605
  <div slot="remove-icon">${this._removeButton()}</div>
570
606
  <div slot="sort-icon">${this._sortButton()}</div>
571
607
  </eox-layercontrol-tabs>
572
608
  </details>
573
609
  `})}
574
610
  `)}
575
- `}}Ge=new WeakMap,Je=new WeakMap,L(ao,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",ao);const qs=e=>{const t=()=>{const n=ms(e.layer,e.map,e.showLayerZoomState);let i=!1;!n&&e.currLayerVisibilityBasedOnZoom?(e.currLayerVisibilityBasedOnZoom=!1,i=!0):n&&!e.currLayerVisibilityBasedOnZoom&&(e.currLayerVisibilityBasedOnZoom=!0,i=!0),i&&(e.requestUpdate(),e.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};Ji(e.layer,e.showLayerZoomState)&&(t(),e.map.getView().on("change:resolution",()=>t()))},Ws=(e,t)=>{const n=t.layer;n.setVisible(e.target.checked),e.target.checked&&n.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(o=>{var r;o.layer!==n&&((r=o.layer)!=null&&r.get("layerControlExclusive"))&&(o.layer.setVisible(!1),o.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:n})),t.requestUpdate()};class lo extends et{constructor(){super();O(this,Ct);L(this,"currLayerVisibilityBasedOnZoom",!0);O(this,Ke,"");O(this,Qe,`
576
- ${so}
611
+ `}}tn=new WeakMap,en=new WeakMap,L(ho,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",ho);const ta=e=>{const t=()=>{const n=xs(e.layer,e.map,e.showLayerZoomState);let i=!1;!n&&e.currLayerVisibilityBasedOnZoom?(e.currLayerVisibilityBasedOnZoom=!1,i=!0):n&&!e.currLayerVisibilityBasedOnZoom&&(e.currLayerVisibilityBasedOnZoom=!0,i=!0),i&&(e.requestUpdate(),e.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};to(e.layer,e.showLayerZoomState)&&(t(),e.map.getView().on("change:resolution",()=>t()))},ea=(e,t)=>{const n=t.layer;n.setVisible(e.target.checked),e.target.checked&&n.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(o=>{var r;o.layer!==n&&((r=o.layer)!=null&&r.get("layerControlExclusive"))&&(o.layer.setVisible(!1),o.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:n})),t.requestUpdate()};class po extends Q{constructor(){super();D(this,Ct);L(this,"currLayerVisibilityBasedOnZoom",!0);D(this,nn,"");D(this,on,`
612
+ ${co}
577
613
  eox-layercontrol-layer {
578
614
  width: 100%;
579
615
  }
@@ -613,25 +649,25 @@ input::-moz-focus-inner, input::-moz-focus-outer {
613
649
  [data-type=draw] .title::before {
614
650
  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");
615
651
  }
616
- `);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){qs(this)}render(){var l;const n=this.layer.getVisible(),i=n?"visible":"",o=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",r=Y(this,Ct,cn).call(this,"layerControlDisable")?"disabled":"",s=Y(this,Ct,cn).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return x`
652
+ `);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){ta(this)}render(){var l;const n=this.layer.getVisible(),i=n?"visible":"",o=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",r=U(this,Ct,fn).call(this,"layerControlDisable")?"disabled":"",s=U(this,Ct,fn).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return E`
617
653
  <style>
618
- ${M(this,Ke)}
619
- ${!this.unstyled&&M(this,Qe)}
654
+ ${R(this,nn)}
655
+ ${!this.unstyled&&R(this,on)}
620
656
  </style>
621
- ${at(this.layer,()=>x`
657
+ ${tt(this.layer,()=>E`
622
658
  <!-- Render the layer -->
623
659
  <div class="layer ${i} ${o}">
624
660
  <label class="drag-handle ${r}">
625
661
  <!-- Input element for layer visibility -->
626
662
  <input
627
663
  type=${s}
628
- .checked=${to(n)}
629
- @click=${Y(this,Ct,vo)}
664
+ .checked=${io(n)}
665
+ @click=${U(this,Ct,So)}
630
666
  />
631
667
 
632
668
  <!-- Layer title -->
633
- <span class="title">${Y(this,Ct,cn).call(this,this.titleProperty)}</span>
634
- ${at(a,()=>x`<span class="tools-placeholder"></span>`)}
669
+ <span class="title">${U(this,Ct,fn).call(this,this.titleProperty)}</span>
670
+ ${tt(a,()=>E`<span class="tools-placeholder"></span>`)}
635
671
  </label>
636
672
  </div>
637
673
 
@@ -643,7 +679,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
643
679
  .unstyled=${this.unstyled}
644
680
  ></eox-layercontrol-layer-tools>
645
681
  `)}
646
- `}}Ct=new WeakSet,cn=function(n){var i;return(i=this.layer)==null?void 0:i.get(n)},vo=function(n){Ws(n,this)},Ke=new WeakMap,Qe=new WeakMap,L(lo,"properties",{layer:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer",lo);class uo extends et{constructor(){super();O(this,tn,"");O(this,en,`
682
+ `}}Ct=new WeakSet,fn=function(n){var i;return(i=this.layer)==null?void 0:i.get(n)},So=function(n){ea(n,this)},nn=new WeakMap,on=new WeakMap,L(po,"properties",{layer:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer",po);class fo extends Q{constructor(){super();D(this,rn,"");D(this,sn,`
647
683
  details summary {
648
684
  cursor: pointer;
649
685
  display: flex;
@@ -667,12 +703,12 @@ input::-moz-focus-inner, input::-moz-focus-outer {
667
703
  details[data-children-length="0"] summary::before {
668
704
  display: none;
669
705
  }
670
- `);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var o,r;const n=!!((o=this.group)!=null&&o.get("layerControlExpand")),i=(r=Qi(this.group.getLayers()))==null?void 0:r.length;return x`
706
+ `);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var o,r;const n=!!((o=this.group)!=null&&o.get("layerControlExpand")),i=(r=no(this.group.getLayers()))==null?void 0:r.length;return E`
671
707
  <style>
672
- ${M(this,tn)}
673
- ${!this.unstyled&&M(this,en)}
708
+ ${R(this,rn)}
709
+ ${!this.unstyled&&R(this,sn)}
674
710
  </style>
675
- ${at(this.group,()=>x`
711
+ ${tt(this.group,()=>E`
676
712
  <!-- Render the details element with the layer control -->
677
713
  <details
678
714
  open=${n||T}
@@ -706,7 +742,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
706
742
  ></eox-layercontrol-layer-list>
707
743
  </details>
708
744
  `)}
709
- `}}tn=new WeakMap,en=new WeakMap,L(uo,"properties",{group:{attribute:!1},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-group",uo);const Gs=e=>{const{layers:t,idProperty:n,titleProperty:i,renderRoot:o}=e,r=io(()=>{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");gs(t,n,i,e),fs(a,t,n,e)}};class co extends et{constructor(){super();O(this,nn,"");O(this,on,`
745
+ `}}rn=new WeakMap,sn=new WeakMap,L(fo,"properties",{group:{attribute:!1},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-group",fo);const na=e=>{const{layers:t,idProperty:n,titleProperty:i,renderRoot:o}=e,r=so(()=>{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");Es(t,n,i,e),ws(a,t,n,e)}};class go extends Q{constructor(){super();D(this,an,"");D(this,ln,`
710
746
  ul {
711
747
  padding: 0;
712
748
  margin: 0;
@@ -734,19 +770,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
734
770
  }
735
771
  li.sortable-ghost {
736
772
  }
737
- `);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1}firstUpdated(){Gs(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const n=this.layers?Qi(this.layers).reverse():[];return x`
773
+ `);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1}firstUpdated(){na(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const n=this.layers?no(this.layers).reverse():[];return E`
738
774
  <style>
739
- ${M(this,nn)}
740
- ${!this.unstyled&&M(this,on)}
775
+ ${R(this,an)}
776
+ ${!this.unstyled&&R(this,ln)}
741
777
  </style>
742
778
  <ul>
743
- ${at(this.layers,()=>x`
744
- ${zo(n,i=>i,i=>x`
779
+ ${tt(this.layers,()=>E`
780
+ ${Go(n,i=>i,i=>E`
745
781
  <li
746
782
  data-layer="${i.get(this.idProperty)}"
747
- data-type="${ys(i,this.map)}"
783
+ data-type="${$s(i,this.map)}"
748
784
  >
749
- ${i.getLayers?x`
785
+ ${i.getLayers?E`
750
786
  <eox-layercontrol-layer-group
751
787
  .noShadow=${!0}
752
788
  .group=${i}
@@ -759,7 +795,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
759
795
  @changed=${()=>this.requestUpdate()}
760
796
  >
761
797
  </eox-layercontrol-layer-group>
762
- `:x`
798
+ `:E`
763
799
  <eox-layercontrol-layer
764
800
  .noShadow=${!0}
765
801
  .layer=${i}
@@ -775,7 +811,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
775
811
  `)}
776
812
  `)}
777
813
  </ul>
778
- `}}nn=new WeakMap,on=new WeakMap,L(co,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-list",co);const Js=e=>{const t=e.querySelector("select[name=optional]"),n=t?t.value:null,i=jn(e.layers.getArray(),"layerControlOptional",!0).find(o=>(o.get(e.idProperty)||o.ol_uid)===n);i==null||i.set("layerControlOptional",!1),i==null||i.setVisible(!0),e.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),e.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(o=>o.requestUpdate()),e.requestUpdate()};class ho extends et{constructor(){super();O(this,rn);this.idProperty="id",this.layers=null,this.titleProperty="title",this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const n=jn(this.layers.getArray(),"layerControlOptional",!0);return x`
814
+ `}}an=new WeakMap,ln=new WeakMap,L(go,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-list",go);const ia=e=>{const t=e.querySelector("select[name=optional]"),n=t?t.value:null,i=Xn(e.layers.getArray(),"layerControlOptional",!0).find(o=>(o.get(e.idProperty)||o.ol_uid)===n);i==null||i.set("layerControlOptional",!1),i==null||i.setVisible(!0),e.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),e.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(o=>o.requestUpdate()),e.requestUpdate()};class mo extends Q{constructor(){super();D(this,un);this.idProperty="id",this.layers=null,this.titleProperty="title",this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const n=Xn(this.layers.getArray(),"layerControlOptional",!0);return E`
779
815
  <!-- Label for the dropdown -->
780
816
  <label for="optional">Optional layers</label>
781
817
 
@@ -787,19 +823,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
787
823
  </option>
788
824
 
789
825
  <!-- Mapping through filtered layers list to generate dropdown options -->
790
- ${n.map(i=>{const o=i.get(this.idProperty)||i.ol_uid,r=i.get(this.titleProperty),s=`layer ${i.get(this.idProperty)}`;return x` <option value="${o}">${r||s}</option> `})}
826
+ ${n.map(i=>{const o=i.get(this.idProperty)||i.ol_uid,r=i.get(this.titleProperty),s=`layer ${i.get(this.idProperty)}`;return E` <option value="${o}">${r||s}</option> `})}
791
827
  </select>
792
828
 
793
829
  <!-- Button to handle adding layers -->
794
- <button @click="${Y(this,rn,wo)}">add</button>
795
- `}}rn=new WeakSet,wo=function(){Js(this)},L(ho,"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",ho);const Ks=(e,t)=>{t.jsonInput=e.target.value,t.requestUpdate()},po=e=>{const t=JSON.parse(`{"data":${Ci(e.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(n=>{e.eoxMap.addOrUpdateLayer(n)}):e.eoxMap.addOrUpdateLayer(t.data),e.jsonInput=null,e.requestUpdate()},Qs=(e,t)=>{t.urlInput=e.target.value,t.requestUpdate()};async function ta(e){const t=e.urlInput;if(e.wmsCapabilities=null,e.searchLoad=!0,e.requestUpdate(),!t)return!1;if(An(t)==="XYZ")return{Name:t};try{const n=await Hr(t);e.wmsCapabilities=n}catch{}finally{e.searchLoad=!1,e.requestUpdate()}return!1}const ea=(e,t)=>{const{Name:n}=e,i=An(t.urlInput)||"XYZ",o={type:"Tile",properties:{id:n,title:n},source:{type:i,url:t.urlInput,params:{LAYERS:n}}};t.jsonInput=JSON.stringify(o)},na=(e,t)=>{t.open=e||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class fo extends et{constructor(){super();O(this,Z);L(this,"urlInput",null);L(this,"jsonInput",null);L(this,"open",null);L(this,"searchLoad",!1);L(this,"wmsCapabilities",null);O(this,sn,`
830
+ <button @click="${U(this,un,_o)}">add</button>
831
+ `}}un=new WeakSet,_o=function(){ia(this)},L(mo,"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",mo);const oa=(e,t)=>{t.jsonInput=e.target.value,t.requestUpdate()},yo=e=>{const t=JSON.parse(`{"data":${Di(e.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(n=>{e.eoxMap.addOrUpdateLayer(n)}):e.eoxMap.addOrUpdateLayer(t.data),e.jsonInput=null,e.requestUpdate()},ra=(e,t)=>{t.urlInput=e.target.value,t.requestUpdate()};async function sa(e){const t=e.urlInput;if(e.wmsCapabilities=null,e.searchLoad=!0,e.requestUpdate(),!t)return!1;if(Pn(t)==="XYZ")return{Name:t};try{const n=await Fr(t);e.wmsCapabilities=n}catch{}finally{e.searchLoad=!1,e.requestUpdate()}return!1}const aa=(e,t)=>{const{Name:n}=e,i=Pn(t.urlInput)||"XYZ",o={type:"Tile",properties:{id:n,title:n},source:{type:i,url:t.urlInput,params:{LAYERS:n}}};t.jsonInput=JSON.stringify(o)},la=(e,t)=>{t.open=e||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class bo extends Q{constructor(){super();D(this,X);L(this,"urlInput",null);L(this,"jsonInput",null);L(this,"open",null);L(this,"searchLoad",!1);L(this,"wmsCapabilities",null);D(this,dn,`
796
832
  .eox-add-layer-main .open {
797
833
  position: relative;
798
834
  }
799
835
  .eox-add-layer-main .close {
800
836
  display: none;
801
837
  }
802
- `);O(this,an,`
838
+ `);D(this,cn,`
803
839
  .eox-add {
804
840
  background: #f0f2f5;
805
841
  border-top: 1px solid #0041701a;
@@ -932,23 +968,23 @@ input::-moz-focus-inner, input::-moz-focus-outer {
932
968
  font-weight: bold;
933
969
  display: inline-block;
934
970
  }
935
- `);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const n=this.open?"open":"close",i=this.open==="url",o=this.open==="json",r=!Br(this.urlInput)||this.searchLoad?!0:T;return x`
971
+ `);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const n=this.open?"open":"close",i=this.open==="url",o=this.open==="json",r=!jr(this.urlInput)||this.searchLoad?!0:T;return E`
936
972
  <style>
937
- ${M(this,sn)}
938
- ${!this.unstyled&&M(this,an)}
973
+ ${R(this,dn)}
974
+ ${!this.unstyled&&R(this,cn)}
939
975
  </style>
940
976
  <div class="eox-add-layer-main">
941
977
  <div class="eox-add-layer-col">
942
978
  <!-- Tabbed interface for URL and JSON -->
943
979
  <ul class="eox-add-layer-tab ${n}">
944
980
  <li
945
- @click=${()=>Y(this,Z,hn).call(this,"url")}
981
+ @click=${()=>U(this,X,gn).call(this,"url")}
946
982
  class="${i?"active":""}"
947
983
  >
948
984
  URL
949
985
  </li>
950
986
  <li
951
- @click=${()=>Y(this,Z,hn).call(this,"json")}
987
+ @click=${()=>U(this,X,gn).call(this,"json")}
952
988
  class="${o?"active":""}"
953
989
  >
954
990
  JSON
@@ -958,13 +994,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
958
994
  <!-- Button to toggle tabs -->
959
995
  <button
960
996
  class="add-icon icon"
961
- @click=${()=>Y(this,Z,hn).call(this,this.open?null:"url")}
997
+ @click=${()=>U(this,X,gn).call(this,this.open?null:"url")}
962
998
  >
963
999
  ${this.unstyled?"Add Layer":""}
964
1000
  </button>
965
1001
  </div>
966
1002
  <div class="eox-add ${n}">
967
- ${i?x`
1003
+ ${i?E`
968
1004
  <!-- Input field for URL -->
969
1005
  <div class="eox-add-layer-col">
970
1006
  <input
@@ -972,71 +1008,71 @@ input::-moz-focus-inner, input::-moz-focus-outer {
972
1008
  class="add-url"
973
1009
  placeholder="Add URL (WMS/XYZ)"
974
1010
  .value="${this.urlInput}"
975
- @input=${Y(this,Z,Eo)}
1011
+ @input=${U(this,X,Ao)}
976
1012
  >
977
1013
  </input>
978
1014
  <!-- Search button for URL -->
979
1015
  <button
980
1016
  class="search-icon"
981
1017
  disabled=${r}
982
- @click=${Y(this,Z,xo)}
1018
+ @click=${U(this,X,Co)}
983
1019
  >
984
1020
  ${this.unstyled?"Search":""}
985
1021
  </button>
986
1022
  </div>
987
1023
 
988
1024
  <!-- Display layers for WMS capabilities -->
989
- ${this.wmsCapabilities?x`<ul class="search-lists">
990
- ${this.wmsCapabilities.Capability.Layer.Layer.map(s=>{const a=s.Name;return x`
1025
+ ${this.wmsCapabilities?E`<ul class="search-lists">
1026
+ ${this.wmsCapabilities.Capability.Layer.Layer.map(s=>{const a=s.Name;return E`
991
1027
  <li class="search-list">
992
1028
  ${a}
993
1029
  <!-- Button to add layer -->
994
1030
  <button
995
1031
  class="add-layer-icon icon"
996
- @click=${()=>Y(this,Z,Wn).call(this,s)}
1032
+ @click=${()=>U(this,X,Kn).call(this,s)}
997
1033
  >
998
1034
  ${this.unstyled?"+":""}
999
1035
  </button>
1000
1036
  </li>
1001
1037
  `})}
1002
1038
  </ul>`:T}
1003
- `:x`
1039
+ `:E`
1004
1040
  <!-- Textarea for JSON input -->
1005
1041
  <textarea
1006
1042
  class="add-layer-input"
1007
1043
  placeholder="Please put a valid eox-map layer JSON."
1008
- @input=${Y(this,Z,$o)}
1044
+ @input=${U(this,X,Po)}
1009
1045
  .value=${this.jsonInput}
1010
1046
  ></textarea>
1011
1047
 
1012
1048
  <!-- Button to add JSON layer -->
1013
1049
  <button
1014
1050
  class="add-layer-icon json-add-layer"
1015
- disabled=${Vr(this.jsonInput)?T:!0}
1016
- @click=${Y(this,Z,So)}
1051
+ disabled=${Zr(this.jsonInput)?T:!0}
1052
+ @click=${U(this,X,To)}
1017
1053
  >
1018
1054
  ${this.unstyled?"Add JSON":""}
1019
1055
  </button>
1020
1056
  `}
1021
1057
  </div>
1022
1058
  </div>
1023
- `}}Z=new WeakSet,Eo=function(n){Qs(n,this)},xo=async function(){const n=await ta(this);n&&Y(this,Z,Wn).call(this,n)},Wn=function(n){ea(n,this),po(this)},So=function(){po(this)},$o=function(n){Ks(n,this)},hn=function(n){na(n,this)},sn=new WeakMap,an=new WeakMap,L(fo,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",fo);const ia=(e,t)=>{if(t.requestUpdate(),e.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const n=t.renderRoot.querySelector("eox-layercontrol-optional-list");n==null||n.requestUpdate()}},oa=e=>{let t;return typeof e=="string"?t=document.querySelector(e):t=e,t},ra=e=>{const t=oa(e.for);return t&&t.map!==e.map&&(e.map=t.map),t};class Yn extends et{constructor(){super();O(this,ln);O(this,Wt);O(this,un,"* { font-family: Roboto, sans-serif; }");this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride=""}firstUpdated(){$e(this,Wt,ra(this))}render(){var o,r,s;const n=(o=this.map)==null?void 0:o.getLayers().getArray(),i=n&&((r=jn(n,"layerControlOptional",!0))==null?void 0:r.length)>0;return x`
1059
+ `}}X=new WeakSet,Ao=function(n){ra(n,this)},Co=async function(){const n=await sa(this);n&&U(this,X,Kn).call(this,n)},Kn=function(n){aa(n,this),yo(this)},To=function(){yo(this)},Po=function(n){oa(n,this)},gn=function(n){la(n,this)},dn=new WeakMap,cn=new WeakMap,L(bo,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",bo);const ua=(e,t)=>{if(t.requestUpdate(),e.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const n=t.renderRoot.querySelector("eox-layercontrol-optional-list");n==null||n.requestUpdate()}},da=e=>{let t;return typeof e=="string"?t=document.querySelector(e):t=e,t},ca=e=>{const t=da(e.for);return t&&t.map!==e.map&&(e.map=t.map),t};class Gn extends Q{constructor(){super();D(this,Gt);D(this,Wt);D(this,hn,"* { font-family: Roboto, sans-serif; }");this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride=""}firstUpdated(){_e(this,Wt,ca(this))}render(){var o,r,s;const n=(o=this.map)==null?void 0:o.getLayers().getArray(),i=n&&((r=Xn(n,"layerControlOptional",!0))==null?void 0:r.length)>0;return E`
1024
1060
  <style>
1025
- ${!this.unstyled&&M(this,un)}
1061
+ ${!this.unstyled&&R(this,hn)}
1026
1062
  ${this.styleOverride}
1027
1063
  </style>
1028
1064
 
1029
1065
  <!-- Conditional rendering of add layers component -->
1030
- ${at(this.addExternalLayers&&((s=M(this,Wt))==null?void 0:s.addOrUpdateLayer),()=>x`
1066
+ ${tt(this.addExternalLayers&&((s=R(this,Wt))==null?void 0:s.addOrUpdateLayer),()=>E`
1031
1067
  <eox-layercontrol-add-layers
1032
1068
  .noShadow=${!0}
1033
- .eoxMap=${M(this,Wt)}
1069
+ .eoxMap=${R(this,Wt)}
1034
1070
  .unstyled=${this.unstyled}
1035
1071
  ></eox-layercontrol-add-layers>
1036
1072
  `)}
1037
1073
 
1038
1074
  <!-- Conditional rendering of layer list component -->
1039
- ${at(this.map,()=>x`
1075
+ ${tt(this.map,()=>E`
1040
1076
  <eox-layercontrol-layer-list
1041
1077
  .noShadow=${!0}
1042
1078
  class="layers"
@@ -1047,12 +1083,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1047
1083
  .showLayerZoomState=${this.showLayerZoomState}
1048
1084
  .tools=${this.tools}
1049
1085
  .unstyled=${this.unstyled}
1050
- @changed=${Y(this,ln,_o)}
1086
+ @changed=${U(this,Gt,Do)}
1087
+ @datetime:updated=${U(this,Gt,Ro)}
1051
1088
  ></eox-layercontrol-layer-list>
1052
1089
  `)}
1053
1090
 
1054
1091
  <!-- Conditional rendering of optional list component -->
1055
- ${at(i,()=>x`
1092
+ ${tt(i,()=>E`
1056
1093
  <eox-layercontrol-optional-list
1057
1094
  .noShadow=${!0}
1058
1095
  .idProperty=${this.idProperty}
@@ -1061,4 +1098,4 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1061
1098
  @changed=${()=>this.requestUpdate()}
1062
1099
  ></eox-layercontrol-optional-list>
1063
1100
  `)}
1064
- `}}Wt=new WeakMap,ln=new WeakSet,_o=function(n){ia(n,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:n.detail}))},un=new WeakMap,L(Yn,"properties",{for:{type:String},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},addExternalLayers:{attribute:!1},unstyled:{type:Boolean},styleOverride:{type:String}}),customElements.define("eox-layercontrol",Yn),C.EOxLayerControl=Yn,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
1101
+ `}}Wt=new WeakMap,Gt=new WeakSet,Do=function(n){ua(n,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:n.detail}))},Ro=function(n){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:n.detail}))},hn=new WeakMap,L(Gn,"properties",{for:{type:String},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},addExternalLayers:{attribute:!1},unstyled:{type:Boolean},styleOverride:{type:String}}),customElements.define("eox-layercontrol",Gn),C.EOxLayerControl=Gn,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});