@eox/layercontrol 0.6.0 → 0.6.1

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,26 +1,26 @@
1
- (function(E,Z){typeof exports=="object"&&typeof module<"u"?Z(exports):typeof define=="function"&&define.amd?define(["exports"],Z):(E=typeof globalThis<"u"?globalThis:E||self,Z(E["eox-layercontrol"]={}))})(this,function(E){"use strict";/**
1
+ (function(E,q){typeof exports=="object"&&typeof module<"u"?q(exports):typeof define=="function"&&define.amd?define(["exports"],q):(E=typeof globalThis<"u"?globalThis:E||self,q(E["eox-layercontrol"]={}))})(this,function(E){"use strict";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Z=window,ne=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Te=Symbol(),Oe=new WeakMap;let Ii=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Te)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(ne&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Oe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Oe.set(e,t))}return t}toString(){return this.cssText}};const Mi=n=>new Ii(typeof n=="string"?n:n+"",void 0,Te),Ni=(n,t)=>{ne?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),r=Z.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,n.appendChild(i)})},Le=ne?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Mi(e)})(n):n;/**
5
+ */const q=window,ne=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Te=Symbol(),Oe=new WeakMap;let Ii=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Te)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(ne&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Oe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Oe.set(e,t))}return t}toString(){return this.cssText}};const Mi=n=>new Ii(typeof n=="string"?n:n+"",void 0,Te),Ni=(n,t)=>{ne?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),r=q.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,n.appendChild(i)})},Le=ne?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Mi(e)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var re;const Vt=window,He=Vt.trustedTypes,ki=He?He.emptyScript:"",Pe=Vt.reactiveElementPolyfillSupport,oe={toAttribute(n,t){switch(t){case Boolean:n=n?ki: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}},Ie=(n,t)=>t!==n&&(t==t||n==n),ae={attribute:!0,type:String,converter:oe,reflect:!1,hasChanged:Ie},se="finalized";let ht=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const r=this._$Ep(i,e);r!==void 0&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,e=ae){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ae}static finalize(){if(this.hasOwnProperty(se))return!1;this[se]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of i)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Le(r))}else t!==void 0&&e.push(Le(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ni(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=ae){var r;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const a=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:oe).toAttribute(e,i.type);this._$El=t,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(o!==void 0&&this._$El!==o){const a=r.getPropertyOptions(o),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:oe;this._$El=o,this[o]=s.fromAttribute(e,a.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Ie)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(i)):this._$Ek()}catch(r){throw e=!1,this._$Ek(),r}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ht[se]=!0,ht.elementProperties=new Map,ht.elementStyles=[],ht.shadowRootOptions={mode:"open"},Pe==null||Pe({ReactiveElement:ht}),((re=Vt.reactiveElementVersions)!==null&&re!==void 0?re:Vt.reactiveElementVersions=[]).push("1.6.2");/**
9
+ */var re;const Vt=window,He=Vt.trustedTypes,ki=He?He.emptyScript:"",Pe=Vt.reactiveElementPolyfillSupport,oe={toAttribute(n,t){switch(t){case Boolean:n=n?ki: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}},Ie=(n,t)=>t!==n&&(t==t||n==n),ae={attribute:!0,type:String,converter:oe,reflect:!1,hasChanged:Ie},se="finalized";let ut=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const r=this._$Ep(i,e);r!==void 0&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,e=ae){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ae}static finalize(){if(this.hasOwnProperty(se))return!1;this[se]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of i)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Le(r))}else t!==void 0&&e.push(Le(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ni(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=ae){var r;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const a=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:oe).toAttribute(e,i.type);this._$El=t,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(o!==void 0&&this._$El!==o){const a=r.getPropertyOptions(o),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:oe;this._$El=o,this[o]=l.fromAttribute(e,a.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Ie)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(i)):this._$Ek()}catch(r){throw e=!1,this._$Ek(),r}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ut[se]=!0,ut.elementProperties=new Map,ut.elementStyles=[],ut.shadowRootOptions={mode:"open"},Pe==null||Pe({ReactiveElement:ut}),((re=Vt.reactiveElementVersions)!==null&&re!==void 0?re:Vt.reactiveElementVersions=[]).push("1.6.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var le;const Bt=window,ct=Bt.trustedTypes,Me=ct?ct.createPolicy("lit-html",{createHTML:n=>n}):void 0,Rt="$lit$",Y=`lit$${(Math.random()+"").slice(9)}$`,de="?"+Y,Vi=`<${de}>`,et=document,Ct=()=>et.createComment(""),$t=n=>n===null||typeof n!="object"&&typeof n!="function",Ne=Array.isArray,ke=n=>Ne(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",ue=`[
14
- \f\r]`,xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ve=/-->/g,Be=/>/g,it=RegExp(`>|${ue}(?:([^\\s"'>=/]+)(${ue}*=${ue}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Re=/'/g,Ue=/"/g,Fe=/^(?:script|style|textarea|title)$/i,Bi=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),L=Bi(1),U=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),ze=new WeakMap,nt=et.createTreeWalker(et,129,null,!1),je=(n,t)=>{const e=n.length-1,i=[];let r,o=t===2?"<svg>":"",a=xt;for(let l=0;l<e;l++){const d=n[l];let c,h,p=-1,m=0;for(;m<d.length&&(a.lastIndex=m,h=a.exec(d),h!==null);)m=a.lastIndex,a===xt?h[1]==="!--"?a=Ve:h[1]!==void 0?a=Be:h[2]!==void 0?(Fe.test(h[2])&&(r=RegExp("</"+h[2],"g")),a=it):h[3]!==void 0&&(a=it):a===it?h[0]===">"?(a=r??xt,p=-1):h[1]===void 0?p=-2:(p=a.lastIndex-h[2].length,c=h[1],a=h[3]===void 0?it:h[3]==='"'?Ue:Re):a===Ue||a===Re?a=it:a===Ve||a===Be?a=xt:(a=it,r=void 0);const f=a===it&&n[l+1].startsWith("/>")?" ":"";o+=a===xt?d+Vi:p>=0?(i.push(c),d.slice(0,p)+Rt+d.slice(p)+Y+f):d+Y+(p===-2?(i.push(void 0),l):f)}const s=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Me!==void 0?Me.createHTML(s):s,i]};class At{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const s=t.length-1,l=this.parts,[d,c]=je(t,e);if(this.el=At.createElement(d,i),nt.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(r=nt.nextNode())!==null&&l.length<s;){if(r.nodeType===1){if(r.hasAttributes()){const h=[];for(const p of r.getAttributeNames())if(p.endsWith(Rt)||p.startsWith(Y)){const m=c[a++];if(h.push(p),m!==void 0){const f=r.getAttribute(m.toLowerCase()+Rt).split(Y),v=/([.?@])?(.*)/.exec(m);l.push({type:1,index:o,name:v[2],strings:f,ctor:v[1]==="."?Ye:v[1]==="?"?We:v[1]==="@"?Ge:St})}else l.push({type:6,index:o})}for(const p of h)r.removeAttribute(p)}if(Fe.test(r.tagName)){const h=r.textContent.split(Y),p=h.length-1;if(p>0){r.textContent=ct?ct.emptyScript:"";for(let m=0;m<p;m++)r.append(h[m],Ct()),nt.nextNode(),l.push({type:2,index:++o});r.append(h[p],Ct())}}}else if(r.nodeType===8)if(r.data===de)l.push({type:2,index:o});else{let h=-1;for(;(h=r.data.indexOf(Y,h+1))!==-1;)l.push({type:7,index:o}),h+=Y.length-1}o++}}static createElement(t,e){const i=et.createElement("template");return i.innerHTML=t,i}}function rt(n,t,e=n,i){var r,o,a,s;if(t===U)return t;let l=i!==void 0?(r=e._$Co)===null||r===void 0?void 0:r[i]:e._$Cl;const d=$t(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==d&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),d===void 0?l=void 0:(l=new d(n),l._$AT(n,e,i)),i!==void 0?((a=(s=e)._$Co)!==null&&a!==void 0?a:s._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=rt(n,l._$AS(n,t.values),l,i)),t}class Xe{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){var e;const{el:{content:i},parts:r}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:et).importNode(i,!0);nt.currentNode=o;let a=nt.nextNode(),s=0,l=0,d=r[0];for(;d!==void 0;){if(s===d.index){let c;d.type===2?c=new pt(a,a.nextSibling,this,t):d.type===1?c=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(c=new Ze(a,this,t)),this._$AV.push(c),d=r[++l]}s!==(d==null?void 0:d.index)&&(a=nt.nextNode(),s++)}return nt.currentNode=et,o}v(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++}}class pt{constructor(t,e,i,r){var o;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}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=rt(this,t,e),$t(t)?t===w||t==null||t===""?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ke(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==w&&$t(this._$AH)?this._$AA.nextSibling.data=t:this.$(et.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=At.createElement(r.h,this.options)),r);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const a=new Xe(o,this),s=a.u(this.options);a.v(i),this.$(s),this._$AH=a}}_$AC(t){let e=ze.get(t.strings);return e===void 0&&ze.set(t.strings,e=new At(t)),e}T(t){Ne(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new pt(this.k(Ct()),this.k(Ct()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class St{constructor(t,e,i,r,o){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(o===void 0)t=rt(this,t,e,0),a=!$t(t)||t!==this._$AH&&t!==U,a&&(this._$AH=t);else{const s=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=rt(this,s[i+l],e,l),d===U&&(d=this._$AH[l]),a||(a=!$t(d)||d!==this._$AH[l]),d===w?t=w:t!==w&&(t+=(d??"")+o[l+1]),this._$AH[l]=d}a&&!r&&this.j(t)}j(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ye extends St{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===w?void 0:t}}const Ri=ct?ct.emptyScript:"";class We extends St{constructor(){super(...arguments),this.type=4}j(t){t&&t!==w?this.element.setAttribute(this.name,Ri):this.element.removeAttribute(this.name)}}class Ge extends St{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=rt(this,t,e,0))!==null&&i!==void 0?i:w)===U)return;const r=this._$AH,o=t===w&&r!==w||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==w&&(r===w||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class Ze{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){rt(this,t)}}const Ui={O:Rt,P:Y,A:de,C:1,M:je,L:Xe,D:ke,R:rt,I:pt,V:St,H:We,N:Ge,U:Ye,F:Ze},qe=Bt.litHtmlPolyfillSupport;qe==null||qe(At,pt),((le=Bt.litHtmlVersions)!==null&&le!==void 0?le:Bt.litHtmlVersions=[]).push("2.7.4");const Fi=(n,t,e)=>{var i,r;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let a=o._$litPart$;if(a===void 0){const s=(r=e==null?void 0:e.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=a=new pt(t.insertBefore(Ct(),s),s,void 0,e??{})}return a._$AI(n),a};/**
13
+ */var le;const Bt=window,ct=Bt.trustedTypes,Me=ct?ct.createPolicy("lit-html",{createHTML:n=>n}):void 0,Rt="$lit$",Y=`lit$${(Math.random()+"").slice(9)}$`,de="?"+Y,Vi=`<${de}>`,et=document,Ct=()=>et.createComment(""),$t=n=>n===null||typeof n!="object"&&typeof n!="function",Ne=Array.isArray,ke=n=>Ne(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",he=`[
14
+ \f\r]`,At=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ve=/-->/g,Be=/>/g,it=RegExp(`>|${he}(?:([^\\s"'>=/]+)(${he}*=${he}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Re=/'/g,Ue=/"/g,Fe=/^(?:script|style|textarea|title)$/i,Bi=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),O=Bi(1),U=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),ze=new WeakMap,nt=et.createTreeWalker(et,129,null,!1),je=(n,t)=>{const e=n.length-1,i=[];let r,o=t===2?"<svg>":"",a=At;for(let s=0;s<e;s++){const d=n[s];let c,u,p=-1,m=0;for(;m<d.length&&(a.lastIndex=m,u=a.exec(d),u!==null);)m=a.lastIndex,a===At?u[1]==="!--"?a=Ve:u[1]!==void 0?a=Be:u[2]!==void 0?(Fe.test(u[2])&&(r=RegExp("</"+u[2],"g")),a=it):u[3]!==void 0&&(a=it):a===it?u[0]===">"?(a=r??At,p=-1):u[1]===void 0?p=-2:(p=a.lastIndex-u[2].length,c=u[1],a=u[3]===void 0?it:u[3]==='"'?Ue:Re):a===Ue||a===Re?a=it:a===Ve||a===Be?a=At:(a=it,r=void 0);const f=a===it&&n[s+1].startsWith("/>")?" ":"";o+=a===At?d+Vi:p>=0?(i.push(c),d.slice(0,p)+Rt+d.slice(p)+Y+f):d+Y+(p===-2?(i.push(void 0),s):f)}const l=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Me!==void 0?Me.createHTML(l):l,i]};class xt{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const l=t.length-1,s=this.parts,[d,c]=je(t,e);if(this.el=xt.createElement(d,i),nt.currentNode=this.el.content,e===2){const u=this.el.content,p=u.firstChild;p.remove(),u.append(...p.childNodes)}for(;(r=nt.nextNode())!==null&&s.length<l;){if(r.nodeType===1){if(r.hasAttributes()){const u=[];for(const p of r.getAttributeNames())if(p.endsWith(Rt)||p.startsWith(Y)){const m=c[a++];if(u.push(p),m!==void 0){const f=r.getAttribute(m.toLowerCase()+Rt).split(Y),v=/([.?@])?(.*)/.exec(m);s.push({type:1,index:o,name:v[2],strings:f,ctor:v[1]==="."?Ye:v[1]==="?"?We:v[1]==="@"?Ge:St})}else s.push({type:6,index:o})}for(const p of u)r.removeAttribute(p)}if(Fe.test(r.tagName)){const u=r.textContent.split(Y),p=u.length-1;if(p>0){r.textContent=ct?ct.emptyScript:"";for(let m=0;m<p;m++)r.append(u[m],Ct()),nt.nextNode(),s.push({type:2,index:++o});r.append(u[p],Ct())}}}else if(r.nodeType===8)if(r.data===de)s.push({type:2,index:o});else{let u=-1;for(;(u=r.data.indexOf(Y,u+1))!==-1;)s.push({type:7,index:o}),u+=Y.length-1}o++}}static createElement(t,e){const i=et.createElement("template");return i.innerHTML=t,i}}function rt(n,t,e=n,i){var r,o,a,l;if(t===U)return t;let s=i!==void 0?(r=e._$Co)===null||r===void 0?void 0:r[i]:e._$Cl;const d=$t(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((o=s==null?void 0:s._$AO)===null||o===void 0||o.call(s,!1),d===void 0?s=void 0:(s=new d(n),s._$AT(n,e,i)),i!==void 0?((a=(l=e)._$Co)!==null&&a!==void 0?a:l._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=rt(n,s._$AS(n,t.values),s,i)),t}class Xe{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){var e;const{el:{content:i},parts:r}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:et).importNode(i,!0);nt.currentNode=o;let a=nt.nextNode(),l=0,s=0,d=r[0];for(;d!==void 0;){if(l===d.index){let c;d.type===2?c=new pt(a,a.nextSibling,this,t):d.type===1?c=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(c=new qe(a,this,t)),this._$AV.push(c),d=r[++s]}l!==(d==null?void 0:d.index)&&(a=nt.nextNode(),l++)}return nt.currentNode=et,o}v(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++}}class pt{constructor(t,e,i,r){var o;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}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=rt(this,t,e),$t(t)?t===_||t==null||t===""?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ke(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==_&&$t(this._$AH)?this._$AA.nextSibling.data=t:this.$(et.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=xt.createElement(r.h,this.options)),r);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const a=new Xe(o,this),l=a.u(this.options);a.v(i),this.$(l),this._$AH=a}}_$AC(t){let e=ze.get(t.strings);return e===void 0&&ze.set(t.strings,e=new xt(t)),e}T(t){Ne(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new pt(this.k(Ct()),this.k(Ct()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class St{constructor(t,e,i,r,o){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(o===void 0)t=rt(this,t,e,0),a=!$t(t)||t!==this._$AH&&t!==U,a&&(this._$AH=t);else{const l=t;let s,d;for(t=o[0],s=0;s<o.length-1;s++)d=rt(this,l[i+s],e,s),d===U&&(d=this._$AH[s]),a||(a=!$t(d)||d!==this._$AH[s]),d===_?t=_:t!==_&&(t+=(d??"")+o[s+1]),this._$AH[s]=d}a&&!r&&this.j(t)}j(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ye extends St{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_?void 0:t}}const Ri=ct?ct.emptyScript:"";class We extends St{constructor(){super(...arguments),this.type=4}j(t){t&&t!==_?this.element.setAttribute(this.name,Ri):this.element.removeAttribute(this.name)}}class Ge extends St{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=rt(this,t,e,0))!==null&&i!==void 0?i:_)===U)return;const r=this._$AH,o=t===_&&r!==_||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==_&&(r===_||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class qe{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){rt(this,t)}}const Ui={O:Rt,P:Y,A:de,C:1,M:je,L:Xe,D:ke,R:rt,I:pt,V:St,H:We,N:Ge,U:Ye,F:qe},Ze=Bt.litHtmlPolyfillSupport;Ze==null||Ze(xt,pt),((le=Bt.litHtmlVersions)!==null&&le!==void 0?le:Bt.litHtmlVersions=[]).push("2.7.4");const Fi=(n,t,e)=>{var i,r;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let a=o._$litPart$;if(a===void 0){const l=(r=e==null?void 0:e.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=a=new pt(t.insertBefore(Ct(),l),l,void 0,e??{})}return a._$AI(n),a};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */var he,ce;let ft=class extends ht{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Fi(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return U}};ft.finalized=!0,ft._$litElement$=!0,(he=globalThis.litElementHydrateSupport)===null||he===void 0||he.call(globalThis,{LitElement:ft});const Ke=globalThis.litElementPolyfillSupport;Ke==null||Ke({LitElement:ft}),((ce=globalThis.litElementVersions)!==null&&ce!==void 0?ce:globalThis.litElementVersions=[]).push("3.3.2");/**
19
+ */var ue,ce;let ft=class extends ut{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Fi(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return U}};ft.finalized=!0,ft._$litElement$=!0,(ue=globalThis.litElementHydrateSupport)===null||ue===void 0||ue.call(globalThis,{LitElement:ft});const Ke=globalThis.litElementPolyfillSupport;Ke==null||Ke({LitElement:ft}),((ce=globalThis.litElementVersions)!==null&&ce!==void 0?ce:globalThis.litElementVersions=[]).push("3.3.2");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const Qe=n=>t=>typeof t=="function"?((e,i)=>(customElements.define(e,i),i))(n,t):((e,i)=>{const{kind:r,elements:o}=i;return{kind:r,elements:o,finisher(a){customElements.define(e,a)}}})(n,t);/**
23
+ */const Je=n=>t=>typeof t=="function"?((e,i)=>(customElements.define(e,i),i))(n,t):((e,i)=>{const{kind:r,elements:o}=i;return{kind:r,elements:o,finisher(a){customElements.define(e,a)}}})(n,t);/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
@@ -36,19 +36,19 @@
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */const ot={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Je=n=>(...t)=>({_$litDirective$:n,values:t});class ti{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
39
+ */const ot={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qe=n=>(...t)=>({_$litDirective$:n,values:t});class ti{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
40
40
  * @license
41
41
  * Copyright 2020 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */const{I:Xi}=Ui,Yi=n=>n.strings===void 0,ei=()=>document.createComment(""),Dt=(n,t,e)=>{var i;const r=n._$AA.parentNode,o=t===void 0?n._$AB:t._$AA;if(e===void 0){const a=r.insertBefore(ei(),o),s=r.insertBefore(ei(),o);e=new Xi(a,s,n,n.options)}else{const a=e._$AB.nextSibling,s=e._$AM,l=s!==n;if(l){let d;(i=e._$AQ)===null||i===void 0||i.call(e,n),e._$AM=n,e._$AP!==void 0&&(d=n._$AU)!==s._$AU&&e._$AP(d)}if(a!==o||l){let d=e._$AA;for(;d!==a;){const c=d.nextSibling;r.insertBefore(d,o),d=c}}}return e},at=(n,t,e=n)=>(n._$AI(t,e),n),Wi={},ii=(n,t=Wi)=>n._$AH=t,Gi=n=>n._$AH,fe=n=>{var t;(t=n._$AP)===null||t===void 0||t.call(n,!1,!0);let e=n._$AA;const i=n._$AB.nextSibling;for(;e!==i;){const r=e.nextSibling;e.remove(),e=r}};/**
43
+ */const{I:Xi}=Ui,Yi=n=>n.strings===void 0,ei=()=>document.createComment(""),Dt=(n,t,e)=>{var i;const r=n._$AA.parentNode,o=t===void 0?n._$AB:t._$AA;if(e===void 0){const a=r.insertBefore(ei(),o),l=r.insertBefore(ei(),o);e=new Xi(a,l,n,n.options)}else{const a=e._$AB.nextSibling,l=e._$AM,s=l!==n;if(s){let d;(i=e._$AQ)===null||i===void 0||i.call(e,n),e._$AM=n,e._$AP!==void 0&&(d=n._$AU)!==l._$AU&&e._$AP(d)}if(a!==o||s){let d=e._$AA;for(;d!==a;){const c=d.nextSibling;r.insertBefore(d,o),d=c}}}return e},at=(n,t,e=n)=>(n._$AI(t,e),n),Wi={},ii=(n,t=Wi)=>n._$AH=t,Gi=n=>n._$AH,fe=n=>{var t;(t=n._$AP)===null||t===void 0||t.call(n,!1,!0);let e=n._$AA;const i=n._$AB.nextSibling;for(;e!==i;){const r=e.nextSibling;e.remove(),e=r}};/**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const ni=(n,t,e)=>{const i=new Map;for(let r=t;r<=e;r++)i.set(n[r],r);return i},ge=Je(class extends ti{constructor(n){if(super(n),n.type!==ot.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 r=[],o=[];let a=0;for(const s of n)r[a]=i?i(s,a):a,o[a]=e(s,a),a++;return{values:o,keys:r}}render(n,t,e){return this.dt(n,t,e).values}update(n,[t,e,i]){var r;const o=Gi(n),{values:a,keys:s}=this.dt(t,e,i);if(!Array.isArray(o))return this.ht=s,a;const l=(r=this.ht)!==null&&r!==void 0?r:this.ht=[],d=[];let c,h,p=0,m=o.length-1,f=0,v=a.length-1;for(;p<=m&&f<=v;)if(o[p]===null)p++;else if(o[m]===null)m--;else if(l[p]===s[f])d[f]=at(o[p],a[f]),p++,f++;else if(l[m]===s[v])d[v]=at(o[m],a[v]),m--,v--;else if(l[p]===s[v])d[v]=at(o[p],a[v]),Dt(n,d[v+1],o[p]),p++,v--;else if(l[m]===s[f])d[f]=at(o[m],a[f]),Dt(n,o[p],o[m]),m--,f++;else if(c===void 0&&(c=ni(s,f,v),h=ni(l,p,m)),c.has(l[p]))if(c.has(l[m])){const D=h.get(s[f]),z=D!==void 0?o[D]:null;if(z===null){const P=Dt(n,o[p]);at(P,a[f]),d[f]=P}else d[f]=at(z,a[f]),Dt(n,o[p],z),o[D]=null;f++}else fe(o[m]),m--;else fe(o[p]),p++;for(;f<=v;){const D=Dt(n,d[v+1]);at(D,a[f]),d[f++]=D}for(;p<=m;){const D=o[p++];D!==null&&fe(D)}return this.ht=s,ii(n,d),U}});/**
47
+ */const ni=(n,t,e)=>{const i=new Map;for(let r=t;r<=e;r++)i.set(n[r],r);return i},ge=Qe(class extends ti{constructor(n){if(super(n),n.type!==ot.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 r=[],o=[];let a=0;for(const l of n)r[a]=i?i(l,a):a,o[a]=e(l,a),a++;return{values:o,keys:r}}render(n,t,e){return this.dt(n,t,e).values}update(n,[t,e,i]){var r;const o=Gi(n),{values:a,keys:l}=this.dt(t,e,i);if(!Array.isArray(o))return this.ht=l,a;const s=(r=this.ht)!==null&&r!==void 0?r:this.ht=[],d=[];let c,u,p=0,m=o.length-1,f=0,v=a.length-1;for(;p<=m&&f<=v;)if(o[p]===null)p++;else if(o[m]===null)m--;else if(s[p]===l[f])d[f]=at(o[p],a[f]),p++,f++;else if(s[m]===l[v])d[v]=at(o[m],a[v]),m--,v--;else if(s[p]===l[v])d[v]=at(o[p],a[v]),Dt(n,d[v+1],o[p]),p++,v--;else if(s[m]===l[f])d[f]=at(o[m],a[f]),Dt(n,o[p],o[m]),m--,f++;else if(c===void 0&&(c=ni(l,f,v),u=ni(s,p,m)),c.has(s[p]))if(c.has(s[m])){const D=u.get(l[f]),z=D!==void 0?o[D]:null;if(z===null){const P=Dt(n,o[p]);at(P,a[f]),d[f]=P}else d[f]=at(z,a[f]),Dt(n,o[p],z),o[D]=null;f++}else fe(o[m]),m--;else fe(o[p]),p++;for(;f<=v;){const D=Dt(n,d[v+1]);at(D,a[f]),d[f++]=D}for(;p<=m;){const D=o[p++];D!==null&&fe(D)}return this.ht=l,ii(n,d),U}});/**
48
48
  * @license
49
49
  * Copyright 2020 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const me=Je(class extends ti{constructor(n){if(super(n),n.type!==ot.PROPERTY&&n.type!==ot.ATTRIBUTE&&n.type!==ot.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Yi(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===U||t===w)return t;const e=n.element,i=n.name;if(n.type===ot.PROPERTY){if(t===e[i])return U}else if(n.type===ot.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return U}else if(n.type===ot.ATTRIBUTE&&e.getAttribute(i)===t+"")return U;return ii(n),t}});/**
51
+ */const me=Qe(class extends ti{constructor(n){if(super(n),n.type!==ot.PROPERTY&&n.type!==ot.ATTRIBUTE&&n.type!==ot.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Yi(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===U||t===_)return t;const e=n.element,i=n.name;if(n.type===ot.PROPERTY){if(t===e[i])return U}else if(n.type===ot.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return U}else if(n.type===ot.ATTRIBUTE&&e.getAttribute(i)===t+"")return U;return ii(n),t}});/**
52
52
  * @license
53
53
  * Copyright 2021 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
@@ -57,7 +57,7 @@
57
57
  * @author RubaXa <trash@rubaxa.org>
58
58
  * @author owenm <owen23355@gmail.com>
59
59
  * @license MIT
60
- */function oi(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),e.push.apply(e,i)}return e}function j(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?oi(Object(e),!0).forEach(function(i){Zi(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):oi(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Ut(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ut=function(t){return typeof t}:Ut=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut(n)}function Zi(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function q(){return q=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},q.apply(this,arguments)}function qi(n,t){if(n==null)return{};var e={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(e[r]=n[r]);return e}function Ki(n,t){if(n==null)return{};var e=qi(n,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var Qi="1.15.0";function W(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var K=W(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ft=W(/Edge/i),ai=W(/firefox/i),zt=W(/safari/i)&&!W(/chrome/i)&&!W(/android/i),si=W(/iP(ad|od|hone)/i),li=W(/chrome/i)&&W(/android/i),di={capture:!1,passive:!1};function C(n,t,e){n.addEventListener(t,e,!K&&di)}function _(n,t,e){n.removeEventListener(t,e,!K&&di)}function jt(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 Ji(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function X(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&jt(n,t):jt(n,t))||i&&n===e)return n;if(n===e)break}while(n=Ji(n))}return null}var ui=/\s+/g;function k(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(ui," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(ui," ")}}function g(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 mt(n,t){var e="";if(typeof n=="string")e=n;else do{var i=g(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function hi(n,t,e){if(n){var i=n.getElementsByTagName(t),r=0,o=i.length;if(e)for(;r<o;r++)e(i[r],r);return i}return[]}function Q(){var n=document.scrollingElement;return n||document.documentElement}function T(n,t,e,i,r){if(!(!n.getBoundingClientRect&&n!==window)){var o,a,s,l,d,c,h;if(n!==window&&n.parentNode&&n!==Q()?(o=n.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,d=o.right,c=o.height,h=o.width):(a=0,s=0,l=window.innerHeight,d=window.innerWidth,c=window.innerHeight,h=window.innerWidth),(t||e)&&n!==window&&(r=r||n.parentNode,!K))do if(r&&r.getBoundingClientRect&&(g(r,"transform")!=="none"||e&&g(r,"position")!=="static")){var p=r.getBoundingClientRect();a-=p.top+parseInt(g(r,"border-top-width")),s-=p.left+parseInt(g(r,"border-left-width")),l=a+o.height,d=s+o.width;break}while(r=r.parentNode);if(i&&n!==window){var m=mt(r||n),f=m&&m.a,v=m&&m.d;m&&(a/=v,s/=f,h/=f,c/=v,l=a+c,d=s+h)}return{top:a,left:s,bottom:l,right:d,width:h,height:c}}}function ci(n,t,e){for(var i=fi(n,!0),r=T(n)[t];i;){var o=T(i)[e],a=void 0;if(e==="top"||e==="left"?a=r>=o:a=r<=o,!a)return i;if(i===Q())break;i=fi(i,!1)}return!1}function vt(n,t,e,i){for(var r=0,o=0,a=n.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==y.ghost&&(i||a[o]!==y.dragged)&&X(a[o],e.draggable,n,!1)){if(r===t)return a[o];r++}o++}return null}function ve(n,t){for(var e=n.lastElementChild;e&&(e===y.ghost||g(e,"display")==="none"||t&&!jt(e,t));)e=e.previousElementSibling;return e||null}function B(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==y.clone&&(!t||jt(n,t))&&e++;return e}function pi(n){var t=0,e=0,i=Q();if(n)do{var r=mt(n),o=r.a,a=r.d;t+=n.scrollLeft*o,e+=n.scrollTop*a}while(n!==i&&(n=n.parentNode));return[t,e]}function tn(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 fi(n,t){if(!n||!n.getBoundingClientRect)return Q();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=g(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return Q();if(i||t)return e;i=!0}}while(e=e.parentNode);return Q()}function en(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function ye(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 be;function nn(n,t){return function(){if(!be){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),be=setTimeout(function(){be=void 0},t)}}}function rn(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function gi(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)}var R="Sortable"+new Date().getTime();function on(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(r){if(!(g(r,"display")==="none"||r===y.ghost)){n.push({target:r,rect:T(r)});var o=j({},n[n.length-1].rect);if(r.thisAnimationDuration){var a=mt(r,!0);a&&(o.top-=a.f,o.left-=a.e)}r.fromRect=o}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(tn(n,{target:i}),1)},animateAll:function(i){var r=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var o=!1,a=0;n.forEach(function(s){var l=0,d=s.target,c=d.fromRect,h=T(d),p=d.prevFromRect,m=d.prevToRect,f=s.rect,v=mt(d,!0);v&&(h.top-=v.f,h.left-=v.e),d.toRect=h,d.thisAnimationDuration&&ye(p,h)&&!ye(c,h)&&(f.top-h.top)/(f.left-h.left)===(c.top-h.top)/(c.left-h.left)&&(l=sn(f,p,m,r.options)),ye(h,c)||(d.prevFromRect=c,d.prevToRect=h,l||(l=r.options.animation),r.animate(d,f,h,l)),l&&(o=!0,a=Math.max(a,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof i=="function"&&i()},a):typeof i=="function"&&i(),n=[]},animate:function(i,r,o,a){if(a){g(i,"transition",""),g(i,"transform","");var s=mt(this.el),l=s&&s.a,d=s&&s.d,c=(r.left-o.left)/(l||1),h=(r.top-o.top)/(d||1);i.animatingX=!!c,i.animatingY=!!h,g(i,"transform","translate3d("+c+"px,"+h+"px,0)"),this.forRepaintDummy=an(i),g(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){g(i,"transition",""),g(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},a)}}}}function an(n){return n.offsetWidth}function sn(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 yt=[],Ee={initializeByDefault:!0},Tt={mount:function(t){for(var e in Ee)Ee.hasOwnProperty(e)&&!(e in t)&&(t[e]=Ee[e]);yt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),yt.push(t)},pluginEvent:function(t,e,i){var r=this;this.eventCanceled=!1,i.cancel=function(){r.eventCanceled=!0};var o=t+"Global";yt.forEach(function(a){e[a.pluginName]&&(e[a.pluginName][o]&&e[a.pluginName][o](j({sortable:e},i)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](j({sortable:e},i)))})},initializePlugins:function(t,e,i,r){yt.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var d=new s(t,e,t.options);d.sortable=t,d.options=t.options,t[l]=d,q(i,d.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,e){var i={};return yt.forEach(function(r){typeof r.eventProperties=="function"&&q(i,r.eventProperties.call(e[r.pluginName],t))}),i},modifyOption:function(t,e,i){var r;return yt.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],i))}),r}};function ln(n){var t=n.sortable,e=n.rootEl,i=n.name,r=n.targetEl,o=n.cloneEl,a=n.toEl,s=n.fromEl,l=n.oldIndex,d=n.newIndex,c=n.oldDraggableIndex,h=n.newDraggableIndex,p=n.originalEvent,m=n.putSortable,f=n.extraEventProperties;if(t=t||e&&e[R],!!t){var v,D=t.options,z="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!K&&!Ft?v=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(i,!0,!0)),v.to=a||e,v.from=s||e,v.item=r||e,v.clone=o,v.oldIndex=l,v.newIndex=d,v.oldDraggableIndex=c,v.newDraggableIndex=h,v.originalEvent=p,v.pullMode=m?m.lastPutMode:void 0;var P=j(j({},f),Tt.getEventProperties(i,t));for(var ut in P)v[ut]=P[ut];e&&e.dispatchEvent(v),D[z]&&D[z].call(t,v)}}var dn=["evt"],N=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.evt,o=Ki(i,dn);Tt.pluginEvent.bind(y)(t,e,j({dragEl:u,parentEl:A,ghostEl:b,rootEl:$,nextEl:st,lastDownEl:Xt,cloneEl:x,cloneHidden:J,dragStarted:Lt,putSortable:O,activeSortable:y.active,originalEvent:r,oldIndex:bt,oldDraggableIndex:Ot,newIndex:V,newDraggableIndex:tt,hideGhostForTarget:wi,unhideGhostForTarget:Ci,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(s){I({sortable:e,name:s,originalEvent:r})}},o))};function I(n){ln(j({putSortable:O,cloneEl:x,targetEl:u,rootEl:$,oldIndex:bt,oldDraggableIndex:Ot,newIndex:V,newDraggableIndex:tt},n))}var u,A,b,$,st,Xt,x,J,bt,V,Ot,tt,Yt,O,Et=!1,Wt=!1,Gt=[],lt,F,_e,we,mi,vi,Lt,_t,Ht,Pt=!1,Zt=!1,qt,H,Ce=[],$e=!1,Kt=[],Qt=typeof document<"u",Jt=si,yi=Ft||K?"cssFloat":"float",un=Qt&&!li&&!si&&"draggable"in document.createElement("div"),bi=function(){if(Qt){if(K)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Ei=function(t,e){var i=g(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=vt(t,0,e),a=vt(t,1,e),s=o&&g(o),l=a&&g(a),d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+T(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+T(a).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(o&&s.float&&s.float!=="none"){var h=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===h)?"vertical":"horizontal"}return o&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||d>=r&&i[yi]==="none"||a&&i[yi]==="none"&&d+c>r)?"vertical":"horizontal"},hn=function(t,e,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,s=i?e.left:e.top,l=i?e.right:e.bottom,d=i?e.width:e.height;return r===s||o===l||r+a/2===s+d/2},cn=function(t,e){var i;return Gt.some(function(r){var o=r[R].options.emptyInsertThreshold;if(!(!o||ve(r))){var a=T(r),s=t>=a.left-o&&t<=a.right+o,l=e>=a.top-o&&e<=a.bottom+o;if(s&&l)return i=r}}),i},_i=function(t){function e(o,a){return function(s,l,d,c){var h=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(o==null&&(a||h))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return e(o(s,l,d,c),a)(s,l,d,c);var p=(a?s:l).options.group.name;return o===!0||typeof o=="string"&&o===p||o.join&&o.indexOf(p)>-1}}var i={},r=t.group;(!r||Ut(r)!="object")&&(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},wi=function(){!bi&&b&&g(b,"display","none")},Ci=function(){!bi&&b&&g(b,"display","")};Qt&&!li&&document.addEventListener("click",function(n){if(Wt)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Wt=!1,!1},!0);var dt=function(t){if(u){t=t.touches?t.touches[0]:t;var e=cn(t.clientX,t.clientY);if(e){var i={};for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[R]._onDragOver(i)}}},pn=function(t){u&&u.parentNode[R]._isOutsideThisEl(t.target)};function y(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=q({},t),n[R]=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 Ei(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(a,s){a.setData("Text",s.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:y.supportPointer!==!1&&"PointerEvent"in window&&!zt,emptyInsertThreshold:5};Tt.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);_i(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:un,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(n,"pointerdown",this._onTapStart):(C(n,"mousedown",this._onTapStart),C(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(n,"dragover",this),C(n,"dragenter",this)),Gt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),q(this,on())}y.prototype={constructor:y,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(_t=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,r=this.options,o=r.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=r.filter;if(_n(i),!u&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&zt&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=X(l,r.draggable,i,!1),!(l&&l.animated)&&Xt!==l)){if(bt=B(l),Ot=B(l,r.draggable),typeof c=="function"){if(c.call(this,t,l,this)){I({sortable:e,rootEl:d,name:"filter",targetEl:l,toEl:i,fromEl:i}),N("filter",e,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(h){if(h=X(d,h.trim(),i,!1),h)return I({sortable:e,rootEl:h,name:"filter",targetEl:l,fromEl:i,toEl:i}),N("filter",e,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!X(d,r.handle,i,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,e,i){var r=this,o=r.el,a=r.options,s=o.ownerDocument,l;if(i&&!u&&i.parentNode===o){var d=T(i);if($=o,u=i,A=u.parentNode,st=u.nextSibling,Xt=i,Yt=a.group,y.dragged=u,lt={target:u,clientX:(e||t).clientX,clientY:(e||t).clientY},mi=lt.clientX-d.left,vi=lt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,u.style["will-change"]="all",l=function(){if(N("delayEnded",r,{evt:t}),y.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!ai&&r.nativeDraggable&&(u.draggable=!0),r._triggerDragStart(t,e),I({sortable:r,name:"choose",originalEvent:t}),k(u,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){hi(u,c.trim(),xe)}),C(s,"dragover",dt),C(s,"mousemove",dt),C(s,"touchmove",dt),C(s,"mouseup",r._onDrop),C(s,"touchend",r._onDrop),C(s,"touchcancel",r._onDrop),ai&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),N("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Ft||K))){if(y.eventCanceled){this._onDrop();return}C(s,"mouseup",r._disableDelayedDrag),C(s,"touchend",r._disableDelayedDrag),C(s,"touchcancel",r._disableDelayedDrag),C(s,"mousemove",r._delayedDragTouchMoveHandler),C(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&C(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,a.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(){u&&xe(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):e?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(u,"dragend",this),C($,"dragstart",this._onDragStart));try{document.selection?ee(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Et=!1,$&&u){N("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",pn);var i=this.options;!t&&k(u,i.dragClass,!1),k(u,i.ghostClass,!0),y.active=this,t&&this._appendGhost(),I({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(F){this._lastX=F.clientX,this._lastY=F.clientY,wi();for(var t=document.elementFromPoint(F.clientX,F.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(F.clientX,F.clientY),t!==e);)e=t;if(u.parentNode[R]._isOutsideThisEl(t),e)do{if(e[R]){var i=void 0;if(i=e[R]._onDragOver({clientX:F.clientX,clientY:F.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ci()}},_onTouchMove:function(t){if(lt){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=b&&mt(b,!0),s=b&&a&&a.a,l=b&&a&&a.d,d=Jt&&H&&pi(H),c=(o.clientX-lt.clientX+r.x)/(s||1)+(d?d[0]-Ce[0]:0)/(s||1),h=(o.clientY-lt.clientY+r.y)/(l||1)+(d?d[1]-Ce[1]:0)/(l||1);if(!y.active&&!Et){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(b){a?(a.e+=c-(_e||0),a.f+=h-(we||0)):a={a:1,b:0,c:0,d:1,e:c,f:h};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(b,"webkitTransform",p),g(b,"mozTransform",p),g(b,"msTransform",p),g(b,"transform",p),_e=c,we=h,F=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!b){var t=this.options.fallbackOnBody?document.body:$,e=T(u,!0,Jt,!0,t),i=this.options;if(Jt){for(H=t;g(H,"position")==="static"&&g(H,"transform")==="none"&&H!==document;)H=H.parentNode;H!==document.body&&H!==document.documentElement?(H===document&&(H=Q()),e.top+=H.scrollTop,e.left+=H.scrollLeft):H=Q(),Ce=pi(H)}b=u.cloneNode(!0),k(b,i.ghostClass,!1),k(b,i.fallbackClass,!0),k(b,i.dragClass,!0),g(b,"transition",""),g(b,"transform",""),g(b,"box-sizing","border-box"),g(b,"margin",0),g(b,"top",e.top),g(b,"left",e.left),g(b,"width",e.width),g(b,"height",e.height),g(b,"opacity","0.8"),g(b,"position",Jt?"absolute":"fixed"),g(b,"zIndex","100000"),g(b,"pointerEvents","none"),y.ghost=b,t.appendChild(b),g(b,"transform-origin",mi/parseInt(b.style.width)*100+"% "+vi/parseInt(b.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,r=t.dataTransfer,o=i.options;if(N("dragStart",this,{evt:t}),y.eventCanceled){this._onDrop();return}N("setupClone",this),y.eventCanceled||(x=gi(u),x.removeAttribute("id"),x.draggable=!1,x.style["will-change"]="",this._hideClone(),k(x,this.options.chosenClass,!1),y.clone=x),i.cloneId=ee(function(){N("clone",i),!y.eventCanceled&&(i.options.removeCloneOnHide||$.insertBefore(x,u),i._hideClone(),I({sortable:i,name:"clone"}))}),!e&&k(u,o.dragClass,!0),e?(Wt=!0,i._loopId=setInterval(i._emulateDragOver,50)):(_(document,"mouseup",i._onDrop),_(document,"touchend",i._onDrop),_(document,"touchcancel",i._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(i,r,u)),C(document,"drop",i),g(u,"transform","translateZ(0)")),Et=!0,i._dragStartId=ee(i._dragStarted.bind(i,e,t)),C(document,"selectstart",i),Lt=!0,zt&&g(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,r,o,a,s=this.options,l=s.group,d=y.active,c=Yt===l,h=s.sort,p=O||d,m,f=this,v=!1;if($e)return;function D(kt,An){N(kt,f,j({evt:t,isOwner:c,axis:m?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:h,fromSortable:p,target:i,completed:P,onMove:function(Pi,Sn){return te($,e,u,r,Pi,T(Pi),t,Sn)},changed:ut},An))}function z(){D("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function P(kt){return D("dragOverCompleted",{insertion:kt}),kt&&(c?d._hideClone():d._showClone(f),f!==p&&(k(u,O?O.options.ghostClass:d.options.ghostClass,!1),k(u,s.ghostClass,!0)),O!==f&&f!==y.active?O=f:f===y.active&&O&&(O=null),p===f&&(f._ignoreWhileAnimating=i),f.animateAll(function(){D("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===u&&!u.animated||i===e&&!i.animated)&&(_t=null),!s.dragoverBubble&&!t.rootEl&&i!==document&&(u.parentNode[R]._isOutsideThisEl(t.target),!kt&&dt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function ut(){V=B(u),tt=B(u,s.draggable),I({sortable:f,name:"change",toEl:e,newIndex:V,newDraggableIndex:tt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=X(i,s.draggable,e,!0),D("dragOver"),y.eventCanceled)return v;if(u.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i)return P(!1);if(Wt=!1,d&&!s.disabled&&(c?h||(a=A!==$):O===this||(this.lastPutMode=Yt.checkPull(this,d,u,t))&&l.checkPut(this,d,u,t))){if(m=this._getDirection(t,i)==="vertical",r=T(u),D("dragOverValid"),y.eventCanceled)return v;if(a)return A=$,z(),this._hideClone(),D("revert"),y.eventCanceled||(st?$.insertBefore(u,st):$.appendChild(u)),P(!0);var G=ve(e,s.draggable);if(!G||vn(t,m,this)&&!G.animated){if(G===u)return P(!1);if(G&&e===t.target&&(i=G),i&&(o=T(i)),te($,e,u,r,i,o,t,!!i)!==!1)return z(),G&&G.nextSibling?e.insertBefore(u,G.nextSibling):e.appendChild(u),A=e,ut(),P(!0)}else if(G&&mn(t,m,this)){var Se=vt(e,0,s,!0);if(Se===u)return P(!1);if(i=Se,o=T(i),te($,e,u,r,i,o,t,!1)!==!1)return z(),e.insertBefore(u,Se),A=e,ut(),P(!0)}else if(i.parentNode===e){o=T(i);var wt=0,De,$n=u.parentNode!==e,Ti=!hn(u.animated&&u.toRect||r,i.animated&&i.toRect||o,m),Oi=m?"top":"left",It=ci(i,"top","top")||ci(u,"top","top"),xn=It?It.scrollTop:void 0;_t!==i&&(De=o[Oi],Pt=!1,Zt=!Ti&&s.invertSwap||$n),wt=yn(t,i,o,m,Ti?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Zt,_t===i);var Mt;if(wt!==0){var Li=B(u);do Li-=wt,Mt=A.children[Li];while(Mt&&(g(Mt,"display")==="none"||Mt===b))}if(wt===0||Mt===i)return P(!1);_t=i,Ht=wt;var Hi=i.nextElementSibling,Nt=!1;Nt=wt===1;var ie=te($,e,u,r,i,o,t,Nt);if(ie!==!1)return(ie===1||ie===-1)&&(Nt=ie===1),$e=!0,setTimeout(gn,30),z(),Nt&&!Hi?e.appendChild(u):i.parentNode.insertBefore(u,Nt?Hi:i),It&&rn(It,0,xn-It.scrollTop),A=u.parentNode,De!==void 0&&!Zt&&(qt=Math.abs(De-T(i)[Oi])),ut(),P(!0)}if(e.contains(u))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",dt),_(document,"mousemove",dt),_(document,"touchmove",dt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(V=B(u),tt=B(u,i.draggable),N("drop",this,{evt:t}),A=u&&u.parentNode,V=B(u),tt=B(u,i.draggable),y.eventCanceled){this._nulling();return}Et=!1,Zt=!1,Pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ae(this.cloneId),Ae(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),zt&&g(document.body,"user-select",""),g(u,"transform",""),t&&(Lt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),($===A||O&&O.lastPutMode!=="clone")&&x&&x.parentNode&&x.parentNode.removeChild(x),u&&(this.nativeDraggable&&_(u,"dragend",this),xe(u),u.style["will-change"]="",Lt&&!Et&&k(u,O?O.options.ghostClass:this.options.ghostClass,!1),k(u,this.options.chosenClass,!1),I({sortable:this,name:"unchoose",toEl:A,newIndex:null,newDraggableIndex:null,originalEvent:t}),$!==A?(V>=0&&(I({rootEl:A,name:"add",toEl:A,fromEl:$,originalEvent:t}),I({sortable:this,name:"remove",toEl:A,originalEvent:t}),I({rootEl:A,name:"sort",toEl:A,fromEl:$,originalEvent:t}),I({sortable:this,name:"sort",toEl:A,originalEvent:t})),O&&O.save()):V!==bt&&V>=0&&(I({sortable:this,name:"update",toEl:A,originalEvent:t}),I({sortable:this,name:"sort",toEl:A,originalEvent:t})),y.active&&((V==null||V===-1)&&(V=bt,tt=Ot),I({sortable:this,name:"end",toEl:A,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),$=u=A=b=st=x=Xt=J=lt=F=Lt=V=tt=bt=Ot=_t=Ht=O=Yt=y.dragged=y.ghost=y.clone=y.active=null,Kt.forEach(function(t){t.checked=!0}),Kt.length=_e=we=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),fn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,r=0,o=i.length,a=this.options;r<o;r++)e=i[r],X(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||En(e));return t},sort:function(t,e){var i={},r=this.el;this.toArray().forEach(function(o,a){var s=r.children[a];X(s,this.options.draggable,r,!1)&&(i[o]=s)},this),e&&this.captureAnimationState(),t.forEach(function(o){i[o]&&(r.removeChild(i[o]),r.appendChild(i[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return X(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var r=Tt.modifyOption(this,t,e);typeof r<"u"?i[t]=r:i[t]=e,t==="group"&&_i(i)},destroy:function(){N("destroy",this);var t=this.el;t[R]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Gt.splice(Gt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!J){if(N("hideClone",this),y.eventCanceled)return;g(x,"display","none"),this.options.removeCloneOnHide&&x.parentNode&&x.parentNode.removeChild(x),J=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(J){if(N("showClone",this),y.eventCanceled)return;u.parentNode==$&&!this.options.group.revertClone?$.insertBefore(x,u):st?$.insertBefore(x,st):$.appendChild(x),this.options.group.revertClone&&this.animate(u,x),g(x,"display",""),J=!1}}};function fn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function te(n,t,e,i,r,o,a,s){var l,d=n[R],c=d.options.onMove,h;return window.CustomEvent&&!K&&!Ft?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=r||t,l.relatedRect=o||T(t),l.willInsertAfter=s,l.originalEvent=a,n.dispatchEvent(l),c&&(h=c.call(d,l,a)),h}function xe(n){n.draggable=!1}function gn(){$e=!1}function mn(n,t,e){var i=T(vt(e.el,0,e.options,!0)),r=10;return t?n.clientX<i.left-r||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-r||n.clientY<i.bottom&&n.clientX<i.left}function vn(n,t,e){var i=T(ve(e.el,e.options.draggable)),r=10;return t?n.clientX>i.right+r||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+r}function yn(n,t,e,i,r,o,a,s){var l=i?n.clientY:n.clientX,d=i?e.height:e.width,c=i?e.top:e.left,h=i?e.bottom:e.right,p=!1;if(!a){if(s&&qt<d*r){if(!Pt&&(Ht===1?l>c+d*o/2:l<h-d*o/2)&&(Pt=!0),Pt)p=!0;else if(Ht===1?l<c+qt:l>h-qt)return-Ht}else if(l>c+d*(1-r)/2&&l<h-d*(1-r)/2)return bn(t)}return p=p||a,p&&(l<c+d*o/2||l>h-d*o/2)?l>c+d/2?1:-1:0}function bn(n){return B(u)<B(n)?1:-1}function En(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 _n(n){Kt.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&Kt.push(i)}}function ee(n){return setTimeout(n,0)}function Ae(n){return clearTimeout(n)}Qt&&C(document,"touchmove",function(n){(y.active||Et)&&n.cancelable&&n.preventDefault()}),y.utils={on:C,off:_,css:g,find:hi,is:function(t,e){return!!X(t,e,t,!1)},extend:en,throttle:nn,closest:X,toggleClass:k,clone:gi,index:B,nextTick:ee,cancelNextTick:Ae,detectDirection:Ei,getChild:vt},y.get=function(n){return n[R]},y.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&&(y.utils=j(j({},y.utils),i.utils)),Tt.mount(i)})},y.create=function(n,t){return new y(n,t)},y.version=Qi;var $i=function(t){var e=t.originalEvent,i=t.putSortable,r=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var d=i||o;s();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,h=document.elementFromPoint(c.clientX,c.clientY);l(),d&&!d.el.contains(h)&&(a("spill"),this.onSpill({dragEl:r,putSortable:i}))}};function xi(){}xi.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 r=vt(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:$i},q(xi,{pluginName:"revertOnSpill"});function Ai(){}Ai.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,r=i||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:$i},q(Ai,{pluginName:"removeOnSpill"});const Si=`
60
+ */function oi(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),e.push.apply(e,i)}return e}function j(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?oi(Object(e),!0).forEach(function(i){qi(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):oi(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Ut(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ut=function(t){return typeof t}:Ut=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut(n)}function qi(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Z(){return Z=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},Z.apply(this,arguments)}function Zi(n,t){if(n==null)return{};var e={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(e[r]=n[r]);return e}function Ki(n,t){if(n==null)return{};var e=Zi(n,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var Ji="1.15.0";function W(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var K=W(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ft=W(/Edge/i),ai=W(/firefox/i),zt=W(/safari/i)&&!W(/chrome/i)&&!W(/android/i),si=W(/iP(ad|od|hone)/i),li=W(/chrome/i)&&W(/android/i),di={capture:!1,passive:!1};function C(n,t,e){n.addEventListener(t,e,!K&&di)}function w(n,t,e){n.removeEventListener(t,e,!K&&di)}function jt(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 Qi(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function X(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&jt(n,t):jt(n,t))||i&&n===e)return n;if(n===e)break}while(n=Qi(n))}return null}var hi=/\s+/g;function k(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(hi," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(hi," ")}}function g(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 mt(n,t){var e="";if(typeof n=="string")e=n;else do{var i=g(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function ui(n,t,e){if(n){var i=n.getElementsByTagName(t),r=0,o=i.length;if(e)for(;r<o;r++)e(i[r],r);return i}return[]}function J(){var n=document.scrollingElement;return n||document.documentElement}function T(n,t,e,i,r){if(!(!n.getBoundingClientRect&&n!==window)){var o,a,l,s,d,c,u;if(n!==window&&n.parentNode&&n!==J()?(o=n.getBoundingClientRect(),a=o.top,l=o.left,s=o.bottom,d=o.right,c=o.height,u=o.width):(a=0,l=0,s=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||e)&&n!==window&&(r=r||n.parentNode,!K))do if(r&&r.getBoundingClientRect&&(g(r,"transform")!=="none"||e&&g(r,"position")!=="static")){var p=r.getBoundingClientRect();a-=p.top+parseInt(g(r,"border-top-width")),l-=p.left+parseInt(g(r,"border-left-width")),s=a+o.height,d=l+o.width;break}while(r=r.parentNode);if(i&&n!==window){var m=mt(r||n),f=m&&m.a,v=m&&m.d;m&&(a/=v,l/=f,u/=f,c/=v,s=a+c,d=l+u)}return{top:a,left:l,bottom:s,right:d,width:u,height:c}}}function ci(n,t,e){for(var i=fi(n,!0),r=T(n)[t];i;){var o=T(i)[e],a=void 0;if(e==="top"||e==="left"?a=r>=o:a=r<=o,!a)return i;if(i===J())break;i=fi(i,!1)}return!1}function vt(n,t,e,i){for(var r=0,o=0,a=n.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==y.ghost&&(i||a[o]!==y.dragged)&&X(a[o],e.draggable,n,!1)){if(r===t)return a[o];r++}o++}return null}function ve(n,t){for(var e=n.lastElementChild;e&&(e===y.ghost||g(e,"display")==="none"||t&&!jt(e,t));)e=e.previousElementSibling;return e||null}function B(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==y.clone&&(!t||jt(n,t))&&e++;return e}function pi(n){var t=0,e=0,i=J();if(n)do{var r=mt(n),o=r.a,a=r.d;t+=n.scrollLeft*o,e+=n.scrollTop*a}while(n!==i&&(n=n.parentNode));return[t,e]}function tn(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 fi(n,t){if(!n||!n.getBoundingClientRect)return J();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=g(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return J();if(i||t)return e;i=!0}}while(e=e.parentNode);return J()}function en(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function ye(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 be;function nn(n,t){return function(){if(!be){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),be=setTimeout(function(){be=void 0},t)}}}function rn(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function gi(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)}var R="Sortable"+new Date().getTime();function on(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(r){if(!(g(r,"display")==="none"||r===y.ghost)){n.push({target:r,rect:T(r)});var o=j({},n[n.length-1].rect);if(r.thisAnimationDuration){var a=mt(r,!0);a&&(o.top-=a.f,o.left-=a.e)}r.fromRect=o}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(tn(n,{target:i}),1)},animateAll:function(i){var r=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var o=!1,a=0;n.forEach(function(l){var s=0,d=l.target,c=d.fromRect,u=T(d),p=d.prevFromRect,m=d.prevToRect,f=l.rect,v=mt(d,!0);v&&(u.top-=v.f,u.left-=v.e),d.toRect=u,d.thisAnimationDuration&&ye(p,u)&&!ye(c,u)&&(f.top-u.top)/(f.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(s=sn(f,p,m,r.options)),ye(u,c)||(d.prevFromRect=c,d.prevToRect=u,s||(s=r.options.animation),r.animate(d,f,u,s)),s&&(o=!0,a=Math.max(a,s),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},s),d.thisAnimationDuration=s)}),clearTimeout(t),o?t=setTimeout(function(){typeof i=="function"&&i()},a):typeof i=="function"&&i(),n=[]},animate:function(i,r,o,a){if(a){g(i,"transition",""),g(i,"transform","");var l=mt(this.el),s=l&&l.a,d=l&&l.d,c=(r.left-o.left)/(s||1),u=(r.top-o.top)/(d||1);i.animatingX=!!c,i.animatingY=!!u,g(i,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=an(i),g(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){g(i,"transition",""),g(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},a)}}}}function an(n){return n.offsetWidth}function sn(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 yt=[],Ee={initializeByDefault:!0},Tt={mount:function(t){for(var e in Ee)Ee.hasOwnProperty(e)&&!(e in t)&&(t[e]=Ee[e]);yt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),yt.push(t)},pluginEvent:function(t,e,i){var r=this;this.eventCanceled=!1,i.cancel=function(){r.eventCanceled=!0};var o=t+"Global";yt.forEach(function(a){e[a.pluginName]&&(e[a.pluginName][o]&&e[a.pluginName][o](j({sortable:e},i)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](j({sortable:e},i)))})},initializePlugins:function(t,e,i,r){yt.forEach(function(l){var s=l.pluginName;if(!(!t.options[s]&&!l.initializeByDefault)){var d=new l(t,e,t.options);d.sortable=t,d.options=t.options,t[s]=d,Z(i,d.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,e){var i={};return yt.forEach(function(r){typeof r.eventProperties=="function"&&Z(i,r.eventProperties.call(e[r.pluginName],t))}),i},modifyOption:function(t,e,i){var r;return yt.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],i))}),r}};function ln(n){var t=n.sortable,e=n.rootEl,i=n.name,r=n.targetEl,o=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,d=n.newIndex,c=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,m=n.putSortable,f=n.extraEventProperties;if(t=t||e&&e[R],!!t){var v,D=t.options,z="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!K&&!Ft?v=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(i,!0,!0)),v.to=a||e,v.from=l||e,v.item=r||e,v.clone=o,v.oldIndex=s,v.newIndex=d,v.oldDraggableIndex=c,v.newDraggableIndex=u,v.originalEvent=p,v.pullMode=m?m.lastPutMode:void 0;var P=j(j({},f),Tt.getEventProperties(i,t));for(var ht in P)v[ht]=P[ht];e&&e.dispatchEvent(v),D[z]&&D[z].call(t,v)}}var dn=["evt"],N=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.evt,o=Ki(i,dn);Tt.pluginEvent.bind(y)(t,e,j({dragEl:h,parentEl:x,ghostEl:b,rootEl:$,nextEl:st,lastDownEl:Xt,cloneEl:A,cloneHidden:Q,dragStarted:Lt,putSortable:L,activeSortable:y.active,originalEvent:r,oldIndex:bt,oldDraggableIndex:Ot,newIndex:V,newDraggableIndex:tt,hideGhostForTarget:wi,unhideGhostForTarget:Ci,cloneNowHidden:function(){Q=!0},cloneNowShown:function(){Q=!1},dispatchSortableEvent:function(l){I({sortable:e,name:l,originalEvent:r})}},o))};function I(n){ln(j({putSortable:L,cloneEl:A,targetEl:h,rootEl:$,oldIndex:bt,oldDraggableIndex:Ot,newIndex:V,newDraggableIndex:tt},n))}var h,x,b,$,st,Xt,A,Q,bt,V,Ot,tt,Yt,L,Et=!1,Wt=!1,Gt=[],lt,F,_e,we,mi,vi,Lt,_t,Ht,Pt=!1,qt=!1,Zt,H,Ce=[],$e=!1,Kt=[],Jt=typeof document<"u",Qt=si,yi=Ft||K?"cssFloat":"float",hn=Jt&&!li&&!si&&"draggable"in document.createElement("div"),bi=function(){if(Jt){if(K)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Ei=function(t,e){var i=g(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=vt(t,0,e),a=vt(t,1,e),l=o&&g(o),s=a&&g(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+T(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+T(a).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(o&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=r&&i[yi]==="none"||a&&i[yi]==="none"&&d+c>r)?"vertical":"horizontal"},un=function(t,e,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,l=i?e.left:e.top,s=i?e.right:e.bottom,d=i?e.width:e.height;return r===l||o===s||r+a/2===l+d/2},cn=function(t,e){var i;return Gt.some(function(r){var o=r[R].options.emptyInsertThreshold;if(!(!o||ve(r))){var a=T(r),l=t>=a.left-o&&t<=a.right+o,s=e>=a.top-o&&e<=a.bottom+o;if(l&&s)return i=r}}),i},_i=function(t){function e(o,a){return function(l,s,d,c){var u=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(o==null&&(a||u))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return e(o(l,s,d,c),a)(l,s,d,c);var p=(a?l:s).options.group.name;return o===!0||typeof o=="string"&&o===p||o.join&&o.indexOf(p)>-1}}var i={},r=t.group;(!r||Ut(r)!="object")&&(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},wi=function(){!bi&&b&&g(b,"display","none")},Ci=function(){!bi&&b&&g(b,"display","")};Jt&&!li&&document.addEventListener("click",function(n){if(Wt)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Wt=!1,!1},!0);var dt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=cn(t.clientX,t.clientY);if(e){var i={};for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[R]._onDragOver(i)}}},pn=function(t){h&&h.parentNode[R]._isOutsideThisEl(t.target)};function y(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=Z({},t),n[R]=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 Ei(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(a,l){a.setData("Text",l.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:y.supportPointer!==!1&&"PointerEvent"in window&&!zt,emptyInsertThreshold:5};Tt.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);_i(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:hn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(n,"pointerdown",this._onTapStart):(C(n,"mousedown",this._onTapStart),C(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(n,"dragover",this),C(n,"dragenter",this)),Gt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Z(this,on())}y.prototype={constructor:y,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(_t=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,r=this.options,o=r.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=r.filter;if(_n(i),!h&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&zt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=X(s,r.draggable,i,!1),!(s&&s.animated)&&Xt!==s)){if(bt=B(s),Ot=B(s,r.draggable),typeof c=="function"){if(c.call(this,t,s,this)){I({sortable:e,rootEl:d,name:"filter",targetEl:s,toEl:i,fromEl:i}),N("filter",e,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=X(d,u.trim(),i,!1),u)return I({sortable:e,rootEl:u,name:"filter",targetEl:s,fromEl:i,toEl:i}),N("filter",e,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!X(d,r.handle,i,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,i){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(i&&!h&&i.parentNode===o){var d=T(i);if($=o,h=i,x=h.parentNode,st=h.nextSibling,Xt=i,Yt=a.group,y.dragged=h,lt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},mi=lt.clientX-d.left,vi=lt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",s=function(){if(N("delayEnded",r,{evt:t}),y.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!ai&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(t,e),I({sortable:r,name:"choose",originalEvent:t}),k(h,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){ui(h,c.trim(),Ae)}),C(l,"dragover",dt),C(l,"mousemove",dt),C(l,"touchmove",dt),C(l,"mouseup",r._onDrop),C(l,"touchend",r._onDrop),C(l,"touchcancel",r._onDrop),ai&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),N("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Ft||K))){if(y.eventCanceled){this._onDrop();return}C(l,"mouseup",r._disableDelayedDrag),C(l,"touchend",r._disableDelayedDrag),C(l,"touchcancel",r._disableDelayedDrag),C(l,"mousemove",r._delayedDragTouchMoveHandler),C(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&C(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_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&&Ae(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._disableDelayedDrag),w(t,"touchend",this._disableDelayedDrag),w(t,"touchcancel",this._disableDelayedDrag),w(t,"mousemove",this._delayedDragTouchMoveHandler),w(t,"touchmove",this._delayedDragTouchMoveHandler),w(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):e?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C($,"dragstart",this._onDragStart));try{document.selection?ee(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Et=!1,$&&h){N("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",pn);var i=this.options;!t&&k(h,i.dragClass,!1),k(h,i.ghostClass,!0),y.active=this,t&&this._appendGhost(),I({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(F){this._lastX=F.clientX,this._lastY=F.clientY,wi();for(var t=document.elementFromPoint(F.clientX,F.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(F.clientX,F.clientY),t!==e);)e=t;if(h.parentNode[R]._isOutsideThisEl(t),e)do{if(e[R]){var i=void 0;if(i=e[R]._onDragOver({clientX:F.clientX,clientY:F.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ci()}},_onTouchMove:function(t){if(lt){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=b&&mt(b,!0),l=b&&a&&a.a,s=b&&a&&a.d,d=Qt&&H&&pi(H),c=(o.clientX-lt.clientX+r.x)/(l||1)+(d?d[0]-Ce[0]:0)/(l||1),u=(o.clientY-lt.clientY+r.y)/(s||1)+(d?d[1]-Ce[1]:0)/(s||1);if(!y.active&&!Et){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(b){a?(a.e+=c-(_e||0),a.f+=u-(we||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(b,"webkitTransform",p),g(b,"mozTransform",p),g(b,"msTransform",p),g(b,"transform",p),_e=c,we=u,F=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!b){var t=this.options.fallbackOnBody?document.body:$,e=T(h,!0,Qt,!0,t),i=this.options;if(Qt){for(H=t;g(H,"position")==="static"&&g(H,"transform")==="none"&&H!==document;)H=H.parentNode;H!==document.body&&H!==document.documentElement?(H===document&&(H=J()),e.top+=H.scrollTop,e.left+=H.scrollLeft):H=J(),Ce=pi(H)}b=h.cloneNode(!0),k(b,i.ghostClass,!1),k(b,i.fallbackClass,!0),k(b,i.dragClass,!0),g(b,"transition",""),g(b,"transform",""),g(b,"box-sizing","border-box"),g(b,"margin",0),g(b,"top",e.top),g(b,"left",e.left),g(b,"width",e.width),g(b,"height",e.height),g(b,"opacity","0.8"),g(b,"position",Qt?"absolute":"fixed"),g(b,"zIndex","100000"),g(b,"pointerEvents","none"),y.ghost=b,t.appendChild(b),g(b,"transform-origin",mi/parseInt(b.style.width)*100+"% "+vi/parseInt(b.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,r=t.dataTransfer,o=i.options;if(N("dragStart",this,{evt:t}),y.eventCanceled){this._onDrop();return}N("setupClone",this),y.eventCanceled||(A=gi(h),A.removeAttribute("id"),A.draggable=!1,A.style["will-change"]="",this._hideClone(),k(A,this.options.chosenClass,!1),y.clone=A),i.cloneId=ee(function(){N("clone",i),!y.eventCanceled&&(i.options.removeCloneOnHide||$.insertBefore(A,h),i._hideClone(),I({sortable:i,name:"clone"}))}),!e&&k(h,o.dragClass,!0),e?(Wt=!0,i._loopId=setInterval(i._emulateDragOver,50)):(w(document,"mouseup",i._onDrop),w(document,"touchend",i._onDrop),w(document,"touchcancel",i._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(i,r,h)),C(document,"drop",i),g(h,"transform","translateZ(0)")),Et=!0,i._dragStartId=ee(i._dragStarted.bind(i,e,t)),C(document,"selectstart",i),Lt=!0,zt&&g(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,r,o,a,l=this.options,s=l.group,d=y.active,c=Yt===s,u=l.sort,p=L||d,m,f=this,v=!1;if($e)return;function D(kt,xn){N(kt,f,j({evt:t,isOwner:c,axis:m?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:u,fromSortable:p,target:i,completed:P,onMove:function(Pi,Sn){return te($,e,h,r,Pi,T(Pi),t,Sn)},changed:ht},xn))}function z(){D("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function P(kt){return D("dragOverCompleted",{insertion:kt}),kt&&(c?d._hideClone():d._showClone(f),f!==p&&(k(h,L?L.options.ghostClass:d.options.ghostClass,!1),k(h,l.ghostClass,!0)),L!==f&&f!==y.active?L=f:f===y.active&&L&&(L=null),p===f&&(f._ignoreWhileAnimating=i),f.animateAll(function(){D("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===e&&!i.animated)&&(_t=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[R]._isOutsideThisEl(t.target),!kt&&dt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function ht(){V=B(h),tt=B(h,l.draggable),I({sortable:f,name:"change",toEl:e,newIndex:V,newDraggableIndex:tt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=X(i,l.draggable,e,!0),D("dragOver"),y.eventCanceled)return v;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i)return P(!1);if(Wt=!1,d&&!l.disabled&&(c?u||(a=x!==$):L===this||(this.lastPutMode=Yt.checkPull(this,d,h,t))&&s.checkPut(this,d,h,t))){if(m=this._getDirection(t,i)==="vertical",r=T(h),D("dragOverValid"),y.eventCanceled)return v;if(a)return x=$,z(),this._hideClone(),D("revert"),y.eventCanceled||(st?$.insertBefore(h,st):$.appendChild(h)),P(!0);var G=ve(e,l.draggable);if(!G||vn(t,m,this)&&!G.animated){if(G===h)return P(!1);if(G&&e===t.target&&(i=G),i&&(o=T(i)),te($,e,h,r,i,o,t,!!i)!==!1)return z(),G&&G.nextSibling?e.insertBefore(h,G.nextSibling):e.appendChild(h),x=e,ht(),P(!0)}else if(G&&mn(t,m,this)){var Se=vt(e,0,l,!0);if(Se===h)return P(!1);if(i=Se,o=T(i),te($,e,h,r,i,o,t,!1)!==!1)return z(),e.insertBefore(h,Se),x=e,ht(),P(!0)}else if(i.parentNode===e){o=T(i);var wt=0,De,$n=h.parentNode!==e,Ti=!un(h.animated&&h.toRect||r,i.animated&&i.toRect||o,m),Oi=m?"top":"left",It=ci(i,"top","top")||ci(h,"top","top"),An=It?It.scrollTop:void 0;_t!==i&&(De=o[Oi],Pt=!1,qt=!Ti&&l.invertSwap||$n),wt=yn(t,i,o,m,Ti?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,qt,_t===i);var Mt;if(wt!==0){var Li=B(h);do Li-=wt,Mt=x.children[Li];while(Mt&&(g(Mt,"display")==="none"||Mt===b))}if(wt===0||Mt===i)return P(!1);_t=i,Ht=wt;var Hi=i.nextElementSibling,Nt=!1;Nt=wt===1;var ie=te($,e,h,r,i,o,t,Nt);if(ie!==!1)return(ie===1||ie===-1)&&(Nt=ie===1),$e=!0,setTimeout(gn,30),z(),Nt&&!Hi?e.appendChild(h):i.parentNode.insertBefore(h,Nt?Hi:i),It&&rn(It,0,An-It.scrollTop),x=h.parentNode,De!==void 0&&!qt&&(Zt=Math.abs(De-T(i)[Oi])),ht(),P(!0)}if(e.contains(h))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",dt),w(document,"mousemove",dt),w(document,"touchmove",dt)},_offUpEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._onDrop),w(t,"touchend",this._onDrop),w(t,"pointerup",this._onDrop),w(t,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(V=B(h),tt=B(h,i.draggable),N("drop",this,{evt:t}),x=h&&h.parentNode,V=B(h),tt=B(h,i.draggable),y.eventCanceled){this._nulling();return}Et=!1,qt=!1,Pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xe(this.cloneId),xe(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),zt&&g(document.body,"user-select",""),g(h,"transform",""),t&&(Lt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),($===x||L&&L.lastPutMode!=="clone")&&A&&A.parentNode&&A.parentNode.removeChild(A),h&&(this.nativeDraggable&&w(h,"dragend",this),Ae(h),h.style["will-change"]="",Lt&&!Et&&k(h,L?L.options.ghostClass:this.options.ghostClass,!1),k(h,this.options.chosenClass,!1),I({sortable:this,name:"unchoose",toEl:x,newIndex:null,newDraggableIndex:null,originalEvent:t}),$!==x?(V>=0&&(I({rootEl:x,name:"add",toEl:x,fromEl:$,originalEvent:t}),I({sortable:this,name:"remove",toEl:x,originalEvent:t}),I({rootEl:x,name:"sort",toEl:x,fromEl:$,originalEvent:t}),I({sortable:this,name:"sort",toEl:x,originalEvent:t})),L&&L.save()):V!==bt&&V>=0&&(I({sortable:this,name:"update",toEl:x,originalEvent:t}),I({sortable:this,name:"sort",toEl:x,originalEvent:t})),y.active&&((V==null||V===-1)&&(V=bt,tt=Ot),I({sortable:this,name:"end",toEl:x,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),$=h=x=b=st=A=Xt=Q=lt=F=Lt=V=tt=bt=Ot=_t=Ht=L=Yt=y.dragged=y.ghost=y.clone=y.active=null,Kt.forEach(function(t){t.checked=!0}),Kt.length=_e=we=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),fn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,r=0,o=i.length,a=this.options;r<o;r++)e=i[r],X(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||En(e));return t},sort:function(t,e){var i={},r=this.el;this.toArray().forEach(function(o,a){var l=r.children[a];X(l,this.options.draggable,r,!1)&&(i[o]=l)},this),e&&this.captureAnimationState(),t.forEach(function(o){i[o]&&(r.removeChild(i[o]),r.appendChild(i[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return X(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var r=Tt.modifyOption(this,t,e);typeof r<"u"?i[t]=r:i[t]=e,t==="group"&&_i(i)},destroy:function(){N("destroy",this);var t=this.el;t[R]=null,w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart),w(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Gt.splice(Gt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Q){if(N("hideClone",this),y.eventCanceled)return;g(A,"display","none"),this.options.removeCloneOnHide&&A.parentNode&&A.parentNode.removeChild(A),Q=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Q){if(N("showClone",this),y.eventCanceled)return;h.parentNode==$&&!this.options.group.revertClone?$.insertBefore(A,h):st?$.insertBefore(A,st):$.appendChild(A),this.options.group.revertClone&&this.animate(h,A),g(A,"display",""),Q=!1}}};function fn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function te(n,t,e,i,r,o,a,l){var s,d=n[R],c=d.options.onMove,u;return window.CustomEvent&&!K&&!Ft?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=n,s.dragged=e,s.draggedRect=i,s.related=r||t,s.relatedRect=o||T(t),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),c&&(u=c.call(d,s,a)),u}function Ae(n){n.draggable=!1}function gn(){$e=!1}function mn(n,t,e){var i=T(vt(e.el,0,e.options,!0)),r=10;return t?n.clientX<i.left-r||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-r||n.clientY<i.bottom&&n.clientX<i.left}function vn(n,t,e){var i=T(ve(e.el,e.options.draggable)),r=10;return t?n.clientX>i.right+r||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+r}function yn(n,t,e,i,r,o,a,l){var s=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(!a){if(l&&Zt<d*r){if(!Pt&&(Ht===1?s>c+d*o/2:s<u-d*o/2)&&(Pt=!0),Pt)p=!0;else if(Ht===1?s<c+Zt:s>u-Zt)return-Ht}else if(s>c+d*(1-r)/2&&s<u-d*(1-r)/2)return bn(t)}return p=p||a,p&&(s<c+d*o/2||s>u-d*o/2)?s>c+d/2?1:-1:0}function bn(n){return B(h)<B(n)?1:-1}function En(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 _n(n){Kt.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&Kt.push(i)}}function ee(n){return setTimeout(n,0)}function xe(n){return clearTimeout(n)}Jt&&C(document,"touchmove",function(n){(y.active||Et)&&n.cancelable&&n.preventDefault()}),y.utils={on:C,off:w,css:g,find:ui,is:function(t,e){return!!X(t,e,t,!1)},extend:en,throttle:nn,closest:X,toggleClass:k,clone:gi,index:B,nextTick:ee,cancelNextTick:xe,detectDirection:Ei,getChild:vt},y.get=function(n){return n[R]},y.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&&(y.utils=j(j({},y.utils),i.utils)),Tt.mount(i)})},y.create=function(n,t){return new y(n,t)},y.version=Ji;var $i=function(t){var e=t.originalEvent,i=t.putSortable,r=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var d=i||o;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),d&&!d.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:i}))}};function Ai(){}Ai.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 r=vt(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:$i},Z(Ai,{pluginName:"revertOnSpill"});function xi(){}xi.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,r=i||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:$i},Z(xi,{pluginName:"removeOnSpill"});const Si=`
61
61
  :host {
62
62
  display: block;
63
63
  }
@@ -427,103 +427,103 @@ li.sortable-drag {
427
427
  }
428
428
  li.sortable-ghost {
429
429
  }
430
- `;var wn=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,S=(n,t,e,i)=>{for(var r=i>1?void 0:i?Cn(t,e):t,o=n.length-1,a;o>=0;o--)(a=n[o])&&(r=(i?a(t,e,r):a(r))||r);return i&&r&&wn(t,e,r),r};E.EOxLayerControl=class extends ft{constructor(){super(...arguments),this.layerIdentifier="ol_uid",this.layerTitle="title",this.sortBy="layerOrder",this.layerConfig=["opacity"],this.externalLayerConfig=void 0,this.filterLayers=(t,e,i)=>{let r=[];const o=(a,s,l)=>{r=[...r,...a.filter(c=>c.get(s)===l)];const d=a.filter(c=>c.getLayers);return d.length>0&&d.forEach(c=>o(c.getLayers().getArray(),s,l)),r};return o(t,e,i),r},this.findLayerById=(t,e)=>this.filterLayers(t,"id",e)[0],this.getLayerType=(t,e)=>t.getLayers?"group":e.getInteractions().getArray().filter(i=>i.freehand_!==void 0).map(i=>i.source_.ol_uid).includes(t.getSource?t.getSource().ol_uid:!1)?"draw":t.declutter_!==void 0?"vector":"raster"}_updateControl(t){this.layerCollection=t,this.optionalLayerArray=this.filterLayers(t.getArray(),"layerControlOptional",!0),this.requestUpdate()}_emitLayerconfig(t){const e={detail:{layer:t},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("layerconfig",e))}changeOpacity(t,e){t.setOpacity(e)}changeStyleProperty(t,e,i){t.updateStyleVariables({...t.style_,[e]:i})}preFilterLayers(t){return[...t].filter(e=>e.get("layerControlHide")!==!0&&e.get("layerControlOptional")!==!0)}toggleLayerVisibility(t,e){if(t.setVisible(!t.getVisible()),t.get("layerControlExclusive")){let i=[];e?i=this.findLayerById(this.layerCollection.getArray(),e).getLayers().getArray().filter(o=>o.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&o.get("layerControlExclusive")):i=this.layerCollection.getArray().filter(r=>r.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&r.get("layerControlExclusive")),i.forEach(r=>{r.setVisible(!1)})}this.requestUpdate()}render(){var a;const t=document.querySelector(this.for),e=t.map||t,i=e.getLayers();this._updateControl(i),i.on("change:length",()=>{this._currentlySorting||this._updateControl(i)});const r=(s,l)=>{var d;return L`
430
+ `;var wn=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,S=(n,t,e,i)=>{for(var r=i>1?void 0:i?Cn(t,e):t,o=n.length-1,a;o>=0;o--)(a=n[o])&&(r=(i?a(t,e,r):a(r))||r);return i&&r&&wn(t,e,r),r};E.EOxLayerControl=class extends ft{constructor(){super(...arguments),this.for="eox-map",this.layerIdentifier="id",this.layerTitle="title",this.sortBy="layerOrder",this.layerConfig=["opacity"],this.externalLayerConfig=void 0,this.filterLayers=(t,e,i)=>{let r=[];const o=(a,l,s)=>{r=[...r,...a.filter(c=>c.get(l)===s)];const d=a.filter(c=>c.getLayers);return d.length>0&&d.forEach(c=>o(c.getLayers().getArray(),l,s)),r};return o(t,e,i),r},this.findLayerById=(t,e)=>this.filterLayers(t,"id",e)[0],this.getLayerType=(t,e)=>t.getLayers?"group":e.getInteractions().getArray().filter(i=>i.freehand_!==void 0).map(i=>i.source_.ol_uid).includes(t.getSource?t.getSource().ol_uid:!1)?"draw":t.declutter_!==void 0?"vector":"raster"}attachTo(t){this.olMap=t,this.requestUpdate()}_updateControl(t){const e=i=>{i.forEach(r=>{r.get(this.layerIdentifier)||r.set(this.layerIdentifier,r.ol_uid),r.get(this.layerTitle)||r.set(this.layerTitle,`layer ${r.ol_uid}`),r.getLayers&&e(r.getLayers().getArray())})};e(t.getArray()),this.layerCollection=t,this.optionalLayerArray=this.filterLayers(t.getArray(),"layerControlOptional",!0),this.requestUpdate()}_emitLayerconfig(t){const e={detail:{layer:t},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("layerconfig",e))}changeOpacity(t,e){t.setOpacity(e)}changeStyleProperty(t,e,i){t.updateStyleVariables({...t.style_,[e]:i})}preFilterLayers(t){return[...t].filter(e=>e.get("layerControlHide")!==!0&&e.get("layerControlOptional")!==!0)}toggleLayerVisibility(t,e){if(t.setVisible(!t.getVisible()),t.get("layerControlExclusive")){let i=[];e?i=this.findLayerById(this.layerCollection.getArray(),e).getLayers().getArray().filter(o=>o.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&o.get("layerControlExclusive")):i=this.layerCollection.getArray().filter(r=>r.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&r.get("layerControlExclusive")),i.forEach(r=>{r.setVisible(!1)})}this.requestUpdate()}render(){var o;const t=document.querySelector(this.for);if(t&&(this.olMap=(t==null?void 0:t.map)||t),!this.olMap)return _;const e=this.olMap.getLayers();this._updateControl(e),e.on("change:length",()=>{this._currentlySorting||this._updateControl(e)});const i=(a,l)=>{var s;return O`
431
431
  <details>
432
432
  <summary>
433
433
  <div class="layer">
434
434
  <div class="left">
435
435
  <input
436
- type="${s.get("layerControlExclusive")?"radio":"checkbox"}"
437
- .checked="${me(s.getVisible())}"
438
- @click=${()=>{this.toggleLayerVisibility(s,l)}}
436
+ type="${a.get("layerControlExclusive")?"radio":"checkbox"}"
437
+ .checked="${me(a.getVisible())}"
438
+ @click=${()=>{this.toggleLayerVisibility(a,l)}}
439
439
  />
440
440
  <span class="title"
441
- >${s.get(this.layerTitle)||`${s.get(this.layerIdentifier)}`}
441
+ >${a.get(this.layerTitle)||`${a.get(this.layerIdentifier)}`}
442
442
  </span>
443
443
  </div>
444
444
  <div class="right">
445
- ${this.sortBy==="layerOrder"&&!this.unstyled?L` <div
446
- class="drag-handle ${s.get("layerControlDisable")?"disabled":""}"
445
+ ${this.sortBy==="layerOrder"&&!this.unstyled?O` <div
446
+ class="drag-handle ${a.get("layerControlDisable")?"disabled":""}"
447
447
  >
448
448
  <span>=</span>
449
- </div>`:w}
449
+ </div>`:_}
450
450
  </div>
451
451
  </div>
452
452
  </summary>
453
- ${this.layerConfig?L`
453
+ ${this.layerConfig?O`
454
454
  <eox-layerconfig
455
455
  .layerConfig="${this.layerConfig}"
456
456
  .layerControl="${this}"
457
- .layer=${s}
457
+ .layer=${a}
458
458
  .external=${this.externalLayerConfig}
459
459
  .unstyled="${this.unstyled}"
460
460
  ></eox-layerconfig>
461
- `:w}
462
- ${this.externalLayerConfig&&((d=s.style_)!=null&&d.color)?L`
463
- <button @click=${()=>this._emitLayerconfig(s)}>
461
+ `:_}
462
+ ${this.externalLayerConfig&&((s=a.style_)!=null&&s.color)?O`
463
+ <button @click=${()=>this._emitLayerconfig(a)}>
464
464
  configure
465
465
  </button>
466
- `:w}
467
- ${s.getLayers?L`
468
- ${o(this.preFilterLayers([...s.getLayers().getArray()].reverse()),s.get("id"))}
469
- `:w}
466
+ `:_}
467
+ ${a.getLayers?O`
468
+ ${r(this.preFilterLayers([...a.getLayers().getArray()].reverse()),a.get(this.layerIdentifier))}
469
+ `:_}
470
470
  </details>
471
- `},o=(s,l)=>L`
472
- <ul data-group="${l??w}">
473
- ${ge(s,d=>d.get(this.layerIdentifier),d=>{var c;return L`
471
+ `},r=(a,l)=>O`
472
+ <ul data-group="${l??_}">
473
+ ${ge(a,s=>s.get(this.layerIdentifier),s=>{var d;return O`
474
474
  <li
475
- data-layer="${d.get(this.layerIdentifier)}"
476
- data-disabled="${d.get("layerControlDisable")||w}"
477
- data-type="${this.getLayerType(d,e)}"
478
- data-layerconfig="${((c=this.layerConfig)==null?void 0:c.length)>0}"
475
+ data-layer="${s.get(this.layerIdentifier)}"
476
+ data-disabled="${s.get("layerControlDisable")||_}"
477
+ data-type="${this.getLayerType(s,this.olMap)}"
478
+ data-layerconfig="${((d=this.layerConfig)==null?void 0:d.length)>0}"
479
479
  >
480
- ${r(d,l)}
480
+ ${i(s,l)}
481
481
  </li>
482
482
  `})}
483
483
  </ul>
484
- `;return L`
484
+ `;return O`
485
485
  <style>
486
486
  ${Si}
487
487
  ${!this.unstyled&&Di}
488
488
  </style>
489
489
  <div>
490
490
  <slot></slot>
491
- <input type="text" placeholder="Find layer" />
491
+ ${this.layerCollection.getArray().length>10?O`<input type="text" placeholder="Find layer" />`:_}
492
492
  <div class="layers">
493
- ${o(this.preFilterLayers(i.getArray()))}
493
+ ${r(this.preFilterLayers(e.getArray()))}
494
494
  </div>
495
- ${ri(((a=this.optionalLayerArray)==null?void 0:a.length)>0,()=>L`
495
+ ${ri(((o=this.optionalLayerArray)==null?void 0:o.length)>0,()=>O`
496
496
  <label for="optional">Optional layers</label>
497
497
 
498
498
  <select name="optional">
499
499
  <option disabled selected value>
500
500
  -- select an optional layer to add --
501
501
  </option>
502
- ${this.optionalLayerArray.map(s=>L`
502
+ ${this.optionalLayerArray.map(a=>O`
503
503
  <option
504
- value="${s.get(this.layerIdentifier)}"
504
+ value="${a.get(this.layerIdentifier)}"
505
505
  >
506
- ${s.get(this.layerTitle)||`layer ${s.get(this.layerIdentifier)}`}
506
+ ${a.get(this.layerTitle)||`layer ${a.get(this.layerIdentifier)}`}
507
507
  </option>
508
508
  `)}
509
509
  </select>
510
510
  <button
511
- @click="${()=>{const s=this.optionalLayerArray.find(l=>l.get(this.layerIdentifier)===this.shadowRoot.querySelector("select[name=optional]").value);if(s.get("group")){const l=this.findLayerById(this.layerCollection.getArray(),s.get("group"));l.getLayers().remove(s),l.getLayers().insertAt(l.getLayers().getLength(),s)}else this.layerCollection.remove(s),this.layerCollection.insertAt(this.layerCollection.getLength(),s);s.set("layerControlOptional",!1),s.setVisible(!0)}}"
511
+ @click="${()=>{const a=this.optionalLayerArray.find(l=>l.get(this.layerIdentifier)===this.shadowRoot.querySelector("select[name=optional]").value);if(a.get("group")){const l=this.findLayerById(this.layerCollection.getArray(),a.get("group"));l.getLayers().remove(a),l.getLayers().insertAt(l.getLayers().getLength(),a)}else this.layerCollection.remove(a),this.layerCollection.insertAt(this.layerCollection.getLength(),a);a.set("layerControlOptional",!1),a.setVisible(!0)}}"
512
512
  >
513
513
  add
514
514
  </button>
515
515
  `)}
516
516
  </div>
517
- `}updated(){this.sortBy=="layerOrder"&&this.renderRoot.querySelectorAll("ul").forEach(e=>{const i=e.dataset.group;y.create(e,{handle:this.unstyled?"summary":".drag-handle",dataIdAttr:"data-layer",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{get:()=>i?[...this.findLayerById(this.layerCollection.getArray(),i).getLayers().getArray().map(a=>a.get(this.layerIdentifier))].reverse():[...this.layerCollection.getArray().map(r=>r.get(this.layerIdentifier))].reverse(),set:r=>{var o=r.toArray().reverse();o.forEach((a,s)=>{if(i){const d=this.findLayerById(this.layerCollection.getArray(),i).getLayers(),c=this.findLayerById(d.getArray(),a);d.remove(c),d.insertAt(s,c)}else{const l=this.findLayerById(this.layerCollection.getArray(),a);this.layerCollection.remove(l),this.layerCollection.insertAt(s,l)}})}},onMove:r=>!r.related.dataset.disabled})})}},S([gt()],E.EOxLayerControl.prototype,"olMap",2),S([gt()],E.EOxLayerControl.prototype,"layerCollection",2),S([gt()],E.EOxLayerControl.prototype,"layerArray",2),S([gt()],E.EOxLayerControl.prototype,"optionalLayerArray",2),S([M()],E.EOxLayerControl.prototype,"for",2),S([M()],E.EOxLayerControl.prototype,"layerIdentifier",2),S([M()],E.EOxLayerControl.prototype,"layerTitle",2),S([M()],E.EOxLayerControl.prototype,"sortBy",2),S([M({type:Array})],E.EOxLayerControl.prototype,"layerConfig",2),S([M({type:Boolean})],E.EOxLayerControl.prototype,"externalLayerConfig",2),S([M({type:Boolean})],E.EOxLayerControl.prototype,"unstyled",2),E.EOxLayerControl=S([Qe("eox-layercontrol")],E.EOxLayerControl),E.EOxLayerConfig=class extends ft{constructor(){super(...arguments),this._configList={}}_handleInput(t,e){e==="opacity"?this._layerControlElement.changeOpacity(this._currentLayer,parseFloat(t.target.value)):this._layerControlElement.changeStyleProperty(this._currentLayer,e,parseFloat(t.target.value))}_parseConfigs(t){if(!t)return;const e=t.style_;e&&e.color&&e.color[0]==="array"&&(this._configList=e.variables)}connectedCallback(){super.connectedCallback(),!this.layerConfig&&!this.layerControl?(this._layerControlElement=document.querySelector(this.for),this._layerControlElement&&(this.layerConfig=this._layerControlElement.layerConfig,this._layerControlElement.addEventListener("layerconfig",t=>{this._currentLayer=t.detail.layer,this._parseConfigs(this._currentLayer),this.requestUpdate()}))):(this._layerControlElement=this.layerControl,this._currentLayer=this.layer,this._parseConfigs(this._currentLayer))}render(){return L`
517
+ `}updated(){this.sortBy=="layerOrder"&&this.renderRoot.querySelectorAll("ul").forEach(e=>{const i=e.dataset.group;y.create(e,{handle:this.unstyled?"summary":".drag-handle",dataIdAttr:"data-layer",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{get:()=>i?[...this.findLayerById(this.layerCollection.getArray(),i).getLayers().getArray().map(a=>a.get(this.layerIdentifier))].reverse():[...this.layerCollection.getArray().map(r=>r.get(this.layerIdentifier))].reverse(),set:r=>{var o=r.toArray().reverse();o.forEach((a,l)=>{if(i){const d=this.findLayerById(this.layerCollection.getArray(),i).getLayers(),c=this.findLayerById(d.getArray(),a);d.remove(c),d.insertAt(l,c)}else{const s=this.findLayerById(this.layerCollection.getArray(),a);this.layerCollection.remove(s),this.layerCollection.insertAt(l,s)}})}},onMove:r=>!r.related.dataset.disabled})})}},S([gt()],E.EOxLayerControl.prototype,"olMap",2),S([gt()],E.EOxLayerControl.prototype,"layerCollection",2),S([gt()],E.EOxLayerControl.prototype,"layerArray",2),S([gt()],E.EOxLayerControl.prototype,"optionalLayerArray",2),S([M()],E.EOxLayerControl.prototype,"for",2),S([M()],E.EOxLayerControl.prototype,"layerIdentifier",2),S([M()],E.EOxLayerControl.prototype,"layerTitle",2),S([M()],E.EOxLayerControl.prototype,"sortBy",2),S([M({type:Array})],E.EOxLayerControl.prototype,"layerConfig",2),S([M({type:Boolean})],E.EOxLayerControl.prototype,"externalLayerConfig",2),S([M({type:Boolean})],E.EOxLayerControl.prototype,"unstyled",2),E.EOxLayerControl=S([Je("eox-layercontrol")],E.EOxLayerControl),E.EOxLayerConfig=class extends ft{constructor(){super(...arguments),this._configList={}}_handleInput(t,e){e==="opacity"?this._layerControlElement.changeOpacity(this._currentLayer,parseFloat(t.target.value)):this._layerControlElement.changeStyleProperty(this._currentLayer,e,parseFloat(t.target.value))}_parseConfigs(t){if(!t)return;const e=t.style_;e&&e.color&&e.color[0]==="array"&&(this._configList=e.variables)}connectedCallback(){super.connectedCallback(),!this.layerConfig&&!this.layerControl?(this._layerControlElement=document.querySelector(this.for),this._layerControlElement&&(this.layerConfig=this._layerControlElement.layerConfig,this._layerControlElement.addEventListener("layerconfig",t=>{this._currentLayer=t.detail.layer,this._parseConfigs(this._currentLayer),this.requestUpdate()}))):(this._layerControlElement=this.layerControl,this._currentLayer=this.layer,this._parseConfigs(this._currentLayer))}render(){return O`
518
518
  <style>
519
519
  ${Si}
520
520
  ${!this.unstyled&&Di}
521
521
  </style>
522
- ${ri(this._currentLayer,()=>L`
522
+ ${ri(this._currentLayer,()=>O`
523
523
  <div>
524
524
  <slot></slot>
525
- ${this.for?L`layer: ${this._currentLayer.get("name")}`:w}
526
- ${ge(this.layerConfig.filter(t=>this.for?t!=="opacity":!0),t=>t,t=>L`
525
+ ${this.for?O`layer: ${this._currentLayer.get("name")}`:_}
526
+ ${ge(this.layerConfig.filter(t=>this.for?t!=="opacity":!0),t=>t,t=>O`
527
527
  <div class="slider-control">
528
528
  <div class="slider-property">${t}</div>
529
529
  <input
@@ -536,11 +536,11 @@ li.sortable-ghost {
536
536
  />
537
537
  </div>
538
538
  `)}
539
- ${Object.keys(this._configList).length>0&&!this.external?L`
540
- <details open="${this.for?!0:w}">
539
+ ${Object.keys(this._configList).length>0&&!this.external?O`
540
+ <details open="${this.for?!0:_}">
541
541
  <summary>Layer config</summary>
542
542
  <ul>
543
- ${ge(Object.keys(this._configList),t=>t,t=>L` <li>
543
+ ${ge(Object.keys(this._configList),t=>t,t=>O` <li>
544
544
  <div>${t}</div>
545
545
  <input
546
546
  type="range"
@@ -552,7 +552,7 @@ li.sortable-ghost {
552
552
  </li>`)}
553
553
  </ul>
554
554
  </details>
555
- `:w}
555
+ `:_}
556
556
  </div>
557
557
  `)}
558
- `}},S([M()],E.EOxLayerConfig.prototype,"for",2),S([M({type:Array})],E.EOxLayerConfig.prototype,"layerConfig",2),S([M({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layerControl",2),S([M({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layer",2),S([M({type:Boolean})],E.EOxLayerConfig.prototype,"external",2),S([M({type:Boolean})],E.EOxLayerConfig.prototype,"unstyled",2),S([gt()],E.EOxLayerConfig.prototype,"_currentLayer",2),S([gt()],E.EOxLayerConfig.prototype,"_configList",2),E.EOxLayerConfig=S([Qe("eox-layerconfig")],E.EOxLayerConfig),Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
558
+ `}},S([M()],E.EOxLayerConfig.prototype,"for",2),S([M({type:Array})],E.EOxLayerConfig.prototype,"layerConfig",2),S([M({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layerControl",2),S([M({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layer",2),S([M({type:Boolean})],E.EOxLayerConfig.prototype,"external",2),S([M({type:Boolean})],E.EOxLayerConfig.prototype,"unstyled",2),S([gt()],E.EOxLayerConfig.prototype,"_currentLayer",2),S([gt()],E.EOxLayerConfig.prototype,"_configList",2),E.EOxLayerConfig=S([Je("eox-layerconfig")],E.EOxLayerConfig),Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/layercontrol",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@eox/eslint-config": "^1.0.0",