@eox/layercontrol 0.6.5 → 0.6.7
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 +492 -441
- package/dist/eox-layercontrol.umd.cjs +88 -52
- package/package.json +2 -2
- package/test/_mockMap.ts +49 -8
- package/test/general.cy.ts +1 -0
- package/test/layersUpdate.cy.ts +171 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(x,nt){typeof exports=="object"&&typeof module<"u"?nt(exports):typeof define=="function"&&define.amd?define(["exports"],nt):(x=typeof globalThis<"u"?globalThis:x||self,nt(x["eox-layercontrol"]={}))})(this,function(x){"use strict";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var be;const Jt=window,Ke=Jt.trustedTypes,Qi=Ke?Ke.emptyScript:"",Qe=Jt.reactiveElementPolyfillSupport,Ee={toAttribute(n,t){switch(t){case Boolean:n=n?Qi:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Je=(n,t)=>t!==n&&(t==t||n==n),_e={attribute:!0,type:String,converter:Ee,reflect:!1,hasChanged:Je},we="finalized";let
|
|
9
|
+
*/var be;const Jt=window,Ke=Jt.trustedTypes,Qi=Ke?Ke.emptyScript:"",Qe=Jt.reactiveElementPolyfillSupport,Ee={toAttribute(n,t){switch(t){case Boolean:n=n?Qi:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Je=(n,t)=>t!==n&&(t==t||n==n),_e={attribute:!0,type:String,converter:Ee,reflect:!1,hasChanged:Je},we="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 r=this._$Ep(i,e);r!==void 0&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,e=_e){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_e}static finalize(){if(this.hasOwnProperty(we))return!1;this[we]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of i)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(qe(r))}else t!==void 0&&e.push(qe(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 Ki(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=_e){var r;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const a=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:Ee).toAttribute(e,i.type);this._$El=t,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(o!==void 0&&this._$El!==o){const a=r.getPropertyOptions(o),d=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:Ee;this._$El=o,this[o]=d.fromAttribute(e,a.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Je)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(i)):this._$Ek()}catch(r){throw e=!1,this._$Ek(),r}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};_t[we]=!0,_t.elementProperties=new Map,_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},Qe==null||Qe({ReactiveElement:_t}),((be=Jt.reactiveElementVersions)!==null&&be!==void 0?be: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 xe;const te=window,
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),oi=/'/g,ai=/"/g,
|
|
13
|
+
*/var xe;const te=window,wt=te.trustedTypes,ti=wt?wt.createPolicy("lit-html",{createHTML:n=>n}):void 0,ee="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,Ce="?"+Q,Ji=`<${Ce}>`,dt=document,Lt=()=>dt.createComment(""),Ht=n=>n===null||typeof n!="object"&&typeof n!="function",ei=Array.isArray,ii=n=>ei(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Ae=`[
|
|
14
|
+
\f\r]`,It=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ni=/-->/g,ri=/>/g,ut=RegExp(`>|${Ae}(?:([^\\s"'>=/]+)(${Ae}*=${Ae}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),oi=/'/g,ai=/"/g,li=/^(?:script|style|textarea|title)$/i,tn=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),H=tn(1),Y=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),si=new WeakMap,ct=dt.createTreeWalker(dt,129,null,!1),di=(n,t)=>{const e=n.length-1,i=[];let r,o=t===2?"<svg>":"",a=It;for(let l=0;l<e;l++){const s=n[l];let c,u,p=-1,g=0;for(;g<s.length&&(a.lastIndex=g,u=a.exec(s),u!==null);)g=a.lastIndex,a===It?u[1]==="!--"?a=ni:u[1]!==void 0?a=ri:u[2]!==void 0?(li.test(u[2])&&(r=RegExp("</"+u[2],"g")),a=ut):u[3]!==void 0&&(a=ut):a===ut?u[0]===">"?(a=r??It,p=-1):u[1]===void 0?p=-2:(p=a.lastIndex-u[2].length,c=u[1],a=u[3]===void 0?ut:u[3]==='"'?ai:oi):a===ai||a===oi?a=ut:a===ni||a===ri?a=It:(a=ut,r=void 0);const f=a===ut&&n[l+1].startsWith("/>")?" ":"";o+=a===It?s+Ji:p>=0?(i.push(c),s.slice(0,p)+ee+s.slice(p)+Q+f):s+Q+(p===-2?(i.push(void 0),l):f)}const d=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ti!==void 0?ti.createHTML(d):d,i]};class Mt{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const d=t.length-1,l=this.parts,[s,c]=di(t,e);if(this.el=Mt.createElement(s,i),ct.currentNode=this.el.content,e===2){const u=this.el.content,p=u.firstChild;p.remove(),u.append(...p.childNodes)}for(;(r=ct.nextNode())!==null&&l.length<d;){if(r.nodeType===1){if(r.hasAttributes()){const u=[];for(const p of r.getAttributeNames())if(p.endsWith(ee)||p.startsWith(Q)){const g=c[a++];if(u.push(p),g!==void 0){const f=r.getAttribute(g.toLowerCase()+ee).split(Q),y=/([.?@])?(.*)/.exec(g);l.push({type:1,index:o,name:y[2],strings:f,ctor:y[1]==="."?ci:y[1]==="?"?hi:y[1]==="@"?pi:Pt})}else l.push({type:6,index:o})}for(const p of u)r.removeAttribute(p)}if(li.test(r.tagName)){const u=r.textContent.split(Q),p=u.length-1;if(p>0){r.textContent=wt?wt.emptyScript:"";for(let g=0;g<p;g++)r.append(u[g],Lt()),ct.nextNode(),l.push({type:2,index:++o});r.append(u[p],Lt())}}}else if(r.nodeType===8)if(r.data===Ce)l.push({type:2,index:o});else{let u=-1;for(;(u=r.data.indexOf(Q,u+1))!==-1;)l.push({type:7,index:o}),u+=Q.length-1}o++}}static createElement(t,e){const i=dt.createElement("template");return i.innerHTML=t,i}}function ht(n,t,e=n,i){var r,o,a,d;if(t===Y)return t;let l=i!==void 0?(r=e._$Co)===null||r===void 0?void 0:r[i]:e._$Cl;const s=Ht(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==s&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),s===void 0?l=void 0:(l=new s(n),l._$AT(n,e,i)),i!==void 0?((a=(d=e)._$Co)!==null&&a!==void 0?a:d._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=ht(n,l._$AS(n,t.values),l,i)),t}class ui{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:r}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:dt).importNode(i,!0);ct.currentNode=o;let a=ct.nextNode(),d=0,l=0,s=r[0];for(;s!==void 0;){if(d===s.index){let c;s.type===2?c=new xt(a,a.nextSibling,this,t):s.type===1?c=new s.ctor(a,s.name,s.strings,this,t):s.type===6&&(c=new fi(a,this,t)),this._$AV.push(c),s=r[++l]}d!==(s==null?void 0:s.index)&&(a=ct.nextNode(),d++)}return ct.currentNode=dt,o}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class xt{constructor(t,e,i,r){var o;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ht(this,t,e),Ht(t)?t===_||t==null||t===""?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==Y&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ii(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!==_&&Ht(this._$AH)?this._$AA.nextSibling.data=t:this.$(dt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Mt.createElement(r.h,this.options)),r);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const a=new ui(o,this),d=a.u(this.options);a.v(i),this.$(d),this._$AH=a}}_$AC(t){let e=si.get(t.strings);return e===void 0&&si.set(t.strings,e=new Mt(t)),e}T(t){ei(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new xt(this.k(Lt()),this.k(Lt()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class Pt{constructor(t,e,i,r,o){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(o===void 0)t=ht(this,t,e,0),a=!Ht(t)||t!==this._$AH&&t!==Y,a&&(this._$AH=t);else{const d=t;let l,s;for(t=o[0],l=0;l<o.length-1;l++)s=ht(this,d[i+l],e,l),s===Y&&(s=this._$AH[l]),a||(a=!Ht(s)||s!==this._$AH[l]),s===_?t=_:t!==_&&(t+=(s??"")+o[l+1]),this._$AH[l]=s}a&&!r&&this.j(t)}j(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ci extends Pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_?void 0:t}}const en=wt?wt.emptyScript:"";class hi extends Pt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==_?this.element.setAttribute(this.name,en):this.element.removeAttribute(this.name)}}class pi extends Pt{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=ht(this,t,e,0))!==null&&i!==void 0?i:_)===Y)return;const r=this._$AH,o=t===_&&r!==_||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==_&&(r===_||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class fi{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){ht(this,t)}}const nn={O:ee,P:Q,A:Ce,C:1,M:di,L:ui,D:ii,R:ht,I:xt,V:Pt,H:hi,N:pi,U:ci,F:fi},gi=te.litHtmlPolyfillSupport;gi==null||gi(Mt,xt),((xe=te.litHtmlVersions)!==null&&xe!==void 0?xe:te.litHtmlVersions=[]).push("2.7.4");const rn=(n,t,e)=>{var i,r;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let a=o._$litPart$;if(a===void 0){const d=(r=e==null?void 0:e.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=a=new xt(t.insertBefore(Lt(),d),d,void 0,e??{})}return a._$AI(n),a};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/var $e,Se;let
|
|
19
|
+
*/var $e,Se;let Ct=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=rn(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 Y}};Ct.finalized=!0,Ct._$litElement$=!0,($e=globalThis.litElementHydrateSupport)===null||$e===void 0||$e.call(globalThis,{LitElement:Ct});const mi=globalThis.litElementPolyfillSupport;mi==null||mi({LitElement:Ct}),((Se=globalThis.litElementVersions)!==null&&Se!==void 0?Se:globalThis.litElementVersions=[]).push("3.3.2");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -28,27 +28,27 @@
|
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function
|
|
31
|
+
*/function kt(n){return k({...n,state:!0})}/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2021 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/var
|
|
35
|
+
*/var Te;((Te=window.HTMLSlotElement)===null||Te===void 0?void 0:Te.prototype.assignedElements)!=null;/**
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright 2017 Google LLC
|
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/const
|
|
39
|
+
*/const pt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yi=n=>(...t)=>({_$litDirective$:n,values:t});class bi{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2020 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/const{I:
|
|
43
|
+
*/const{I:ln}=nn,sn=n=>n.strings===void 0,Ei=()=>document.createComment(""),Nt=(n,t,e)=>{var i;const r=n._$AA.parentNode,o=t===void 0?n._$AB:t._$AA;if(e===void 0){const a=r.insertBefore(Ei(),o),d=r.insertBefore(Ei(),o);e=new ln(a,d,n,n.options)}else{const a=e._$AB.nextSibling,d=e._$AM,l=d!==n;if(l){let s;(i=e._$AQ)===null||i===void 0||i.call(e,n),e._$AM=n,e._$AP!==void 0&&(s=n._$AU)!==d._$AU&&e._$AP(s)}if(a!==o||l){let s=e._$AA;for(;s!==a;){const c=s.nextSibling;r.insertBefore(s,o),s=c}}}return e},ft=(n,t,e=n)=>(n._$AI(t,e),n),dn={},_i=(n,t=dn)=>n._$AH=t,un=n=>n._$AH,De=n=>{var t;(t=n._$AP)===null||t===void 0||t.call(n,!1,!0);let e=n._$AA;const i=n._$AB.nextSibling;for(;e!==i;){const r=e.nextSibling;e.remove(),e=r}};/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/const wi=(n,t,e)=>{const i=new Map;for(let r=t;r<=e;r++)i.set(n[r],r);return i},
|
|
47
|
+
*/const wi=(n,t,e)=>{const i=new Map;for(let r=t;r<=e;r++)i.set(n[r],r);return i},Oe=yi(class extends bi{constructor(n){if(super(n),n.type!==pt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);const r=[],o=[];let a=0;for(const d of n)r[a]=i?i(d,a):a,o[a]=e(d,a),a++;return{values:o,keys:r}}render(n,t,e){return this.dt(n,t,e).values}update(n,[t,e,i]){var r;const o=un(n),{values:a,keys:d}=this.dt(t,e,i);if(!Array.isArray(o))return this.ht=d,a;const l=(r=this.ht)!==null&&r!==void 0?r:this.ht=[],s=[];let c,u,p=0,g=o.length-1,f=0,y=a.length-1;for(;p<=g&&f<=y;)if(o[p]===null)p++;else if(o[g]===null)g--;else if(l[p]===d[f])s[f]=ft(o[p],a[f]),p++,f++;else if(l[g]===d[y])s[y]=ft(o[g],a[y]),g--,y--;else if(l[p]===d[y])s[y]=ft(o[p],a[y]),Nt(n,s[y+1],o[p]),p++,y--;else if(l[g]===d[f])s[f]=ft(o[g],a[f]),Nt(n,o[p],o[g]),g--,f++;else if(c===void 0&&(c=wi(d,f,y),u=wi(l,p,g)),c.has(l[p]))if(c.has(l[g])){const S=u.get(d[f]),F=S!==void 0?o[S]:null;if(F===null){const L=Nt(n,o[p]);ft(L,a[f]),s[f]=L}else s[f]=ft(F,a[f]),Nt(n,o[p],F),o[S]=null;f++}else De(o[g]),g--;else De(o[p]),p++;for(;f<=y;){const S=Nt(n,s[y+1]);ft(S,a[f]),s[f++]=S}for(;p<=g;){const S=o[p++];S!==null&&De(S)}return this.ht=d,_i(n,s),Y}});/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2020 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/const Le=yi(class extends bi{constructor(n){if(super(n),n.type!==
|
|
51
|
+
*/const Le=yi(class extends bi{constructor(n){if(super(n),n.type!==pt.PROPERTY&&n.type!==pt.ATTRIBUTE&&n.type!==pt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!sn(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===Y||t===_)return t;const e=n.element,i=n.name;if(n.type===pt.PROPERTY){if(t===e[i])return Y}else if(n.type===pt.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return Y}else if(n.type===pt.ATTRIBUTE&&e.getAttribute(i)===t+"")return Y;return _i(n),t}});/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2021 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
* @author RubaXa <trash@rubaxa.org>
|
|
58
58
|
* @author owenm <owen23355@gmail.com>
|
|
59
59
|
* @license MIT
|
|
60
|
-
*/function Ci(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),e.push.apply(e,i)}return e}function G(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Ci(Object(e),!0).forEach(function(i){cn(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Ci(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function ie(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ie=function(t){return typeof t}:ie=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(n)}function cn(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function J(){return J=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},J.apply(this,arguments)}function hn(n,t){if(n==null)return{};var e={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(e[r]=n[r]);return e}function pn(n,t){if(n==null)return{};var e=hn(n,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var fn="1.15.0";function tt(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var et=tt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vt=tt(/Edge/i),Ai=tt(/firefox/i),Bt=tt(/safari/i)&&!tt(/chrome/i)&&!tt(/android/i),$i=tt(/iP(ad|od|hone)/i),Si=tt(/chrome/i)&&tt(/android/i),Oi={capture:!1,passive:!1};function x(n,t,e){n.addEventListener(t,e,!et&&Oi)}function E(n,t,e){n.removeEventListener(t,e,!et&&Oi)}function ne(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 gn(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Z(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&ne(n,t):ne(n,t))||i&&n===e)return n;if(n===e)break}while(n=gn(n))}return null}var Ti=/\s+/g;function V(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(Ti," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Ti," ")}}function m(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 $t(n,t){var e="";if(typeof n=="string")e=n;else do{var i=m(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function Di(n,t,e){if(n){var i=n.getElementsByTagName(t),r=0,o=i.length;if(e)for(;r<o;r++)e(i[r],r);return i}return[]}function q(){var n=document.scrollingElement;return n||document.documentElement}function D(n,t,e,i,r){if(!(!n.getBoundingClientRect&&n!==window)){var o,a,l,s,d,h,u;if(n!==window&&n.parentNode&&n!==q()?(o=n.getBoundingClientRect(),a=o.top,l=o.left,s=o.bottom,d=o.right,h=o.height,u=o.width):(a=0,l=0,s=window.innerHeight,d=window.innerWidth,h=window.innerHeight,u=window.innerWidth),(t||e)&&n!==window&&(r=r||n.parentNode,!et))do if(r&&r.getBoundingClientRect&&(m(r,"transform")!=="none"||e&&m(r,"position")!=="static")){var p=r.getBoundingClientRect();a-=p.top+parseInt(m(r,"border-top-width")),l-=p.left+parseInt(m(r,"border-left-width")),s=a+o.height,d=l+o.width;break}while(r=r.parentNode);if(i&&n!==window){var g=$t(r||n),f=g&&g.a,y=g&&g.d;g&&(a/=y,l/=f,u/=f,h/=y,s=a+h,d=l+u)}return{top:a,left:l,bottom:s,right:d,width:u,height:h}}}function Li(n,t,e){for(var i=rt(n,!0),r=D(n)[t];i;){var o=D(i)[e],a=void 0;if(e==="top"||e==="left"?a=r>=o:a=r<=o,!a)return i;if(i===q())break;i=rt(i,!1)}return!1}function St(n,t,e,i){for(var r=0,o=0,a=n.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==v.ghost&&(i||a[o]!==v.dragged)&&Z(a[o],e.draggable,n,!1)){if(r===t)return a[o];r++}o++}return null}function He(n,t){for(var e=n.lastElementChild;e&&(e===v.ghost||m(e,"display")==="none"||t&&!ne(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!==v.clone&&(!t||ne(n,t))&&e++;return e}function Hi(n){var t=0,e=0,i=q();if(n)do{var r=$t(n),o=r.a,a=r.d;t+=n.scrollLeft*o,e+=n.scrollTop*a}while(n!==i&&(n=n.parentNode));return[t,e]}function mn(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 rt(n,t){if(!n||!n.getBoundingClientRect)return q();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=m(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return q();if(i||t)return e;i=!0}}while(e=e.parentNode);return q()}function vn(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Ie(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 Rt;function Ii(n,t){return function(){if(!Rt){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),Rt=setTimeout(function(){Rt=void 0},t)}}}function yn(){clearTimeout(Rt),Rt=void 0}function Pi(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function Mi(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 B="Sortable"+new Date().getTime();function bn(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(r){if(!(m(r,"display")==="none"||r===v.ghost)){n.push({target:r,rect:D(r)});var o=G({},n[n.length-1].rect);if(r.thisAnimationDuration){var a=$t(r,!0);a&&(o.top-=a.f,o.left-=a.e)}r.fromRect=o}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(mn(n,{target:i}),1)},animateAll:function(i){var r=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var o=!1,a=0;n.forEach(function(l){var s=0,d=l.target,h=d.fromRect,u=D(d),p=d.prevFromRect,g=d.prevToRect,f=l.rect,y=$t(d,!0);y&&(u.top-=y.f,u.left-=y.e),d.toRect=u,d.thisAnimationDuration&&Ie(p,u)&&!Ie(h,u)&&(f.top-u.top)/(f.left-u.left)===(h.top-u.top)/(h.left-u.left)&&(s=_n(f,p,g,r.options)),Ie(u,h)||(d.prevFromRect=h,d.prevToRect=u,s||(s=r.options.animation),r.animate(d,f,u,s)),s&&(o=!0,a=Math.max(a,s),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},s),d.thisAnimationDuration=s)}),clearTimeout(t),o?t=setTimeout(function(){typeof i=="function"&&i()},a):typeof i=="function"&&i(),n=[]},animate:function(i,r,o,a){if(a){m(i,"transition",""),m(i,"transform","");var l=$t(this.el),s=l&&l.a,d=l&&l.d,h=(r.left-o.left)/(s||1),u=(r.top-o.top)/(d||1);i.animatingX=!!h,i.animatingY=!!u,m(i,"transform","translate3d("+h+"px,"+u+"px,0)"),this.forRepaintDummy=En(i),m(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),m(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){m(i,"transition",""),m(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},a)}}}}function En(n){return n.offsetWidth}function _n(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 Ot=[],Pe={initializeByDefault:!0},Ft={mount:function(t){for(var e in Pe)Pe.hasOwnProperty(e)&&!(e in t)&&(t[e]=Pe[e]);Ot.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Ot.push(t)},pluginEvent:function(t,e,i){var r=this;this.eventCanceled=!1,i.cancel=function(){r.eventCanceled=!0};var o=t+"Global";Ot.forEach(function(a){e[a.pluginName]&&(e[a.pluginName][o]&&e[a.pluginName][o](G({sortable:e},i)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](G({sortable:e},i)))})},initializePlugins:function(t,e,i,r){Ot.forEach(function(l){var s=l.pluginName;if(!(!t.options[s]&&!l.initializeByDefault)){var d=new l(t,e,t.options);d.sortable=t,d.options=t.options,t[s]=d,J(i,d.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,e){var i={};return Ot.forEach(function(r){typeof r.eventProperties=="function"&&J(i,r.eventProperties.call(e[r.pluginName],t))}),i},modifyOption:function(t,e,i){var r;return Ot.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],i))}),r}};function wn(n){var t=n.sortable,e=n.rootEl,i=n.name,r=n.targetEl,o=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,d=n.newIndex,h=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,g=n.putSortable,f=n.extraEventProperties;if(t=t||e&&e[B],!!t){var y,O=t.options,F="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!et&&!Vt?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=a||e,y.from=l||e,y.item=r||e,y.clone=o,y.oldIndex=s,y.newIndex=d,y.oldDraggableIndex=h,y.newDraggableIndex=u,y.originalEvent=p,y.pullMode=g?g.lastPutMode:void 0;var L=G(G({},f),Ft.getEventProperties(i,t));for(var W in L)y[W]=L[W];e&&e.dispatchEvent(y),O[F]&&O[F].call(t,y)}}var xn=["evt"],N=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.evt,o=pn(i,xn);Ft.pluginEvent.bind(v)(t,e,G({dragEl:c,parentEl:$,ghostEl:b,rootEl:C,nextEl:mt,lastDownEl:re,cloneEl:A,cloneHidden:ot,dragStarted:zt,putSortable:I,activeSortable:v.active,originalEvent:r,oldIndex:Tt,oldDraggableIndex:Ut,newIndex:R,newDraggableIndex:at,hideGhostForTarget:Ui,unhideGhostForTarget:zi,cloneNowHidden:function(){ot=!0},cloneNowShown:function(){ot=!1},dispatchSortableEvent:function(l){M({sortable:e,name:l,originalEvent:r})}},o))};function M(n){wn(G({putSortable:I,cloneEl:A,targetEl:c,rootEl:C,oldIndex:Tt,oldDraggableIndex:Ut,newIndex:R,newDraggableIndex:at},n))}var c,$,b,C,mt,re,A,ot,Tt,R,Ut,at,oe,I,Dt=!1,ae=!1,se=[],vt,X,Me,ke,ki,Ni,zt,Lt,jt,Yt=!1,le=!1,de,P,Ne=[],Ve=!1,ue=[],ce=typeof document<"u",he=$i,Vi=Vt||et?"cssFloat":"float",Cn=ce&&!Si&&!$i&&"draggable"in document.createElement("div"),Bi=function(){if(ce){if(et)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Ri=function(t,e){var i=m(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=St(t,0,e),a=St(t,1,e),l=o&&m(o),s=a&&m(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+D(o).width,h=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+D(a).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=r&&i[Vi]==="none"||a&&i[Vi]==="none"&&d+h>r)?"vertical":"horizontal"},An=function(t,e,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,l=i?e.left:e.top,s=i?e.right:e.bottom,d=i?e.width:e.height;return r===l||o===s||r+a/2===l+d/2},$n=function(t,e){var i;return se.some(function(r){var o=r[B].options.emptyInsertThreshold;if(!(!o||He(r))){var a=D(r),l=t>=a.left-o&&t<=a.right+o,s=e>=a.top-o&&e<=a.bottom+o;if(l&&s)return i=r}}),i},Fi=function(t){function e(o,a){return function(l,s,d,h){var u=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(o==null&&(a||u))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return e(o(l,s,d,h),a)(l,s,d,h);var p=(a?l:s).options.group.name;return o===!0||typeof o=="string"&&o===p||o.join&&o.indexOf(p)>-1}}var i={},r=t.group;(!r||ie(r)!="object")&&(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},Ui=function(){!Bi&&b&&m(b,"display","none")},zi=function(){!Bi&&b&&m(b,"display","")};ce&&!Si&&document.addEventListener("click",function(n){if(ae)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),ae=!1,!1},!0);var yt=function(t){if(c){t=t.touches?t.touches[0]:t;var e=$n(t.clientX,t.clientY);if(e){var i={};for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[B]._onDragOver(i)}}},Sn=function(t){c&&c.parentNode[B]._isOutsideThisEl(t.target)};function v(n,t){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=t=J({},t),n[B]=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 Ri(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:v.supportPointer!==!1&&"PointerEvent"in window&&!Bt,emptyInsertThreshold:5};Ft.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Fi(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:Cn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?x(n,"pointerdown",this._onTapStart):(x(n,"mousedown",this._onTapStart),x(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(x(n,"dragover",this),x(n,"dragenter",this)),se.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),J(this,bn())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Lt=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,r=this.options,o=r.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,h=r.filter;if(Mn(i),!c&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Bt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Z(s,r.draggable,i,!1),!(s&&s.animated)&&re!==s)){if(Tt=j(s),Ut=j(s,r.draggable),typeof h=="function"){if(h.call(this,t,s,this)){M({sortable:e,rootEl:d,name:"filter",targetEl:s,toEl:i,fromEl:i}),N("filter",e,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(u){if(u=Z(d,u.trim(),i,!1),u)return M({sortable:e,rootEl:u,name:"filter",targetEl:s,fromEl:i,toEl:i}),N("filter",e,{evt:t}),!0}),h)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!Z(d,r.handle,i,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,i){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(i&&!c&&i.parentNode===o){var d=D(i);if(C=o,c=i,$=c.parentNode,mt=c.nextSibling,re=i,oe=a.group,v.dragged=c,vt={target:c,clientX:(e||t).clientX,clientY:(e||t).clientY},ki=vt.clientX-d.left,Ni=vt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,c.style["will-change"]="all",s=function(){if(N("delayEnded",r,{evt:t}),v.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Ai&&r.nativeDraggable&&(c.draggable=!0),r._triggerDragStart(t,e),M({sortable:r,name:"choose",originalEvent:t}),V(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(h){Di(c,h.trim(),Be)}),x(l,"dragover",yt),x(l,"mousemove",yt),x(l,"touchmove",yt),x(l,"mouseup",r._onDrop),x(l,"touchend",r._onDrop),x(l,"touchcancel",r._onDrop),Ai&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),N("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Vt||et))){if(v.eventCanceled){this._onDrop();return}x(l,"mouseup",r._disableDelayedDrag),x(l,"touchend",r._disableDelayedDrag),x(l,"touchcancel",r._disableDelayedDrag),x(l,"mousemove",r._delayedDragTouchMoveHandler),x(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&x(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&Be(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?x(document,"pointermove",this._onTouchMove):e?x(document,"touchmove",this._onTouchMove):x(document,"mousemove",this._onTouchMove):(x(c,"dragend",this),x(C,"dragstart",this._onDragStart));try{document.selection?fe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Dt=!1,C&&c){N("dragStarted",this,{evt:e}),this.nativeDraggable&&x(document,"dragover",Sn);var i=this.options;!t&&V(c,i.dragClass,!1),V(c,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),M({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(X){this._lastX=X.clientX,this._lastY=X.clientY,Ui();for(var t=document.elementFromPoint(X.clientX,X.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(X.clientX,X.clientY),t!==e);)e=t;if(c.parentNode[B]._isOutsideThisEl(t),e)do{if(e[B]){var i=void 0;if(i=e[B]._onDragOver({clientX:X.clientX,clientY:X.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);zi()}},_onTouchMove:function(t){if(vt){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=b&&$t(b,!0),l=b&&a&&a.a,s=b&&a&&a.d,d=he&&P&&Hi(P),h=(o.clientX-vt.clientX+r.x)/(l||1)+(d?d[0]-Ne[0]:0)/(l||1),u=(o.clientY-vt.clientY+r.y)/(s||1)+(d?d[1]-Ne[1]:0)/(s||1);if(!v.active&&!Dt){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(b){a?(a.e+=h-(Me||0),a.f+=u-(ke||0)):a={a:1,b:0,c:0,d:1,e:h,f:u};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");m(b,"webkitTransform",p),m(b,"mozTransform",p),m(b,"msTransform",p),m(b,"transform",p),Me=h,ke=u,X=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!b){var t=this.options.fallbackOnBody?document.body:C,e=D(c,!0,he,!0,t),i=this.options;if(he){for(P=t;m(P,"position")==="static"&&m(P,"transform")==="none"&&P!==document;)P=P.parentNode;P!==document.body&&P!==document.documentElement?(P===document&&(P=q()),e.top+=P.scrollTop,e.left+=P.scrollLeft):P=q(),Ne=Hi(P)}b=c.cloneNode(!0),V(b,i.ghostClass,!1),V(b,i.fallbackClass,!0),V(b,i.dragClass,!0),m(b,"transition",""),m(b,"transform",""),m(b,"box-sizing","border-box"),m(b,"margin",0),m(b,"top",e.top),m(b,"left",e.left),m(b,"width",e.width),m(b,"height",e.height),m(b,"opacity","0.8"),m(b,"position",he?"absolute":"fixed"),m(b,"zIndex","100000"),m(b,"pointerEvents","none"),v.ghost=b,t.appendChild(b),m(b,"transform-origin",ki/parseInt(b.style.width)*100+"% "+Ni/parseInt(b.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,r=t.dataTransfer,o=i.options;if(N("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}N("setupClone",this),v.eventCanceled||(A=Mi(c),A.removeAttribute("id"),A.draggable=!1,A.style["will-change"]="",this._hideClone(),V(A,this.options.chosenClass,!1),v.clone=A),i.cloneId=fe(function(){N("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||C.insertBefore(A,c),i._hideClone(),M({sortable:i,name:"clone"}))}),!e&&V(c,o.dragClass,!0),e?(ae=!0,i._loopId=setInterval(i._emulateDragOver,50)):(E(document,"mouseup",i._onDrop),E(document,"touchend",i._onDrop),E(document,"touchcancel",i._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(i,r,c)),x(document,"drop",i),m(c,"transform","translateZ(0)")),Dt=!0,i._dragStartId=fe(i._dragStarted.bind(i,e,t)),x(document,"selectstart",i),zt=!0,Bt&&m(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,r,o,a,l=this.options,s=l.group,d=v.active,h=oe===s,u=l.sort,p=I||d,g,f=this,y=!1;if(Ve)return;function O(Qt,Bn){N(Qt,f,G({evt:t,isOwner:h,axis:g?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:u,fromSortable:p,target:i,completed:L,onMove:function(Gi,Rn){return pe(C,e,c,r,Gi,D(Gi),t,Rn)},changed:W},Bn))}function F(){O("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function L(Qt){return O("dragOverCompleted",{insertion:Qt}),Qt&&(h?d._hideClone():d._showClone(f),f!==p&&(V(c,I?I.options.ghostClass:d.options.ghostClass,!1),V(c,l.ghostClass,!0)),I!==f&&f!==v.active?I=f:f===v.active&&I&&(I=null),p===f&&(f._ignoreWhileAnimating=i),f.animateAll(function(){O("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===c&&!c.animated||i===e&&!i.animated)&&(Lt=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(c.parentNode[B]._isOutsideThisEl(t.target),!Qt&&yt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function W(){R=j(c),at=j(c,l.draggable),M({sortable:f,name:"change",toEl:e,newIndex:R,newDraggableIndex:at,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=Z(i,l.draggable,e,!0),O("dragOver"),v.eventCanceled)return y;if(c.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i)return L(!1);if(ae=!1,d&&!l.disabled&&(h?u||(a=$!==C):I===this||(this.lastPutMode=oe.checkPull(this,d,c,t))&&s.checkPut(this,d,c,t))){if(g=this._getDirection(t,i)==="vertical",r=D(c),O("dragOverValid"),v.eventCanceled)return y;if(a)return $=C,F(),this._hideClone(),O("revert"),v.eventCanceled||(mt?C.insertBefore(c,mt):C.appendChild(c)),L(!0);var U=He(e,l.draggable);if(!U||Ln(t,g,this)&&!U.animated){if(U===c)return L(!1);if(U&&e===t.target&&(i=U),i&&(o=D(i)),pe(C,e,c,r,i,o,t,!!i)!==!1)return F(),U&&U.nextSibling?e.insertBefore(c,U.nextSibling):e.appendChild(c),$=e,W(),L(!0)}else if(U&&Dn(t,g,this)){var bt=St(e,0,l,!0);if(bt===c)return L(!1);if(i=bt,o=D(i),pe(C,e,c,r,i,o,t,!1)!==!1)return F(),e.insertBefore(c,bt),$=e,W(),L(!0)}else if(i.parentNode===e){o=D(i);var K=0,Et,Gt=c.parentNode!==e,z=!An(c.animated&&c.toRect||r,i.animated&&i.toRect||o,g),Zt=g?"top":"left",st=Li(i,"top","top")||Li(c,"top","top"),qt=st?st.scrollTop:void 0;Lt!==i&&(Et=o[Zt],Yt=!1,le=!z&&l.invertSwap||Gt),K=Hn(t,i,o,g,z?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,le,Lt===i);var it;if(K!==0){var _t=j(c);do _t-=K,it=$.children[_t];while(it&&(m(it,"display")==="none"||it===b))}if(K===0||it===i)return L(!1);Lt=i,jt=K;var Kt=i.nextElementSibling,lt=!1;lt=K===1;var ve=pe(C,e,c,r,i,o,t,lt);if(ve!==!1)return(ve===1||ve===-1)&&(lt=ve===1),Ve=!0,setTimeout(Tn,30),F(),lt&&!Kt?e.appendChild(c):i.parentNode.insertBefore(c,lt?Kt:i),st&&Pi(st,0,qt-st.scrollTop),$=c.parentNode,Et!==void 0&&!le&&(de=Math.abs(Et-D(i)[Zt])),W(),L(!0)}if(e.contains(c))return L(!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",yt),E(document,"mousemove",yt),E(document,"touchmove",yt)},_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(R=j(c),at=j(c,i.draggable),N("drop",this,{evt:t}),$=c&&c.parentNode,R=j(c),at=j(c,i.draggable),v.eventCanceled){this._nulling();return}Dt=!1,le=!1,Yt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Re(this.cloneId),Re(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Bt&&m(document.body,"user-select",""),m(c,"transform",""),t&&(zt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),(C===$||I&&I.lastPutMode!=="clone")&&A&&A.parentNode&&A.parentNode.removeChild(A),c&&(this.nativeDraggable&&E(c,"dragend",this),Be(c),c.style["will-change"]="",zt&&!Dt&&V(c,I?I.options.ghostClass:this.options.ghostClass,!1),V(c,this.options.chosenClass,!1),M({sortable:this,name:"unchoose",toEl:$,newIndex:null,newDraggableIndex:null,originalEvent:t}),C!==$?(R>=0&&(M({rootEl:$,name:"add",toEl:$,fromEl:C,originalEvent:t}),M({sortable:this,name:"remove",toEl:$,originalEvent:t}),M({rootEl:$,name:"sort",toEl:$,fromEl:C,originalEvent:t}),M({sortable:this,name:"sort",toEl:$,originalEvent:t})),I&&I.save()):R!==Tt&&R>=0&&(M({sortable:this,name:"update",toEl:$,originalEvent:t}),M({sortable:this,name:"sort",toEl:$,originalEvent:t})),v.active&&((R==null||R===-1)&&(R=Tt,at=Ut),M({sortable:this,name:"end",toEl:$,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),C=c=$=b=mt=A=re=ot=vt=X=zt=R=at=Tt=Ut=Lt=jt=I=oe=v.dragged=v.ghost=v.clone=v.active=null,ue.forEach(function(t){t.checked=!0}),ue.length=Me=ke=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),On(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,r=0,o=i.length,a=this.options;r<o;r++)e=i[r],Z(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Pn(e));return t},sort:function(t,e){var i={},r=this.el;this.toArray().forEach(function(o,a){var l=r.children[a];Z(l,this.options.draggable,r,!1)&&(i[o]=l)},this),e&&this.captureAnimationState(),t.forEach(function(o){i[o]&&(r.removeChild(i[o]),r.appendChild(i[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return Z(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var r=Ft.modifyOption(this,t,e);typeof r<"u"?i[t]=r:i[t]=e,t==="group"&&Fi(i)},destroy:function(){N("destroy",this);var t=this.el;t[B]=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(!ot){if(N("hideClone",this),v.eventCanceled)return;m(A,"display","none"),this.options.removeCloneOnHide&&A.parentNode&&A.parentNode.removeChild(A),ot=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ot){if(N("showClone",this),v.eventCanceled)return;c.parentNode==C&&!this.options.group.revertClone?C.insertBefore(A,c):mt?C.insertBefore(A,mt):C.appendChild(A),this.options.group.revertClone&&this.animate(c,A),m(A,"display",""),ot=!1}}};function On(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function pe(n,t,e,i,r,o,a,l){var s,d=n[B],h=d.options.onMove,u;return window.CustomEvent&&!et&&!Vt?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=n,s.dragged=e,s.draggedRect=i,s.related=r||t,s.relatedRect=o||D(t),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),h&&(u=h.call(d,s,a)),u}function Be(n){n.draggable=!1}function Tn(){Ve=!1}function Dn(n,t,e){var i=D(St(e.el,0,e.options,!0)),r=10;return t?n.clientX<i.left-r||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-r||n.clientY<i.bottom&&n.clientX<i.left}function Ln(n,t,e){var i=D(He(e.el,e.options.draggable)),r=10;return t?n.clientX>i.right+r||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+r}function Hn(n,t,e,i,r,o,a,l){var s=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(!a){if(l&&de<d*r){if(!Yt&&(jt===1?s>h+d*o/2:s<u-d*o/2)&&(Yt=!0),Yt)p=!0;else if(jt===1?s<h+de:s>u-de)return-jt}else if(s>h+d*(1-r)/2&&s<u-d*(1-r)/2)return In(t)}return p=p||a,p&&(s<h+d*o/2||s>u-d*o/2)?s>h+d/2?1:-1:0}function In(n){return j(c)<j(n)?1:-1}function Pn(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 Mn(n){ue.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&ue.push(i)}}function fe(n){return setTimeout(n,0)}function Re(n){return clearTimeout(n)}ce&&x(document,"touchmove",function(n){(v.active||Dt)&&n.cancelable&&n.preventDefault()}),v.utils={on:x,off:E,css:m,find:Di,is:function(t,e){return!!Z(t,e,t,!1)},extend:vn,throttle:Ii,closest:Z,toggleClass:V,clone:Mi,index:j,nextTick:fe,cancelNextTick:Re,detectDirection:Ri,getChild:St},v.get=function(n){return n[B]},v.mount=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(v.utils=G(G({},v.utils),i.utils)),Ft.mount(i)})},v.create=function(n,t){return new v(n,t)},v.version=fn;var T=[],Xt,Fe,Ue=!1,ze,je,ge,Wt;function kn(){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?x(document,"dragover",this._handleAutoScroll):this.options.supportPointer?x(document,"pointermove",this._handleFallbackAutoScroll):i.touches?x(document,"touchmove",this._handleFallbackAutoScroll):x(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)),ji(),me(),yn()},nulling:function(){ge=Fe=Xt=Ue=Wt=ze=je=null,T.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){var r=this,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(o,a);if(ge=e,i||this.options.forceAutoScrollFallback||Vt||et||Bt){Ye(e,this.options,l,i);var s=rt(l,!0);Ue&&(!Wt||o!==ze||a!==je)&&(Wt&&ji(),Wt=setInterval(function(){var d=rt(document.elementFromPoint(o,a),!0);d!==s&&(s=d,me()),Ye(e,r.options,d,i)},10),ze=o,je=a)}else{if(!this.options.bubbleScroll||rt(l,!0)===q()){me();return}Ye(e,this.options,rt(l,!1),!1)}}},J(n,{pluginName:"scroll",initializeByDefault:!0})}function me(){T.forEach(function(n){clearInterval(n.pid)}),T=[]}function ji(){clearInterval(Wt)}var Ye=Ii(function(n,t,e,i){if(t.scroll){var r=(n.touches?n.touches[0]:n).clientX,o=(n.touches?n.touches[0]:n).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,s=q(),d=!1,h;Fe!==e&&(Fe=e,me(),Xt=t.scroll,h=t.scrollFn,Xt===!0&&(Xt=rt(e,!0)));var u=0,p=Xt;do{var g=p,f=D(g),y=f.top,O=f.bottom,F=f.left,L=f.right,W=f.width,U=f.height,bt=void 0,K=void 0,Et=g.scrollWidth,Gt=g.scrollHeight,z=m(g),Zt=g.scrollLeft,st=g.scrollTop;g===s?(bt=W<Et&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(bt=W<Et&&(z.overflowX==="auto"||z.overflowX==="scroll"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"));var qt=bt&&(Math.abs(L-r)<=a&&Zt+W<Et)-(Math.abs(F-r)<=a&&!!Zt),it=K&&(Math.abs(O-o)<=a&&st+U<Gt)-(Math.abs(y-o)<=a&&!!st);if(!T[u])for(var _t=0;_t<=u;_t++)T[_t]||(T[_t]={});(T[u].vx!=qt||T[u].vy!=it||T[u].el!==g)&&(T[u].el=g,T[u].vx=qt,T[u].vy=it,clearInterval(T[u].pid),(qt!=0||it!=0)&&(d=!0,T[u].pid=setInterval(function(){i&&this.layer===0&&v.active._onTouchMove(ge);var Kt=T[this.layer].vy?T[this.layer].vy*l:0,lt=T[this.layer].vx?T[this.layer].vx*l:0;typeof h=="function"&&h.call(v.dragged.parentNode[B],lt,Kt,n,ge,T[this.layer].el)!=="continue"||Pi(T[this.layer].el,lt,Kt)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==s&&(p=rt(p,!1)));Ue=d}},30),Yi=function(t){var e=t.originalEvent,i=t.putSortable,r=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var d=i||o;l();var h=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(h.clientX,h.clientY);s(),d&&!d.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:i}))}};function Xe(){}Xe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var r=St(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:Yi},J(Xe,{pluginName:"revertOnSpill"});function We(){}We.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,r=i||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:Yi},J(We,{pluginName:"removeOnSpill"}),v.mount(new kn),v.mount(We,Xe);const Xi=`
|
|
60
|
+
*/function Ci(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),e.push.apply(e,i)}return e}function G(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Ci(Object(e),!0).forEach(function(i){cn(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Ci(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function ie(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ie=function(t){return typeof t}:ie=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(n)}function cn(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function J(){return J=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},J.apply(this,arguments)}function hn(n,t){if(n==null)return{};var e={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(e[r]=n[r]);return e}function pn(n,t){if(n==null)return{};var e=hn(n,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var fn="1.15.0";function tt(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var et=tt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vt=tt(/Edge/i),Ai=tt(/firefox/i),Bt=tt(/safari/i)&&!tt(/chrome/i)&&!tt(/android/i),$i=tt(/iP(ad|od|hone)/i),Si=tt(/chrome/i)&&tt(/android/i),Ti={capture:!1,passive:!1};function w(n,t,e){n.addEventListener(t,e,!et&&Ti)}function E(n,t,e){n.removeEventListener(t,e,!et&&Ti)}function ne(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 gn(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Z(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&ne(n,t):ne(n,t))||i&&n===e)return n;if(n===e)break}while(n=gn(n))}return null}var Di=/\s+/g;function V(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(Di," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Di," ")}}function m(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 At(n,t){var e="";if(typeof n=="string")e=n;else do{var i=m(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function Oi(n,t,e){if(n){var i=n.getElementsByTagName(t),r=0,o=i.length;if(e)for(;r<o;r++)e(i[r],r);return i}return[]}function q(){var n=document.scrollingElement;return n||document.documentElement}function O(n,t,e,i,r){if(!(!n.getBoundingClientRect&&n!==window)){var o,a,d,l,s,c,u;if(n!==window&&n.parentNode&&n!==q()?(o=n.getBoundingClientRect(),a=o.top,d=o.left,l=o.bottom,s=o.right,c=o.height,u=o.width):(a=0,d=0,l=window.innerHeight,s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||e)&&n!==window&&(r=r||n.parentNode,!et))do if(r&&r.getBoundingClientRect&&(m(r,"transform")!=="none"||e&&m(r,"position")!=="static")){var p=r.getBoundingClientRect();a-=p.top+parseInt(m(r,"border-top-width")),d-=p.left+parseInt(m(r,"border-left-width")),l=a+o.height,s=d+o.width;break}while(r=r.parentNode);if(i&&n!==window){var g=At(r||n),f=g&&g.a,y=g&&g.d;g&&(a/=y,d/=f,u/=f,c/=y,l=a+c,s=d+u)}return{top:a,left:d,bottom:l,right:s,width:u,height:c}}}function Li(n,t,e){for(var i=rt(n,!0),r=O(n)[t];i;){var o=O(i)[e],a=void 0;if(e==="top"||e==="left"?a=r>=o:a=r<=o,!a)return i;if(i===q())break;i=rt(i,!1)}return!1}function $t(n,t,e,i){for(var r=0,o=0,a=n.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==v.ghost&&(i||a[o]!==v.dragged)&&Z(a[o],e.draggable,n,!1)){if(r===t)return a[o];r++}o++}return null}function He(n,t){for(var e=n.lastElementChild;e&&(e===v.ghost||m(e,"display")==="none"||t&&!ne(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!==v.clone&&(!t||ne(n,t))&&e++;return e}function Hi(n){var t=0,e=0,i=q();if(n)do{var r=At(n),o=r.a,a=r.d;t+=n.scrollLeft*o,e+=n.scrollTop*a}while(n!==i&&(n=n.parentNode));return[t,e]}function mn(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 rt(n,t){if(!n||!n.getBoundingClientRect)return q();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=m(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return q();if(i||t)return e;i=!0}}while(e=e.parentNode);return q()}function vn(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Ie(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 Rt;function Ii(n,t){return function(){if(!Rt){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),Rt=setTimeout(function(){Rt=void 0},t)}}}function yn(){clearTimeout(Rt),Rt=void 0}function Mi(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function Pi(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 B="Sortable"+new Date().getTime();function bn(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(r){if(!(m(r,"display")==="none"||r===v.ghost)){n.push({target:r,rect:O(r)});var o=G({},n[n.length-1].rect);if(r.thisAnimationDuration){var a=At(r,!0);a&&(o.top-=a.f,o.left-=a.e)}r.fromRect=o}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(mn(n,{target:i}),1)},animateAll:function(i){var r=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var o=!1,a=0;n.forEach(function(d){var l=0,s=d.target,c=s.fromRect,u=O(s),p=s.prevFromRect,g=s.prevToRect,f=d.rect,y=At(s,!0);y&&(u.top-=y.f,u.left-=y.e),s.toRect=u,s.thisAnimationDuration&&Ie(p,u)&&!Ie(c,u)&&(f.top-u.top)/(f.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=_n(f,p,g,r.options)),Ie(u,c)||(s.prevFromRect=c,s.prevToRect=u,l||(l=r.options.animation),r.animate(s,f,u,l)),l&&(o=!0,a=Math.max(a,l),clearTimeout(s.animationResetTimer),s.animationResetTimer=setTimeout(function(){s.animationTime=0,s.prevFromRect=null,s.fromRect=null,s.prevToRect=null,s.thisAnimationDuration=null},l),s.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof i=="function"&&i()},a):typeof i=="function"&&i(),n=[]},animate:function(i,r,o,a){if(a){m(i,"transition",""),m(i,"transform","");var d=At(this.el),l=d&&d.a,s=d&&d.d,c=(r.left-o.left)/(l||1),u=(r.top-o.top)/(s||1);i.animatingX=!!c,i.animatingY=!!u,m(i,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=En(i),m(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),m(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){m(i,"transition",""),m(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},a)}}}}function En(n){return n.offsetWidth}function _n(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 St=[],Me={initializeByDefault:!0},Ft={mount:function(t){for(var e in Me)Me.hasOwnProperty(e)&&!(e in t)&&(t[e]=Me[e]);St.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),St.push(t)},pluginEvent:function(t,e,i){var r=this;this.eventCanceled=!1,i.cancel=function(){r.eventCanceled=!0};var o=t+"Global";St.forEach(function(a){e[a.pluginName]&&(e[a.pluginName][o]&&e[a.pluginName][o](G({sortable:e},i)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](G({sortable:e},i)))})},initializePlugins:function(t,e,i,r){St.forEach(function(d){var l=d.pluginName;if(!(!t.options[l]&&!d.initializeByDefault)){var s=new d(t,e,t.options);s.sortable=t,s.options=t.options,t[l]=s,J(i,s.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,e){var i={};return St.forEach(function(r){typeof r.eventProperties=="function"&&J(i,r.eventProperties.call(e[r.pluginName],t))}),i},modifyOption:function(t,e,i){var r;return St.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],i))}),r}};function wn(n){var t=n.sortable,e=n.rootEl,i=n.name,r=n.targetEl,o=n.cloneEl,a=n.toEl,d=n.fromEl,l=n.oldIndex,s=n.newIndex,c=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,g=n.putSortable,f=n.extraEventProperties;if(t=t||e&&e[B],!!t){var y,S=t.options,F="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!et&&!Vt?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=a||e,y.from=d||e,y.item=r||e,y.clone=o,y.oldIndex=l,y.newIndex=s,y.oldDraggableIndex=c,y.newDraggableIndex=u,y.originalEvent=p,y.pullMode=g?g.lastPutMode:void 0;var L=G(G({},f),Ft.getEventProperties(i,t));for(var W in L)y[W]=L[W];e&&e.dispatchEvent(y),S[F]&&S[F].call(t,y)}}var xn=["evt"],N=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.evt,o=pn(i,xn);Ft.pluginEvent.bind(v)(t,e,G({dragEl:h,parentEl:$,ghostEl:b,rootEl:C,nextEl:gt,lastDownEl:re,cloneEl:A,cloneHidden:ot,dragStarted:zt,putSortable:I,activeSortable:v.active,originalEvent:r,oldIndex:Tt,oldDraggableIndex:Ut,newIndex:R,newDraggableIndex:at,hideGhostForTarget:Ui,unhideGhostForTarget:zi,cloneNowHidden:function(){ot=!0},cloneNowShown:function(){ot=!1},dispatchSortableEvent:function(d){P({sortable:e,name:d,originalEvent:r})}},o))};function P(n){wn(G({putSortable:I,cloneEl:A,targetEl:h,rootEl:C,oldIndex:Tt,oldDraggableIndex:Ut,newIndex:R,newDraggableIndex:at},n))}var h,$,b,C,gt,re,A,ot,Tt,R,Ut,at,oe,I,Dt=!1,ae=!1,le=[],mt,X,Pe,ke,ki,Ni,zt,Ot,jt,Yt=!1,se=!1,de,M,Ne=[],Ve=!1,ue=[],ce=typeof document<"u",he=$i,Vi=Vt||et?"cssFloat":"float",Cn=ce&&!Si&&!$i&&"draggable"in document.createElement("div"),Bi=function(){if(ce){if(et)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Ri=function(t,e){var i=m(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=$t(t,0,e),a=$t(t,1,e),d=o&&m(o),l=a&&m(a),s=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+O(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(a).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&d.float&&d.float!=="none"){var u=d.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return o&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||s>=r&&i[Vi]==="none"||a&&i[Vi]==="none"&&s+c>r)?"vertical":"horizontal"},An=function(t,e,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,d=i?e.left:e.top,l=i?e.right:e.bottom,s=i?e.width:e.height;return r===d||o===l||r+a/2===d+s/2},$n=function(t,e){var i;return le.some(function(r){var o=r[B].options.emptyInsertThreshold;if(!(!o||He(r))){var a=O(r),d=t>=a.left-o&&t<=a.right+o,l=e>=a.top-o&&e<=a.bottom+o;if(d&&l)return i=r}}),i},Fi=function(t){function e(o,a){return function(d,l,s,c){var u=d.options.group.name&&l.options.group.name&&d.options.group.name===l.options.group.name;if(o==null&&(a||u))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return e(o(d,l,s,c),a)(d,l,s,c);var p=(a?d:l).options.group.name;return o===!0||typeof o=="string"&&o===p||o.join&&o.indexOf(p)>-1}}var i={},r=t.group;(!r||ie(r)!="object")&&(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},Ui=function(){!Bi&&b&&m(b,"display","none")},zi=function(){!Bi&&b&&m(b,"display","")};ce&&!Si&&document.addEventListener("click",function(n){if(ae)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),ae=!1,!1},!0);var vt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=$n(t.clientX,t.clientY);if(e){var i={};for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[B]._onDragOver(i)}}},Sn=function(t){h&&h.parentNode[B]._isOutsideThisEl(t.target)};function v(n,t){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=t=J({},t),n[B]=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 Ri(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,d){a.setData("Text",d.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:v.supportPointer!==!1&&"PointerEvent"in window&&!Bt,emptyInsertThreshold:5};Ft.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Fi(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:Cn,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)),le.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),J(this,bn())}v.prototype={constructor:v,_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,r=this.options,o=r.preventOnFilter,a=t.type,d=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(d||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=r.filter;if(Pn(i),!h&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&Bt&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Z(l,r.draggable,i,!1),!(l&&l.animated)&&re!==l)){if(Tt=j(l),Ut=j(l,r.draggable),typeof c=="function"){if(c.call(this,t,l,this)){P({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:i,fromEl:i}),N("filter",e,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=Z(s,u.trim(),i,!1),u)return P({sortable:e,rootEl:u,name:"filter",targetEl:l,fromEl:i,toEl:i}),N("filter",e,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!Z(s,r.handle,i,!1)||this._prepareDragStart(t,d,l)}}},_prepareDragStart:function(t,e,i){var r=this,o=r.el,a=r.options,d=o.ownerDocument,l;if(i&&!h&&i.parentNode===o){var s=O(i);if(C=o,h=i,$=h.parentNode,gt=h.nextSibling,re=i,oe=a.group,v.dragged=h,mt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},ki=mt.clientX-s.left,Ni=mt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(N("delayEnded",r,{evt:t}),v.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Ai&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(t,e),P({sortable:r,name:"choose",originalEvent:t}),V(h,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){Oi(h,c.trim(),Be)}),w(d,"dragover",vt),w(d,"mousemove",vt),w(d,"touchmove",vt),w(d,"mouseup",r._onDrop),w(d,"touchend",r._onDrop),w(d,"touchcancel",r._onDrop),Ai&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),N("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Vt||et))){if(v.eventCanceled){this._onDrop();return}w(d,"mouseup",r._disableDelayedDrag),w(d,"touchend",r._disableDelayedDrag),w(d,"touchcancel",r._disableDelayedDrag),w(d,"mousemove",r._delayedDragTouchMoveHandler),w(d,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&w(d,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Be(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(C,"dragstart",this._onDragStart));try{document.selection?fe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Dt=!1,C&&h){N("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Sn);var i=this.options;!t&&V(h,i.dragClass,!1),V(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),P({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(X){this._lastX=X.clientX,this._lastY=X.clientY,Ui();for(var t=document.elementFromPoint(X.clientX,X.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(X.clientX,X.clientY),t!==e);)e=t;if(h.parentNode[B]._isOutsideThisEl(t),e)do{if(e[B]){var i=void 0;if(i=e[B]._onDragOver({clientX:X.clientX,clientY:X.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);zi()}},_onTouchMove:function(t){if(mt){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=b&&At(b,!0),d=b&&a&&a.a,l=b&&a&&a.d,s=he&&M&&Hi(M),c=(o.clientX-mt.clientX+r.x)/(d||1)+(s?s[0]-Ne[0]:0)/(d||1),u=(o.clientY-mt.clientY+r.y)/(l||1)+(s?s[1]-Ne[1]:0)/(l||1);if(!v.active&&!Dt){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(b){a?(a.e+=c-(Pe||0),a.f+=u-(ke||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");m(b,"webkitTransform",p),m(b,"mozTransform",p),m(b,"msTransform",p),m(b,"transform",p),Pe=c,ke=u,X=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!b){var t=this.options.fallbackOnBody?document.body:C,e=O(h,!0,he,!0,t),i=this.options;if(he){for(M=t;m(M,"position")==="static"&&m(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(),Ne=Hi(M)}b=h.cloneNode(!0),V(b,i.ghostClass,!1),V(b,i.fallbackClass,!0),V(b,i.dragClass,!0),m(b,"transition",""),m(b,"transform",""),m(b,"box-sizing","border-box"),m(b,"margin",0),m(b,"top",e.top),m(b,"left",e.left),m(b,"width",e.width),m(b,"height",e.height),m(b,"opacity","0.8"),m(b,"position",he?"absolute":"fixed"),m(b,"zIndex","100000"),m(b,"pointerEvents","none"),v.ghost=b,t.appendChild(b),m(b,"transform-origin",ki/parseInt(b.style.width)*100+"% "+Ni/parseInt(b.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,r=t.dataTransfer,o=i.options;if(N("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}N("setupClone",this),v.eventCanceled||(A=Pi(h),A.removeAttribute("id"),A.draggable=!1,A.style["will-change"]="",this._hideClone(),V(A,this.options.chosenClass,!1),v.clone=A),i.cloneId=fe(function(){N("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||C.insertBefore(A,h),i._hideClone(),P({sortable:i,name:"clone"}))}),!e&&V(h,o.dragClass,!0),e?(ae=!0,i._loopId=setInterval(i._emulateDragOver,50)):(E(document,"mouseup",i._onDrop),E(document,"touchend",i._onDrop),E(document,"touchcancel",i._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(i,r,h)),w(document,"drop",i),m(h,"transform","translateZ(0)")),Dt=!0,i._dragStartId=fe(i._dragStarted.bind(i,e,t)),w(document,"selectstart",i),zt=!0,Bt&&m(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,r,o,a,d=this.options,l=d.group,s=v.active,c=oe===l,u=d.sort,p=I||s,g,f=this,y=!1;if(Ve)return;function S(Qt,Bn){N(Qt,f,G({evt:t,isOwner:c,axis:g?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:u,fromSortable:p,target:i,completed:L,onMove:function(Gi,Rn){return pe(C,e,h,r,Gi,O(Gi),t,Rn)},changed:W},Bn))}function F(){S("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function L(Qt){return S("dragOverCompleted",{insertion:Qt}),Qt&&(c?s._hideClone():s._showClone(f),f!==p&&(V(h,I?I.options.ghostClass:s.options.ghostClass,!1),V(h,d.ghostClass,!0)),I!==f&&f!==v.active?I=f:f===v.active&&I&&(I=null),p===f&&(f._ignoreWhileAnimating=i),f.animateAll(function(){S("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===e&&!i.animated)&&(Ot=null),!d.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[B]._isOutsideThisEl(t.target),!Qt&&vt(t)),!d.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function W(){R=j(h),at=j(h,d.draggable),P({sortable:f,name:"change",toEl:e,newIndex:R,newDraggableIndex:at,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=Z(i,d.draggable,e,!0),S("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i)return L(!1);if(ae=!1,s&&!d.disabled&&(c?u||(a=$!==C):I===this||(this.lastPutMode=oe.checkPull(this,s,h,t))&&l.checkPut(this,s,h,t))){if(g=this._getDirection(t,i)==="vertical",r=O(h),S("dragOverValid"),v.eventCanceled)return y;if(a)return $=C,F(),this._hideClone(),S("revert"),v.eventCanceled||(gt?C.insertBefore(h,gt):C.appendChild(h)),L(!0);var U=He(e,d.draggable);if(!U||Ln(t,g,this)&&!U.animated){if(U===h)return L(!1);if(U&&e===t.target&&(i=U),i&&(o=O(i)),pe(C,e,h,r,i,o,t,!!i)!==!1)return F(),U&&U.nextSibling?e.insertBefore(h,U.nextSibling):e.appendChild(h),$=e,W(),L(!0)}else if(U&&On(t,g,this)){var yt=$t(e,0,d,!0);if(yt===h)return L(!1);if(i=yt,o=O(i),pe(C,e,h,r,i,o,t,!1)!==!1)return F(),e.insertBefore(h,yt),$=e,W(),L(!0)}else if(i.parentNode===e){o=O(i);var K=0,bt,Gt=h.parentNode!==e,z=!An(h.animated&&h.toRect||r,i.animated&&i.toRect||o,g),Zt=g?"top":"left",lt=Li(i,"top","top")||Li(h,"top","top"),qt=lt?lt.scrollTop:void 0;Ot!==i&&(bt=o[Zt],Yt=!1,se=!z&&d.invertSwap||Gt),K=Hn(t,i,o,g,z?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,se,Ot===i);var it;if(K!==0){var Et=j(h);do Et-=K,it=$.children[Et];while(it&&(m(it,"display")==="none"||it===b))}if(K===0||it===i)return L(!1);Ot=i,jt=K;var Kt=i.nextElementSibling,st=!1;st=K===1;var ve=pe(C,e,h,r,i,o,t,st);if(ve!==!1)return(ve===1||ve===-1)&&(st=ve===1),Ve=!0,setTimeout(Dn,30),F(),st&&!Kt?e.appendChild(h):i.parentNode.insertBefore(h,st?Kt:i),lt&&Mi(lt,0,qt-lt.scrollTop),$=h.parentNode,bt!==void 0&&!se&&(de=Math.abs(bt-O(i)[Zt])),W(),L(!0)}if(e.contains(h))return L(!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",vt),E(document,"mousemove",vt),E(document,"touchmove",vt)},_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(R=j(h),at=j(h,i.draggable),N("drop",this,{evt:t}),$=h&&h.parentNode,R=j(h),at=j(h,i.draggable),v.eventCanceled){this._nulling();return}Dt=!1,se=!1,Yt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Re(this.cloneId),Re(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Bt&&m(document.body,"user-select",""),m(h,"transform",""),t&&(zt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),(C===$||I&&I.lastPutMode!=="clone")&&A&&A.parentNode&&A.parentNode.removeChild(A),h&&(this.nativeDraggable&&E(h,"dragend",this),Be(h),h.style["will-change"]="",zt&&!Dt&&V(h,I?I.options.ghostClass:this.options.ghostClass,!1),V(h,this.options.chosenClass,!1),P({sortable:this,name:"unchoose",toEl:$,newIndex:null,newDraggableIndex:null,originalEvent:t}),C!==$?(R>=0&&(P({rootEl:$,name:"add",toEl:$,fromEl:C,originalEvent:t}),P({sortable:this,name:"remove",toEl:$,originalEvent:t}),P({rootEl:$,name:"sort",toEl:$,fromEl:C,originalEvent:t}),P({sortable:this,name:"sort",toEl:$,originalEvent:t})),I&&I.save()):R!==Tt&&R>=0&&(P({sortable:this,name:"update",toEl:$,originalEvent:t}),P({sortable:this,name:"sort",toEl:$,originalEvent:t})),v.active&&((R==null||R===-1)&&(R=Tt,at=Ut),P({sortable:this,name:"end",toEl:$,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),C=h=$=b=gt=A=re=ot=mt=X=zt=R=at=Tt=Ut=Ot=jt=I=oe=v.dragged=v.ghost=v.clone=v.active=null,ue.forEach(function(t){t.checked=!0}),ue.length=Pe=ke=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Tn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,r=0,o=i.length,a=this.options;r<o;r++)e=i[r],Z(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Mn(e));return t},sort:function(t,e){var i={},r=this.el;this.toArray().forEach(function(o,a){var d=r.children[a];Z(d,this.options.draggable,r,!1)&&(i[o]=d)},this),e&&this.captureAnimationState(),t.forEach(function(o){i[o]&&(r.removeChild(i[o]),r.appendChild(i[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return Z(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var r=Ft.modifyOption(this,t,e);typeof r<"u"?i[t]=r:i[t]=e,t==="group"&&Fi(i)},destroy:function(){N("destroy",this);var t=this.el;t[B]=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(),le.splice(le.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ot){if(N("hideClone",this),v.eventCanceled)return;m(A,"display","none"),this.options.removeCloneOnHide&&A.parentNode&&A.parentNode.removeChild(A),ot=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ot){if(N("showClone",this),v.eventCanceled)return;h.parentNode==C&&!this.options.group.revertClone?C.insertBefore(A,h):gt?C.insertBefore(A,gt):C.appendChild(A),this.options.group.revertClone&&this.animate(h,A),m(A,"display",""),ot=!1}}};function Tn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function pe(n,t,e,i,r,o,a,d){var l,s=n[B],c=s.options.onMove,u;return window.CustomEvent&&!et&&!Vt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=n,l.dragged=e,l.draggedRect=i,l.related=r||t,l.relatedRect=o||O(t),l.willInsertAfter=d,l.originalEvent=a,n.dispatchEvent(l),c&&(u=c.call(s,l,a)),u}function Be(n){n.draggable=!1}function Dn(){Ve=!1}function On(n,t,e){var i=O($t(e.el,0,e.options,!0)),r=10;return t?n.clientX<i.left-r||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-r||n.clientY<i.bottom&&n.clientX<i.left}function Ln(n,t,e){var i=O(He(e.el,e.options.draggable)),r=10;return t?n.clientX>i.right+r||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+r}function Hn(n,t,e,i,r,o,a,d){var l=i?n.clientY:n.clientX,s=i?e.height:e.width,c=i?e.top:e.left,u=i?e.bottom:e.right,p=!1;if(!a){if(d&&de<s*r){if(!Yt&&(jt===1?l>c+s*o/2:l<u-s*o/2)&&(Yt=!0),Yt)p=!0;else if(jt===1?l<c+de:l>u-de)return-jt}else if(l>c+s*(1-r)/2&&l<u-s*(1-r)/2)return In(t)}return p=p||a,p&&(l<c+s*o/2||l>u-s*o/2)?l>c+s/2?1:-1:0}function In(n){return j(h)<j(n)?1:-1}function Mn(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 Pn(n){ue.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&ue.push(i)}}function fe(n){return setTimeout(n,0)}function Re(n){return clearTimeout(n)}ce&&w(document,"touchmove",function(n){(v.active||Dt)&&n.cancelable&&n.preventDefault()}),v.utils={on:w,off:E,css:m,find:Oi,is:function(t,e){return!!Z(t,e,t,!1)},extend:vn,throttle:Ii,closest:Z,toggleClass:V,clone:Pi,index:j,nextTick:fe,cancelNextTick:Re,detectDirection:Ri,getChild:$t},v.get=function(n){return n[B]},v.mount=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(v.utils=G(G({},v.utils),i.utils)),Ft.mount(i)})},v.create=function(n,t){return new v(n,t)},v.version=fn;var T=[],Xt,Fe,Ue=!1,ze,je,ge,Wt;function kn(){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)),ji(),me(),yn()},nulling:function(){ge=Fe=Xt=Ue=Wt=ze=je=null,T.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){var r=this,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,d=document.elementFromPoint(o,a);if(ge=e,i||this.options.forceAutoScrollFallback||Vt||et||Bt){Ye(e,this.options,d,i);var l=rt(d,!0);Ue&&(!Wt||o!==ze||a!==je)&&(Wt&&ji(),Wt=setInterval(function(){var s=rt(document.elementFromPoint(o,a),!0);s!==l&&(l=s,me()),Ye(e,r.options,s,i)},10),ze=o,je=a)}else{if(!this.options.bubbleScroll||rt(d,!0)===q()){me();return}Ye(e,this.options,rt(d,!1),!1)}}},J(n,{pluginName:"scroll",initializeByDefault:!0})}function me(){T.forEach(function(n){clearInterval(n.pid)}),T=[]}function ji(){clearInterval(Wt)}var Ye=Ii(function(n,t,e,i){if(t.scroll){var r=(n.touches?n.touches[0]:n).clientX,o=(n.touches?n.touches[0]:n).clientY,a=t.scrollSensitivity,d=t.scrollSpeed,l=q(),s=!1,c;Fe!==e&&(Fe=e,me(),Xt=t.scroll,c=t.scrollFn,Xt===!0&&(Xt=rt(e,!0)));var u=0,p=Xt;do{var g=p,f=O(g),y=f.top,S=f.bottom,F=f.left,L=f.right,W=f.width,U=f.height,yt=void 0,K=void 0,bt=g.scrollWidth,Gt=g.scrollHeight,z=m(g),Zt=g.scrollLeft,lt=g.scrollTop;g===l?(yt=W<bt&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(yt=W<bt&&(z.overflowX==="auto"||z.overflowX==="scroll"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"));var qt=yt&&(Math.abs(L-r)<=a&&Zt+W<bt)-(Math.abs(F-r)<=a&&!!Zt),it=K&&(Math.abs(S-o)<=a&<+U<Gt)-(Math.abs(y-o)<=a&&!!lt);if(!T[u])for(var Et=0;Et<=u;Et++)T[Et]||(T[Et]={});(T[u].vx!=qt||T[u].vy!=it||T[u].el!==g)&&(T[u].el=g,T[u].vx=qt,T[u].vy=it,clearInterval(T[u].pid),(qt!=0||it!=0)&&(s=!0,T[u].pid=setInterval(function(){i&&this.layer===0&&v.active._onTouchMove(ge);var Kt=T[this.layer].vy?T[this.layer].vy*d:0,st=T[this.layer].vx?T[this.layer].vx*d:0;typeof c=="function"&&c.call(v.dragged.parentNode[B],st,Kt,n,ge,T[this.layer].el)!=="continue"||Mi(T[this.layer].el,st,Kt)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=rt(p,!1)));Ue=s}},30),Yi=function(t){var e=t.originalEvent,i=t.putSortable,r=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,d=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=i||o;d();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:i}))}};function Xe(){}Xe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var r=$t(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:Yi},J(Xe,{pluginName:"revertOnSpill"});function We(){}We.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,r=i||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:Yi},J(We,{pluginName:"removeOnSpill"}),v.mount(new kn),v.mount(We,Xe);const Xi=`
|
|
61
61
|
:host {
|
|
62
62
|
display: block;
|
|
63
63
|
overflow-y: auto;
|
|
@@ -239,12 +239,20 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
239
239
|
|
|
240
240
|
input[type=radio] {
|
|
241
241
|
appearance: none;
|
|
242
|
+
-webkit-appearance: none;
|
|
242
243
|
margin: 0;
|
|
243
244
|
cursor: pointer;
|
|
244
245
|
display: flex;
|
|
245
246
|
flex-direction: row;
|
|
246
247
|
align-items: center;
|
|
248
|
+
width: 24px;
|
|
249
|
+
height: 24px;
|
|
247
250
|
}
|
|
251
|
+
|
|
252
|
+
label span {
|
|
253
|
+
font-size: small;
|
|
254
|
+
}
|
|
255
|
+
|
|
248
256
|
input[type=radio]:after {
|
|
249
257
|
display: block;
|
|
250
258
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E");
|
|
@@ -260,11 +268,14 @@ input[type=radio]:checked:after {
|
|
|
260
268
|
|
|
261
269
|
input[type=checkbox] {
|
|
262
270
|
appearance: none;
|
|
271
|
+
-webkit-appearance: none;
|
|
263
272
|
margin: 0;
|
|
264
273
|
cursor: pointer;
|
|
265
274
|
display: flex;
|
|
266
275
|
flex-direction: row;
|
|
267
276
|
align-items: center;
|
|
277
|
+
width: 24px;
|
|
278
|
+
height: 24px;
|
|
268
279
|
}
|
|
269
280
|
input[type=checkbox]:after {
|
|
270
281
|
display: block;
|
|
@@ -289,7 +300,6 @@ summary > .layer {
|
|
|
289
300
|
|
|
290
301
|
ul[data-group] {
|
|
291
302
|
overflow-y: auto;
|
|
292
|
-
max-height: calc(var(--container-height) * 0.3);
|
|
293
303
|
}
|
|
294
304
|
|
|
295
305
|
[data-type=group] .title {
|
|
@@ -319,6 +329,24 @@ ul[data-group] {
|
|
|
319
329
|
margin-top: 9px;
|
|
320
330
|
}
|
|
321
331
|
|
|
332
|
+
button.delete {
|
|
333
|
+
height: 24px;
|
|
334
|
+
width: 32px;
|
|
335
|
+
padding: 0;
|
|
336
|
+
display: flex;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
font-size: 13px;
|
|
339
|
+
margin-left: 5%;
|
|
340
|
+
background: #fdd;
|
|
341
|
+
color: white;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
button.delete::before {
|
|
345
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a22' viewBox='0 0 24 24'%3E%3Ctitle%3Edelete-outline%3C/title%3E%3Cpath d='M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z' /%3E%3C/svg%3E");
|
|
346
|
+
height: 20px;
|
|
347
|
+
width: 20px;
|
|
348
|
+
}
|
|
349
|
+
|
|
322
350
|
label[for=optional] {
|
|
323
351
|
font-size: 21px;
|
|
324
352
|
font-weight: 400;
|
|
@@ -516,28 +544,28 @@ li.sortable-drag {
|
|
|
516
544
|
}
|
|
517
545
|
li.sortable-ghost {
|
|
518
546
|
}
|
|
519
|
-
`;var Nn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,
|
|
520
|
-
<details open="${
|
|
547
|
+
`;var Nn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,D=(n,t,e,i)=>{for(var r=i>1?void 0:i?Vn(t,e):t,o=n.length-1,a;o>=0;o--)(a=n[o])&&(r=(i?a(t,e,r):a(r))||r);return i&&r&&Nn(t,e,r),r};x.EOxLayerControl=class extends Ct{constructor(){super(...arguments),this.for="eox-map",this.layerIdentifier="id",this.layerTitle="title",this.sortBy="layerOrder",this.layerConfig=["opacity"],this.externalLayerConfig=void 0,this.filterLayers=(t,e,i)=>{let r=[];const o=(a,d,l)=>{r=[...r,...a.filter(c=>c.get(d)===l)];const s=a.filter(c=>c.getLayers);return s.length>0&&s.forEach(c=>o(c.getLayers().getArray(),d,l)),r};return o(t,e,i),r},this.findLayerById=(t,e)=>this.filterLayers(t,"id",e)[0],this.getLayerType=(t,e)=>{var i;return t.getLayers?"group":e.getInteractions().getArray().filter(r=>r.freehand_!==void 0).map(r=>{var o;return(o=r.source_)==null?void 0:o.ol_uid}).includes(t.getSource?(i=t.getSource())==null?void 0:i.ol_uid:void 0)?"draw":t.declutter_!==void 0?"vector":"raster"}}_updateControl(t){const e=(i,r)=>{i.forEach(o=>{r&&o.set("_group_id",r),o.get(this.layerIdentifier)||o.set(this.layerIdentifier,o.ol_uid),o.get(this.layerTitle)||o.set(this.layerTitle,`layer ${o.ol_uid}`),o.getLayers&&e(o.getLayers().getArray(),o.get("id")||o.ol_uid)})};e(t.getArray()),this.layerCollection=t,this.optionalLayerArray=this.filterLayers(t.getArray(),"layerControlOptional",!0)}_emitLayerconfig(t){const e={detail:{layer:t},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("layerconfig",e))}changeOpacity(t,e){t.setOpacity(e)}changeStyleProperty(t,e,i){t.updateStyleVariables({...t.style_,[e]:i})}preFilterLayers(t){return[...t].filter(e=>e.get("layerControlHide")!==!0&&e.get("layerControlOptional")!==!0)}toggleLayerVisibility(t,e){if(t.setVisible(!t.getVisible()),t.get("layerControlExclusive")){let i=[];e?i=this.findLayerById(this.layerCollection.getArray(),e).getLayers().getArray().filter(o=>o.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&o.get("layerControlExclusive")):i=this.layerCollection.getArray().filter(r=>r.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&r.get("layerControlExclusive")),i.forEach(r=>{r.setVisible(!1)}),this.requestUpdate()}}render(){var d;const t=document.querySelector(this.for);if(t&&(t.map?this.olMap=t.map:this.olMap=t),!this.olMap)return _;const e=this.olMap.getLayers();this._updateControl(e);const i=l=>{l.on("change:length",()=>{this._currentlySorting||setTimeout(()=>{this._updateControl(l)})})};i(e);const r=l=>{l.getArray().forEach(s=>{if(s.getLayers){const c=s.getLayers();i(c),r(c)}})};r(e);const o=(l,s,c)=>{var u;return H`
|
|
548
|
+
<details open="${l.get("layerControlExpanded")?!0:_}">
|
|
521
549
|
<summary>
|
|
522
550
|
<div class="layer">
|
|
523
551
|
<div class="left">
|
|
524
552
|
<input
|
|
525
|
-
type="${
|
|
526
|
-
.checked="${Le(
|
|
527
|
-
@click=${()=>{this.toggleLayerVisibility(
|
|
553
|
+
type="${l.get("layerControlExclusive")?"radio":"checkbox"}"
|
|
554
|
+
.checked="${Le(l.getVisible())}"
|
|
555
|
+
@click=${()=>{this.toggleLayerVisibility(l,s)}}
|
|
528
556
|
/>
|
|
529
557
|
<span class="title"
|
|
530
558
|
><span
|
|
531
|
-
>${
|
|
559
|
+
>${l.get(this.layerTitle)||`${l.get(this.layerIdentifier)}`}</span
|
|
532
560
|
>
|
|
533
561
|
</span>
|
|
534
562
|
</div>
|
|
535
563
|
<div class="right">
|
|
536
564
|
${this.sortBy==="layerOrder"&&!this.unstyled?H` <div
|
|
537
|
-
class="drag-handle ${
|
|
565
|
+
class="drag-handle ${l.get("layerControlDisable")?"disabled":""}"
|
|
538
566
|
>
|
|
539
567
|
<span>=</span>
|
|
540
|
-
</div>`:
|
|
568
|
+
</div>`:_}
|
|
541
569
|
</div>
|
|
542
570
|
</div>
|
|
543
571
|
</summary>
|
|
@@ -545,30 +573,31 @@ li.sortable-ghost {
|
|
|
545
573
|
<eox-layerconfig
|
|
546
574
|
.layerConfig="${this.layerConfig}"
|
|
547
575
|
.layerControl="${this}"
|
|
548
|
-
.layer=${
|
|
576
|
+
.layer=${l}
|
|
549
577
|
.external=${this.externalLayerConfig}
|
|
550
578
|
.unstyled="${this.unstyled}"
|
|
579
|
+
@removeLayer=${()=>{c.remove(l);const p=this.renderRoot.querySelector(`[data-layer='${l.get(this.layerIdentifier)}'`);p.parentNode.removeChild(p)}}
|
|
551
580
|
></eox-layerconfig>
|
|
552
|
-
`:
|
|
553
|
-
${this.externalLayerConfig&&((
|
|
554
|
-
<button @click=${()=>this._emitLayerconfig(
|
|
581
|
+
`:_}
|
|
582
|
+
${this.externalLayerConfig&&((u=l.style_)!=null&&u.color)?H`
|
|
583
|
+
<button @click=${()=>this._emitLayerconfig(l)}>
|
|
555
584
|
configure
|
|
556
585
|
</button>
|
|
557
|
-
`:
|
|
558
|
-
${
|
|
559
|
-
${
|
|
560
|
-
`:
|
|
586
|
+
`:_}
|
|
587
|
+
${l.getLayers?H`
|
|
588
|
+
${a(this.preFilterLayers([...l.getLayers().getArray()].reverse()),l.get(this.layerIdentifier),l.getLayers())}
|
|
589
|
+
`:_}
|
|
561
590
|
</details>
|
|
562
|
-
`},
|
|
563
|
-
<ul data-group="${
|
|
564
|
-
${
|
|
591
|
+
`},a=(l,s,c)=>H`
|
|
592
|
+
<ul data-group="${s??_}">
|
|
593
|
+
${Oe(l,u=>u.get(this.layerIdentifier),u=>{var p;return H`
|
|
565
594
|
<li
|
|
566
|
-
data-layer="${
|
|
567
|
-
data-disabled="${
|
|
568
|
-
data-type="${this.getLayerType(
|
|
569
|
-
data-layerconfig="${((
|
|
595
|
+
data-layer="${u.get(this.layerIdentifier)}"
|
|
596
|
+
data-disabled="${u.get("layerControlDisable")||_}"
|
|
597
|
+
data-type="${this.getLayerType(u,this.olMap)}"
|
|
598
|
+
data-layerconfig="${((p=this.layerConfig)==null?void 0:p.length)>0}"
|
|
570
599
|
>
|
|
571
|
-
${
|
|
600
|
+
${o(u,s,c)}
|
|
572
601
|
</li>
|
|
573
602
|
`})}
|
|
574
603
|
</ul>
|
|
@@ -579,31 +608,31 @@ li.sortable-ghost {
|
|
|
579
608
|
</style>
|
|
580
609
|
<div>
|
|
581
610
|
<slot></slot>
|
|
582
|
-
${this.layerCollection.getArray().length>10?H`<input type="text" placeholder="Find layer" />`:
|
|
611
|
+
${this.layerCollection.getArray().length>10?H`<input type="text" placeholder="Find layer" />`:_}
|
|
583
612
|
<div class="layers">
|
|
584
|
-
${
|
|
613
|
+
${a(this.preFilterLayers(e.getArray()),null,this.layerCollection)}
|
|
585
614
|
</div>
|
|
586
|
-
${xi(((
|
|
615
|
+
${xi(((d=this.optionalLayerArray)==null?void 0:d.length)>0,()=>H`
|
|
587
616
|
<label for="optional">Optional layers</label>
|
|
588
617
|
|
|
589
618
|
<select name="optional" data-cy="optionalLayers">
|
|
590
619
|
<option disabled selected value>
|
|
591
620
|
-- select an optional layer to add --
|
|
592
621
|
</option>
|
|
593
|
-
${this.optionalLayerArray.map(
|
|
594
|
-
<option value="${
|
|
595
|
-
${
|
|
622
|
+
${this.optionalLayerArray.map(l=>H`
|
|
623
|
+
<option value="${l.get(this.layerIdentifier)}">
|
|
624
|
+
${l.get(this.layerTitle)||`layer ${l.get(this.layerIdentifier)}`}
|
|
596
625
|
</option>
|
|
597
626
|
`)}
|
|
598
627
|
</select>
|
|
599
628
|
<button
|
|
600
|
-
@click="${()=>{const
|
|
629
|
+
@click="${()=>{const l=this.optionalLayerArray.find(s=>s.get(this.layerIdentifier)===this.shadowRoot.querySelector("select[name=optional]").value);if(l.get("_group_id")){const s=this.findLayerById(this.layerCollection.getArray(),l.get("_group_id"));s.getLayers().remove(l),s.getLayers().insertAt(s.getLayers().getLength(),l)}else this.layerCollection.remove(l),this.layerCollection.insertAt(this.layerCollection.getLength(),l);l.set("layerControlOptional",!1),l.setVisible(!0)}}"
|
|
601
630
|
>
|
|
602
631
|
add
|
|
603
632
|
</button>
|
|
604
633
|
`)}
|
|
605
634
|
</div>
|
|
606
|
-
`}updated(){this.sortBy=="layerOrder"&&this.renderRoot.querySelectorAll("ul").forEach(e=>{const i=e.dataset.group;v.create(e,{handle:this.unstyled?"summary":".drag-handle",dataIdAttr:"data-layer",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{get:()=>i
|
|
635
|
+
`}updated(){this.sortBy=="layerOrder"&&this.renderRoot.querySelectorAll("ul").forEach(e=>{const i=e.dataset.group;v.create(e,{handle:this.unstyled?"summary":".drag-handle",dataIdAttr:"data-layer",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{get:()=>{if(i){const r=this.findLayerById(this.layerCollection.getArray(),i);return r?[...r.getLayers().getArray().map(a=>a.get(this.layerIdentifier))].reverse():void 0}else return[...this.layerCollection.getArray().map(r=>r.get(this.layerIdentifier))].reverse()},set:r=>{r.toArray().reverse().forEach((a,d)=>{if(i){const l=this.findLayerById(this.layerCollection.getArray(),i);if(!l)return;const s=l.getLayers(),c=this.findLayerById(s.getArray(),a);s.remove(c),s.insertAt(d,c)}else{const l=this.findLayerById(this.layerCollection.getArray(),a);this.layerCollection.remove(l),this.layerCollection.insertAt(d,l)}})}},onMove:r=>!r.related.dataset.disabled})})}},D([kt()],x.EOxLayerControl.prototype,"olMap",2),D([kt()],x.EOxLayerControl.prototype,"layerCollection",2),D([kt()],x.EOxLayerControl.prototype,"optionalLayerArray",2),D([k()],x.EOxLayerControl.prototype,"for",2),D([k()],x.EOxLayerControl.prototype,"layerIdentifier",2),D([k()],x.EOxLayerControl.prototype,"layerTitle",2),D([k()],x.EOxLayerControl.prototype,"sortBy",2),D([k({type:Array})],x.EOxLayerControl.prototype,"layerConfig",2),D([k({type:Boolean})],x.EOxLayerControl.prototype,"externalLayerConfig",2),D([k({type:Boolean})],x.EOxLayerControl.prototype,"unstyled",2),x.EOxLayerControl=D([vi("eox-layercontrol")],x.EOxLayerControl),x.EOxLayerConfig=class extends Ct{constructor(){super(...arguments),this._configList={}}_handleInput(t,e){e==="opacity"?this._layerControlElement.changeOpacity(this._currentLayer,parseFloat(t.target.value)):this._layerControlElement.changeStyleProperty(this._currentLayer,e,parseFloat(t.target.value))}_parseConfigs(t){if(!t)return;const e=t.style_;e&&e.color&&e.color[0]==="array"&&(this._configList=e.variables)}connectedCallback(){super.connectedCallback(),!this.layerConfig&&!this.layerControl?(this._layerControlElement=document.querySelector(this.for),this._layerControlElement&&(this.layerConfig=this._layerControlElement.layerConfig,this._layerControlElement.addEventListener("layerconfig",t=>{this._currentLayer=t.detail.layer,this._parseConfigs(this._currentLayer),this.requestUpdate()}))):(this._layerControlElement=this.layerControl,this._currentLayer=this.layer,this._parseConfigs(this._currentLayer))}render(){return H`
|
|
607
636
|
<style>
|
|
608
637
|
${Xi}
|
|
609
638
|
${!this.unstyled&&Wi}
|
|
@@ -611,8 +640,15 @@ li.sortable-ghost {
|
|
|
611
640
|
${xi(this._currentLayer,()=>H`
|
|
612
641
|
<div>
|
|
613
642
|
<slot></slot>
|
|
614
|
-
|
|
615
|
-
|
|
643
|
+
<div class="slider-control">
|
|
644
|
+
<div class="slider-property">Remove</div>
|
|
645
|
+
<button
|
|
646
|
+
class="delete"
|
|
647
|
+
@click="${()=>this.dispatchEvent(new CustomEvent("removeLayer"))}"
|
|
648
|
+
></button>
|
|
649
|
+
</div>
|
|
650
|
+
${this.for?H`layer: ${this._currentLayer.get("name")}`:_}
|
|
651
|
+
${Oe(this.layerConfig.filter(t=>this.for?t!=="opacity":!0),t=>t,t=>H`
|
|
616
652
|
<div class="slider-control">
|
|
617
653
|
<div class="slider-property">${t}</div>
|
|
618
654
|
<input
|
|
@@ -626,10 +662,10 @@ li.sortable-ghost {
|
|
|
626
662
|
</div>
|
|
627
663
|
`)}
|
|
628
664
|
${Object.keys(this._configList).length>0&&!this.external?H`
|
|
629
|
-
<details open="${this.for?!0:
|
|
665
|
+
<details open="${this.for?!0:_}">
|
|
630
666
|
<summary>Layer config</summary>
|
|
631
667
|
<ul>
|
|
632
|
-
${
|
|
668
|
+
${Oe(Object.keys(this._configList),t=>t,t=>H` <li>
|
|
633
669
|
<div>${t}</div>
|
|
634
670
|
<input
|
|
635
671
|
type="range"
|
|
@@ -641,7 +677,7 @@ li.sortable-ghost {
|
|
|
641
677
|
</li>`)}
|
|
642
678
|
</ul>
|
|
643
679
|
</details>
|
|
644
|
-
`:
|
|
680
|
+
`:_}
|
|
645
681
|
</div>
|
|
646
682
|
`)}
|
|
647
|
-
`}},
|
|
683
|
+
`}},D([k()],x.EOxLayerConfig.prototype,"for",2),D([k({type:Array})],x.EOxLayerConfig.prototype,"layerConfig",2),D([k({type:Object,attribute:!1})],x.EOxLayerConfig.prototype,"layerControl",2),D([k({type:Object,attribute:!1})],x.EOxLayerConfig.prototype,"layer",2),D([k({type:Boolean})],x.EOxLayerConfig.prototype,"external",2),D([k({type:Boolean})],x.EOxLayerConfig.prototype,"unstyled",2),D([kt()],x.EOxLayerConfig.prototype,"_currentLayer",2),D([kt()],x.EOxLayerConfig.prototype,"_configList",2),x.EOxLayerConfig=D([vi("eox-layerconfig")],x.EOxLayerConfig),Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|