@eox/layercontrol 0.8.0 → 0.9.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.
- package/dist/eox-layercontrol.js +669 -646
- package/dist/eox-layercontrol.umd.cjs +50 -41
- package/package.json +1 -1
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
var
|
|
1
|
+
var rn=Object.defineProperty;var sn=(S,x,H)=>x in S?rn(S,x,{enumerable:!0,configurable:!0,writable:!0,value:H}):S[x]=H;var X=(S,x,H)=>(sn(S,typeof x!="symbol"?x+"":x,H),H),an=(S,x,H)=>{if(!x.has(S))throw TypeError("Cannot "+H)};var I=(S,x,H)=>(an(S,x,"read from private field"),H?H.call(S):x.get(S)),V=(S,x,H)=>{if(x.has(S))throw TypeError("Cannot add the same private member more than once");x instanceof WeakSet?x.add(S):x.set(S,H)};(function(S,x){typeof exports=="object"&&typeof module<"u"?x(exports):typeof define=="function"&&define.amd?define(["exports"],x):(S=typeof globalThis<"u"?globalThis:S||self,x(S["eox-layercontrol"]={}))})(this,function(S){var ve,ye,be,Ee,we,_e,$e,xe,Ae,Ce,Se,Te,De,Pe;"use strict";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const x=window,
|
|
5
|
+
*/const x=window,H=x.ShadowRoot&&(x.ShadyCSS===void 0||x.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,di=Symbol(),ui=new WeakMap;let ro=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==di)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(H&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=ui.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ui.set(e,t))}return t}toString(){return this.cssText}};const so=o=>new ro(typeof o=="string"?o:o+"",void 0,di),ao=(o,t)=>{H?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),n=x.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,o.appendChild(i)})},hi=H?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return so(e)})(o):o;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var
|
|
9
|
+
*/var He;const Jt=window,ci=Jt.trustedTypes,lo=ci?ci.emptyScript:"",pi=Jt.reactiveElementPolyfillSupport,Me={toAttribute(o,t){switch(t){case Boolean:o=o?lo:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},fi=(o,t)=>t!==o&&(t==t||o==o),Ne={attribute:!0,type:String,converter:Me,reflect:!1,hasChanged:fi},ke="finalized";let $t=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 n=this._$Ep(i,e);n!==void 0&&(this._$Ev.set(n,i),t.push(n))}),t}static createProperty(t,e=Ne){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,n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const r=this[t];this[e]=n,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Ne}static finalize(){if(this.hasOwnProperty(ke))return!1;this[ke]=!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 n of i)this.createProperty(n,e[n])}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 n of i)e.unshift(hi(n))}else t!==void 0&&e.push(hi(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 ao(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=Ne){var n;const r=this.constructor._$Ep(t,i);if(r!==void 0&&i.reflect===!0){const s=(((n=i.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?i.converter:Me).toAttribute(e,i.type);this._$El=t,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,r=n._$Ev.get(t);if(r!==void 0&&this._$El!==r){const s=n.getPropertyOptions(r),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?s.converter:Me;this._$El=r,this[r]=l.fromAttribute(e,s.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||fi)(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))):n=!1),!this.isUpdatePending&&n&&(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((n,r)=>this[r]=n),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(n=>{var r;return(r=n.hostUpdate)===null||r===void 0?void 0:r.call(n)}),this.update(i)):this._$Ek()}catch(n){throw e=!1,this._$Ek(),n}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var n;return(n=i.hostUpdated)===null||n===void 0?void 0:n.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){}};$t[ke]=!0,$t.elementProperties=new Map,$t.elementStyles=[],$t.shadowRootOptions={mode:"open"},pi==null||pi({ReactiveElement:$t}),((He=Jt.reactiveElementVersions)!==null&&He!==void 0?He:Jt.reactiveElementVersions=[]).push("1.6.2");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var Ie;const Qt=window,xt=Qt.trustedTypes,gi=xt?xt.createPolicy("lit-html",{createHTML:
|
|
14
|
-
\f\r]`,Nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yi=/-->/g,bi=/>/g,ft=RegExp(`>|${
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ei=/'/g,wi=/"/g,_i=/^(?:script|style|textarea|title)$/i,
|
|
13
|
+
*/var Ie;const Qt=window,xt=Qt.trustedTypes,gi=xt?xt.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ve="$lit$",at=`lit$${(Math.random()+"").slice(9)}$`,mi="?"+at,uo=`<${mi}>`,pt=document,Ht=()=>pt.createComment(""),Mt=o=>o===null||typeof o!="object"&&typeof o!="function",vi=Array.isArray,ho=o=>vi(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Re=`[
|
|
14
|
+
\f\r]`,Nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yi=/-->/g,bi=/>/g,ft=RegExp(`>|${Re}(?:([^\\s"'>=/]+)(${Re}*=${Re}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ei=/'/g,wi=/"/g,_i=/^(?:script|style|textarea|title)$/i,co=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),_=co(1),q=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),$i=new WeakMap,gt=pt.createTreeWalker(pt,129,null,!1);function xi(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return gi!==void 0?gi.createHTML(t):t}const po=(o,t)=>{const e=o.length-1,i=[];let n,r=t===2?"<svg>":"",s=Nt;for(let l=0;l<e;l++){const a=o[l];let d,c,u=-1,p=0;for(;p<a.length&&(s.lastIndex=p,c=s.exec(a),c!==null);)p=s.lastIndex,s===Nt?c[1]==="!--"?s=yi:c[1]!==void 0?s=bi:c[2]!==void 0?(_i.test(c[2])&&(n=RegExp("</"+c[2],"g")),s=ft):c[3]!==void 0&&(s=ft):s===ft?c[0]===">"?(s=n??Nt,u=-1):c[1]===void 0?u=-2:(u=s.lastIndex-c[2].length,d=c[1],s=c[3]===void 0?ft:c[3]==='"'?wi:Ei):s===wi||s===Ei?s=ft:s===yi||s===bi?s=Nt:(s=ft,n=void 0);const v=s===ft&&o[l+1].startsWith("/>")?" ":"";r+=s===Nt?a+uo:u>=0?(i.push(d),a.slice(0,u)+Ve+a.slice(u)+at+v):a+at+(u===-2?(i.push(void 0),l):v)}return[xi(o,r+(o[e]||"<?>")+(t===2?"</svg>":"")),i]};class kt{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,s=0;const l=t.length-1,a=this.parts,[d,c]=po(t,e);if(this.el=kt.createElement(d,i),gt.currentNode=this.el.content,e===2){const u=this.el.content,p=u.firstChild;p.remove(),u.append(...p.childNodes)}for(;(n=gt.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes()){const u=[];for(const p of n.getAttributeNames())if(p.endsWith(Ve)||p.startsWith(at)){const v=c[s++];if(u.push(p),v!==void 0){const y=n.getAttribute(v.toLowerCase()+Ve).split(at),b=/([.?@])?(.*)/.exec(v);a.push({type:1,index:r,name:b[2],strings:y,ctor:b[1]==="."?go:b[1]==="?"?vo:b[1]==="@"?yo:te})}else a.push({type:6,index:r})}for(const p of u)n.removeAttribute(p)}if(_i.test(n.tagName)){const u=n.textContent.split(at),p=u.length-1;if(p>0){n.textContent=xt?xt.emptyScript:"";for(let v=0;v<p;v++)n.append(u[v],Ht()),gt.nextNode(),a.push({type:2,index:++r});n.append(u[p],Ht())}}}else if(n.nodeType===8)if(n.data===mi)a.push({type:2,index:r});else{let u=-1;for(;(u=n.data.indexOf(at,u+1))!==-1;)a.push({type:7,index:r}),u+=at.length-1}r++}}static createElement(t,e){const i=pt.createElement("template");return i.innerHTML=t,i}}function At(o,t,e=o,i){var n,r,s,l;if(t===q)return t;let a=i!==void 0?(n=e._$Co)===null||n===void 0?void 0:n[i]:e._$Cl;const d=Mt(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==d&&((r=a==null?void 0:a._$AO)===null||r===void 0||r.call(a,!1),d===void 0?a=void 0:(a=new d(o),a._$AT(o,e,i)),i!==void 0?((s=(l=e)._$Co)!==null&&s!==void 0?s:l._$Co=[])[i]=a:e._$Cl=a),a!==void 0&&(t=At(o,a._$AS(o,t.values),a,i)),t}class fo{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:n}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:pt).importNode(i,!0);gt.currentNode=r;let s=gt.nextNode(),l=0,a=0,d=n[0];for(;d!==void 0;){if(l===d.index){let c;d.type===2?c=new It(s,s.nextSibling,this,t):d.type===1?c=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(c=new bo(s,this,t)),this._$AV.push(c),d=n[++a]}l!==(d==null?void 0:d.index)&&(s=gt.nextNode(),l++)}return gt.currentNode=pt,r}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 It{constructor(t,e,i,n){var r;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=(r=n==null?void 0:n.isConnected)===null||r===void 0||r}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=At(this,t,e),Mt(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==q&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ho(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!==$&&Mt(this._$AH)?this._$AA.nextSibling.data=t:this.$(pt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=kt.createElement(xi(n.h,n.h[0]),this.options)),n);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(i);else{const s=new fo(r,this),l=s.u(this.options);s.v(i),this.$(l),this._$AH=s}}_$AC(t){let e=$i.get(t.strings);return e===void 0&&$i.set(t.strings,e=new kt(t)),e}T(t){vi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const r of t)n===e.length?e.push(i=new It(this.k(Ht()),this.k(Ht()),this,this.options)):i=e[n],i._$AI(r),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$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 n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class te{constructor(t,e,i,n,r){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const r=this.strings;let s=!1;if(r===void 0)t=At(this,t,e,0),s=!Mt(t)||t!==this._$AH&&t!==q,s&&(this._$AH=t);else{const l=t;let a,d;for(t=r[0],a=0;a<r.length-1;a++)d=At(this,l[i+a],e,a),d===q&&(d=this._$AH[a]),s||(s=!Mt(d)||d!==this._$AH[a]),d===$?t=$:t!==$&&(t+=(d??"")+r[a+1]),this._$AH[a]=d}s&&!n&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class go extends te{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}}const mo=xt?xt.emptyScript:"";class vo extends te{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$?this.element.setAttribute(this.name,mo):this.element.removeAttribute(this.name)}}class yo extends te{constructor(t,e,i,n,r){super(t,e,i,n,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=At(this,t,e,0))!==null&&i!==void 0?i:$)===q)return;const n=this._$AH,r=t===$&&n!==$||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==$&&(n===$||r);r&&this.element.removeEventListener(this.name,this,n),s&&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 bo{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){At(this,t)}}const Ai=Qt.litHtmlPolyfillSupport;Ai==null||Ai(kt,It),((Ie=Qt.litHtmlVersions)!==null&&Ie!==void 0?Ie:Qt.litHtmlVersions=[]).push("2.8.0");const Eo=(o,t,e)=>{var i,n;const r=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let s=r._$litPart$;if(s===void 0){const l=(n=e==null?void 0:e.renderBefore)!==null&&n!==void 0?n:null;r._$litPart$=s=new It(t.insertBefore(Ht(),l),l,void 0,e??{})}return s._$AI(o),s};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/var Be,
|
|
19
|
+
*/var Be,Le;let Y=class extends $t{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=Eo(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 q}};Y.finalized=!0,Y._$litElement$=!0,(Be=globalThis.litElementHydrateSupport)===null||Be===void 0||Be.call(globalThis,{LitElement:Y});const Ci=globalThis.litElementPolyfillSupport;Ci==null||Ci({LitElement:Y}),((Le=globalThis.litElementVersions)!==null&&Le!==void 0?Le:globalThis.litElementVersions=[]).push("3.3.2");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2021 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/function et(
|
|
23
|
+
*/function et(o,t,e){return o?t():e==null?void 0:e()}/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const mt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ue=
|
|
27
|
+
*/const mt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ue=o=>(...t)=>({_$litDirective$:o,values:t});let Fe=class{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)}};/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2020 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/const
|
|
31
|
+
*/const wo=o=>o.strings===void 0,_o={},Si=(o,t=_o)=>o._$AH=t;/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2021 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/const $
|
|
35
|
+
*/const $o=Ue(class extends Fe{constructor(){super(...arguments),this.key=$}render(o,t){return this.key=o,t}update(o,[t,e]){return t!==this.key&&(Si(o),this.key=t),e}});/**!
|
|
36
36
|
* Sortable 1.15.0
|
|
37
37
|
* @author RubaXa <trash@rubaxa.org>
|
|
38
38
|
* @author owenm <owen23355@gmail.com>
|
|
39
39
|
* @license MIT
|
|
40
|
-
*/function Ti(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,i)}return e}function K(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Ti(Object(e),!0).forEach(function(i){xn(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Ti(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function ee(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ee=function(t){return typeof t}:ee=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(n)}function xn(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function it(){return it=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},it.apply(this,arguments)}function An(n,t){if(n==null)return{};var e={},i=Object.keys(n),o,r;for(r=0;r<i.length;r++)o=i[r],!(t.indexOf(o)>=0)&&(e[o]=n[o]);return e}function Cn(n,t){if(n==null)return{};var e=An(n,t),i,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var Sn="1.15.0";function nt(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var ot=nt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vt=nt(/Edge/i),Di=nt(/firefox/i),Lt=nt(/safari/i)&&!nt(/chrome/i)&&!nt(/android/i),Pi=nt(/iP(ad|od|hone)/i),Hi=nt(/chrome/i)&&nt(/android/i),Oi={capture:!1,passive:!1};function w(n,t,e){n.addEventListener(t,e,!ot&&Oi)}function E(n,t,e){n.removeEventListener(t,e,!ot&&Oi)}function ie(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 Tn(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function J(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&ie(n,t):ie(n,t))||i&&n===e)return n;if(n===e)break}while(n=Tn(n))}return null}var Mi=/\s+/g;function B(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(Mi," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Mi," ")}}function f(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 Ct(n,t){var e="";if(typeof n=="string")e=n;else do{var i=f(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function Ni(n,t,e){if(n){var i=n.getElementsByTagName(t),o=0,r=i.length;if(e)for(;o<r;o++)e(i[o],o);return i}return[]}function Q(){var n=document.scrollingElement;return n||document.documentElement}function P(n,t,e,i,o){if(!(!n.getBoundingClientRect&&n!==window)){var r,s,l,a,d,h,u;if(n!==window&&n.parentNode&&n!==Q()?(r=n.getBoundingClientRect(),s=r.top,l=r.left,a=r.bottom,d=r.right,h=r.height,u=r.width):(s=0,l=0,a=window.innerHeight,d=window.innerWidth,h=window.innerHeight,u=window.innerWidth),(t||e)&&n!==window&&(o=o||n.parentNode,!ot))do if(o&&o.getBoundingClientRect&&(f(o,"transform")!=="none"||e&&f(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(f(o,"border-top-width")),l-=p.left+parseInt(f(o,"border-left-width")),a=s+r.height,d=l+r.width;break}while(o=o.parentNode);if(i&&n!==window){var v=Ct(o||n),y=v&&v.a,b=v&&v.d;v&&(s/=b,l/=y,u/=y,h/=b,a=s+h,d=l+u)}return{top:s,left:l,bottom:a,right:d,width:u,height:h}}}function ki(n,t,e){for(var i=lt(n,!0),o=P(n)[t];i;){var r=P(i)[e],s=void 0;if(e==="top"||e==="left"?s=o>=r:s=o<=r,!s)return i;if(i===Q())break;i=lt(i,!1)}return!1}function St(n,t,e,i){for(var o=0,r=0,s=n.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==g.ghost&&(i||s[r]!==g.dragged)&&J(s[r],e.draggable,n,!1)){if(o===t)return s[r];o++}r++}return null}function ze(n,t){for(var e=n.lastElementChild;e&&(e===g.ghost||f(e,"display")==="none"||t&&!ie(e,t));)e=e.previousElementSibling;return e||null}function j(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==g.clone&&(!t||ie(n,t))&&e++;return e}function Ii(n){var t=0,e=0,i=Q();if(n)do{var o=Ct(n),r=o.a,s=o.d;t+=n.scrollLeft*r,e+=n.scrollTop*s}while(n!==i&&(n=n.parentNode));return[t,e]}function Dn(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 lt(n,t){if(!n||!n.getBoundingClientRect)return Q();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=f(e);if(e.clientWidth<e.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return Q();if(i||t)return e;i=!0}}while(e=e.parentNode);return Q()}function Pn(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Xe(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 Bt;function Vi(n,t){return function(){if(!Bt){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),Bt=setTimeout(function(){Bt=void 0},t)}}}function Hn(){clearTimeout(Bt),Bt=void 0}function Li(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function Bi(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(o){if(!(f(o,"display")==="none"||o===g.ghost)){n.push({target:o,rect:P(o)});var r=K({},n[n.length-1].rect);if(o.thisAnimationDuration){var s=Ct(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(Dn(n,{target:i}),1)},animateAll:function(i){var o=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;n.forEach(function(l){var a=0,d=l.target,h=d.fromRect,u=P(d),p=d.prevFromRect,v=d.prevToRect,y=l.rect,b=Ct(d,!0);b&&(u.top-=b.f,u.left-=b.e),d.toRect=u,d.thisAnimationDuration&&Xe(p,u)&&!Xe(h,u)&&(y.top-u.top)/(y.left-u.left)===(h.top-u.top)/(h.left-u.left)&&(a=Nn(y,p,v,o.options)),Xe(u,h)||(d.prevFromRect=h,d.prevToRect=u,a||(a=o.options.animation),o.animate(d,y,u,a)),a&&(r=!0,s=Math.max(s,a),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},a),d.thisAnimationDuration=a)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),n=[]},animate:function(i,o,r,s){if(s){f(i,"transition",""),f(i,"transform","");var l=Ct(this.el),a=l&&l.a,d=l&&l.d,h=(o.left-r.left)/(a||1),u=(o.top-r.top)/(d||1);i.animatingX=!!h,i.animatingY=!!u,f(i,"transform","translate3d("+h+"px,"+u+"px,0)"),this.forRepaintDummy=Mn(i),f(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),f(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){f(i,"transition",""),f(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function Mn(n){return n.offsetWidth}function Nn(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 Tt=[],Ye={initializeByDefault:!0},Rt={mount:function(t){for(var e in Ye)Ye.hasOwnProperty(e)&&!(e in t)&&(t[e]=Ye[e]);Tt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Tt.push(t)},pluginEvent:function(t,e,i){var o=this;this.eventCanceled=!1,i.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Tt.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](K({sortable:e},i)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](K({sortable:e},i)))})},initializePlugins:function(t,e,i,o){Tt.forEach(function(l){var a=l.pluginName;if(!(!t.options[a]&&!l.initializeByDefault)){var d=new l(t,e,t.options);d.sortable=t,d.options=t.options,t[a]=d,it(i,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,e){var i={};return Tt.forEach(function(o){typeof o.eventProperties=="function"&&it(i,o.eventProperties.call(e[o.pluginName],t))}),i},modifyOption:function(t,e,i){var o;return Tt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],i))}),o}};function kn(n){var t=n.sortable,e=n.rootEl,i=n.name,o=n.targetEl,r=n.cloneEl,s=n.toEl,l=n.fromEl,a=n.oldIndex,d=n.newIndex,h=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,v=n.putSortable,y=n.extraEventProperties;if(t=t||e&&e[R],!!t){var b,Z=t.options,rt="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!ot&&!Vt?b=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(i,!0,!0)),b.to=s||e,b.from=l||e,b.item=o||e,b.clone=r,b.oldIndex=a,b.newIndex=d,b.oldDraggableIndex=h,b.newDraggableIndex=u,b.originalEvent=p,b.pullMode=v?v.lastPutMode:void 0;var k=K(K({},y),Rt.getEventProperties(i,t));for(var G in k)b[G]=k[G];e&&e.dispatchEvent(b),Z[rt]&&Z[rt].call(t,b)}}var In=["evt"],L=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,r=Cn(i,In);Rt.pluginEvent.bind(g)(t,e,K({dragEl:c,parentEl:T,ghostEl:m,rootEl:A,nextEl:vt,lastDownEl:ne,cloneEl:C,cloneHidden:dt,dragStarted:Ft,putSortable:H,activeSortable:g.active,originalEvent:o,oldIndex:Dt,oldDraggableIndex:Ut,newIndex:U,newDraggableIndex:ut,hideGhostForTarget:ji,unhideGhostForTarget:qi,cloneNowHidden:function(){dt=!0},cloneNowShown:function(){dt=!1},dispatchSortableEvent:function(l){N({sortable:e,name:l,originalEvent:o})}},r))};function N(n){kn(K({putSortable:H,cloneEl:C,targetEl:c,rootEl:A,oldIndex:Dt,oldDraggableIndex:Ut,newIndex:U,newDraggableIndex:ut},n))}var c,T,m,A,vt,ne,C,dt,Dt,U,Ut,ut,oe,H,Pt=!1,re=!1,se=[],yt,W,je,qe,Ri,Ui,Ft,Ht,zt,Xt=!1,ae=!1,le,M,We=[],Ze=!1,de=[],ue=typeof document<"u",ce=Pi,Fi=Vt||ot?"cssFloat":"float",Vn=ue&&!Hi&&!Pi&&"draggable"in document.createElement("div"),zi=function(){if(ue){if(ot)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Xi=function(t,e){var i=f(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=St(t,0,e),s=St(t,1,e),l=r&&f(r),a=s&&f(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(r).width,h=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+P(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===u)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=o&&i[Fi]==="none"||s&&i[Fi]==="none"&&d+h>o)?"vertical":"horizontal"},Ln=function(t,e,i){var o=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,l=i?e.left:e.top,a=i?e.right:e.bottom,d=i?e.width:e.height;return o===l||r===a||o+s/2===l+d/2},Bn=function(t,e){var i;return se.some(function(o){var r=o[R].options.emptyInsertThreshold;if(!(!r||ze(o))){var s=P(o),l=t>=s.left-r&&t<=s.right+r,a=e>=s.top-r&&e<=s.bottom+r;if(l&&a)return i=o}}),i},Yi=function(t){function e(r,s){return function(l,a,d,h){var u=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return e(r(l,a,d,h),s)(l,a,d,h);var p=(s?l:a).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},o=t.group;(!o||ee(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=e(o.pull,!0),i.checkPut=e(o.put),i.revertClone=o.revertClone,t.group=i},ji=function(){!zi&&m&&f(m,"display","none")},qi=function(){!zi&&m&&f(m,"display","")};ue&&!Hi&&document.addEventListener("click",function(n){if(re)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),re=!1,!1},!0);var bt=function(t){if(c){t=t.touches?t.touches[0]:t;var e=Bn(t.clientX,t.clientY);if(e){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[R]._onDragOver(i)}}},Rn=function(t){c&&c.parentNode[R]._isOutsideThisEl(t.target)};function g(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=it({},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 Xi(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.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:g.supportPointer!==!1&&"PointerEvent"in window&&!Lt,emptyInsertThreshold:5};Rt.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Yi(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:Vn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?w(n,"pointerdown",this._onTapStart):(w(n,"mousedown",this._onTapStart),w(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(n,"dragover",this),w(n,"dragenter",this)),se.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),it(this,On())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ht=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,c):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,o=this.options,r=o.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,a=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,h=o.filter;if(Wn(i),!c&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Lt&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=J(a,o.draggable,i,!1),!(a&&a.animated)&&ne!==a)){if(Dt=j(a),Ut=j(a,o.draggable),typeof h=="function"){if(h.call(this,t,a,this)){N({sortable:e,rootEl:d,name:"filter",targetEl:a,toEl:i,fromEl:i}),L("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(u){if(u=J(d,u.trim(),i,!1),u)return N({sortable:e,rootEl:u,name:"filter",targetEl:a,fromEl:i,toEl:i}),L("filter",e,{evt:t}),!0}),h)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!J(d,o.handle,i,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,e,i){var o=this,r=o.el,s=o.options,l=r.ownerDocument,a;if(i&&!c&&i.parentNode===r){var d=P(i);if(A=r,c=i,T=c.parentNode,vt=c.nextSibling,ne=i,oe=s.group,g.dragged=c,yt={target:c,clientX:(e||t).clientX,clientY:(e||t).clientY},Ri=yt.clientX-d.left,Ui=yt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,c.style["will-change"]="all",a=function(){if(L("delayEnded",o,{evt:t}),g.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Di&&o.nativeDraggable&&(c.draggable=!0),o._triggerDragStart(t,e),N({sortable:o,name:"choose",originalEvent:t}),B(c,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Ni(c,h.trim(),Ge)}),w(l,"dragover",bt),w(l,"mousemove",bt),w(l,"touchmove",bt),w(l,"mouseup",o._onDrop),w(l,"touchend",o._onDrop),w(l,"touchcancel",o._onDrop),Di&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),L("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Vt||ot))){if(g.eventCanceled){this._onDrop();return}w(l,"mouseup",o._disableDelayedDrag),w(l,"touchend",o._disableDelayedDrag),w(l,"touchcancel",o._disableDelayedDrag),w(l,"mousemove",o._delayedDragTouchMoveHandler),w(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&w(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,s.delay)}else a()}},_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(){c&&Ge(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._disableDelayedDrag),E(t,"touchend",this._disableDelayedDrag),E(t,"touchcancel",this._disableDelayedDrag),E(t,"mousemove",this._delayedDragTouchMoveHandler),E(t,"touchmove",this._delayedDragTouchMoveHandler),E(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):e?w(document,"touchmove",this._onTouchMove):w(document,"mousemove",this._onTouchMove):(w(c,"dragend",this),w(A,"dragstart",this._onDragStart));try{document.selection?pe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Pt=!1,A&&c){L("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Rn);var i=this.options;!t&&B(c,i.dragClass,!1),B(c,i.ghostClass,!0),g.active=this,t&&this._appendGhost(),N({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,ji();for(var t=document.elementFromPoint(W.clientX,W.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(W.clientX,W.clientY),t!==e);)e=t;if(c.parentNode[R]._isOutsideThisEl(t),e)do{if(e[R]){var i=void 0;if(i=e[R]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);qi()}},_onTouchMove:function(t){if(yt){var e=this.options,i=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=m&&Ct(m,!0),l=m&&s&&s.a,a=m&&s&&s.d,d=ce&&M&&Ii(M),h=(r.clientX-yt.clientX+o.x)/(l||1)+(d?d[0]-We[0]:0)/(l||1),u=(r.clientY-yt.clientY+o.y)/(a||1)+(d?d[1]-We[1]:0)/(a||1);if(!g.active&&!Pt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(m){s?(s.e+=h-(je||0),s.f+=u-(qe||0)):s={a:1,b:0,c:0,d:1,e:h,f:u};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");f(m,"webkitTransform",p),f(m,"mozTransform",p),f(m,"msTransform",p),f(m,"transform",p),je=h,qe=u,W=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!m){var t=this.options.fallbackOnBody?document.body:A,e=P(c,!0,ce,!0,t),i=this.options;if(ce){for(M=t;f(M,"position")==="static"&&f(M,"transform")==="none"&&M!==document;)M=M.parentNode;M!==document.body&&M!==document.documentElement?(M===document&&(M=Q()),e.top+=M.scrollTop,e.left+=M.scrollLeft):M=Q(),We=Ii(M)}m=c.cloneNode(!0),B(m,i.ghostClass,!1),B(m,i.fallbackClass,!0),B(m,i.dragClass,!0),f(m,"transition",""),f(m,"transform",""),f(m,"box-sizing","border-box"),f(m,"margin",0),f(m,"top",e.top),f(m,"left",e.left),f(m,"width",e.width),f(m,"height",e.height),f(m,"opacity","0.8"),f(m,"position",ce?"absolute":"fixed"),f(m,"zIndex","100000"),f(m,"pointerEvents","none"),g.ghost=m,t.appendChild(m),f(m,"transform-origin",Ri/parseInt(m.style.width)*100+"% "+Ui/parseInt(m.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,o=t.dataTransfer,r=i.options;if(L("dragStart",this,{evt:t}),g.eventCanceled){this._onDrop();return}L("setupClone",this),g.eventCanceled||(C=Bi(c),C.removeAttribute("id"),C.draggable=!1,C.style["will-change"]="",this._hideClone(),B(C,this.options.chosenClass,!1),g.clone=C),i.cloneId=pe(function(){L("clone",i),!g.eventCanceled&&(i.options.removeCloneOnHide||A.insertBefore(C,c),i._hideClone(),N({sortable:i,name:"clone"}))}),!e&&B(c,r.dragClass,!0),e?(re=!0,i._loopId=setInterval(i._emulateDragOver,50)):(E(document,"mouseup",i._onDrop),E(document,"touchend",i._onDrop),E(document,"touchcancel",i._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(i,o,c)),w(document,"drop",i),f(c,"transform","translateZ(0)")),Pt=!0,i._dragStartId=pe(i._dragStarted.bind(i,e,t)),w(document,"selectstart",i),Ft=!0,Lt&&f(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,o,r,s,l=this.options,a=l.group,d=g.active,h=oe===a,u=l.sort,p=H||d,v,y=this,b=!1;if(Ze)return;function Z(Kt,io){L(Kt,y,K({evt:t,isOwner:h,axis:v?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:i,completed:k,onMove:function(rn,no){return he(A,e,c,o,rn,P(rn),t,no)},changed:G},io))}function rt(){Z("dragOverAnimationCapture"),y.captureAnimationState(),y!==p&&p.captureAnimationState()}function k(Kt){return Z("dragOverCompleted",{insertion:Kt}),Kt&&(h?d._hideClone():d._showClone(y),y!==p&&(B(c,H?H.options.ghostClass:d.options.ghostClass,!1),B(c,l.ghostClass,!0)),H!==y&&y!==g.active?H=y:y===g.active&&H&&(H=null),p===y&&(y._ignoreWhileAnimating=i),y.animateAll(function(){Z("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===c&&!c.animated||i===e&&!i.animated)&&(Ht=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(c.parentNode[R]._isOutsideThisEl(t.target),!Kt&&bt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function G(){U=j(c),ut=j(c,l.draggable),N({sortable:y,name:"change",toEl:e,newIndex:U,newDraggableIndex:ut,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=J(i,l.draggable,e,!0),Z("dragOver"),g.eventCanceled)return b;if(c.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||y._ignoreWhileAnimating===i)return k(!1);if(re=!1,d&&!l.disabled&&(h?u||(s=T!==A):H===this||(this.lastPutMode=oe.checkPull(this,d,c,t))&&a.checkPut(this,d,c,t))){if(v=this._getDirection(t,i)==="vertical",o=P(c),Z("dragOverValid"),g.eventCanceled)return b;if(s)return T=A,rt(),this._hideClone(),Z("revert"),g.eventCanceled||(vt?A.insertBefore(c,vt):A.appendChild(c)),k(!0);var F=ze(e,l.draggable);if(!F||Xn(t,v,this)&&!F.animated){if(F===c)return k(!1);if(F&&e===t.target&&(i=F),i&&(r=P(i)),he(A,e,c,o,i,r,t,!!i)!==!1)return rt(),F&&F.nextSibling?e.insertBefore(c,F.nextSibling):e.appendChild(c),T=e,G(),k(!0)}else if(F&&zn(t,v,this)){var Et=St(e,0,l,!0);if(Et===c)return k(!1);if(i=Et,r=P(i),he(A,e,c,o,i,r,t,!1)!==!1)return rt(),e.insertBefore(c,Et),T=e,G(),k(!0)}else if(i.parentNode===e){r=P(i);var tt=0,wt,qt=c.parentNode!==e,z=!Ln(c.animated&&c.toRect||o,i.animated&&i.toRect||r,v),Wt=v?"top":"left",ct=ki(i,"top","top")||ki(c,"top","top"),Zt=ct?ct.scrollTop:void 0;Ht!==i&&(wt=r[Wt],Xt=!1,ae=!z&&l.invertSwap||qt),tt=Yn(t,i,r,v,z?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,ae,Ht===i);var st;if(tt!==0){var _t=j(c);do _t-=tt,st=T.children[_t];while(st&&(f(st,"display")==="none"||st===m))}if(tt===0||st===i)return k(!1);Ht=i,zt=tt;var Gt=i.nextElementSibling,ht=!1;ht=tt===1;var He=he(A,e,c,o,i,r,t,ht);if(He!==!1)return(He===1||He===-1)&&(ht=He===1),Ze=!0,setTimeout(Fn,30),rt(),ht&&!Gt?e.appendChild(c):i.parentNode.insertBefore(c,ht?Gt:i),ct&&Li(ct,0,Zt-ct.scrollTop),T=c.parentNode,wt!==void 0&&!ae&&(le=Math.abs(wt-P(i)[Wt])),G(),k(!0)}if(e.contains(c))return k(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){E(document,"mousemove",this._onTouchMove),E(document,"touchmove",this._onTouchMove),E(document,"pointermove",this._onTouchMove),E(document,"dragover",bt),E(document,"mousemove",bt),E(document,"touchmove",bt)},_offUpEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._onDrop),E(t,"touchend",this._onDrop),E(t,"pointerup",this._onDrop),E(t,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(U=j(c),ut=j(c,i.draggable),L("drop",this,{evt:t}),T=c&&c.parentNode,U=j(c),ut=j(c,i.draggable),g.eventCanceled){this._nulling();return}Pt=!1,ae=!1,Xt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ke(this.cloneId),Ke(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Lt&&f(document.body,"user-select",""),f(c,"transform",""),t&&(Ft&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),m&&m.parentNode&&m.parentNode.removeChild(m),(A===T||H&&H.lastPutMode!=="clone")&&C&&C.parentNode&&C.parentNode.removeChild(C),c&&(this.nativeDraggable&&E(c,"dragend",this),Ge(c),c.style["will-change"]="",Ft&&!Pt&&B(c,H?H.options.ghostClass:this.options.ghostClass,!1),B(c,this.options.chosenClass,!1),N({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:t}),A!==T?(U>=0&&(N({rootEl:T,name:"add",toEl:T,fromEl:A,originalEvent:t}),N({sortable:this,name:"remove",toEl:T,originalEvent:t}),N({rootEl:T,name:"sort",toEl:T,fromEl:A,originalEvent:t}),N({sortable:this,name:"sort",toEl:T,originalEvent:t})),H&&H.save()):U!==Dt&&U>=0&&(N({sortable:this,name:"update",toEl:T,originalEvent:t}),N({sortable:this,name:"sort",toEl:T,originalEvent:t})),g.active&&((U==null||U===-1)&&(U=Dt,ut=Ut),N({sortable:this,name:"end",toEl:T,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){L("nulling",this),A=c=T=m=vt=C=ne=dt=yt=W=Ft=U=ut=Dt=Ut=Ht=zt=H=oe=g.dragged=g.ghost=g.clone=g.active=null,de.forEach(function(t){t.checked=!0}),de.length=je=qe=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),Un(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,o=0,r=i.length,s=this.options;o<r;o++)e=i[o],J(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||qn(e));return t},sort:function(t,e){var i={},o=this.el;this.toArray().forEach(function(r,s){var l=o.children[s];J(l,this.options.draggable,o,!1)&&(i[r]=l)},this),e&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(o.removeChild(i[r]),o.appendChild(i[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return J(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var o=Rt.modifyOption(this,t,e);typeof o<"u"?i[t]=o:i[t]=e,t==="group"&&Yi(i)},destroy:function(){L("destroy",this);var t=this.el;t[R]=null,E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart),E(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),se.splice(se.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!dt){if(L("hideClone",this),g.eventCanceled)return;f(C,"display","none"),this.options.removeCloneOnHide&&C.parentNode&&C.parentNode.removeChild(C),dt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(dt){if(L("showClone",this),g.eventCanceled)return;c.parentNode==A&&!this.options.group.revertClone?A.insertBefore(C,c):vt?A.insertBefore(C,vt):A.appendChild(C),this.options.group.revertClone&&this.animate(c,C),f(C,"display",""),dt=!1}}};function Un(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function he(n,t,e,i,o,r,s,l){var a,d=n[R],h=d.options.onMove,u;return window.CustomEvent&&!ot&&!Vt?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=t,a.from=n,a.dragged=e,a.draggedRect=i,a.related=o||t,a.relatedRect=r||P(t),a.willInsertAfter=l,a.originalEvent=s,n.dispatchEvent(a),h&&(u=h.call(d,a,s)),u}function Ge(n){n.draggable=!1}function Fn(){Ze=!1}function zn(n,t,e){var i=P(St(e.el,0,e.options,!0)),o=10;return t?n.clientX<i.left-o||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-o||n.clientY<i.bottom&&n.clientX<i.left}function Xn(n,t,e){var i=P(ze(e.el,e.options.draggable)),o=10;return t?n.clientX>i.right+o||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+o}function Yn(n,t,e,i,o,r,s,l){var a=i?n.clientY:n.clientX,d=i?e.height:e.width,h=i?e.top:e.left,u=i?e.bottom:e.right,p=!1;if(!s){if(l&&le<d*o){if(!Xt&&(zt===1?a>h+d*r/2:a<u-d*r/2)&&(Xt=!0),Xt)p=!0;else if(zt===1?a<h+le:a>u-le)return-zt}else if(a>h+d*(1-o)/2&&a<u-d*(1-o)/2)return jn(t)}return p=p||s,p&&(a<h+d*r/2||a>u-d*r/2)?a>h+d/2?1:-1:0}function jn(n){return j(c)<j(n)?1:-1}function qn(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 Wn(n){de.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&de.push(i)}}function pe(n){return setTimeout(n,0)}function Ke(n){return clearTimeout(n)}ue&&w(document,"touchmove",function(n){(g.active||Pt)&&n.cancelable&&n.preventDefault()}),g.utils={on:w,off:E,css:f,find:Ni,is:function(t,e){return!!J(t,e,t,!1)},extend:Pn,throttle:Vi,closest:J,toggleClass:B,clone:Bi,index:j,nextTick:pe,cancelNextTick:Ke,detectDirection:Xi,getChild:St},g.get=function(n){return n[R]},g.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&&(g.utils=K(K({},g.utils),i.utils)),Rt.mount(i)})},g.create=function(n,t){return new g(n,t)},g.version=Sn;var D=[],Yt,Je,Qe=!1,ti,ei,fe,jt;function Zn(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return n.prototype={dragStarted:function(e){var i=e.originalEvent;this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):i.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var i=e.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),Wi(),ge(),Hn()},nulling:function(){fe=Je=Yt=Qe=jt=ti=ei=null,D.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){var o=this,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(r,s);if(fe=e,i||this.options.forceAutoScrollFallback||Vt||ot||Lt){ii(e,this.options,l,i);var a=lt(l,!0);Qe&&(!jt||r!==ti||s!==ei)&&(jt&&Wi(),jt=setInterval(function(){var d=lt(document.elementFromPoint(r,s),!0);d!==a&&(a=d,ge()),ii(e,o.options,d,i)},10),ti=r,ei=s)}else{if(!this.options.bubbleScroll||lt(l,!0)===Q()){ge();return}ii(e,this.options,lt(l,!1),!1)}}},it(n,{pluginName:"scroll",initializeByDefault:!0})}function ge(){D.forEach(function(n){clearInterval(n.pid)}),D=[]}function Wi(){clearInterval(jt)}var ii=Vi(function(n,t,e,i){if(t.scroll){var o=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,a=Q(),d=!1,h;Je!==e&&(Je=e,ge(),Yt=t.scroll,h=t.scrollFn,Yt===!0&&(Yt=lt(e,!0)));var u=0,p=Yt;do{var v=p,y=P(v),b=y.top,Z=y.bottom,rt=y.left,k=y.right,G=y.width,F=y.height,Et=void 0,tt=void 0,wt=v.scrollWidth,qt=v.scrollHeight,z=f(v),Wt=v.scrollLeft,ct=v.scrollTop;v===a?(Et=G<wt&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),tt=F<qt&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(Et=G<wt&&(z.overflowX==="auto"||z.overflowX==="scroll"),tt=F<qt&&(z.overflowY==="auto"||z.overflowY==="scroll"));var Zt=Et&&(Math.abs(k-o)<=s&&Wt+G<wt)-(Math.abs(rt-o)<=s&&!!Wt),st=tt&&(Math.abs(Z-r)<=s&&ct+F<qt)-(Math.abs(b-r)<=s&&!!ct);if(!D[u])for(var _t=0;_t<=u;_t++)D[_t]||(D[_t]={});(D[u].vx!=Zt||D[u].vy!=st||D[u].el!==v)&&(D[u].el=v,D[u].vx=Zt,D[u].vy=st,clearInterval(D[u].pid),(Zt!=0||st!=0)&&(d=!0,D[u].pid=setInterval((function(){i&&this.layer===0&&g.active._onTouchMove(fe);var Gt=D[this.layer].vy?D[this.layer].vy*l:0,ht=D[this.layer].vx?D[this.layer].vx*l:0;typeof h=="function"&&h.call(g.dragged.parentNode[R],ht,Gt,n,fe,D[this.layer].el)!=="continue"||Li(D[this.layer].el,ht,Gt)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==a&&(p=lt(p,!1)));Qe=d}},30),Zi=function(t){var e=t.originalEvent,i=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var d=i||r;l();var h=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(h.clientX,h.clientY);a(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:i}))}};function ni(){}ni.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var o=St(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:Zi},it(ni,{pluginName:"revertOnSpill"});function oi(){}oi.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,o=i||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:Zi},it(oi,{pluginName:"removeOnSpill"}),g.mount(new Zn),g.mount(oi,ni);const Gn=(n,t,e)=>{let i=[];n._sortable=g.create(n,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:o=>{const r=o.item;i=Array.prototype.slice.call(r.parentNode.childNodes),i=i.filter(s=>s.nodeType!=Node.ELEMENT_NODE||!s.classList.contains("sortable-fallback"))},onEnd:o=>{const s=o.item.parentNode;for(const a of i)s.appendChild(a);if(o.oldIndex==o.newIndex)return;const l=t.getArray().find(a=>a.ol_uid===o.item.querySelector("eox-layercontrol-layer").layer.ol_uid);t.remove(l),t.insertAt(t.getLength()-o.newIndex,l),e.requestUpdate()}})},ri=(n,t,e)=>{let i=[];const o=(r,s,l)=>{i=[...i,...r.filter(d=>d.get(s)===l)];const a=r.filter(d=>d.getLayers);return a.length>0&&a.forEach(d=>o(d.getLayers().getArray(),s,l)),i};return o(n,t,e),i},Kn=(n,t)=>{var e,i,o;if(!(!n||!t))return n.getLayers?"group":(o=(e=t.getInteractions().getArray().filter(r=>r.freehand_!==void 0).map(r=>r.source_))==null?void 0:e.ol_uid)!=null&&o.includes(n.getSource?(i=n.getSource())==null?void 0:i.ol_uid:void 0)?"draw":n.declutter_!==void 0?"vector":"raster"};/**
|
|
40
|
+
*/function Ti(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),e.push.apply(e,i)}return e}function K(o){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Ti(Object(e),!0).forEach(function(i){xo(o,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(e)):Ti(Object(e)).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(e,i))})}return o}function ee(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ee=function(t){return typeof t}:ee=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(o)}function xo(o,t,e){return t in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}function it(){return it=Object.assign||function(o){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}return o},it.apply(this,arguments)}function Ao(o,t){if(o==null)return{};var e={},i=Object.keys(o),n,r;for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(e[n]=o[n]);return e}function Co(o,t){if(o==null)return{};var e=Ao(o,t),i,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(n=0;n<r.length;n++)i=r[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(o,i)&&(e[i]=o[i])}return e}var So="1.15.0";function ot(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var nt=ot(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vt=ot(/Edge/i),Di=ot(/firefox/i),Rt=ot(/safari/i)&&!ot(/chrome/i)&&!ot(/android/i),Pi=ot(/iP(ad|od|hone)/i),Oi=ot(/chrome/i)&&ot(/android/i),Hi={capture:!1,passive:!1};function w(o,t,e){o.addEventListener(t,e,!nt&&Hi)}function E(o,t,e){o.removeEventListener(t,e,!nt&&Hi)}function ie(o,t){if(t){if(t[0]===">"&&(t=t.substring(1)),o)try{if(o.matches)return o.matches(t);if(o.msMatchesSelector)return o.msMatchesSelector(t);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(t)}catch{return!1}return!1}}function To(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function J(o,t,e,i){if(o){e=e||document;do{if(t!=null&&(t[0]===">"?o.parentNode===e&&ie(o,t):ie(o,t))||i&&o===e)return o;if(o===e)break}while(o=To(o))}return null}var Mi=/\s+/g;function B(o,t,e){if(o&&t)if(o.classList)o.classList[e?"add":"remove"](t);else{var i=(" "+o.className+" ").replace(Mi," ").replace(" "+t+" "," ");o.className=(i+(e?" "+t:"")).replace(Mi," ")}}function f(o,t,e){var i=o&&o.style;if(i){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(e=o.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 Ct(o,t){var e="";if(typeof o=="string")e=o;else do{var i=f(o,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(o=o.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(e)}function Ni(o,t,e){if(o){var i=o.getElementsByTagName(t),n=0,r=i.length;if(e)for(;n<r;n++)e(i[n],n);return i}return[]}function Q(){var o=document.scrollingElement;return o||document.documentElement}function P(o,t,e,i,n){if(!(!o.getBoundingClientRect&&o!==window)){var r,s,l,a,d,c,u;if(o!==window&&o.parentNode&&o!==Q()?(r=o.getBoundingClientRect(),s=r.top,l=r.left,a=r.bottom,d=r.right,c=r.height,u=r.width):(s=0,l=0,a=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||e)&&o!==window&&(n=n||o.parentNode,!nt))do if(n&&n.getBoundingClientRect&&(f(n,"transform")!=="none"||e&&f(n,"position")!=="static")){var p=n.getBoundingClientRect();s-=p.top+parseInt(f(n,"border-top-width")),l-=p.left+parseInt(f(n,"border-left-width")),a=s+r.height,d=l+r.width;break}while(n=n.parentNode);if(i&&o!==window){var v=Ct(n||o),y=v&&v.a,b=v&&v.d;v&&(s/=b,l/=y,u/=y,c/=b,a=s+c,d=l+u)}return{top:s,left:l,bottom:a,right:d,width:u,height:c}}}function ki(o,t,e){for(var i=lt(o,!0),n=P(o)[t];i;){var r=P(i)[e],s=void 0;if(e==="top"||e==="left"?s=n>=r:s=n<=r,!s)return i;if(i===Q())break;i=lt(i,!1)}return!1}function St(o,t,e,i){for(var n=0,r=0,s=o.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==g.ghost&&(i||s[r]!==g.dragged)&&J(s[r],e.draggable,o,!1)){if(n===t)return s[r];n++}r++}return null}function ze(o,t){for(var e=o.lastElementChild;e&&(e===g.ghost||f(e,"display")==="none"||t&&!ie(e,t));)e=e.previousElementSibling;return e||null}function j(o,t){var e=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==g.clone&&(!t||ie(o,t))&&e++;return e}function Ii(o){var t=0,e=0,i=Q();if(o)do{var n=Ct(o),r=n.a,s=n.d;t+=o.scrollLeft*r,e+=o.scrollTop*s}while(o!==i&&(o=o.parentNode));return[t,e]}function Do(o,t){for(var e in o)if(o.hasOwnProperty(e)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===o[e][i])return Number(e)}return-1}function lt(o,t){if(!o||!o.getBoundingClientRect)return Q();var e=o,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var n=f(e);if(e.clientWidth<e.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return Q();if(i||t)return e;i=!0}}while(e=e.parentNode);return Q()}function Po(o,t){if(o&&t)for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);return o}function Xe(o,t){return Math.round(o.top)===Math.round(t.top)&&Math.round(o.left)===Math.round(t.left)&&Math.round(o.height)===Math.round(t.height)&&Math.round(o.width)===Math.round(t.width)}var Bt;function Vi(o,t){return function(){if(!Bt){var e=arguments,i=this;e.length===1?o.call(i,e[0]):o.apply(i,e),Bt=setTimeout(function(){Bt=void 0},t)}}}function Oo(){clearTimeout(Bt),Bt=void 0}function Ri(o,t,e){o.scrollLeft+=t,o.scrollTop+=e}function Bi(o){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(o).cloneNode(!0):e?e(o).clone(!0)[0]:o.cloneNode(!0)}var L="Sortable"+new Date().getTime();function Ho(){var o=[],t;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(n){if(!(f(n,"display")==="none"||n===g.ghost)){o.push({target:n,rect:P(n)});var r=K({},o[o.length-1].rect);if(n.thisAnimationDuration){var s=Ct(n,!0);s&&(r.top-=s.f,r.left-=s.e)}n.fromRect=r}})}},addAnimationState:function(i){o.push(i)},removeAnimationState:function(i){o.splice(Do(o,{target:i}),1)},animateAll:function(i){var n=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var r=!1,s=0;o.forEach(function(l){var a=0,d=l.target,c=d.fromRect,u=P(d),p=d.prevFromRect,v=d.prevToRect,y=l.rect,b=Ct(d,!0);b&&(u.top-=b.f,u.left-=b.e),d.toRect=u,d.thisAnimationDuration&&Xe(p,u)&&!Xe(c,u)&&(y.top-u.top)/(y.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(a=No(y,p,v,n.options)),Xe(u,c)||(d.prevFromRect=c,d.prevToRect=u,a||(a=n.options.animation),n.animate(d,y,u,a)),a&&(r=!0,s=Math.max(s,a),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},a),d.thisAnimationDuration=a)}),clearTimeout(t),r?t=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),o=[]},animate:function(i,n,r,s){if(s){f(i,"transition",""),f(i,"transform","");var l=Ct(this.el),a=l&&l.a,d=l&&l.d,c=(n.left-r.left)/(a||1),u=(n.top-r.top)/(d||1);i.animatingX=!!c,i.animatingY=!!u,f(i,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=Mo(i),f(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),f(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){f(i,"transition",""),f(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function Mo(o){return o.offsetWidth}function No(o,t,e,i){return Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*i.animation}var Tt=[],Ye={initializeByDefault:!0},Lt={mount:function(t){for(var e in Ye)Ye.hasOwnProperty(e)&&!(e in t)&&(t[e]=Ye[e]);Tt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Tt.push(t)},pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var r=t+"Global";Tt.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](K({sortable:e},i)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](K({sortable:e},i)))})},initializePlugins:function(t,e,i,n){Tt.forEach(function(l){var a=l.pluginName;if(!(!t.options[a]&&!l.initializeByDefault)){var d=new l(t,e,t.options);d.sortable=t,d.options=t.options,t[a]=d,it(i,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,e){var i={};return Tt.forEach(function(n){typeof n.eventProperties=="function"&&it(i,n.eventProperties.call(e[n.pluginName],t))}),i},modifyOption:function(t,e,i){var n;return Tt.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(n=r.optionListeners[e].call(t[r.pluginName],i))}),n}};function ko(o){var t=o.sortable,e=o.rootEl,i=o.name,n=o.targetEl,r=o.cloneEl,s=o.toEl,l=o.fromEl,a=o.oldIndex,d=o.newIndex,c=o.oldDraggableIndex,u=o.newDraggableIndex,p=o.originalEvent,v=o.putSortable,y=o.extraEventProperties;if(t=t||e&&e[L],!!t){var b,Z=t.options,rt="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!nt&&!Vt?b=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(i,!0,!0)),b.to=s||e,b.from=l||e,b.item=n||e,b.clone=r,b.oldIndex=a,b.newIndex=d,b.oldDraggableIndex=c,b.newDraggableIndex=u,b.originalEvent=p,b.pullMode=v?v.lastPutMode:void 0;var k=K(K({},y),Lt.getEventProperties(i,t));for(var G in k)b[G]=k[G];e&&e.dispatchEvent(b),Z[rt]&&Z[rt].call(t,b)}}var Io=["evt"],R=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i.evt,r=Co(i,Io);Lt.pluginEvent.bind(g)(t,e,K({dragEl:h,parentEl:T,ghostEl:m,rootEl:A,nextEl:vt,lastDownEl:oe,cloneEl:C,cloneHidden:dt,dragStarted:Ft,putSortable:O,activeSortable:g.active,originalEvent:n,oldIndex:Dt,oldDraggableIndex:Ut,newIndex:U,newDraggableIndex:ut,hideGhostForTarget:ji,unhideGhostForTarget:qi,cloneNowHidden:function(){dt=!0},cloneNowShown:function(){dt=!1},dispatchSortableEvent:function(l){N({sortable:e,name:l,originalEvent:n})}},r))};function N(o){ko(K({putSortable:O,cloneEl:C,targetEl:h,rootEl:A,oldIndex:Dt,oldDraggableIndex:Ut,newIndex:U,newDraggableIndex:ut},o))}var h,T,m,A,vt,oe,C,dt,Dt,U,Ut,ut,ne,O,Pt=!1,re=!1,se=[],yt,W,je,qe,Li,Ui,Ft,Ot,zt,Xt=!1,ae=!1,le,M,We=[],Ze=!1,de=[],ue=typeof document<"u",he=Pi,Fi=Vt||nt?"cssFloat":"float",Vo=ue&&!Oi&&!Pi&&"draggable"in document.createElement("div"),zi=function(){if(ue){if(nt)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),Xi=function(t,e){var i=f(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=St(t,0,e),s=St(t,1,e),l=r&&f(r),a=s&&f(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(r).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+P(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===u)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=n&&i[Fi]==="none"||s&&i[Fi]==="none"&&d+c>n)?"vertical":"horizontal"},Ro=function(t,e,i){var n=i?t.left:t.top,r=i?t.right:t.bottom,s=i?t.width:t.height,l=i?e.left:e.top,a=i?e.right:e.bottom,d=i?e.width:e.height;return n===l||r===a||n+s/2===l+d/2},Bo=function(t,e){var i;return se.some(function(n){var r=n[L].options.emptyInsertThreshold;if(!(!r||ze(n))){var s=P(n),l=t>=s.left-r&&t<=s.right+r,a=e>=s.top-r&&e<=s.bottom+r;if(l&&a)return i=n}}),i},Yi=function(t){function e(r,s){return function(l,a,d,c){var u=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return e(r(l,a,d,c),s)(l,a,d,c);var p=(s?l:a).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var i={},n=t.group;(!n||ee(n)!="object")&&(n={name:n}),i.name=n.name,i.checkPull=e(n.pull,!0),i.checkPut=e(n.put),i.revertClone=n.revertClone,t.group=i},ji=function(){!zi&&m&&f(m,"display","none")},qi=function(){!zi&&m&&f(m,"display","")};ue&&!Oi&&document.addEventListener("click",function(o){if(re)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),re=!1,!1},!0);var bt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=Bo(t.clientX,t.clientY);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[L]._onDragOver(i)}}},Lo=function(t){h&&h.parentNode[L]._isOutsideThisEl(t.target)};function g(o,t){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=t=it({},t),o[L]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Xi(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.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:g.supportPointer!==!1&&"PointerEvent"in window&&!Rt,emptyInsertThreshold:5};Lt.initializePlugins(this,o,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Yi(t);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=t.forceFallback?!1:Vo,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?w(o,"pointerdown",this._onTapStart):(w(o,"mousedown",this._onTapStart),w(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(o,"dragover",this),w(o,"dragenter",this)),se.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),it(this,Ho())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ot=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,r=n.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,a=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,c=n.filter;if(Wo(i),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||n.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Rt&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=J(a,n.draggable,i,!1),!(a&&a.animated)&&oe!==a)){if(Dt=j(a),Ut=j(a,n.draggable),typeof c=="function"){if(c.call(this,t,a,this)){N({sortable:e,rootEl:d,name:"filter",targetEl:a,toEl:i,fromEl:i}),R("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=J(d,u.trim(),i,!1),u)return N({sortable:e,rootEl:u,name:"filter",targetEl:a,fromEl:i,toEl:i}),R("filter",e,{evt:t}),!0}),c)){r&&t.cancelable&&t.preventDefault();return}n.handle&&!J(d,n.handle,i,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,e,i){var n=this,r=n.el,s=n.options,l=r.ownerDocument,a;if(i&&!h&&i.parentNode===r){var d=P(i);if(A=r,h=i,T=h.parentNode,vt=h.nextSibling,oe=i,ne=s.group,g.dragged=h,yt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},Li=yt.clientX-d.left,Ui=yt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",a=function(){if(R("delayEnded",n,{evt:t}),g.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Di&&n.nativeDraggable&&(h.draggable=!0),n._triggerDragStart(t,e),N({sortable:n,name:"choose",originalEvent:t}),B(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){Ni(h,c.trim(),Ge)}),w(l,"dragover",bt),w(l,"mousemove",bt),w(l,"touchmove",bt),w(l,"mouseup",n._onDrop),w(l,"touchend",n._onDrop),w(l,"touchcancel",n._onDrop),Di&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),R("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Vt||nt))){if(g.eventCanceled){this._onDrop();return}w(l,"mouseup",n._disableDelayedDrag),w(l,"touchend",n._disableDelayedDrag),w(l,"touchcancel",n._disableDelayedDrag),w(l,"mousemove",n._delayedDragTouchMoveHandler),w(l,"touchmove",n._delayedDragTouchMoveHandler),s.supportPointer&&w(l,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(a,s.delay)}else a()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Ge(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._disableDelayedDrag),E(t,"touchend",this._disableDelayedDrag),E(t,"touchcancel",this._disableDelayedDrag),E(t,"mousemove",this._delayedDragTouchMoveHandler),E(t,"touchmove",this._delayedDragTouchMoveHandler),E(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):e?w(document,"touchmove",this._onTouchMove):w(document,"mousemove",this._onTouchMove):(w(h,"dragend",this),w(A,"dragstart",this._onDragStart));try{document.selection?pe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Pt=!1,A&&h){R("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Lo);var i=this.options;!t&&B(h,i.dragClass,!1),B(h,i.ghostClass,!0),g.active=this,t&&this._appendGhost(),N({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,ji();for(var t=document.elementFromPoint(W.clientX,W.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(W.clientX,W.clientY),t!==e);)e=t;if(h.parentNode[L]._isOutsideThisEl(t),e)do{if(e[L]){var i=void 0;if(i=e[L]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);qi()}},_onTouchMove:function(t){if(yt){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=m&&Ct(m,!0),l=m&&s&&s.a,a=m&&s&&s.d,d=he&&M&&Ii(M),c=(r.clientX-yt.clientX+n.x)/(l||1)+(d?d[0]-We[0]:0)/(l||1),u=(r.clientY-yt.clientY+n.y)/(a||1)+(d?d[1]-We[1]:0)/(a||1);if(!g.active&&!Pt){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(m){s?(s.e+=c-(je||0),s.f+=u-(qe||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");f(m,"webkitTransform",p),f(m,"mozTransform",p),f(m,"msTransform",p),f(m,"transform",p),je=c,qe=u,W=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!m){var t=this.options.fallbackOnBody?document.body:A,e=P(h,!0,he,!0,t),i=this.options;if(he){for(M=t;f(M,"position")==="static"&&f(M,"transform")==="none"&&M!==document;)M=M.parentNode;M!==document.body&&M!==document.documentElement?(M===document&&(M=Q()),e.top+=M.scrollTop,e.left+=M.scrollLeft):M=Q(),We=Ii(M)}m=h.cloneNode(!0),B(m,i.ghostClass,!1),B(m,i.fallbackClass,!0),B(m,i.dragClass,!0),f(m,"transition",""),f(m,"transform",""),f(m,"box-sizing","border-box"),f(m,"margin",0),f(m,"top",e.top),f(m,"left",e.left),f(m,"width",e.width),f(m,"height",e.height),f(m,"opacity","0.8"),f(m,"position",he?"absolute":"fixed"),f(m,"zIndex","100000"),f(m,"pointerEvents","none"),g.ghost=m,t.appendChild(m),f(m,"transform-origin",Li/parseInt(m.style.width)*100+"% "+Ui/parseInt(m.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,r=i.options;if(R("dragStart",this,{evt:t}),g.eventCanceled){this._onDrop();return}R("setupClone",this),g.eventCanceled||(C=Bi(h),C.removeAttribute("id"),C.draggable=!1,C.style["will-change"]="",this._hideClone(),B(C,this.options.chosenClass,!1),g.clone=C),i.cloneId=pe(function(){R("clone",i),!g.eventCanceled&&(i.options.removeCloneOnHide||A.insertBefore(C,h),i._hideClone(),N({sortable:i,name:"clone"}))}),!e&&B(h,r.dragClass,!0),e?(re=!0,i._loopId=setInterval(i._emulateDragOver,50)):(E(document,"mouseup",i._onDrop),E(document,"touchend",i._onDrop),E(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(i,n,h)),w(document,"drop",i),f(h,"transform","translateZ(0)")),Pt=!0,i._dragStartId=pe(i._dragStarted.bind(i,e,t)),w(document,"selectstart",i),Ft=!0,Rt&&f(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,n,r,s,l=this.options,a=l.group,d=g.active,c=ne===a,u=l.sort,p=O||d,v,y=this,b=!1;if(Ze)return;function Z(Kt,on){R(Kt,y,K({evt:t,isOwner:c,axis:v?"vertical":"horizontal",revert:s,dragRect:n,targetRect:r,canSort:u,fromSortable:p,target:i,completed:k,onMove:function(no,nn){return ce(A,e,h,n,no,P(no),t,nn)},changed:G},on))}function rt(){Z("dragOverAnimationCapture"),y.captureAnimationState(),y!==p&&p.captureAnimationState()}function k(Kt){return Z("dragOverCompleted",{insertion:Kt}),Kt&&(c?d._hideClone():d._showClone(y),y!==p&&(B(h,O?O.options.ghostClass:d.options.ghostClass,!1),B(h,l.ghostClass,!0)),O!==y&&y!==g.active?O=y:y===g.active&&O&&(O=null),p===y&&(y._ignoreWhileAnimating=i),y.animateAll(function(){Z("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===e&&!i.animated)&&(Ot=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[L]._isOutsideThisEl(t.target),!Kt&&bt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function G(){U=j(h),ut=j(h,l.draggable),N({sortable:y,name:"change",toEl:e,newIndex:U,newDraggableIndex:ut,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=J(i,l.draggable,e,!0),Z("dragOver"),g.eventCanceled)return b;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||y._ignoreWhileAnimating===i)return k(!1);if(re=!1,d&&!l.disabled&&(c?u||(s=T!==A):O===this||(this.lastPutMode=ne.checkPull(this,d,h,t))&&a.checkPut(this,d,h,t))){if(v=this._getDirection(t,i)==="vertical",n=P(h),Z("dragOverValid"),g.eventCanceled)return b;if(s)return T=A,rt(),this._hideClone(),Z("revert"),g.eventCanceled||(vt?A.insertBefore(h,vt):A.appendChild(h)),k(!0);var F=ze(e,l.draggable);if(!F||Xo(t,v,this)&&!F.animated){if(F===h)return k(!1);if(F&&e===t.target&&(i=F),i&&(r=P(i)),ce(A,e,h,n,i,r,t,!!i)!==!1)return rt(),F&&F.nextSibling?e.insertBefore(h,F.nextSibling):e.appendChild(h),T=e,G(),k(!0)}else if(F&&zo(t,v,this)){var Et=St(e,0,l,!0);if(Et===h)return k(!1);if(i=Et,r=P(i),ce(A,e,h,n,i,r,t,!1)!==!1)return rt(),e.insertBefore(h,Et),T=e,G(),k(!0)}else if(i.parentNode===e){r=P(i);var tt=0,wt,qt=h.parentNode!==e,z=!Ro(h.animated&&h.toRect||n,i.animated&&i.toRect||r,v),Wt=v?"top":"left",ht=ki(i,"top","top")||ki(h,"top","top"),Zt=ht?ht.scrollTop:void 0;Ot!==i&&(wt=r[Wt],Xt=!1,ae=!z&&l.invertSwap||qt),tt=Yo(t,i,r,v,z?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,ae,Ot===i);var st;if(tt!==0){var _t=j(h);do _t-=tt,st=T.children[_t];while(st&&(f(st,"display")==="none"||st===m))}if(tt===0||st===i)return k(!1);Ot=i,zt=tt;var Gt=i.nextElementSibling,ct=!1;ct=tt===1;var Oe=ce(A,e,h,n,i,r,t,ct);if(Oe!==!1)return(Oe===1||Oe===-1)&&(ct=Oe===1),Ze=!0,setTimeout(Fo,30),rt(),ct&&!Gt?e.appendChild(h):i.parentNode.insertBefore(h,ct?Gt:i),ht&&Ri(ht,0,Zt-ht.scrollTop),T=h.parentNode,wt!==void 0&&!ae&&(le=Math.abs(wt-P(i)[Wt])),G(),k(!0)}if(e.contains(h))return k(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){E(document,"mousemove",this._onTouchMove),E(document,"touchmove",this._onTouchMove),E(document,"pointermove",this._onTouchMove),E(document,"dragover",bt),E(document,"mousemove",bt),E(document,"touchmove",bt)},_offUpEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._onDrop),E(t,"touchend",this._onDrop),E(t,"pointerup",this._onDrop),E(t,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(U=j(h),ut=j(h,i.draggable),R("drop",this,{evt:t}),T=h&&h.parentNode,U=j(h),ut=j(h,i.draggable),g.eventCanceled){this._nulling();return}Pt=!1,ae=!1,Xt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ke(this.cloneId),Ke(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Rt&&f(document.body,"user-select",""),f(h,"transform",""),t&&(Ft&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),m&&m.parentNode&&m.parentNode.removeChild(m),(A===T||O&&O.lastPutMode!=="clone")&&C&&C.parentNode&&C.parentNode.removeChild(C),h&&(this.nativeDraggable&&E(h,"dragend",this),Ge(h),h.style["will-change"]="",Ft&&!Pt&&B(h,O?O.options.ghostClass:this.options.ghostClass,!1),B(h,this.options.chosenClass,!1),N({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:t}),A!==T?(U>=0&&(N({rootEl:T,name:"add",toEl:T,fromEl:A,originalEvent:t}),N({sortable:this,name:"remove",toEl:T,originalEvent:t}),N({rootEl:T,name:"sort",toEl:T,fromEl:A,originalEvent:t}),N({sortable:this,name:"sort",toEl:T,originalEvent:t})),O&&O.save()):U!==Dt&&U>=0&&(N({sortable:this,name:"update",toEl:T,originalEvent:t}),N({sortable:this,name:"sort",toEl:T,originalEvent:t})),g.active&&((U==null||U===-1)&&(U=Dt,ut=Ut),N({sortable:this,name:"end",toEl:T,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){R("nulling",this),A=h=T=m=vt=C=oe=dt=yt=W=Ft=U=ut=Dt=Ut=Ot=zt=O=ne=g.dragged=g.ghost=g.clone=g.active=null,de.forEach(function(t){t.checked=!0}),de.length=je=qe=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Uo(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,n=0,r=i.length,s=this.options;n<r;n++)e=i[n],J(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||qo(e));return t},sort:function(t,e){var i={},n=this.el;this.toArray().forEach(function(r,s){var l=n.children[s];J(l,this.options.draggable,n,!1)&&(i[r]=l)},this),e&&this.captureAnimationState(),t.forEach(function(r){i[r]&&(n.removeChild(i[r]),n.appendChild(i[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return J(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var n=Lt.modifyOption(this,t,e);typeof n<"u"?i[t]=n:i[t]=e,t==="group"&&Yi(i)},destroy:function(){R("destroy",this);var t=this.el;t[L]=null,E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart),E(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),se.splice(se.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!dt){if(R("hideClone",this),g.eventCanceled)return;f(C,"display","none"),this.options.removeCloneOnHide&&C.parentNode&&C.parentNode.removeChild(C),dt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(dt){if(R("showClone",this),g.eventCanceled)return;h.parentNode==A&&!this.options.group.revertClone?A.insertBefore(C,h):vt?A.insertBefore(C,vt):A.appendChild(C),this.options.group.revertClone&&this.animate(h,C),f(C,"display",""),dt=!1}}};function Uo(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function ce(o,t,e,i,n,r,s,l){var a,d=o[L],c=d.options.onMove,u;return window.CustomEvent&&!nt&&!Vt?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=t,a.from=o,a.dragged=e,a.draggedRect=i,a.related=n||t,a.relatedRect=r||P(t),a.willInsertAfter=l,a.originalEvent=s,o.dispatchEvent(a),c&&(u=c.call(d,a,s)),u}function Ge(o){o.draggable=!1}function Fo(){Ze=!1}function zo(o,t,e){var i=P(St(e.el,0,e.options,!0)),n=10;return t?o.clientX<i.left-n||o.clientY<i.top&&o.clientX<i.right:o.clientY<i.top-n||o.clientY<i.bottom&&o.clientX<i.left}function Xo(o,t,e){var i=P(ze(e.el,e.options.draggable)),n=10;return t?o.clientX>i.right+n||o.clientX<=i.right&&o.clientY>i.bottom&&o.clientX>=i.left:o.clientX>i.right&&o.clientY>i.top||o.clientX<=i.right&&o.clientY>i.bottom+n}function Yo(o,t,e,i,n,r,s,l){var a=i?o.clientY:o.clientX,d=i?e.height:e.width,c=i?e.top:e.left,u=i?e.bottom:e.right,p=!1;if(!s){if(l&&le<d*n){if(!Xt&&(zt===1?a>c+d*r/2:a<u-d*r/2)&&(Xt=!0),Xt)p=!0;else if(zt===1?a<c+le:a>u-le)return-zt}else if(a>c+d*(1-n)/2&&a<u-d*(1-n)/2)return jo(t)}return p=p||s,p&&(a<c+d*r/2||a>u-d*r/2)?a>c+d/2?1:-1:0}function jo(o){return j(h)<j(o)?1:-1}function qo(o){for(var t=o.tagName+o.className+o.src+o.href+o.textContent,e=t.length,i=0;e--;)i+=t.charCodeAt(e);return i.toString(36)}function Wo(o){de.length=0;for(var t=o.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&de.push(i)}}function pe(o){return setTimeout(o,0)}function Ke(o){return clearTimeout(o)}ue&&w(document,"touchmove",function(o){(g.active||Pt)&&o.cancelable&&o.preventDefault()}),g.utils={on:w,off:E,css:f,find:Ni,is:function(t,e){return!!J(t,e,t,!1)},extend:Po,throttle:Vi,closest:J,toggleClass:B,clone:Bi,index:j,nextTick:pe,cancelNextTick:Ke,detectDirection:Xi,getChild:St},g.get=function(o){return o[L]},g.mount=function(){for(var o=arguments.length,t=new Array(o),e=0;e<o;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&&(g.utils=K(K({},g.utils),i.utils)),Lt.mount(i)})},g.create=function(o,t){return new g(o,t)},g.version=So;var D=[],Yt,Je,Qe=!1,ti,ei,fe,jt;function Zo(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return o.prototype={dragStarted:function(e){var i=e.originalEvent;this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):i.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var i=e.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),Wi(),ge(),Oo()},nulling:function(){fe=Je=Yt=Qe=jt=ti=ei=null,D.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){var n=this,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(r,s);if(fe=e,i||this.options.forceAutoScrollFallback||Vt||nt||Rt){ii(e,this.options,l,i);var a=lt(l,!0);Qe&&(!jt||r!==ti||s!==ei)&&(jt&&Wi(),jt=setInterval(function(){var d=lt(document.elementFromPoint(r,s),!0);d!==a&&(a=d,ge()),ii(e,n.options,d,i)},10),ti=r,ei=s)}else{if(!this.options.bubbleScroll||lt(l,!0)===Q()){ge();return}ii(e,this.options,lt(l,!1),!1)}}},it(o,{pluginName:"scroll",initializeByDefault:!0})}function ge(){D.forEach(function(o){clearInterval(o.pid)}),D=[]}function Wi(){clearInterval(jt)}var ii=Vi(function(o,t,e,i){if(t.scroll){var n=(o.touches?o.touches[0]:o).clientX,r=(o.touches?o.touches[0]:o).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,a=Q(),d=!1,c;Je!==e&&(Je=e,ge(),Yt=t.scroll,c=t.scrollFn,Yt===!0&&(Yt=lt(e,!0)));var u=0,p=Yt;do{var v=p,y=P(v),b=y.top,Z=y.bottom,rt=y.left,k=y.right,G=y.width,F=y.height,Et=void 0,tt=void 0,wt=v.scrollWidth,qt=v.scrollHeight,z=f(v),Wt=v.scrollLeft,ht=v.scrollTop;v===a?(Et=G<wt&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),tt=F<qt&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(Et=G<wt&&(z.overflowX==="auto"||z.overflowX==="scroll"),tt=F<qt&&(z.overflowY==="auto"||z.overflowY==="scroll"));var Zt=Et&&(Math.abs(k-n)<=s&&Wt+G<wt)-(Math.abs(rt-n)<=s&&!!Wt),st=tt&&(Math.abs(Z-r)<=s&&ht+F<qt)-(Math.abs(b-r)<=s&&!!ht);if(!D[u])for(var _t=0;_t<=u;_t++)D[_t]||(D[_t]={});(D[u].vx!=Zt||D[u].vy!=st||D[u].el!==v)&&(D[u].el=v,D[u].vx=Zt,D[u].vy=st,clearInterval(D[u].pid),(Zt!=0||st!=0)&&(d=!0,D[u].pid=setInterval((function(){i&&this.layer===0&&g.active._onTouchMove(fe);var Gt=D[this.layer].vy?D[this.layer].vy*l:0,ct=D[this.layer].vx?D[this.layer].vx*l:0;typeof c=="function"&&c.call(g.dragged.parentNode[L],ct,Gt,o,fe,D[this.layer].el)!=="continue"||Ri(D[this.layer].el,ct,Gt)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==a&&(p=lt(p,!1)));Qe=d}},30),Zi=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,l=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var d=i||r;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);a(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function oi(){}oi.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 n=St(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:Zi},it(oi,{pluginName:"revertOnSpill"});function ni(){}ni.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,n=i||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:Zi},it(ni,{pluginName:"removeOnSpill"}),g.mount(new Zo),g.mount(ni,oi);const Go=(o,t,e)=>{let i=[];o._sortable=g.create(o,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:n=>{const r=n.item;i=Array.prototype.slice.call(r.parentNode.childNodes),i=i.filter(s=>s.nodeType!=Node.ELEMENT_NODE||!s.classList.contains("sortable-fallback"))},onEnd:n=>{const s=n.item.parentNode;for(const a of i)s.appendChild(a);if(n.oldIndex==n.newIndex)return;const l=t.getArray().find(a=>a.ol_uid===n.item.querySelector("eox-layercontrol-layer").layer.ol_uid);t.remove(l),t.insertAt(t.getLength()-n.newIndex,l),e.requestUpdate()}})},ri=(o,t,e)=>{let i=[];const n=(r,s,l)=>{i=[...i,...r.filter(d=>d.get(s)===l)];const a=r.filter(d=>d.getLayers);return a.length>0&&a.forEach(d=>n(d.getLayers().getArray(),s,l)),i};return n(o,t,e),i},Ko=(o,t)=>{var e,i,n;if(!(!o||!t))return o.getLayers?"group":(n=(e=t.getInteractions().getArray().filter(r=>r.freehand_!==void 0).map(r=>r.source_))==null?void 0:e.ol_uid)!=null&&n.includes(o.getSource?(i=o.getSource())==null?void 0:i.ol_uid:void 0)?"draw":o.declutter_!==void 0?"vector":"raster"};/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2020 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/const si=Ue(class extends Fe{constructor(
|
|
44
|
+
*/const si=Ue(class extends Fe{constructor(o){if(super(o),o.type!==mt.PROPERTY&&o.type!==mt.ATTRIBUTE&&o.type!==mt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!wo(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===q||t===$)return t;const e=o.element,i=o.name;if(o.type===mt.PROPERTY){if(t===e[i])return q}else if(o.type===mt.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return q}else if(o.type===mt.ATTRIBUTE&&e.getAttribute(i)===t+"")return q;return Si(o),t}});/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/class ai extends Fe{constructor(t){if(super(t),this.et=$,t.type!==mt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this.ft=void 0,this.et=t;if(t===q)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ai.directiveName="unsafeHTML",ai.resultType=1;const
|
|
48
|
+
*/class ai extends Fe{constructor(t){if(super(t),this.et=$,t.type!==mt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this.ft=void 0,this.et=t;if(t===q)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ai.directiveName="unsafeHTML",ai.resultType=1;const Jo=Ue(ai);/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2021 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
*/function*me(
|
|
52
|
+
*/function*me(o,t){if(o!==void 0){let e=0;for(const i of o)yield t(i,e++)}}class Gi extends Y{constructor(){super();V(this,ve,"");V(this,ye,"");this.layer=null,this.unstyled=!1,this.noShadow=!0}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var e;return _`
|
|
53
53
|
<style>
|
|
54
54
|
${I(this,ve)}
|
|
55
55
|
${!this.unstyled&&I(this,ye)}
|
|
@@ -64,11 +64,11 @@ var oo=Object.defineProperty;var ro=(S,x,O)=>x in S?oo(S,x,{enumerable:!0,config
|
|
|
64
64
|
/>
|
|
65
65
|
<button
|
|
66
66
|
class="delete"
|
|
67
|
-
@click=${()=>{var i,
|
|
67
|
+
@click=${()=>{var i,n;(i=this.layer)==null||i.set("layerControlOptional",!0),(n=this.layer)==null||n.setVisible(!1),this.dispatchEvent(new CustomEvent("changed",{detail:this.layer,bubbles:!0}))}}
|
|
68
68
|
>
|
|
69
69
|
x
|
|
70
70
|
</button>
|
|
71
|
-
`}}ve=new WeakMap,ye=new WeakMap,X(Gi,"properties",{layer:{attribute:!1},unstyled:{type:Boolean}}),customElements.define("eox-layercontrol-layerconfig",Gi);class Ki extends Y{constructor(){super();V(this,be,`
|
|
71
|
+
`}}ve=new WeakMap,ye=new WeakMap,X(Gi,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layerconfig",Gi);class Ki extends Y{constructor(){super();V(this,be,`
|
|
72
72
|
.tabbed figure {
|
|
73
73
|
margin: 0;
|
|
74
74
|
}
|
|
@@ -108,7 +108,7 @@ var oo=Object.defineProperty;var ro=(S,x,O)=>x in S?oo(S,x,{enumerable:!0,config
|
|
|
108
108
|
background: #00417011;
|
|
109
109
|
border-top: 1px solid #0041701a;
|
|
110
110
|
}
|
|
111
|
-
`);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1}render(){return _`
|
|
111
|
+
`);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!0}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return _`
|
|
112
112
|
<style>
|
|
113
113
|
${I(this,be)}
|
|
114
114
|
${!this.unstyled&&I(this,Ee)}
|
|
@@ -143,7 +143,7 @@ var oo=Object.defineProperty;var ro=(S,x,O)=>x in S?oo(S,x,{enumerable:!0,config
|
|
|
143
143
|
`)}
|
|
144
144
|
</figure>
|
|
145
145
|
</div>
|
|
146
|
-
`}}be=new WeakMap,Ee=new WeakMap,X(Ki,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean}}),customElements.define("eox-layercontrol-tabs",Ki);const
|
|
146
|
+
`}}be=new WeakMap,Ee=new WeakMap,X(Ki,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-tabs",Ki);const Qo=`
|
|
147
147
|
button {
|
|
148
148
|
/* TODO: why does this only work here and not from :root? */
|
|
149
149
|
--primary-color: #004170;
|
|
@@ -232,7 +232,7 @@ button.small {
|
|
|
232
232
|
padding: 12.4px;
|
|
233
233
|
font-size: .75rem;
|
|
234
234
|
}
|
|
235
|
-
`,
|
|
235
|
+
`,tn=`
|
|
236
236
|
input[type=radio] {
|
|
237
237
|
appearance: none;
|
|
238
238
|
-webkit-appearance: none;
|
|
@@ -283,7 +283,7 @@ input[type=checkbox]:checked:after {
|
|
|
283
283
|
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");
|
|
284
284
|
|
|
285
285
|
}
|
|
286
|
-
`,
|
|
286
|
+
`,en=`
|
|
287
287
|
input[type="range"] {
|
|
288
288
|
-webkit-appearance: none;
|
|
289
289
|
width: 90%;
|
|
@@ -360,7 +360,7 @@ input[type="range"]:focus::-webkit-slider-thumb {
|
|
|
360
360
|
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
361
361
|
border: 0;
|
|
362
362
|
}
|
|
363
|
-
`;class Qi extends Y{constructor(){super();X(this,"_parseActions",e=>e==null?void 0:e.filter(i=>["remove","sort"].filter(
|
|
363
|
+
`;class Qi extends Y{constructor(){super();X(this,"_parseActions",e=>e==null?void 0:e.filter(i=>["remove","sort"].filter(n=>{var r;return(r=this.layer)!=null&&r.get("layerControlDisable")?n!=="sort":!0}).includes(i)));X(this,"_parseTools",e=>e==null?void 0:e.filter(i=>{var r;let n=!0;return["remove","sort"].includes(i)&&(n=!1),i==="info"&&(n=this.layer.get("description")),i==="config"&&(n=(r=this.layer.style_)==null?void 0:r.color),n}));X(this,"_removeButton",_`
|
|
364
364
|
<button
|
|
365
365
|
class="remove-icon icon"
|
|
366
366
|
@click=${()=>{var e,i;(e=this.layer)==null||e.set("layerControlOptional",!0),(i=this.layer)==null||i.setVisible(!1),this.dispatchEvent(new CustomEvent("changed",{detail:this.layer,bubbles:!0}))}}
|
|
@@ -372,10 +372,10 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
372
372
|
${this.unstyled?"sort":$}
|
|
373
373
|
</button>
|
|
374
374
|
`);V(this,we,"");V(this,_e,`
|
|
375
|
-
${
|
|
376
|
-
${
|
|
375
|
+
${Qo}
|
|
376
|
+
${tn}
|
|
377
377
|
${Ji}
|
|
378
|
-
${
|
|
378
|
+
${en}
|
|
379
379
|
button.icon.drag-handle {
|
|
380
380
|
cursor: n-resize;
|
|
381
381
|
}
|
|
@@ -465,13 +465,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
465
465
|
[slot=opacity-content] {
|
|
466
466
|
padding: 12px 6px;
|
|
467
467
|
}
|
|
468
|
-
`);this.layer=null,this.tools=[],this.unstyled=!1}createRenderRoot(){return this}render(){var e,i;return _`
|
|
468
|
+
`);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!0}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var e,i;return _`
|
|
469
469
|
<style>
|
|
470
470
|
${I(this,we)}
|
|
471
471
|
${!this.unstyled&&I(this,_e)}
|
|
472
472
|
</style>
|
|
473
|
-
${et(((e=this._parseActions(this.tools))==null?void 0:e.length)+((i=this._parseTools(this.tools))==null?void 0:i.length)>0,()=>{var
|
|
474
|
-
${et(((
|
|
473
|
+
${et(((e=this._parseActions(this.tools))==null?void 0:e.length)+((i=this._parseTools(this.tools))==null?void 0:i.length)>0,()=>{var n,r;return _`
|
|
474
|
+
${et(((n=this._parseActions(this.tools))==null?void 0:n.length)===1&&((r=this._parseTools(this.tools))==null?void 0:r.length)===0,()=>_`
|
|
475
475
|
<div class="single-action-container">
|
|
476
476
|
<div class="single-action">
|
|
477
477
|
${this[`_${this._parseActions(this.tools)[0]}Button`]}
|
|
@@ -490,6 +490,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
490
490
|
</button>
|
|
491
491
|
</summary>
|
|
492
492
|
<eox-layercontrol-tabs
|
|
493
|
+
.noShadow=${!1}
|
|
493
494
|
.actions=${this._parseActions(this.tools)}
|
|
494
495
|
.tabs=${this._parseTools(this.tools)}
|
|
495
496
|
.unstyled=${this.unstyled}
|
|
@@ -501,7 +502,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
501
502
|
`)}
|
|
502
503
|
|
|
503
504
|
<div slot="info-content">
|
|
504
|
-
${
|
|
505
|
+
${Jo(this.layer.get("description"))}
|
|
505
506
|
</div>
|
|
506
507
|
<div slot="opacity-content">
|
|
507
508
|
<input
|
|
@@ -526,7 +527,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
526
527
|
</details>
|
|
527
528
|
`})}
|
|
528
529
|
`})}
|
|
529
|
-
`}}we=new WeakMap,_e=new WeakMap,X(Qi,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",Qi);class
|
|
530
|
+
`}}we=new WeakMap,_e=new WeakMap,X(Qi,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",Qi);class to extends Y{constructor(){super();V(this,$e,"");V(this,xe,`
|
|
530
531
|
${Ji}
|
|
531
532
|
eox-layercontrol-layer {
|
|
532
533
|
width: 100%;
|
|
@@ -563,7 +564,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
563
564
|
[data-type=draw] .title::before {
|
|
564
565
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E");
|
|
565
566
|
}
|
|
566
|
-
`);this.layer=null,this.titleProperty="title",this.tools=[],this.unstyled=!1}createRenderRoot(){return this}render(){return _`
|
|
567
|
+
`);this.layer=null,this.titleProperty="title",this.tools=[],this.unstyled=!1,this.noShadow=!0}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return _`
|
|
567
568
|
<style>
|
|
568
569
|
${I(this,$e)}
|
|
569
570
|
${!this.unstyled&&I(this,xe)}
|
|
@@ -583,12 +584,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
583
584
|
</label>
|
|
584
585
|
</div>
|
|
585
586
|
<eox-layercontrol-layer-tools
|
|
587
|
+
.noShadow=${!0}
|
|
586
588
|
.layer=${this.layer}
|
|
587
589
|
.tools=${this.tools}
|
|
588
590
|
.unstyled=${this.unstyled}
|
|
589
591
|
></eox-layercontrol-layer-tools>
|
|
590
592
|
`})}
|
|
591
|
-
`}}$e=new WeakMap,xe=new WeakMap,X(
|
|
593
|
+
`}}$e=new WeakMap,xe=new WeakMap,X(to,"properties",{layer:{attribute:!1},titleProperty:{attribute:"title-property",type:String},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer",to);class eo extends Y{constructor(){super();V(this,Ae,"");V(this,Ce,`
|
|
592
594
|
details summary {
|
|
593
595
|
cursor: pointer;
|
|
594
596
|
display: flex;
|
|
@@ -609,7 +611,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
609
611
|
details[open] > summary:before {
|
|
610
612
|
transform: rotate(90deg);
|
|
611
613
|
}
|
|
612
|
-
`);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.tools=[],this.unstyled=!1}createRenderRoot(){return this}render(){return _`
|
|
614
|
+
`);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.tools=[],this.unstyled=!1,this.noShadow=!0}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return _`
|
|
613
615
|
<style>
|
|
614
616
|
${I(this,Ae)}
|
|
615
617
|
${!this.unstyled&&I(this,Ce)}
|
|
@@ -618,6 +620,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
618
620
|
<details open=${this.group.get("layerControlExpand")||$}>
|
|
619
621
|
<summary>
|
|
620
622
|
<eox-layercontrol-layer
|
|
623
|
+
.noShadow=${!0}
|
|
621
624
|
.layer=${this.group}
|
|
622
625
|
.titleProperty=${this.titleProperty}
|
|
623
626
|
.tools=${this.tools}
|
|
@@ -626,6 +629,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
626
629
|
></eox-layercontrol-layer>
|
|
627
630
|
</summary>
|
|
628
631
|
<eox-layercontrol-layer-list
|
|
632
|
+
.noShadow=${!0}
|
|
629
633
|
.idProperty=${this.idProperty}
|
|
630
634
|
.layers=${this.group.getLayers()}
|
|
631
635
|
.map=${this.map}
|
|
@@ -636,7 +640,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
636
640
|
></eox-layercontrol-layer-list>
|
|
637
641
|
</details>
|
|
638
642
|
`)}
|
|
639
|
-
`}}Ae=new WeakMap,Ce=new WeakMap,X(
|
|
643
|
+
`}}Ae=new WeakMap,Ce=new WeakMap,X(eo,"properties",{group:{attribute:!1},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-group",eo);class io extends Y{constructor(){super();V(this,Se,"");V(this,Te,`
|
|
640
644
|
ul {
|
|
641
645
|
padding: 0;
|
|
642
646
|
}
|
|
@@ -663,20 +667,21 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
663
667
|
}
|
|
664
668
|
li.sortable-ghost {
|
|
665
669
|
}
|
|
666
|
-
`);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.unstyled=!1}updated(){this.layers&&(this.layers.on("change:length",()=>{this.requestUpdate(),this.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))}),
|
|
670
|
+
`);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.unstyled=!1,this.noShadow=!0}updated(){this.layers&&(this.layers.on("change:length",()=>{this.requestUpdate(),this.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))}),Go(this.renderRoot.querySelector("ul"),this.layers,this))}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return _`
|
|
667
671
|
<style>
|
|
668
672
|
${I(this,Se)}
|
|
669
673
|
${!this.unstyled&&I(this,Te)}
|
|
670
674
|
</style>
|
|
671
675
|
<ul>
|
|
672
676
|
${et(this.layers,()=>_`
|
|
673
|
-
${this.layers.getArray().filter(e=>!e.get("layerControlHide")&&!e.get("layerControlOptional")).reverse().map(e=>$
|
|
677
|
+
${this.layers.getArray().filter(e=>!e.get("layerControlHide")&&!e.get("layerControlOptional")).reverse().map(e=>$o(e.get(this.idProperty),_`
|
|
674
678
|
<li
|
|
675
679
|
data-layer="${e.get(this.idProperty)}"
|
|
676
|
-
data-type="${
|
|
680
|
+
data-type="${Ko(e,this.map)}"
|
|
677
681
|
>
|
|
678
682
|
${e.getLayers?_`
|
|
679
683
|
<eox-layercontrol-layer-group
|
|
684
|
+
.noShadow=${!0}
|
|
680
685
|
.group=${e}
|
|
681
686
|
.idProperty=${this.idProperty}
|
|
682
687
|
.map=${this.map}
|
|
@@ -688,6 +693,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
688
693
|
</eox-layercontrol-layer-group>
|
|
689
694
|
`:_`
|
|
690
695
|
<eox-layercontrol-layer
|
|
696
|
+
.noShadow=${!0}
|
|
691
697
|
.layer=${e}
|
|
692
698
|
.titleProperty=${this.titleProperty}
|
|
693
699
|
.tools=${this.tools}
|
|
@@ -699,7 +705,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
699
705
|
`))}
|
|
700
706
|
`)}
|
|
701
707
|
</ul>
|
|
702
|
-
`}}Se=new WeakMap,Te=new WeakMap,X(
|
|
708
|
+
`}}Se=new WeakMap,Te=new WeakMap,X(io,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-layer-list",io);class oo extends Y{constructor(){super(),this.idProperty="id",this.layers=null,this.titleProperty="title",this.unstyled=!1,this.noShadow=!0}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return _`
|
|
703
709
|
<label for="optional">Optional layers</label>
|
|
704
710
|
|
|
705
711
|
<select name="optional" data-cy="optionalLayers">
|
|
@@ -719,17 +725,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
719
725
|
>
|
|
720
726
|
add
|
|
721
727
|
</button>
|
|
722
|
-
`}}X(
|
|
728
|
+
`}}X(oo,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},titleProperty:{attribute:"title-property",type:String},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-optional-list",oo);class li extends Y{constructor(){super();V(this,De,"");V(this,Pe,`
|
|
723
729
|
* {
|
|
724
730
|
font-family: Roboto, sans-serif;
|
|
725
731
|
}
|
|
726
|
-
`);this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.tools=["info","opacity","remove","sort"],this.unstyled=!1}updated(){const e=document.querySelector(this.for);e&&(this.map=e.map)}render(){var e;return _`
|
|
732
|
+
`);this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.tools=["info","opacity","remove","sort"],this.unstyled=!1,this.styleOverride=""}updated(){const e=document.querySelector(this.for);e&&(this.map=e.map)}render(){var e;return _`
|
|
727
733
|
<style>
|
|
728
734
|
${I(this,De)}
|
|
729
735
|
${!this.unstyled&&I(this,Pe)}
|
|
736
|
+
${this.styleOverride}
|
|
730
737
|
</style>
|
|
731
738
|
${et(this.map,()=>_`
|
|
732
739
|
<eox-layercontrol-layer-list
|
|
740
|
+
.noShadow=${!0}
|
|
733
741
|
class="layers"
|
|
734
742
|
.idProperty=${this.idProperty}
|
|
735
743
|
.layers=${this.map.getLayers()}
|
|
@@ -742,10 +750,11 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
742
750
|
`)}
|
|
743
751
|
${et(this.map&&((e=ri(this.map.getLayers().getArray(),"layerControlOptional",!0))==null?void 0:e.length)>0,()=>_`
|
|
744
752
|
<eox-layercontrol-optional-list
|
|
753
|
+
.noShadow=${!0}
|
|
745
754
|
.idProperty=${this.idProperty}
|
|
746
755
|
.layers=${this.map.getLayers()}
|
|
747
756
|
.titleProperty=${this.titleProperty}
|
|
748
757
|
@changed=${()=>this.requestUpdate()}
|
|
749
758
|
></eox-layercontrol-optional-list>
|
|
750
759
|
`)}
|
|
751
|
-
`}}De=new WeakMap,Pe=new WeakMap,X(li,"properties",{for:{type:String},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},tools:{attribute:!1},unstyled:{type:Boolean}}),customElements.define("eox-layercontrol",li),S.EOxLayerControl=li,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
|
760
|
+
`}}De=new WeakMap,Pe=new WeakMap,X(li,"properties",{for:{type:String},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},tools:{attribute:!1},unstyled:{type:Boolean},styleOverride:{type:String}}),customElements.define("eox-layercontrol",li),S.EOxLayerControl=li,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|