@eox/layercontrol 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,256 +1,558 @@
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";/**
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";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const q=window,it=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ot=Symbol(),xt=new WeakMap;let Nn=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Ot)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(it&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=xt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&xt.set(t,e))}return e}toString(){return this.cssText}};const Mn=i=>new Nn(typeof i=="string"?i:i+"",void 0,Ot),Hn=(i,e)=>{it?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const n=document.createElement("style"),r=q.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=t.cssText,i.appendChild(n)})},Lt=it?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return Mn(t)})(i):i;/**
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;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var rt;const Re=window,Pt=Re.trustedTypes,Bn=Pt?Pt.emptyScript:"",It=Re.reactiveElementPolyfillSupport,ot={toAttribute(i,e){switch(e){case Boolean:i=i?Bn:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Nt=(i,e)=>e!==i&&(e==e||i==i),at={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:Nt},st="finalized";let ue=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const r=this._$Ep(n,t);r!==void 0&&(this._$Ev.set(r,n),e.push(r))}),e}static createProperty(e,t=at){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||at}static finalize(){if(this.hasOwnProperty(st))return!1;this[st]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of n)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const r of n)t.unshift(Lt(r))}else e!==void 0&&t.push(Lt(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Hn(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=at){var r;const o=this.constructor._$Ep(e,n);if(o!==void 0&&n.reflect===!0){const a=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:ot).toAttribute(t,n.type);this._$El=e,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(o!==void 0&&this._$El!==o){const a=r.getPropertyOptions(o),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:ot;this._$El=o,this[o]=l.fromAttribute(t,a.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||Nt)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(n)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var r;return(r=n.hostUpdated)===null||r===void 0?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};ue[st]=!0,ue.elementProperties=new Map,ue.elementStyles=[],ue.shadowRootOptions={mode:"open"},It==null||It({ReactiveElement:ue}),((rt=Re.reactiveElementVersions)!==null&&rt!==void 0?rt:Re.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 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");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var lt;const ke=window,ce=ke.trustedTypes,Mt=ce?ce.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ue="$lit$",Y=`lit$${(Math.random()+"").slice(9)}$`,dt="?"+Y,Rn=`<${dt}>`,te=document,$e=()=>te.createComment(""),we=i=>i===null||typeof i!="object"&&typeof i!="function",Ht=Array.isArray,Bt=i=>Ht(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",ht=`[
14
- \f\r]`,Ae=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rt=/-->/g,kt=/>/g,ne=RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ut=/'/g,Vt=/"/g,jt=/^(?:script|style|textarea|title)$/i,kn=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),I=kn(1),V=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),Ft=new WeakMap,ie=te.createTreeWalker(te,129,null,!1),zt=(i,e)=>{const t=i.length-1,n=[];let r,o=e===2?"<svg>":"",a=Ae;for(let s=0;s<t;s++){const d=i[s];let c,u,f=-1,m=0;for(;m<d.length&&(a.lastIndex=m,u=a.exec(d),u!==null);)m=a.lastIndex,a===Ae?u[1]==="!--"?a=Rt:u[1]!==void 0?a=kt:u[2]!==void 0?(jt.test(u[2])&&(r=RegExp("</"+u[2],"g")),a=ne):u[3]!==void 0&&(a=ne):a===ne?u[0]===">"?(a=r??Ae,f=-1):u[1]===void 0?f=-2:(f=a.lastIndex-u[2].length,c=u[1],a=u[3]===void 0?ne:u[3]==='"'?Vt:Ut):a===Vt||a===Ut?a=ne:a===Rt||a===kt?a=Ae:(a=ne,r=void 0);const p=a===ne&&i[s+1].startsWith("/>")?" ":"";o+=a===Ae?d+Rn:f>=0?(n.push(c),d.slice(0,f)+Ue+d.slice(f)+Y+p):d+Y+(f===-2?(n.push(void 0),s):p)}const l=o+(i[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Mt!==void 0?Mt.createHTML(l):l,n]};class Se{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,a=0;const l=e.length-1,s=this.parts,[d,c]=zt(e,t);if(this.el=Se.createElement(d,n),ie.currentNode=this.el.content,t===2){const u=this.el.content,f=u.firstChild;f.remove(),u.append(...f.childNodes)}for(;(r=ie.nextNode())!==null&&s.length<l;){if(r.nodeType===1){if(r.hasAttributes()){const u=[];for(const f of r.getAttributeNames())if(f.endsWith(Ue)||f.startsWith(Y)){const m=c[a++];if(u.push(f),m!==void 0){const p=r.getAttribute(m.toLowerCase()+Ue).split(Y),v=/([.?@])?(.*)/.exec(m);s.push({type:1,index:o,name:v[2],strings:p,ctor:v[1]==="."?Yt:v[1]==="?"?Wt:v[1]==="@"?Gt:De})}else s.push({type:6,index:o})}for(const f of u)r.removeAttribute(f)}if(jt.test(r.tagName)){const u=r.textContent.split(Y),f=u.length-1;if(f>0){r.textContent=ce?ce.emptyScript:"";for(let m=0;m<f;m++)r.append(u[m],$e()),ie.nextNode(),s.push({type:2,index:++o});r.append(u[f],$e())}}}else if(r.nodeType===8)if(r.data===dt)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(e,t){const n=te.createElement("template");return n.innerHTML=e,n}}function re(i,e,t=i,n){var r,o,a,l;if(e===V)return e;let s=n!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[n]:t._$Cl;const d=we(e)?void 0:e._$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(i),s._$AT(i,t,n)),n!==void 0?((a=(l=t)._$Co)!==null&&a!==void 0?a:l._$Co=[])[n]=s:t._$Cl=s),s!==void 0&&(e=re(i,s._$AS(i,e.values),s,n)),e}class Xt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:te).importNode(n,!0);ie.currentNode=o;let a=ie.nextNode(),l=0,s=0,d=r[0];for(;d!==void 0;){if(l===d.index){let c;d.type===2?c=new fe(a,a.nextSibling,this,e):d.type===1?c=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(c=new qt(a,this,e)),this._$AV.push(c),d=r[++s]}l!==(d==null?void 0:d.index)&&(a=ie.nextNode(),l++)}return ie.currentNode=te,o}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class fe{constructor(e,t,n,r){var o;this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=re(this,e,t),we(e)?e===C||e==null||e===""?(this._$AH!==C&&this._$AR(),this._$AH=C):e!==this._$AH&&e!==V&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Bt(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==C&&we(this._$AH)?this._$AA.nextSibling.data=e:this.$(te.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Se.createElement(r.h,this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(n);else{const a=new Xt(o,this),l=a.u(this.options);a.v(n),this.$(l),this._$AH=a}}_$AC(e){let t=Ft.get(e.strings);return t===void 0&&Ft.set(e.strings,t=new Se(e)),t}T(e){Ht(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new fe(this.k($e()),this.k($e()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class De{constructor(e,t,n,r,o){this.type=1,this._$AH=C,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=C}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const o=this.strings;let a=!1;if(o===void 0)e=re(this,e,t,0),a=!we(e)||e!==this._$AH&&e!==V,a&&(this._$AH=e);else{const l=e;let s,d;for(e=o[0],s=0;s<o.length-1;s++)d=re(this,l[n+s],t,s),d===V&&(d=this._$AH[s]),a||(a=!we(d)||d!==this._$AH[s]),d===C?e=C:e!==C&&(e+=(d??"")+o[s+1]),this._$AH[s]=d}a&&!r&&this.j(e)}j(e){e===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Yt extends De{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===C?void 0:e}}const Un=ce?ce.emptyScript:"";class Wt extends De{constructor(){super(...arguments),this.type=4}j(e){e&&e!==C?this.element.setAttribute(this.name,Un):this.element.removeAttribute(this.name)}}class Gt extends De{constructor(e,t,n,r,o){super(e,t,n,r,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=re(this,e,t,0))!==null&&n!==void 0?n:C)===V)return;const r=this._$AH,o=e===C&&r!==C||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==C&&(r===C||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}}class qt{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){re(this,e)}}const Vn={O:Ue,P:Y,A:dt,C:1,M:zt,L:Xt,D:Bt,R:re,I:fe,V:De,H:Wt,N:Gt,U:Yt,F:qt},Zt=ke.litHtmlPolyfillSupport;Zt==null||Zt(Se,fe),((lt=ke.litHtmlVersions)!==null&&lt!==void 0?lt:ke.litHtmlVersions=[]).push("2.7.4");const jn=(i,e,t)=>{var n,r;const o=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let a=o._$litPart$;if(a===void 0){const l=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=a=new fe(e.insertBefore($e(),l),l,void 0,t??{})}return a._$AI(i),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",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};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */var ut,ct;let pe=class extends ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=jn(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return V}};pe.finalized=!0,pe._$litElement$=!0,(ut=globalThis.litElementHydrateSupport)===null||ut===void 0||ut.call(globalThis,{LitElement:pe});const Kt=globalThis.litElementPolyfillSupport;Kt==null||Kt({LitElement:pe}),((ct=globalThis.litElementVersions)!==null&&ct!==void 0?ct:globalThis.litElementVersions=[]).push("3.3.2");/**
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");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const Qt=i=>e=>typeof e=="function"?((t,n)=>(customElements.define(t,n),n))(i,e):((t,n)=>{const{kind:r,elements:o}=n;return{kind:r,elements:o,finisher(a){customElements.define(t,a)}}})(i,e);/**
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);/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Fn=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},zn=(i,e,t)=>{e.constructor.createProperty(t,i)};function H(i){return(e,t)=>t!==void 0?zn(i,e,t):Fn(i,e)}/**
27
+ */const zi=(n,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,n)}},ji=(n,t,e)=>{t.constructor.createProperty(e,n)};function M(n){return(t,e)=>e!==void 0?ji(n,t,e):zi(n,t)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */function ge(i){return H({...i,state:!0})}/**
31
+ */function gt(n){return M({...n,state:!0})}/**
32
32
  * @license
33
33
  * Copyright 2021 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */var ft;((ft=window.HTMLSlotElement)===null||ft===void 0?void 0:ft.prototype.assignedElements)!=null;/**
35
+ */var pe;((pe=window.HTMLSlotElement)===null||pe===void 0?void 0:pe.prototype.assignedElements)!=null;/**
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */const oe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Jt=i=>(...e)=>({_$litDirective$:i,values:e});class en{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}/**
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)}}/**
40
40
  * @license
41
41
  * Copyright 2020 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */const{I:Xn}=Vn,Yn=i=>i.strings===void 0,tn=()=>document.createComment(""),Te=(i,e,t)=>{var n;const r=i._$AA.parentNode,o=e===void 0?i._$AB:e._$AA;if(t===void 0){const a=r.insertBefore(tn(),o),l=r.insertBefore(tn(),o);t=new Xn(a,l,i,i.options)}else{const a=t._$AB.nextSibling,l=t._$AM,s=l!==i;if(s){let d;(n=t._$AQ)===null||n===void 0||n.call(t,i),t._$AM=i,t._$AP!==void 0&&(d=i._$AU)!==l._$AU&&t._$AP(d)}if(a!==o||s){let d=t._$AA;for(;d!==a;){const c=d.nextSibling;r.insertBefore(d,o),d=c}}}return t},ae=(i,e,t=i)=>(i._$AI(e,t),i),Wn={},nn=(i,e=Wn)=>i._$AH=e,Gn=i=>i._$AH,pt=i=>{var e;(e=i._$AP)===null||e===void 0||e.call(i,!1,!0);let t=i._$AA;const n=i._$AB.nextSibling;for(;t!==n;){const r=t.nextSibling;t.remove(),t=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),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}};/**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const rn=(i,e,t)=>{const n=new Map;for(let r=e;r<=t;r++)n.set(i[r],r);return n},gt=Jt(class extends en{constructor(i){if(super(i),i.type!==oe.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,e,t){let n;t===void 0?t=e:e!==void 0&&(n=e);const r=[],o=[];let a=0;for(const l of i)r[a]=n?n(l,a):a,o[a]=t(l,a),a++;return{values:o,keys:r}}render(i,e,t){return this.dt(i,e,t).values}update(i,[e,t,n]){var r;const o=Gn(i),{values:a,keys:l}=this.dt(e,t,n);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,f=0,m=o.length-1,p=0,v=a.length-1;for(;f<=m&&p<=v;)if(o[f]===null)f++;else if(o[m]===null)m--;else if(s[f]===l[p])d[p]=ae(o[f],a[p]),f++,p++;else if(s[m]===l[v])d[v]=ae(o[m],a[v]),m--,v--;else if(s[f]===l[v])d[v]=ae(o[f],a[v]),Te(i,d[v+1],o[f]),f++,v--;else if(s[m]===l[p])d[p]=ae(o[m],a[p]),Te(i,o[f],o[m]),m--,p++;else if(c===void 0&&(c=rn(l,p,v),u=rn(s,f,m)),c.has(s[f]))if(c.has(s[m])){const T=u.get(l[p]),F=T!==void 0?o[T]:null;if(F===null){const P=Te(i,o[f]);ae(P,a[p]),d[p]=P}else d[p]=ae(F,a[p]),Te(i,o[f],F),o[T]=null;p++}else pt(o[m]),m--;else pt(o[f]),f++;for(;p<=v;){const T=Te(i,d[v+1]);ae(T,a[p]),d[p++]=T}for(;f<=m;){const T=o[f++];T!==null&&pt(T)}return this.ht=l,nn(i,d),V}});/**
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}});/**
48
48
  * @license
49
49
  * Copyright 2020 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const mt=Jt(class extends en{constructor(i){if(super(i),i.type!==oe.PROPERTY&&i.type!==oe.ATTRIBUTE&&i.type!==oe.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Yn(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===V||e===C)return e;const t=i.element,n=i.name;if(i.type===oe.PROPERTY){if(e===t[n])return V}else if(i.type===oe.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(n))return V}else if(i.type===oe.ATTRIBUTE&&t.getAttribute(n)===e+"")return V;return nn(i),e}});/**
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}});/**
52
52
  * @license
53
53
  * Copyright 2021 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */function on(i,e,t){return i?e():t==null?void 0:t()}/**!
55
+ */function ri(n,t,e){return n?t():e==null?void 0:e()}/**!
56
56
  * Sortable 1.15.0
57
57
  * @author RubaXa <trash@rubaxa.org>
58
58
  * @author owenm <owen23355@gmail.com>
59
59
  * @license MIT
60
- */function an(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),t.push.apply(t,n)}return t}function z(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?an(Object(t),!0).forEach(function(n){qn(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):an(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function Ve(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ve=function(e){return typeof e}:Ve=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(i)}function qn(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Z(){return Z=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},Z.apply(this,arguments)}function Zn(i,e){if(i==null)return{};var t={},n=Object.keys(i),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(t[r]=i[r]);return t}function Kn(i,e){if(i==null)return{};var t=Zn(i,e),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(t[n]=i[n])}return t}var Qn="1.15.0";function W(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var K=W(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),je=W(/Edge/i),sn=W(/firefox/i),Fe=W(/safari/i)&&!W(/chrome/i)&&!W(/android/i),ln=W(/iP(ad|od|hone)/i),dn=W(/chrome/i)&&W(/android/i),hn={capture:!1,passive:!1};function $(i,e,t){i.addEventListener(e,t,!K&&hn)}function b(i,e,t){i.removeEventListener(e,t,!K&&hn)}function ze(i,e){if(e){if(e[0]===">"&&(e=e.substring(1)),i)try{if(i.matches)return i.matches(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e)}catch{return!1}return!1}}function Jn(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function X(i,e,t,n){if(i){t=t||document;do{if(e!=null&&(e[0]===">"?i.parentNode===t&&ze(i,e):ze(i,e))||n&&i===t)return i;if(i===t)break}while(i=Jn(i))}return null}var un=/\s+/g;function B(i,e,t){if(i&&e)if(i.classList)i.classList[t?"add":"remove"](e);else{var n=(" "+i.className+" ").replace(un," ").replace(" "+e+" "," ");i.className=(n+(t?" "+e:"")).replace(un," ")}}function g(i,e,t){var n=i&&i.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(t=i.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function me(i,e){var t="";if(typeof i=="string")t=i;else do{var n=g(i,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(i=i.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(t)}function cn(i,e,t){if(i){var n=i.getElementsByTagName(e),r=0,o=n.length;if(t)for(;r<o;r++)t(n[r],r);return n}return[]}function Q(){var i=document.scrollingElement;return i||document.documentElement}function O(i,e,t,n,r){if(!(!i.getBoundingClientRect&&i!==window)){var o,a,l,s,d,c,u;if(i!==window&&i.parentNode&&i!==Q()?(o=i.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),(e||t)&&i!==window&&(r=r||i.parentNode,!K))do if(r&&r.getBoundingClientRect&&(g(r,"transform")!=="none"||t&&g(r,"position")!=="static")){var f=r.getBoundingClientRect();a-=f.top+parseInt(g(r,"border-top-width")),l-=f.left+parseInt(g(r,"border-left-width")),s=a+o.height,d=l+o.width;break}while(r=r.parentNode);if(n&&i!==window){var m=me(r||i),p=m&&m.a,v=m&&m.d;m&&(a/=v,l/=p,u/=p,c/=v,s=a+c,d=l+u)}return{top:a,left:l,bottom:s,right:d,width:u,height:c}}}function fn(i,e,t){for(var n=gn(i,!0),r=O(i)[e];n;){var o=O(n)[t],a=void 0;if(t==="top"||t==="left"?a=r>=o:a=r<=o,!a)return n;if(n===Q())break;n=gn(n,!1)}return!1}function ve(i,e,t,n){for(var r=0,o=0,a=i.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==y.ghost&&(n||a[o]!==y.dragged)&&X(a[o],t.draggable,i,!1)){if(r===e)return a[o];r++}o++}return null}function vt(i,e){for(var t=i.lastElementChild;t&&(t===y.ghost||g(t,"display")==="none"||e&&!ze(t,e));)t=t.previousElementSibling;return t||null}function k(i,e){var t=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==y.clone&&(!e||ze(i,e))&&t++;return t}function pn(i){var e=0,t=0,n=Q();if(i)do{var r=me(i),o=r.a,a=r.d;e+=i.scrollLeft*o,t+=i.scrollTop*a}while(i!==n&&(i=i.parentNode));return[e,t]}function ei(i,e){for(var t in i)if(i.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===i[t][n])return Number(t)}return-1}function gn(i,e){if(!i||!i.getBoundingClientRect)return Q();var t=i,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var r=g(t);if(t.clientWidth<t.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Q();if(n||e)return t;n=!0}}while(t=t.parentNode);return Q()}function ti(i,e){if(i&&e)for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function yt(i,e){return Math.round(i.top)===Math.round(e.top)&&Math.round(i.left)===Math.round(e.left)&&Math.round(i.height)===Math.round(e.height)&&Math.round(i.width)===Math.round(e.width)}var _t;function ni(i,e){return function(){if(!_t){var t=arguments,n=this;t.length===1?i.call(n,t[0]):i.apply(n,t),_t=setTimeout(function(){_t=void 0},e)}}}function ii(i,e,t){i.scrollLeft+=e,i.scrollTop+=t}function mn(i){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(i).cloneNode(!0):t?t(i).clone(!0)[0]:i.cloneNode(!0)}var U="Sortable"+new Date().getTime();function ri(){var i=[],e;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(g(r,"display")==="none"||r===y.ghost)){i.push({target:r,rect:O(r)});var o=z({},i[i.length-1].rect);if(r.thisAnimationDuration){var a=me(r,!0);a&&(o.top-=a.f,o.left-=a.e)}r.fromRect=o}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ei(i,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var o=!1,a=0;i.forEach(function(l){var s=0,d=l.target,c=d.fromRect,u=O(d),f=d.prevFromRect,m=d.prevToRect,p=l.rect,v=me(d,!0);v&&(u.top-=v.f,u.left-=v.e),d.toRect=u,d.thisAnimationDuration&&yt(f,u)&&!yt(c,u)&&(p.top-u.top)/(p.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(s=ai(p,f,m,r.options)),yt(u,c)||(d.prevFromRect=c,d.prevToRect=u,s||(s=r.options.animation),r.animate(d,p,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(e),o?e=setTimeout(function(){typeof n=="function"&&n()},a):typeof n=="function"&&n(),i=[]},animate:function(n,r,o,a){if(a){g(n,"transition",""),g(n,"transform","");var l=me(this.el),s=l&&l.a,d=l&&l.d,c=(r.left-o.left)/(s||1),u=(r.top-o.top)/(d||1);n.animatingX=!!c,n.animatingY=!!u,g(n,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=oi(n),g(n,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){g(n,"transition",""),g(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},a)}}}}function oi(i){return i.offsetWidth}function ai(i,e,t,n){return Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var ye=[],Et={initializeByDefault:!0},Oe={mount:function(e){for(var t in Et)Et.hasOwnProperty(t)&&!(t in e)&&(e[t]=Et[t]);ye.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ye.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";ye.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][o]&&t[a.pluginName][o](z({sortable:t},n)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](z({sortable:t},n)))})},initializePlugins:function(e,t,n,r){ye.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var d=new l(e,t,e.options);d.sortable=e,d.options=e.options,e[s]=d,Z(n,d.defaults)}});for(var o in e.options)if(e.options.hasOwnProperty(o)){var a=this.modifyOption(e,o,e.options[o]);typeof a<"u"&&(e.options[o]=a)}},getEventProperties:function(e,t){var n={};return ye.forEach(function(r){typeof r.eventProperties=="function"&&Z(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return ye.forEach(function(o){e[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[t]=="function"&&(r=o.optionListeners[t].call(e[o.pluginName],n))}),r}};function si(i){var e=i.sortable,t=i.rootEl,n=i.name,r=i.targetEl,o=i.cloneEl,a=i.toEl,l=i.fromEl,s=i.oldIndex,d=i.newIndex,c=i.oldDraggableIndex,u=i.newDraggableIndex,f=i.originalEvent,m=i.putSortable,p=i.extraEventProperties;if(e=e||t&&t[U],!!e){var v,T=e.options,F="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!K&&!je?v=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(n,!0,!0)),v.to=a||t,v.from=l||t,v.item=r||t,v.clone=o,v.oldIndex=s,v.newIndex=d,v.oldDraggableIndex=c,v.newDraggableIndex=u,v.originalEvent=f,v.pullMode=m?m.lastPutMode:void 0;var P=z(z({},p),Oe.getEventProperties(n,e));for(var he in P)v[he]=P[he];t&&t.dispatchEvent(v),T[F]&&T[F].call(e,v)}}var li=["evt"],M=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,o=Kn(n,li);Oe.pluginEvent.bind(y)(e,t,z({dragEl:h,parentEl:S,ghostEl:_,rootEl:w,nextEl:se,lastDownEl:Xe,cloneEl:A,cloneHidden:J,dragStarted:Le,putSortable:x,activeSortable:y.active,originalEvent:r,oldIndex:_e,oldDraggableIndex:xe,newIndex:R,newDraggableIndex:ee,hideGhostForTarget:$n,unhideGhostForTarget:wn,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(l){N({sortable:t,name:l,originalEvent:r})}},o))};function N(i){si(z({putSortable:x,cloneEl:A,targetEl:h,rootEl:w,oldIndex:_e,oldDraggableIndex:xe,newIndex:R,newDraggableIndex:ee},i))}var h,S,_,w,se,Xe,A,J,_e,R,xe,ee,Ye,x,Ee=!1,We=!1,Ge=[],le,j,bt,Ct,vn,yn,Le,be,Pe,Ie=!1,qe=!1,Ze,L,$t=[],wt=!1,Ke=[],Qe=typeof document<"u",Je=ln,_n=je||K?"cssFloat":"float",di=Qe&&!dn&&!ln&&"draggable"in document.createElement("div"),En=function(){if(Qe){if(K)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),bn=function(e,t){var n=g(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=ve(e,0,t),a=ve(e,1,t),l=o&&g(o),s=a&&g(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+O(a).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&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&&n[_n]==="none"||a&&n[_n]==="none"&&d+c>r)?"vertical":"horizontal"},hi=function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,l=n?t.left:t.top,s=n?t.right:t.bottom,d=n?t.width:t.height;return r===l||o===s||r+a/2===l+d/2},ui=function(e,t){var n;return Ge.some(function(r){var o=r[U].options.emptyInsertThreshold;if(!(!o||vt(r))){var a=O(r),l=e>=a.left-o&&e<=a.right+o,s=t>=a.top-o&&t<=a.bottom+o;if(l&&s)return n=r}}),n},Cn=function(e){function t(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 t(o(l,s,d,c),a)(l,s,d,c);var f=(a?l:s).options.group.name;return o===!0||typeof o=="string"&&o===f||o.join&&o.indexOf(f)>-1}}var n={},r=e.group;(!r||Ve(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},$n=function(){!En&&_&&g(_,"display","none")},wn=function(){!En&&_&&g(_,"display","")};Qe&&!dn&&document.addEventListener("click",function(i){if(We)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),We=!1,!1},!0);var de=function(e){if(h){e=e.touches?e.touches[0]:e;var t=ui(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[U]._onDragOver(n)}}},ci=function(e){h&&h.parentNode[U]._isOutsideThisEl(e.target)};function y(i,e){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=e=Z({},e),i[U]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return bn(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(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&&!Fe,emptyInsertThreshold:5};Oe.initializePlugins(this,i,t);for(var n in t)!(n in e)&&(e[n]=t[n]);Cn(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:di,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?$(i,"pointerdown",this._onTapStart):($(i,"mousedown",this._onTapStart),$(i,"touchstart",this._onTapStart)),this.nativeDraggable&&($(i,"dragover",this),$(i,"dragenter",this)),Ge.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Z(this,ri())}y.prototype={constructor:y,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(be=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,h):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(Ei(n),!h&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Fe&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=X(s,r.draggable,n,!1),!(s&&s.animated)&&Xe!==s)){if(_e=k(s),xe=k(s,r.draggable),typeof c=="function"){if(c.call(this,e,s,this)){N({sortable:t,rootEl:d,name:"filter",targetEl:s,toEl:n,fromEl:n}),M("filter",t,{evt:e}),o&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=X(d,u.trim(),n,!1),u)return N({sortable:t,rootEl:u,name:"filter",targetEl:s,fromEl:n,toEl:n}),M("filter",t,{evt:e}),!0}),c)){o&&e.cancelable&&e.preventDefault();return}r.handle&&!X(d,r.handle,n,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,t,n){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(n&&!h&&n.parentNode===o){var d=O(n);if(w=o,h=n,S=h.parentNode,se=h.nextSibling,Xe=n,Ye=a.group,y.dragged=h,le={target:h,clientX:(t||e).clientX,clientY:(t||e).clientY},vn=le.clientX-d.left,yn=le.clientY-d.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,h.style["will-change"]="all",s=function(){if(M("delayEnded",r,{evt:e}),y.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!sn&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(e,t),N({sortable:r,name:"choose",originalEvent:e}),B(h,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){cn(h,c.trim(),At)}),$(l,"dragover",de),$(l,"mousemove",de),$(l,"touchmove",de),$(l,"mouseup",r._onDrop),$(l,"touchend",r._onDrop),$(l,"touchcancel",r._onDrop),sn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),M("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(je||K))){if(y.eventCanceled){this._onDrop();return}$(l,"mouseup",r._disableDelayedDrag),$(l,"touchend",r._disableDelayedDrag),$(l,"touchcancel",r._disableDelayedDrag),$(l,"mousemove",r._delayedDragTouchMoveHandler),$(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&$(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&At(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?$(document,"pointermove",this._onTouchMove):t?$(document,"touchmove",this._onTouchMove):$(document,"mousemove",this._onTouchMove):($(h,"dragend",this),$(w,"dragstart",this._onDragStart));try{document.selection?tt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ee=!1,w&&h){M("dragStarted",this,{evt:t}),this.nativeDraggable&&$(document,"dragover",ci);var n=this.options;!e&&B(h,n.dragClass,!1),B(h,n.ghostClass,!0),y.active=this,e&&this._appendGhost(),N({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(j){this._lastX=j.clientX,this._lastY=j.clientY,$n();for(var e=document.elementFromPoint(j.clientX,j.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(j.clientX,j.clientY),e!==t);)t=e;if(h.parentNode[U]._isOutsideThisEl(e),t)do{if(t[U]){var n=void 0;if(n=t[U]._onDragOver({clientX:j.clientX,clientY:j.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);wn()}},_onTouchMove:function(e){if(le){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=_&&me(_,!0),l=_&&a&&a.a,s=_&&a&&a.d,d=Je&&L&&pn(L),c=(o.clientX-le.clientX+r.x)/(l||1)+(d?d[0]-$t[0]:0)/(l||1),u=(o.clientY-le.clientY+r.y)/(s||1)+(d?d[1]-$t[1]:0)/(s||1);if(!y.active&&!Ee){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(_){a?(a.e+=c-(bt||0),a.f+=u-(Ct||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var f="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(_,"webkitTransform",f),g(_,"mozTransform",f),g(_,"msTransform",f),g(_,"transform",f),bt=c,Ct=u,j=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!_){var e=this.options.fallbackOnBody?document.body:w,t=O(h,!0,Je,!0,e),n=this.options;if(Je){for(L=e;g(L,"position")==="static"&&g(L,"transform")==="none"&&L!==document;)L=L.parentNode;L!==document.body&&L!==document.documentElement?(L===document&&(L=Q()),t.top+=L.scrollTop,t.left+=L.scrollLeft):L=Q(),$t=pn(L)}_=h.cloneNode(!0),B(_,n.ghostClass,!1),B(_,n.fallbackClass,!0),B(_,n.dragClass,!0),g(_,"transition",""),g(_,"transform",""),g(_,"box-sizing","border-box"),g(_,"margin",0),g(_,"top",t.top),g(_,"left",t.left),g(_,"width",t.width),g(_,"height",t.height),g(_,"opacity","0.8"),g(_,"position",Je?"absolute":"fixed"),g(_,"zIndex","100000"),g(_,"pointerEvents","none"),y.ghost=_,e.appendChild(_),g(_,"transform-origin",vn/parseInt(_.style.width)*100+"% "+yn/parseInt(_.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;if(M("dragStart",this,{evt:e}),y.eventCanceled){this._onDrop();return}M("setupClone",this),y.eventCanceled||(A=mn(h),A.removeAttribute("id"),A.draggable=!1,A.style["will-change"]="",this._hideClone(),B(A,this.options.chosenClass,!1),y.clone=A),n.cloneId=tt(function(){M("clone",n),!y.eventCanceled&&(n.options.removeCloneOnHide||w.insertBefore(A,h),n._hideClone(),N({sortable:n,name:"clone"}))}),!t&&B(h,o.dragClass,!0),t?(We=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,h)),$(document,"drop",n),g(h,"transform","translateZ(0)")),Ee=!0,n._dragStartId=tt(n._dragStarted.bind(n,t,e)),$(document,"selectstart",n),Le=!0,Fe&&g(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,r,o,a,l=this.options,s=l.group,d=y.active,c=Ye===s,u=l.sort,f=x||d,m,p=this,v=!1;if(wt)return;function T(Be,Si){M(Be,p,z({evt:e,isOwner:c,axis:m?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:u,fromSortable:f,target:n,completed:P,onMove:function(In,Di){return et(w,t,h,r,In,O(In),e,Di)},changed:he},Si))}function F(){T("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function P(Be){return T("dragOverCompleted",{insertion:Be}),Be&&(c?d._hideClone():d._showClone(p),p!==f&&(B(h,x?x.options.ghostClass:d.options.ghostClass,!1),B(h,l.ghostClass,!0)),x!==p&&p!==y.active?x=p:p===y.active&&x&&(x=null),f===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){T("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===t&&!n.animated)&&(be=null),!l.dragoverBubble&&!e.rootEl&&n!==document&&(h.parentNode[U]._isOutsideThisEl(e.target),!Be&&de(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function he(){R=k(h),ee=k(h,l.draggable),N({sortable:p,name:"change",toEl:t,newIndex:R,newDraggableIndex:ee,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=X(n,l.draggable,t,!0),T("dragOver"),y.eventCanceled)return v;if(h.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return P(!1);if(We=!1,d&&!l.disabled&&(c?u||(a=S!==w):x===this||(this.lastPutMode=Ye.checkPull(this,d,h,e))&&s.checkPut(this,d,h,e))){if(m=this._getDirection(e,n)==="vertical",r=O(h),T("dragOverValid"),y.eventCanceled)return v;if(a)return S=w,F(),this._hideClone(),T("revert"),y.eventCanceled||(se?w.insertBefore(h,se):w.appendChild(h)),P(!0);var G=vt(t,l.draggable);if(!G||mi(e,m,this)&&!G.animated){if(G===h)return P(!1);if(G&&t===e.target&&(n=G),n&&(o=O(n)),et(w,t,h,r,n,o,e,!!n)!==!1)return F(),G&&G.nextSibling?t.insertBefore(h,G.nextSibling):t.appendChild(h),S=t,he(),P(!0)}else if(G&&gi(e,m,this)){var Dt=ve(t,0,l,!0);if(Dt===h)return P(!1);if(n=Dt,o=O(n),et(w,t,h,r,n,o,e,!1)!==!1)return F(),t.insertBefore(h,Dt),S=t,he(),P(!0)}else if(n.parentNode===t){o=O(n);var Ce=0,Tt,wi=h.parentNode!==t,On=!hi(h.animated&&h.toRect||r,n.animated&&n.toRect||o,m),xn=m?"top":"left",Ne=fn(n,"top","top")||fn(h,"top","top"),Ai=Ne?Ne.scrollTop:void 0;be!==n&&(Tt=o[xn],Ie=!1,qe=!On&&l.invertSwap||wi),Ce=vi(e,n,o,m,On?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,qe,be===n);var Me;if(Ce!==0){var Ln=k(h);do Ln-=Ce,Me=S.children[Ln];while(Me&&(g(Me,"display")==="none"||Me===_))}if(Ce===0||Me===n)return P(!1);be=n,Pe=Ce;var Pn=n.nextElementSibling,He=!1;He=Ce===1;var nt=et(w,t,h,r,n,o,e,He);if(nt!==!1)return(nt===1||nt===-1)&&(He=nt===1),wt=!0,setTimeout(pi,30),F(),He&&!Pn?t.appendChild(h):n.parentNode.insertBefore(h,He?Pn:n),Ne&&ii(Ne,0,Ai-Ne.scrollTop),S=h.parentNode,Tt!==void 0&&!qe&&(Ze=Math.abs(Tt-O(n)[xn])),he(),P(!0)}if(t.contains(h))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",de),b(document,"mousemove",de),b(document,"touchmove",de)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(R=k(h),ee=k(h,n.draggable),M("drop",this,{evt:e}),S=h&&h.parentNode,R=k(h),ee=k(h,n.draggable),y.eventCanceled){this._nulling();return}Ee=!1,qe=!1,Ie=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),St(this.cloneId),St(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fe&&g(document.body,"user-select",""),g(h,"transform",""),e&&(Le&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),_&&_.parentNode&&_.parentNode.removeChild(_),(w===S||x&&x.lastPutMode!=="clone")&&A&&A.parentNode&&A.parentNode.removeChild(A),h&&(this.nativeDraggable&&b(h,"dragend",this),At(h),h.style["will-change"]="",Le&&!Ee&&B(h,x?x.options.ghostClass:this.options.ghostClass,!1),B(h,this.options.chosenClass,!1),N({sortable:this,name:"unchoose",toEl:S,newIndex:null,newDraggableIndex:null,originalEvent:e}),w!==S?(R>=0&&(N({rootEl:S,name:"add",toEl:S,fromEl:w,originalEvent:e}),N({sortable:this,name:"remove",toEl:S,originalEvent:e}),N({rootEl:S,name:"sort",toEl:S,fromEl:w,originalEvent:e}),N({sortable:this,name:"sort",toEl:S,originalEvent:e})),x&&x.save()):R!==_e&&R>=0&&(N({sortable:this,name:"update",toEl:S,originalEvent:e}),N({sortable:this,name:"sort",toEl:S,originalEvent:e})),y.active&&((R==null||R===-1)&&(R=_e,ee=xe),N({sortable:this,name:"end",toEl:S,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){M("nulling",this),w=h=S=_=se=A=Xe=J=le=j=Le=R=ee=_e=xe=be=Pe=x=Ye=y.dragged=y.ghost=y.clone=y.active=null,Ke.forEach(function(e){e.checked=!0}),Ke.length=bt=Ct=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":h&&(this._onDragOver(e),fi(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,o=n.length,a=this.options;r<o;r++)t=n[r],X(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||_i(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(o,a){var l=r.children[a];X(l,this.options.draggable,r,!1)&&(n[o]=l)},this),t&&this.captureAnimationState(),e.forEach(function(o){n[o]&&(r.removeChild(n[o]),r.appendChild(n[o]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return X(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=Oe.modifyOption(this,e,t);typeof r<"u"?n[e]=r:n[e]=t,e==="group"&&Cn(n)},destroy:function(){M("destroy",this);var e=this.el;e[U]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ge.splice(Ge.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!J){if(M("hideClone",this),y.eventCanceled)return;g(A,"display","none"),this.options.removeCloneOnHide&&A.parentNode&&A.parentNode.removeChild(A),J=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(J){if(M("showClone",this),y.eventCanceled)return;h.parentNode==w&&!this.options.group.revertClone?w.insertBefore(A,h):se?w.insertBefore(A,se):w.appendChild(A),this.options.group.revertClone&&this.animate(h,A),g(A,"display",""),J=!1}}};function fi(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function et(i,e,t,n,r,o,a,l){var s,d=i[U],c=d.options.onMove,u;return window.CustomEvent&&!K&&!je?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=i,s.dragged=t,s.draggedRect=n,s.related=r||e,s.relatedRect=o||O(e),s.willInsertAfter=l,s.originalEvent=a,i.dispatchEvent(s),c&&(u=c.call(d,s,a)),u}function At(i){i.draggable=!1}function pi(){wt=!1}function gi(i,e,t){var n=O(ve(t.el,0,t.options,!0)),r=10;return e?i.clientX<n.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<n.top-r||i.clientY<n.bottom&&i.clientX<n.left}function mi(i,e,t){var n=O(vt(t.el,t.options.draggable)),r=10;return e?i.clientX>n.right+r||i.clientX<=n.right&&i.clientY>n.bottom&&i.clientX>=n.left:i.clientX>n.right&&i.clientY>n.top||i.clientX<=n.right&&i.clientY>n.bottom+r}function vi(i,e,t,n,r,o,a,l){var s=n?i.clientY:i.clientX,d=n?t.height:t.width,c=n?t.top:t.left,u=n?t.bottom:t.right,f=!1;if(!a){if(l&&Ze<d*r){if(!Ie&&(Pe===1?s>c+d*o/2:s<u-d*o/2)&&(Ie=!0),Ie)f=!0;else if(Pe===1?s<c+Ze:s>u-Ze)return-Pe}else if(s>c+d*(1-r)/2&&s<u-d*(1-r)/2)return yi(e)}return f=f||a,f&&(s<c+d*o/2||s>u-d*o/2)?s>c+d/2?1:-1:0}function yi(i){return k(h)<k(i)?1:-1}function _i(i){for(var e=i.tagName+i.className+i.src+i.href+i.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function Ei(i){Ke.length=0;for(var e=i.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&Ke.push(n)}}function tt(i){return setTimeout(i,0)}function St(i){return clearTimeout(i)}Qe&&$(document,"touchmove",function(i){(y.active||Ee)&&i.cancelable&&i.preventDefault()}),y.utils={on:$,off:b,css:g,find:cn,is:function(e,t){return!!X(e,t,e,!1)},extend:ti,throttle:ni,closest:X,toggleClass:B,clone:mn,index:k,nextTick:tt,cancelNextTick:St,detectDirection:bn,getChild:ve},y.get=function(i){return i[U]},y.mount=function(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(y.utils=z(z({},y.utils),n.utils)),Oe.mount(n)})},y.create=function(i,e){return new y(i,e)},y.version=Qn;var An=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var d=n||o;l();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),d&&!d.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Sn(){}Sn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=ve(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:An},Z(Sn,{pluginName:"revertOnSpill"});function Dn(){}Dn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:An},Z(Dn,{pluginName:"removeOnSpill"});const Tn=`
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=`
61
61
  :host {
62
62
  display: block;
63
63
  }
64
64
  .layer {
65
- display: flex;
65
+ display: inline-flex;
66
66
  justify-content: space-between;
67
67
  }
68
- .drag-handle {
69
- cursor: ns-resize;
70
- }
71
68
  ul[data-group] {
72
69
  padding-inline-start: 40px;
73
70
  }
74
- `,bi=`
75
- ul {
71
+ `,Di=`
72
+ * {
73
+ font-family: Roboto, sans-serif;
74
+ }
75
+
76
+
77
+ button {
78
+ /* TODO: why does this only work here and not from :root? */
79
+ --primary-color: #004170;
80
+ --primary-color-hover: #004170CC;
81
+ --error-color: #FF5252;
82
+
83
+ display: inline-flex;
84
+ align-items: center;
85
+ color: #fff;
86
+ border-width: 0;
87
+ outline: none;
88
+ border-radius: 4px;
89
+ padding: 16px;
90
+ height: 36px;
91
+ cursor: pointer;
92
+ font-family: inherit;
93
+ font-size: 0.875rem;
94
+ text-transform: uppercase;
95
+ letter-spacing: 1.25px;
96
+ font-weight: 500;
97
+ box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
98
+ transition-property: box-shadow, transform, opacity, background;
99
+ transition-duration: 0.28s;
100
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
101
+ }
102
+
103
+ button:hover {
104
+ box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
105
+ background: var(--primary-color-hover);
106
+ }
107
+
108
+ button, button:active {
109
+ background: var(--primary-color);
110
+ }
111
+
112
+ button.outline {
113
+ background: transparent;
114
+ box-shadow: none;
115
+ color: var(--primary-color);
116
+ outline: 1px solid var(--primary-color);
117
+ }
118
+
119
+ button.outline:hover {
120
+ background: transparent;
121
+ }
122
+
123
+ button.icon {
124
+ background: transparent;
125
+ border: none;
126
+ box-shadow: none;
76
127
  padding: 0;
128
+ border-radius: 50%;
129
+ width: 24px;
77
130
  }
78
- li {
79
- list-style: none;
131
+
132
+ button.icon-text {
133
+ text-indent: 26px;
134
+ }
135
+
136
+ button.icon:before, button.icon-text:before {
137
+ position: absolute;
138
+ text-indent: 0;
139
+ line-height: initial;
140
+ }
141
+
142
+ button.icon:before {
143
+ width: 24px;
144
+ height: 24px;
145
+ margin-right: 0;
146
+ }
147
+
148
+ button.icon-text:before {
149
+ width: 18px;
150
+ height: 18px;
151
+ }
152
+
153
+
154
+ input[type="range"] {
155
+ -webkit-appearance: none;
156
+ width: 90%;
157
+ margin-left: 5%;
158
+ height: 6px;
159
+ border-radius: 5px;
160
+ background: #d7dcdf;
161
+ outline: none;
162
+ padding: 0;
80
163
  }
81
- li > .layer > label {
164
+ input[type="range"]::-webkit-slider-thumb {
165
+ appearance: none;
166
+ width: 15px;
167
+ height: 15px;
168
+ border-radius: 50%;
169
+ background: #2c3e50;
170
+ cursor: pointer;
171
+ transition: background 0.15s ease-in-out;
172
+ }
173
+ .range-slider {
174
+ margin: 60px 0 0 0;
175
+ }
176
+ .range-slider {
177
+ width: 100%;
178
+ }
179
+ input[type="range"]::-webkit-slider-thumb:hover {
180
+ background: #00416F;
181
+ }
182
+ input[type="range"]:active::-webkit-slider-thumb {
183
+ background: #00416F;
184
+ }
185
+ input[type="range"]::-moz-range-thumb {
186
+ width: 15px;
187
+ height: 15px;
188
+ border: 0;
189
+ border-radius: 50%;
190
+ background: #2c3e50;
191
+ cursor: pointer;
192
+ transition: background 0.15s ease-in-out;
193
+ }
194
+ input[type="range"]::-moz-range-thumb:hover {
195
+ background: #00416F;
196
+ }
197
+ input[type="range"]:active::-moz-range-thumb {
198
+ background: #00416F;
199
+ }
200
+ input[type="range"]:focus::-webkit-slider-thumb {
201
+ box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
202
+ }
203
+ .range-slider__value {
204
+ display: inline-block;
205
+ position: relative;
206
+ width: 60px;
207
+ color: #fff;
208
+ line-height: 20px;
209
+ text-align: center;
210
+ border-radius: 3px;
211
+ background: #2c3e50;
212
+ padding: 5px 10px;
213
+ margin-left: 8px;
214
+ }
215
+ .range-slider__value:after {
216
+ position: absolute;
217
+ top: 8px;
218
+ left: -7px;
219
+ width: 0;
220
+ height: 0;
221
+ border-top: 7px solid transparent;
222
+ border-right: 7px solid #2c3e50;
223
+ border-bottom: 7px solid transparent;
224
+ content: '';
225
+ }
226
+
227
+ input::-moz-focus-inner, input::-moz-focus-outer {
228
+ border: 0;
229
+ }
230
+
231
+
232
+ input[type=radio] {
233
+ appearance: none;
234
+ margin: 0;
82
235
  cursor: pointer;
83
236
  display: flex;
237
+ flex-direction: row;
84
238
  align-items: center;
85
239
  }
86
- li label > input[type=checkbox] {
240
+ input[type=radio]:after {
241
+ display: block;
242
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E");
243
+ width: 20px;
244
+ height: 20px;
245
+ margin-right: 4px;
246
+ }
247
+ input[type=radio]:checked:after {
248
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");
249
+
250
+ }
251
+
252
+
253
+ input[type=checkbox] {
87
254
  appearance: none;
88
255
  margin: 0;
256
+ cursor: pointer;
257
+ display: flex;
258
+ flex-direction: row;
259
+ align-items: center;
89
260
  }
90
- li label > input[type=checkbox]:after {
261
+ input[type=checkbox]:after {
91
262
  display: block;
92
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eeye-off-outline%3C/title%3E%3Cpath fill='%23004170' d='M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z' /%3E%3C/svg%3E");
93
- width: 24px;
94
- height: 24px;
263
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E");
264
+ width: 20px;
265
+ height: 20px;
95
266
  margin-right: 4px;
96
267
  }
97
- li label > input[type=checkbox]:checked:after {
98
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath fill='%23004170' d='M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z' /%3E%3C/svg%3E");
268
+ input[type=checkbox]:checked:after {
269
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
270
+
99
271
  }
100
- .drag-handle span {
101
- display: none;
272
+
273
+
274
+ summary > .layer {
275
+ height: 36px;
276
+ border-bottom: 1px solid #00417000;
277
+ display: flex;
278
+ align-items: center;
279
+ padding-right: 12px;
102
280
  }
103
- .drag-handle {
104
- background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag%3C/title%3E%3Cpath fill='%23004170' d='M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z' /%3E%3C/svg%3E");
281
+
282
+ [data-type=group] .title {
283
+ font-style: italic;
284
+ }
285
+
286
+
287
+ [data-type] .title::before {
105
288
  width: 24px;
106
289
  height: 24px;
290
+ margin-right: 6px;
291
+ margin-left: -1px;
107
292
  }
108
- li.sortable-chosen {
109
- background: #eeea;
293
+
294
+ [data-type=group] .title::before {
295
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Efolder-outline%3C/title%3E%3Cpath d='M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z' /%3E%3C/svg%3E");
110
296
  }
111
- li.sortable-drag {
112
- opacity: 0;
297
+
298
+ li[data-type=raster] .title::before {
299
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckerboard%3C/title%3E%3Cpath d='M2 2V22H22V2H2M20 12H16V16H20V20H16V16H12V20H8V16H4V12H8V8H4V4H8V8H12V4H16V8H20V12M16 8V12H12V8H16M12 12V16H8V12H12Z' /%3E%3C/svg%3E");
113
300
  }
114
- li.sortable-ghost {
301
+
302
+ li[data-type=vector] .title::before {
303
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Eshape-outline%3C/title%3E%3Cpath d='M11,13.5V21.5H3V13.5H11M9,15.5H5V19.5H9V15.5M12,2L17.5,11H6.5L12,2M12,5.86L10.08,9H13.92L12,5.86M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13M17.5,15A2.5,2.5 0 0,0 15,17.5A2.5,2.5 0 0,0 17.5,20A2.5,2.5 0 0,0 20,17.5A2.5,2.5 0 0,0 17.5,15Z' /%3E%3C/svg%3E");
304
+ }
305
+
306
+ li[data-type=draw] .title::before {
307
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236889A0' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E");
308
+ }
309
+
310
+ [data-type]:not([data-type=group]) .title {
311
+ font-style: normal;
115
312
  }
116
- details.group-details {
313
+
314
+ details summary { list-style-type: none; } /* Firefox */
315
+ details summary::-webkit-details-marker { display: none; } /* Chrome */
316
+ details summary::marker { display: none; }
317
+
318
+ .layers > ul > li {
319
+ background: #F1F5F900;
320
+ }
321
+
322
+ summary {
117
323
  position: relative;
118
324
  }
119
- details.group-details > summary {
325
+ summary details, summary li, summary ul {
326
+ width: 100%;
327
+ }
328
+
329
+ input[type="text"] {
330
+ --search-padding-left: 32px;
331
+ width: calc(100% - var(--search-padding-left) - 4px);
332
+ height: 32px;
333
+ padding-left: var(--search-padding-left);
334
+ font-size: 15px;
335
+ }
336
+
337
+ input[type="text"]::before {
338
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Emagnify%3C/title%3E%3Cpath d='M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z' /%3E%3C/svg%3E");
339
+ }
340
+
341
+ ul {
342
+ padding: 0;
343
+ background: #D7E2EE;
344
+ background: #CFDDEB00;
345
+ }
346
+ li {
120
347
  list-style: none;
121
- position: absolute;
122
- right: 20px;
123
- top: -64px;
124
- font-size: 0;
348
+ cursor: pointer;
349
+ background: #CFDDEB00;
350
+ border-top: 1px solid #00417033;
125
351
  }
126
- details.group-details > summary:after {
127
- display: block;
128
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eplus%3C/title%3E%3Cpath d='M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z' /%3E%3C/svg%3E");
352
+ li summary {
353
+ display: flex;
354
+ }
355
+
356
+ .slider-control {
357
+ display: flex;
358
+ flex-direction: row;
359
+ align-items: center;
360
+ margin-top: 9px;
361
+ margin-left: 64px;
362
+ margin-bottom: 12px;
363
+ }
364
+
365
+ .slider-control input[type=range] {
366
+ max-width: 120px;
367
+ }
368
+
369
+ .slider-control .slider-property {
370
+ width: 80px;
371
+ color: #3B6289;
372
+ font-size: 14px;
373
+ }
374
+
375
+ .slider-control > * {
376
+ text-transform: capitalize;
377
+ }
378
+
379
+ /* Expansible Section Chevron */
380
+ li summary:before {
381
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echevron-right%3C/title%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E");
382
+ font-size: 13px;
129
383
  width: 24px;
130
384
  height: 24px;
385
+ margin-right: 6px;
386
+ margin-left: -1px;
387
+
388
+ margin-top: 5px;
389
+ }
390
+ li details[open] > summary:before {
391
+ transform: rotate(90deg);
392
+ }
393
+ li[data-layerconfig=false]:not([data-type=group]) summary:before {
394
+ display: none;
395
+ }
396
+ li .layer {
397
+ width: 100%;
398
+ }
399
+ li .layer .left,
400
+ li .layer .right {
401
+ display: flex;
402
+ }
403
+ li .layer .left span {
131
404
  cursor: pointer;
405
+ display: flex;
406
+ align-items: center;
407
+ margin-left: 6px;
132
408
  }
133
- details[open].group-details > summary:after {
134
- display: block;
135
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eminus%3C/title%3E%3Cpath d='M19,13H5V11H19V13Z' /%3E%3C/svg%3E");
409
+ .drag-handle span {
410
+ display: none;
411
+ }
412
+ .drag-handle {
413
+ cursor: ns-resize;
414
+ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Edrag%3C/title%3E%3Cpath fill='%23004170' d='M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z' /%3E%3C/svg%3E");
136
415
  width: 24px;
137
416
  height: 24px;
138
- cursor: pointer;
139
417
  }
140
- `;var Ci=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,D=(i,e,t,n)=>{for(var r=n>1?void 0:n?$i(e,t):e,o=i.length-1,a;o>=0;o--)(a=i[o])&&(r=(n?a(e,t,r):a(r))||r);return n&&r&&Ci(e,t,r),r};E.EOxLayerControl=class extends pe{constructor(){super(...arguments),this.layerIdentifier="ol_uid",this.layerTitle="title",this.sortBy="layerOrder",this.layerConfig=["opacity"],this.externalLayerConfig=void 0,this.filterLayers=(e,t,n)=>{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(e,t,n),r},this.findLayerById=(e,t)=>this.filterLayers(e,"id",t)[0]}_updateControl(e){this.layerCollection=e,this.optionalLayerArray=this.filterLayers(e.getArray(),"layerControlOptional",!0),this.requestUpdate()}_emitLayerconfig(e){const t={detail:{layer:e},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("layerconfig",t))}changeOpacity(e,t){e.setOpacity(t)}changeStyleProperty(e,t,n){e.updateStyleVariables({...e.style_,[t]:n})}preFilterLayers(e){return[...e].filter(t=>t.get("layerControlHide")!==!0&&t.get("layerControlOptional")!==!0)}toggleLayerVisibility(e,t){if(e.setVisible(!e.getVisible()),e.get("layerControlExclusive")){let n=[];t?n=this.findLayerById(this.layerCollection.getArray(),t).getLayers().getArray().filter(o=>o.get(this.layerIdentifier)!==e.get(this.layerIdentifier)&&o.get("layerControlExclusive")):n=this.layerCollection.getArray().filter(r=>r.get(this.layerIdentifier)!==e.get(this.layerIdentifier)&&r.get("layerControlExclusive")),n.forEach(r=>{r.setVisible(!1)})}this.requestUpdate()}render(){var o;const e=document.querySelector(this.for),n=(e.map||e).getLayers();this._updateControl(n),n.on("change:length",()=>{this._currentlySorting||this._updateControl(n)});const r=(a,l)=>I`
141
- <ul data-group="${l??C}">
142
- ${gt(a,s=>s.get(this.layerIdentifier),s=>I`
418
+ .drag-handle.disabled {
419
+ cursor: not-allowed;
420
+ opacity: 0.3;
421
+ }
422
+ li.sortable-chosen {
423
+ background: #eeea;
424
+ }
425
+ li.sortable-drag {
426
+ opacity: 0;
427
+ }
428
+ li.sortable-ghost {
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`
431
+ <details>
432
+ <summary>
433
+ <div class="layer">
434
+ <div class="left">
435
+ <input
436
+ type="${s.get("layerControlExclusive")?"radio":"checkbox"}"
437
+ .checked="${me(s.getVisible())}"
438
+ @click=${()=>{this.toggleLayerVisibility(s,l)}}
439
+ />
440
+ <span class="title"
441
+ >${s.get(this.layerTitle)||`${s.get(this.layerIdentifier)}`}
442
+ </span>
443
+ </div>
444
+ <div class="right">
445
+ ${this.sortBy==="layerOrder"&&!this.unstyled?L` <div
446
+ class="drag-handle ${s.get("layerControlDisable")?"disabled":""}"
447
+ >
448
+ <span>=</span>
449
+ </div>`:w}
450
+ </div>
451
+ </div>
452
+ </summary>
453
+ ${this.layerConfig?L`
454
+ <eox-layerconfig
455
+ .layerConfig="${this.layerConfig}"
456
+ .layerControl="${this}"
457
+ .layer=${s}
458
+ .external=${this.externalLayerConfig}
459
+ .unstyled="${this.unstyled}"
460
+ ></eox-layerconfig>
461
+ `:w}
462
+ ${this.externalLayerConfig&&((d=s.style_)!=null&&d.color)?L`
463
+ <button @click=${()=>this._emitLayerconfig(s)}>
464
+ configure
465
+ </button>
466
+ `:w}
467
+ ${s.getLayers?L`
468
+ ${o(this.preFilterLayers([...s.getLayers().getArray()].reverse()),s.get("id"))}
469
+ `:w}
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`
143
474
  <li
144
- data-layer="${s.get(this.layerIdentifier)}"
145
- data-disabled="${s.get("layerControlDisable")||C}"
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}"
146
479
  >
147
- <div class="layer">
148
- <label>
149
- <input
150
- type="${s.get("layerControlExclusive")?"radio":"checkbox"}"
151
- .checked="${mt(s.getVisible())}"
152
- @click=${()=>{this.toggleLayerVisibility(s,l)}}
153
- />
154
- <span class="title"
155
- >${s.get(this.layerTitle)||`${s.get(this.layerIdentifier)}`}</span
156
- >
157
- </label>
158
- ${this.sortBy==="layerOrder"&&!s.get("layerControlDisable")?I`<div class="drag-handle">
159
- <span>=</span>
160
- </div>`:C}
161
- </div>
162
- ${this.layerConfig?I`
163
- <eox-layerconfig
164
- .layerConfig="${this.layerConfig}"
165
- .layerControl="${this}"
166
- .layer=${s}
167
- .external=${this.externalLayerConfig}
168
- ></eox-layerconfig>
169
- `:C}
170
- ${this.externalLayerConfig&&s.style_?I`
171
- <button
172
- @click=${()=>this._emitLayerconfig(s)}
173
- >
174
- configure
175
- </button>
176
- `:C}
177
- ${s.getLayers?I`
178
- <details open class="group-details">
179
- <summary>Layers</summary>
180
- ${r(this.preFilterLayers([...s.getLayers().getArray()].reverse()),s.get("id"))}
181
- </details>
182
- `:C}
480
+ ${r(d,l)}
183
481
  </li>
184
- `)}
482
+ `})}
185
483
  </ul>
186
- `;return I`
484
+ `;return L`
187
485
  <style>
188
- ${Tn}
189
- ${!this.unstyled&&bi}
486
+ ${Si}
487
+ ${!this.unstyled&&Di}
190
488
  </style>
191
489
  <div>
192
490
  <slot></slot>
193
- <div>
194
- ${r(this.preFilterLayers(n.getArray()))}
491
+ <input type="text" placeholder="Find layer" />
492
+ <div class="layers">
493
+ ${o(this.preFilterLayers(i.getArray()))}
195
494
  </div>
196
- ${on(((o=this.optionalLayerArray)==null?void 0:o.length)>0,()=>I`
495
+ ${ri(((a=this.optionalLayerArray)==null?void 0:a.length)>0,()=>L`
197
496
  <label for="optional">Optional layers</label>
198
497
 
199
498
  <select name="optional">
200
499
  <option disabled selected value>
201
500
  -- select an optional layer to add --
202
501
  </option>
203
- ${this.optionalLayerArray.map(a=>I`
502
+ ${this.optionalLayerArray.map(s=>L`
204
503
  <option
205
- value="${a.get(this.layerIdentifier)}"
504
+ value="${s.get(this.layerIdentifier)}"
206
505
  >
207
- ${a.get(this.layerTitle)||`layer ${a.get(this.layerIdentifier)}`}
506
+ ${s.get(this.layerTitle)||`layer ${s.get(this.layerIdentifier)}`}
208
507
  </option>
209
508
  `)}
210
509
  </select>
211
510
  <button
212
- @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)}}"
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)}}"
213
512
  >
214
513
  add
215
514
  </button>
216
515
  `)}
217
516
  </div>
218
- `}updated(){this.sortBy=="layerOrder"&&this.renderRoot.querySelectorAll("ul").forEach(t=>{const n=t.dataset.group;y.create(t,{handle:".drag-handle",dataIdAttr:"data-layer",filter:"data-disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{get:()=>n?[...this.findLayerById(this.layerCollection.getArray(),n).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(n){const d=this.findLayerById(this.layerCollection.getArray(),n).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})})}},D([ge()],E.EOxLayerControl.prototype,"olMap",2),D([ge()],E.EOxLayerControl.prototype,"layerCollection",2),D([ge()],E.EOxLayerControl.prototype,"layerArray",2),D([ge()],E.EOxLayerControl.prototype,"optionalLayerArray",2),D([H()],E.EOxLayerControl.prototype,"for",2),D([H()],E.EOxLayerControl.prototype,"layerIdentifier",2),D([H()],E.EOxLayerControl.prototype,"layerTitle",2),D([H()],E.EOxLayerControl.prototype,"sortBy",2),D([H({type:Array})],E.EOxLayerControl.prototype,"layerConfig",2),D([H({type:Boolean})],E.EOxLayerControl.prototype,"externalLayerConfig",2),D([H({type:Boolean})],E.EOxLayerControl.prototype,"unstyled",2),E.EOxLayerControl=D([Qt("eox-layercontrol")],E.EOxLayerControl),E.EOxLayerConfig=class extends pe{constructor(){super(...arguments),this._configList={}}_handleInput(e,t){t==="opacity"?this._layerControlElement.changeOpacity(this._currentLayer,parseFloat(e.target.value)):this._layerControlElement.changeStyleProperty(this._currentLayer,t,parseFloat(e.target.value))}_parseConfigs(e){if(!e)return;const t=e.style_;t&&t.color&&t.color[0]==="array"&&(this._configList=t.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",e=>{this._currentLayer=e.detail.layer,this._parseConfigs(this._currentLayer),this.requestUpdate()}))):(this._layerControlElement=this.layerControl,this._currentLayer=this.layer,this._parseConfigs(this._currentLayer))}render(){return I`
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`
219
518
  <style>
220
- ${Tn}
519
+ ${Si}
520
+ ${!this.unstyled&&Di}
221
521
  </style>
222
- ${on(this._currentLayer,()=>I`
522
+ ${ri(this._currentLayer,()=>L`
223
523
  <div>
224
524
  <slot></slot>
225
- ${this.for?I`layer: ${this._currentLayer.get("name")}`:C}
226
- ${gt(this.layerConfig.filter(e=>this.for?e!=="opacity":!0),e=>e,e=>I`
227
- <div>${e}</div>
228
- <input
229
- type="range"
230
- min="0"
231
- max="1"
232
- step="0.01"
233
- value="${mt(this._currentLayer.getOpacity())}"
234
- @input=${t=>this._handleInput(t,e)}
235
- />
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`
527
+ <div class="slider-control">
528
+ <div class="slider-property">${t}</div>
529
+ <input
530
+ type="range"
531
+ min="0"
532
+ max="1"
533
+ step="0.01"
534
+ value="${me(this._currentLayer.getOpacity())}"
535
+ @input=${e=>this._handleInput(e,t)}
536
+ />
537
+ </div>
236
538
  `)}
237
- ${Object.keys(this._configList).length>0&&!this.external?I`
238
- <details open="${this.for?!0:C}">
539
+ ${Object.keys(this._configList).length>0&&!this.external?L`
540
+ <details open="${this.for?!0:w}">
239
541
  <summary>Layer config</summary>
240
542
  <ul>
241
- ${gt(Object.keys(this._configList),e=>e,e=>I` <li>
242
- <div>${e}</div>
543
+ ${ge(Object.keys(this._configList),t=>t,t=>L` <li>
544
+ <div>${t}</div>
243
545
  <input
244
546
  type="range"
245
- min="${["red","green","blue"].includes(e)?1:2e3}"
246
- max="${["red","green","blue"].includes(e)?4:5e3}"
247
- value="${mt(this._configList[e])}"
248
- @input=${t=>this._handleInput(t,e)}
547
+ min="${["red","green","blue"].includes(t)?1:2e3}"
548
+ max="${["red","green","blue"].includes(t)?4:5e3}"
549
+ value="${me(this._configList[t])}"
550
+ @input=${e=>this._handleInput(e,t)}
249
551
  />
250
552
  </li>`)}
251
553
  </ul>
252
554
  </details>
253
- `:C}
555
+ `:w}
254
556
  </div>
255
557
  `)}
256
- `}},D([H()],E.EOxLayerConfig.prototype,"for",2),D([H({type:Array})],E.EOxLayerConfig.prototype,"layerConfig",2),D([H({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layerControl",2),D([H({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layer",2),D([H({type:Boolean})],E.EOxLayerConfig.prototype,"external",2),D([ge()],E.EOxLayerConfig.prototype,"_currentLayer",2),D([ge()],E.EOxLayerConfig.prototype,"_configList",2),E.EOxLayerConfig=D([Qt("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([Qe("eox-layerconfig")],E.EOxLayerConfig),Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});