@eox/layercontrol 0.19.0 → 0.20.1-dev.1726146964.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 da=Object.defineProperty;var vo=C=>{throw TypeError(C)};var ha=(C,_,H)=>_ in C?da(C,_,{enumerable:!0,configurable:!0,writable:!0,value:H}):C[_]=H;var L=(C,_,H)=>ha(C,typeof _!="symbol"?_+"":_,H),Yn=(C,_,H)=>_.has(C)||vo("Cannot "+H);var O=(C,_,H)=>(Yn(C,_,"read from private field"),H?H.call(C):_.get(C)),R=(C,_,H)=>_.has(C)?vo("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(C):_.set(C,H),$e=(C,_,H,Jt)=>(Yn(C,_,"write to private field"),Jt?Jt.call(C,H):_.set(C,H),H),q=(C,_,H)=>(Yn(C,_,"access private method"),H);/**
1
+ (function(T,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(T=typeof globalThis<"u"?globalThis:T||self,_(T["eox-layercontrol"]={}))})(this,function(T){"use strict";var xa=Object.defineProperty;var Co=T=>{throw TypeError(T)};var Ea=(T,_,V)=>_ in T?xa(T,_,{enumerable:!0,configurable:!0,writable:!0,value:V}):T[_]=V;var I=(T,_,V)=>Ea(T,typeof _!="symbol"?_+"":_,V),ti=(T,_,V)=>_.has(T)||Co("Cannot "+V);var O=(T,_,V)=>(ti(T,_,"read from private field"),V?V.call(T):_.get(T)),C=(T,_,V)=>_.has(T)?Co("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(T):_.set(T,V),_e=(T,_,V,Jt)=>(ti(T,_,"write to private field"),Jt?Jt.call(T,V):_.set(T,V),V),U=(T,_,V)=>(ti(T,_,"access private method"),V);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var yo,Gt,ye,be,Ze,wo,Xe,qe,ve,Ye,We,Ge,Je,Ct,dn,Eo,Ke,Qe,tn,en,nn,on,rn,xo,Z,So,$o,Wn,_o,Ao,hn,sn,an,Tt,ln,Co,un;const _=globalThis,H=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jt=Symbol(),Gn=new WeakMap;let To=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=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 Po=e=>new To(typeof e=="string"?e:e+"",void 0,Jt),Oo=(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 Po(n)})(e):e;/**
5
+ */var _o,Wt,be,ve,Xe,Po,qe,Ye,We,Do,Ge,Je,we,Ke,Qe,tn,en,nn,on,Ct,mn,Oo,rn,sn,an,ln,dn,un,cn,Ro,X,Ho,Mo,ei,No,Io,yn,hn,pn,Tt,Gt,Vo,Bo,fn;const _=globalThis,V=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jt=Symbol(),ni=new WeakMap;let Lo=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Jt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(V&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=ni.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ni.set(e,t))}return t}toString(){return this.cssText}};const Uo=n=>new Lo(typeof n=="string"?n:n+"",void 0,Jt),ko=(n,t)=>{if(V)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=_.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,n.appendChild(i)}},ii=V?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Uo(e)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Ro,defineProperty:Do,getOwnPropertyDescriptor:Mo,getOwnPropertyNames:No,getOwnPropertySymbols:Io,getPrototypeOf:Ho}=Object,xt=globalThis,Kn=xt.trustedTypes,Bo=Kn?Kn.emptyScript:"",pn=xt.reactiveElementPolyfillSupport,Kt=(e,t)=>e,fn={toAttribute(e,t){switch(t){case Boolean:e=e?Bo: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)=>!Ro(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 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=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&&Do(this.prototype,t,o)}}static getPropertyDescriptor(t,n,i){const{get:o,set:r}=Mo(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(Kt("elementProperties")))return;const t=Ho(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=[...No(n),...Io(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 Oo(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){}}Ut.elementStyles=[],Ut.shadowRootOptions={mode:"open"},Ut[Kt("elementProperties")]=new Map,Ut[Kt("finalized")]=new Map,pn==null||pn({ReactiveElement:Ut}),(xt.reactiveElementVersions??(xt.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:Fo,defineProperty:jo,getOwnPropertyDescriptor:Zo,getOwnPropertyNames:zo,getOwnPropertySymbols:Xo,getPrototypeOf:qo}=Object,Et=globalThis,oi=Et.trustedTypes,Yo=oi?oi.emptyScript:"",bn=Et.reactiveElementPolyfillSupport,Kt=(n,t)=>n,vn={toAttribute(n,t){switch(t){case Boolean:n=n?Yo:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},ri=(n,t)=>!Fo(n,t),si={attribute:!0,type:String,converter:vn,reflect:!1,hasChanged:ri};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Et.litPropertyMetadata??(Et.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,e=si){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&jo(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=Zo(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return o==null?void 0:o.call(this)},set(s){const a=o==null?void 0:o.call(this);r.call(this,s),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??si}static _$Ei(){if(this.hasOwnProperty(Kt("elementProperties")))return;const t=qo(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 e=this.properties,i=[...zo(e),...Xo(e)];for(const o of i)this.createProperty(o,e[o])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const o of i)e.unshift(ii(o))}else t!==void 0&&e.push(ii(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ko(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var 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:vn).toAttribute(e,i.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){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:vn;this._$Em=o,this[o]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??ri)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var 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 e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(e)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(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(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}kt.elementStyles=[],kt.shadowRootOptions={mode:"open"},kt[Kt("elementProperties")]=new Map,kt[Kt("finalized")]=new Map,bn==null||bn({ReactiveElement:kt}),(Et.reactiveElementVersions??(Et.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const Qt=globalThis,_e=Qt.trustedTypes,ei=_e?_e.createPolicy("lit-html",{createHTML:e=>e}):void 0,gn="$lit$",gt=`lit$${Math.random().toFixed(9).slice(2)}$`,mn="?"+gt,Vo=`<${mn}>`,Rt=document,te=()=>Rt.createComment(""),ee=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]`,ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oi=/-->/g,ri=/>/g,Dt=RegExp(`>|${yn}(?:([^\\s"'>=/]+)(${yn}*=${yn}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),si=/'/g,ai=/"/g,li=/^(?:script|style|textarea|title)$/i,Lo=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),x=Lo(1),st=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),ui=new WeakMap,Mt=Rt.createTreeWalker(Rt,129);function ci(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ei!==void 0?ei.createHTML(t):t}const di=(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,d,c=-1,p=0;for(;p<l.length&&(s.lastIndex=p,d=s.exec(l),d!==null);)p=s.lastIndex,s===ne?d[1]==="!--"?s=oi:d[1]!==void 0?s=ri:d[2]!==void 0?(li.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=Dt):d[3]!==void 0&&(s=Dt):s===Dt?d[0]===">"?(s=o??ne,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?Dt:d[3]==='"'?ai:si):s===ai||s===si?s=Dt:s===oi||s===ri?s=ne:(s=Dt,o=void 0);const f=s===Dt&&e[a+1].startsWith("/>")?" ":"";r+=s===ne?l+Vo:c>=0?(i.push(u),l.slice(0,c)+gn+l.slice(c)+gt+f):l+gt+(c===-2?a:f)}return[ci(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,d]=di(t,n);if(this.el=ie.createElement(u,i),Mt.currentNode=this.el.content,n===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=Mt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(gn)){const p=d[s++],f=o.getAttribute(c).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:oe}),o.removeAttribute(c)}else c.startsWith(gt)&&(l.push({type:6,index:r}),o.removeAttribute(c));if(li.test(o.tagName)){const c=o.textContent.split(gt),p=c.length-1;if(p>0){o.textContent=_e?_e.emptyScript:"";for(let f=0;f<p;f++)o.append(c[f],te()),Mt.nextNode(),l.push({type:2,index:++r});o.append(c[p],te())}}}else if(o.nodeType===8)if(o.data===mn)l.push({type:2,index:r});else{let c=-1;for(;(c=o.data.indexOf(gt,c+1))!==-1;)l.push({type:7,index:r}),c+=gt.length-1}r++}}static createElement(t,n){const i=Rt.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=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=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)??Rt).importNode(n,!0);Mt.currentNode=o;let r=Mt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new Ft(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=Mt.nextNode(),s++)}return Mt.currentNode=Rt,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 Ft{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),ee(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&&ee(this._$AH)?this._$AA.nextSibling.data=t:this.T(Rt.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(ci(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 ie(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 Ft(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=Nt(this,t,n,0),s=!ee(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=!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 pi extends oe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class fi extends oe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class gi extends oe{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 ko={P:gn,A:gt,C:mn,M:1,L:di,R:hi,D:ii,V:Nt,I:Ft,H:oe,N:fi,U:gi,B:pi,F:mi},bn=Qt.litHtmlPolyfillSupport;bn==null||bn(ie,Ft),(Qt.litHtmlVersions??(Qt.litHtmlVersions=[])).push("3.1.4");const Uo=(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 Ft(t.insertBefore(te(),r),r,void 0,n??{})}return o._$AI(e),o};/**
13
+ */const Qt=globalThis,Ae=Qt.trustedTypes,ai=Ae?Ae.createPolicy("lit-html",{createHTML:n=>n}):void 0,wn="$lit$",gt=`lit$${Math.random().toFixed(9).slice(2)}$`,xn="?"+gt,Wo=`<${xn}>`,Ot=document,te=()=>Ot.createComment(""),ee=n=>n===null||typeof n!="object"&&typeof n!="function",En=Array.isArray,li=n=>En(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Sn=`[
14
+ \f\r]`,ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,di=/-->/g,ui=/>/g,Rt=RegExp(`>|${Sn}(?:([^\\s"'>=/]+)(${Sn}*=${Sn}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ci=/'/g,hi=/"/g,pi=/^(?:script|style|textarea|title)$/i,Go=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),w=Go(1),at=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),fi=new WeakMap,Ht=Ot.createTreeWalker(Ot,129);function gi(n,t){if(!En(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ai!==void 0?ai.createHTML(t):t}const mi=(n,t)=>{const e=n.length-1,i=[];let o,r=t===2?"<svg>":t===3?"<math>":"",s=ne;for(let a=0;a<e;a++){const l=n[a];let d,c,u=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===ne?c[1]==="!--"?s=di:c[1]!==void 0?s=ui:c[2]!==void 0?(pi.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Rt):c[3]!==void 0&&(s=Rt):s===Rt?c[0]===">"?(s=o??ne,u=-1):c[1]===void 0?u=-2:(u=s.lastIndex-c[2].length,d=c[1],s=c[3]===void 0?Rt:c[3]==='"'?hi:ci):s===hi||s===ci?s=Rt:s===di||s===ui?s=ne:(s=Rt,o=void 0);const f=s===Rt&&n[a+1].startsWith("/>")?" ":"";r+=s===ne?l+Wo:u>=0?(i.push(d),l.slice(0,u)+wn+l.slice(u)+gt+f):l+gt+(u===-2?a:f)}return[gi(n,r+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class ie{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const a=t.length-1,l=this.parts,[d,c]=mi(t,e);if(this.el=ie.createElement(d,i),Ht.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=Ht.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const u of o.getAttributeNames())if(u.endsWith(wn)){const p=c[s++],f=o.getAttribute(u).split(gt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:f,ctor:g[1]==="."?bi:g[1]==="?"?vi:g[1]==="@"?wi:oe}),o.removeAttribute(u)}else u.startsWith(gt)&&(l.push({type:6,index:r}),o.removeAttribute(u));if(pi.test(o.tagName)){const u=o.textContent.split(gt),p=u.length-1;if(p>0){o.textContent=Ae?Ae.emptyScript:"";for(let f=0;f<p;f++)o.append(u[f],te()),Ht.nextNode(),l.push({type:2,index:++r});o.append(u[p],te())}}}else if(o.nodeType===8)if(o.data===xn)l.push({type:2,index:r});else{let u=-1;for(;(u=o.data.indexOf(gt,u+1))!==-1;)l.push({type:7,index:r}),u+=gt.length-1}r++}}static createElement(t,e){const i=Ot.createElement("template");return i.innerHTML=t,i}}function Mt(n,t,e=n,i){var s,a;if(t===at)return t;let o=i!==void 0?(s=e.o)==null?void 0:s[i]:e.l;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(n),o._$AT(n,e,i)),i!==void 0?(e.o??(e.o=[]))[i]=o:e.l=o),o!==void 0&&(t=Mt(n,o._$AS(n,t.values),o,i)),t}class yi{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=((t==null?void 0:t.creationScope)??Ot).importNode(e,!0);Ht.currentNode=o;let r=Ht.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Ce(r,r.nextSibling,this,t):l.type===1?d=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(d=new xi(r,this,t)),this._$AV.push(d),l=i[++a]}s!==(l==null?void 0:l.index)&&(r=Ht.nextNode(),s++)}return Ht.currentNode=Ot,o}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}let Ce=class To{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,e,i,o){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this.v=(o==null?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Mt(this,t,e),ee(t)?t===P||t==null||t===""?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==at&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):li(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==P&&ee(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ot.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=ie.createElement(gi(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else{const s=new yi(o,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=fi.get(t.strings);return e===void 0&&fi.set(t.strings,e=new ie(t)),e}k(t){En(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new To(this.O(te()),this.O(te()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}};class oe{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,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=P}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(r===void 0)t=Mt(this,t,e,0),s=!ee(t)||t!==this._$AH&&t!==at,s&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=Mt(this,a[i+l],e,l),d===at&&(d=this._$AH[l]),s||(s=!ee(d)||d!==this._$AH[l]),d===P?t=P:t!==P&&(t+=(d??"")+r[l+1]),this._$AH[l]=d}s&&!o&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bi extends oe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}class vi extends oe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==P)}}class wi extends oe{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=Mt(this,t,e,0)??P)===at)return;const i=this._$AH,o=t===P&&i!==P||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==P&&(i===P||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class xi{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Mt(this,t)}}const Jo={M:wn,P:gt,A:xn,C:1,L:mi,R:yi,D:li,V:Mt,I:Ce,H:oe,N:vi,U:wi,B:bi,F:xi},$n=Qt.litHtmlPolyfillSupport;$n==null||$n(ie,Ce),(Qt.litHtmlVersions??(Qt.litHtmlVersions=[])).push("3.2.0");const Ko=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let o=i._$litPart$;if(o===void 0){const r=(e==null?void 0:e.renderBefore)??null;i._$litPart$=o=new Ce(t.insertBefore(te(),r),r,void 0,e??{})}return o._$AI(n),o};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */let et=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=Uo(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,(yo=globalThis.litElementHydrateSupport)==null||yo.call(globalThis,{LitElement:et});const vn=globalThis.litElementPolyfillSupport;vn==null||vn({LitElement:et}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/**
19
+ */class J extends kt{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ko(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return at}}J._$litElement$=!0,J.finalized=!0,(_o=globalThis.litElementHydrateSupport)==null||_o.call(globalThis,{LitElement:J});const _n=globalThis.litElementPolyfillSupport;_n==null||_n({LitElement:J}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");/**
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 K(n,t,e){return n?t(n):e==null?void 0:e(n)}/**
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 St={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},An=n=>(...t)=>({_$litDirective$:n,values:t});class Cn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this.t=t,this._$AM=e,this.i=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
28
28
  * @license
29
29
  * Copyright 2020 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const{I:Fo}=ko,jo=e=>e.strings===void 0,yi=()=>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(yi(),o),a=i.insertBefore(yi(),o);n=new Fo(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 d=u.nextSibling;i.insertBefore(u,o),u=d}}}return n},It=(e,t,n=e)=>(e._$AI(t,n),e),zo={},bi=(e,t=zo)=>e._$AH=t,Zo=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:Qo}=Jo,tr=n=>n.strings===void 0,Ei=()=>document.createComment(""),re=(n,t,e)=>{var r;const i=n._$AA.parentNode,o=t===void 0?n._$AB:t._$AA;if(e===void 0){const s=i.insertBefore(Ei(),o),a=i.insertBefore(Ei(),o);e=new Qo(s,a,n,n.options)}else{const s=e._$AB.nextSibling,a=e._$AM,l=a!==n;if(l){let d;(r=e._$AQ)==null||r.call(e,n),e._$AM=n,e._$AP!==void 0&&(d=n._$AU)!==a._$AU&&e._$AP(d)}if(s!==o||l){let d=e._$AA;for(;d!==s;){const c=d.nextSibling;i.insertBefore(d,o),d=c}}}return e},Nt=(n,t,e=n)=>(n._$AI(t,e),n),er={},Si=(n,t=er)=>n._$AH=t,nr=n=>n._$AH,Tn=n=>{var i;(i=n._$AP)==null||i.call(n,!1,!0);let t=n._$AA;const e=n._$AB.nextSibling;for(;t!==e;){const o=t.nextSibling;t.remove(),t=o}};/**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */const vi=(e,t,n)=>{const i=new Map;for(let o=t;o<=n;o++)i.set(e[o],o);return i},Xo=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=Zo(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,d,c=0,p=o.length-1,f=0,g=r.length-1;for(;c<=p&&f<=g;)if(o[c]===null)c++;else if(o[p]===null)p--;else if(a[c]===s[f])l[f]=It(o[c],r[f]),c++,f++;else if(a[p]===s[g])l[g]=It(o[p],r[g]),p--,g--;else if(a[c]===s[g])l[g]=It(o[c],r[g]),re(e,l[g+1],o[c]),c++,g--;else if(a[p]===s[f])l[f]=It(o[p],r[f]),re(e,o[c],o[p]),p--,f++;else if(u===void 0&&(u=vi(s,f,g),d=vi(a,c,p)),u.has(a[c]))if(u.has(a[p])){const y=d.get(s[f]),M=y!==void 0?o[y]:null;if(M===null){const X=re(e,o[c]);It(X,r[f]),l[f]=X}else l[f]=It(M,r[f]),re(e,o[c],M),o[y]=null;f++}else xn(o[p]),p--;else xn(o[c]),c++;for(;f<=g;){const y=re(e,l[g+1]);It(y,r[f]),l[f++]=y}for(;c<=p;){const y=o[c++];y!==null&&xn(y)}return this.ut=s,bi(e,l),st}});/**
35
+ */const $i=(n,t,e)=>{const i=new Map;for(let o=t;o<=e;o++)i.set(n[o],o);return i},ir=An(class extends Cn{constructor(n){if(super(n),n.type!==St.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);const o=[],r=[];let s=0;for(const a of n)o[s]=i?i(a,s):s,r[s]=e(a,s),s++;return{values:r,keys:o}}render(n,t,e){return this.dt(n,t,e).values}update(n,[t,e,i]){const o=nr(n),{values:r,keys:s}=this.dt(t,e,i);if(!Array.isArray(o))return this.ut=s,r;const a=this.ut??(this.ut=[]),l=[];let d,c,u=0,p=o.length-1,f=0,g=r.length-1;for(;u<=p&&f<=g;)if(o[u]===null)u++;else if(o[p]===null)p--;else if(a[u]===s[f])l[f]=Nt(o[u],r[f]),u++,f++;else if(a[p]===s[g])l[g]=Nt(o[p],r[g]),p--,g--;else if(a[u]===s[g])l[g]=Nt(o[u],r[g]),re(n,l[g+1],o[u]),u++,g--;else if(a[p]===s[f])l[f]=Nt(o[p],r[f]),re(n,o[u],o[p]),p--,f++;else if(d===void 0&&(d=$i(s,f,g),c=$i(a,u,p)),d.has(a[u]))if(d.has(a[p])){const y=c.get(s[f]),H=y!==void 0?o[y]:null;if(H===null){const q=re(n,o[u]);Nt(q,r[f]),l[f]=q}else l[f]=Nt(H,r[f]),re(n,o[u],H),o[y]=null;f++}else Tn(o[p]),p--;else Tn(o[u]),u++;for(;f<=g;){const y=re(n,l[g+1]);Nt(y,r[f]),l[f++]=y}for(;u<=p;){const y=o[u++];y!==null&&Tn(y)}return this.ut=s,Si(n,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 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 qo{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===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)Ei(i,t,n)}return n}function Yo(e,t,n,i){for(var o=Wo(t);o;o=Go(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 Wo(e){let t=e.firstElementChild||e.firstChild;for(;t&&t.nodeType!==se.ELEMENT;)t=t.nextSibling;return t}function Go(e){let t=e.nextElementSibling||e.nextSibling;for(;t&&t.nodeType!==se.ELEMENT;)t=t.nextSibling;return t}function F(e,t,n){return Jo(e,t,n)}function Jo(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),Yo(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 Ko=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function Qo(e){return e.replace(Ko,"")}function Ht(e){const t=/^\s*(true|1)|(false|0)\s*$/.exec(e);if(t)return E(t[1])||!1}function jt(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 Qo(Ae(e,!1))}const tr="http://www.w3.org/1999/xlink";function $n(e){return e.getAttributeNS(tr,"href")}function er(e,t){return k({},Tr,e,t)}function Si(e){return[mt(e.getAttribute("minx")),mt(e.getAttribute("miny")),mt(e.getAttribute("maxx")),mt(e.getAttribute("maxy"))]}function nr(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 ir(e,t){const n=Si(e);if(!(!E(n[0])||!E(n[1])||!E(n[2])||!E(n[3])))return n}function or(e,t){const n=parseFloat(e.getAttribute("min")),i=parseFloat(e.getAttribute("max"));return{min:n,max:i}}function rr(e,t){const n=k({},Pr,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 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 cr(e,t){return k({},Ar,e,t)}function dr(e,t){return k([],Cr,e,t)}function hr(e,t){const n=Ht(e.getAttribute("queryable"));return k({queryable:E(n)?n:!1},Ai,e,t)}function pr(e,t){var n=t[t.length-1];const i=k({},Ai,e,t);if(!E(i))return;let o=Ht(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=Ht(e.getAttribute("opaque"));E(s)||(s=n.opaque),i.opaque=E(s)?s:!1;let a=Ht(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 d=["Style","CRS","AuthorityURL"];for(let p=0,f=d.length;p<f;p++){const g=d[p],y=n[g];if(E(y)){let M=wi(i,g,[]);M=M.concat(y),i[g]=M}}const c=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=c.length;p<f;p++){const g=c[p],y=i[g];if(!E(y)){const M=n[g];i[g]=M}}return i}function fr(e,t){return{name:e.getAttribute("name"),units:e.getAttribute("units"),unitSymbol:e.getAttribute("unitSymbol"),default:e.getAttribute("default"),multipleValues:Ht(e.getAttribute("multipleValues")),nearestValue:Ht(e.getAttribute("nearestValue")),current:Ht(e.getAttribute("current")),values:$(e)}}function yt(e,t){return k({},Ir,e,t)}function gr(e,t){return k({},Or,e,t)}function mr(e,t){return k({},Dr,e,t)}function yr(e,t){return k({},Mr,e,t)}function _n(e,t){return k({},Rr,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 br(e,t){var n=yt(e,t);if(E(n))return n.name=e.getAttribute("name"),n}function vr(e,t){var n=yt(e,t);if(E(n))return n.type=e.getAttribute("type"),n}function wr(e,t){return k({},Nr,e,t)}function _i(e,t){return k([],Hr,e,t)}const j=[null,"http://www.opengis.net/wms"],Er=F(j,{Service:m(ar),Capability:m(sr)}),xr=F(j,{Request:m(gr),Exception:m(dr),Layer:m(hr)}),Sr=F(j,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(_i),OnlineResource:m($n),ContactInformation:m(lr),Fees:m($),AccessConstraints:m($),LayerLimit:m(Sn),MaxWidth:m(Sn),MaxHeight:m(Sn)}),$r=F(j,{ContactPersonPrimary:m(ur),ContactPosition:m($),ContactAddress:m(cr),ContactVoiceTelephone:m($),ContactFacsimileTelephone:m($),ContactElectronicMailAddress:m($)}),_r=F(j,{ContactPerson:m($),ContactOrganization:m($)}),Ar=F(j,{AddressType:m($),Address:m($),City:m($),StateOrProvince:m($),PostCode:m($),Country:m($)}),Cr=F(j,{Format:xi($)}),Ai=F(j,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(_i),CRS:Q($),SRS:Q($),EX_GeographicBoundingBox:m(rr),LatLonBoundingBox:m(ir),BoundingBox:Q(nr),Dimension:Q(fr),Attribution:m(er),AuthorityURL:Q(br),Identifier:Q($),MetadataURL:Q(vr),DataURL:Q(yt),FeatureListURL:Q(yt),Style:Q(wr),MinScaleDenominator:m(jt),MaxScaleDenominator:m(jt),ScaleHint:m(or),Layer:Q(pr)}),Tr=F(j,{Title:m($),OnlineResource:m($n),LogoURL:m($i)}),Pr=F(j,{westBoundLongitude:m(jt),eastBoundLongitude:m(jt),southBoundLatitude:m(jt),northBoundLatitude:m(jt)}),Or=F(j,{GetCapabilities:m(_n),GetMap:m(_n),GetFeatureInfo:m(_n)}),Rr=F(j,{Format:Q($),DCPType:Q(mr)}),Dr=F(j,{HTTP:m(yr)}),Mr=F(j,{Get:m(yt),Post:m(yt)}),Nr=F(j,{Name:m($),Title:m($),Abstract:m($),LegendURL:Q($i),StyleSheetURL:m(yt),StyleURL:m(yt)}),Ir=F(j,{Format:m($),OnlineResource:m($n)}),Hr=F(j,{Keyword:xi($)});class Br{constructor(t,n){!n&&typeof window<"u"&&(n=window.DOMParser),this.version=void 0,this._parser=new qo(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},Er,t,[])||null}}async function Vr(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 Br(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 Lr(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 kr(e){try{return JSON.parse(Ci(e)),!!e}catch{return!1}}function Ur(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
- * Sortable 1.15.2
40
+ */var E=n=>n!==void 0,_i=(n,t,e)=>t in n?n[t]:n[t]=e;const se={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};class or{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,e){return Te(t,e).join("")}}function Te(n,t){return Ai(n,t,[]).join("")}function Ai(n,t,e){if(n.nodeType===se.CDATA_SECTION||n.nodeType===se.TEXT)t?e.push(String(n.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(n.nodeValue);else{var i;for(i=n.firstChild;i;i=i.nextSibling)Ai(i,t,e)}return e}function rr(n,t,e,i){for(var o=sr(t);o;o=ar(o)){var r=o.namespaceURI||null,s=n[r];if(E(s)){var a=s[o.localName];E(a)&&a.call(i,o,e)}}}function sr(n){let t=n.firstElementChild||n.firstChild;for(;t&&t.nodeType!==se.ELEMENT;)t=t.nextSibling;return t}function ar(n){let t=n.nextElementSibling||n.nextSibling;for(;t&&t.nodeType!==se.ELEMENT;)t=t.nextSibling;return t}function j(n,t,e){return lr(n,t,e)}function lr(n,t,e){var i=E(e)?e:{},o,r;for(o=0,r=n.length;o<r;++o)i[n[o]]=t;return i}function Ci(n,t){return function(e,i){var o=n.call(E(t)?t:this,e,i);if(E(o)){var r=i[i.length-1];r.push(o)}}}function k(n,t,e,i,o){return i.push(n),rr(t,e,i,o),i.pop()}function m(n,t,e){return function(i,o){let r=n.call(E(e)?e:this,i,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:i.localName;s[a]=r}}}function et(n,t,e){return function(i,o){var r=n.call(E(e)?e:this,i,o);if(E(r)){var s=o[o.length-1],a=E(t)?t:i.localName,l=_i(s,a,[]);l.push(r)}}}const dr=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function ur(n){return n.replace(dr,"")}function It(n){const t=/^\s*(true|1)|(false|0)\s*$/.exec(n);if(t)return E(t[1])||!1}function Ft(n){return mt(Te(n,!1))}function mt(n){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(n);if(t)return parseFloat(t[1])}function Pn(n){return Pe(Te(n,!1))}function Pe(n){const t=/^\s*(\d+)\s*$/.exec(n);if(t)return parseInt(t[1],10)}function $(n){return ur(Te(n,!1))}const cr="http://www.w3.org/1999/xlink";function Dn(n){return n.getAttributeNS(cr,"href")}function hr(n,t){return k({},Lr,n,t)}function Ti(n){return[mt(n.getAttribute("minx")),mt(n.getAttribute("miny")),mt(n.getAttribute("maxx")),mt(n.getAttribute("maxy"))]}function pr(n,t){const e=Ti(n),i=[mt(n.getAttribute("resx")),mt(n.getAttribute("resy"))];return{crs:n.getAttribute("CRS")||n.getAttribute("SRS"),extent:e,res:i}}function fr(n,t){const e=Ti(n);if(!(!E(e[0])||!E(e[1])||!E(e[2])||!E(e[3])))return e}function gr(n,t){const e=parseFloat(n.getAttribute("min")),i=parseFloat(n.getAttribute("max"));return{min:e,max:i}}function mr(n,t){const e=k({},Ur,n,t);if(!E(e))return;const i=e.westBoundLongitude,o=e.southBoundLatitude,r=e.eastBoundLongitude,s=e.northBoundLatitude;if(!(!E(i)||!E(o)||!E(r)||!E(s)))return[i,o,r,s]}function yr(n,t){return k({},Hr,n,t)}function br(n,t){return k({},Mr,n,t)}function vr(n,t){return k({},Nr,n,t)}function wr(n,t){return k({},Ir,n,t)}function xr(n,t){return k({},Vr,n,t)}function Er(n,t){return k([],Br,n,t)}function Sr(n,t){const e=It(n.getAttribute("queryable"));return k({queryable:E(e)?e:!1},Oi,n,t)}function $r(n,t){var e=t[t.length-1];const i=k({},Oi,n,t);if(!E(i))return;let o=It(n.getAttribute("queryable"));E(o)||(o=e.queryable),i.queryable=E(o)?o:!1;let r=Pe(n.getAttribute("cascaded"));E(r)||(r=e.cascaded),i.cascaded=r;let s=It(n.getAttribute("opaque"));E(s)||(s=e.opaque),i.opaque=E(s)?s:!1;let a=It(n.getAttribute("noSubsets"));E(a)||(a=e.noSubsets),i.noSubsets=E(a)?a:!1;let l=mt(n.getAttribute("fixedWidth"));E(l)||(l=e.fixedWidth),i.fixedWidth=l;let d=mt(n.getAttribute("fixedHeight"));E(d)||(d=e.fixedHeight),i.fixedHeight=d;const c=["Style","CRS","AuthorityURL"];for(let p=0,f=c.length;p<f;p++){const g=c[p],y=e[g];if(E(y)){let H=_i(i,g,[]);H=H.concat(y),i[g]=H}}const u=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=u.length;p<f;p++){const g=u[p],y=i[g];if(!E(y)){const H=e[g];i[g]=H}}return i}function _r(n,t){return{name:n.getAttribute("name"),units:n.getAttribute("units"),unitSymbol:n.getAttribute("unitSymbol"),default:n.getAttribute("default"),multipleValues:It(n.getAttribute("multipleValues")),nearestValue:It(n.getAttribute("nearestValue")),current:It(n.getAttribute("current")),values:$(n)}}function yt(n,t){return k({},Xr,n,t)}function Ar(n,t){return k({},kr,n,t)}function Cr(n,t){return k({},jr,n,t)}function Tr(n,t){return k({},Zr,n,t)}function On(n,t){return k({},Fr,n,t)}function Pi(n,t){var e=yt(n,t);if(E(e)){const i=[Pe(n.getAttribute("width")),Pe(n.getAttribute("height"))];return e.size=i,e}}function Pr(n,t){var e=yt(n,t);if(E(e))return e.name=n.getAttribute("name"),e}function Dr(n,t){var e=yt(n,t);if(E(e))return e.type=n.getAttribute("type"),e}function Or(n,t){return k({},zr,n,t)}function Di(n,t){return k([],qr,n,t)}const Z=[null,"http://www.opengis.net/wms"],Rr=j(Z,{Service:m(br),Capability:m(yr)}),Hr=j(Z,{Request:m(Ar),Exception:m(Er),Layer:m(Sr)}),Mr=j(Z,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(Di),OnlineResource:m(Dn),ContactInformation:m(vr),Fees:m($),AccessConstraints:m($),LayerLimit:m(Pn),MaxWidth:m(Pn),MaxHeight:m(Pn)}),Nr=j(Z,{ContactPersonPrimary:m(wr),ContactPosition:m($),ContactAddress:m(xr),ContactVoiceTelephone:m($),ContactFacsimileTelephone:m($),ContactElectronicMailAddress:m($)}),Ir=j(Z,{ContactPerson:m($),ContactOrganization:m($)}),Vr=j(Z,{AddressType:m($),Address:m($),City:m($),StateOrProvince:m($),PostCode:m($),Country:m($)}),Br=j(Z,{Format:Ci($)}),Oi=j(Z,{Name:m($),Title:m($),Abstract:m($),KeywordList:m(Di),CRS:et($),SRS:et($),EX_GeographicBoundingBox:m(mr),LatLonBoundingBox:m(fr),BoundingBox:et(pr),Dimension:et(_r),Attribution:m(hr),AuthorityURL:et(Pr),Identifier:et($),MetadataURL:et(Dr),DataURL:et(yt),FeatureListURL:et(yt),Style:et(Or),MinScaleDenominator:m(Ft),MaxScaleDenominator:m(Ft),ScaleHint:m(gr),Layer:et($r)}),Lr=j(Z,{Title:m($),OnlineResource:m(Dn),LogoURL:m(Pi)}),Ur=j(Z,{westBoundLongitude:m(Ft),eastBoundLongitude:m(Ft),southBoundLatitude:m(Ft),northBoundLatitude:m(Ft)}),kr=j(Z,{GetCapabilities:m(On),GetMap:m(On),GetFeatureInfo:m(On)}),Fr=j(Z,{Format:et($),DCPType:et(Cr)}),jr=j(Z,{HTTP:m(Tr)}),Zr=j(Z,{Get:m(yt),Post:m(yt)}),zr=j(Z,{Name:m($),Title:m($),Abstract:m($),LegendURL:et(Pi),StyleSheetURL:m(yt),StyleURL:m(yt)}),Xr=j(Z,{Format:m($),OnlineResource:m(Dn)}),qr=j(Z,{Keyword:Ci($)});class Yr{constructor(t,e){!e&&typeof window<"u"&&(e=window.DOMParser),this.version=void 0,this._parser=new or(e),this._data=t}data(t){return this._data=t,this}toJSON(t){return t=t||this._data,this.parse(t)}parse(t){return this.readFromDocument(this._parser.toDocument(t))}readFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==se.ELEMENT)return this.readFromNode(e);return null}readFromNode(t){return this.version=t.getAttribute("version"),k({version:this.version},Rr,t,[])||null}}async function Wr(n){let t=new URL(n),e=t.searchParams;e.set("SERVICE","WMS"),e.set("REQUEST","GetCapabilities");let i=t.toString();const o=await fetch(i);if(o.ok){const r=await o.text();return new Yr(r).toJSON()}else throw new Error(`Error: ${o.status}`)}function Rn(n){const t=/\b(?:wms|ows)\b/i,e=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(n)?"TileWMS":e.test(n)?"XYZ":!1}function Gr(n){const e=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(n),i=Rn(n);return!!(n&&e&&i)}function Ri(n){return n.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function Jr(n){try{return JSON.parse(Ri(n)),!!n}catch{return!1}}function Kr(n,t){const e=new URL(n).searchParams;Object.entries(t).forEach(([s,a])=>{typeof a=="object"&&!Array.isArray(a)&&a!==null?Object.keys(a).forEach(l=>{e.set(l,a[l])}):e.set(s,a)});const i=n.split("?")[0],o=e.toString();return`${i}?${o}`}/**!
41
+ * Sortable 1.15.3
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){Fr(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 Fr(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 jr(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 zr(e,t){if(e==null)return{};var n=jr(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 Zr="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),Pi=vt(/firefox/i),le=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 Xr(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=Xr(e))}return null}var Mi=/\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(Mi," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Mi," ")}}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 zt(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 Ni(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,d,c;if(e!==window&&e.parentNode&&e!==ft()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,u=r.right,d=r.height,c=r.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,c=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=zt(o||e),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,c/=g,d/=y,l=s+d,u=a+c)}return{top:s,left:a,bottom:l,right:u,width:c,height:d}}}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(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=zt(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 qr(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 Yr(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 ue;function Bi(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 Wr(){clearTimeout(ue),ue=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 Gr(){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=zt(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(qr(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,d=u.fromRect,c=B(u),p=u.prevFromRect,f=u.prevToRect,g=a.rect,y=zt(u,!0);y&&(c.top-=y.f,c.left-=y.e),u.toRect=c,u.thisAnimationDuration&&Tn(p,c)&&!Tn(d,c)&&(g.top-c.top)/(g.left-c.left)===(d.top-c.top)/(d.left-c.left)&&(l=Kr(g,p,f,o.options)),Tn(c,d)||(u.prevFromRect=d,u.prevToRect=c,l||(l=o.options.animation),o.animate(u,g,c,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=zt(this.el),l=a&&a.a,u=a&&a.d,d=(o.left-r.left)/(l||1),c=(o.top-r.top)/(u||1);i.animatingX=!!d,i.animatingY=!!c,b(i,"transform","translate3d("+d+"px,"+c+"px,0)"),this.forRepaintDummy=Jr(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 Jr(e){return e.offsetWidth}function Kr(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 Xt=[],Pn={initializeByDefault:!0},ce={mount:function(t){for(var n in Pn)Pn.hasOwnProperty(n)&&!(n in t)&&(t[n]=Pn[n]);Xt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Xt.push(t)},pluginEvent:function(t,n,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Xt.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){Xt.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 Xt.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 Xt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(o=r.optionListeners[n].call(t[r.pluginName],i))}),o}};function Qr(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,d=e.oldDraggableIndex,c=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[it],!!t){var y,M=t.options,X="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=d,y.newDraggableIndex=c,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var U=pt(pt({},g),ce.getEventProperties(i,t));for(var rt in U)y[rt]=U[rt];n&&n.dispatchEvent(y),M[X]&&M[X].call(t,y)}}var ts=["evt"],tt=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=zr(i,ts);ce.pluginEvent.bind(v)(t,n,pt({dragEl:h,parentEl:I,ghostEl:w,rootEl:D,nextEl:Bt,lastDownEl:Oe,cloneEl:N,cloneHidden:_t,dragStarted:he,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:qt,oldDraggableIndex:de,newIndex:ot,newDraggableIndex:At,hideGhostForTarget:qi,unhideGhostForTarget:Yi,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){J({sortable:n,name:a,originalEvent:o})}},r))};function J(e){Qr(pt({putSortable:z,cloneEl:N,targetEl:h,rootEl:D,oldIndex:qt,oldDraggableIndex:de,newIndex:ot,newDraggableIndex:At},e))}var h,I,w,D,Bt,Oe,N,_t,qt,ot,de,At,Re,z,Yt=!1,De=!1,Me=[],Vt,ct,On,Rn,Ui,Fi,he,Wt,pe,fe=!1,Ne=!1,Ie,Y,Dn=[],Mn=!1,He=[],Be=typeof document<"u",Ve=Oi,ji=ae||wt?"cssFloat":"float",es=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,d=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 c=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===c)?"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+d>o)?"vertical":"horizontal"},ns=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},is=function(t,n){var i;return Me.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,d){var c=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||c))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,d),s)(a,l,u,d);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},qi=function(){!zi&&w&&b(w,"display","none")},Yi=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 Lt=function(t){if(h){t=t.touches?t.touches[0]:t;var n=is(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)}}},os=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&&!le,emptyInsertThreshold:5};ce.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:es,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)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),bt(this,Gr())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Wt=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,d=o.filter;if(hs(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)&&Oe!==l)){if(qt=lt(l),de=lt(l,o.draggable),typeof d=="function"){if(d.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(d&&(d=d.split(",").some(function(c){if(c=ut(u,c.trim(),i,!1),c)return J({sortable:n,rootEl:c,name:"filter",targetEl:l,fromEl:i,toEl:i}),tt("filter",n,{evt:t}),!0}),d)){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(D=r,h=i,I=h.parentNode,Bt=h.nextSibling,Oe=i,Re=s.group,v.dragged=h,Vt={target:h,clientX:(n||t).clientX,clientY:(n||t).clientY},Ui=Vt.clientX-u.left,Fi=Vt.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(d){Ni(h,d.trim(),Nn)}),A(a,"dragover",Lt),A(a,"mousemove",Lt),A(a,"touchmove",Lt),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||!(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&&Nn(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(D,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Yt=!1,D&&h){tt("dragStarted",this,{evt:n}),this.nativeDraggable&&A(document,"dragover",os);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(ct){this._lastX=ct.clientX,this._lastY=ct.clientY,qi();for(var t=document.elementFromPoint(ct.clientX,ct.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ct.clientX,ct.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:ct.clientX,clientY:ct.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Yi()}},_onTouchMove:function(t){if(Vt){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=w&&zt(w,!0),a=w&&s&&s.a,l=w&&s&&s.d,u=Ve&&Y&&Hi(Y),d=(r.clientX-Vt.clientX+o.x)/(a||1)+(u?u[0]-Dn[0]:0)/(a||1),c=(r.clientY-Vt.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+=d-(On||0),s.f+=c-(Rn||0)):s={a:1,b:0,c:0,d:1,e:d,f:c};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=d,Rn=c,ct=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:D,n=B(h,!0,Ve,!0,t),i=this.options;if(Ve){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(),Dn=Hi(Y)}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||D.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),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,d=Re===l,c=a.sort,p=z||u,f,g=this,y=!1;if(Mn)return;function M(Se,ua){tt(Se,g,pt({evt:t,isOwner:d,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:c,fromSortable:p,target:i,completed:U,onMove:function(bo,ca){return Le(D,n,h,o,bo,B(bo),t,ca)},changed:rt},ua))}function X(){M("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function U(Se){return M("dragOverCompleted",{insertion:Se}),Se&&(d?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(){M("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===n&&!i.animated)&&(Wt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[it]._isOutsideThisEl(t.target),!Se&&Lt(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),M("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&&(d?c||(s=I!==D):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),M("dragOverValid"),v.eventCanceled)return y;if(s)return I=D,X(),this._hideClone(),M("revert"),v.eventCanceled||(Bt?D.insertBefore(h,Bt):D.appendChild(h)),U(!0);var K=Cn(n,a.draggable);if(!K||ls(t,f,this)&&!K.animated){if(K===h)return U(!1);if(K&&n===t.target&&(i=K),i&&(r=B(i)),Le(D,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&&as(t,f,this)){var dt=Zt(n,0,a,!0);if(dt===h)return U(!1);if(i=dt,r=B(i),Le(D,n,h,o,i,r,t,!1)!==!1)return X(),n.insertBefore(h,dt),I=n,rt(),U(!0)}else if(i.parentNode===n){r=B(i);var P=0,W,ht=h.parentNode!==n,G=!ns(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),we=f?"top":"left",Pt=Ii(i,"top","top")||Ii(h,"top","top"),Ee=Pt?Pt.scrollTop:void 0;Wt!==i&&(W=r[we],fe=!1,Ne=!G&&a.invertSwap||ht),P=us(t,i,r,f,G?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ne,Wt===i);var Et;if(P!==0){var kt=lt(h);do kt-=P,Et=I.children[kt];while(Et&&(b(Et,"display")==="none"||Et===w))}if(P===0||Et===i)return U(!1);Wt=i,pe=P;var xe=i.nextElementSibling,Ot=!1;Ot=P===1;var cn=Le(D,n,h,o,i,r,t,Ot);if(cn!==!1)return(cn===1||cn===-1)&&(Ot=cn===1),Mn=!0,setTimeout(ss,30),X(),Ot&&!xe?n.appendChild(h):i.parentNode.insertBefore(h,Ot?xe:i),Pt&&Vi(Pt,0,Ee-Pt.scrollTop),I=h.parentNode,W!==void 0&&!Ne&&(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",Lt),S(document,"mousemove",Lt),S(document,"touchmove",Lt)},_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,Ne=!1,fe=!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(),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),(D===I||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),h&&(this.nativeDraggable&&S(h,"dragend",this),Nn(h),h.style["will-change"]="",he&&!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}),D!==I?(ot>=0&&(J({rootEl:I,name:"add",toEl:I,fromEl:D,originalEvent:t}),J({sortable:this,name:"remove",toEl:I,originalEvent:t}),J({rootEl:I,name:"sort",toEl:I,fromEl:D,originalEvent:t}),J({sortable:this,name:"sort",toEl:I,originalEvent:t})),z&&z.save()):ot!==qt&&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=qt,At=de),J({sortable:this,name:"end",toEl:I,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){tt("nulling",this),D=h=I=w=Bt=N=Oe=_t=Vt=ct=he=ot=At=qt=de=Wt=pe=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),rs(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)||ds(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=ce.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(),Me.splice(Me.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==D&&!this.options.group.revertClone?D.insertBefore(N,h):Bt?D.insertBefore(N,Bt):D.appendChild(N),this.options.group.revertClone&&this.animate(h,N),b(N,"display",""),_t=!1}}};function rs(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],d=u.options.onMove,c;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),d&&(c=d.call(u,l,s)),c}function Nn(e){e.draggable=!1}function ss(){Mn=!1}function as(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 ls(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 us(e,t,n,i,o,r,s,a){var l=i?e.clientY:e.clientX,u=i?n.height:n.width,d=i?n.top:n.left,c=i?n.bottom:n.right,p=!1;if(!s){if(a&&Ie<u*o){if(!fe&&(pe===1?l>d+u*r/2:l<c-u*r/2)&&(fe=!0),fe)p=!0;else if(pe===1?l<d+Ie:l>c-Ie)return-pe}else if(l>d+u*(1-o)/2&&l<c-u*(1-o)/2)return cs(t)}return p=p||s,p&&(l<d+u*r/2||l>c-u*r/2)?l>d+u/2?1:-1:0}function cs(e){return lt(h)<lt(e)?1:-1}function ds(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 hs(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:Ni,is:function(t,n){return!!ut(t,n,t,!1)},extend:Yr,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)),ce.mount(i)})},v.create=function(e,t){return new v(e,t)},v.version=Zr;var V=[],ge,Hn,Bn=!1,Vn,Ln,Ue,me;function ps(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(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(),Wr()},nulling:function(){Ue=Hn=ge=Bn=me=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||ae||wt||le){kn(n,this.options,a,i);var l=$t(a,!0);Bn&&(!me||r!==Vn||s!==Ln)&&(me&&Wi(),me=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(me)}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,d;Hn!==n&&(Hn=n,Fe(),ge=t.scroll,d=t.scrollFn,ge===!0&&(ge=$t(n,!0)));var c=0,p=ge;do{var f=p,g=B(f),y=g.top,M=g.bottom,X=g.left,U=g.right,rt=g.width,K=g.height,dt=void 0,P=void 0,W=f.scrollWidth,ht=f.scrollHeight,G=b(f),we=f.scrollLeft,Pt=f.scrollTop;f===l?(dt=rt<W&&(G.overflowX==="auto"||G.overflowX==="scroll"||G.overflowX==="visible"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"||G.overflowY==="visible")):(dt=rt<W&&(G.overflowX==="auto"||G.overflowX==="scroll"),P=K<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"));var Ee=dt&&(Math.abs(U-o)<=s&&we+rt<W)-(Math.abs(X-o)<=s&&!!we),Et=P&&(Math.abs(M-r)<=s&&Pt+K<ht)-(Math.abs(y-r)<=s&&!!Pt);if(!V[c])for(var kt=0;kt<=c;kt++)V[kt]||(V[kt]={});(V[c].vx!=Ee||V[c].vy!=Et||V[c].el!==f)&&(V[c].el=f,V[c].vx=Ee,V[c].vy=Et,clearInterval(V[c].pid),(Ee!=0||Et!=0)&&(u=!0,V[c].pid=setInterval((function(){i&&this.layer===0&&v.active._onTouchMove(Ue);var xe=V[this.layer].vy?V[this.layer].vy*a:0,Ot=V[this.layer].vx?V[this.layer].vx*a:0;typeof d=="function"&&d.call(v.dragged.parentNode[it],Ot,xe,e,Ue,V[this.layer].el)!=="continue"||Vi(V[this.layer].el,Ot,xe)}).bind({layer:c}),24))),c++}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 d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,c=document.elementFromPoint(d.clientX,d.clientY);l(),u&&!u.el.contains(c)&&(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 ps),v.mount(Fn,Un);const fs=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},gs=(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),d=l.find(y=>y.get(o)===u),c=r.dataset.layer,p=l.find(y=>y.get(o)==c);let f,g;for(f=0;f<l.length;f++)if(l[f]==d){i.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?i.insertAt(g,d):i.insertAt(g+1,d);break}t.requestUpdate()};function ms(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=fs(s),onMove:s=>{r=s.related},onEnd:s=>gs(s,i,o,t,n,r)})}function ys(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 bs(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 vs(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 ws(e,t){var r,s,a,l,u;if(!t)return null;let n={},i="updateStyleVariables"in e?(r=e.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&i)n=i;else if((l=(a=e.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const d=new URL(e.getSource().getTileUrlFunction()([0,0,0]));n=Object.fromEntries(d.searchParams.entries())}else return null;const o=Ki(((u=t.schema)==null?void 0:u.properties)||t.schema,n);return Object.keys(o).length?o:null}const Es=(e,t)=>e==null?void 0:e.filter(n=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(n)),xs=(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}),Ss=(e,t)=>x`
46
- <button slot="${e}-icon" class="icon">${t?e:T}</button>
47
- `,$s=e=>x`
45
+ */function Hi(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,i)}return e}function pt(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Hi(Object(e),!0).forEach(function(i){Qr(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Hi(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function De(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?De=function(t){return typeof t}:De=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(n)}function Qr(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function bt(){return bt=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},bt.apply(this,arguments)}function ts(n,t){if(n==null)return{};var e={},i=Object.keys(n),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(e[o]=n[o]);return e}function es(n,t){if(n==null)return{};var e=ts(n,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var ns="1.15.3";function vt(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var wt=vt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ae=vt(/Edge/i),Mi=vt(/firefox/i),le=vt(/safari/i)&&!vt(/chrome/i)&&!vt(/android/i),Ni=vt(/iP(ad|od|hone)/i),Ii=vt(/chrome/i)&&vt(/android/i),Vi={capture:!1,passive:!1};function A(n,t,e){n.addEventListener(t,e,!wt&&Vi)}function S(n,t,e){n.removeEventListener(t,e,!wt&&Vi)}function Oe(n,t){if(t){if(t[0]===">"&&(t=t.substring(1)),n)try{if(n.matches)return n.matches(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t)}catch{return!1}return!1}}function Bi(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function dt(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&Oe(n,t):Oe(n,t))||i&&n===e)return n;if(n===e)break}while(n=Bi(n))}return null}var Li=/\s+/g;function ot(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(Li," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Li," ")}}function b(n,t,e){var i=n&&n.style;if(i){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(e=n.currentStyle),t===void 0?e:e[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=e+(typeof e=="string"?"":"px")}}function jt(n,t){var e="";if(typeof n=="string")e=n;else do{var i=b(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function Ui(n,t,e){if(n){var i=n.getElementsByTagName(t),o=0,r=i.length;if(e)for(;o<r;o++)e(i[o],o);return i}return[]}function ft(){var n=document.scrollingElement;return n||document.documentElement}function B(n,t,e,i,o){if(!(!n.getBoundingClientRect&&n!==window)){var r,s,a,l,d,c,u;if(n!==window&&n.parentNode&&n!==ft()?(r=n.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,d=r.right,c=r.height,u=r.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||e)&&n!==window&&(o=o||n.parentNode,!wt))do if(o&&o.getBoundingClientRect&&(b(o,"transform")!=="none"||e&&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,d=a+r.width;break}while(o=o.parentNode);if(i&&n!==window){var f=jt(o||n),g=f&&f.a,y=f&&f.d;f&&(s/=y,a/=g,u/=g,c/=y,l=s+c,d=a+u)}return{top:s,left:a,bottom:l,right:d,width:u,height:c}}}function ki(n,t,e){for(var i=$t(n,!0),o=B(n)[t];i;){var r=B(i)[e],s=void 0;if(s=o>=r,!s)return i;if(i===ft())break;i=$t(i,!1)}return!1}function Zt(n,t,e,i){for(var o=0,r=0,s=n.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==v.ghost&&(i||s[r]!==v.dragged)&&dt(s[r],e.draggable,n,!1)){if(o===t)return s[r];o++}r++}return null}function Hn(n,t){for(var e=n.lastElementChild;e&&(e===v.ghost||b(e,"display")==="none"||t&&!Oe(e,t));)e=e.previousElementSibling;return e||null}function lt(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==v.clone&&(!t||Oe(n,t))&&e++;return e}function Fi(n){var t=0,e=0,i=ft();if(n)do{var o=jt(n),r=o.a,s=o.d;t+=n.scrollLeft*r,e+=n.scrollTop*s}while(n!==i&&(n=n.parentNode));return[t,e]}function is(n,t){for(var e in n)if(n.hasOwnProperty(e)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===n[e][i])return Number(e)}return-1}function $t(n,t){if(!n||!n.getBoundingClientRect)return ft();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=b(e);if(e.clientWidth<e.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return ft();if(i||t)return e;i=!0}}while(e=e.parentNode);return ft()}function os(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Mn(n,t){return Math.round(n.top)===Math.round(t.top)&&Math.round(n.left)===Math.round(t.left)&&Math.round(n.height)===Math.round(t.height)&&Math.round(n.width)===Math.round(t.width)}var de;function ji(n,t){return function(){if(!de){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),de=setTimeout(function(){de=void 0},t)}}}function rs(){clearTimeout(de),de=void 0}function Zi(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function zi(n){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(n).cloneNode(!0):e?e(n).clone(!0)[0]:n.cloneNode(!0)}function Xi(n,t,e){var i={};return Array.from(n.children).forEach(function(o){var r,s,a,l;if(!(!dt(o,t.draggable,n,!1)||o.animated||o===e)){var d=B(o);i.left=Math.min((r=i.left)!==null&&r!==void 0?r:1/0,d.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,d.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,d.right),i.bottom=Math.max((l=i.bottom)!==null&&l!==void 0?l:-1/0,d.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var nt="Sortable"+new Date().getTime();function ss(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(o){if(!(b(o,"display")==="none"||o===v.ghost)){n.push({target:o,rect:B(o)});var r=pt({},n[n.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){n.push(i)},removeAnimationState:function(i){n.splice(is(n,{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;n.forEach(function(a){var l=0,d=a.target,c=d.fromRect,u=B(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,y=jt(d,!0);y&&(u.top-=y.f,u.left-=y.e),d.toRect=u,d.thisAnimationDuration&&Mn(p,u)&&!Mn(c,u)&&(g.top-u.top)/(g.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=ls(g,p,f,o.options)),Mn(u,c)||(d.prevFromRect=c,d.prevToRect=u,l||(l=o.options.animation),o.animate(d,g,u,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),n=[]},animate:function(i,o,r,s){if(s){b(i,"transition",""),b(i,"transform","");var a=jt(this.el),l=a&&a.a,d=a&&a.d,c=(o.left-r.left)/(l||1),u=(o.top-r.top)/(d||1);i.animatingX=!!c,i.animatingY=!!u,b(i,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=as(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 as(n){return n.offsetWidth}function ls(n,t,e,i){return Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*i.animation}var zt=[],Nn={initializeByDefault:!0},ue={mount:function(t){for(var e in Nn)Nn.hasOwnProperty(e)&&!(e in t)&&(t[e]=Nn[e]);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,e,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";zt.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](pt({sortable:e},i)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](pt({sortable:e},i)))})},initializePlugins:function(t,e,i,o){zt.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,e,t.options);d.sortable=t,d.options=t.options,t[l]=d,bt(i,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,e){var i={};return zt.forEach(function(o){typeof o.eventProperties=="function"&&bt(i,o.eventProperties.call(e[o.pluginName],t))}),i},modifyOption:function(t,e,i){var o;return zt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],i))}),o}};function ds(n){var t=n.sortable,e=n.rootEl,i=n.name,o=n.targetEl,r=n.cloneEl,s=n.toEl,a=n.fromEl,l=n.oldIndex,d=n.newIndex,c=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,f=n.putSortable,g=n.extraEventProperties;if(t=t||e&&e[nt],!!t){var y,H=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||e,y.from=a||e,y.item=o||e,y.clone=r,y.oldIndex=l,y.newIndex=d,y.oldDraggableIndex=c,y.newDraggableIndex=u,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var F=pt(pt({},g),ue.getEventProperties(i,t));for(var st in F)y[st]=F[st];e&&e.dispatchEvent(y),H[q]&&H[q].call(t,y)}}var us=["evt"],it=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=es(i,us);ue.pluginEvent.bind(v)(t,e,pt({dragEl:h,parentEl:N,ghostEl:x,rootEl:R,nextEl:Vt,lastDownEl:Re,cloneEl:M,cloneHidden:_t,dragStarted:he,putSortable:z,activeSortable:v.active,originalEvent:o,oldIndex:Xt,oldDraggableIndex:ce,newIndex:rt,newDraggableIndex:At,hideGhostForTarget:Qi,unhideGhostForTarget:to,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){Q({sortable:e,name:a,originalEvent:o})}},r))};function Q(n){ds(pt({putSortable:z,cloneEl:M,targetEl:h,rootEl:R,oldIndex:Xt,oldDraggableIndex:ce,newIndex:rt,newDraggableIndex:At},n))}var h,N,x,R,Vt,Re,M,_t,Xt,rt,ce,At,He,z,qt=!1,Me=!1,Ne=[],Bt,ut,In,Vn,qi,Yi,he,Yt,pe,fe=!1,Ie=!1,Ve,Y,Bn=[],Ln=!1,Be=[],Le=typeof document<"u",Ue=Ni,Wi=ae||wt?"cssFloat":"float",cs=Le&&!Ii&&!Ni&&"draggable"in document.createElement("div"),Gi=function(){if(Le){if(wt)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Ji=function(t,e){var i=b(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=Zt(t,0,e),s=Zt(t,1,e),a=r&&b(r),l=s&&b(s),d=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 u=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=o&&i[Wi]==="none"||s&&i[Wi]==="none"&&d+c>o)?"vertical":"horizontal"},hs=function(t,e,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,a=i?e.left:e.top,l=i?e.right:e.bottom,d=i?e.width:e.height;return o===a||r===l||o+s/2===a+d/2},ps=function(t,e){var i;return Ne.some(function(o){var r=o[nt].options.emptyInsertThreshold;if(!(!r||Hn(o))){var s=B(o),a=t>=s.left-r&&t<=s.right+r,l=e>=s.top-r&&e<=s.bottom+r;if(a&&l)return i=o}}),i},Ki=function(t){function e(r,s){return function(a,l,d,c){var u=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return e(r(a,l,d,c),s)(a,l,d,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||De(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=e(o.pull,!0),i.checkPut=e(o.put),i.revertClone=o.revertClone,t.group=i},Qi=function(){!Gi&&x&&b(x,"display","none")},to=function(){!Gi&&x&&b(x,"display","")};Le&&!Ii&&document.addEventListener("click",function(n){if(Me)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Me=!1,!1},!0);var Lt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=ps(t.clientX,t.clientY);if(e){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[nt]._onDragOver(i)}}},fs=function(t){h&&h.parentNode[nt]._isOutsideThisEl(t.target)};function v(n,t){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=t=bt({},t),n[nt]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ji(n,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};ue.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Ki(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:cs,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?A(n,"pointerdown",this._onTapStart):(A(n,"mousedown",this._onTapStart),A(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(n,"dragover",this),A(n,"dragenter",this)),Ne.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),bt(this,ss())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Yt=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,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,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(Es(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&le&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=dt(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)){Q({sortable:e,rootEl:d,name:"filter",targetEl:l,toEl:i,fromEl:i}),it("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=dt(d,u.trim(),i,!1),u)return Q({sortable:e,rootEl:u,name:"filter",targetEl:l,fromEl:i,toEl:i}),it("filter",e,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!dt(d,o.handle,i,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,i){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(i&&!h&&i.parentNode===r){var d=B(i);if(R=r,h=i,N=h.parentNode,Vt=h.nextSibling,Re=i,He=s.group,v.dragged=h,Bt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},qi=Bt.clientX-d.left,Yi=Bt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(it("delayEnded",o,{evt:t}),v.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Mi&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,e),Q({sortable:o,name:"choose",originalEvent:t}),ot(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){Ui(h,c.trim(),Un)}),A(a,"dragover",Lt),A(a,"mousemove",Lt),A(a,"touchmove",Lt),A(a,"mouseup",o._onDrop),A(a,"touchend",o._onDrop),A(a,"touchcancel",o._onDrop),Mi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),it("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!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 e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Un(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,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):e?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(h,"dragend",this),A(R,"dragstart",this._onDragStart));try{document.selection?Fe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(qt=!1,R&&h){it("dragStarted",this,{evt:e}),this.nativeDraggable&&A(document,"dragover",fs);var i=this.options;!t&&ot(h,i.dragClass,!1),ot(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),Q({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,Qi();for(var t=document.elementFromPoint(ut.clientX,ut.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ut.clientX,ut.clientY),t!==e);)e=t;if(h.parentNode[nt]._isOutsideThisEl(t),e)do{if(e[nt]){var i=void 0;if(i=e[nt]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=Bi(e));to()}},_onTouchMove:function(t){if(Bt){var e=this.options,i=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=x&&jt(x,!0),a=x&&s&&s.a,l=x&&s&&s.d,d=Ue&&Y&&Fi(Y),c=(r.clientX-Bt.clientX+o.x)/(a||1)+(d?d[0]-Bn[0]:0)/(a||1),u=(r.clientY-Bt.clientY+o.y)/(l||1)+(d?d[1]-Bn[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(x){s?(s.e+=c-(In||0),s.f+=u-(Vn||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");b(x,"webkitTransform",p),b(x,"mozTransform",p),b(x,"msTransform",p),b(x,"transform",p),In=c,Vn=u,ut=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!x){var t=this.options.fallbackOnBody?document.body:R,e=B(h,!0,Ue,!0,t),i=this.options;if(Ue){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()),e.top+=Y.scrollTop,e.left+=Y.scrollLeft):Y=ft(),Bn=Fi(Y)}x=h.cloneNode(!0),ot(x,i.ghostClass,!1),ot(x,i.fallbackClass,!0),ot(x,i.dragClass,!0),b(x,"transition",""),b(x,"transform",""),b(x,"box-sizing","border-box"),b(x,"margin",0),b(x,"top",e.top),b(x,"left",e.left),b(x,"width",e.width),b(x,"height",e.height),b(x,"opacity","0.8"),b(x,"position",Ue?"absolute":"fixed"),b(x,"zIndex","100000"),b(x,"pointerEvents","none"),v.ghost=x,t.appendChild(x),b(x,"transform-origin",qi/parseInt(x.style.width)*100+"% "+Yi/parseInt(x.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,o=t.dataTransfer,r=i.options;if(it("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}it("setupClone",this),v.eventCanceled||(M=zi(h),M.removeAttribute("id"),M.draggable=!1,M.style["will-change"]="",this._hideClone(),ot(M,this.options.chosenClass,!1),v.clone=M),i.cloneId=Fe(function(){it("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||R.insertBefore(M,h),i._hideClone(),Q({sortable:i,name:"clone"}))}),!e&&ot(h,r.dragClass,!0),e?(Me=!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)")),qt=!0,i._dragStartId=Fe(i._dragStarted.bind(i,e,t)),A(document,"selectstart",i),he=!0,le&&b(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,o,r,s,a=this.options,l=a.group,d=v.active,c=He===l,u=a.sort,p=z||d,f,g=this,y=!1;if(Ln)return;function H($e,va){it($e,g,pt({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:i,completed:F,onMove:function(Ao,wa){return ke(R,e,h,o,Ao,B(Ao),t,wa)},changed:st},va))}function q(){H("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function F($e){return H("dragOverCompleted",{insertion:$e}),$e&&(c?d._hideClone():d._showClone(g),g!==p&&(ot(h,z?z.options.ghostClass:d.options.ghostClass,!1),ot(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(){H("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===e&&!i.animated)&&(Yt=null),!a.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[nt]._isOutsideThisEl(t.target),!$e&&Lt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function st(){rt=lt(h),At=lt(h,a.draggable),Q({sortable:g,name:"change",toEl:e,newIndex:rt,newDraggableIndex:At,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=dt(i,a.draggable,e,!0),H("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,d&&!a.disabled&&(c?u||(s=N!==R):z===this||(this.lastPutMode=He.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,i)==="vertical",o=B(h),H("dragOverValid"),v.eventCanceled)return y;if(s)return N=R,q(),this._hideClone(),H("revert"),v.eventCanceled||(Vt?R.insertBefore(h,Vt):R.appendChild(h)),F(!0);var tt=Hn(e,a.draggable);if(!tt||bs(t,f,this)&&!tt.animated){if(tt===h)return F(!1);if(tt&&e===t.target&&(i=tt),i&&(r=B(i)),ke(R,e,h,o,i,r,t,!!i)!==!1)return q(),tt&&tt.nextSibling?e.insertBefore(h,tt.nextSibling):e.appendChild(h),N=e,st(),F(!0)}else if(tt&&ys(t,f,this)){var ct=Zt(e,0,a,!0);if(ct===h)return F(!1);if(i=ct,r=B(i),ke(R,e,h,o,i,r,t,!1)!==!1)return q(),e.insertBefore(h,ct),N=e,st(),F(!0)}else if(i.parentNode===e){r=B(i);var D=0,W,ht=h.parentNode!==e,G=!hs(h.animated&&h.toRect||o,i.animated&&i.toRect||r,f),xe=f?"top":"left",Pt=ki(i,"top","top")||ki(h,"top","top"),Ee=Pt?Pt.scrollTop:void 0;Yt!==i&&(W=r[xe],fe=!1,Ie=!G&&a.invertSwap||ht),D=vs(t,i,r,f,G?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ie,Yt===i);var xt;if(D!==0){var Ut=lt(h);do Ut-=D,xt=N.children[Ut];while(xt&&(b(xt,"display")==="none"||xt===x))}if(D===0||xt===i)return F(!1);Yt=i,pe=D;var Se=i.nextElementSibling,Dt=!1;Dt=D===1;var gn=ke(R,e,h,o,i,r,t,Dt);if(gn!==!1)return(gn===1||gn===-1)&&(Dt=gn===1),Ln=!0,setTimeout(ms,30),q(),Dt&&!Se?e.appendChild(h):i.parentNode.insertBefore(h,Dt?Se:i),Pt&&Zi(Pt,0,Ee-Pt.scrollTop),N=h.parentNode,W!==void 0&&!Ie&&(Ve=Math.abs(W-B(i)[xe])),st(),F(!0)}if(e.contains(h))return F(!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",Lt),S(document,"mousemove",Lt),S(document,"touchmove",Lt)},_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 e=this.el,i=this.options;if(rt=lt(h),At=lt(h,i.draggable),it("drop",this,{evt:t}),N=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),kn(this.cloneId),kn(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(e,"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()),x&&x.parentNode&&x.parentNode.removeChild(x),(R===N||z&&z.lastPutMode!=="clone")&&M&&M.parentNode&&M.parentNode.removeChild(M),h&&(this.nativeDraggable&&S(h,"dragend",this),Un(h),h.style["will-change"]="",he&&!qt&&ot(h,z?z.options.ghostClass:this.options.ghostClass,!1),ot(h,this.options.chosenClass,!1),Q({sortable:this,name:"unchoose",toEl:N,newIndex:null,newDraggableIndex:null,originalEvent:t}),R!==N?(rt>=0&&(Q({rootEl:N,name:"add",toEl:N,fromEl:R,originalEvent:t}),Q({sortable:this,name:"remove",toEl:N,originalEvent:t}),Q({rootEl:N,name:"sort",toEl:N,fromEl:R,originalEvent:t}),Q({sortable:this,name:"sort",toEl:N,originalEvent:t})),z&&z.save()):rt!==Xt&&rt>=0&&(Q({sortable:this,name:"update",toEl:N,originalEvent:t}),Q({sortable:this,name:"sort",toEl:N,originalEvent:t})),v.active&&((rt==null||rt===-1)&&(rt=Xt,At=ce),Q({sortable:this,name:"end",toEl:N,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){it("nulling",this),R=h=N=x=Vt=M=Re=_t=Bt=ut=he=rt=At=Xt=ce=Yt=pe=z=He=v.dragged=v.ghost=v.clone=v.active=null,Be.forEach(function(t){t.checked=!0}),Be.length=In=Vn=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),gs(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)e=i[o],dt(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||xs(e));return t},sort:function(t,e){var i={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];dt(a,this.options.draggable,o,!1)&&(i[r]=a)},this),e&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return dt(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var o=ue.modifyOption(this,t,e);typeof o<"u"?i[t]=o:i[t]=e,t==="group"&&Ki(i)},destroy:function(){it("destroy",this);var t=this.el;t[nt]=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(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ne.splice(Ne.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_t){if(it("hideClone",this),v.eventCanceled)return;b(M,"display","none"),this.options.removeCloneOnHide&&M.parentNode&&M.parentNode.removeChild(M),_t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(it("showClone",this),v.eventCanceled)return;h.parentNode==R&&!this.options.group.revertClone?R.insertBefore(M,h):Vt?R.insertBefore(M,Vt):R.appendChild(M),this.options.group.revertClone&&this.animate(h,M),b(M,"display",""),_t=!1}}};function gs(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function ke(n,t,e,i,o,r,s,a){var l,d=n[nt],c=d.options.onMove,u;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=n,l.dragged=e,l.draggedRect=i,l.related=o||t,l.relatedRect=r||B(t),l.willInsertAfter=a,l.originalEvent=s,n.dispatchEvent(l),c&&(u=c.call(d,l,s)),u}function Un(n){n.draggable=!1}function ms(){Ln=!1}function ys(n,t,e){var i=B(Zt(e.el,0,e.options,!0)),o=Xi(e.el,e.options,x),r=10;return t?n.clientX<o.left-r||n.clientY<i.top&&n.clientX<i.right:n.clientY<o.top-r||n.clientY<i.bottom&&n.clientX<i.left}function bs(n,t,e){var i=B(Hn(e.el,e.options.draggable)),o=Xi(e.el,e.options,x),r=10;return t?n.clientX>o.right+r||n.clientY>i.bottom&&n.clientX>i.left:n.clientY>o.bottom+r||n.clientX>i.right&&n.clientY>i.top}function vs(n,t,e,i,o,r,s,a){var l=i?n.clientY:n.clientX,d=i?e.height:e.width,c=i?e.top:e.left,u=i?e.bottom:e.right,p=!1;if(!s){if(a&&Ve<d*o){if(!fe&&(pe===1?l>c+d*r/2:l<u-d*r/2)&&(fe=!0),fe)p=!0;else if(pe===1?l<c+Ve:l>u-Ve)return-pe}else if(l>c+d*(1-o)/2&&l<u-d*(1-o)/2)return ws(t)}return p=p||s,p&&(l<c+d*r/2||l>u-d*r/2)?l>c+d/2?1:-1:0}function ws(n){return lt(h)<lt(n)?1:-1}function xs(n){for(var t=n.tagName+n.className+n.src+n.href+n.textContent,e=t.length,i=0;e--;)i+=t.charCodeAt(e);return i.toString(36)}function Es(n){Be.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&Be.push(i)}}function Fe(n){return setTimeout(n,0)}function kn(n){return clearTimeout(n)}Le&&A(document,"touchmove",function(n){(v.active||qt)&&n.cancelable&&n.preventDefault()}),v.utils={on:A,off:S,css:b,find:Ui,is:function(t,e){return!!dt(t,e,t,!1)},extend:os,throttle:ji,closest:dt,toggleClass:ot,clone:zi,index:lt,nextTick:Fe,cancelNextTick:kn,detectDirection:Ji,getChild:Zt,expando:nt},v.get=function(n){return n[nt]},v.mount=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];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(n,t){return new v(n,t)},v.version=ns;var L=[],ge,Fn,jn=!1,Zn,zn,je,me;function Ss(){function n(){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 n.prototype={dragStarted:function(e){var i=e.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(e){var i=e.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)),eo(),Ze(),rs()},nulling:function(){je=Fn=ge=jn=me=Zn=zn=null,L.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){var o=this,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,s);if(je=e,i||this.options.forceAutoScrollFallback||ae||wt||le){Xn(e,this.options,a,i);var l=$t(a,!0);jn&&(!me||r!==Zn||s!==zn)&&(me&&eo(),me=setInterval(function(){var d=$t(document.elementFromPoint(r,s),!0);d!==l&&(l=d,Ze()),Xn(e,o.options,d,i)},10),Zn=r,zn=s)}else{if(!this.options.bubbleScroll||$t(a,!0)===ft()){Ze();return}Xn(e,this.options,$t(a,!1),!1)}}},bt(n,{pluginName:"scroll",initializeByDefault:!0})}function Ze(){L.forEach(function(n){clearInterval(n.pid)}),L=[]}function eo(){clearInterval(me)}var Xn=ji(function(n,t,e,i){if(t.scroll){var o=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=ft(),d=!1,c;Fn!==e&&(Fn=e,Ze(),ge=t.scroll,c=t.scrollFn,ge===!0&&(ge=$t(e,!0)));var u=0,p=ge;do{var f=p,g=B(f),y=g.top,H=g.bottom,q=g.left,F=g.right,st=g.width,tt=g.height,ct=void 0,D=void 0,W=f.scrollWidth,ht=f.scrollHeight,G=b(f),xe=f.scrollLeft,Pt=f.scrollTop;f===l?(ct=st<W&&(G.overflowX==="auto"||G.overflowX==="scroll"||G.overflowX==="visible"),D=tt<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"||G.overflowY==="visible")):(ct=st<W&&(G.overflowX==="auto"||G.overflowX==="scroll"),D=tt<ht&&(G.overflowY==="auto"||G.overflowY==="scroll"));var Ee=ct&&(Math.abs(F-o)<=s&&xe+st<W)-(Math.abs(q-o)<=s&&!!xe),xt=D&&(Math.abs(H-r)<=s&&Pt+tt<ht)-(Math.abs(y-r)<=s&&!!Pt);if(!L[u])for(var Ut=0;Ut<=u;Ut++)L[Ut]||(L[Ut]={});(L[u].vx!=Ee||L[u].vy!=xt||L[u].el!==f)&&(L[u].el=f,L[u].vx=Ee,L[u].vy=xt,clearInterval(L[u].pid),(Ee!=0||xt!=0)&&(d=!0,L[u].pid=setInterval((function(){i&&this.layer===0&&v.active._onTouchMove(je);var Se=L[this.layer].vy?L[this.layer].vy*a:0,Dt=L[this.layer].vx?L[this.layer].vx*a:0;typeof c=="function"&&c.call(v.dragged.parentNode[nt],Dt,Se,n,je,L[this.layer].el)!=="continue"||Zi(L[this.layer].el,Dt,Se)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=$t(p,!1)));jn=d}},30),no=function(t){var e=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var d=i||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function qn(){}qn.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=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(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:no},bt(qn,{pluginName:"revertOnSpill"});function Yn(){}Yn.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:no},bt(Yn,{pluginName:"removeOnSpill"}),v.mount(new Ss),v.mount(Yn,qn);const $s=n=>{const t=n.item;let e=Array.prototype.slice.call(t.parentNode.childNodes);return e=e.filter(i=>i.nodeType!=Node.ELEMENT_NODE||!i.classList.contains("sortable-fallback")),e},_s=(n,t,e,i,o,r)=>{const a=n.item.parentNode;for(const y of e)a.appendChild(y);if(n.oldIndex==n.newIndex)return;const l=i.getArray(),d=n.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(y=>y.get(o)===d),u=r.dataset.layer,p=l.find(y=>y.get(o)==u);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){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 As(n,t,e,i){let o=[],r=null;n._sortable=v.create(n,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=$s(s),onMove:s=>{r=s.related},onEnd:s=>_s(s,i,o,t,e,r)})}function Cs(n,t,e,i){const o=n.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(e)||(s.set(e,`layer ${a}`),r=!0),r&&i.requestUpdate()})}function Wn(n,t,e){let i=[];const o=(r,s,a)=>{i=[...i,...r.filter(d=>d.get(s)===a)];const l=r.filter(d=>d.getLayers);return l.length>0&&l.forEach(d=>o(d.getLayers().getArray(),s,a)),i};return o(n,t,e),i}function Ts(n,t,e){if(!n||!t)return!1;if(!io(n,e))return!0;const i=n.get("minZoom"),o=n.get("maxZoom"),r=t.getView().getZoom();return r>i&&r<o}function io(n,t){const e=n.get("minZoom"),i=n.get("maxZoom");return!!(t&&(e!==-1/0||i!==1/0))}function Ps(n,t){var o,r,s;return!n||!t?void 0:n.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(n.getSource?(r=n.getSource())==null?void 0:r.ol_uid:void 0))?"draw":n.declutter_!==void 0?"vector":"raster"}function oo(n,t){var i;let e={};for(const o in n){const r=n[o].type;if(r&&r!=="object")e[o]=r==="number"?Number(t[o]):t[o];else if(typeof n[o]=="object"&&((i=n[o])!=null&&i.properties)){const s=oo(n[o].properties,t);Object.keys(s).length>0&&(e[o]=s)}}return e}function Ds(n,t){var r,s,a,l,d;if(!t)return null;let e={},i="updateStyleVariables"in n?(r=n.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&i)e=i;else if((l=(a=n.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const c=new URL(n.getSource().getTileUrlFunction()([0,0,0]));e=Object.fromEntries(c.searchParams.entries())}else return null;const o=oo(((d=t.schema)==null?void 0:d.properties)||t.schema,e);return Object.keys(o).length?o:null}const Os=(n,t)=>n==null?void 0:n.filter(e=>["remove","sort"].filter(i=>t!=null&&t.get("layerControlDisable")?i!=="sort":!0).includes(e)),Rs=(n,t)=>n==null?void 0:n.filter(e=>{let i=!0;return["remove","sort"].includes(e)&&(i=!1),e==="info"&&(i=t.get("description")),e==="config"&&(i=t.get("layerConfig")),e==="datetime"&&(i=t.get("layerDatetime")),i}),Hs=(n,t)=>w`
46
+ <button slot="${n}-icon" class="icon">${t?n:P}</button>
47
+ `,Ms=n=>w`
48
48
  <button
49
49
  class="remove-icon icon"
50
- @click=${()=>{const{layer:t}=e;t==null||t.set("layerControlOptional",!0),t==null||t.setVisible(!1),e.dispatchEvent(new CustomEvent("changed",{detail:t,bubbles:!0}))}}
50
+ @click=${()=>{const{layer:t}=n;t==null||t.set("layerControlOptional",!0),t==null||t.setVisible(!1),n.dispatchEvent(new CustomEvent("changed",{detail:t,bubbles:!0}))}}
51
51
  >
52
- ${e.unstyled?"x":T}
52
+ ${n.unstyled?"x":P}
53
53
  </button>
54
- `,_s=e=>x`
54
+ `,Ns=n=>w`
55
55
  <span class="button sort-icon icon drag-handle">
56
- ${e?"═":T}
56
+ ${n?"═":P}
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
+ `,ro=n=>{var e;const t=["layerControlHide","layerControlOptional"];return(e=n==null?void 0:n.getArray())==null?void 0:e.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(!jo(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 so=An(class extends Cn{constructor(n){if(super(n),n.type!==St.PROPERTY&&n.type!==St.ATTRIBUTE&&n.type!==St.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!tr(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===at||t===P)return t;const e=n.element,i=n.name;if(n.type===St.PROPERTY){if(t===e[i])return at}else if(n.type===St.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return at}else if(n.type===St.ATTRIBUTE&&e.getAttribute(i)===t+"")return at;return Si(n),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 As=wn(zn);/**
66
+ */class Gn extends Cn{constructor(t){if(super(t),this.it=P,t.type!==St.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===P||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 e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Gn.directiveName="unsafeHTML",Gn.resultType=1;const Is=An(Gn);/**
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 Cs=(e,t,n)=>{let i=t;return n.layer.getSource().getTileUrlFunction()&&(i||(i=n.layer.getSource().getTileUrlFunction()),n.layer.getSource().setTileUrlFunction((...o)=>Ur(i(...o),e)),n.layer.getSource().setKey(new Date)),i};function Ts(e,t,n){const i="updateStyleVariables"in t,o="setStyle"in t,r=i?t.style_:n.style;let s=r==null?void 0:r.variables;if(s){const a=eo(e);if(r.variables={...s,...a},i)t.updateStyleVariables(a);else if(o){const l=Ps(r);t.setStyle(l)}}}const eo=e=>{const t={};for(const n in e)if(typeof e[n]=="object"&&e[n]!==null){const i=eo(e[n]);for(const o in i)t[o]=i==null?void 0:i[o]}else t[n]=e==null?void 0:e[n];return t};function Ps(e){let t=e;if("variables"in e){let n=JSON.stringify(e);const{variables:i}=e;for(const o in i)typeof i[o]=="number"?n=n.replaceAll(`["var","${o}"]`,i[o]):n=n.replaceAll(`["var","${o}"]`,`"${i[o]}"`);t=JSON.parse(n)}return t}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 Rs="Expected a function",no=NaN,Ds="[object Symbol]",Ms=/^\s+|\s+$/g,Ns=/^[-+]0x[0-9a-f]+$/i,Is=/^0b[01]+$/i,Hs=/^0o[0-7]+$/i,Bs=parseInt,Vs=typeof ze=="object"&&ze&&ze.Object===Object&&ze,Ls=typeof self=="object"&&self&&self.Object===Object&&self,ks=Vs||Ls||Function("return this")(),Us=Object.prototype,Fs=Us.toString,js=Math.max,zs=Math.min,Zn=function(){return ks.Date.now()};function Zs(e,t,n){var i,o,r,s,a,l,u=0,d=!1,c=!1,p=!0;if(typeof e!="function")throw new TypeError(Rs);t=io(t)||0,Xn(n)&&(d=!!n.leading,c="maxWait"in n,r=c?js(io(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),d?f(P):s}function y(P){var W=P-l,ht=P-u,G=t-W;return c?zs(G,r-ht):G}function M(P){var W=P-l,ht=P-u;return l===void 0||W>=t||W<0||c&&ht>=r}function X(){var P=Zn();if(M(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 dt(){var P=Zn(),W=M(P);if(i=arguments,o=this,l=P,W){if(a===void 0)return g(l);if(c)return a=setTimeout(X,t),f(l)}return a===void 0&&(a=setTimeout(X,t)),s}return dt.cancel=rt,dt.flush=K,dt}function Xn(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Xs(e){return!!e&&typeof e=="object"}function qs(e){return typeof e=="symbol"||Xs(e)&&Fs.call(e)==Ds}function io(e){if(typeof e=="number")return e;if(qs(e))return no;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(Ms,"");var n=Is.test(e);return n||Hs.test(e)?Bs(e.slice(2),n?2:8):Ns.test(e)?no:+e}var Ys=Zs;const oo=Os(Ys);class ro extends et{constructor(){super();R(this,Ze);R(this,Gt,{});R(this,ye,null);R(this,be);R(this,Xe,"");R(this,qe,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.debouncedDataChange=oo(q(this,Ze,wo),1e3,{leading:!0})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){$e(this,ye,ws(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*ye(n,t){if(n!==void 0){let e=0;for(const i of n)yield t(i,e++)}}const Vs=(n,t,e)=>{let i=t;return e.layer.getSource().getTileUrlFunction()&&(i||(i=e.layer.getSource().getTileUrlFunction()),e.layer.getSource().setTileUrlFunction((...o)=>Kr(i(...o),n)),e.layer.getSource().setKey(new Date)),i};function Bs(n,t,e){const i="updateStyleVariables"in t,o="setStyle"in t,r=i?t.style_:e.style;let s=r==null?void 0:r.variables;if(s){const a=ao(n);if(r.variables={...s,...a},i)t.updateStyleVariables(a);else if(o){const l=Ls(r);t.setStyle(l)}}}const ao=n=>{const t={};for(const e in n)if(typeof n[e]=="object"&&n[e]!==null){const i=ao(n[e]);for(const o in i)t[o]=i==null?void 0:i[o]}else t[e]=n==null?void 0:n[e];return t};function Ls(n){let t=n;if("variables"in n){let e=JSON.stringify(n);const{variables:i}=n;for(const o in i)typeof i[o]=="number"?e=e.replaceAll(`["var","${o}"]`,i[o]):e=e.replaceAll(`["var","${o}"]`,`"${i[o]}"`);t=JSON.parse(e)}return t}var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Us(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ks="Expected a function",lo=NaN,Fs="[object Symbol]",js=/^\s+|\s+$/g,Zs=/^[-+]0x[0-9a-f]+$/i,zs=/^0b[01]+$/i,Xs=/^0o[0-7]+$/i,qs=parseInt,Ys=typeof ze=="object"&&ze&&ze.Object===Object&&ze,Ws=typeof self=="object"&&self&&self.Object===Object&&self,Gs=Ys||Ws||Function("return this")(),Js=Object.prototype,Ks=Js.toString,Qs=Math.max,ta=Math.min,Jn=function(){return Gs.Date.now()};function ea(n,t,e){var i,o,r,s,a,l,d=0,c=!1,u=!1,p=!0;if(typeof n!="function")throw new TypeError(ks);t=uo(t)||0,Kn(e)&&(c=!!e.leading,u="maxWait"in e,r=u?Qs(uo(e.maxWait)||0,t):r,p="trailing"in e?!!e.trailing:p);function f(D){var W=i,ht=o;return i=o=void 0,d=D,s=n.apply(ht,W),s}function g(D){return d=D,a=setTimeout(q,t),c?f(D):s}function y(D){var W=D-l,ht=D-d,G=t-W;return u?ta(G,r-ht):G}function H(D){var W=D-l,ht=D-d;return l===void 0||W>=t||W<0||u&&ht>=r}function q(){var D=Jn();if(H(D))return F(D);a=setTimeout(q,y(D))}function F(D){return a=void 0,p&&i?f(D):(i=o=void 0,s)}function st(){a!==void 0&&clearTimeout(a),d=0,i=l=o=a=void 0}function tt(){return a===void 0?s:F(Jn())}function ct(){var D=Jn(),W=H(D);if(i=arguments,o=this,l=D,W){if(a===void 0)return g(l);if(u)return a=setTimeout(q,t),f(l)}return a===void 0&&(a=setTimeout(q,t)),s}return ct.cancel=st,ct.flush=tt,ct}function Kn(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function na(n){return!!n&&typeof n=="object"}function ia(n){return typeof n=="symbol"||na(n)&&Ks.call(n)==Fs}function uo(n){if(typeof n=="number")return n;if(ia(n))return lo;if(Kn(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=Kn(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(js,"");var e=zs.test(n);return e||Xs.test(n)?qs(n.slice(2),e?2:8):Zs.test(n)?lo:+n}var oa=ea;const co=Us(oa);class ho extends J{constructor(){super();C(this,Xe);C(this,Wt,{});C(this,be,null);C(this,ve);C(this,qe,"");C(this,Ye,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.debouncedDataChange=co(U(this,Xe,Po),1e3,{leading:!0})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){_e(this,be,Ds(this.layer,this.layerConfig)),customElements.get("eox-jsonform")||console.error("Please import @eox/jsonform in order to use layerconfig");const e={disable_edit_json:!0,disable_collapse:!0,disable_properties:!0};return w`
71
71
  <style>
72
- ${O(this,Xe)}
73
- ${!this.unstyled&&O(this,qe)}
72
+ ${O(this,qe)}
73
+ ${!this.unstyled&&O(this,Ye)}
74
74
  </style>
75
- ${at(this.layerConfig,()=>x`
75
+ ${K(this.layerConfig,()=>w`
76
76
  <!-- Render a JSON form for layer configuration -->
77
77
  <eox-jsonform
78
78
  .schema=${this.layerConfig.schema}
79
- .value=${O(this,ye)}
80
- .options=${n}
79
+ .value=${O(this,be)}
80
+ .options=${e}
81
81
  @change=${this.debouncedDataChange}
82
82
  ></eox-jsonform>
83
83
  `)}
84
- `}}Gt=new WeakMap,ye=new WeakMap,be=new WeakMap,Ze=new WeakSet,wo=function(n){$e(this,Gt,n.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?Ts(O(this,Gt),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):($e(this,be,Cs(O(this,Gt),O(this,be),this)),this.requestUpdate())},Xe=new WeakMap,qe=new WeakMap,L(ro,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",ro);class so extends et{constructor(){super();R(this,ve,n=>this.selectedTab===n&&"highlighted");R(this,Ye,`
84
+ `}}Wt=new WeakMap,be=new WeakMap,ve=new WeakMap,Xe=new WeakSet,Po=function(e){_e(this,Wt,e.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?Bs(O(this,Wt),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):(_e(this,ve,Vs(O(this,Wt),O(this,ve),this)),this.requestUpdate())},qe=new WeakMap,Ye=new WeakMap,I(ho,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",ho);class po extends J{constructor(){super();C(this,We);C(this,Ge,"");C(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"),w`
85
+ <style>
86
+ ${O(this,Ge)}
87
+ ${!this.unstyled&&O(this,Je)}
88
+ </style>
89
+ ${K(this.layerDatetime,()=>w`
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=${this.layerDatetime.slider??!1}
96
+ .disablePlay=${this.layerDatetime.disablePlay??!1}
97
+ .controlValues=${this.layerDatetime.controlValues}
98
+ .controlProperty=${void 0}
99
+ current-step=${this.layerDatetime.currentStep}
100
+ @stepchange=${U(this,We,Do)}
101
+ ></eox-timecontrol>
102
+ `)}
103
+ `}}We=new WeakSet,Do=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{bubbles:!0,detail:{datetime:e.detail.currentStep,layer:this.layer}})),this.layerDatetime.currentStep=e.detail.currentStep,this.requestUpdate()},Ge=new WeakMap,Je=new WeakMap,I(po,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",po);class fo extends J{constructor(){super();C(this,we,e=>this.selectedTab===e&&"highlighted");C(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
- `);R(this,We,`
123
+ `);C(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 e=this.tabs,i=this.actions,o=i.length+e.length>1;return w`
126
145
  <style>
127
- ${O(this,Ye)}
128
- ${!this.unstyled&&O(this,We)}
146
+ ${O(this,Ke)}
147
+ ${!this.unstyled&&O(this,Qe)}
129
148
  </style>
130
149
  <div class="tabbed">
131
150
  <!-- Navigation for tabs and actions -->
132
- ${at(o,()=>x`
151
+ ${K(o,()=>w`
133
152
  <nav>
134
153
  <div>
135
154
  <!-- Labels for tabs -->
136
- ${je(n,(r,s)=>x`
155
+ ${ye(e,(r,s)=>w`
137
156
  <label
138
- class=${O(this,ve).call(this,s)}
157
+ class=${O(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
+ ${ye(i,r=>w`
149
168
  <span>
150
169
  <!-- Customizable icon for each action -->
151
170
  <slot name=${`${r}-icon`}>${r}</slot>
@@ -156,15 +175,91 @@
156
175
  `)}
157
176
  <figure>
158
177
  <!-- Content for each tab -->
159
- ${je(n,(r,s)=>x`
160
- <div class="tab ${O(this,ve).call(this,s)}">
178
+ ${ye(e,(r,s)=>w`
179
+ <div class="tab ${O(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,Ye=new WeakMap,We=new WeakMap,L(so,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-tabs",so);const Ws=`
186
+ `}}we=new WeakMap,Ke=new WeakMap,Qe=new WeakMap,I(fo,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-tabs",fo);class go extends J{constructor(){super();C(this,tn,`
187
+ .toollist figure {
188
+ margin: 0;
189
+ }
190
+ .toolrow {
191
+ margin-top: 2px;
192
+ margin-bottom: 2px;
193
+ }
194
+ `);C(this,en,`
195
+ .containerpanel {
196
+ border-radius: 3px 3px 3px 3px;
197
+ -webkit-border-radius: 3px 3px 3px 3px;
198
+ -moz-border-radius: 3px 3px 3px 3px;
199
+ border: 1px solid #eee;
200
+ }
201
+ .toollist {
202
+ font-size: small;
203
+ }
204
+ .toollist label.highlighted {
205
+ pointer-events: none;
206
+ }
207
+ nav div label,
208
+ nav div span {
209
+ width: 20px;
210
+ height: 20px;
211
+ display: flex;
212
+ align-items: center;
213
+ justify-content: center;
214
+ cursor: pointer;
215
+ }
216
+ figure {
217
+ border-top: 1px solid #0041701a;
218
+ }
219
+ .icon {
220
+ height: 18px;
221
+ float: right;
222
+ filter: grayscale(1.0);
223
+ opacity: 0.8;
224
+ }
225
+ .info-icon,
226
+ button.icon[slot=info-icon]::before {
227
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Einformation-outline%3C/title%3E%3Cpath d='M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z' /%3E%3C/svg%3E");
228
+ }
229
+ .opacity-icon,
230
+ button.icon[slot=opacity-icon]::before {
231
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eopacity%3C/title%3E%3Cpath d='M17.66,8L12,2.35L6.34,8C4.78,9.56 4,11.64 4,13.64C4,15.64 4.78,17.75 6.34,19.31C7.9,20.87 9.95,21.66 12,21.66C14.05,21.66 16.1,20.87 17.66,19.31C19.22,17.75 20,15.64 20,13.64C20,11.64 19.22,9.56 17.66,8M6,14C6,12 6.62,10.73 7.76,9.6L12,5.27L16.24,9.65C17.38,10.77 18,12 18,14H6Z' /%3E%3C/svg%3E");
232
+ }
233
+ .config-icon,
234
+ button.icon[slot=config-icon]::before {
235
+ 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");
236
+ }
237
+ .single-action .remove-icon::before,
238
+ [slot=remove-icon] button.icon::before {
239
+ 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");
240
+ }
241
+ `);this.listitems=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.listitems;return w`
242
+ <style>
243
+ ${O(this,tn)}
244
+ ${!this.unstyled&&O(this,en)}
245
+ </style>
246
+ <div class="toollist">
247
+ <figure>
248
+ <!-- Content of tool -->
249
+ ${ye(e,i=>w`
250
+ <div class="toolrow">
251
+ <div style="height: 22px;">
252
+ <div class="icon ${i}-icon"></div>
253
+ </div>
254
+ <!-- Content slot for each tab -->
255
+ <div class="containerpanel">
256
+ <slot name=${`${i}-content`}>${i}</slot>
257
+ </div>
258
+ </div>
259
+ `)}
260
+ </figure>
261
+ </div>
262
+ `}}tn=new WeakMap,en=new WeakMap,I(go,"properties",{listitems:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-list",go);const ra=`
168
263
  button,
169
264
  .button {
170
265
  /* TODO: why does this only work here and not from :root? */
@@ -288,7 +383,7 @@ button.smallest.icon::before {
288
383
  width: 16px;
289
384
  padding: 0px;
290
385
  }
291
- `,Gs=`
386
+ `,sa=`
292
387
  input[type=radio] {
293
388
  appearance: none;
294
389
  -webkit-appearance: none;
@@ -316,7 +411,7 @@ input[type=radio]:checked:after {
316
411
  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
412
 
318
413
  }
319
- `,ao=`
414
+ `,mo=`
320
415
  input[type=checkbox] {
321
416
  appearance: none;
322
417
  -webkit-appearance: none;
@@ -339,7 +434,7 @@ input[type=checkbox]:checked:after {
339
434
  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
435
 
341
436
  }
342
- `,Js=`
437
+ `,aa=`
343
438
  input[type="range"] {
344
439
  -webkit-appearance: none;
345
440
  width: 90%;
@@ -416,11 +511,54 @@ input[type="range"]:focus::-webkit-slider-thumb {
416
511
  input::-moz-focus-inner, input::-moz-focus-outer {
417
512
  border: 0;
418
513
  }
419
- `;class lo extends et{constructor(){super();L(this,"_removeButton",()=>$s(this));L(this,"_sortButton",()=>_s(this.unstyled));L(this,"_button",n=>Ss(n,this.unstyled));R(this,Ge,"");R(this,Je,`
420
- ${Ws}
421
- ${Gs}
422
- ${ao}
423
- ${Js}
514
+ `;class yo extends J{constructor(){super();I(this,"_removeButton",()=>Ms(this));I(this,"_sortButton",()=>Ns(this.unstyled));I(this,"_button",e=>Hs(e,this.unstyled));I(this,"_getDefaultTools",()=>{var e;return w`
515
+ <div slot="info-content">
516
+ ${Is(this.layer.get("description"))}
517
+ </div>
518
+ <div slot="datetime-content">
519
+ <!-- Layer datetime -->
520
+ ${K(this.layer.get("layerDatetime"),()=>w`
521
+ <eox-layercontrol-layer-datetime
522
+ slot="datetime-content"
523
+ .noShadow=${!0}
524
+ .layerDatetime=${this.layer.get("layerDatetime")}
525
+ .layer=${this.layer}
526
+ .unstyled=${this.unstyled}
527
+ @changed=${()=>this.requestUpdate()}
528
+ ></eox-layercontrol-layer-datetime>
529
+ `)}
530
+ </div>
531
+ <div slot="opacity-content">
532
+ <!-- Input for opacity -->
533
+ <input
534
+ type="range"
535
+ min="0"
536
+ max="1"
537
+ step="0.01"
538
+ value=${so((e=this.layer)==null?void 0:e.getOpacity())}
539
+ @input=${i=>this.layer.setOpacity(parseFloat(i.target.value))}
540
+ />
541
+ </div>
542
+ <div slot="config-content">
543
+ <!-- Layer configuration -->
544
+ ${K(this.layer.get("layerConfig"),()=>w`
545
+ <eox-layercontrol-layerconfig
546
+ slot="config-content"
547
+ .layer=${this.layer}
548
+ .noShadow=${!0}
549
+ .layerConfig=${this.layer.get("layerConfig")}
550
+ .unstyled=${this.unstyled}
551
+ @changed=${()=>this.requestUpdate()}
552
+ ></eox-layercontrol-layerconfig>
553
+ `)}
554
+ </div>
555
+ <div slot="remove-icon">${this._removeButton()}</div>
556
+ <div slot="sort-icon">${this._sortButton()}</div>
557
+ `});C(this,nn,"");C(this,on,`
558
+ ${ra}
559
+ ${sa}
560
+ ${mo}
561
+ ${aa}
424
562
  .drag-handle {
425
563
  cursor: n-resize;
426
564
  }
@@ -500,6 +638,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
500
638
  button.icon[slot=config-icon]::before {
501
639
  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
640
  }
641
+ details.tools summary .datetime-icon,
642
+ button.icon[slot=datetime-icon]::before {
643
+ 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");
644
+ }
503
645
  .single-action .remove-icon::before,
504
646
  [slot=remove-icon] button.icon::before {
505
647
  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,68 +654,47 @@ input::-moz-focus-inner, input::-moz-focus-outer {
512
654
  [slot=opacity-content] {
513
655
  padding: 12px 6px;
514
656
  }
515
- `);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const n=Es(this.tools,this.layer),i=xs(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`
657
+ `);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.disableTabs=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const e=Os(this.tools,this.layer),i=Rs(this.tools,this.layer),o=this[`_${e==null?void 0:e[0]}Button`]?this[`_${e==null?void 0:e[0]}Button`]():P,r=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=e==null?void 0:e.length,a=i==null?void 0:i.length;return w`
516
658
  <style>
517
- ${O(this,Ge)}
518
- ${!this.unstyled&&O(this,Je)}
659
+ ${O(this,nn)}
660
+ ${!this.unstyled&&O(this,on)}
519
661
  </style>
520
- ${at(s+a>0,()=>x`
521
- ${at(s===1&&a===0,()=>x`
662
+ ${K(s+a>0,()=>w`
663
+ ${K(s===1&&a===0,()=>w`
522
664
  <div class="single-action-container">
523
665
  <div class="single-action">${o}</div>
524
666
  </div>
525
- `,()=>{var u;return x`
667
+ `,()=>w`
526
668
  <details
527
669
  class="tools"
528
- open=${this.layer.get("layerControlToolsExpand")||T}
670
+ open=${this.layer.get("layerControlToolsExpand")||P}
529
671
  >
530
672
  <summary>
531
673
  <button class="icon ${r}">Tools</button>
532
674
  </summary>
533
- <eox-layercontrol-tabs
534
- .noShadow=${!1}
535
- .actions=${n}
536
- .tabs=${i}
537
- .unstyled=${this.unstyled}
538
- >
539
- <!-- Rendering tabs and content -->
540
- ${je(i,d=>this._button(d))}
541
-
542
- <div slot="info-content">
543
- ${As(this.layer.get("description"))}
544
- </div>
545
- <div slot="opacity-content">
546
- <!-- Input for opacity -->
547
- <input
548
- type="range"
549
- min="0"
550
- max="1"
551
- step="0.01"
552
- value=${to((u=this.layer)==null?void 0:u.getOpacity())}
553
- @input=${d=>this.layer.setOpacity(parseFloat(d.target.value))}
554
- />
555
- </div>
556
- <div slot="config-content">
557
- <!-- Layer configuration -->
558
- ${at(this.layer.get("layerConfig"),()=>x`
559
- <eox-layercontrol-layerconfig
560
- slot="config-content"
561
- .layer=${this.layer}
562
- .noShadow=${!0}
563
- .layerConfig=${this.layer.get("layerConfig")}
564
- .unstyled=${this.unstyled}
565
- @changed=${()=>this.requestUpdate()}
566
- ></eox-layercontrol-layerconfig>
567
- `)}
568
- </div>
569
- <div slot="remove-icon">${this._removeButton()}</div>
570
- <div slot="sort-icon">${this._sortButton()}</div>
571
- </eox-layercontrol-tabs>
675
+ ${K(this.disableTabs,()=>w` <eox-layercontrol-list
676
+ .noShadow=${!1}
677
+ .listitems=${i}
678
+ .unstyled=${this.unstyled}
679
+ >
680
+ <!-- Including default tools -->
681
+ ${this._getDefaultTools()}
682
+ </eox-layercontrol-list>`,()=>w` <eox-layercontrol-tabs
683
+ .noShadow=${!1}
684
+ .actions=${e}
685
+ .tabs=${i}
686
+ .unstyled=${this.unstyled}
687
+ >
688
+ <!-- Rendering tabs and content -->
689
+ ${ye(i,d=>this._button(d))}
690
+ <!-- Including default tools -->
691
+ ${this._getDefaultTools()}
692
+ </eox-layercontrol-tabs>`)}
572
693
  </details>
573
- `})}
694
+ `)}
574
695
  `)}
575
- `}}Ge=new WeakMap,Je=new WeakMap,L(lo,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",lo);const Ks=e=>{const t=()=>{const n=bs(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()))},Qs=(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 uo extends et{constructor(){super();R(this,Ct);L(this,"currLayerVisibilityBasedOnZoom",!0);R(this,Ke,"");R(this,Qe,`
576
- ${ao}
696
+ `}}nn=new WeakMap,on=new WeakMap,I(yo,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},disableTabs:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",yo);const la=n=>{const t=()=>{const e=Ts(n.layer,n.map,n.showLayerZoomState);let i=!1;!e&&n.currLayerVisibilityBasedOnZoom?(n.currLayerVisibilityBasedOnZoom=!1,i=!0):e&&!n.currLayerVisibilityBasedOnZoom&&(n.currLayerVisibilityBasedOnZoom=!0,i=!0),i&&(n.requestUpdate(),n.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};io(n.layer,n.showLayerZoomState)&&(t(),n.map.getView().on("change:resolution",()=>t()))},da=(n,t)=>{const e=t.layer;e.setVisible(n.target.checked),n.target.checked&&e.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(o=>{var r;o.layer!==e&&((r=o.layer)!=null&&r.get("layerControlExclusive"))&&(o.layer.setVisible(!1),o.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:e})),t.requestUpdate()};class bo extends J{constructor(){super();C(this,Ct);I(this,"currLayerVisibilityBasedOnZoom",!0);C(this,rn,"");C(this,sn,`
697
+ ${mo}
577
698
  eox-layercontrol-layer {
578
699
  width: 100%;
579
700
  }
@@ -613,25 +734,25 @@ input::-moz-focus-inner, input::-moz-focus-outer {
613
734
  [data-type=draw] .title::before {
614
735
  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
736
  }
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(){Ks(this)}render(){var l;const n=this.layer.getVisible(),i=n?"visible":"",o=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",r=q(this,Ct,dn).call(this,"layerControlDisable")?"disabled":"",s=q(this,Ct,dn).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return x`
737
+ `);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.disableTabs=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){la(this)}render(){var l;const e=this.layer.getVisible(),i=e?"visible":"",o=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",r=U(this,Ct,mn).call(this,"layerControlDisable")?"disabled":"",s=U(this,Ct,mn).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return w`
617
738
  <style>
618
- ${O(this,Ke)}
619
- ${!this.unstyled&&O(this,Qe)}
739
+ ${O(this,rn)}
740
+ ${!this.unstyled&&O(this,sn)}
620
741
  </style>
621
- ${at(this.layer,()=>x`
742
+ ${K(this.layer,()=>w`
622
743
  <!-- Render the layer -->
623
744
  <div class="layer ${i} ${o}">
624
745
  <label class="drag-handle ${r}">
625
746
  <!-- Input element for layer visibility -->
626
747
  <input
627
748
  type=${s}
628
- .checked=${to(n)}
629
- @click=${q(this,Ct,Eo)}
749
+ .checked=${so(e)}
750
+ @click=${U(this,Ct,Oo)}
630
751
  />
631
752
 
632
753
  <!-- Layer title -->
633
- <span class="title">${q(this,Ct,dn).call(this,this.titleProperty)}</span>
634
- ${at(a,()=>x`<span class="tools-placeholder"></span>`)}
754
+ <span class="title">${U(this,Ct,mn).call(this,this.titleProperty)}</span>
755
+ ${K(a,()=>w`<span class="tools-placeholder"></span>`)}
635
756
  </label>
636
757
  </div>
637
758
 
@@ -641,9 +762,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
641
762
  .layer=${this.layer}
642
763
  .tools=${this.tools}
643
764
  .unstyled=${this.unstyled}
765
+ .disableTabs=${this.disableTabs}
644
766
  ></eox-layercontrol-layer-tools>
645
767
  `)}
646
- `}}Ct=new WeakSet,dn=function(n){var i;return(i=this.layer)==null?void 0:i.get(n)},Eo=function(n){Qs(n,this)},Ke=new WeakMap,Qe=new WeakMap,L(uo,"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",uo);class co extends et{constructor(){super();R(this,tn,"");R(this,en,`
768
+ `}}Ct=new WeakSet,mn=function(e){var i;return(i=this.layer)==null?void 0:i.get(e)},Oo=function(e){da(e,this)},rn=new WeakMap,sn=new WeakMap,I(bo,"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},disableTabs:{type:Boolean}}),customElements.define("eox-layercontrol-layer",bo);class vo extends J{constructor(){super();C(this,an,"");C(this,ln,`
647
769
  details summary {
648
770
  cursor: pointer;
649
771
  display: flex;
@@ -667,15 +789,15 @@ input::-moz-focus-inner, input::-moz-focus-outer {
667
789
  details[data-children-length="0"] summary::before {
668
790
  display: none;
669
791
  }
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`
792
+ `);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.disableTabs=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var o,r;const e=!!((o=this.group)!=null&&o.get("layerControlExpand")),i=(r=ro(this.group.getLayers()))==null?void 0:r.length;return w`
671
793
  <style>
672
- ${O(this,tn)}
673
- ${!this.unstyled&&O(this,en)}
794
+ ${O(this,an)}
795
+ ${!this.unstyled&&O(this,ln)}
674
796
  </style>
675
- ${at(this.group,()=>x`
797
+ ${K(this.group,()=>w`
676
798
  <!-- Render the details element with the layer control -->
677
799
  <details
678
- open=${n||T}
800
+ open=${e||P}
679
801
  data-children-length=${i}
680
802
  >
681
803
  <summary>
@@ -688,6 +810,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
688
810
  .showLayerZoomState=${this.showLayerZoomState}
689
811
  .tools=${this.tools}
690
812
  .unstyled=${this.unstyled}
813
+ .disableTabs=${this.disableTabs}
691
814
  @changed=${()=>this.requestUpdate()}
692
815
  ></eox-layercontrol-layer>
693
816
  </summary>
@@ -702,11 +825,12 @@ input::-moz-focus-inner, input::-moz-focus-outer {
702
825
  .showLayerZoomState=${this.showLayerZoomState}
703
826
  .tools=${this.tools}
704
827
  .unstyled=${this.unstyled}
828
+ .disableTabs=${this.disableTabs}
705
829
  @changed=${()=>this.requestUpdate()}
706
830
  ></eox-layercontrol-layer-list>
707
831
  </details>
708
832
  `)}
709
- `}}tn=new WeakMap,en=new WeakMap,L(co,"properties",{group:{attribute:!1},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-group",co);const ta=e=>{const{layers:t,idProperty:n,titleProperty:i,renderRoot:o}=e,r=oo(()=>{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");ys(t,n,i,e),ms(a,t,n,e)}};class ho extends et{constructor(){super();R(this,nn,"");R(this,on,`
833
+ `}}an=new WeakMap,ln=new WeakMap,I(vo,"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},disableTabs:{type:Boolean}}),customElements.define("eox-layercontrol-layer-group",vo);const ua=n=>{const{layers:t,idProperty:e,titleProperty:i,renderRoot:o}=n,r=co(()=>{n.requestUpdate(),n.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");Cs(t,e,i,n),As(a,t,e,n)}};class wo extends J{constructor(){super();C(this,dn,"");C(this,un,`
710
834
  ul {
711
835
  padding: 0;
712
836
  margin: 0;
@@ -734,19 +858,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
734
858
  }
735
859
  li.sortable-ghost {
736
860
  }
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(){ta(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const n=this.layers?Qi(this.layers).reverse():[];return x`
861
+ `);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1,this.disableTabs=!1}firstUpdated(){ua(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.layers?ro(this.layers).reverse():[];return w`
738
862
  <style>
739
- ${O(this,nn)}
740
- ${!this.unstyled&&O(this,on)}
863
+ ${O(this,dn)}
864
+ ${!this.unstyled&&O(this,un)}
741
865
  </style>
742
866
  <ul>
743
- ${at(this.layers,()=>x`
744
- ${Xo(n,i=>i,i=>x`
867
+ ${K(this.layers,()=>w`
868
+ ${ir(e,i=>i,i=>w`
745
869
  <li
746
870
  data-layer="${i.get(this.idProperty)}"
747
- data-type="${vs(i,this.map)}"
871
+ data-type="${Ps(i,this.map)}"
748
872
  >
749
- ${i.getLayers?x`
873
+ ${i.getLayers?w`
750
874
  <eox-layercontrol-layer-group
751
875
  .noShadow=${!0}
752
876
  .group=${i}
@@ -756,10 +880,11 @@ input::-moz-focus-inner, input::-moz-focus-outer {
756
880
  .showLayerZoomState=${this.showLayerZoomState}
757
881
  .tools=${this.tools}
758
882
  .unstyled=${this.unstyled}
883
+ .disableTabs=${this.disableTabs}
759
884
  @changed=${()=>this.requestUpdate()}
760
885
  >
761
886
  </eox-layercontrol-layer-group>
762
- `:x`
887
+ `:w`
763
888
  <eox-layercontrol-layer
764
889
  .noShadow=${!0}
765
890
  .layer=${i}
@@ -768,6 +893,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
768
893
  .showLayerZoomState=${this.showLayerZoomState}
769
894
  .tools=${this.tools}
770
895
  .unstyled=${this.unstyled}
896
+ .disableTabs=${this.disableTabs}
771
897
  @changed=${()=>this.requestUpdate()}
772
898
  ></eox-layercontrol-layer>
773
899
  `}
@@ -775,7 +901,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
775
901
  `)}
776
902
  `)}
777
903
  </ul>
778
- `}}nn=new WeakMap,on=new WeakMap,L(ho,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-list",ho);const ea=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 po extends et{constructor(){super();R(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`
904
+ `}}dn=new WeakMap,un=new WeakMap,I(wo,"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},disableTabs:{type:Boolean}}),customElements.define("eox-layercontrol-layer-list",wo);const ca=n=>{const t=n.querySelector("select[name=optional]"),e=t?t.value:null,i=Wn(n.layers.getArray(),"layerControlOptional",!0).find(o=>(o.get(n.idProperty)||o.ol_uid)===e);i==null||i.set("layerControlOptional",!1),i==null||i.setVisible(!0),n.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),n.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(o=>o.requestUpdate()),n.requestUpdate()};class xo extends J{constructor(){super();C(this,cn);this.idProperty="id",this.layers=null,this.titleProperty="title",this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=Wn(this.layers.getArray(),"layerControlOptional",!0);return w`
779
905
  <!-- Label for the dropdown -->
780
906
  <label for="optional">Optional layers</label>
781
907
 
@@ -787,19 +913,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
787
913
  </option>
788
914
 
789
915
  <!-- 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> `})}
916
+ ${e.map(i=>{const o=i.get(this.idProperty)||i.ol_uid,r=i.get(this.titleProperty),s=`layer ${i.get(this.idProperty)}`;return w` <option value="${o}">${r||s}</option> `})}
791
917
  </select>
792
918
 
793
919
  <!-- Button to handle adding layers -->
794
- <button @click="${q(this,rn,xo)}">add</button>
795
- `}}rn=new WeakSet,xo=function(){ea(this)},L(po,"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",po);const na=(e,t)=>{t.jsonInput=e.target.value,t.requestUpdate()},fo=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()},ia=(e,t)=>{t.urlInput=e.target.value,t.requestUpdate()};async function oa(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 Vr(t);e.wmsCapabilities=n}catch{}finally{e.searchLoad=!1,e.requestUpdate()}return!1}const ra=(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)},sa=(e,t)=>{t.open=e||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class go extends et{constructor(){super();R(this,Z);L(this,"urlInput",null);L(this,"jsonInput",null);L(this,"open",null);L(this,"searchLoad",!1);L(this,"wmsCapabilities",null);R(this,sn,`
920
+ <button @click="${U(this,cn,Ro)}">add</button>
921
+ `}}cn=new WeakSet,Ro=function(){ca(this)},I(xo,"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",xo);const ha=(n,t)=>{t.jsonInput=n.target.value,t.requestUpdate()},Eo=n=>{const t=JSON.parse(`{"data":${Ri(n.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(e=>{n.eoxMap.addOrUpdateLayer(e)}):n.eoxMap.addOrUpdateLayer(t.data),n.jsonInput=null,n.requestUpdate()},pa=(n,t)=>{t.urlInput=n.target.value,t.requestUpdate()};async function fa(n){const t=n.urlInput;if(n.wmsCapabilities=null,n.searchLoad=!0,n.requestUpdate(),!t)return!1;if(Rn(t)==="XYZ")return{Name:t};try{const e=await Wr(t);n.wmsCapabilities=e}catch{}finally{n.searchLoad=!1,n.requestUpdate()}return!1}const ga=(n,t)=>{const{Name:e}=n,i=Rn(t.urlInput)||"XYZ",o={type:"Tile",properties:{id:e,title:e},source:{type:i,url:t.urlInput,params:{LAYERS:e}}};t.jsonInput=JSON.stringify(o)},ma=(n,t)=>{t.open=n||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class So extends J{constructor(){super();C(this,X);I(this,"urlInput",null);I(this,"jsonInput",null);I(this,"open",null);I(this,"searchLoad",!1);I(this,"wmsCapabilities",null);C(this,hn,`
796
922
  .eox-add-layer-main .open {
797
923
  position: relative;
798
924
  }
799
925
  .eox-add-layer-main .close {
800
926
  display: none;
801
927
  }
802
- `);R(this,an,`
928
+ `);C(this,pn,`
803
929
  .eox-add {
804
930
  background: #f0f2f5;
805
931
  border-top: 1px solid #0041701a;
@@ -932,23 +1058,23 @@ input::-moz-focus-inner, input::-moz-focus-outer {
932
1058
  font-weight: bold;
933
1059
  display: inline-block;
934
1060
  }
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=!Lr(this.urlInput)||this.searchLoad?!0:T;return x`
1061
+ `);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.open?"open":"close",i=this.open==="url",o=this.open==="json",r=!Gr(this.urlInput)||this.searchLoad?!0:P;return w`
936
1062
  <style>
937
- ${O(this,sn)}
938
- ${!this.unstyled&&O(this,an)}
1063
+ ${O(this,hn)}
1064
+ ${!this.unstyled&&O(this,pn)}
939
1065
  </style>
940
1066
  <div class="eox-add-layer-main">
941
1067
  <div class="eox-add-layer-col">
942
1068
  <!-- Tabbed interface for URL and JSON -->
943
- <ul class="eox-add-layer-tab ${n}">
1069
+ <ul class="eox-add-layer-tab ${e}">
944
1070
  <li
945
- @click=${()=>q(this,Z,hn).call(this,"url")}
1071
+ @click=${()=>U(this,X,yn).call(this,"url")}
946
1072
  class="${i?"active":""}"
947
1073
  >
948
1074
  URL
949
1075
  </li>
950
1076
  <li
951
- @click=${()=>q(this,Z,hn).call(this,"json")}
1077
+ @click=${()=>U(this,X,yn).call(this,"json")}
952
1078
  class="${o?"active":""}"
953
1079
  >
954
1080
  JSON
@@ -958,13 +1084,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
958
1084
  <!-- Button to toggle tabs -->
959
1085
  <button
960
1086
  class="add-icon icon"
961
- @click=${()=>q(this,Z,hn).call(this,this.open?null:"url")}
1087
+ @click=${()=>U(this,X,yn).call(this,this.open?null:"url")}
962
1088
  >
963
1089
  ${this.unstyled?"Add Layer":""}
964
1090
  </button>
965
1091
  </div>
966
- <div class="eox-add ${n}">
967
- ${i?x`
1092
+ <div class="eox-add ${e}">
1093
+ ${i?w`
968
1094
  <!-- Input field for URL -->
969
1095
  <div class="eox-add-layer-col">
970
1096
  <input
@@ -972,62 +1098,62 @@ input::-moz-focus-inner, input::-moz-focus-outer {
972
1098
  class="add-url"
973
1099
  placeholder="Add URL (WMS/XYZ)"
974
1100
  .value="${this.urlInput}"
975
- @input=${q(this,Z,So)}
1101
+ @input=${U(this,X,Ho)}
976
1102
  >
977
1103
  </input>
978
1104
  <!-- Search button for URL -->
979
1105
  <button
980
1106
  class="search-icon"
981
1107
  disabled=${r}
982
- @click=${q(this,Z,$o)}
1108
+ @click=${U(this,X,Mo)}
983
1109
  >
984
1110
  ${this.unstyled?"Search":""}
985
1111
  </button>
986
1112
  </div>
987
1113
 
988
1114
  <!-- 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`
1115
+ ${this.wmsCapabilities?w`<ul class="search-lists">
1116
+ ${this.wmsCapabilities.Capability.Layer.Layer.map(s=>{const a=s.Name;return w`
991
1117
  <li class="search-list">
992
1118
  ${a}
993
1119
  <!-- Button to add layer -->
994
1120
  <button
995
1121
  class="add-layer-icon icon"
996
- @click=${()=>q(this,Z,Wn).call(this,s)}
1122
+ @click=${()=>U(this,X,ei).call(this,s)}
997
1123
  >
998
1124
  ${this.unstyled?"+":""}
999
1125
  </button>
1000
1126
  </li>
1001
1127
  `})}
1002
- </ul>`:T}
1003
- `:x`
1128
+ </ul>`:P}
1129
+ `:w`
1004
1130
  <!-- Textarea for JSON input -->
1005
1131
  <textarea
1006
1132
  class="add-layer-input"
1007
1133
  placeholder="Please put a valid eox-map layer JSON."
1008
- @input=${q(this,Z,Ao)}
1134
+ @input=${U(this,X,Io)}
1009
1135
  .value=${this.jsonInput}
1010
1136
  ></textarea>
1011
1137
 
1012
1138
  <!-- Button to add JSON layer -->
1013
1139
  <button
1014
1140
  class="add-layer-icon json-add-layer"
1015
- disabled=${kr(this.jsonInput)?T:!0}
1016
- @click=${q(this,Z,_o)}
1141
+ disabled=${Jr(this.jsonInput)?P:!0}
1142
+ @click=${U(this,X,No)}
1017
1143
  >
1018
1144
  ${this.unstyled?"Add JSON":""}
1019
1145
  </button>
1020
1146
  `}
1021
1147
  </div>
1022
1148
  </div>
1023
- `}}Z=new WeakSet,So=function(n){ia(n,this)},$o=async function(){const n=await oa(this);n&&q(this,Z,Wn).call(this,n)},Wn=function(n){ra(n,this),fo(this)},_o=function(){fo(this)},Ao=function(n){na(n,this)},hn=function(n){sa(n,this)},sn=new WeakMap,an=new WeakMap,L(go,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",go);const aa=(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()}},la=e=>{let t;return typeof e=="string"?t=document.querySelector(e):t=e,t},mo=e=>{const t=la(e.for);return t&&t.map!==e.map&&(e.map=t.map),t};class qn extends et{constructor(){super();R(this,ln);R(this,Tt);R(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(){this.eoxMap=mo(this)}updated(n){n.has("for")&&(this.eoxMap=mo(this))}get eoxMap(){return O(this,Tt)}set eoxMap(n){const i=O(this,Tt);$e(this,Tt,n),this.requestUpdate("eoxMap",i)}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`
1149
+ `}}X=new WeakSet,Ho=function(e){pa(e,this)},Mo=async function(){const e=await fa(this);e&&U(this,X,ei).call(this,e)},ei=function(e){ga(e,this),Eo(this)},No=function(){Eo(this)},Io=function(e){ha(e,this)},yn=function(e){ma(e,this)},hn=new WeakMap,pn=new WeakMap,I(So,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",So);const ya=(n,t)=>{if(t.requestUpdate(),n.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const e=t.renderRoot.querySelector("eox-layercontrol-optional-list");e==null||e.requestUpdate()}},ba=n=>{let t;return typeof n=="string"?t=document.querySelector(n):t=n,t},$o=n=>{const t=ba(n.for);return t&&t.map!==n.map&&(n.map=t.map),t};class Qn extends J{constructor(){super();C(this,Gt);C(this,Tt);C(this,fn,"* { 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","datetime","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride="",this.disableTabs=!1}firstUpdated(){this.eoxMap=$o(this)}updated(e){e.has("for")&&(this.eoxMap=$o(this))}get eoxMap(){return O(this,Tt)}set eoxMap(e){const i=O(this,Tt);_e(this,Tt,e),this.requestUpdate("eoxMap",i)}render(){var o,r,s;const e=(o=this.map)==null?void 0:o.getLayers().getArray(),i=e&&((r=Wn(e,"layerControlOptional",!0))==null?void 0:r.length)>0;return w`
1024
1150
  <style>
1025
- ${!this.unstyled&&O(this,un)}
1151
+ ${!this.unstyled&&O(this,fn)}
1026
1152
  ${this.styleOverride}
1027
1153
  </style>
1028
1154
 
1029
1155
  <!-- Conditional rendering of add layers component -->
1030
- ${at(this.addExternalLayers&&((s=O(this,Tt))==null?void 0:s.addOrUpdateLayer),()=>x`
1156
+ ${K(this.addExternalLayers&&((s=O(this,Tt))==null?void 0:s.addOrUpdateLayer),()=>w`
1031
1157
  <eox-layercontrol-add-layers
1032
1158
  .noShadow=${!0}
1033
1159
  .eoxMap=${O(this,Tt)}
@@ -1036,7 +1162,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1036
1162
  `)}
1037
1163
 
1038
1164
  <!-- Conditional rendering of layer list component -->
1039
- ${at(this.map,()=>x`
1165
+ ${K(this.map,()=>w`
1040
1166
  <eox-layercontrol-layer-list
1041
1167
  .noShadow=${!0}
1042
1168
  class="layers"
@@ -1047,12 +1173,14 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1047
1173
  .showLayerZoomState=${this.showLayerZoomState}
1048
1174
  .tools=${this.tools}
1049
1175
  .unstyled=${this.unstyled}
1050
- @changed=${q(this,ln,Co)}
1176
+ .disableTabs=${this.disableTabs}
1177
+ @changed=${U(this,Gt,Vo)}
1178
+ @datetime:updated=${U(this,Gt,Bo)}
1051
1179
  ></eox-layercontrol-layer-list>
1052
1180
  `)}
1053
1181
 
1054
1182
  <!-- Conditional rendering of optional list component -->
1055
- ${at(i,()=>x`
1183
+ ${K(i,()=>w`
1056
1184
  <eox-layercontrol-optional-list
1057
1185
  .noShadow=${!0}
1058
1186
  .idProperty=${this.idProperty}
@@ -1061,4 +1189,4 @@ input::-moz-focus-inner, input::-moz-focus-outer {
1061
1189
  @changed=${()=>this.requestUpdate()}
1062
1190
  ></eox-layercontrol-optional-list>
1063
1191
  `)}
1064
- `}}Tt=new WeakMap,ln=new WeakSet,Co=function(n){aa(n,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:n.detail}))},un=new WeakMap,L(qn,"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",qn),C.EOxLayerControl=qn,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
1192
+ `}}Tt=new WeakMap,Gt=new WeakSet,Vo=function(e){ya(e,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:e.detail}))},Bo=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:e.detail}))},fn=new WeakMap,I(Qn,"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},disableTabs:{type:Boolean}}),customElements.define("eox-layercontrol",Qn),T.EOxLayerControl=Qn,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});