@eox/drawtools 0.14.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/eox-drawtools.js +3004 -2909
  2. package/dist/eox-drawtools.umd.cjs +190 -109
  3. package/dist/material-symbols-outlined.woff2 +0 -0
  4. package/dist/material-symbols-rounded.woff2 +0 -0
  5. package/dist/material-symbols-sharp.woff2 +0 -0
  6. package/dist/material-symbols-subset.woff2 +0 -0
  7. package/package.json +4 -3
  8. package/src/components/controller.js +124 -18
  9. package/src/components/list.js +40 -24
  10. package/src/main.js +14 -2
  11. package/src/methods/draw/init-layer.js +23 -8
  12. package/src/methods/draw/start-drawing.js +9 -0
  13. package/src/style.eox.js +11 -42
  14. package/types/drawtools/src/components/controller.d.ts +9 -0
  15. package/types/drawtools/src/components/controller.d.ts.map +1 -1
  16. package/types/drawtools/src/components/list.d.ts +9 -0
  17. package/types/drawtools/src/components/list.d.ts.map +1 -1
  18. package/types/drawtools/src/main.d.ts +8 -0
  19. package/types/drawtools/src/main.d.ts.map +1 -1
  20. package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -1
  21. package/types/drawtools/src/methods/draw/start-drawing.d.ts.map +1 -1
  22. package/types/drawtools/src/style.eox.d.ts +1 -1
  23. package/types/drawtools/src/style.eox.d.ts.map +1 -1
  24. package/types/map/src/components/compare.d.ts.map +1 -1
  25. package/types/map/src/components/tooltip.d.ts.map +1 -1
  26. package/types/map/src/controls/geo-location.d.ts.map +1 -1
  27. package/types/map/src/helpers/generate.d.ts.map +1 -1
  28. package/types/map/src/helpers/select.d.ts +1 -1
  29. package/types/map/src/helpers/select.d.ts.map +1 -1
  30. package/types/map/src/main.d.ts +1 -1
  31. package/types/map/src/main.d.ts.map +1 -1
  32. package/types/map/src/methods/map/setters.d.ts.map +1 -1
@@ -1,99 +1,173 @@
1
- (function(w,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(w=typeof globalThis<"u"?globalThis:w||self,_(w["eox-drawtools"]={}))})(this,function(w){"use strict";var co=Object.defineProperty;var _n=w=>{throw TypeError(w)};var uo=(w,_,E)=>_ in w?co(w,_,{enumerable:!0,configurable:!0,writable:!0,value:E}):w[_]=E;var et=(w,_,E)=>uo(w,typeof _!="symbol"?_+"":_,E),vn=(w,_,E)=>_.has(w)||_n("Cannot "+E);var A=(w,_,E)=>(vn(w,_,"read from private field"),E?E.call(w):_.get(w)),T=(w,_,E)=>_.has(w)?_n("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(w):_.set(w,E),I=(w,_,E,gt)=>(vn(w,_,"write to private field"),gt?gt.call(w,E):_.set(w,E),E);/**
1
+ (function(x,y){typeof exports=="object"&&typeof module<"u"?y(exports):typeof define=="function"&&define.amd?define(["exports"],y):(x=typeof globalThis<"u"?globalThis:x||self,y(x["eox-drawtools"]={}))})(this,function(x){"use strict";var la=Object.defineProperty;var fi=x=>{throw TypeError(x)};var ca=(x,y,z)=>y in x?la(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z;var ee=(x,y,z)=>ca(x,typeof y!="symbol"?y+"":y,z),bi=(x,y,z)=>y.has(x)||fi("Cannot "+z);var $=(x,y,z)=>(bi(x,y,"read from private field"),z?z.call(x):y.get(x)),R=(x,y,z)=>y.has(x)?fi("Cannot add the same private member more than once"):y instanceof WeakSet?y.add(x):y.set(x,z),G=(x,y,z,me)=>(bi(x,y,"write to private field"),me?me.call(x,z):y.set(x,z),z);/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var pn,Ft,Gt,ut,dt,It,ft,Lt;const _=globalThis,E=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),Xe=new WeakMap;let Cn=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==gt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(E&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Xe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Xe.set(e,t))}return t}toString(){return this.cssText}};const bn=n=>new Cn(typeof n=="string"?n:n+"",void 0,gt),En=(n,t)=>{if(E)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),r=_.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,n.appendChild(i)}},Ye=E?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return bn(e)})(n):n;/**
5
+ */var mi,Ee,$e,de,ue,Ae,he,Fe;const y=globalThis,z=y.ShadowRoot&&(y.ShadyCSS===void 0||y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,me=Symbol(),jt=new WeakMap;let vi=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==me)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(z&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=jt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&jt.set(t,e))}return e}toString(){return this.cssText}};const xi=i=>new vi(typeof i=="string"?i:i+"",void 0,me),ki=(i,e)=>{if(z)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),n=y.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,i.appendChild(r)}},Vt=z?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return xi(t)})(i):i;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:xn,defineProperty:Pn,getOwnPropertyDescriptor:Mn,getOwnPropertyNames:Sn,getOwnPropertySymbols:$n,getPrototypeOf:An}=Object,L=globalThis,Be=L.trustedTypes,Fn=Be?Be.emptyScript:"",ee=L.reactiveElementPolyfillSupport,pt=(n,t)=>n,ie={toAttribute(n,t){switch(t){case Boolean:n=n?Fn: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}},Ve=(n,t)=>!xn(n,t),ze={attribute:!0,type:String,converter:ie,reflect:!1,useDefault:!1,hasChanged:Ve};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),L.litPropertyMetadata??(L.litPropertyMetadata=new WeakMap);let it=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ze){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Pn(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:s}=Mn(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:r,set(o){const a=r==null?void 0:r.call(this);s==null||s.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ze}static _$Ei(){if(this.hasOwnProperty(pt("elementProperties")))return;const t=An(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pt("properties"))){const e=this.properties,i=[...Sn(e),...$n(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Ye(r))}else t!==void 0&&e.push(Ye(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return En(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var s;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:ie).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var s,o;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const a=i.getPropertyOptions(r),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((s=a.converter)==null?void 0:s.fromAttribute)!==void 0?a.converter:ie;this._$Em=r,this[r]=l.fromAttribute(e,a.type)??((o=this._$Ej)==null?void 0:o.get(r))??null,this._$Em=null}}requestUpdate(t,e,i){var r;if(t!==void 0){const s=this.constructor,o=this[t];if(i??(i=s.getPropertyOptions(t)),!((i.hasChanged??Ve)(o,e)||i.useDefault&&i.reflect&&o===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(s._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:s},o){i&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),s!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,o]of r){const{wrapped:a}=o,l=this[s];a!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,o,l)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};it.elementStyles=[],it.shadowRootOptions={mode:"open"},it[pt("elementProperties")]=new Map,it[pt("finalized")]=new Map,ee==null||ee({ReactiveElement:it}),(L.reactiveElementVersions??(L.reactiveElementVersions=[])).push("2.1.0");/**
9
+ */const{is:_i,defineProperty:wi,getOwnPropertyDescriptor:zi,getOwnPropertyNames:Ci,getOwnPropertySymbols:Si,getPrototypeOf:Mi}=Object,I=globalThis,Ut=I.trustedTypes,Pi=Ut?Ut.emptyScript:"",et=I.reactiveElementPolyfillSupport,pe=(i,e)=>i,tt={toAttribute(i,e){switch(e){case Boolean:i=i?Pi:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Yt=(i,e)=>!_i(i,e),Xt={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:Yt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),I.litPropertyMetadata??(I.litPropertyMetadata=new WeakMap);class te extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Xt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);n!==void 0&&wi(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:o}=zi(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get(){return n==null?void 0:n.call(this)},set(a){const s=n==null?void 0:n.call(this);o.call(this,a),this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Xt}static _$Ei(){if(this.hasOwnProperty(pe("elementProperties")))return;const e=Mi(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(pe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pe("properties"))){const t=this.properties,r=[...Ci(t),...Si(t)];for(const n of r)this.createProperty(n,t[n])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const n of r)t.unshift(Vt(n))}else e!==void 0&&t.push(Vt(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ki(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){var o;const r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){const a=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:tt).toAttribute(t,r.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){var o;const r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const a=r.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)==null?void 0:o.fromAttribute)!==void 0?a.converter:tt;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,r){if(e!==void 0){if(r??(r=this.constructor.getPropertyOptions(e)),!(r.hasChanged??Yt)(this[e],t))return;this.P(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[o,a]of n)a.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],a)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(n=>{var o;return(o=n.hostUpdate)==null?void 0:o.call(n)}),this.update(t)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}te.elementStyles=[],te.shadowRootOptions={mode:"open"},te[pe("elementProperties")]=new Map,te[pe("finalized")]=new Map,et==null||et({ReactiveElement:te}),(I.reactiveElementVersions??(I.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const yt=globalThis,Tt=yt.trustedTypes,Je=Tt?Tt.createPolicy("lit-html",{createHTML:n=>n}):void 0,We="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,qe="?"+R,Gn=`<${qe}>`,N=document,mt=()=>N.createComment(""),_t=n=>n===null||typeof n!="object"&&typeof n!="function",ne=Array.isArray,In=n=>ne(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",re=`[
14
- \f\r]`,vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,De=/-->/g,Ze=/>/g,O=RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ke=/'/g,Qe=/"/g,ti=/^(?:script|style|textarea|title)$/i,Ln=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),k=Ln(1),nt=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),ei=new WeakMap,j=N.createTreeWalker(N,129);function ii(n,t){if(!ne(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Je!==void 0?Je.createHTML(t):t}const Rn=(n,t)=>{const e=n.length-1,i=[];let r,s=t===2?"<svg>":t===3?"<math>":"",o=vt;for(let a=0;a<e;a++){const l=n[a];let h,c,u=-1,d=0;for(;d<l.length&&(o.lastIndex=d,c=o.exec(l),c!==null);)d=o.lastIndex,o===vt?c[1]==="!--"?o=De:c[1]!==void 0?o=Ze:c[2]!==void 0?(ti.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=O):c[3]!==void 0&&(o=O):o===O?c[0]===">"?(o=r??vt,u=-1):c[1]===void 0?u=-2:(u=o.lastIndex-c[2].length,h=c[1],o=c[3]===void 0?O:c[3]==='"'?Qe:Ke):o===Qe||o===Ke?o=O:o===De||o===Ze?o=vt:(o=O,r=void 0);const f=o===O&&n[a+1].startsWith("/>")?" ":"";s+=o===vt?l+Gn:u>=0?(i.push(h),l.slice(0,u)+We+l.slice(u)+R+f):l+R+(u===-2?a:f)}return[ii(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class wt{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[h,c]=Rn(t,e);if(this.el=wt.createElement(h,i),j.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=j.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const u of r.getAttributeNames())if(u.endsWith(We)){const d=c[o++],f=r.getAttribute(u).split(R),g=/([.?@])?(.*)/.exec(d);l.push({type:1,index:s,name:g[2],strings:f,ctor:g[1]==="."?Nn:g[1]==="?"?On:g[1]==="@"?kn:Nt}),r.removeAttribute(u)}else u.startsWith(R)&&(l.push({type:6,index:s}),r.removeAttribute(u));if(ti.test(r.tagName)){const u=r.textContent.split(R),d=u.length-1;if(d>0){r.textContent=Tt?Tt.emptyScript:"";for(let f=0;f<d;f++)r.append(u[f],mt()),j.nextNode(),l.push({type:2,index:++s});r.append(u[d],mt())}}}else if(r.nodeType===8)if(r.data===qe)l.push({type:2,index:s});else{let u=-1;for(;(u=r.data.indexOf(R,u+1))!==-1;)l.push({type:7,index:s}),u+=R.length-1}s++}}static createElement(t,e){const i=N.createElement("template");return i.innerHTML=t,i}}function rt(n,t,e=n,i){var o,a;if(t===nt)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const s=_t(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),s===void 0?r=void 0:(r=new s(n),r._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=rt(n,r._$AS(n,t.values),r,i)),t}let Tn=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??N).importNode(e,!0);j.currentNode=r;let s=j.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let h;l.type===2?h=new se(s,s.nextSibling,this,t):l.type===1?h=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(h=new jn(s,this,t)),this._$AV.push(h),l=i[++a]}o!==(l==null?void 0:l.index)&&(s=j.nextNode(),o++)}return j.currentNode=N,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},se=class wn{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=rt(this,t,e),_t(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==nt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):In(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==b&&_t(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=wt.createElement(ii(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(e);else{const o=new Tn(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=ei.get(t.strings);return e===void 0&&ei.set(t.strings,e=new wt(t)),e}k(t){ne(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const s of t)r===e.length?e.push(i=new wn(this.O(mt()),this.O(mt()),this,this.options)):i=e[r],i._$AI(s),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?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._$Cv=t,(e=this._$AP)==null||e.call(this,t))}};class Nt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,s){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=b}_$AI(t,e=this,i,r){const s=this.strings;let o=!1;if(s===void 0)t=rt(this,t,e,0),o=!_t(t)||t!==this._$AH&&t!==nt,o&&(this._$AH=t);else{const a=t;let l,h;for(t=s[0],l=0;l<s.length-1;l++)h=rt(this,a[i+l],e,l),h===nt&&(h=this._$AH[l]),o||(o=!_t(h)||h!==this._$AH[l]),h===b?t=b:t!==b&&(t+=(h??"")+s[l+1]),this._$AH[l]=h}o&&!r&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Nn extends Nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}}class On extends Nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==b)}}class kn extends Nt{constructor(t,e,i,r,s){super(t,e,i,r,s),this.type=5}_$AI(t,e=this){if((t=rt(this,t,e,0)??b)===nt)return;const i=this._$AH,r=t===b&&i!==b||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==b&&(i===b||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class jn{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){rt(this,t)}}const oe=yt.litHtmlPolyfillSupport;oe==null||oe(wt,se),(yt.litHtmlVersions??(yt.litHtmlVersions=[])).push("3.3.0");const Hn=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const s=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new se(t.insertBefore(mt(),s),s,void 0,e??{})}return r._$AI(n),r};/**
13
+ */const ge=globalThis,Ie=ge.trustedTypes,Bt=Ie?Ie.createPolicy("lit-html",{createHTML:i=>i}):void 0,qt="$lit$",L=`lit$${Math.random().toFixed(9).slice(2)}$`,Jt="?"+L,Ei=`<${Jt}>`,N=document,fe=()=>N.createComment(""),be=i=>i===null||typeof i!="object"&&typeof i!="function",rt=Array.isArray,$i=i=>rt(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",it=`[
14
+ \f\r]`,ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Zt=/>/g,T=RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Kt=/'/g,Dt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,Ai=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),w=Ai(1),re=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),er=new WeakMap,O=N.createTreeWalker(N,129);function tr(i,e){if(!rt(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(e):e}const Fi=(i,e)=>{const t=i.length-1,r=[];let n,o=e===2?"<svg>":e===3?"<math>":"",a=ye;for(let s=0;s<t;s++){const l=i[s];let c,d,u=-1,h=0;for(;h<l.length&&(a.lastIndex=h,d=a.exec(l),d!==null);)h=a.lastIndex,a===ye?d[1]==="!--"?a=Wt:d[1]!==void 0?a=Zt:d[2]!==void 0?(Qt.test(d[2])&&(n=RegExp("</"+d[2],"g")),a=T):d[3]!==void 0&&(a=T):a===T?d[0]===">"?(a=n??ye,u=-1):d[1]===void 0?u=-2:(u=a.lastIndex-d[2].length,c=d[1],a=d[3]===void 0?T:d[3]==='"'?Dt:Kt):a===Dt||a===Kt?a=T:a===Wt||a===Zt?a=ye:(a=T,n=void 0);const m=a===T&&i[s+1].startsWith("/>")?" ":"";o+=a===ye?l+Ei:u>=0?(r.push(c),l.slice(0,u)+qt+l.slice(u)+L+m):l+L+(u===-2?s:m)}return[tr(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class ve{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,a=0;const s=e.length-1,l=this.parts,[c,d]=Fi(e,t);if(this.el=ve.createElement(c,r),O.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=O.nextNode())!==null&&l.length<s;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(qt)){const h=d[a++],m=n.getAttribute(u).split(L),p=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:p[2],strings:m,ctor:p[1]==="."?Ii:p[1]==="?"?Li:p[1]==="@"?Ri:Le}),n.removeAttribute(u)}else u.startsWith(L)&&(l.push({type:6,index:o}),n.removeAttribute(u));if(Qt.test(n.tagName)){const u=n.textContent.split(L),h=u.length-1;if(h>0){n.textContent=Ie?Ie.emptyScript:"";for(let m=0;m<h;m++)n.append(u[m],fe()),O.nextNode(),l.push({type:2,index:++o});n.append(u[h],fe())}}}else if(n.nodeType===8)if(n.data===Jt)l.push({type:2,index:o});else{let u=-1;for(;(u=n.data.indexOf(L,u+1))!==-1;)l.push({type:7,index:o}),u+=L.length-1}o++}}static createElement(e,t){const r=N.createElement("template");return r.innerHTML=e,r}}function ie(i,e,t=i,r){var a,s;if(e===re)return e;let n=r!==void 0?(a=t._$Co)==null?void 0:a[r]:t._$Cl;const o=be(e)?void 0:e._$litDirective$;return(n==null?void 0:n.constructor)!==o&&((s=n==null?void 0:n._$AO)==null||s.call(n,!1),o===void 0?n=void 0:(n=new o(i),n._$AT(i,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(e=ie(i,n._$AS(i,e.values),n,r)),e}let Gi=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=((e==null?void 0:e.creationScope)??N).importNode(t,!0);O.currentNode=n;let o=O.nextNode(),a=0,s=0,l=r[0];for(;l!==void 0;){if(a===l.index){let c;l.type===2?c=new nt(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Ni(o,this,e)),this._$AV.push(c),l=r[++s]}a!==(l==null?void 0:l.index)&&(o=O.nextNode(),a++)}return O.currentNode=N,n}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},nt=class yi{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ie(this,e,t),be(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==re&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$i(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==_&&be(this._$AH)?this._$AA.nextSibling.data=e:this.T(N.createTextNode(e)),this._$AH=e}$(e){var o;const{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=ve.createElement(tr(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===n)this._$AH.p(t);else{const a=new Gi(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=er.get(e.strings);return t===void 0&&er.set(e.strings,t=new ve(e)),t}k(e){rt(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const o of e)n===t.length?t.push(r=new yi(this.O(fe()),this.O(fe()),this,this.options)):r=t[n],r._$AI(o),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}};class Le{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,o){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=_}_$AI(e,t=this,r,n){const o=this.strings;let a=!1;if(o===void 0)e=ie(this,e,t,0),a=!be(e)||e!==this._$AH&&e!==re,a&&(this._$AH=e);else{const s=e;let l,c;for(e=o[0],l=0;l<o.length-1;l++)c=ie(this,s[r+l],t,l),c===re&&(c=this._$AH[l]),a||(a=!be(c)||c!==this._$AH[l]),c===_?e=_:e!==_&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}a&&!n&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ii extends Le{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}}class Li extends Le{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}}class Ri extends Le{constructor(e,t,r,n,o){super(e,t,r,n,o),this.type=5}_$AI(e,t=this){if((e=ie(this,e,t,0)??_)===re)return;const r=this._$AH,n=e===_&&r!==_||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==_&&(r===_||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class Ni{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ie(this,e)}}const ot=ge.litHtmlPolyfillSupport;ot==null||ot(ve,nt),(ge.litHtmlVersions??(ge.litHtmlVersions=[])).push("3.2.1");const Ti=(i,e,t)=>{const r=(t==null?void 0:t.renderBefore)??e;let n=r._$litPart$;if(n===void 0){const o=(t==null?void 0:t.renderBefore)??null;r._$litPart$=n=new nt(e.insertBefore(fe(),o),o,void 0,t??{})}return n._$AI(i),n};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const H=globalThis;let U=class extends it{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Hn(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return nt}};U._$litElement$=!0,U.finalized=!0,(pn=H.litElementHydrateSupport)==null||pn.call(H,{LitElement:U});const ae=H.litElementPolyfillSupport;ae==null||ae({LitElement:U}),(H.litElementVersions??(H.litElementVersions=[])).push("4.2.0");/**
19
+ */class H extends te{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ti(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return re}}H._$litElement$=!0,H.finalized=!0,(mi=globalThis.litElementHydrateSupport)==null||mi.call(globalThis,{LitElement:H});const at=globalThis.litElementPolyfillSupport;at==null||at({LitElement:H}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const Un=n=>(...t)=>({_$litDirective$:n,values:t});let Xn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
23
+ */const Oi=i=>(...e)=>({_$litDirective$:i,values:e});let Hi=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
24
24
  * @license
25
25
  * Copyright 2020 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Yn={},Bn=(n,t=Yn)=>n._$AH=t;/**
27
+ */const ji={},Vi=(i,e=ji)=>i._$AH=e;/**
28
28
  * @license
29
29
  * Copyright 2021 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const Vn=Un(class extends Xn{constructor(){super(...arguments),this.key=b}render(n,t){return this.key=n,t}update(n,[t,e]){return t!==this.key&&(Bn(n),this.key=t),e}}),zn=n=>{n.hoverInteraction=n.eoxMap.selectInteractions.SelectLayerHoverInteraction,n.clickInteraction=n.eoxMap.selectInteractions.SelectLayerClickInteraction;const t=()=>{n.requestUpdate()};n.hoverInteraction.selectStyleLayer.on("change",t),n.clickInteraction.selectStyleLayer.on("change",t)},Jn=(n,t,e)=>{if(n.clickId===t)return;const i=e?[]:[t];n.hoverInteraction.highlightById(i)},Wn=(n,t)=>{n.stopPropagation();const e=Number(n.target.getAttribute("index")),i=t.drawLayer.getSource().getFeatures()[e];t.drawLayer.getSource().removeFeature(i),t.drawnFeatures.splice(e,1),t.requestUpdate()},ni={duration:750,padding:[20,20,20,20]},ri={type:"FeatureCollection",features:[]},qn=(n,t)=>{const{clickId:e,drawLayer:i,olMap:r,clickInteraction:s}=t,o=s.getId(n);if(e===o){const l=i.getSource().getExtent();r.getView().fit(l,ni),s.highlightById([])}else{const l=t.eoxMap.projection||"EPSG:3857",h=t.eoxDrawTools.projection,c=n.clone().getGeometry().transform(h,l).getExtent();s.highlightById([o]),r.getView().fit(c,ni)}t.requestUpdate()},Dn="ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}";class si extends U{constructor(){super();et(this,"hoverInteraction");et(this,"clickInteraction");et(this,"hoverId");et(this,"clickId");this.eoxDrawTools=null,this.eoxMap=null,this.olMap=null,this.draw=null,this.drawLayer=null,this.drawnFeatures=[],this.featureName="Feature",this.modify=null,this.unstyled=!1}_handleDelete(e){Wn(e,this),this.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))}_handleFeatureSelectAndDeselect(e){qn(e,this)}_handleHoverFeature(e,i=!1){Jn(this,e,i)}firstUpdated(){zn(this)}createRenderRoot(){return this}render(){var e,i;return this.hoverId=(e=this.hoverInteraction)==null?void 0:e.selectedFids[0],this.clickId=(i=this.clickInteraction)==null?void 0:i.selectedFids[0],k`
32
- <style>
33
- ${!this.unstyled&&Dn}
34
- </style>
35
- <ul class="list-wrap">
36
- ${this.drawnFeatures.map((r,s)=>{const o=s+1,a=Object.values(this.eoxMap.selectInteractions)[0].getId(r),l=this.hoverId===a,h=this.clickId===a;return Vn(o,k`
31
+ */const Ui=Oi(class extends Hi{constructor(){super(...arguments),this.key=_}render(i,e){return this.key=i,e}update(i,[e,t]){return e!==this.key&&(Vi(i),this.key=e),t}}),Yi=i=>{i.hoverInteraction=i.eoxMap.selectInteractions.SelectLayerHoverInteraction,i.clickInteraction=i.eoxMap.selectInteractions.SelectLayerClickInteraction;const e=()=>{i.requestUpdate()};i.hoverInteraction.selectStyleLayer.on("change",e),i.clickInteraction.selectStyleLayer.on("change",e)},Xi=(i,e,t)=>{if(i.clickId===e)return;const r=t?[]:[e];i.hoverInteraction.highlightById(r)},Bi=(i,e)=>{i.stopPropagation();const t=Number(i.target.getAttribute("index")),r=e.drawLayer.getSource().getFeatures()[t];e.drawLayer.getSource().removeFeature(r),e.drawnFeatures.splice(t,1),e.requestUpdate()},rr={duration:750,padding:[20,20,20,20]},ir={type:"FeatureCollection",features:[]},qi=(i,e)=>{const{clickId:t,drawLayer:r,olMap:n,clickInteraction:o}=e,a=o.getId(i);if(t===a){const l=r.getSource().getExtent();n.getView().fit(l,rr),o.highlightById([])}else{const l=e.eoxMap.projection||"EPSG:3857",c=e.eoxDrawTools.projection,d=i.clone().getGeometry().transform(c,l).getExtent();o.highlightById([a]),n.getView().fit(d,rr)}e.requestUpdate()};class nr extends H{constructor(){super();ee(this,"hoverInteraction");ee(this,"clickInteraction");ee(this,"hoverId");ee(this,"clickId");this.eoxDrawTools=null,this.eoxMap=null,this.olMap=null,this.draw=null,this.drawLayer=null,this.drawnFeatures=[],this.featureName="Feature",this.featureNameKey=null,this.modify=null,this.unstyled=!1}_handleDelete(t){Bi(t,this),this.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))}_handleFeatureSelectAndDeselect(t){qi(t,this)}_handleHoverFeature(t,r=!1){Xi(this,t,r)}firstUpdated(){Yi(this)}createRenderRoot(){return this}render(){var r,n;this.hoverId=(r=this.hoverInteraction)==null?void 0:r.selectedFids[0],this.clickId=(n=this.clickInteraction)==null?void 0:n.selectedFids[0];const t=w`<svg
32
+ xmlns="http://www.w3.org/2000/svg"
33
+ viewBox="0 0 24 24"
34
+ >
35
+ <title>trash-can-outline</title>
36
+ <path
37
+ d="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z"
38
+ />
39
+ </svg>`;return w`
40
+ <ul class="list no-space">
41
+ ${this.drawnFeatures.map((o,a)=>{const s=a+1,l=Object.values(this.eoxMap.selectInteractions)[0].getId(o),c=this.hoverId===l,d=this.clickId===l,u=c?"surface-container-low":d?"fill":_,h=o.get(this.featureNameKey),m=h||`${this.featureName} ${s}`;return Ui(s,w`
37
42
  <li
38
- class="${l||h?"selected":b}"
39
- @mouseover=${()=>this._handleHoverFeature(a)}
40
- @mouseout=${()=>this._handleHoverFeature(a,!0)}
43
+ class="${u} no-round"
44
+ @mouseover=${()=>this._handleHoverFeature(l)}
45
+ @mouseout=${()=>this._handleHoverFeature(l,!0)}
46
+ @click="${()=>this._handleFeatureSelectAndDeselect(o)}"
41
47
  >
42
- <div
43
- class="list"
44
- @click="${()=>this._handleFeatureSelectAndDeselect(r)}"
45
- >
46
- <span class="title"
47
- >${this.featureName} ${o}</span
48
- >
49
- <button
50
- index=${s}
51
- data-cy="deleteFeatureBtn"
52
- class="icon smallest discard"
53
- @click="${this._handleDelete}"
54
- >
55
- x
56
- </button>
48
+ <div class="max">
49
+ <span class="title">${m}</span>
57
50
  </div>
51
+ <button
52
+ index=${a}
53
+ data-cy="deleteFeatureBtn"
54
+ class="transparent square small error-text front"
55
+ @click="${this._handleDelete}"
56
+ >
57
+ ${this.unstyled?"x":w`<i class="small">${t}</i>`}
58
+ </button>
58
59
  </li>
59
60
  `)})}
60
61
  </ul>
61
- `}}et(si,"properties",{eoxDrawTools:{attribute:!1,state:!0},eoxMap:{attribute:!1,state:!0},olMap:{attribute:!1,state:!0},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},drawnFeatures:{attribute:!1,state:!0,type:Array},featureName:{attribute:!1,state:!0,type:String},modify:{attribute:!1,state:!0},unstyled:{type:Boolean}}),customElements.define("eox-drawtools-list",si);const Zn=n=>{const{multipleFeatures:t,drawnFeatures:e,currentlyDrawing:i}=n,r=!t&&(e==null?void 0:e.length)>0||i,s=!(e!=null&&e.length)&&!i;return{drawDisabled:r,discardDisabled:s}},Kn="button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}",Qn='textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input,input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004; background-color: var(--background-color);}';function tr(n){navigator.clipboard.writeText(n).then(function(){},function(t){console.error("Could not copy text: ",t)})}const er={PROPERTYCHANGE:"propertychange"},le={CHANGE:"change"};class ir{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}function nr(n,t,e){let i,r;e=e||oi;let s=0,o=n.length,a=!1;for(;s<o;)i=s+(o-s>>1),r=+e(n[i],t),r<0?s=i+1:(o=i,a=!r);return a?s:~s}function oi(n,t){return n>t?1:n<t?-1:0}function F(n,t){const e=Array.isArray(t)?t:[t],i=e.length;for(let r=0;r<i;r++)n[n.length]=e[r]}function rr(n,t){const e=n.length;if(e!==t.length)return!1;for(let i=0;i<e;i++)if(n[i]!==t[i])return!1;return!0}function ai(){}function li(n){let t,e,i;return function(){const r=Array.prototype.slice.call(arguments);return(!e||this!==i||!rr(r,e))&&(i=this,e=r,t=n.apply(this,arguments)),t}}function hi(n){for(const t in n)delete n[t]}function ci(n){let t;for(t in n)return!1;return!t}class ui{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}class sr extends ir{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const i=this.listeners_||(this.listeners_={}),r=i[t]||(i[t]=[]);r.includes(e)||r.push(e)}dispatchEvent(t){const e=typeof t=="string",i=e?t:t.type,r=this.listeners_&&this.listeners_[i];if(!r)return;const s=e?new ui(t):t;s.target||(s.target=this.eventTarget_||this);const o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});i in o||(o[i]=0,a[i]=0),++o[i];let l;for(let h=0,c=r.length;h<c;++h)if("handleEvent"in r[h]?l=r[h].handleEvent(s):l=r[h].call(this,s),l===!1||s.propagationStopped){l=!1;break}if(--o[i]===0){let h=a[i];for(delete a[i];h--;)this.removeEventListener(i,ai);delete o[i]}return l}disposeInternal(){this.listeners_&&hi(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return this.listeners_?t?t in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(t,e){if(!this.listeners_)return;const i=this.listeners_[t];if(!i)return;const r=i.indexOf(e);r!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[r]=ai,++this.pendingRemovals_[t]):(i.splice(r,1),i.length===0&&delete this.listeners_[t]))}}function Ct(n,t,e,i,r){if(r){const o=e;e=function(a){return n.removeEventListener(t,e),o.call(i??this,a)}}else i&&i!==n&&(e=e.bind(i));const s={target:n,type:t,listener:e};return n.addEventListener(t,e),s}function di(n,t,e,i){return Ct(n,t,e,i,!0)}function Ot(n){n&&n.target&&(n.target.removeEventListener(n.type,n.listener),hi(n))}class kt extends sr{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(le.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,r=new Array(i);for(let s=0;s<i;++s)r[s]=Ct(this,t[s],e);return r}return Ct(this,t,e)}onceInternal(t,e){let i;if(Array.isArray(t)){const r=t.length;i=new Array(r);for(let s=0;s<r;++s)i[s]=di(this,t[s],e)}else i=di(this,t,e);return e.ol_key=i,i}unInternal(t,e){const i=e.ol_key;if(i)or(i);else if(Array.isArray(t))for(let r=0,s=t.length;r<s;++r)this.removeEventListener(t[r],e);else this.removeEventListener(t,e)}}kt.prototype.on,kt.prototype.once,kt.prototype.un;function or(n){if(Array.isArray(n))for(let t=0,e=n.length;t<e;++t)Ot(n[t]);else Ot(n)}function y(){throw new Error("Unimplemented abstract method.")}let ar=0;function lr(n){return n.ol_uid||(n.ol_uid=String(++ar))}class fi extends ui{constructor(t,e,i){super(t),this.key=e,this.oldValue=i}}class gi extends kt{constructor(t){super(),this.on,this.once,this.un,lr(this),this.values_=null,t!==void 0&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(t,e){let i;i=`change:${t}`,this.hasListener(i)&&this.dispatchEvent(new fi(i,t,e)),i=er.PROPERTYCHANGE,this.hasListener(i)&&this.dispatchEvent(new fi(i,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,i){const r=this.values_||(this.values_={});if(i)r[t]=e;else{const s=r[t];r[t]=e,s!==e&&this.notify(t,s)}}setProperties(t,e){for(const i in t)this.set(i,t[i],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const i=this.values_[t];delete this.values_[t],ci(this.values_)&&(this.values_=null),e||this.notify(t,i)}}}function hr(n,t){if(!n)throw new Error(t)}class st extends gi{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if(typeof t.getSimplifiedGeometry=="function"){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new st(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const i=this.getStyle();return i&&t.setStyle(i),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Ot(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=Ct(t,le.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?cr(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function cr(n){if(typeof n=="function")return n;let t;return Array.isArray(n)?t=n:(hr(typeof n.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),t=[n]),function(){return t}}const x={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function X(n,t,e){let i,r;return t<n[0]?i=n[0]-t:n[2]<t?i=t-n[2]:i=0,e<n[1]?r=n[1]-e:n[3]<e?r=e-n[3]:r=0,i*i+r*r}function pi(n,t,e){return n[0]<=t&&t<=n[2]&&n[1]<=e&&e<=n[3]}function yi(n,t){const e=n[0],i=n[1],r=n[2],s=n[3],o=t[0],a=t[1];let l=x.UNKNOWN;return o<e?l=l|x.LEFT:o>r&&(l=l|x.RIGHT),a<i?l=l|x.BELOW:a>s&&(l=l|x.ABOVE),l===x.UNKNOWN&&(l=x.INTERSECTING),l}function he(){return[1/0,1/0,-1/0,-1/0]}function mi(n,t,e,i,r){return r?(r[0]=n,r[1]=t,r[2]=e,r[3]=i,r):[n,t,e,i]}function ce(n){return mi(1/0,1/0,-1/0,-1/0,n)}function _i(n,t){const e=n[0],i=n[1];return mi(e,i,e,i,t)}function ue(n,t,e,i,r){const s=ce(r);return vi(s,n,t,e,i)}function ur(n,t){return t[0]<n[0]&&(n[0]=t[0]),t[2]>n[2]&&(n[2]=t[2]),t[1]<n[1]&&(n[1]=t[1]),t[3]>n[3]&&(n[3]=t[3]),n}function vi(n,t,e,i,r){for(;e<i;e+=r)dr(n,t[e],t[e+1]);return n}function dr(n,t,e){n[0]=Math.min(n[0],t),n[1]=Math.min(n[1],e),n[2]=Math.max(n[2],t),n[3]=Math.max(n[3],e)}function fr(n,t){let e;return e=t(gr(n)),e||(e=t(pr(n)),e)||(e=t(mr(n)),e)||(e=t(yr(n)),e)?e:!1}function gr(n){return[n[0],n[1]]}function pr(n){return[n[2],n[1]]}function jt(n){return[(n[0]+n[2])/2,(n[1]+n[3])/2]}function Ht(n){return n[3]-n[1]}function yr(n){return[n[0],n[3]]}function mr(n){return[n[2],n[3]]}function _r(n,t){return n[0]<=t[2]&&n[2]>=t[0]&&n[1]<=t[3]&&n[3]>=t[1]}function vr(n,t){return t?(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t):n}function wr(n,t,e){let i=!1;const r=yi(n,t),s=yi(n,e);if(r===x.INTERSECTING||s===x.INTERSECTING)i=!0;else{const o=n[0],a=n[1],l=n[2],h=n[3],c=t[0],u=t[1],d=e[0],f=e[1],g=(f-u)/(d-c);let p,v;s&x.ABOVE&&!(r&x.ABOVE)&&(p=d-(f-h)/g,i=p>=o&&p<=l),!i&&s&x.RIGHT&&!(r&x.RIGHT)&&(v=f-(d-l)*g,i=v>=a&&v<=h),!i&&s&x.BELOW&&!(r&x.BELOW)&&(p=d-(f-a)/g,i=p>=o&&p<=l),!i&&s&x.LEFT&&!(r&x.LEFT)&&(v=f-(d-o)*g,i=v>=a&&v<=h)}return i}function Cr(n,t,e,i,r,s){const o=r-e,a=s-i;if(o!==0||a!==0){const l=((n-e)*o+(t-i)*a)/(o*o+a*a);l>1?(e=r,i=s):l>0&&(e+=o*l,i+=a*l)}return Y(n,t,e,i)}function Y(n,t,e,i){const r=e-n,s=i-t;return r*r+s*s}function wi(n){return n*180/Math.PI}function Ut(n){return n*Math.PI/180}function de(n,t,e){return n+e*(t-n)}function fe(n,t,e){if(n>=t&&n<e)return n;const i=e-t;return((n-t)%i+i)%i+t}const br={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class ge{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=t.extent!==void 0?t.extent:null,this.worldExtent_=t.worldExtent!==void 0?t.worldExtent:null,this.axisOrientation_=t.axisOrientation!==void 0?t.axisOrientation:"enu",this.global_=t.global!==void 0?t.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||br[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!!(t&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!!(this.global_&&t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const bt=6378137,ot=Math.PI*bt,Er=[-ot,-ot,ot,ot],xr=[-180,-85,180,85],Xt=bt*Math.log(Math.tan(Math.PI/2));class at extends ge{constructor(t){super({code:t,units:"m",extent:Er,global:!0,worldExtent:xr,getPointResolution:function(e,i){return e/Math.cosh(i[1]/bt)}})}}const Ci=[new at("EPSG:3857"),new at("EPSG:102100"),new at("EPSG:102113"),new at("EPSG:900913"),new at("http://www.opengis.net/def/crs/EPSG/0/3857"),new at("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Pr(n,t,e,i){const r=n.length;e=e>1?e:2,i=i??e,t===void 0&&(e>2?t=n.slice():t=new Array(r));for(let s=0;s<r;s+=i){t[s]=ot*n[s]/180;let o=bt*Math.log(Math.tan(Math.PI*(+n[s+1]+90)/360));o>Xt?o=Xt:o<-Xt&&(o=-Xt),t[s+1]=o}return t}function Mr(n,t,e,i){const r=n.length;e=e>1?e:2,i=i??e,t===void 0&&(e>2?t=n.slice():t=new Array(r));for(let s=0;s<r;s+=i)t[s]=180*n[s]/ot,t[s+1]=360*Math.atan(Math.exp(n[s+1]/bt))/Math.PI-90;return t}const Sr=6378137,bi=[-180,-90,180,90],$r=Math.PI*Sr/180;class B extends ge{constructor(t,e){super({code:t,units:"degrees",extent:bi,axisOrientation:e,global:!0,metersPerUnit:$r,worldExtent:bi})}}const Ei=[new B("CRS:84"),new B("EPSG:4326","neu"),new B("urn:ogc:def:crs:OGC:1.3:CRS84"),new B("urn:ogc:def:crs:OGC:2:84"),new B("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new B("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new B("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let pe={};function Ar(n){return pe[n]||pe[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function Fr(n,t){pe[n]=t}let lt={};function Et(n,t,e){const i=n.getCode(),r=t.getCode();i in lt||(lt[i]={}),lt[i][r]=e}function ye(n,t){return n in lt&&t in lt[n]?lt[n][t]:null}const Yt=.9996,S=.00669438,Bt=S*S,Vt=Bt*S,V=S/(1-S),xi=Math.sqrt(1-S),ht=(1-xi)/(1+xi),Pi=ht*ht,me=Pi*ht,_e=me*ht,Mi=_e*ht,Si=1-S/4-3*Bt/64-5*Vt/256,Gr=3*S/8+3*Bt/32+45*Vt/1024,Ir=15*Bt/256+45*Vt/1024,Lr=35*Vt/3072,Rr=3/2*ht-27/32*me+269/512*Mi,Tr=21/16*Pi-55/32*_e,Nr=151/96*me-417/128*Mi,Or=1097/512*_e,zt=6378137;function kr(n,t,e){const i=n-5e5,o=(e.north?t:t-1e7)/Yt/(zt*Si),a=o+Rr*Math.sin(2*o)+Tr*Math.sin(4*o)+Nr*Math.sin(6*o)+Or*Math.sin(8*o),l=Math.sin(a),h=l*l,c=Math.cos(a),u=l/c,d=u*u,f=d*d,g=1-S*h,p=Math.sqrt(1-S*h),v=zt/p,P=(1-S)/g,C=V*c**2,G=C*C,M=i/(v*Yt),tt=M*M,Rt=tt*M,yn=Rt*M,mn=yn*M,lo=mn*M,ho=a-u/P*(tt/2-yn/24*(5+3*d+10*C-4*G-9*V))+lo/720*(61+90*d+298*C+45*f-252*V-3*G);let Ue=(M-Rt/6*(1+2*d+C)+mn/120*(5-2*C+28*d-3*G+8*V+24*f))/c;return Ue=fe(Ue+Ut(Fi(e.number)),-Math.PI,Math.PI),[wi(Ue),wi(ho)]}const $i=-80,Ai=84,jr=-180,Hr=180;function Ur(n,t,e){n=fe(n,jr,Hr),t<$i?t=$i:t>Ai&&(t=Ai);const i=Ut(t),r=Math.sin(i),s=Math.cos(i),o=r/s,a=o*o,l=a*a,h=Ut(n),c=Fi(e.number),u=Ut(c),d=zt/Math.sqrt(1-S*r**2),f=V*s**2,g=s*fe(h-u,-Math.PI,Math.PI),p=g*g,v=p*g,P=v*g,C=P*g,G=C*g,M=zt*(Si*i-Gr*Math.sin(2*i)+Ir*Math.sin(4*i)-Lr*Math.sin(6*i)),tt=Yt*d*(g+v/6*(1-a+f)+C/120*(5-18*a+l+72*f-58*V))+5e5;let Rt=Yt*(M+d*o*(p/2+P/24*(5-a+9*f+4*f**2)+G/720*(61-58*a+l+600*f-330*V)));return e.north||(Rt+=1e7),[tt,Rt]}function Fi(n){return(n-1)*6-180+3}const Xr=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function Gi(n){let t=0;for(const r of Xr){const s=n.match(r);if(s){t=parseInt(s[1]);break}}if(!t)return null;let e=0,i=!1;return t>32700&&t<32761?e=t-32700:t>32600&&t<32661&&(i=!0,e=t-32600),e?{number:e,north:i}:null}function Ii(n,t){return function(e,i,r,s){const o=e.length;r=r>1?r:2,s=s??r,i||(r>2?i=e.slice():i=new Array(o));for(let a=0;a<o;a+=s){const l=e[a],h=e[a+1],c=n(l,h,t);i[a]=c[0],i[a+1]=c[1]}return i}}function Yr(n){return Gi(n)?new ge({code:n,units:"m"}):null}function Br(n){const t=Gi(n.getCode());return t?{forward:Ii(Ur,t),inverse:Ii(kr,t)}:null}const Vr=[Br],zr=[Yr];function ve(n,t){if(t!==void 0){for(let e=0,i=n.length;e<i;++e)t[e]=n[e];t=t}else t=n.slice();return t}function we(n){Fr(n.getCode(),n),Et(n,n,ve)}function Jr(n){n.forEach(we)}function $(n){if(typeof n!="string")return n;const t=Ar(n);if(t)return t;for(const e of zr){const i=e(n);if(i)return i}return null}function Li(n){Jr(n),n.forEach(function(t){n.forEach(function(e){t!==e&&Et(t,e,ve)})})}function Wr(n,t,e,i){n.forEach(function(r){t.forEach(function(s){Et(r,s,e),Et(s,r,i)})})}function qr(n,t){if(n===t)return!0;const e=n.getUnits()===t.getUnits();return(n.getCode()===t.getCode()||Ri(n,t)===ve)&&e}function Ri(n,t){const e=n.getCode(),i=t.getCode();let r=ye(e,i);if(r)return r;let s=null,o=null;for(const l of Vr)s||(s=l(n)),o||(o=l(t));if(!s&&!o)return null;const a="EPSG:4326";if(o)if(s)r=Ce(s.inverse,o.forward);else{const l=ye(e,a);l&&(r=Ce(l,o.forward))}else{const l=ye(a,i);l&&(r=Ce(s.inverse,l))}return r&&(we(n),we(t),Et(n,t,r)),r}function Ce(n,t){return function(e,i,r,s){return i=n(e,i,r,s),t(i,i,r,s)}}function be(n,t){const e=$(n),i=$(t);return Ri(e,i)}function Dr(){Li(Ci),Li(Ei),Wr(Ei,Ci,Pr,Mr)}Dr(),new Array(6);function Ti(){return[1,0,0,1,0,0]}function Ni(n,t,e,i,r,s,o,a){const l=Math.sin(s),h=Math.cos(s);return n[0]=i*h,n[1]=r*l,n[2]=-i*l,n[3]=r*h,n[4]=o*i*h-a*i*l+t,n[5]=o*r*l+a*r*h+e,n}function Oi(n,t,e,i,r,s,o){s=s||[],o=o||2;let a=0;for(let l=t;l<e;l+=i){const h=n[l],c=n[l+1];s[a++]=r[0]*h+r[2]*c+r[4],s[a++]=r[1]*h+r[3]*c+r[5];for(let u=2;u<o;u++)s[a++]=n[l+u]}return s&&s.length!=a&&(s.length=a),s}function Zr(n,t,e,i,r,s,o){o=o||[];const a=Math.cos(r),l=Math.sin(r),h=s[0],c=s[1];let u=0;for(let d=t;d<e;d+=i){const f=n[d]-h,g=n[d+1]-c;o[u++]=h+f*a-g*l,o[u++]=c+f*l+g*a;for(let p=d+2;p<d+i;++p)o[u++]=n[p]}return o&&o.length!=u&&(o.length=u),o}function Kr(n,t,e,i,r,s,o,a){a=a||[];const l=o[0],h=o[1];let c=0;for(let u=t;u<e;u+=i){const d=n[u]-l,f=n[u+1]-h;a[c++]=l+r*d,a[c++]=h+s*f;for(let g=u+2;g<u+i;++g)a[c++]=n[g]}return a&&a.length!=c&&(a.length=c),a}function Qr(n,t,e,i,r,s,o){o=o||[];let a=0;for(let l=t;l<e;l+=i){o[a++]=n[l]+r,o[a++]=n[l+1]+s;for(let h=l+2;h<l+i;++h)o[a++]=n[h]}return o&&o.length!=a&&(o.length=a),o}const ki=Ti(),ts=[NaN,NaN];class ji extends gi{constructor(){super(),this.extent_=he(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=li((t,e,i)=>{if(!i)return this.getSimplifiedGeometry(e);const r=this.clone();return r.applyTransform(i),r.getSimplifiedGeometry(e)})}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return y()}closestPointXY(t,e,i,r){return y()}containsXY(t,e){return this.closestPointXY(t,e,ts,Number.MIN_VALUE)===0}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return y()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&ce(e),this.extentRevision_=this.getRevision()}return vr(this.extent_,t)}rotate(t,e){y()}scale(t,e,i){y()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return y()}getType(){return y()}applyTransform(t){y()}intersectsExtent(t){return y()}translate(t,e){y()}transform(t,e){const i=$(t),r=i.getUnits()=="tile-pixels"?function(s,o,a){const l=i.getExtent(),h=i.getWorldExtent(),c=Ht(h)/Ht(l);Ni(ki,h[0],h[3],c,-c,0,0,0);const u=Oi(s,0,s.length,a,ki,o),d=be(i,e);return d?d(u,u,a):u}:be(i,e);return this.applyTransform(r),this}}class z extends ji{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return ue(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return y()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=Hi(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){y()}setLayout(t,e,i){let r;if(t)r=Hi(t);else{for(let s=0;s<i;++s){if(e.length===0){this.layout="XY",this.stride=2;return}e=e[0]}r=e.length,t=J(r)}this.layout=t,this.stride=r}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(t,e){const i=this.getFlatCoordinates();if(i){const r=this.getStride();Zr(i,0,i.length,r,t,e,i),this.changed()}}scale(t,e,i){e===void 0&&(e=t),i||(i=jt(this.getExtent()));const r=this.getFlatCoordinates();if(r){const s=this.getStride();Kr(r,0,r.length,s,t,e,i,r),this.changed()}}translate(t,e){const i=this.getFlatCoordinates();if(i){const r=this.getStride();Qr(i,0,i.length,r,t,e,i),this.changed()}}}function J(n){let t;return n==2?t="XY":n==3?t="XYZ":n==4&&(t="XYZM"),t}function Hi(n){let t;return n=="XY"?t=2:n=="XYZ"||n=="XYM"?t=3:n=="XYZM"&&(t=4),t}function es(n,t,e,i){for(let r=0,s=e.length;r<s;++r)n[t++]=e[r];return t}function Jt(n,t,e,i){for(let r=0,s=e.length;r<s;++r){const o=e[r];for(let a=0;a<i;++a)n[t++]=o[a]}return t}function xt(n,t,e,i,r){r=r||[];let s=0;for(let o=0,a=e.length;o<a;++o){const l=Jt(n,t,e[o],i);r[s++]=l,t=l}return r.length=s,r}function Ui(n,t,e,i,r){r=r||[];let s=0;for(let o=0,a=e.length;o<a;++o){const l=xt(n,t,e[o],i,r[s]);l.length===0&&(l[0]=t),r[s++]=l,t=l[l.length-1]}return r.length=s,r}function Xi(n,t,e,i){const r=[];let s=he();for(let o=0,a=e.length;o<a;++o){const l=e[o];s=ue(n,t,l[0],i),r.push((s[0]+s[2])/2,(s[1]+s[3])/2),t=l[l.length-1]}return r}function is(n,t,e,i,r){return!fr(r,function(o){return!W(n,t,e,i,o[0],o[1])})}function W(n,t,e,i,r,s){let o=0,a=n[e-i],l=n[e-i+1];for(;t<e;t+=i){const h=n[t],c=n[t+1];l<=s?c>s&&(h-a)*(s-l)-(r-a)*(c-l)>0&&o++:c<=s&&(h-a)*(s-l)-(r-a)*(c-l)<0&&o--,a=h,l=c}return o!==0}function Ee(n,t,e,i,r,s){if(e.length===0||!W(n,t,e[0],i,r,s))return!1;for(let o=1,a=e.length;o<a;++o)if(W(n,e[o-1],e[o],i,r,s))return!1;return!0}function ns(n,t,e,i,r,s){if(e.length===0)return!1;for(let o=0,a=e.length;o<a;++o){const l=e[o];if(Ee(n,t,l,i,r,s))return!0;t=l[l.length-1]}return!1}function xe(n,t,e,i,r,s,o){let a,l,h,c,u,d,f;const g=r[s+1],p=[];for(let C=0,G=e.length;C<G;++C){const M=e[C];for(c=n[M-i],d=n[M-i+1],a=t;a<M;a+=i)u=n[a],f=n[a+1],(g<=d&&f<=g||d<=g&&g<=f)&&(h=(g-d)/(f-d)*(u-c)+c,p.push(h)),c=u,d=f}let v=NaN,P=-1/0;for(p.sort(oi),c=p[0],a=1,l=p.length;a<l;++a){u=p[a];const C=Math.abs(u-c);C>P&&(h=(c+u)/2,Ee(n,t,e,i,h,g)&&(v=h,P=C)),c=u}return isNaN(v)&&(v=r[s]),o?(o.push(v,g,P),o):[v,g,P]}function Yi(n,t,e,i,r){let s=[];for(let o=0,a=e.length;o<a;++o){const l=e[o];s=xe(n,t,l,i,r,2*o,s),t=l[l.length-1]}return s}function Wt(n,t,e,i,r,s,o){let a,l;const h=(e-t)/i;if(h===1)a=t;else if(h===2)a=t,l=r;else if(h!==0){let c=n[t],u=n[t+1],d=0;const f=[0];for(let v=t+i;v<e;v+=i){const P=n[v],C=n[v+1];d+=Math.sqrt((P-c)*(P-c)+(C-u)*(C-u)),f.push(d),c=P,u=C}const g=r*d,p=nr(f,g);p<0?(l=(g-f[-p-2])/(f[-p-1]-f[-p-2]),a=t+(-p-2)*i):a=t+p*i}o=o>1?o:2,s=s||new Array(o);for(let c=0;c<o;++c)s[c]=a===void 0?NaN:l===void 0?n[a+c]:de(n[a+c],n[a+i+c],l);return s}function Pe(n,t,e,i,r,s){if(e==t)return null;let o;if(r<n[t+i-1])return s?(o=n.slice(t,t+i),o[i-1]=r,o):null;if(n[e-1]<r)return s?(o=n.slice(e-i,e),o[i-1]=r,o):null;if(r==n[t+i-1])return n.slice(t,t+i);let a=t/i,l=e/i;for(;a<l;){const d=a+l>>1;r<n[(d+1)*i-1]?l=d:a=d+1}const h=n[a*i-1];if(r==h)return n.slice((a-1)*i,(a-1)*i+i);const c=n[(a+1)*i-1],u=(r-h)/(c-h);o=[];for(let d=0;d<i-1;++d)o.push(de(n[(a-1)*i+d],n[a*i+d],u));return o.push(r),o}function rs(n,t,e,i,r,s,o){if(o)return Pe(n,t,e[e.length-1],i,r,s);let a;if(r<n[i-1])return s?(a=n.slice(0,i),a[i-1]=r,a):null;if(n[n.length-1]<r)return s?(a=n.slice(n.length-i),a[i-1]=r,a):null;for(let l=0,h=e.length;l<h;++l){const c=e[l];if(t!=c){if(r<n[t+i-1])return null;if(r<=n[c-1])return Pe(n,t,c,i,r,!1);t=c}}return null}function ss(n,t,e,i){for(;t<e-i;){for(let r=0;r<i;++r){const s=n[t+r];n[t+r]=n[e-i+r],n[e-i+r]=s}t+=i,e-=i}}function Me(n,t,e,i){let r=0,s=n[e-i],o=n[e-i+1];for(;t<e;t+=i){const a=n[t],l=n[t+1];r+=(a-s)*(l+o),s=a,o=l}return r===0?void 0:r>0}function Se(n,t,e,i,r){r=r!==void 0?r:!1;for(let s=0,o=e.length;s<o;++s){const a=e[s],l=Me(n,t,a,i);if(s===0){if(r&&l||!r&&!l)return!1}else if(r&&!l||!r&&l)return!1;t=a}return!0}function Bi(n,t,e,i,r){for(let s=0,o=e.length;s<o;++s){const a=e[s];if(!Se(n,t,a,i,r))return!1;a.length&&(t=a[a.length-1])}return!0}function qt(n,t,e,i,r){r=r!==void 0?r:!1;for(let s=0,o=e.length;s<o;++s){const a=e[s],l=Me(n,t,a,i);(s===0?r&&l||!r&&!l:r&&!l||!r&&l)&&ss(n,t,a,i),t=a}return t}function $e(n,t,e,i,r){for(let s=0,o=e.length;s<o;++s)t=qt(n,t,e[s],i,r);return t}function os(n,t){const e=[];let i=0,r=0,s;for(let o=0,a=t.length;o<a;++o){const l=t[o],h=Me(n,i,l,2);if(s===void 0&&(s=h),h===s)e.push(t.slice(r,o+1));else{if(e.length===0)continue;e[e.length-1].push(t[r])}r=o+1,i=l}return e}function Dt(n,t,e,i,r,s,o){const a=(e-t)/i;if(a<3){for(;t<e;t+=i)s[o++]=n[t],s[o++]=n[t+1];return o}const l=new Array(a);l[0]=1,l[a-1]=1;const h=[t,e-i];let c=0;for(;h.length>0;){const u=h.pop(),d=h.pop();let f=0;const g=n[d],p=n[d+1],v=n[u],P=n[u+1];for(let C=d+i;C<u;C+=i){const G=n[C],M=n[C+1],tt=Cr(G,M,g,p,v,P);tt>f&&(c=C,f=tt)}f>r&&(l[(c-t)/i]=1,d+i<c&&h.push(d,c),c+i<u&&h.push(c,u))}for(let u=0;u<a;++u)l[u]&&(s[o++]=n[t+u*i],s[o++]=n[t+u*i+1]);return o}function Vi(n,t,e,i,r,s,o,a){for(let l=0,h=e.length;l<h;++l){const c=e[l];o=Dt(n,t,c,i,r,s,o),a.push(o),t=c}return o}function ct(n,t){return t*Math.round(n/t)}function as(n,t,e,i,r,s,o){if(t==e)return o;let a=ct(n[t],r),l=ct(n[t+1],r);t+=i,s[o++]=a,s[o++]=l;let h,c;do if(h=ct(n[t],r),c=ct(n[t+1],r),t+=i,t==e)return s[o++]=h,s[o++]=c,o;while(h==a&&c==l);for(;t<e;){const u=ct(n[t],r),d=ct(n[t+1],r);if(t+=i,u==h&&d==c)continue;const f=h-a,g=c-l,p=u-a,v=d-l;if(f*v==g*p&&(f<0&&p<f||f==p||f>0&&p>f)&&(g<0&&v<g||g==v||g>0&&v>g)){h=u,c=d;continue}s[o++]=h,s[o++]=c,a=h,l=c,h=u,c=d}return s[o++]=h,s[o++]=c,o}function Ae(n,t,e,i,r,s,o,a){for(let l=0,h=e.length;l<h;++l){const c=e[l];o=as(n,t,c,i,r,s,o),a.push(o),t=c}return o}function ls(n,t,e,i,r,s,o,a){for(let l=0,h=e.length;l<h;++l){const c=e[l],u=[];o=Ae(n,t,c,i,r,s,o,u),a.push(u),t=c[c.length-1]}return o}class q extends ji{constructor(t){super(),this.geometries_=t,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(Ot),this.changeEventsKeys_.length=0}listenGeometriesChange_(){const t=this.geometries_;for(let e=0,i=t.length;e<i;++e)this.changeEventsKeys_.push(Ct(t[e],le.CHANGE,this.changed,this))}clone(){const t=new q(Fe(this.geometries_));return t.applyProperties(this),t}closestPointXY(t,e,i,r){if(r<X(this.getExtent(),t,e))return r;const s=this.geometries_;for(let o=0,a=s.length;o<a;++o)r=s[o].closestPointXY(t,e,i,r);return r}containsXY(t,e){const i=this.geometries_;for(let r=0,s=i.length;r<s;++r)if(i[r].containsXY(t,e))return!0;return!1}computeExtent(t){ce(t);const e=this.geometries_;for(let i=0,r=e.length;i<r;++i)ur(t,e[i].getExtent());return t}getGeometries(){return Fe(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let t=[];const e=this.geometries_;for(let i=0,r=e.length;i<r;++i)e[i].getType()===this.getType()?t=t.concat(e[i].getGeometriesArrayRecursive()):t.push(e[i]);return t}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=[],i=this.geometries_;let r=!1;for(let s=0,o=i.length;s<o;++s){const a=i[s],l=a.getSimplifiedGeometry(t);e.push(l),l!==a&&(r=!0)}return r?new q(e):(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getType(){return"GeometryCollection"}intersectsExtent(t){const e=this.geometries_;for(let i=0,r=e.length;i<r;++i)if(e[i].intersectsExtent(t))return!0;return!1}isEmpty(){return this.geometries_.length===0}rotate(t,e){const i=this.geometries_;for(let r=0,s=i.length;r<s;++r)i[r].rotate(t,e);this.changed()}scale(t,e,i){i||(i=jt(this.getExtent()));const r=this.geometries_;for(let s=0,o=r.length;s<o;++s)r[s].scale(t,e,i);this.changed()}setGeometries(t){this.setGeometriesArray(Fe(t))}setGeometriesArray(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()}applyTransform(t){const e=this.geometries_;for(let i=0,r=e.length;i<r;++i)e[i].applyTransform(t);this.changed()}translate(t,e){const i=this.geometries_;for(let r=0,s=i.length;r<s;++r)i[r].translate(t,e);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function Fe(n){return n.map(t=>t.clone())}function zi(n,t,e,i){let r=0;const s=n[e-i],o=n[e-i+1];let a=0,l=0;for(;t<e;t+=i){const h=n[t]-s,c=n[t+1]-o;r+=l*h-a*c,a=h,l=c}return r/2}function Ji(n,t,e,i){let r=0;for(let s=0,o=e.length;s<o;++s){const a=e[s];r+=zi(n,t,a,i),t=a}return r}function hs(n,t,e,i){let r=0;for(let s=0,o=e.length;s<o;++s){const a=e[s];r+=Ji(n,t,a,i),t=a[a.length-1]}return r}function Wi(n,t,e,i,r,s,o){const a=n[t],l=n[t+1],h=n[e]-a,c=n[e+1]-l;let u;if(h===0&&c===0)u=t;else{const d=((r-a)*h+(s-l)*c)/(h*h+c*c);if(d>1)u=e;else if(d>0){for(let f=0;f<i;++f)o[f]=de(n[t+f],n[e+f],d);o.length=i;return}else u=t}for(let d=0;d<i;++d)o[d]=n[u+d];o.length=i}function Ge(n,t,e,i,r){let s=n[t],o=n[t+1];for(t+=i;t<e;t+=i){const a=n[t],l=n[t+1],h=Y(s,o,a,l);h>r&&(r=h),s=a,o=l}return r}function Ie(n,t,e,i,r){for(let s=0,o=e.length;s<o;++s){const a=e[s];r=Ge(n,t,a,i,r),t=a}return r}function cs(n,t,e,i,r){for(let s=0,o=e.length;s<o;++s){const a=e[s];r=Ie(n,t,a,i,r),t=a[a.length-1]}return r}function Le(n,t,e,i,r,s,o,a,l,h,c){if(t==e)return h;let u,d;if(r===0){if(d=Y(o,a,n[t],n[t+1]),d<h){for(u=0;u<i;++u)l[u]=n[t+u];return l.length=i,d}return h}c=c||[NaN,NaN];let f=t+i;for(;f<e;)if(Wi(n,f-i,f,i,o,a,c),d=Y(o,a,c[0],c[1]),d<h){for(h=d,u=0;u<i;++u)l[u]=c[u];l.length=i,f+=i}else f+=i*Math.max((Math.sqrt(d)-Math.sqrt(h))/r|0,1);if(s&&(Wi(n,e-i,t,i,o,a,c),d=Y(o,a,c[0],c[1]),d<h)){for(h=d,u=0;u<i;++u)l[u]=c[u];l.length=i}return h}function Re(n,t,e,i,r,s,o,a,l,h,c){c=c||[NaN,NaN];for(let u=0,d=e.length;u<d;++u){const f=e[u];h=Le(n,t,f,i,r,s,o,a,l,h,c),t=f}return h}function us(n,t,e,i,r,s,o,a,l,h,c){c=c||[NaN,NaN];for(let u=0,d=e.length;u<d;++u){const f=e[u];h=Re(n,t,f,i,r,s,o,a,l,h,c),t=f[f.length-1]}return h}function Zt(n,t,e,i,r){r=r!==void 0?r:[];let s=0;for(let o=t;o<e;o+=i)r[s++]=n.slice(o,o+i);return r.length=s,r}function Te(n,t,e,i,r){r=r!==void 0?r:[];let s=0;for(let o=0,a=e.length;o<a;++o){const l=e[o];r[s++]=Zt(n,t,l,i,r[s]),t=l}return r.length=s,r}function ds(n,t,e,i,r){r=r!==void 0?r:[];let s=0;for(let o=0,a=e.length;o<a;++o){const l=e[o];r[s++]=l.length===1&&l[0]===t?[]:Te(n,t,l,i,r[s]),t=l[l.length-1]}return r.length=s,r}class Pt extends z{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,e!==void 0&&!Array.isArray(t[0])?this.setFlatCoordinates(e,t):this.setCoordinates(t,e)}clone(){return new Pt(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,i,r){return r<X(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Ge(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Le(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,r))}getArea(){return zi(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return Zt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=Dt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new Pt(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Jt(this.flatCoordinates,0,t,this.stride),this.changed()}}function qi(n,t,e,i,r){let s;for(t+=i;t<e;t+=i)if(s=r(n.slice(t-i,t),n.slice(t,t+i)),s)return s;return!1}function Kt(n,t,e,i,r,s){return s=s??vi(he(),n,t,e,i),_r(r,s)?s[0]>=r[0]&&s[2]<=r[2]||s[1]>=r[1]&&s[3]<=r[3]?!0:qi(n,t,e,i,function(o,a){return wr(r,o,a)}):!1}function fs(n,t,e,i,r){for(let s=0,o=e.length;s<o;++s){if(Kt(n,t,e[s],i,r))return!0;t=e[s]}return!1}function gs(n,t,e,i,r){return!!(Kt(n,t,e,i,r)||W(n,t,e,i,r[0],r[1])||W(n,t,e,i,r[0],r[3])||W(n,t,e,i,r[2],r[1])||W(n,t,e,i,r[2],r[3]))}function Di(n,t,e,i,r){if(!gs(n,t,e[0],i,r))return!1;if(e.length===1)return!0;for(let s=1,o=e.length;s<o;++s)if(is(n,e[s-1],e[s],i,r)&&!Kt(n,e[s-1],e[s],i,r))return!1;return!0}function ps(n,t,e,i,r){for(let s=0,o=e.length;s<o;++s){const a=e[s];if(Di(n,t,a,i,r))return!0;t=a[a.length-1]}return!1}function Zi(n,t,e,i){let r=n[t],s=n[t+1],o=0;for(let a=t+i;a<e;a+=i){const l=n[a],h=n[a+1];o+=Math.sqrt((l-r)*(l-r)+(h-s)*(h-s)),r=l,s=h}return o}class D extends z{constructor(t,e){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,e!==void 0&&!Array.isArray(t[0])?this.setFlatCoordinates(e,t):this.setCoordinates(t,e)}appendCoordinate(t){F(this.flatCoordinates,t),this.changed()}clone(){const t=new D(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,r){return r<X(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Ge(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Le(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,r))}forEachSegment(t){return qi(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinateAtM(t,e){return this.layout!="XYM"&&this.layout!="XYZM"?null:(e=e!==void 0?e:!1,Pe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e))}getCoordinates(){return Zt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(t,e){return Wt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)}getLength(){return Zi(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(t){const e=[];return e.length=Dt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new D(e,"XY")}getType(){return"LineString"}intersectsExtent(t){return Kt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,this.getExtent())}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Jt(this.flatCoordinates,0,t,this.stride),this.changed()}}class Mt extends z{constructor(t,e,i){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,e);else if(e!==void 0&&i)this.setFlatCoordinates(e,t),this.ends_=i;else{const r=t,s=[],o=[];for(let l=0,h=r.length;l<h;++l){const c=r[l];F(s,c.getFlatCoordinates()),o.push(s.length)}const a=r.length===0?this.getLayout():r[0].getLayout();this.setFlatCoordinates(a,s),this.ends_=o}}appendLineString(t){F(this.flatCoordinates,t.getFlatCoordinates().slice()),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new Mt(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,i,r){return r<X(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Ie(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Re(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,i,r))}getCoordinateAtM(t,e,i){return this.layout!="XYM"&&this.layout!="XYZM"||this.flatCoordinates.length===0?null:(e=e!==void 0?e:!1,i=i!==void 0?i:!1,rs(this.flatCoordinates,0,this.ends_,this.stride,t,e,i))}getCoordinates(){return Te(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(t){return t<0||this.ends_.length<=t?null:new D(this.flatCoordinates.slice(t===0?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLineStrings(){const t=this.flatCoordinates,e=this.ends_,i=this.layout,r=[];let s=0;for(let o=0,a=e.length;o<a;++o){const l=e[o],h=new D(t.slice(s,l),i);r.push(h),s=l}return r}getLength(){const t=this.ends_;let e=0,i=0;for(let r=0,s=t.length;r<s;++r)i+=Zi(this.flatCoordinates,e,t[r],this.stride),e=t[r];return i}getFlatMidpoints(){const t=[],e=this.flatCoordinates;let i=0;const r=this.ends_,s=this.stride;for(let o=0,a=r.length;o<a;++o){const l=r[o],h=Wt(e,i,l,s,.5);F(t,h),i=l}return t}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=Vi(this.flatCoordinates,0,this.ends_,this.stride,t,e,0,i),new Mt(e,"XY",i)}getType(){return"MultiLineString"}intersectsExtent(t){return fs(this.flatCoordinates,0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const i=xt(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=i.length===0?0:i[i.length-1],this.changed()}}class Z extends z{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new Z(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,r){const s=this.flatCoordinates,o=Y(t,e,s[0],s[1]);if(o<r){const a=this.stride;for(let l=0;l<a;++l)i[l]=s[l];return i.length=a,o}return r}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return _i(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return pi(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=es(this.flatCoordinates,0,t,this.stride),this.changed()}}class St extends z{constructor(t,e){super(),e&&!Array.isArray(t[0])?this.setFlatCoordinates(e,t):this.setCoordinates(t,e)}appendPoint(t){F(this.flatCoordinates,t.getFlatCoordinates()),this.changed()}clone(){const t=new St(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,r){if(r<X(this.getExtent(),t,e))return r;const s=this.flatCoordinates,o=this.stride;for(let a=0,l=s.length;a<l;a+=o){const h=Y(t,e,s[a],s[a+1]);if(h<r){r=h;for(let c=0;c<o;++c)i[c]=s[a+c];i.length=o}}return r}getCoordinates(){return Zt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(t){const e=this.flatCoordinates.length/this.stride;return t<0||e<=t?null:new Z(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)}getPoints(){const t=this.flatCoordinates,e=this.layout,i=this.stride,r=[];for(let s=0,o=t.length;s<o;s+=i){const a=new Z(t.slice(s,s+i),e);r.push(a)}return r}getType(){return"MultiPoint"}intersectsExtent(t){const e=this.flatCoordinates,i=this.stride;for(let r=0,s=e.length;r<s;r+=i){const o=e[r],a=e[r+1];if(pi(t,o,a))return!0}return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Jt(this.flatCoordinates,0,t,this.stride),this.changed()}}class K extends z{constructor(t,e,i){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,e!==void 0&&i?(this.setFlatCoordinates(e,t),this.ends_=i):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?F(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new K(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,i,r){return r<X(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Ie(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Re(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,r))}containsXY(t,e){return Ee(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return Ji(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return t!==void 0?(e=this.getOrientedFlatCoordinates().slice(),qt(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,Te(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=jt(this.getExtent());this.flatInteriorPoint_=xe(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new Z(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new Pt(this.flatCoordinates.slice(t===0?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,i=this.ends_,r=[];let s=0;for(let o=0,a=i.length;o<a;++o){const l=i[o],h=new Pt(e.slice(s,l),t);r.push(h),s=l}return r}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;Se(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=qt(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=Ae(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,i),new K(e,"XY",i)}getType(){return"Polygon"}intersectsExtent(t){return Di(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const i=xt(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=i.length===0?0:i[i.length-1],this.changed()}}class $t extends z{constructor(t,e,i){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!i&&!Array.isArray(t[0])){const r=t,s=[],o=[];for(let a=0,l=r.length;a<l;++a){const h=r[a],c=s.length,u=h.getEnds();for(let d=0,f=u.length;d<f;++d)u[d]+=c;F(s,h.getFlatCoordinates()),o.push(u)}e=r.length===0?this.getLayout():r[0].getLayout(),t=s,i=o}e!==void 0&&i?(this.setFlatCoordinates(e,t),this.endss_=i):this.setCoordinates(t,e)}appendPolygon(t){let e;if(!this.flatCoordinates)this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();else{const i=this.flatCoordinates.length;F(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(let r=0,s=e.length;r<s;++r)e[r]+=i}this.endss_.push(e),this.changed()}clone(){const t=this.endss_.length,e=new Array(t);for(let r=0;r<t;++r)e[r]=this.endss_[r].slice();const i=new $t(this.flatCoordinates.slice(),this.layout,e);return i.applyProperties(this),i}closestPointXY(t,e,i,r){return r<X(this.getExtent(),t,e)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(cs(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),us(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,i,r))}containsXY(t,e){return ns(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)}getArea(){return hs(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(t){let e;return t!==void 0?(e=this.getOrientedFlatCoordinates().slice(),$e(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,ds(e,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const t=Xi(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Yi(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new St(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;Bi(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=$e(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=ls(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),e,0,i),new $t(e,"XY",i)}getPolygon(t){if(t<0||this.endss_.length<=t)return null;let e;if(t===0)e=0;else{const s=this.endss_[t-1];e=s[s.length-1]}const i=this.endss_[t].slice(),r=i[i.length-1];if(e!==0)for(let s=0,o=i.length;s<o;++s)i[s]-=e;return new K(this.flatCoordinates.slice(e,r),this.layout,i)}getPolygons(){const t=this.layout,e=this.flatCoordinates,i=this.endss_,r=[];let s=0;for(let o=0,a=i.length;o<a;++o){const l=i[o].slice(),h=l[l.length-1];if(s!==0)for(let u=0,d=l.length;u<d;++u)l[u]-=s;const c=new K(e.slice(s,h),t,l);r.push(c),s=h}return r}getType(){return"MultiPolygon"}intersectsExtent(t){return ps(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);const i=Ui(this.flatCoordinates,0,t,this.stride,this.endss_);if(i.length===0)this.flatCoordinates.length=0;else{const r=i[i.length-1];this.flatCoordinates.length=r.length===0?0:r[r.length-1]}this.changed()}}const Ki=Ti();class Q{constructor(t,e,i,r,s,o){this.styleFunction,this.extent_,this.id_=o,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i||null,this.properties_=s,this.squaredTolerance_,this.stride_=r,this.simplifiedGeometry_}get(t){return this.properties_[t]}getExtent(){return this.extent_||(this.extent_=this.type_==="Point"?_i(this.flatCoordinates_):ue(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const t=jt(this.getExtent());this.flatInteriorPoints_=xe(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const t=os(this.flatCoordinates_,this.ends_),e=Xi(this.flatCoordinates_,0,t,2);this.flatInteriorPoints_=Yi(this.flatCoordinates_,0,t,2,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=Wt(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const t=this.flatCoordinates_;let e=0;const i=this.ends_;for(let r=0,s=i.length;r<s;++r){const o=i[r],a=Wt(t,e,o,2,.5);F(this.flatMidpoints_,a),e=o}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(t){return this}simplifyTransformed(t,e){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(t){t=$(t);const e=t.getExtent(),i=t.getWorldExtent();if(e&&i){const r=Ht(i)/Ht(e);Ni(Ki,i[0],i[3],r,-r,0,0,0),Oi(this.flatCoordinates_,0,this.flatCoordinates_.length,2,Ki,this.flatCoordinates_)}}applyTransform(t){t(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){var t;return new Q(this.type_,this.flatCoordinates_.slice(),(t=this.ends_)==null?void 0:t.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=li((t,e)=>{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const i=this.simplifiedGeometry_.getFlatCoordinates();let r;switch(this.type_){case"LineString":i.length=Dt(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,i,0),r=[i.length];break;case"MultiLineString":r=[],i.length=Vi(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,i,0,r);break;case"Polygon":r=[],i.length=Ae(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),i,0,r);break}return r&&(this.simplifiedGeometry_=new Q(this.type_,i,r,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_}),this}}Q.prototype.getFlatCoordinates=Q.prototype.getOrientedFlatCoordinates;class Qi{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=st,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let i=e.dataProjection?$(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()==="tile-pixels"&&(i=$(i),i.setWorldExtent(e.extent)),e={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},t)}getType(){return y()}readFeature(t,e){return y()}readFeatures(t,e){return y()}readGeometry(t,e){return y()}readProjection(t){return y()}writeFeature(t,e){return y()}writeFeatures(t,e){return y()}writeGeometry(t,e){return y()}}function At(n,t,e){const i=e?$(e.featureProjection):null,r=e?$(e.dataProjection):null;let s=n;if(i&&r&&!qr(i,r)){t&&(s=n.clone());const o=t?i:r,a=t?r:i;o.getUnits()==="tile-pixels"?s.transform(o,a):s.applyTransform(be(o,a))}if(t&&e&&e.decimals!==void 0){const o=Math.pow(10,e.decimals),a=function(l){for(let h=0,c=l.length;h<c;++h)l[h]=Math.round(l[h]*o)/o;return l};s===n&&(s=n.clone()),s.applyTransform(a)}return s}const ys={Point:Z,LineString:D,Polygon:K,MultiPoint:St,MultiLineString:Mt,MultiPolygon:$t};function ms(n,t,e){return Array.isArray(t[0])?(Bi(n,0,t,e)||(n=n.slice(),$e(n,0,t,e)),n):(Se(n,0,t,e)||(n=n.slice(),qt(n,0,t,e)),n)}function tn(n,t){var s;const e=n.geometry;if(!e)return[];if(Array.isArray(e))return e.map(o=>tn({...n,geometry:o})).flat();const i=e.type==="MultiPolygon"?"Polygon":e.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=e.layout.length;return At(new Q(i,i==="Polygon"?ms(e.flatCoordinates,e.ends,r):e.flatCoordinates,(s=e.ends)==null?void 0:s.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,t)}function Ne(n,t){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>Ne(r,t));return new q(i)}const e=ys[n.type];return At(new e(n.flatCoordinates,n.layout||"XY",n.ends),!1,t)}class _s extends Qi{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(Qt(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(Qt(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return y()}readFeaturesFromObject(t,e){return y()}readGeometry(t,e){return this.readGeometryFromObject(Qt(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return y()}readProjection(t){return this.readProjectionFromObject(Qt(t))}readProjectionFromObject(t){return y()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return y()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return y()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return y()}}function Qt(n){if(typeof n=="string"){const t=JSON.parse(n);return t||null}return n!==null?n:null}class vs extends _s{constructor(t){t=t||{},super(),this.dataProjection=$(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=$(t.featureProjection)),t.featureClass&&(this.featureClass=t.featureClass),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let i=null;t.type==="Feature"?i=t:i={type:"Feature",geometry:t,properties:null};const r=Oe(i.geometry);if(this.featureClass===Q)return tn({geometry:r,id:i.id,properties:i.properties},e);const s=new st;return this.geometryName_?s.setGeometryName(this.geometryName_):this.extractGeometryName_&&i.geometry_name&&s.setGeometryName(i.geometry_name),s.setGeometry(Ne(r,e)),"id"in i&&s.setId(i.id),i.properties&&s.setProperties(i.properties,!0),s}readFeaturesFromObject(t,e){const i=t;let r=null;if(i.type==="FeatureCollection"){const s=t;r=[];const o=s.features;for(let a=0,l=o.length;a<l;++a){const h=this.readFeatureFromObject(o[a],e);h&&r.push(h)}}else r=[this.readFeatureFromObject(t,e)];return r.flat()}readGeometryFromObject(t,e){return ws(t,e)}readProjectionFromObject(t){const e=t.crs;let i;if(e)if(e.type=="name")i=$(e.properties.name);else if(e.type==="EPSG")i=$("EPSG:"+e.properties.code);else throw new Error("Unknown SRS type");else i=this.dataProjection;return i}writeFeatureObject(t,e){e=this.adaptOptions(e);const i={type:"Feature",geometry:null,properties:null},r=t.getId();if(r!==void 0&&(i.id=r),!t.hasProperties())return i;const s=t.getProperties(),o=t.getGeometry();return o&&(i.geometry=ke(o,e),delete s[t.getGeometryName()]),ci(s)||(i.properties=s),i}writeFeaturesObject(t,e){e=this.adaptOptions(e);const i=[];for(let r=0,s=t.length;r<s;++r)i.push(this.writeFeatureObject(t[r],e));return{type:"FeatureCollection",features:i}}writeGeometryObject(t,e){return ke(t,this.adaptOptions(e))}}function Oe(n,t){if(!n)return null;let e;switch(n.type){case"Point":{e=bs(n);break}case"LineString":{e=Es(n);break}case"Polygon":{e=Ss(n);break}case"MultiPoint":{e=Ps(n);break}case"MultiLineString":{e=xs(n);break}case"MultiPolygon":{e=Ms(n);break}case"GeometryCollection":{e=Cs(n);break}default:throw new Error("Unsupported GeoJSON type: "+n.type)}return e}function ws(n,t){const e=Oe(n);return Ne(e,t)}function Cs(n,t){return n.geometries.map(function(i){return Oe(i)})}function bs(n){const t=n.coordinates;return{type:"Point",flatCoordinates:t,layout:J(t.length)}}function Es(n){var i;const t=n.coordinates,e=t.flat();return{type:"LineString",flatCoordinates:e,ends:[e.length],layout:J(((i=t[0])==null?void 0:i.length)||2)}}function xs(n){var s,o;const t=n.coordinates,e=((o=(s=t[0])==null?void 0:s[0])==null?void 0:o.length)||2,i=[],r=xt(i,0,t,e);return{type:"MultiLineString",flatCoordinates:i,ends:r,layout:J(e)}}function Ps(n){var e;const t=n.coordinates;return{type:"MultiPoint",flatCoordinates:t.flat(),layout:J(((e=t[0])==null?void 0:e.length)||2)}}function Ms(n){var s,o;const t=n.coordinates,e=[],i=((o=(s=t[0])==null?void 0:s[0])==null?void 0:o[0].length)||2,r=Ui(e,0,t,i);return{type:"MultiPolygon",flatCoordinates:e,ends:r,layout:J(i)}}function Ss(n){var s,o;const t=n.coordinates,e=[],i=(o=(s=t[0])==null?void 0:s[0])==null?void 0:o.length,r=xt(e,0,t,i);return{type:"Polygon",flatCoordinates:e,ends:r,layout:J(i)}}function ke(n,t){n=At(n,!0,t);const e=n.getType();let i;switch(e){case"Point":{i=Ls(n);break}case"LineString":{i=As(n);break}case"Polygon":{i=Rs(n,t);break}case"MultiPoint":{i=Gs(n);break}case"MultiLineString":{i=Fs(n);break}case"MultiPolygon":{i=Is(n,t);break}case"GeometryCollection":{i=$s(n,t);break}case"Circle":{i={type:"GeometryCollection",geometries:[]};break}default:throw new Error("Unsupported geometry type: "+e)}return i}function $s(n,t){return t=Object.assign({},t),delete t.featureProjection,{type:"GeometryCollection",geometries:n.getGeometriesArray().map(function(i){return ke(i,t)})}}function As(n,t){return{type:"LineString",coordinates:n.getCoordinates()}}function Fs(n,t){return{type:"MultiLineString",coordinates:n.getCoordinates()}}function Gs(n,t){return{type:"MultiPoint",coordinates:n.getCoordinates()}}function Is(n,t){let e;return t&&(e=t.rightHanded),{type:"MultiPolygon",coordinates:n.getCoordinates(e)}}function Ls(n,t){return{type:"Point",coordinates:n.getCoordinates()}}function Rs(n,t){let e;return t&&(e=t.rightHanded),{type:"Polygon",coordinates:n.getCoordinates(e)}}const Ts=(n,t)=>new vs().writeFeaturesObject(n,t);class Ns extends Qi{constructor(){super()}getType(){return"text"}readFeature(t,e){return this.readFeatureFromText(te(t),this.adaptOptions(e))}readFeatureFromText(t,e){return y()}readFeatures(t,e){return this.readFeaturesFromText(te(t),this.adaptOptions(e))}readFeaturesFromText(t,e){return y()}readGeometry(t,e){return this.readGeometryFromText(te(t),this.adaptOptions(e))}readGeometryFromText(t,e){return y()}readProjection(t){return this.readProjectionFromText(te(t))}readProjectionFromText(t){return this.dataProjection}writeFeature(t,e){return this.writeFeatureText(t,this.adaptOptions(e))}writeFeatureText(t,e){return y()}writeFeatures(t,e){return this.writeFeaturesText(t,this.adaptOptions(e))}writeFeaturesText(t,e){return y()}writeGeometry(t,e){return this.writeGeometryText(t,this.adaptOptions(e))}writeGeometryText(t,e){return y()}}function te(n){return typeof n=="string"?n:""}const Os={POINT:Z,LINESTRING:D,POLYGON:K,MULTIPOINT:St,MULTILINESTRING:Mt,MULTIPOLYGON:$t},en="EMPTY",nn="Z",rn="M",ks="ZM",m={START:0,TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6},js={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"};class Hs{constructor(t){this.wkt=t,this.index_=-1}isAlpha_(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"}isNumeric_(t,e){return e=e!==void 0?e:!1,t>="0"&&t<="9"||t=="."&&!e}isWhiteSpace_(t){return t==" "||t==" "||t=="\r"||t==`
62
- `}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const t=this.nextChar_(),e=this.index_;let i=t,r;if(t=="(")r=m.LEFT_PAREN;else if(t==",")r=m.COMMA;else if(t==")")r=m.RIGHT_PAREN;else if(this.isNumeric_(t)||t=="-")r=m.NUMBER,i=this.readNumber_();else if(this.isAlpha_(t))r=m.TEXT,i=this.readText_();else{if(this.isWhiteSpace_(t))return this.nextToken();if(t==="")r=m.EOF;else throw new Error("Unexpected character: "+t)}return{position:e,value:i,type:r}}readNumber_(){let t;const e=this.index_;let i=!1,r=!1;do t=="."?i=!0:(t=="e"||t=="E")&&(r=!0),t=this.nextChar_();while(this.isNumeric_(t,i)||!r&&(t=="e"||t=="E")||r&&(t=="-"||t=="+"));return parseFloat(this.wkt.substring(e,this.index_--))}readText_(){let t;const e=this.index_;do t=this.nextChar_();while(this.isAlpha_(t));return this.wkt.substring(e,this.index_--).toUpperCase()}}class Us{constructor(t){this.lexer_=t,this.token_={position:0,type:m.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(t){return this.token_.type==t}match(t){const e=this.isTokenType(t);return e&&this.consume_(),e}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let t="XY";const e=this.token_;if(this.isTokenType(m.TEXT)){const i=e.value;i===nn?t="XYZ":i===rn?t="XYM":i===ks&&(t="XYZM"),t!=="XY"&&this.consume_()}return t}parseGeometryCollectionText_(){if(this.match(m.LEFT_PAREN)){const t=[];do t.push(this.parseGeometry_());while(this.match(m.COMMA));if(this.match(m.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(m.LEFT_PAREN)){const t=this.parsePoint_();if(this.match(m.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(m.LEFT_PAREN)){const t=this.parsePointList_();if(this.match(m.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(m.LEFT_PAREN)){const t=this.parseLineStringTextList_();if(this.match(m.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(m.LEFT_PAREN)){let t;if(this.token_.type==m.LEFT_PAREN?t=this.parsePointTextList_():t=this.parsePointList_(),this.match(m.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(m.LEFT_PAREN)){const t=this.parseLineStringTextList_();if(this.match(m.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(m.LEFT_PAREN)){const t=this.parsePolygonTextList_();if(this.match(m.RIGHT_PAREN))return t}throw new Error(this.formatErrorMessage_())}parsePoint_(){const t=[],e=this.layout_.length;for(let i=0;i<e;++i){const r=this.token_;if(this.match(m.NUMBER))t.push(r.value);else break}if(t.length==e)return t;throw new Error(this.formatErrorMessage_())}parsePointList_(){const t=[this.parsePoint_()];for(;this.match(m.COMMA);)t.push(this.parsePoint_());return t}parsePointTextList_(){const t=[this.parsePointText_()];for(;this.match(m.COMMA);)t.push(this.parsePointText_());return t}parseLineStringTextList_(){const t=[this.parseLineStringText_()];for(;this.match(m.COMMA);)t.push(this.parseLineStringText_());return t}parsePolygonTextList_(){const t=[this.parsePolygonText_()];for(;this.match(m.COMMA);)t.push(this.parsePolygonText_());return t}isEmptyGeometry_(){const t=this.isTokenType(m.TEXT)&&this.token_.value==en;return t&&this.consume_(),t}formatErrorMessage_(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"}parseGeometry_(){const t=this.token_;if(this.match(m.TEXT)){const e=t.value;this.layout_=this.parseGeometryLayout_();const i=this.isEmptyGeometry_();if(e=="GEOMETRYCOLLECTION"){if(i)return new q([]);const o=this.parseGeometryCollectionText_();return new q(o)}const r=Os[e];if(!r)throw new Error("Invalid geometry type: "+e);let s;if(i)e=="POINT"?s=[NaN,NaN]:s=[];else switch(e){case"POINT":{s=this.parsePointText_();break}case"LINESTRING":{s=this.parseLineStringText_();break}case"POLYGON":{s=this.parsePolygonText_();break}case"MULTIPOINT":{s=this.parseMultiPointText_();break}case"MULTILINESTRING":{s=this.parseMultiLineStringText_();break}case"MULTIPOLYGON":{s=this.parseMultiPolygonText_();break}}return new r(s,this.layout_)}throw new Error(this.formatErrorMessage_())}}class Xs extends Ns{constructor(t){super(),t=t||{},this.splitCollection_=t.splitCollection!==void 0?t.splitCollection:!1}parse_(t){const e=new Hs(t);return new Us(e).parse()}readFeatureFromText(t,e){const i=this.readGeometryFromText(t,e),r=new st;return r.setGeometry(i),r}readFeaturesFromText(t,e){let i=[];const r=this.readGeometryFromText(t,e);this.splitCollection_&&r.getType()=="GeometryCollection"?i=r.getGeometriesArray():i=[r];const s=[];for(let o=0,a=i.length;o<a;++o){const l=new st;l.setGeometry(i[o]),s.push(l)}return s}readGeometryFromText(t,e){const i=this.parse_(t);return At(i,!1,e)}writeFeatureText(t,e){const i=t.getGeometry();return i?this.writeGeometryText(i,e):""}writeFeaturesText(t,e){if(t.length==1)return this.writeFeatureText(t[0],e);const i=[];for(let s=0,o=t.length;s<o;++s)i.push(t[s].getGeometry());const r=new q(i);return this.writeGeometryText(r,e)}writeGeometryText(t,e){return an(At(t,!0,e))}}function sn(n){const t=n.getCoordinates();return t.length===0?"":t.join(" ")}function Ys(n){const t=[],e=n.getPoints();for(let i=0,r=e.length;i<r;++i)t.push("("+sn(e[i])+")");return t.join(",")}function Bs(n){const t=[],e=n.getGeometries();for(let i=0,r=e.length;i<r;++i)t.push(an(e[i]));return t.join(",")}function je(n){const t=n.getCoordinates(),e=[];for(let i=0,r=t.length;i<r;++i)e.push(t[i].join(" "));return e.join(",")}function Vs(n){const t=[],e=n.getLineStrings();for(let i=0,r=e.length;i<r;++i)t.push("("+je(e[i])+")");return t.join(",")}function on(n){const t=[],e=n.getLinearRings();for(let i=0,r=e.length;i<r;++i)t.push("("+je(e[i])+")");return t.join(",")}function zs(n){const t=[],e=n.getPolygons();for(let i=0,r=e.length;i<r;++i)t.push("("+on(e[i])+")");return t.join(",")}function Js(n){const t=n.getLayout();let e="";return(t==="XYZ"||t==="XYZM")&&(e+=nn),(t==="XYM"||t==="XYZM")&&(e+=rn),e}const Ws={Point:sn,LineString:je,Polygon:on,MultiPoint:Ys,MultiLineString:Vs,MultiPolygon:zs,GeometryCollection:Bs};function an(n){const t=n.getType(),e=Ws[t],i=e(n);let r=js[t];if(typeof n.getFlatCoordinates=="function"){const s=Js(n);s.length>0&&(r+=" "+s)}return i.length===0?r+" "+en:r+"("+i+")"}const qs=(n,t)=>new Xs().writeFeatures(n,t);/**
62
+ `}}ee(nr,"properties",{eoxDrawTools:{attribute:!1,state:!0},eoxMap:{attribute:!1,state:!0},olMap:{attribute:!1,state:!0},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},drawnFeatures:{attribute:!1,state:!0,type:Array},featureName:{attribute:!1,state:!0,type:String},featureNameKey:{attribute:!1,state:!0,type:String},modify:{attribute:!1,state:!0},unstyled:{type:Boolean}}),customElements.define("eox-drawtools-list",nr);const Ji=i=>{const{multipleFeatures:e,drawnFeatures:t,currentlyDrawing:r}=i,n=!e&&(t==null?void 0:t.length)>0||r,o=!(t!=null&&t.length)&&!r;return{drawDisabled:n,discardDisabled:o}};function Wi(i){navigator.clipboard.writeText(i).then(function(){},function(e){console.error("Could not copy text: ",e)})}const Zi={PROPERTYCHANGE:"propertychange"},st={CHANGE:"change"};class Ki{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}function Di(i,e,t){let r,n;t=t||or;let o=0,a=i.length,s=!1;for(;o<a;)r=o+(a-o>>1),n=+t(i[r],e),n<0?o=r+1:(a=r,s=!n);return s?o:~o}function or(i,e){return i>e?1:i<e?-1:0}function A(i,e){const t=Array.isArray(e)?e:[e],r=t.length;for(let n=0;n<r;n++)i[i.length]=t[n]}function Qi(i,e){const t=i.length;if(t!==e.length)return!1;for(let r=0;r<t;r++)if(i[r]!==e[r])return!1;return!0}function ar(){}function sr(i){let e,t,r;return function(){const n=Array.prototype.slice.call(arguments);return(!t||this!==r||!Qi(n,t))&&(r=this,t=n,e=i.apply(this,arguments)),e}}function lr(i){for(const e in i)delete i[e]}function cr(i){let e;for(e in i)return!1;return!e}class dr{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}class en extends Ki{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,t){if(!e||!t)return;const r=this.listeners_||(this.listeners_={}),n=r[e]||(r[e]=[]);n.includes(t)||n.push(t)}dispatchEvent(e){const t=typeof e=="string",r=t?e:e.type,n=this.listeners_&&this.listeners_[r];if(!n)return;const o=t?new dr(e):e;o.target||(o.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),s=this.pendingRemovals_||(this.pendingRemovals_={});r in a||(a[r]=0,s[r]=0),++a[r];let l;for(let c=0,d=n.length;c<d;++c)if("handleEvent"in n[c]?l=n[c].handleEvent(o):l=n[c].call(this,o),l===!1||o.propagationStopped){l=!1;break}if(--a[r]===0){let c=s[r];for(delete s[r];c--;)this.removeEventListener(r,ar);delete a[r]}return l}disposeInternal(){this.listeners_&&lr(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return this.listeners_?e?e in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(e,t){if(!this.listeners_)return;const r=this.listeners_[e];if(!r)return;const n=r.indexOf(t);n!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(r[n]=ar,++this.pendingRemovals_[e]):(r.splice(n,1),r.length===0&&delete this.listeners_[e]))}}function xe(i,e,t,r,n){if(n){const a=t;t=function(s){return i.removeEventListener(e,t),a.call(r??this,s)}}else r&&r!==i&&(t=t.bind(r));const o={target:i,type:e,listener:t};return i.addEventListener(e,t),o}function ur(i,e,t,r){return xe(i,e,t,r,!0)}function Re(i){i&&i.target&&(i.target.removeEventListener(i.type,i.listener),lr(i))}class Ne extends en{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(st.CHANGE)}getRevision(){return this.revision_}onInternal(e,t){if(Array.isArray(e)){const r=e.length,n=new Array(r);for(let o=0;o<r;++o)n[o]=xe(this,e[o],t);return n}return xe(this,e,t)}onceInternal(e,t){let r;if(Array.isArray(e)){const n=e.length;r=new Array(n);for(let o=0;o<n;++o)r[o]=ur(this,e[o],t)}else r=ur(this,e,t);return t.ol_key=r,r}unInternal(e,t){const r=t.ol_key;if(r)tn(r);else if(Array.isArray(e))for(let n=0,o=e.length;n<o;++n)this.removeEventListener(e[n],t);else this.removeEventListener(e,t)}}Ne.prototype.on,Ne.prototype.once,Ne.prototype.un;function tn(i){if(Array.isArray(i))for(let e=0,t=i.length;e<t;++e)Re(i[e]);else Re(i)}function f(){throw new Error("Unimplemented abstract method.")}let rn=0;function nn(i){return i.ol_uid||(i.ol_uid=String(++rn))}class hr extends dr{constructor(e,t,r){super(e),this.key=t,this.oldValue=r}}class mr extends Ne{constructor(e){super(),this.on,this.once,this.un,nn(this),this.values_=null,e!==void 0&&this.setProperties(e)}get(e){let t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,t){let r;r=`change:${e}`,this.hasListener(r)&&this.dispatchEvent(new hr(r,e,t)),r=Zi.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new hr(r,e,t))}addChangeListener(e,t){this.addEventListener(`change:${e}`,t)}removeChangeListener(e,t){this.removeEventListener(`change:${e}`,t)}set(e,t,r){const n=this.values_||(this.values_={});if(r)n[e]=t;else{const o=n[e];n[e]=t,o!==t&&this.notify(e,o)}}setProperties(e,t){for(const r in e)this.set(r,e[r],t)}applyProperties(e){e.values_&&Object.assign(this.values_||(this.values_={}),e.values_)}unset(e,t){if(this.values_&&e in this.values_){const r=this.values_[e];delete this.values_[e],cr(this.values_)&&(this.values_=null),t||this.notify(e,r)}}}function on(i,e){if(!i)throw new Error(e)}class ne extends mr{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if(typeof e.getSimplifiedGeometry=="function"){const t=e;this.setGeometry(t)}else{const t=e;this.setProperties(t)}}clone(){const e=new ne(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const t=this.getGeometry();t&&e.setGeometry(t.clone());const r=this.getStyle();return r&&e.setStyle(r),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Re(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=xe(e,st.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?an(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function an(i){if(typeof i=="function")return i;let e;return Array.isArray(i)?e=i:(on(typeof i.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[i]),function(){return e}}const C={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function j(i,e,t){let r,n;return e<i[0]?r=i[0]-e:i[2]<e?r=e-i[2]:r=0,t<i[1]?n=i[1]-t:i[3]<t?n=t-i[3]:n=0,r*r+n*n}function pr(i,e,t){return i[0]<=e&&e<=i[2]&&i[1]<=t&&t<=i[3]}function gr(i,e){const t=i[0],r=i[1],n=i[2],o=i[3],a=e[0],s=e[1];let l=C.UNKNOWN;return a<t?l=l|C.LEFT:a>n&&(l=l|C.RIGHT),s<r?l=l|C.BELOW:s>o&&(l=l|C.ABOVE),l===C.UNKNOWN&&(l=C.INTERSECTING),l}function lt(){return[1/0,1/0,-1/0,-1/0]}function fr(i,e,t,r,n){return n?(n[0]=i,n[1]=e,n[2]=t,n[3]=r,n):[i,e,t,r]}function ct(i){return fr(1/0,1/0,-1/0,-1/0,i)}function br(i,e){const t=i[0],r=i[1];return fr(t,r,t,r,e)}function dt(i,e,t,r,n){const o=ct(n);return yr(o,i,e,t,r)}function sn(i,e){return e[0]<i[0]&&(i[0]=e[0]),e[2]>i[2]&&(i[2]=e[2]),e[1]<i[1]&&(i[1]=e[1]),e[3]>i[3]&&(i[3]=e[3]),i}function yr(i,e,t,r,n){for(;t<r;t+=n)ln(i,e[t],e[t+1]);return i}function ln(i,e,t){i[0]=Math.min(i[0],e),i[1]=Math.min(i[1],t),i[2]=Math.max(i[2],e),i[3]=Math.max(i[3],t)}function cn(i,e){let t;return t=e(dn(i)),t||(t=e(un(i)),t)||(t=e(mn(i)),t)||(t=e(hn(i)),t)?t:!1}function dn(i){return[i[0],i[1]]}function un(i){return[i[2],i[1]]}function Te(i){return[(i[0]+i[2])/2,(i[1]+i[3])/2]}function Oe(i){return i[3]-i[1]}function hn(i){return[i[0],i[3]]}function mn(i){return[i[2],i[3]]}function pn(i,e){return i[0]<=e[2]&&i[2]>=e[0]&&i[1]<=e[3]&&i[3]>=e[1]}function gn(i,e){return e?(e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e):i}function fn(i,e,t){let r=!1;const n=gr(i,e),o=gr(i,t);if(n===C.INTERSECTING||o===C.INTERSECTING)r=!0;else{const a=i[0],s=i[1],l=i[2],c=i[3],d=e[0],u=e[1],h=t[0],m=t[1],p=(m-u)/(h-d);let g,v;o&C.ABOVE&&!(n&C.ABOVE)&&(g=h-(m-c)/p,r=g>=a&&g<=l),!r&&o&C.RIGHT&&!(n&C.RIGHT)&&(v=m-(h-l)*p,r=v>=s&&v<=c),!r&&o&C.BELOW&&!(n&C.BELOW)&&(g=h-(m-s)/p,r=g>=a&&g<=l),!r&&o&C.LEFT&&!(n&C.LEFT)&&(v=m-(h-a)*p,r=v>=s&&v<=c)}return r}function bn(i,e,t,r,n,o){const a=n-t,s=o-r;if(a!==0||s!==0){const l=((i-t)*a+(e-r)*s)/(a*a+s*s);l>1?(t=n,r=o):l>0&&(t+=a*l,r+=s*l)}return V(i,e,t,r)}function V(i,e,t,r){const n=t-i,o=r-e;return n*n+o*o}function vr(i){return i*180/Math.PI}function He(i){return i*Math.PI/180}function ut(i,e,t){return i+t*(e-i)}function ht(i,e,t){if(i>=e&&i<t)return i;const r=t-e;return((i-e)%r+r)%r+e}const yn={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class mt{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||yn[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const ke=6378137,oe=Math.PI*ke,vn=[-oe,-oe,oe,oe],xn=[-180,-85,180,85],je=ke*Math.log(Math.tan(Math.PI/2));class ae extends mt{constructor(e){super({code:e,units:"m",extent:vn,global:!0,worldExtent:xn,getPointResolution:function(t,r){return t/Math.cosh(r[1]/ke)}})}}const xr=[new ae("EPSG:3857"),new ae("EPSG:102100"),new ae("EPSG:102113"),new ae("EPSG:900913"),new ae("http://www.opengis.net/def/crs/EPSG/0/3857"),new ae("http://www.opengis.net/gml/srs/epsg.xml#3857")];function kn(i,e,t,r){const n=i.length;t=t>1?t:2,r=r??t,e===void 0&&(t>2?e=i.slice():e=new Array(n));for(let o=0;o<n;o+=r){e[o]=oe*i[o]/180;let a=ke*Math.log(Math.tan(Math.PI*(+i[o+1]+90)/360));a>je?a=je:a<-je&&(a=-je),e[o+1]=a}return e}function _n(i,e,t,r){const n=i.length;t=t>1?t:2,r=r??t,e===void 0&&(t>2?e=i.slice():e=new Array(n));for(let o=0;o<n;o+=r)e[o]=180*i[o]/oe,e[o+1]=360*Math.atan(Math.exp(i[o+1]/ke))/Math.PI-90;return e}const wn=6378137,kr=[-180,-90,180,90],zn=Math.PI*wn/180;class U extends mt{constructor(e,t){super({code:e,units:"degrees",extent:kr,axisOrientation:t,global:!0,metersPerUnit:zn,worldExtent:kr})}}const _r=[new U("CRS:84"),new U("EPSG:4326","neu"),new U("urn:ogc:def:crs:OGC:1.3:CRS84"),new U("urn:ogc:def:crs:OGC:2:84"),new U("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new U("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new U("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let pt={};function Cn(i){return pt[i]||pt[i.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function Sn(i,e){pt[i]=e}let se={};function _e(i,e,t){const r=i.getCode(),n=e.getCode();r in se||(se[r]={}),se[r][n]=t}function gt(i,e){return i in se&&e in se[i]?se[i][e]:null}const Ve=.9996,P=.00669438,Ue=P*P,Ye=Ue*P,Y=P/(1-P),wr=Math.sqrt(1-P),le=(1-wr)/(1+wr),zr=le*le,ft=zr*le,bt=ft*le,Cr=bt*le,Sr=1-P/4-3*Ue/64-5*Ye/256,Mn=3*P/8+3*Ue/32+45*Ye/1024,Pn=15*Ue/256+45*Ye/1024,En=35*Ye/3072,$n=3/2*le-27/32*ft+269/512*Cr,An=21/16*zr-55/32*bt,Fn=151/96*ft-417/128*Cr,Gn=1097/512*bt,Xe=6378137;function In(i,e,t){const r=i-5e5,a=(t.north?e:e-1e7)/Ve/(Xe*Sr),s=a+$n*Math.sin(2*a)+An*Math.sin(4*a)+Fn*Math.sin(6*a)+Gn*Math.sin(8*a),l=Math.sin(s),c=l*l,d=Math.cos(s),u=l/d,h=u*u,m=h*h,p=1-P*c,g=Math.sqrt(1-P*c),v=Xe/g,S=(1-P)/p,k=Y*d**2,F=k*k,M=r/(v*Ve),Q=M*M,Ge=Q*M,pi=Ge*M,gi=pi*M,aa=gi*M,sa=s-u/S*(Q/2-pi/24*(5+3*h+10*k-4*F-9*Y))+aa/720*(61+90*h+298*k+45*m-252*Y-3*F);let Ht=(M-Ge/6*(1+2*h+k)+gi/120*(5-2*k+28*h-3*F+8*Y+24*m))/d;return Ht=ht(Ht+He(Er(t.number)),-Math.PI,Math.PI),[vr(Ht),vr(sa)]}const Mr=-80,Pr=84,Ln=-180,Rn=180;function Nn(i,e,t){i=ht(i,Ln,Rn),e<Mr?e=Mr:e>Pr&&(e=Pr);const r=He(e),n=Math.sin(r),o=Math.cos(r),a=n/o,s=a*a,l=s*s,c=He(i),d=Er(t.number),u=He(d),h=Xe/Math.sqrt(1-P*n**2),m=Y*o**2,p=o*ht(c-u,-Math.PI,Math.PI),g=p*p,v=g*p,S=v*p,k=S*p,F=k*p,M=Xe*(Sr*r-Mn*Math.sin(2*r)+Pn*Math.sin(4*r)-En*Math.sin(6*r)),Q=Ve*h*(p+v/6*(1-s+m)+k/120*(5-18*s+l+72*m-58*Y))+5e5;let Ge=Ve*(M+h*a*(g/2+S/24*(5-s+9*m+4*m**2)+F/720*(61-58*s+l+600*m-330*Y)));return t.north||(Ge+=1e7),[Q,Ge]}function Er(i){return(i-1)*6-180+3}const Tn=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function $r(i){let e=0;for(const n of Tn){const o=i.match(n);if(o){e=parseInt(o[1]);break}}if(!e)return null;let t=0,r=!1;return e>32700&&e<32761?t=e-32700:e>32600&&e<32661&&(r=!0,t=e-32600),t?{number:t,north:r}:null}function Ar(i,e){return function(t,r,n,o){const a=t.length;n=n>1?n:2,o=o??n,r||(n>2?r=t.slice():r=new Array(a));for(let s=0;s<a;s+=o){const l=t[s],c=t[s+1],d=i(l,c,e);r[s]=d[0],r[s+1]=d[1]}return r}}function On(i){return $r(i)?new mt({code:i,units:"m"}):null}function Hn(i){const e=$r(i.getCode());return e?{forward:Ar(Nn,e),inverse:Ar(In,e)}:null}const jn=[Hn],Vn=[On];function yt(i,e){if(e!==void 0){for(let t=0,r=i.length;t<r;++t)e[t]=i[t];e=e}else e=i.slice();return e}function vt(i){Sn(i.getCode(),i),_e(i,i,yt)}function Un(i){i.forEach(vt)}function E(i){if(typeof i!="string")return i;const e=Cn(i);if(e)return e;for(const t of Vn){const r=t(i);if(r)return r}return null}function Fr(i){Un(i),i.forEach(function(e){i.forEach(function(t){e!==t&&_e(e,t,yt)})})}function Yn(i,e,t,r){i.forEach(function(n){e.forEach(function(o){_e(n,o,t),_e(o,n,r)})})}function Xn(i,e){if(i===e)return!0;const t=i.getUnits()===e.getUnits();return(i.getCode()===e.getCode()||Gr(i,e)===yt)&&t}function Gr(i,e){const t=i.getCode(),r=e.getCode();let n=gt(t,r);if(n)return n;let o=null,a=null;for(const l of jn)o||(o=l(i)),a||(a=l(e));if(!o&&!a)return null;const s="EPSG:4326";if(a)if(o)n=xt(o.inverse,a.forward);else{const l=gt(t,s);l&&(n=xt(l,a.forward))}else{const l=gt(s,r);l&&(n=xt(o.inverse,l))}return n&&(vt(i),vt(e),_e(i,e,n)),n}function xt(i,e){return function(t,r,n,o){return r=i(t,r,n,o),e(r,r,n,o)}}function kt(i,e){const t=E(i),r=E(e);return Gr(t,r)}function Bn(){Fr(xr),Fr(_r),Yn(_r,xr,kn,_n)}Bn(),new Array(6);function Ir(){return[1,0,0,1,0,0]}function Lr(i,e,t,r,n,o,a,s){const l=Math.sin(o),c=Math.cos(o);return i[0]=r*c,i[1]=n*l,i[2]=-r*l,i[3]=n*c,i[4]=a*r*c-s*r*l+e,i[5]=a*n*l+s*n*c+t,i}function Rr(i,e,t,r,n,o,a){o=o||[],a=a||2;let s=0;for(let l=e;l<t;l+=r){const c=i[l],d=i[l+1];o[s++]=n[0]*c+n[2]*d+n[4],o[s++]=n[1]*c+n[3]*d+n[5];for(let u=2;u<a;u++)o[s++]=i[l+u]}return o&&o.length!=s&&(o.length=s),o}function qn(i,e,t,r,n,o,a){a=a||[];const s=Math.cos(n),l=Math.sin(n),c=o[0],d=o[1];let u=0;for(let h=e;h<t;h+=r){const m=i[h]-c,p=i[h+1]-d;a[u++]=c+m*s-p*l,a[u++]=d+m*l+p*s;for(let g=h+2;g<h+r;++g)a[u++]=i[g]}return a&&a.length!=u&&(a.length=u),a}function Jn(i,e,t,r,n,o,a,s){s=s||[];const l=a[0],c=a[1];let d=0;for(let u=e;u<t;u+=r){const h=i[u]-l,m=i[u+1]-c;s[d++]=l+n*h,s[d++]=c+o*m;for(let p=u+2;p<u+r;++p)s[d++]=i[p]}return s&&s.length!=d&&(s.length=d),s}function Wn(i,e,t,r,n,o,a){a=a||[];let s=0;for(let l=e;l<t;l+=r){a[s++]=i[l]+n,a[s++]=i[l+1]+o;for(let c=l+2;c<l+r;++c)a[s++]=i[c]}return a&&a.length!=s&&(a.length=s),a}const Nr=Ir(),Zn=[NaN,NaN];class Tr extends mr{constructor(){super(),this.extent_=lt(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=sr((e,t,r)=>{if(!r)return this.getSimplifiedGeometry(t);const n=this.clone();return n.applyTransform(r),n.getSimplifiedGeometry(t)})}simplifyTransformed(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)}clone(){return f()}closestPointXY(e,t,r,n){return f()}containsXY(e,t){return this.closestPointXY(e,t,Zn,Number.MIN_VALUE)===0}getClosestPoint(e,t){return t=t||[NaN,NaN],this.closestPointXY(e[0],e[1],t,1/0),t}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return f()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&ct(t),this.extentRevision_=this.getRevision()}return gn(this.extent_,e)}rotate(e,t){f()}scale(e,t,r){f()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return f()}getType(){return f()}applyTransform(e){f()}intersectsExtent(e){return f()}translate(e,t){f()}transform(e,t){const r=E(e),n=r.getUnits()=="tile-pixels"?function(o,a,s){const l=r.getExtent(),c=r.getWorldExtent(),d=Oe(c)/Oe(l);Lr(Nr,c[0],c[3],d,-d,0,0,0);const u=Rr(o,0,o.length,s,Nr,a),h=kt(r,t);return h?h(u,u,s):u}:kt(r,t);return this.applyTransform(n),this}}class X extends Tr{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return dt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return f()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,t){this.stride=Or(e),this.layout=e,this.flatCoordinates=t}setCoordinates(e,t){f()}setLayout(e,t,r){let n;if(e)n=Or(e);else{for(let o=0;o<r;++o){if(t.length===0){this.layout="XY",this.stride=2;return}t=t[0]}n=t.length,e=B(n)}this.layout=e,this.stride=n}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(e,t){const r=this.getFlatCoordinates();if(r){const n=this.getStride();qn(r,0,r.length,n,e,t,r),this.changed()}}scale(e,t,r){t===void 0&&(t=e),r||(r=Te(this.getExtent()));const n=this.getFlatCoordinates();if(n){const o=this.getStride();Jn(n,0,n.length,o,e,t,r,n),this.changed()}}translate(e,t){const r=this.getFlatCoordinates();if(r){const n=this.getStride();Wn(r,0,r.length,n,e,t,r),this.changed()}}}function B(i){let e;return i==2?e="XY":i==3?e="XYZ":i==4&&(e="XYZM"),e}function Or(i){let e;return i=="XY"?e=2:i=="XYZ"||i=="XYM"?e=3:i=="XYZM"&&(e=4),e}function Kn(i,e,t,r){for(let n=0,o=t.length;n<o;++n)i[e++]=t[n];return e}function Be(i,e,t,r){for(let n=0,o=t.length;n<o;++n){const a=t[n];for(let s=0;s<r;++s)i[e++]=a[s]}return e}function we(i,e,t,r,n){n=n||[];let o=0;for(let a=0,s=t.length;a<s;++a){const l=Be(i,e,t[a],r);n[o++]=l,e=l}return n.length=o,n}function Hr(i,e,t,r,n){n=n||[];let o=0;for(let a=0,s=t.length;a<s;++a){const l=we(i,e,t[a],r,n[o]);l.length===0&&(l[0]=e),n[o++]=l,e=l[l.length-1]}return n.length=o,n}function jr(i,e,t,r){const n=[];let o=lt();for(let a=0,s=t.length;a<s;++a){const l=t[a];o=dt(i,e,l[0],r),n.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=l[l.length-1]}return n}function Dn(i,e,t,r,n){return!cn(n,function(a){return!q(i,e,t,r,a[0],a[1])})}function q(i,e,t,r,n,o){let a=0,s=i[t-r],l=i[t-r+1];for(;e<t;e+=r){const c=i[e],d=i[e+1];l<=o?d>o&&(c-s)*(o-l)-(n-s)*(d-l)>0&&a++:d<=o&&(c-s)*(o-l)-(n-s)*(d-l)<0&&a--,s=c,l=d}return a!==0}function _t(i,e,t,r,n,o){if(t.length===0||!q(i,e,t[0],r,n,o))return!1;for(let a=1,s=t.length;a<s;++a)if(q(i,t[a-1],t[a],r,n,o))return!1;return!0}function Qn(i,e,t,r,n,o){if(t.length===0)return!1;for(let a=0,s=t.length;a<s;++a){const l=t[a];if(_t(i,e,l,r,n,o))return!0;e=l[l.length-1]}return!1}function wt(i,e,t,r,n,o,a){let s,l,c,d,u,h,m;const p=n[o+1],g=[];for(let k=0,F=t.length;k<F;++k){const M=t[k];for(d=i[M-r],h=i[M-r+1],s=e;s<M;s+=r)u=i[s],m=i[s+1],(p<=h&&m<=p||h<=p&&p<=m)&&(c=(p-h)/(m-h)*(u-d)+d,g.push(c)),d=u,h=m}let v=NaN,S=-1/0;for(g.sort(or),d=g[0],s=1,l=g.length;s<l;++s){u=g[s];const k=Math.abs(u-d);k>S&&(c=(d+u)/2,_t(i,e,t,r,c,p)&&(v=c,S=k)),d=u}return isNaN(v)&&(v=n[o]),a?(a.push(v,p,S),a):[v,p,S]}function Vr(i,e,t,r,n){let o=[];for(let a=0,s=t.length;a<s;++a){const l=t[a];o=wt(i,e,l,r,n,2*a,o),e=l[l.length-1]}return o}function qe(i,e,t,r,n,o,a){let s,l;const c=(t-e)/r;if(c===1)s=e;else if(c===2)s=e,l=n;else if(c!==0){let d=i[e],u=i[e+1],h=0;const m=[0];for(let v=e+r;v<t;v+=r){const S=i[v],k=i[v+1];h+=Math.sqrt((S-d)*(S-d)+(k-u)*(k-u)),m.push(h),d=S,u=k}const p=n*h,g=Di(m,p);g<0?(l=(p-m[-g-2])/(m[-g-1]-m[-g-2]),s=e+(-g-2)*r):s=e+g*r}a=a>1?a:2,o=o||new Array(a);for(let d=0;d<a;++d)o[d]=s===void 0?NaN:l===void 0?i[s+d]:ut(i[s+d],i[s+r+d],l);return o}function zt(i,e,t,r,n,o){if(t==e)return null;let a;if(n<i[e+r-1])return o?(a=i.slice(e,e+r),a[r-1]=n,a):null;if(i[t-1]<n)return o?(a=i.slice(t-r,t),a[r-1]=n,a):null;if(n==i[e+r-1])return i.slice(e,e+r);let s=e/r,l=t/r;for(;s<l;){const h=s+l>>1;n<i[(h+1)*r-1]?l=h:s=h+1}const c=i[s*r-1];if(n==c)return i.slice((s-1)*r,(s-1)*r+r);const d=i[(s+1)*r-1],u=(n-c)/(d-c);a=[];for(let h=0;h<r-1;++h)a.push(ut(i[(s-1)*r+h],i[s*r+h],u));return a.push(n),a}function eo(i,e,t,r,n,o,a){if(a)return zt(i,e,t[t.length-1],r,n,o);let s;if(n<i[r-1])return o?(s=i.slice(0,r),s[r-1]=n,s):null;if(i[i.length-1]<n)return o?(s=i.slice(i.length-r),s[r-1]=n,s):null;for(let l=0,c=t.length;l<c;++l){const d=t[l];if(e!=d){if(n<i[e+r-1])return null;if(n<=i[d-1])return zt(i,e,d,r,n,!1);e=d}}return null}function to(i,e,t,r){for(;e<t-r;){for(let n=0;n<r;++n){const o=i[e+n];i[e+n]=i[t-r+n],i[t-r+n]=o}e+=r,t-=r}}function Ct(i,e,t,r){let n=0,o=i[t-r],a=i[t-r+1];for(;e<t;e+=r){const s=i[e],l=i[e+1];n+=(s-o)*(l+a),o=s,a=l}return n===0?void 0:n>0}function St(i,e,t,r,n){n=n!==void 0?n:!1;for(let o=0,a=t.length;o<a;++o){const s=t[o],l=Ct(i,e,s,r);if(o===0){if(n&&l||!n&&!l)return!1}else if(n&&!l||!n&&l)return!1;e=s}return!0}function Ur(i,e,t,r,n){for(let o=0,a=t.length;o<a;++o){const s=t[o];if(!St(i,e,s,r,n))return!1;s.length&&(e=s[s.length-1])}return!0}function Je(i,e,t,r,n){n=n!==void 0?n:!1;for(let o=0,a=t.length;o<a;++o){const s=t[o],l=Ct(i,e,s,r);(o===0?n&&l||!n&&!l:n&&!l||!n&&l)&&to(i,e,s,r),e=s}return e}function Mt(i,e,t,r,n){for(let o=0,a=t.length;o<a;++o)e=Je(i,e,t[o],r,n);return e}function ro(i,e){const t=[];let r=0,n=0,o;for(let a=0,s=e.length;a<s;++a){const l=e[a],c=Ct(i,r,l,2);if(o===void 0&&(o=c),c===o)t.push(e.slice(n,a+1));else{if(t.length===0)continue;t[t.length-1].push(e[n])}n=a+1,r=l}return t}function We(i,e,t,r,n,o,a){const s=(t-e)/r;if(s<3){for(;e<t;e+=r)o[a++]=i[e],o[a++]=i[e+1];return a}const l=new Array(s);l[0]=1,l[s-1]=1;const c=[e,t-r];let d=0;for(;c.length>0;){const u=c.pop(),h=c.pop();let m=0;const p=i[h],g=i[h+1],v=i[u],S=i[u+1];for(let k=h+r;k<u;k+=r){const F=i[k],M=i[k+1],Q=bn(F,M,p,g,v,S);Q>m&&(d=k,m=Q)}m>n&&(l[(d-e)/r]=1,h+r<d&&c.push(h,d),d+r<u&&c.push(d,u))}for(let u=0;u<s;++u)l[u]&&(o[a++]=i[e+u*r],o[a++]=i[e+u*r+1]);return a}function Yr(i,e,t,r,n,o,a,s){for(let l=0,c=t.length;l<c;++l){const d=t[l];a=We(i,e,d,r,n,o,a),s.push(a),e=d}return a}function ce(i,e){return e*Math.round(i/e)}function io(i,e,t,r,n,o,a){if(e==t)return a;let s=ce(i[e],n),l=ce(i[e+1],n);e+=r,o[a++]=s,o[a++]=l;let c,d;do if(c=ce(i[e],n),d=ce(i[e+1],n),e+=r,e==t)return o[a++]=c,o[a++]=d,a;while(c==s&&d==l);for(;e<t;){const u=ce(i[e],n),h=ce(i[e+1],n);if(e+=r,u==c&&h==d)continue;const m=c-s,p=d-l,g=u-s,v=h-l;if(m*v==p*g&&(m<0&&g<m||m==g||m>0&&g>m)&&(p<0&&v<p||p==v||p>0&&v>p)){c=u,d=h;continue}o[a++]=c,o[a++]=d,s=c,l=d,c=u,d=h}return o[a++]=c,o[a++]=d,a}function Pt(i,e,t,r,n,o,a,s){for(let l=0,c=t.length;l<c;++l){const d=t[l];a=io(i,e,d,r,n,o,a),s.push(a),e=d}return a}function no(i,e,t,r,n,o,a,s){for(let l=0,c=t.length;l<c;++l){const d=t[l],u=[];a=Pt(i,e,d,r,n,o,a,u),s.push(u),e=d[d.length-1]}return a}class J extends Tr{constructor(e){super(),this.geometries_=e,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(Re),this.changeEventsKeys_.length=0}listenGeometriesChange_(){const e=this.geometries_;for(let t=0,r=e.length;t<r;++t)this.changeEventsKeys_.push(xe(e[t],st.CHANGE,this.changed,this))}clone(){const e=new J(Et(this.geometries_));return e.applyProperties(this),e}closestPointXY(e,t,r,n){if(n<j(this.getExtent(),e,t))return n;const o=this.geometries_;for(let a=0,s=o.length;a<s;++a)n=o[a].closestPointXY(e,t,r,n);return n}containsXY(e,t){const r=this.geometries_;for(let n=0,o=r.length;n<o;++n)if(r[n].containsXY(e,t))return!0;return!1}computeExtent(e){ct(e);const t=this.geometries_;for(let r=0,n=t.length;r<n;++r)sn(e,t[r].getExtent());return e}getGeometries(){return Et(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let e=[];const t=this.geometries_;for(let r=0,n=t.length;r<n;++r)t[r].getType()===this.getType()?e=e.concat(t[r].getGeometriesArrayRecursive()):e.push(t[r]);return e}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const t=[],r=this.geometries_;let n=!1;for(let o=0,a=r.length;o<a;++o){const s=r[o],l=s.getSimplifiedGeometry(e);t.push(l),l!==s&&(n=!0)}return n?new J(t):(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getType(){return"GeometryCollection"}intersectsExtent(e){const t=this.geometries_;for(let r=0,n=t.length;r<n;++r)if(t[r].intersectsExtent(e))return!0;return!1}isEmpty(){return this.geometries_.length===0}rotate(e,t){const r=this.geometries_;for(let n=0,o=r.length;n<o;++n)r[n].rotate(e,t);this.changed()}scale(e,t,r){r||(r=Te(this.getExtent()));const n=this.geometries_;for(let o=0,a=n.length;o<a;++o)n[o].scale(e,t,r);this.changed()}setGeometries(e){this.setGeometriesArray(Et(e))}setGeometriesArray(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()}applyTransform(e){const t=this.geometries_;for(let r=0,n=t.length;r<n;++r)t[r].applyTransform(e);this.changed()}translate(e,t){const r=this.geometries_;for(let n=0,o=r.length;n<o;++n)r[n].translate(e,t);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function Et(i){return i.map(e=>e.clone())}function Xr(i,e,t,r){let n=0;const o=i[t-r],a=i[t-r+1];let s=0,l=0;for(;e<t;e+=r){const c=i[e]-o,d=i[e+1]-a;n+=l*c-s*d,s=c,l=d}return n/2}function Br(i,e,t,r){let n=0;for(let o=0,a=t.length;o<a;++o){const s=t[o];n+=Xr(i,e,s,r),e=s}return n}function oo(i,e,t,r){let n=0;for(let o=0,a=t.length;o<a;++o){const s=t[o];n+=Br(i,e,s,r),e=s[s.length-1]}return n}function qr(i,e,t,r,n,o,a){const s=i[e],l=i[e+1],c=i[t]-s,d=i[t+1]-l;let u;if(c===0&&d===0)u=e;else{const h=((n-s)*c+(o-l)*d)/(c*c+d*d);if(h>1)u=t;else if(h>0){for(let m=0;m<r;++m)a[m]=ut(i[e+m],i[t+m],h);a.length=r;return}else u=e}for(let h=0;h<r;++h)a[h]=i[u+h];a.length=r}function $t(i,e,t,r,n){let o=i[e],a=i[e+1];for(e+=r;e<t;e+=r){const s=i[e],l=i[e+1],c=V(o,a,s,l);c>n&&(n=c),o=s,a=l}return n}function At(i,e,t,r,n){for(let o=0,a=t.length;o<a;++o){const s=t[o];n=$t(i,e,s,r,n),e=s}return n}function ao(i,e,t,r,n){for(let o=0,a=t.length;o<a;++o){const s=t[o];n=At(i,e,s,r,n),e=s[s.length-1]}return n}function Ft(i,e,t,r,n,o,a,s,l,c,d){if(e==t)return c;let u,h;if(n===0){if(h=V(a,s,i[e],i[e+1]),h<c){for(u=0;u<r;++u)l[u]=i[e+u];return l.length=r,h}return c}d=d||[NaN,NaN];let m=e+r;for(;m<t;)if(qr(i,m-r,m,r,a,s,d),h=V(a,s,d[0],d[1]),h<c){for(c=h,u=0;u<r;++u)l[u]=d[u];l.length=r,m+=r}else m+=r*Math.max((Math.sqrt(h)-Math.sqrt(c))/n|0,1);if(o&&(qr(i,t-r,e,r,a,s,d),h=V(a,s,d[0],d[1]),h<c)){for(c=h,u=0;u<r;++u)l[u]=d[u];l.length=r}return c}function Gt(i,e,t,r,n,o,a,s,l,c,d){d=d||[NaN,NaN];for(let u=0,h=t.length;u<h;++u){const m=t[u];c=Ft(i,e,m,r,n,o,a,s,l,c,d),e=m}return c}function so(i,e,t,r,n,o,a,s,l,c,d){d=d||[NaN,NaN];for(let u=0,h=t.length;u<h;++u){const m=t[u];c=Gt(i,e,m,r,n,o,a,s,l,c,d),e=m[m.length-1]}return c}function Ze(i,e,t,r,n){n=n!==void 0?n:[];let o=0;for(let a=e;a<t;a+=r)n[o++]=i.slice(a,a+r);return n.length=o,n}function It(i,e,t,r,n){n=n!==void 0?n:[];let o=0;for(let a=0,s=t.length;a<s;++a){const l=t[a];n[o++]=Ze(i,e,l,r,n[o]),e=l}return n.length=o,n}function lo(i,e,t,r,n){n=n!==void 0?n:[];let o=0;for(let a=0,s=t.length;a<s;++a){const l=t[a];n[o++]=l.length===1&&l[0]===e?[]:It(i,e,l,r,n[o]),e=l[l.length-1]}return n.length=o,n}class ze extends X{constructor(e,t){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,t!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(t,e):this.setCoordinates(e,t)}clone(){return new ze(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,t,r,n){return n<j(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt($t(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Ft(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,r,n))}getArea(){return Xr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return Ze(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(e){const t=[];return t.length=We(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new ze(t,"XY")}getType(){return"LinearRing"}intersectsExtent(e){return!1}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Be(this.flatCoordinates,0,e,this.stride),this.changed()}}function Jr(i,e,t,r,n){let o;for(e+=r;e<t;e+=r)if(o=n(i.slice(e-r,e),i.slice(e,e+r)),o)return o;return!1}function Ke(i,e,t,r,n,o){return o=o??yr(lt(),i,e,t,r),pn(n,o)?o[0]>=n[0]&&o[2]<=n[2]||o[1]>=n[1]&&o[3]<=n[3]?!0:Jr(i,e,t,r,function(a,s){return fn(n,a,s)}):!1}function co(i,e,t,r,n){for(let o=0,a=t.length;o<a;++o){if(Ke(i,e,t[o],r,n))return!0;e=t[o]}return!1}function uo(i,e,t,r,n){return!!(Ke(i,e,t,r,n)||q(i,e,t,r,n[0],n[1])||q(i,e,t,r,n[0],n[3])||q(i,e,t,r,n[2],n[1])||q(i,e,t,r,n[2],n[3]))}function Wr(i,e,t,r,n){if(!uo(i,e,t[0],r,n))return!1;if(t.length===1)return!0;for(let o=1,a=t.length;o<a;++o)if(Dn(i,t[o-1],t[o],r,n)&&!Ke(i,t[o-1],t[o],r,n))return!1;return!0}function ho(i,e,t,r,n){for(let o=0,a=t.length;o<a;++o){const s=t[o];if(Wr(i,e,s,r,n))return!0;e=s[s.length-1]}return!1}function mo(i,e,t,r){let n=i[e],o=i[e+1],a=0;for(let s=e+r;s<t;s+=r){const l=i[s],c=i[s+1];a+=Math.sqrt((l-n)*(l-n)+(c-o)*(c-o)),n=l,o=c}return a}class W extends X{constructor(e,t){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,t!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(t,e):this.setCoordinates(e,t)}appendCoordinate(e){A(this.flatCoordinates,e),this.changed()}clone(){const e=new W(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,r,n){return n<j(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt($t(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Ft(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,r,n))}forEachSegment(e){return Jr(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinateAtM(e,t){return this.layout!="XYM"&&this.layout!="XYZM"?null:(t=t!==void 0?t:!1,zt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t))}getCoordinates(){return Ze(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(e,t){return qe(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)}getLength(){return mo(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(e){const t=[];return t.length=We(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new W(t,"XY")}getType(){return"LineString"}intersectsExtent(e){return Ke(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,this.getExtent())}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Be(this.flatCoordinates,0,e,this.stride),this.changed()}}class Ce extends X{constructor(e,t,r){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(e[0]))this.setCoordinates(e,t);else if(t!==void 0&&r)this.setFlatCoordinates(t,e),this.ends_=r;else{const n=e,o=[],a=[];for(let l=0,c=n.length;l<c;++l){const d=n[l];A(o,d.getFlatCoordinates()),a.push(o.length)}const s=n.length===0?this.getLayout():n[0].getLayout();this.setFlatCoordinates(s,o),this.ends_=a}}appendLineString(e){A(this.flatCoordinates,e.getFlatCoordinates().slice()),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new Ce(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,t,r,n){return n<j(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(At(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Gt(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,r,n))}getCoordinateAtM(e,t,r){return this.layout!="XYM"&&this.layout!="XYZM"||this.flatCoordinates.length===0?null:(t=t!==void 0?t:!1,r=r!==void 0?r:!1,eo(this.flatCoordinates,0,this.ends_,this.stride,e,t,r))}getCoordinates(){return It(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(e){return e<0||this.ends_.length<=e?null:new W(this.flatCoordinates.slice(e===0?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLineStrings(){const e=this.flatCoordinates,t=this.ends_,r=this.layout,n=[];let o=0;for(let a=0,s=t.length;a<s;++a){const l=t[a],c=new W(e.slice(o,l),r);n.push(c),o=l}return n}getFlatMidpoints(){const e=[],t=this.flatCoordinates;let r=0;const n=this.ends_,o=this.stride;for(let a=0,s=n.length;a<s;++a){const l=n[a],c=qe(t,r,l,o,.5);A(e,c),r=l}return e}getSimplifiedGeometryInternal(e){const t=[],r=[];return t.length=Yr(this.flatCoordinates,0,this.ends_,this.stride,e,t,0,r),new Ce(t,"XY",r)}getType(){return"MultiLineString"}intersectsExtent(e){return co(this.flatCoordinates,0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const r=we(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=r.length===0?0:r[r.length-1],this.changed()}}class Z extends X{constructor(e,t){super(),this.setCoordinates(e,t)}clone(){const e=new Z(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,r,n){const o=this.flatCoordinates,a=V(e,t,o[0],o[1]);if(a<n){const s=this.stride;for(let l=0;l<s;++l)r[l]=o[l];return r.length=s,a}return n}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return br(this.flatCoordinates,e)}getType(){return"Point"}intersectsExtent(e){return pr(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Kn(this.flatCoordinates,0,e,this.stride),this.changed()}}class Se extends X{constructor(e,t){super(),t&&!Array.isArray(e[0])?this.setFlatCoordinates(t,e):this.setCoordinates(e,t)}appendPoint(e){A(this.flatCoordinates,e.getFlatCoordinates()),this.changed()}clone(){const e=new Se(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,r,n){if(n<j(this.getExtent(),e,t))return n;const o=this.flatCoordinates,a=this.stride;for(let s=0,l=o.length;s<l;s+=a){const c=V(e,t,o[s],o[s+1]);if(c<n){n=c;for(let d=0;d<a;++d)r[d]=o[s+d];r.length=a}}return n}getCoordinates(){return Ze(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(e){const t=this.flatCoordinates.length/this.stride;return e<0||t<=e?null:new Z(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)}getPoints(){const e=this.flatCoordinates,t=this.layout,r=this.stride,n=[];for(let o=0,a=e.length;o<a;o+=r){const s=new Z(e.slice(o,o+r),t);n.push(s)}return n}getType(){return"MultiPoint"}intersectsExtent(e){const t=this.flatCoordinates,r=this.stride;for(let n=0,o=t.length;n<o;n+=r){const a=t[n],s=t[n+1];if(pr(e,a,s))return!0}return!1}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Be(this.flatCoordinates,0,e,this.stride),this.changed()}}class K extends X{constructor(e,t,r){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,t!==void 0&&r?(this.setFlatCoordinates(t,e),this.ends_=r):this.setCoordinates(e,t)}appendLinearRing(e){this.flatCoordinates?A(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new K(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,t,r,n){return n<j(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(At(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Gt(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,r,n))}containsXY(e,t){return _t(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)}getArea(){return Br(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let t;return e!==void 0?(t=this.getOrientedFlatCoordinates().slice(),Je(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,It(t,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const e=Te(this.getExtent());this.flatInteriorPoint_=wt(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new Z(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new ze(this.flatCoordinates.slice(e===0?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){const e=this.layout,t=this.flatCoordinates,r=this.ends_,n=[];let o=0;for(let a=0,s=r.length;a<s;++a){const l=r[a],c=new ze(t.slice(o,l),e);n.push(c),o=l}return n}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;St(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Je(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const t=[],r=[];return t.length=Pt(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),t,0,r),new K(t,"XY",r)}getType(){return"Polygon"}intersectsExtent(e){return Wr(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const r=we(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=r.length===0?0:r[r.length-1],this.changed()}}class Me extends X{constructor(e,t,r){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!r&&!Array.isArray(e[0])){const n=e,o=[],a=[];for(let s=0,l=n.length;s<l;++s){const c=n[s],d=o.length,u=c.getEnds();for(let h=0,m=u.length;h<m;++h)u[h]+=d;A(o,c.getFlatCoordinates()),a.push(u)}t=n.length===0?this.getLayout():n[0].getLayout(),e=o,r=a}t!==void 0&&r?(this.setFlatCoordinates(t,e),this.endss_=r):this.setCoordinates(e,t)}appendPolygon(e){let t;if(!this.flatCoordinates)this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();else{const r=this.flatCoordinates.length;A(this.flatCoordinates,e.getFlatCoordinates()),t=e.getEnds().slice();for(let n=0,o=t.length;n<o;++n)t[n]+=r}this.endss_.push(t),this.changed()}clone(){const e=this.endss_.length,t=new Array(e);for(let n=0;n<e;++n)t[n]=this.endss_[n].slice();const r=new Me(this.flatCoordinates.slice(),this.layout,t);return r.applyProperties(this),r}closestPointXY(e,t,r,n){return n<j(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ao(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),so(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,r,n))}containsXY(e,t){return Qn(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)}getArea(){return oo(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(e){let t;return e!==void 0?(t=this.getOrientedFlatCoordinates().slice(),Mt(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,lo(t,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const e=jr(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Vr(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new Se(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;Ur(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Mt(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const t=[],r=[];return t.length=no(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),t,0,r),new Me(t,"XY",r)}getPolygon(e){if(e<0||this.endss_.length<=e)return null;let t;if(e===0)t=0;else{const o=this.endss_[e-1];t=o[o.length-1]}const r=this.endss_[e].slice(),n=r[r.length-1];if(t!==0)for(let o=0,a=r.length;o<a;++o)r[o]-=t;return new K(this.flatCoordinates.slice(t,n),this.layout,r)}getPolygons(){const e=this.layout,t=this.flatCoordinates,r=this.endss_,n=[];let o=0;for(let a=0,s=r.length;a<s;++a){const l=r[a].slice(),c=l[l.length-1];if(o!==0)for(let u=0,h=l.length;u<h;++u)l[u]-=o;const d=new K(t.slice(o,c),e,l);n.push(d),o=c}return n}getType(){return"MultiPolygon"}intersectsExtent(e){return ho(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);const r=Hr(this.flatCoordinates,0,e,this.stride,this.endss_);if(r.length===0)this.flatCoordinates.length=0;else{const n=r[r.length-1];this.flatCoordinates.length=n.length===0?0:n[n.length-1]}this.changed()}}const Zr=Ir();class D{constructor(e,t,r,n,o,a){this.styleFunction,this.extent_,this.id_=a,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r||null,this.properties_=o,this.squaredTolerance_,this.stride_=n,this.simplifiedGeometry_}get(e){return this.properties_[e]}getExtent(){return this.extent_||(this.extent_=this.type_==="Point"?br(this.flatCoordinates_):dt(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const e=Te(this.getExtent());this.flatInteriorPoints_=wt(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const e=ro(this.flatCoordinates_,this.ends_),t=jr(this.flatCoordinates_,0,e,2);this.flatInteriorPoints_=Vr(this.flatCoordinates_,0,e,2,t)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=qe(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const e=this.flatCoordinates_;let t=0;const r=this.ends_;for(let n=0,o=r.length;n<o;++n){const a=r[n],s=qe(e,t,a,2,.5);A(this.flatMidpoints_,s),t=a}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(e){return this}simplifyTransformed(e,t){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(e){e=E(e);const t=e.getExtent(),r=e.getWorldExtent();if(t&&r){const n=Oe(r)/Oe(t);Lr(Zr,r[0],r[3],n,-n,0,0,0),Rr(this.flatCoordinates_,0,this.flatCoordinates_.length,2,Zr,this.flatCoordinates_)}}applyTransform(e){e(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){var e;return new D(this.type_,this.flatCoordinates_.slice(),(e=this.ends_)==null?void 0:e.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=sr((e,t)=>{if(e===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),t&&this.simplifiedGeometry_.applyTransform(t);const r=this.simplifiedGeometry_.getFlatCoordinates();let n;switch(this.type_){case"LineString":r.length=We(r,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,e,r,0),n=[r.length];break;case"MultiLineString":n=[],r.length=Yr(r,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,e,r,0,n);break;case"Polygon":n=[],r.length=Pt(r,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(e),r,0,n);break}return n&&(this.simplifiedGeometry_=new D(this.type_,r,n,2,this.properties_,this.id_)),this.squaredTolerance_=e,this.simplifiedGeometry_}),this}}D.prototype.getFlatCoordinates=D.prototype.getOrientedFlatCoordinates;class Kr{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=ne,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?E(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()==="tile-pixels"&&(r=E(r),r.setWorldExtent(t.extent)),t={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return f()}readFeature(e,t){return f()}readFeatures(e,t){return f()}readGeometry(e,t){return f()}readProjection(e){return f()}writeFeature(e,t){return f()}writeFeatures(e,t){return f()}writeGeometry(e,t){return f()}}function Pe(i,e,t){const r=t?E(t.featureProjection):null,n=t?E(t.dataProjection):null;let o=i;if(r&&n&&!Xn(r,n)){e&&(o=i.clone());const a=e?r:n,s=e?n:r;a.getUnits()==="tile-pixels"?o.transform(a,s):o.applyTransform(kt(a,s))}if(e&&t&&t.decimals!==void 0){const a=Math.pow(10,t.decimals),s=function(l){for(let c=0,d=l.length;c<d;++c)l[c]=Math.round(l[c]*a)/a;return l};o===i&&(o=i.clone()),o.applyTransform(s)}return o}const po={Point:Z,LineString:W,Polygon:K,MultiPoint:Se,MultiLineString:Ce,MultiPolygon:Me};function go(i,e,t){return Array.isArray(e[0])?(Ur(i,0,e,t)||(i=i.slice(),Mt(i,0,e,t)),i):(St(i,0,e,t)||(i=i.slice(),Je(i,0,e,t)),i)}function Dr(i,e){var o;const t=i.geometry;if(!t)return[];if(Array.isArray(t))return t.map(a=>Dr({...i,geometry:a})).flat();const r=t.type==="MultiPolygon"?"Polygon":t.type;if(r==="GeometryCollection"||r==="Circle")throw new Error("Unsupported geometry type: "+r);const n=t.layout.length;return Pe(new D(r,r==="Polygon"?go(t.flatCoordinates,t.ends,n):t.flatCoordinates,(o=t.ends)==null?void 0:o.flat(),n,i.properties||{},i.id).enableSimplifyTransformed(),!1,e)}function Lt(i,e){if(!i)return null;if(Array.isArray(i)){const r=i.map(n=>Lt(n,e));return new J(r)}const t=po[i.type];return Pe(new t(i.flatCoordinates,i.layout||"XY",i.ends),!1,e)}class fo extends Kr{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(De(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(De(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return f()}readFeaturesFromObject(e,t){return f()}readGeometry(e,t){return this.readGeometryFromObject(De(e),this.getReadOptions(e,t))}readGeometryFromObject(e,t){return f()}readProjection(e){return this.readProjectionFromObject(De(e))}readProjectionFromObject(e){return f()}writeFeature(e,t){return JSON.stringify(this.writeFeatureObject(e,t))}writeFeatureObject(e,t){return f()}writeFeatures(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))}writeFeaturesObject(e,t){return f()}writeGeometry(e,t){return JSON.stringify(this.writeGeometryObject(e,t))}writeGeometryObject(e,t){return f()}}function De(i){if(typeof i=="string"){const e=JSON.parse(i);return e||null}return i!==null?i:null}class bo extends fo{constructor(e){e=e||{},super(),this.dataProjection=E(e.dataProjection?e.dataProjection:"EPSG:4326"),e.featureProjection&&(this.defaultFeatureProjection=E(e.featureProjection)),e.featureClass&&(this.featureClass=e.featureClass),this.geometryName_=e.geometryName,this.extractGeometryName_=e.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(e,t){let r=null;e.type==="Feature"?r=e:r={type:"Feature",geometry:e,properties:null};const n=Rt(r.geometry);if(this.featureClass===D)return Dr({geometry:n,id:r.id,properties:r.properties},t);const o=new ne;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&r.geometry_name&&o.setGeometryName(r.geometry_name),o.setGeometry(Lt(n,t)),"id"in r&&o.setId(r.id),r.properties&&o.setProperties(r.properties,!0),o}readFeaturesFromObject(e,t){const r=e;let n=null;if(r.type==="FeatureCollection"){const o=e;n=[];const a=o.features;for(let s=0,l=a.length;s<l;++s){const c=this.readFeatureFromObject(a[s],t);c&&n.push(c)}}else n=[this.readFeatureFromObject(e,t)];return n.flat()}readGeometryFromObject(e,t){return yo(e,t)}readProjectionFromObject(e){const t=e.crs;let r;if(t)if(t.type=="name")r=E(t.properties.name);else if(t.type==="EPSG")r=E("EPSG:"+t.properties.code);else throw new Error("Unknown SRS type");else r=this.dataProjection;return r}writeFeatureObject(e,t){t=this.adaptOptions(t);const r={type:"Feature",geometry:null,properties:null},n=e.getId();if(n!==void 0&&(r.id=n),!e.hasProperties())return r;const o=e.getProperties(),a=e.getGeometry();return a&&(r.geometry=Nt(a,t),delete o[e.getGeometryName()]),cr(o)||(r.properties=o),r}writeFeaturesObject(e,t){t=this.adaptOptions(t);const r=[];for(let n=0,o=e.length;n<o;++n)r.push(this.writeFeatureObject(e[n],t));return{type:"FeatureCollection",features:r}}writeGeometryObject(e,t){return Nt(e,this.adaptOptions(t))}}function Rt(i,e){if(!i)return null;let t;switch(i.type){case"Point":{t=xo(i);break}case"LineString":{t=ko(i);break}case"Polygon":{t=Co(i);break}case"MultiPoint":{t=wo(i);break}case"MultiLineString":{t=_o(i);break}case"MultiPolygon":{t=zo(i);break}case"GeometryCollection":{t=vo(i);break}default:throw new Error("Unsupported GeoJSON type: "+i.type)}return t}function yo(i,e){const t=Rt(i);return Lt(t,e)}function vo(i,e){return i.geometries.map(function(r){return Rt(r)})}function xo(i){const e=i.coordinates;return{type:"Point",flatCoordinates:e,layout:B(e.length)}}function ko(i){var r;const e=i.coordinates,t=e.flat();return{type:"LineString",flatCoordinates:t,ends:[t.length],layout:B(((r=e[0])==null?void 0:r.length)||2)}}function _o(i){var o,a;const e=i.coordinates,t=((a=(o=e[0])==null?void 0:o[0])==null?void 0:a.length)||2,r=[],n=we(r,0,e,t);return{type:"MultiLineString",flatCoordinates:r,ends:n,layout:B(t)}}function wo(i){var t;const e=i.coordinates;return{type:"MultiPoint",flatCoordinates:e.flat(),layout:B(((t=e[0])==null?void 0:t.length)||2)}}function zo(i){var o,a;const e=i.coordinates,t=[],r=((a=(o=e[0])==null?void 0:o[0])==null?void 0:a[0].length)||2,n=Hr(t,0,e,r);return{type:"MultiPolygon",flatCoordinates:t,ends:n,layout:B(r)}}function Co(i){var o,a;const e=i.coordinates,t=[],r=(a=(o=e[0])==null?void 0:o[0])==null?void 0:a.length,n=we(t,0,e,r);return{type:"Polygon",flatCoordinates:t,ends:n,layout:B(r)}}function Nt(i,e){i=Pe(i,!0,e);const t=i.getType();let r;switch(t){case"Point":{r=Ao(i);break}case"LineString":{r=Mo(i);break}case"Polygon":{r=Fo(i,e);break}case"MultiPoint":{r=Eo(i);break}case"MultiLineString":{r=Po(i);break}case"MultiPolygon":{r=$o(i,e);break}case"GeometryCollection":{r=So(i,e);break}case"Circle":{r={type:"GeometryCollection",geometries:[]};break}default:throw new Error("Unsupported geometry type: "+t)}return r}function So(i,e){return e=Object.assign({},e),delete e.featureProjection,{type:"GeometryCollection",geometries:i.getGeometriesArray().map(function(r){return Nt(r,e)})}}function Mo(i,e){return{type:"LineString",coordinates:i.getCoordinates()}}function Po(i,e){return{type:"MultiLineString",coordinates:i.getCoordinates()}}function Eo(i,e){return{type:"MultiPoint",coordinates:i.getCoordinates()}}function $o(i,e){let t;return e&&(t=e.rightHanded),{type:"MultiPolygon",coordinates:i.getCoordinates(t)}}function Ao(i,e){return{type:"Point",coordinates:i.getCoordinates()}}function Fo(i,e){let t;return e&&(t=e.rightHanded),{type:"Polygon",coordinates:i.getCoordinates(t)}}const Go=(i,e)=>new bo().writeFeaturesObject(i,e);class Io extends Kr{constructor(){super()}getType(){return"text"}readFeature(e,t){return this.readFeatureFromText(Qe(e),this.adaptOptions(t))}readFeatureFromText(e,t){return f()}readFeatures(e,t){return this.readFeaturesFromText(Qe(e),this.adaptOptions(t))}readFeaturesFromText(e,t){return f()}readGeometry(e,t){return this.readGeometryFromText(Qe(e),this.adaptOptions(t))}readGeometryFromText(e,t){return f()}readProjection(e){return this.readProjectionFromText(Qe(e))}readProjectionFromText(e){return this.dataProjection}writeFeature(e,t){return this.writeFeatureText(e,this.adaptOptions(t))}writeFeatureText(e,t){return f()}writeFeatures(e,t){return this.writeFeaturesText(e,this.adaptOptions(t))}writeFeaturesText(e,t){return f()}writeGeometry(e,t){return this.writeGeometryText(e,this.adaptOptions(t))}writeGeometryText(e,t){return f()}}function Qe(i){return typeof i=="string"?i:""}const Lo={POINT:Z,LINESTRING:W,POLYGON:K,MULTIPOINT:Se,MULTILINESTRING:Ce,MULTIPOLYGON:Me},Qr="EMPTY",ei="Z",ti="M",Ro="ZM",b={START:0,TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6},No={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"};class To{constructor(e){this.wkt=e,this.index_=-1}isAlpha_(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isNumeric_(e,t){return t=t!==void 0?t:!1,e>="0"&&e<="9"||e=="."&&!t}isWhiteSpace_(e){return e==" "||e==" "||e=="\r"||e==`
63
+ `}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const e=this.nextChar_(),t=this.index_;let r=e,n;if(e=="(")n=b.LEFT_PAREN;else if(e==",")n=b.COMMA;else if(e==")")n=b.RIGHT_PAREN;else if(this.isNumeric_(e)||e=="-")n=b.NUMBER,r=this.readNumber_();else if(this.isAlpha_(e))n=b.TEXT,r=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(e==="")n=b.EOF;else throw new Error("Unexpected character: "+e)}return{position:t,value:r,type:n}}readNumber_(){let e;const t=this.index_;let r=!1,n=!1;do e=="."?r=!0:(e=="e"||e=="E")&&(n=!0),e=this.nextChar_();while(this.isNumeric_(e,r)||!n&&(e=="e"||e=="E")||n&&(e=="-"||e=="+"));return parseFloat(this.wkt.substring(t,this.index_--))}readText_(){let e;const t=this.index_;do e=this.nextChar_();while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()}}class Oo{constructor(e){this.lexer_=e,this.token_={position:0,type:b.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(e){return this.token_.type==e}match(e){const t=this.isTokenType(e);return t&&this.consume_(),t}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let e="XY";const t=this.token_;if(this.isTokenType(b.TEXT)){const r=t.value;r===ei?e="XYZ":r===ti?e="XYM":r===Ro&&(e="XYZM"),e!=="XY"&&this.consume_()}return e}parseGeometryCollectionText_(){if(this.match(b.LEFT_PAREN)){const e=[];do e.push(this.parseGeometry_());while(this.match(b.COMMA));if(this.match(b.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(b.LEFT_PAREN)){const e=this.parsePoint_();if(this.match(b.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(b.LEFT_PAREN)){const e=this.parsePointList_();if(this.match(b.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(b.LEFT_PAREN)){const e=this.parseLineStringTextList_();if(this.match(b.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(b.LEFT_PAREN)){let e;if(this.token_.type==b.LEFT_PAREN?e=this.parsePointTextList_():e=this.parsePointList_(),this.match(b.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(b.LEFT_PAREN)){const e=this.parseLineStringTextList_();if(this.match(b.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(b.LEFT_PAREN)){const e=this.parsePolygonTextList_();if(this.match(b.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePoint_(){const e=[],t=this.layout_.length;for(let r=0;r<t;++r){const n=this.token_;if(this.match(b.NUMBER))e.push(n.value);else break}if(e.length==t)return e;throw new Error(this.formatErrorMessage_())}parsePointList_(){const e=[this.parsePoint_()];for(;this.match(b.COMMA);)e.push(this.parsePoint_());return e}parsePointTextList_(){const e=[this.parsePointText_()];for(;this.match(b.COMMA);)e.push(this.parsePointText_());return e}parseLineStringTextList_(){const e=[this.parseLineStringText_()];for(;this.match(b.COMMA);)e.push(this.parseLineStringText_());return e}parsePolygonTextList_(){const e=[this.parsePolygonText_()];for(;this.match(b.COMMA);)e.push(this.parsePolygonText_());return e}isEmptyGeometry_(){const e=this.isTokenType(b.TEXT)&&this.token_.value==Qr;return e&&this.consume_(),e}formatErrorMessage_(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"}parseGeometry_(){const e=this.token_;if(this.match(b.TEXT)){const t=e.value;this.layout_=this.parseGeometryLayout_();const r=this.isEmptyGeometry_();if(t=="GEOMETRYCOLLECTION"){if(r)return new J([]);const a=this.parseGeometryCollectionText_();return new J(a)}const n=Lo[t];if(!n)throw new Error("Invalid geometry type: "+t);let o;if(r)t=="POINT"?o=[NaN,NaN]:o=[];else switch(t){case"POINT":{o=this.parsePointText_();break}case"LINESTRING":{o=this.parseLineStringText_();break}case"POLYGON":{o=this.parsePolygonText_();break}case"MULTIPOINT":{o=this.parseMultiPointText_();break}case"MULTILINESTRING":{o=this.parseMultiLineStringText_();break}case"MULTIPOLYGON":{o=this.parseMultiPolygonText_();break}}return new n(o,this.layout_)}throw new Error(this.formatErrorMessage_())}}class Ho extends Io{constructor(e){super(),e=e||{},this.splitCollection_=e.splitCollection!==void 0?e.splitCollection:!1}parse_(e){const t=new To(e);return new Oo(t).parse()}readFeatureFromText(e,t){const r=this.readGeometryFromText(e,t),n=new ne;return n.setGeometry(r),n}readFeaturesFromText(e,t){let r=[];const n=this.readGeometryFromText(e,t);this.splitCollection_&&n.getType()=="GeometryCollection"?r=n.getGeometriesArray():r=[n];const o=[];for(let a=0,s=r.length;a<s;++a){const l=new ne;l.setGeometry(r[a]),o.push(l)}return o}readGeometryFromText(e,t){const r=this.parse_(e);return Pe(r,!1,t)}writeFeatureText(e,t){const r=e.getGeometry();return r?this.writeGeometryText(r,t):""}writeFeaturesText(e,t){if(e.length==1)return this.writeFeatureText(e[0],t);const r=[];for(let o=0,a=e.length;o<a;++o)r.push(e[o].getGeometry());const n=new J(r);return this.writeGeometryText(n,t)}writeGeometryText(e,t){return ni(Pe(e,!0,t))}}function ri(i){const e=i.getCoordinates();return e.length===0?"":e.join(" ")}function jo(i){const e=[],t=i.getPoints();for(let r=0,n=t.length;r<n;++r)e.push("("+ri(t[r])+")");return e.join(",")}function Vo(i){const e=[],t=i.getGeometries();for(let r=0,n=t.length;r<n;++r)e.push(ni(t[r]));return e.join(",")}function Tt(i){const e=i.getCoordinates(),t=[];for(let r=0,n=e.length;r<n;++r)t.push(e[r].join(" "));return t.join(",")}function Uo(i){const e=[],t=i.getLineStrings();for(let r=0,n=t.length;r<n;++r)e.push("("+Tt(t[r])+")");return e.join(",")}function ii(i){const e=[],t=i.getLinearRings();for(let r=0,n=t.length;r<n;++r)e.push("("+Tt(t[r])+")");return e.join(",")}function Yo(i){const e=[],t=i.getPolygons();for(let r=0,n=t.length;r<n;++r)e.push("("+ii(t[r])+")");return e.join(",")}function Xo(i){const e=i.getLayout();let t="";return(e==="XYZ"||e==="XYZM")&&(t+=ei),(e==="XYM"||e==="XYZM")&&(t+=ti),t}const Bo={Point:ri,LineString:Tt,Polygon:ii,MultiPoint:jo,MultiLineString:Uo,MultiPolygon:Yo,GeometryCollection:Vo};function ni(i){const e=i.getType(),t=Bo[e],r=t(i);let n=No[e];if(typeof i.getFlatCoordinates=="function"){const o=Xo(i);o.length>0&&(n+=" "+o)}return r.length===0?n+" "+Qr:n+"("+r+")"}const qo=(i,e)=>new Ho().writeFeatures(i,e);/**
63
64
  * @license
64
65
  * Copyright 2021 Google LLC
65
66
  * SPDX-License-Identifier: BSD-3-Clause
66
- */function ln(n,t,e){return n?t(n):e==null?void 0:e(n)}class hn extends U{constructor(){super();T(this,Ft,!0);T(this,Gt,!0);this.multipleFeatures=!1,this.drawnFeatures=[],this.importFeatures=!1,this.showEditor=!1,this.currentlyDrawing=!1,this.drawFunc=null,this.geoJSON="",this.unstyled=!1,this.select=!1}updateButtonStates(){const{drawDisabled:e,discardDisabled:i}=Zn(this);I(this,Ft,e),I(this,Gt,i)}createRenderRoot(){return this}render(){this.updateButtonStates();const e=this.currentlyDrawing?"drawing":"draw";return k`
67
- <style>
68
- ${!this.unstyled&&Kn}
69
- ${!this.unstyled&&Qn}
70
- </style>
71
- <div class="wrap-btn">
67
+ */function oi(i,e,t){return i?e(i):t==null?void 0:t(i)}class ai extends H{constructor(){super();R(this,Ee,!0);R(this,$e,!0);this.multipleFeatures=!1,this.drawnFeatures=[],this.importFeatures=!1,this.showEditor=!1,this.currentlyDrawing=!1,this.drawFunc=null,this.geoJSON="",this.type="Polygon",this.unstyled=!1,this.select=!1}updateButtonStates(){const{drawDisabled:t,discardDisabled:r}=Ji(this);G(this,Ee,t),G(this,$e,r)}createRenderRoot(){return this}render(){this.updateButtonStates();const t=this.currentlyDrawing?"drawing":"draw",r={Polygon:w`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
68
+ <title>shape-polygon-plus</title>
69
+ <path
70
+ d="M17,15.7V13H19V17L10,21L3,14L7,5H11V7H8.3L5.4,13.6L10.4,18.6L17,15.7M22,5V7H19V10H17V7H14V5H17V2H19V5H22Z"
71
+ />
72
+ </svg>`,Point:w`
73
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
74
+ <title>vector-point-plus</title>
75
+ <path
76
+ d="M9 9V15H15V9H9M11 11H13V13H11V11M18 15V18H15V20H18V23H20V20H23V18H20V15H18Z"
77
+ />
78
+ </svg>
79
+ `,Circle:w`
80
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
81
+ <title>shape-circle-plus</title>
82
+ <path
83
+ d="M11,19A6,6 0 0,0 17,13H19A8,8 0 0,1 11,21A8,8 0 0,1 3,13A8,8 0 0,1 11,5V7A6,6 0 0,0 5,13A6,6 0 0,0 11,19M19,5H22V7H19V10H17V7H14V5H17V2H19V5Z"
84
+ />
85
+ </svg>
86
+ `,LineString:w`
87
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
88
+ <title>vector-polyline-plus</title>
89
+ <path
90
+ d="M2 3V9H4.95L6.95 15H6V21H12V16.41L17.41 11H22V5H16V9.57L10.59 15H9.06L7.06 9H8V3H2M4 5H6V7H4V5M18 7H20V9H18V7M18 15V18H15V20H18V23H20V20H23V18H20V15H18M8 17H10V19H8V17Z"
91
+ />
92
+ </svg>
93
+ `,Box:w`
94
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
95
+ <title>shape-rectangle-plus</title>
96
+ <path
97
+ d="M19,6H22V8H19V11H17V8H14V6H17V3H19V6M17,17V14H19V19H3V6H11V8H5V17H17Z"
98
+ />
99
+ </svg>
100
+ `},n=w`<svg
101
+ xmlns="http://www.w3.org/2000/svg"
102
+ viewBox="0 0 24 24"
103
+ >
104
+ <title>cursor-default-click</title>
105
+ <path
106
+ d="M10.76,8.69A0.76,0.76 0 0,0 10,9.45V20.9C10,21.32 10.34,21.66 10.76,21.66C10.95,21.66 11.11,21.6 11.24,21.5L13.15,19.95L14.81,23.57C14.94,23.84 15.21,24 15.5,24C15.61,24 15.72,24 15.83,23.92L18.59,22.64C18.97,22.46 19.15,22 18.95,21.63L17.28,18L19.69,17.55C19.85,17.5 20,17.43 20.12,17.29C20.39,16.97 20.35,16.5 20,16.21L11.26,8.86L11.25,8.87C11.12,8.76 10.95,8.69 10.76,8.69M15,10V8H20V10H15M13.83,4.76L16.66,1.93L18.07,3.34L15.24,6.17L13.83,4.76M10,0H12V5H10V0M3.93,14.66L6.76,11.83L8.17,13.24L5.34,16.07L3.93,14.66M3.93,3.34L5.34,1.93L8.17,4.76L6.76,6.17L3.93,3.34M7,10H2V8H7V10"
107
+ />
108
+ </svg>`,o=w`<svg
109
+ xmlns="http://www.w3.org/2000/svg"
110
+ viewBox="0 0 24 24"
111
+ >
112
+ <title>trash-can-outline</title>
113
+ <path
114
+ d="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z"
115
+ />
116
+ </svg>`,a=w`<svg
117
+ xmlns="http://www.w3.org/2000/svg"
118
+ viewBox="0 0 24 24"
119
+ >
120
+ <title>import</title>
121
+ <path
122
+ d="M14,12L10,8V11H2V13H10V16M20,18V6C20,4.89 19.1,4 18,4H6A2,2 0 0,0 4,6V9H6V6H18V18H6V15H4V18A2,2 0 0,0 6,20H18A2,2 0 0,0 20,18Z"
123
+ />
124
+ </svg>`,s=w`<svg
125
+ xmlns="http://www.w3.org/2000/svg"
126
+ viewBox="0 0 24 24"
127
+ >
128
+ <title>content-copy</title>
129
+ <path
130
+ d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"
131
+ />
132
+ </svg>`;return w`
133
+ <nav>
72
134
  <slot></slot>
73
- <div>
135
+ <div class="max">
74
136
  <!-- Draw Button -->
75
137
  <button
76
138
  data-cy="drawBtn"
77
- class="${this.select?"pointer":"polygon"} icon"
78
- ?disabled="${A(this,Ft)||b}"
139
+ class="transparent square primary-text no-margin small"
140
+ title="${this.unstyled?this.select?"Select":"Draw":""}"
141
+ ?disabled="${$(this,Ee)||_}"
79
142
  @click="${()=>this.drawFunc.start()}"
80
143
  >
81
- ${e}
144
+ ${this.unstyled?t:w`
145
+ <i class="small"
146
+ >${this.select?n:r[this.type]}</i
147
+ >
148
+ <div class="tooltip bottom">
149
+ ${this.select?"Select":"Draw"}
150
+ </div>
151
+ `}
82
152
  </button>
83
153
 
84
154
  <!-- Discard Button -->
85
155
  <button
86
156
  data-cy="discardBtn"
87
- class="discard icon"
88
- ?disabled="${A(this,Gt)||b}"
157
+ class="transparent square error-text no-margin small"
158
+ title="${this.unstyled?"Discard":""}"
159
+ ?disabled="${$(this,$e)||_}"
89
160
  @click="${()=>this.drawFunc.discard()}"
90
161
  >
91
- discard
162
+ ${this.unstyled?"discard":w`
163
+ <i class="small">${o}</i>
164
+ <div class="tooltip bottom">Discard</div>
165
+ `}
92
166
  </button>
93
167
  </div>
94
168
 
95
169
  <!-- Import Button -->
96
- ${ln(this.importFeatures,()=>k`
170
+ ${oi(this.importFeatures,()=>w`
97
171
  <!-- Import Input Field : Hidden -->
98
172
  <input
99
173
  type="file"
@@ -105,19 +179,24 @@
105
179
  <!-- Main Import Button -->
106
180
  <button
107
181
  data-cy="importBtn"
108
- class="import icon"
182
+ class="transparent circle primary-text no-margin small"
183
+ title="${this.unstyled?"Import features":""}"
109
184
  @click=${()=>this.querySelector("#import-file").click()}
110
185
  >
111
- import
186
+ ${this.unstyled?"import":w`
187
+ <i class="small">${a}</i>
188
+ <div class="tooltip left">Import features</div>
189
+ `}
112
190
  </button>
113
191
  `)}
114
- </div>
192
+ </nav>
115
193
 
116
194
  <!-- Geo JSON Wrapper -->
117
- ${ln(this.showEditor,()=>k`
118
- <div class="json-wrapper">
195
+ ${oi(this.showEditor,()=>w`
196
+ <div class="field textarea border extra">
119
197
  <!-- Geo JSON Editor -->
120
198
  <textarea
199
+ style="font-family: monospace"
121
200
  @drop=${this.drawFunc.import}
122
201
  @input=${this.drawFunc.editor}
123
202
  .value=${this.geoJSON}
@@ -126,68 +205,68 @@
126
205
  <!-- Geo JSON Copy Button -->
127
206
  <button
128
207
  data-cy="copyBtn"
129
- class="icon-copy"
130
- @click=${()=>tr(this.geoJSON)}
208
+ class="circle absolute bottom right medium-margin"
209
+ @click=${()=>Wi(this.geoJSON)}
131
210
  >
132
- ${this.unstyled?"copy":b}
211
+ ${this.unstyled?"copy":w`
212
+ <i class="tiny">${s}</i>
213
+ <div class="tooltip top">Copy</div>
214
+ `}
133
215
  </button>
134
216
  </div>
135
217
  `)}
136
- `}}Ft=new WeakMap,Gt=new WeakMap,et(hn,"properties",{multipleFeatures:{attribute:!1,type:Boolean},drawnFeatures:{attribute:!1,state:!0,type:Array},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},drawFunc:{attribute:!1,type:Object},select:{type:Boolean},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},geoJSON:{attribute:"geo-json",type:String},unstyled:{type:Boolean}}),customElements.define("eox-drawtools-controller",hn);const Ds=`
137
- button.discard:before {
138
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF5252' viewBox='0 0 24 24'%3E%3Ctitle%3Etrash-can-outline%3C/title%3E%3Cpath d='M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z' /%3E%3C/svg%3E")
139
- }
140
- button.pointer:before {
141
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Ecursor-default-click%3C/title%3E%3Cpath d='M10.76,8.69A0.76,0.76 0 0,0 10,9.45V20.9C10,21.32 10.34,21.66 10.76,21.66C10.95,21.66 11.11,21.6 11.24,21.5L13.15,19.95L14.81,23.57C14.94,23.84 15.21,24 15.5,24C15.61,24 15.72,24 15.83,23.92L18.59,22.64C18.97,22.46 19.15,22 18.95,21.63L17.28,18L19.69,17.55C19.85,17.5 20,17.43 20.12,17.29C20.39,16.97 20.35,16.5 20,16.21L11.26,8.86L11.25,8.87C11.12,8.76 10.95,8.69 10.76,8.69M15,10V8H20V10H15M13.83,4.76L16.66,1.93L18.07,3.34L15.24,6.17L13.83,4.76M10,0H12V5H10V0M3.93,14.66L6.76,11.83L8.17,13.24L5.34,16.07L3.93,14.66M3.93,3.34L5.34,1.93L8.17,4.76L6.76,6.17L3.93,3.34M7,10H2V8H7V10' /%3E%3C/svg%3E");
142
- }
143
- button.polygon:before {
144
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eshape-polygon-plus%3C/title%3E%3Cpath d='M17,15.7V13H19V17L10,21L3,14L7,5H11V7H8.3L5.4,13.6L10.4,18.6L17,15.7M22,5V7H19V10H17V7H14V5H17V2H19V5H22Z' /%3E%3C/svg%3E");
145
- }
146
- button.import:before {
147
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eupload%3C/title%3E%3Cpath fill='%23004170' d='M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z' /%3E%3C/svg%3E");
148
- }
149
- .wrap-btn {
150
- display: flex;
151
- justify-content: space-between;
152
- }
153
- eox-drawtools-list {
154
- width: 100%;
155
- }
156
- .json-wrapper {
157
- margin: 0.4rem 0rem;
158
- padding: 0.75rem;
159
- background: var(--secondary-color-hover);
160
- position: relative;
161
- }
162
- .json-wrapper textarea {
163
- height: 200px;
218
+ `}}Ee=new WeakMap,$e=new WeakMap,ee(ai,"properties",{multipleFeatures:{attribute:!1,type:Boolean},drawnFeatures:{attribute:!1,state:!0,type:Array},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},drawFunc:{attribute:!1,type:Object},select:{type:Boolean},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},geoJSON:{attribute:"geo-json",type:String},type:{attribute:"type",type:String},unstyled:{type:Boolean}}),customElements.define("eox-drawtools-controller",ai);const si='@import"https://eox.at/fonts/inter/inter.css";@import"https://eox.at/fonts/materialdesignicons/materialdesignicons.min.css";:root{--size: 1rem;--font: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Noto Sans, Arial, sans-serif;--font-icon: "Material Symbols Outlined";--speed1: .1s;--speed2: .2s;--speed3: .3s;--speed4: .4s;--active: rgb(128 128 128 / .192);--overlay: rgb(0 0 0 / .5);--elevate1: 0 .125rem .125rem 0 rgb(0 0 0 / .32);--elevate2: 0 .25rem .5rem 0 rgb(0 0 0 / .4);--elevate3: 0 .375rem .75rem 0 rgb(0 0 0 / .48);--top: env(safe-area-inset-top);--bottom: env(safe-area-inset-bottom);--left: env(safe-area-inset-left);--right: env(safe-area-inset-right)}:root,body.light{--primary: #6750a4;--on-primary: #ffffff;--primary-container: #e9ddff;--on-primary-container: #22005d;--secondary: #625b71;--on-secondary: #ffffff;--secondary-container: #e8def8;--on-secondary-container: #1e192b;--tertiary: #7e5260;--on-tertiary: #ffffff;--tertiary-container: #ffd9e3;--on-tertiary-container: #31101d;--error: #ba1a1a;--on-error: #ffffff;--error-container: #ffdad6;--on-error-container: #410002;--background: #fffbff;--on-background: #1c1b1e;--surface: #fdf8fd;--on-surface: #1c1b1e;--surface-variant: #e7e0eb;--on-surface-variant: #49454e;--outline: #7a757f;--outline-variant: #cac4cf;--shadow: #000000;--scrim: #000000;--inverse-surface: #313033;--inverse-on-surface: #f4eff4;--inverse-primary: #cfbcff;--surface-dim: #ddd8dd;--surface-bright: #fdf8fd;--surface-container-lowest: #ffffff;--surface-container-low: #f7f2f7;--surface-container: #f2ecf1;--surface-container-high: #ece7eb;--surface-container-highest: #e6e1e6}body.dark{--primary: #cfbcff;--on-primary: #381e72;--primary-container: #4f378a;--on-primary-container: #e9ddff;--secondary: #cbc2db;--on-secondary: #332d41;--secondary-container: #4a4458;--on-secondary-container: #e8def8;--tertiary: #efb8c8;--on-tertiary: #4a2532;--tertiary-container: #633b48;--on-tertiary-container: #ffd9e3;--error: #ffb4ab;--on-error: #690005;--error-container: #93000a;--on-error-container: #ffb4ab;--background: #1c1b1e;--on-background: #e6e1e6;--surface: #141316;--on-surface: #e6e1e6;--surface-variant: #49454e;--on-surface-variant: #cac4cf;--outline: #948f99;--outline-variant: #49454e;--shadow: #000000;--scrim: #000000;--inverse-surface: #e6e1e6;--inverse-on-surface: #313033;--inverse-primary: #6750a4;--surface-dim: #141316;--surface-bright: #3a383c;--surface-container-lowest: #0f0e11;--surface-container-low: #1c1b1e;--surface-container: #201f22;--surface-container-high: #2b292d;--surface-container-highest: #363438}@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:400;font-display:block;src:url(/material-symbols-outlined.woff2?no-inline) format("woff2"),url(https://cdn.jsdelivr.net/npm/beercss@3.11.4/dist/cdn/material-symbols-outlined.woff2) format("woff2")}@font-face{font-family:Material Symbols Rounded;font-style:normal;font-weight:400;font-display:block;src:url(/material-symbols-rounded.woff2?no-inline) format("woff2"),url(https://cdn.jsdelivr.net/npm/beercss@3.11.4/dist/cdn/material-symbols-rounded.woff2) format("woff2")}@font-face{font-family:Material Symbols Sharp;font-style:normal;font-weight:400;font-display:block;src:url(/material-symbols-sharp.woff2?no-inline) format("woff2"),url(https://cdn.jsdelivr.net/npm/beercss@3.11.4/dist/cdn/material-symbols-sharp.woff2) format("woff2")}@font-face{font-family:Material Symbols Subset;font-style:normal;font-weight:400;font-display:block;src:url(/material-symbols-subset.woff2?no-inline) format("woff2"),url(https://cdn.jsdelivr.net/npm/beercss@3.11.4/dist/cdn/material-symbols-subset.woff2) format("woff2")}*{-webkit-tap-highlight-color:transparent;position:relative;vertical-align:middle;color:inherit;margin:0;padding:0;border-radius:inherit;box-sizing:border-box}body{color:var(--on-surface);background-color:var(--surface);overflow-x:hidden}label{font-size:.75rem;vertical-align:baseline}a,b,i,span,strong,em,code{vertical-align:baseline}a,button,.button{cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;border:none;font-family:inherit;outline:inherit;justify-content:center}a,button,.button,i,label{-webkit-user-select:none;user-select:none}body ::-webkit-scrollbar,body ::-webkit-scrollbar-thumb,body ::-webkit-scrollbar-button{background:none;inline-size:.4rem;block-size:.4rem}body :is(:hover,:focus)::-webkit-scrollbar-thumb{background:var(--outline);border-radius:1rem}*+:is(address,article,blockquote,code,.field,fieldset,form,.grid,h1,h2,h3,h4,h5,h6,nav,ol,p,pre,.row,section,aside,table,.tabs,ul){margin-block-start:1rem}:is(a,button,.button,.chip):focus-visible{outline:.125rem solid var(--primary);outline-offset:.25rem}:is(nav,.row,li).group>:focus-visible{outline-offset:0}.transparent{background-color:transparent!important;box-shadow:none!important;color:inherit!important}.primary{background-color:var(--primary)!important;color:var(--on-primary)!important}.primary-text{color:var(--primary)!important}.primary-border{border-color:var(--primary)!important}.primary-container{background-color:var(--primary-container)!important;color:var(--on-primary-container)!important}.secondary{background-color:var(--secondary)!important;color:var(--on-secondary)!important}.secondary-text{color:var(--secondary)!important}.secondary-border{border-color:var(--secondary)!important}.secondary-container{background-color:var(--secondary-container)!important;color:var(--on-secondary-container)!important}.tertiary{background-color:var(--tertiary)!important;color:var(--on-tertiary)!important}.tertiary-text{color:var(--tertiary)!important}.tertiary-border{border-color:var(--tertiary)!important}.tertiary-container{background-color:var(--tertiary-container)!important;color:var(--on-tertiary-container)!important}.error{background-color:var(--error)!important;color:var(--on-error)!important}.error-text{color:var(--error)!important}.error-border{border-color:var(--error)!important}.error-container{background-color:var(--error-container)!important;color:var(--on-error-container)!important}.background{background-color:var(--background)!important;color:var(--on-background)!important}.surface,.surface-dim,.surface-bright,.surface-container-lowest,.surface-container-low,.surface-container,.surface-container-high,.surface-container-highest{background-color:var(--surface)!important;color:var(--on-surface)!important}.surface-variant{background-color:var(--surface-variant)!important;color:var(--on-surface-variant)!important}.inverse-surface{background-color:var(--inverse-surface);color:var(--inverse-on-surface)}.inverse-primary{background-color:var(--inverse-primary);color:var(--primary)}.inverse-primary-text{color:var(--inverse-primary)!important}.inverse-primary-border{border-color:var(--inverse-primary)!important}.surface-dim{background-color:var(--surface-dim)!important}.surface-bright{background-color:var(--surface-bright)!important}.surface-container-lowest{background-color:var(--surface-container-lowest)!important}.surface-container{background-color:var(--surface-container)!important}.surface-container-high{background-color:var(--surface-container-high)!important}.surface-container-highest{background-color:var(--surface-container-highest)!important}.surface-container-low{background-color:var(--surface-container-low)!important}.black{background-color:#000!important}.black-border{border-color:#000!important}.black-text{color:#000!important}.white{background-color:#fff!important}.white-border{border-color:#fff!important}.white-text{color:#fff!important}.transparent-border{border-color:transparent!important}.transparent-text{color:transparent!important}.fill:not(i){background-color:var(--surface-variant)!important;color:var(--on-surface-variant)!important}.primary-container>.active,.primary-container.active{background-color:var(--primary)!important;color:var(--on-primary)!important}.secondary-container>.active,.secondary-container.active{background-color:var(--secondary)!important;color:var(--on-secondary)!important}.tertiary-container>.active,.tertiary-container.active{background-color:var(--tertiary)!important;color:var(--on-tertiary)!important}.primary>.active,.primary.active{background-color:var(--primary-container)!important;color:var(--on-primary-container)!important}.secondary>.active,.secondary.active{background-color:var(--secondary-container)!important;color:var(--on-secondary-container)!important}.tertiary>.active,.tertiary.active{background-color:var(--tertiary-container)!important;color:var(--on-tertiary-container)!important}.middle-align{display:flex;align-items:center!important}.bottom-align{display:flex;align-items:flex-end!important}.top-align{display:flex;align-items:flex-start!important}.left-align{text-align:start;justify-content:flex-start!important}.right-align{text-align:end;justify-content:flex-end!important}.center-align{text-align:center;justify-content:center!important}[class*=blur],[class*=blur].light{--_blur: 1rem;-webkit-backdrop-filter:blur(var(--_blur));backdrop-filter:blur(var(--_blur));color:var(--on-surface);background-color:#ffffff80!important}.dark [class*=blur],[class*=blur].dark{background-color:#00000080!important}.small-blur{--_blur: .5rem}.large-blur{--_blur: 1.5rem}.red,.red6{background-color:#f44336!important}.red-border{border-color:#f44336!important}.red-text{color:#f44336!important}.red1{background-color:#ffebee!important}.red2{background-color:#ffcdd2!important}.red3{background-color:#ef9a9a!important}.red4{background-color:#e57373!important}.red5{background-color:#ef5350!important}.red7{background-color:#e53935!important}.red8{background-color:#d32f2f!important}.red9{background-color:#c62828!important}.red10{background-color:#b71c1c!important}.pink,.pink6{background-color:#e91e63!important}.pink-border{border-color:#e91e63!important}.pink-text{color:#e91e63!important}.pink1{background-color:#fce4ec!important}.pink2{background-color:#f8bbd0!important}.pink3{background-color:#f48fb1!important}.pink4{background-color:#f06292!important}.pink5{background-color:#ec407a!important}.pink7{background-color:#d81b60!important}.pink8{background-color:#c2185b!important}.pink9{background-color:#ad1457!important}.pink10{background-color:#880e4f!important}.purple,.purple6{background-color:#9c27b0!important}.purple-border{border-color:#9c27b0!important}.purple-text{color:#9c27b0!important}.purple1{background-color:#f3e5f5!important}.purple2{background-color:#e1bee7!important}.purple3{background-color:#ce93d8!important}.purple4{background-color:#ba68c8!important}.purple5{background-color:#ab47bc!important}.purple7{background-color:#8e24aa!important}.purple8{background-color:#7b1fa2!important}.purple9{background-color:#6a1b9a!important}.purple10{background-color:#4a148c!important}.deep-purple,.deep-purple6{background-color:#673ab7!important}.deep-purple-border{border-color:#673ab7!important}.deep-purple-text{color:#673ab7!important}.deep-purple1{background-color:#ede7f6!important}.deep-purple2{background-color:#d1c4e9!important}.deep-purple3{background-color:#b39ddb!important}.deep-purple4{background-color:#9575cd!important}.deep-purple5{background-color:#7e57c2!important}.deep-purple7{background-color:#5e35b1!important}.deep-purple8{background-color:#512da8!important}.deep-purple9{background-color:#4527a0!important}.deep-purple10{background-color:#311b92!important}.indigo,.indigo6{background-color:#3f51b5!important}.indigo-border{border-color:#3f51b5!important}.indigo-text{color:#3f51b5!important}.indigo1{background-color:#e8eaf6!important}.indigo2{background-color:#c5cae9!important}.indigo3{background-color:#9fa8da!important}.indigo4{background-color:#7986cb!important}.indigo5{background-color:#5c6bc0!important}.indigo7{background-color:#3949ab!important}.indigo8{background-color:#303f9f!important}.indigo9{background-color:#283593!important}.indigo10{background-color:#1a237e!important}.blue,.blue6{background-color:#2196f3!important}.blue-border{border-color:#2196f3!important}.blue-text{color:#2196f3!important}.blue1{background-color:#e3f2fd!important}.blue2{background-color:#bbdefb!important}.blue3{background-color:#90caf9!important}.blue4{background-color:#64b5f6!important}.blue5{background-color:#42a5f5!important}.blue7{background-color:#1e88e5!important}.blue8{background-color:#1976d2!important}.blue9{background-color:#1565c0!important}.blue10{background-color:#0d47a1!important}.light-blue,.light-blue6{background-color:#03a9f4!important}.light-blue-border{border-color:#03a9f4!important}.light-blue-text{color:#03a9f4!important}.light-blue1{background-color:#e1f5fe!important}.light-blue2{background-color:#b3e5fc!important}.light-blue3{background-color:#81d4fa!important}.light-blue4{background-color:#4fc3f7!important}.light-blue5{background-color:#29b6f6!important}.light-blue7{background-color:#039be5!important}.light-blue8{background-color:#0288d1!important}.light-blue9{background-color:#0277bd!important}.light-blue10{background-color:#01579b!important}.cyan,.cyan6{background-color:#00bcd4!important}.cyan-border{border-color:#00bcd4!important}.cyan-text{color:#00bcd4!important}.cyan1{background-color:#e0f7fa!important}.cyan2{background-color:#b2ebf2!important}.cyan3{background-color:#80deea!important}.cyan4{background-color:#4dd0e1!important}.cyan5{background-color:#26c6da!important}.cyan7{background-color:#00acc1!important}.cyan8{background-color:#0097a7!important}.cyan9{background-color:#00838f!important}.cyan10{background-color:#006064!important}.teal,.teal6{background-color:#009688!important}.teal-border{border-color:#009688!important}.teal-text{color:#009688!important}.teal1{background-color:#e0f2f1!important}.teal2{background-color:#b2dfdb!important}.teal3{background-color:#80cbc4!important}.teal4{background-color:#4db6ac!important}.teal5{background-color:#26a69a!important}.teal7{background-color:#00897b!important}.teal8{background-color:#00796b!important}.teal9{background-color:#00695c!important}.teal10{background-color:#004d40!important}.green,.green6{background-color:#4caf50!important}.green-border{border-color:#4caf50!important}.green-text{color:#4caf50!important}.green1{background-color:#e8f5e9!important}.green2{background-color:#c8e6c9!important}.green3{background-color:#a5d6a7!important}.green4{background-color:#81c784!important}.green5{background-color:#66bb6a!important}.green7{background-color:#43a047!important}.green8{background-color:#388e3c!important}.green9{background-color:#2e7d32!important}.green10{background-color:#1b5e20!important}.light-green,.light-green6{background-color:#8bc34a!important}.light-green-border{border-color:#8bc34a!important}.light-green-text{color:#8bc34a!important}.light-green1{background-color:#f1f8e9!important}.light-green2{background-color:#dcedc8!important}.light-green3{background-color:#c5e1a5!important}.light-green4{background-color:#aed581!important}.light-green5{background-color:#9ccc65!important}.light-green7{background-color:#7cb342!important}.light-green8{background-color:#689f38!important}.light-green9{background-color:#558b2f!important}.light-green10{background-color:#33691e!important}.lime,.lime6{background-color:#cddc39!important}.lime-border{border-color:#cddc39!important}.lime-text{color:#cddc39!important}.lime1{background-color:#f9fbe7!important}.lime2{background-color:#f0f4c3!important}.lime3{background-color:#e6ee9c!important}.lime4{background-color:#dce775!important}.lime5{background-color:#d4e157!important}.lime7{background-color:#c0ca33!important}.lime8{background-color:#afb42b!important}.lime9{background-color:#9e9d24!important}.lime10{background-color:#827717!important}.yellow,.yellow6{background-color:#ffeb3b!important}.yellow-border{border-color:#ffeb3b!important}.yellow-text{color:#ffeb3b!important}.yellow1{background-color:#fffde7!important}.yellow2{background-color:#fff9c4!important}.yellow3{background-color:#fff59d!important}.yellow4{background-color:#fff176!important}.yellow5{background-color:#ffee58!important}.yellow7{background-color:#fdd835!important}.yellow8{background-color:#fbc02d!important}.yellow9{background-color:#f9a825!important}.yellow10{background-color:#f57f17!important}.amber,.amber6{background-color:#ffc107!important}.amber-border{border-color:#ffc107!important}.amber-text{color:#ffc107!important}.amber1{background-color:#fff8e1!important}.amber2{background-color:#ffecb3!important}.amber3{background-color:#ffe082!important}.amber4{background-color:#ffd54f!important}.amber5{background-color:#ffca28!important}.amber7{background-color:#ffb300!important}.amber8{background-color:#ffa000!important}.amber9{background-color:#ff8f00!important}.amber10{background-color:#ff6f00!important}.orange,.orange6{background-color:#ff9800!important}.orange-border{border-color:#ff9800!important}.orange-text{color:#ff9800!important}.orange1{background-color:#fff3e0!important}.orange2{background-color:#ffe0b2!important}.orange3{background-color:#ffcc80!important}.orange4{background-color:#ffb74d!important}.orange5{background-color:#ffa726!important}.orange7{background-color:#fb8c00!important}.orange8{background-color:#f57c00!important}.orange9{background-color:#ef6c00!important}.orange10{background-color:#e65100!important}.deep-orange,.deep-orange6{background-color:#ff5722!important}.deep-orange-border{border-color:#ff5722!important}.deep-orange-text{color:#ff5722!important}.deep-orange1{background-color:#fbe9e7!important}.deep-orange2{background-color:#ffccbc!important}.deep-orange3{background-color:#ffab91!important}.deep-orange4{background-color:#ff8a65!important}.deep-orange5{background-color:#ff7043!important}.deep-orange7{background-color:#f4511e!important}.deep-orange8{background-color:#e64a19!important}.deep-orange9{background-color:#d84315!important}.deep-orange10{background-color:#bf360c!important}.brown,.brown6{background-color:#795548!important}.brown-border{border-color:#795548!important}.brown-text{color:#795548!important}.brown1{background-color:#efebe9!important}.brown2{background-color:#d7ccc8!important}.brown3{background-color:#bcaaa4!important}.brown4{background-color:#a1887f!important}.brown5{background-color:#8d6e63!important}.brown7{background-color:#6d4c41!important}.brown8{background-color:#5d4037!important}.brown9{background-color:#4e342e!important}.brown10{background-color:#3e2723!important}.blue-grey,.blue-grey6{background-color:#607d8b!important}.blue-grey-border{border-color:#607d8b!important}.blue-grey-text{color:#607d8b!important}.blue-grey1{background-color:#eceff1!important}.blue-grey2{background-color:#cfd8dc!important}.blue-grey3{background-color:#b0bec5!important}.blue-grey4{background-color:#90a4ae!important}.blue-grey5{background-color:#78909c!important}.blue-grey7{background-color:#546e7a!important}.blue-grey8{background-color:#455a64!important}.blue-grey9{background-color:#37474f!important}.blue-grey10{background-color:#263238!important}.grey,.grey6{background-color:#9e9e9e!important}.grey-border{border-color:#9e9e9e!important}.grey-text{color:#9e9e9e!important}.grey1{background-color:#fafafa!important}.grey2{background-color:#f5f5f5!important}.grey3{background-color:#eee!important}.grey4{background-color:#e0e0e0!important}.grey5{background-color:#bdbdbd!important}.grey7{background-color:#757575!important}.grey8{background-color:#616161!important}.grey9{background-color:#424242!important}.grey10{background-color:#212121!important}.horizontal{display:inline-flex;flex-direction:row!important;gap:1rem;inline-size:auto!important;max-inline-size:none!important}.horizontal>*{margin-block:0!important}.vertical{display:flex;flex-direction:column!important}:is(a,button,.button,.chip).vertical{display:inline-flex;gap:.25rem;block-size:auto!important;max-block-size:none!important;padding-block:.5rem}.vertical>*{margin-inline:0!important}.no-elevate{box-shadow:none!important}.small-elevate,.elevate{box-shadow:var(--elevate1)!important}.medium-elevate{box-shadow:var(--elevate2)!important}.large-elevate{box-shadow:var(--elevate3)!important}[class*=round]{--_round: 2rem;border-radius:var(--_round)!important}.small-round{--_round: .5rem}.large-round{--_round: 3.5rem}.no-round,.square,.top-round,.bottom-round,.left-round,.right-round{border-radius:.5rem!important}.top-round{border-start-start-radius:var(--_round)!important;border-start-end-radius:var(--_round)!important}.bottom-round{border-end-end-radius:var(--_round)!important;border-end-start-radius:var(--_round)!important}.left-round{border-start-start-radius:var(--_round)!important;border-end-start-radius:var(--_round)!important}.right-round{border-start-end-radius:var(--_round)!important;border-end-end-radius:var(--_round)!important}.circle:not(.extend){border-radius:50%}:is(.circle,.square):is(button,.button,.chip){padding:0;block-size:var(--_size);inline-size:var(--_size)}:is(.circle,.square)>span{display:none}:is(.circle,.square).round{border-radius:1rem!important}.border:not(table,.field,.list,menu,article){box-sizing:border-box;border:.0625rem solid var(--outline);background-color:transparent;box-shadow:none}.no-border{border-color:transparent!important}.border:not(.extend,.circle,.square,.badge){box-sizing:content-box}[class*=margin]:not(.left-margin,.right-margin,.top-margin,.bottom-margin,.horizontal-margin,.vertical-margin){margin:var(--_margin)!important}[class*=margin]{--_margin: 1rem}.no-margin{--_margin: 0}.auto-margin{--_margin: auto}.tiny-margin{--_margin: .25rem}.small-margin{--_margin: .5rem}.large-margin{--_margin: 1.5rem}.left-margin,.horizontal-margin{margin-inline-start:var(--_margin)!important}.right-margin,.horizontal-margin{margin-inline-end:var(--_margin)!important}.top-margin,.vertical-margin{margin-block-start:var(--_margin)!important}.bottom-margin,.vertical-margin{margin-block-end:var(--_margin)!important}.no-opacity{opacity:1!important}.opacity{opacity:0!important}.small-opacity{opacity:.75!important}.medium-opacity{opacity:.5!important}.large-opacity{opacity:.25!important}[class*=padding]:not(.left-padding,.right-padding,.top-padding,.bottom-padding,.horizontal-padding,.vertical-padding){padding:var(--_padding)!important}[class*=padding]{--_padding: 1rem}.no-padding{--_padding: 0 !important}.tiny-padding{--_padding: .25rem !important}.small-padding{--_padding: .5rem !important}.large-padding{--_padding: 1.5rem !important}.left-padding,.horizontal-padding{padding-inline-start:var(--_padding)!important}.right-padding,.horizontal-padding{padding-inline-end:var(--_padding)!important}.top-padding,.vertical-padding{padding-block-start:var(--_padding)!important}.bottom-padding,.vertical-padding{padding-block-end:var(--_padding)!important}.front{z-index:10!important}.back{z-index:-10!important}.left{inset-inline-start:0}.right{inset-inline-end:0}.top{inset-block-start:0}.bottom{inset-block-end:0}.center{inset-inline-start:50%;transform:translate(-50%)}[dir=rtl] .center{transform:translate(50%)}.middle{inset-block-start:50%;transform:translateY(-50%)}.middle.center{transform:translate(-50%,-50%)}[dir=rtl] .middle.center{transform:translate(50%,-50%)}.ripple{--_duration: .6s}.fast-ripple{--_duration: .2s}.slow-ripple{--_duration: 1.8s}.ripple-js{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden}.ripple-js>div{position:absolute;border-radius:50%;background:currentColor;opacity:.3;transform:scale(0);animation:to-ripple var(--_duration) linear}@keyframes to-ripple{to{transform:scale(4);opacity:0}}.scroll{overflow:auto}.no-scroll{overflow:hidden}.shadow{background-color:#00000050}:is(.left-shadow,.right-shadow,.top-shadow,.bottom-shadow){background-color:transparent!important}.left-shadow{background-image:linear-gradient(to right,black,transparent)!important}.right-shadow{background-image:linear-gradient(to left,black,transparent)!important}.bottom-shadow{background-image:linear-gradient(to top,black,transparent)!important}.top-shadow{background-image:linear-gradient(to bottom,black,transparent)!important}[class*=width]{max-inline-size:100%}.auto-width{inline-size:auto}.small-width{inline-size:12rem!important}.medium-width{inline-size:24rem!important}.large-width{inline-size:36rem!important}.auto-height{block-size:auto}.small-height{block-size:12rem!important}.medium-height{block-size:24rem!important}.large-height{block-size:36rem!important}.wrap{display:block;white-space:normal}.no-wrap:not(menu){display:flex;white-space:nowrap}.tiny-space:not(nav,.row,.grid,table,.tooltip,.list,menu){block-size:.5rem}:is(.space,.small-space):not(nav,.row,.grid,table,.tooltip,.list,menu){block-size:1rem}.medium-space:not(nav,.row,.grid,table,.tooltip,.list,menu){block-size:2rem}.large-space:not(nav,.row,.grid,table,.tooltip,.list,menu){block-size:3rem}.responsive{inline-size:-webkit-fill-available;inline-size:-moz-available}@media only screen and (max-width: 600px){:is(.m,.l):not(.s){display:none!important}}@media only screen and (min-width: 601px) and (max-width: 992px){:is(.s,.l):not(.m){display:none!important}}@media only screen and (min-width: 993px){:is(.m,.s):not(.l){display:none!important}}html{font-size:var(--size)}body{font-family:var(--font);font-size:.875rem;line-height:1.5rem;letter-spacing:.0313rem}h1,h2,h3,h4,h5,h6{font-weight:400;display:block;align-items:center;line-height:normal}h1{font-size:3.5625rem}h2{font-size:2.8125rem}h3{font-size:2.25rem}h4{font-size:2rem}h5{font-size:1.75rem}h6{font-size:1.5rem}h1.small{font-size:3.0625rem}h2.small{font-size:2.3125rem}h3.small{font-size:1.75rem}h4.small{font-size:1.5rem}h5.small{font-size:1.25rem}h6.small{font-size:1rem}h1.large{font-size:4.0625rem}h2.large{font-size:3.3125rem}h3.large{font-size:2.75rem}h4.large{font-size:2.5rem}h5.large{font-size:2.25rem}h6.large{font-size:2rem}.link{color:var(--primary)!important}.inverse-link{color:var(--inverse-primary)!important}.truncate{overflow:hidden;white-space:nowrap!important;text-overflow:ellipsis;flex:inherit}.truncate>*{white-space:nowrap!important}.small-text{font-size:.75rem}.medium-text{font-size:.875rem}.large-text{font-size:1rem}.upper{text-transform:uppercase}.lower{text-transform:lowercase}.capitalize{text-transform:capitalize}.bold{font-weight:700}.overline{text-decoration:line-through}.underline{text-decoration:underline}.italic{font-style:italic}p{margin:.5rem 0}.no-line{line-height:normal}.tiny-line{line-height:1.25rem}.small-line{line-height:1.5rem}.medium-line{line-height:1.75rem}.large-line{line-height:2rem}.extra-line{line-height:2.25rem}pre{border-radius:0;background-color:var(--surface-container);white-space:pre-wrap;padding:1rem;border-inline-start:.25rem solid var(--primary);font-family:inherit}blockquote{border-radius:0;padding:1rem;border-inline-start:.25rem solid var(--primary);font-family:inherit}code{border-radius:0;background-color:var(--surface-container);white-space:pre-wrap;padding:.25rem}pre>code,blockquote>code{padding:0}.scroll>code{white-space:pre}pre:has(>code){direction:ltr;text-align:start}:is(.wave,.chip,.button,button,nav.tabbed>a,.tabs>a,.toolbar>a):not(.slow-ripple,.ripple,.fast-ripple):after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border-radius:inherit;inline-size:100%;block-size:100%;background-position:center;background-image:radial-gradient(circle,currentColor 1%,transparent 1%);opacity:0;transition:none}:is(.wave,.chip,.button,button,nav.tabbed>a,.tabs>a,.toolbar>a):not(.slow-ripple,.ripple,.fast-ripple):is(:focus-visible,:hover):after{background-size:15000%;opacity:.1;transition:background-size var(--speed2) linear}:is(.wave,.chip,.button,button,nav.tabbed>a,.tabs>a,.toolbar>a):not(.slow-ripple,.ripple,.fast-ripple):active:after{background-size:5000%;opacity:0;transition:none}.no-wave:after,.no-wave:is(:hover,:active):after{display:none}.badge{--_x: 0;--_y: -100%;display:inline-flex;align-items:center;justify-content:center;position:absolute;font-size:.6875rem;text-transform:none;z-index:2;padding:0 .25rem;min-block-size:1rem;min-inline-size:1rem;background-color:var(--error);color:var(--on-error);line-height:normal;border-radius:1rem;inset:50% auto auto 50%;transform:translate(var(--_x, 50%),var(--_y, -50%));font-family:var(--font)}.badge.top{--_y: -100%}.badge.bottom{--_y: 0}.badge.left{--_x: -100%}.badge.right{--_x: 0}.badge.border{border-color:var(--error);color:var(--error);background-color:var(--surface)}.badge:is(.circle,.square){text-align:center;inline-size:auto;block-size:auto;padding:0 .25rem;border-radius:1rem}.badge.square{border-radius:0}.badge.min>*{display:none}.badge.min{clip-path:circle(18.75% at 50% 50%)}nav:is(.left,.right,.top,.bottom)>a>.badge,nav:is(.left,.right,.top,.bottom)>:is(ol,ul)>li>a>.badge{inset:1rem auto auto 50%}.badge.none{inset:auto!important;transform:none;position:relative;margin:0 .125rem}:is(button,.button,.chip)>.badge.none{margin:0 -.5rem}header,footer{display:flex;justify-content:center;flex-direction:column;background-color:var(--surface-container);border-radius:0;padding:0 1rem}:is(nav.drawer,dialog,article)>:is(header,footer){padding-inline:0;top:0;right:0;bottom:0;left:0}header{min-block-size:4rem}footer{min-block-size:5rem}:is(header,footer,menu>*).fixed{position:sticky;top:0;right:0;bottom:0;left:0;z-index:11;background-color:inherit}header.fixed{inset:calc(-1 * var(--_padding)) 0 0 0;margin-block-start:calc(-1 * var(--_padding))}footer.fixed{inset:0 0 calc(-1 * var(--_padding)) 0;margin-block-end:calc(-1 * var(--_padding))}dialog>:is(header,footer){background:none}dialog>header.fixed{background-color:inherit;padding:var(--top) 0 0 0;margin:calc(-1 * var(--top)) 0 0 0;transform:translateY(calc(-1 * (var(--top) + var(--_padding))))}dialog>footer.fixed{background-color:inherit;padding:0 0 var(--bottom) 0;margin:0 0 calc(-1 * var(--bottom)) 0;transform:translateY(calc(var(--bottom) + var(--_padding)))}:is(main,header,footer,section).responsive{max-inline-size:75rem;margin:0 auto}:is(main,header,footer,section).responsive.max{max-inline-size:100%}:has(>main)>:is(header,footer).fixed{z-index:100;transform:none;box-sizing:content-box;top:0;right:0;bottom:0;left:0}:has(>main)>header.fixed{padding-block-start:calc(var(--top) + var(--_top));margin-block-start:calc(-1 * var(--top) - var(--_top))}:has(>main)>footer.fixed{padding-block-end:calc(var(--bottom) + var(--_bottom));margin-block-end:calc(-1 * var(--bottom) - var(--_bottom))}:is(nav,.row)>header{background-color:inherit}nav:is(.left,.right)>header{transform:translateY(-.5rem)}nav.drawer:is(.left,.right)>header+*{margin-block-start:.5rem}dialog>nav.drawer>header+*{margin-block-start:1rem}.button,button{--_padding: 1rem;--_size: 2.5rem;box-sizing:content-box;display:inline-flex;align-items:center;justify-content:center;block-size:var(--_size);font-size:.875rem;font-weight:500;color:var(--on-primary);padding:0 var(--_padding);background-color:var(--primary);margin:0 .5rem;border-radius:var(--_size);transition:transform var(--speed3),border-radius var(--speed2),padding var(--speed3);-webkit-user-select:none;user-select:none;gap:.5rem;line-height:normal}:is(button,.button).small{--_size: 2rem;--_padding: .75rem}:is(button,.button).large{--_size: 3rem;--_padding: 1.25rem}:is(.button,button):is(.extra,.extend){--_size: 3.5rem;font-size:1rem;--_padding: 1.5rem}:is(button,.button):is(.square,.circle){--_padding: 0}:is(button,.button).border{border-color:var(--outline-variant);color:var(--primary)}.extend>span{display:none}.extend:is(:hover,.active){inline-size:auto;--_padding: 1.5rem;padding:0 var(--_padding)}.extend:is(:hover,.active)>i+span{display:inherit;margin-inline-start:var(--_padding)}.extend:is(:hover,.active)>:is(img,svg)+span{display:inherit;margin-inline-start:calc(1rem + var(--_padding))}:is(.button,button)[disabled]{opacity:.5;cursor:not-allowed}.button[disabled]{pointer-events:none}:is(.button,button)[disabled]:before,:is(.button,button)[disabled]:after{display:none}:is(.button,button):not(.chip,.extend).fill{background-color:var(--secondary-container)!important;color:var(--on-secondary-container)!important}:is(.button,button):not(.chip,.extend).active{background-color:var(--primary-container);color:var(--on-primary-container)}:is(.button,button):not(.chip,.extend).fill.active{background-color:var(--secondary)!important;color:var(--on-secondary)!important}:is(.button,button):not(.chip,.extend).border.active{background-color:var(--inverse-surface)!important;color:var(--inverse-on-surface)!important;border-color:var(--inverse-surface)!important}:is(.button,button):not(.chip):active,:is(.button,button):not(.chip).active{border-radius:.5rem!important}article{--_padding: 1rem;box-shadow:var(--elevate1);background-color:var(--surface-container-low);color:var(--on-surface);padding:var(--_padding);border-radius:.75rem;display:block;transition:transform var(--speed3),border-radius var(--speed3),padding var(--speed3)}article.small{block-size:12rem}article.medium{block-size:20rem}article.large{block-size:32rem}article.border{box-shadow:none;border:.0625rem solid var(--outline-variant)}.chip{--_padding: .75rem;--_size: 2rem;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;block-size:var(--_size);min-inline-size:var(--_size);font-size:.875rem;font-weight:500;background-color:transparent;border:.0625rem solid var(--outline-variant);color:var(--on-surface-variant);padding:0 var(--_padding);margin:0 .5rem;text-transform:none;border-radius:.5rem;transition:transform var(--speed3),border-radius var(--speed3),padding var(--speed3);-webkit-user-select:none;user-select:none;gap:.5rem;line-height:normal;letter-spacing:normal}.chip.medium{--_size: 2.5rem;--_padding: 1rem}.chip.large{--_padding: 1.25rem;--_size: 3rem}.chip.fill{border:none}dialog{--_padding: 1.5rem;display:block;visibility:hidden;border:none;opacity:0;position:fixed;box-shadow:var(--elevate2);color:var(--on-surface);background-color:var(--surface-container-high);padding:var(--_padding);z-index:100;inset:10% auto auto 50%;min-inline-size:20rem;max-inline-size:100%;max-block-size:80%;overflow-x:hidden;overflow-y:auto;transition:all var(--speed3),0s background-color;border-radius:1.75rem;transform:translate(-50%,-4rem);outline:none}dialog.small{inline-size:25%;block-size:25%}dialog.medium{inline-size:50%;block-size:50%}dialog.large{inline-size:75%;block-size:75%}dialog:is(.active,[open]){visibility:visible;opacity:1;transform:translate(-50%)}dialog:popover-open{visibility:visible;opacity:1;transform:translate(-50%)}dialog:is(.top,.right,.bottom,.left,.max){--_padding: 1rem;padding:calc(var(--top) + var(--_padding)) calc(var(--right) + var(--_padding)) calc(var(--bottom) + var(--_padding)) calc(var(--left) + var(--_padding))}dialog:is(.top,.bottom){opacity:1;block-size:auto;inline-size:100%;min-inline-size:auto;max-block-size:100%}dialog.top{inset:0 auto auto 0;transform:translateY(-100%);border-radius:0 0 1rem 1rem;padding-block-end:var(--_padding)}dialog.bottom{inset:auto auto 0 0;transform:translateY(100%);border-radius:1rem 1rem 0 0}dialog:is(.left,.right){opacity:1;inset:0 auto auto 0;inline-size:auto;block-size:100%;max-block-size:100%;background-color:var(--surface)}[dir=rtl] dialog.right,dialog.left{inset:0 auto auto 0;border-radius:0 1rem 1rem 0;transform:translate(-100%)}[dir=rtl] dialog.left,dialog.right{inset:0 0 auto auto;border-radius:1rem 0 0 1rem;transform:translate(100%)}dialog.max{inset:0 auto auto 0;inline-size:100%;block-size:100%;max-inline-size:100%;max-block-size:100%;transform:translateY(4rem);background-color:var(--surface);border-radius:0}dialog:not(.left,.right,.top,.bottom,.max){--top: 0rem;--bottom: 0rem;--left: 0rem;--right: 0rem}dialog:is(.active,[open]):is(.left,.right,.top,.bottom,.max){transform:translate(0)}dialog:popover-open:is(.left,.right,.top,.bottom,.max){transform:translate(0)}dialog.small:is(.left,.right){inline-size:20rem}dialog.medium:is(.left,.right){inline-size:32rem}dialog.large:is(.left,.right){inline-size:44rem}dialog.small:is(.top,.bottom){block-size:16rem}dialog.medium:is(.top,.bottom){block-size:24rem}dialog.large:is(.top,.bottom){block-size:32rem}hr,[class*=divider]{all:unset;min-inline-size:1.5rem;min-block-size:auto;block-size:.0625rem;background-color:var(--outline-variant);display:block}hr+*,[class*=divider]+*{margin:0!important}hr.medium,.medium-divider{margin:1rem 0!important}hr.large,.large-divider{margin:1.5rem 0!important}hr.small,.small-divider{margin:.5rem 0!important}hr.vertical,.divider.vertical{min-inline-size:auto;min-block-size:1.5rem;inline-size:.0625rem}summary,summary:focus{list-style-type:none;cursor:pointer;outline:none}summary::-webkit-details-marker{display:none}.field{--_size: 3rem;--_start: 1.2rem;block-size:var(--_size);margin-block-end:2rem;border-radius:.25rem .25rem 0 0}.grid>*>.field{margin-block-end:1rem}.grid>*>.field+.field{margin-block-start:2rem}.grid.no-space>*>.field+.field{margin-block-start:1rem}.grid.medium-space>*>.field+.field{margin-block-start:2.5rem}.grid.large-space>*>.field+.field{margin-block-start:3rem}.field.small{--_size: 2.5rem;--_start: 1rem}.field.large{--_size: 3.5rem;--_start: 1.4rem}.field.extra{--_size: 4rem;--_start: 1.6rem}.field.border{border-radius:.25rem}.field.round.small{border-radius:1.25rem}.field.round{border-radius:1.5rem}.field.round.large{border-radius:1.75rem}.field.round.extra{border-radius:2rem}.field>:is(i,img,svg,progress,a:not(.helper,.error)){position:absolute;inset:50% auto auto auto;transform:translateY(-50%);cursor:pointer;z-index:0;inline-size:1.5rem;block-size:1.5rem}.field>:is(i,img,svg,progress,a:not(.helper,.error)),[dir=rtl] .field>:is(i,img,svg,progress,a:not(.helper,.error)):first-child{inset:50% 1rem auto auto}.field>:is(i,img,svg,progress,a:not(.helper,.error)):first-child,[dir=rtl] .field>:is(i,img,svg,progress,a:not(.helper,.error)){inset:50% auto auto 1rem}.field.invalid>i{color:var(--error)}.field>progress.circle{inset-block-start:calc(50% - .75rem)!important;border-width:.1875rem}.field>a:not(.helper,.error){z-index:10}.field>a>:is(i,img,svg,progress,a:not(.helper,.error)){inline-size:1.5rem;block-size:1.5rem}.field>:is(input,textarea,select){all:unset;position:relative;display:flex;align-items:center;box-sizing:border-box;border-radius:inherit;border:.0625rem solid transparent;padding:0 .9375rem;font-family:inherit;font-size:1rem;inline-size:100%;block-size:100%;outline:none;z-index:1;background:none;resize:none;text-align:start;cursor:text}input::-webkit-date-and-time-value{text-align:start}:is(input,select,textarea):is(:-webkit-autofill,:autofill){-webkit-background-clip:text;-webkit-text-fill-color:var(--on-surface)}.field>:is(input,textarea,select):focus{border:.125rem solid transparent;padding:0 .875rem}.field.min>textarea{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;max-block-size:12rem}input[type=file],input[type=color],:not(.field)>input[type^=date],:not(.field)>input[type^=time],input::-webkit-calendar-picker-indicator{opacity:0;position:absolute;top:0;right:0;bottom:0;left:0;inline-size:100%;block-size:100%;margin:0;padding:0;border:0;outline:0;z-index:2!important}input::-webkit-search-decoration,input::-webkit-search-cancel-button,input::-webkit-search-results-button,input::-webkit-search-results-decoration,input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{display:none}input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.field.border>:is(input,textarea,select){border-color:var(--outline)}.field.border>:is(input,textarea,select):focus{border-color:var(--primary)}.field.round>:is(input,textarea,select){padding-inline:1.4376rem}.field.round>:is(input,textarea,select):focus{padding-inline:1.375rem}.field.prefix>:is(input,textarea,select){padding-inline-start:2.9375rem}.field.prefix>.slider{margin-inline-start:3.5rem}.field.prefix>:is(input,textarea,select):focus{padding-inline-start:2.875rem}.field.suffix>:is(input,textarea,select){padding-inline-end:2.9375rem}.field.suffix>.slider{margin-inline-end:3.5rem}.field.suffix>:is(input,textarea,select):focus{padding-inline-end:2.875rem}.field:not(.border,.round)>:is(input,textarea,select){border-block-end-color:var(--outline)}.field:not(.border,.round)>:is(input,textarea,select):focus{border-block-end-color:var(--primary)}.field.round:not(.border,.fill)>:is(input,textarea,select),.field.round:not(.border)>:is(input,textarea,select):focus{box-shadow:var(--elevate1)}.field.round:not(.border,.fill)>:is(input,textarea,select):focus{box-shadow:var(--elevate2)}.field.invalid:not(.border,.round)>:is(input,textarea,select),.field.invalid:not(.border,.round)>:is(input,textarea,select):focus{border-block-end-color:var(--error)}.field.invalid.border>:is(input,textarea,select),.field.invalid.border>:is(input,textarea,select):focus{border-color:var(--error)}.field:has(>:disabled){opacity:.5;cursor:not-allowed}.field>:disabled{cursor:not-allowed}.field.textarea.small:not(.min){--_size: 5rem}.field.textarea:not(.min){--_size: 5.5rem}.field.textarea.large:not(.min){--_size: 6rem}.field.textarea.extra:not(.min){--_size: 6.5rem}.field>select{-webkit-user-select:none;user-select:none}.field>select>option{background-color:var(--surface-container);color:var(--on-surface)}.field.label>:is(input,select){padding-block-start:1rem}.field.label.border:not(.fill)>:is(input,select){padding-block-start:0}.field>textarea{padding-block-start:var(--_start);white-space:pre-wrap}.field>textarea:focus{padding-block-start:calc(var(--_start) - .06rem)}.field:not(.label)>textarea,.field.border.label:not(.fill)>textarea{padding-block-start:calc(var(--_start) - .5rem)}.field:not(.label)>textarea:focus,.field.border.label:not(.fill)>textarea:focus{padding-block-start:calc(var(--_start) - .56rem)}.field.label>label{position:absolute;inset:-.5rem auto auto 1rem;display:flex;inline-size:calc(100% - 5rem);block-size:calc(var(--_size) + 1rem);line-height:calc(var(--_size) + 1rem);font-size:1rem;transition:all .2s;gap:.25rem;white-space:nowrap}.field.label.textarea:not(.min)>label{block-size:calc(var(--_size) - 1.5rem);line-height:calc(var(--_size) - 1.5rem)}[dir=rtl] .field.label>label{inset:-.5rem 1rem auto auto}.field.label.border.prefix:not(.fill)>:is(label.active,:focus+label,[placeholder]:not(:placeholder-shown)+label,select+label){inset-inline-start:1rem}.field.label.round>label,.field.label.border.prefix.round:not(.fill)>:is(label.active,:focus+label,[placeholder]:not(:placeholder-shown)+label,select+label){inset-inline-start:1.5rem}.field.label.prefix>label{inset-inline-start:3rem}.field.label>:is(label.active,:focus+label,[placeholder]:not(:placeholder-shown)+label,select+label){block-size:2.5rem;line-height:2.5rem;font-size:.75rem}.field.label.border:not(.fill)>:is(label.active,:focus+label,[placeholder]:not(:placeholder-shown)+label,select+label){block-size:1rem;line-height:1rem}.field.label.border:not(.fill)>label:after{content:"";display:block;margin-block-start:.5rem;border-block-start:.0625rem solid var(--outline);block-size:1rem;transition:none;flex:auto}.field.label.border:not(.fill)>:focus+label:after{border-block-start:.125rem solid var(--primary)}.field.label.border:not(.fill)>:is(input,textarea):is(:focus,[placeholder]:not(:placeholder-shown),.active),.field.label.border:not(.fill)>select{clip-path:polygon(-2% -2%,.75rem -2%,.75rem .5rem,calc(100% - 5rem) .5rem,calc(100% - 5rem) -2%,102% -2%,102% 102%,-2% 102%)}[dir=rtl] .field.label.border:not(.fill)>:is(input,textarea):is(:focus,[placeholder]:not(:placeholder-shown),.active),[dir=rtl] .field.label.border:not(.fill)>select{clip-path:polygon(-2% -2%,5rem -2%,5rem .5rem,calc(100% - .75rem) .5rem,calc(100% - .75rem) -2%,102% -2%,102% 102%,-2% 102%)}.field.label.border.round:not(.fill)>:is(input,textarea):is(:focus,[placeholder]:not(:placeholder-shown),.active),.field.label.border.round:not(.fill)>select{clip-path:polygon(-2% -2%,1.25rem -2%,1.25rem .5rem,calc(100% - 5rem) .5rem,calc(100% - 5rem) -2%,102% -2%,102% 102%,-2% 102%)}[dir=rtl] .field.label.border.round:not(.fill)>:is(input,textarea):is(:focus,[placeholder]:not(:placeholder-shown),.active),[dir=rtl] .field.label.border.round:not(.fill)>select{clip-path:polygon(-2% -2%,5rem -2%,5rem .5rem,calc(100% - 1.25rem) .5rem,calc(100% - 1.25rem) -2%,102% -2%,102% 102%,-2% 102%)}.field.label>:focus+label{color:var(--primary)}.field.label.invalid>label,.field.label.invalid>label:after{color:var(--error)!important;border-color:var(--error)!important}.field.label>label>a{block-size:inherit;line-height:inherit;inline-size:1rem}.field.label>label>a>:is(i,img,svg){block-size:1rem;line-height:1rem;inline-size:1rem;font-size:1rem}.field>:is(.helper,.error){position:absolute;inset:auto auto 0 1rem;transform:translateY(100%);font-size:.75rem;background:none!important;padding-block-start:.125rem}[dir=rtl] .field>:is(.helper,.error){inset:auto 1rem 0 auto}a.helper{color:var(--primary)}.field>.error{color:var(--error)!important}.field.round>:is(.helper,.error){inset-inline-start:1.5rem}.field.invalid>.helper{display:none}table td>.field{margin:0}fieldset{border-radius:.25rem;padding:1rem;border:.0625rem solid var(--outline-variant)}fieldset>legend{margin:0 -.25rem;padding:0 .25rem}fieldset>legend+*{margin-block-start:0!important}.grid{--_gap: 1rem;display:grid;grid-template-columns:repeat(12,calc(8.33% - var(--_gap) + (var(--_gap) / 12)));gap:var(--_gap);block-size:auto}.grid.no-space{--_gap: 0rem}.grid.medium-space{--_gap: 1.5rem}.grid.large-space{--_gap: 2rem}.grid>*{margin:0}.s1{grid-area:auto/span 1}.s2{grid-area:auto/span 2}.s3{grid-area:auto/span 3}.s4{grid-area:auto/span 4}.s5{grid-area:auto/span 5}.s6{grid-area:auto/span 6}.s7{grid-area:auto/span 7}.s8{grid-area:auto/span 8}.s9{grid-area:auto/span 9}.s10{grid-area:auto/span 10}.s11{grid-area:auto/span 11}.s12{grid-area:auto/span 12}@media only screen and (min-width: 601px){.m1{grid-area:auto/span 1}.m2{grid-area:auto/span 2}.m3{grid-area:auto/span 3}.m4{grid-area:auto/span 4}.m5{grid-area:auto/span 5}.m6{grid-area:auto/span 6}.m7{grid-area:auto/span 7}.m8{grid-area:auto/span 8}.m9{grid-area:auto/span 9}.m10{grid-area:auto/span 10}.m11{grid-area:auto/span 11}.m12{grid-area:auto/span 12}}@media only screen and (min-width: 993px){.l1{grid-area:auto/span 1}.l2{grid-area:auto/span 2}.l3{grid-area:auto/span 3}.l4{grid-area:auto/span 4}.l5{grid-area:auto/span 5}.l6{grid-area:auto/span 6}.l7{grid-area:auto/span 7}.l8{grid-area:auto/span 8}.l9{grid-area:auto/span 9}.l10{grid-area:auto/span 10}.l11{grid-area:auto/span 11}.l12{grid-area:auto/span 12}}i,:is(.checkbox,.radio,.switch)>span:before,:is(.checkbox,.radio,.switch)>span>i{--_size: 1.5rem;font-family:var(--font-icon);font-weight:400;font-style:normal;font-size:var(--_size);letter-spacing:normal;text-transform:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";-webkit-font-smoothing:antialiased;vertical-align:middle;text-align:center;overflow:hidden;inline-size:var(--_size);min-inline-size:var(--_size);block-size:var(--_size);min-block-size:var(--_size);box-sizing:content-box;line-height:normal;border-radius:0}i.tiny{--_size: 1rem}.chip>i,i.small{--_size: 1.25rem}i.medium{--_size: 1.5rem}i.large{--_size: 1.75rem}i.extra{--_size: 2rem}i.fill,a.row:is(:hover,:focus)>i,.transparent:is(:hover,:focus)>i{font-variation-settings:"FILL" 1}i>:is(img,svg){inline-size:100%;block-size:100%;background-size:100%;border-radius:inherit;position:absolute;inset:0 auto auto 0;padding:inherit}i[class*=fa-]{font-size:calc(var(--_size) * .85);line-height:normal;block-size:auto;min-block-size:auto}.absolute{position:absolute}.fixed{position:fixed}:is(.absolute,.fixed).left.right{inline-size:auto}:is(.absolute,.fixed).left.right.small{block-size:20rem}:is(.absolute,.fixed).left.right.medium{block-size:28rem}:is(.absolute,.fixed).left.right.large{block-size:44rem}:is(.absolute,.fixed).top.bottom.small{inline-size:20rem}:is(.absolute,.fixed).top.bottom.medium{inline-size:28rem}:is(.absolute,.fixed).top.bottom.large{inline-size:44rem}.list{display:flex;flex-direction:column;padding:0;margin:0;flex:1}.list>li,.list>li>details>summary,.list>li>a:only-child{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;align-self:normal;text-align:start;justify-content:flex-start;white-space:nowrap;gap:1rem;min-block-size:3.5rem;padding:.5rem 1rem;cursor:pointer;flex:1}.list>li:has(ul,ol,details[open],a:only-child){padding:0}.list>li>.list{padding:0 0 0 1rem}.list>li>*,.list>li>a:only-child>*,.list>li>details>summary>*{margin:0}.list>li>:is(details,.max),.list>li>a:only-child>.max,.list>li>details>summary>.max{flex:1}.list.border>li:not(:last-child):before,.list.border>li>details[open]>summary:before{content:"";position:absolute;background-color:var(--outline-variant);inset:auto 0 0 0;block-size:.0625rem;inline-size:auto}.list.no-space>li,.list.no-space>li>details>summary{min-block-size:2.5rem}.list.medium-space>li,.list.medium-space>li>details>summary{min-block-size:4.5rem}.list.large-space>li,.list.large-space>li>details>summary{min-block-size:5.5rem}main{flex:1;padding:.5rem;overflow-x:hidden}:has(>main){--_top: 0rem;--_bottom: 0rem;--_left: 0rem;--_right: 0rem;display:flex;flex-direction:column;min-block-size:calc(100vh - var(--top) - var(--_top) - var(--bottom) - var(--_bottom));box-sizing:border-box;background-color:var(--surface);margin-block:calc(var(--top) + var(--_top)) calc(var(--bottom) + var(--_bottom));margin-inline:calc(var(--left) + var(--_left)) calc(var(--right) + var(--_right))}:has(>nav.top:not(.s,.m,.l)){--_top: 5rem}:has(>nav.bottom:not(.s,.m,.l)){--_bottom: 5rem}:has(>nav.left:not(.s,.m,.l)){--_left: 5rem}:has(>nav.right:not(.s,.m,.l)){--_right: 5rem}:has(>nav.drawer.left:not(.s,.m,.l)){--_left: 20rem}:has(>nav.drawer.right:not(.s,.m,.l)){--_right: 20rem}:not(main):has(>aside){overflow:auto}aside{z-index:1}aside:not(.fixed,.absolute).right{float:right}aside:not(.fixed,.absolute).left{float:left}@media only screen and (max-width: 600px){:has(>nav.bottom.s){--_bottom: 5rem}:has(>nav.top.s){--_top: 5rem}:has(>nav.left.s){--_left: 5rem}:has(>nav.right.s){--_right: 5rem}:has(>nav.drawer.left.s){--_left: 20rem}:has(>nav.drawer.right.s){--_right: 20rem}}@media only screen and (min-width: 601px) and (max-width: 992px){:has(>nav.bottom.m){--_bottom: 5rem}:has(>nav.top.m){--_top: 5rem}:has(>nav.left.m){--_left: 5rem}:has(>nav.right.m){--_right: 5rem}:has(>nav.drawer.left.m){--_left: 20rem}:has(>nav.drawer.right.m){--_right: 20rem}}@media only screen and (min-width: 993px){:has(>nav.bottom.l){--_bottom: 5rem}:has(>nav.top.l){--_top: 5rem}:has(>nav.left.l){--_left: 5rem}:has(>nav.right.l){--_right: 5rem}:has(>nav.drawer.left.l){--_left: 20rem}:has(>nav.drawer.right.l){--_right: 20rem}}svg{fill:currentcolor}:is(img,svg,video):is(.small,.medium,.large,.tiny,.extra,.round,.circle,.square,.responsive){--_size: 3rem;object-fit:cover;object-position:center;transition:transform var(--speed3),border-radius var(--speed3),padding var(--speed3);block-size:var(--_size);inline-size:var(--_size)}:is(img,svg,video).round{--_round: .5rem}:is(img,svg,video).tiny{--_size: 2rem}:is(img,svg,video).small{--_size: 2.5rem}:is(img,svg,video).large{--_size: 3.5rem}:is(img,svg,video).extra{--_size: 4rem}:is(img,svg,video).responsive{--_size: 100%;margin:0 auto}:is(img,svg,video).responsive.tiny{inline-size:100%;block-size:4rem}:is(img,svg,video).responsive.small{inline-size:100%;block-size:8rem}:is(img,svg,video).responsive.medium{inline-size:100%;block-size:12rem}:is(img,svg,video).responsive.large{inline-size:100%;block-size:16rem}:is(img,svg,video).responsive.extra{inline-size:100%;block-size:20rem}:is(img,svg,video).responsive.round{--_round: 2rem}:is(img,svg,video).empty-state{max-inline-size:100%;inline-size:24rem}:is(button,.button,.chip):not(.transparent)>.responsive{border:.25rem solid transparent}:is(button,.button,.chip,.field)>:is(img,svg):not(.responsive),.tabs :is(img,svg):not(.responsive){min-inline-size:1.5rem;max-inline-size:1.5rem;min-block-size:1.5rem;max-block-size:1.5rem}:is(button,.button,.chip)>.responsive:first-child{margin-inline-start:calc(-1 * var(--_padding))}:is(button,.button,.chip)>.responsive:not(:first-child){margin-inline-end:calc(-1 * var(--_padding))}:is(.circle,.square,.extend)>.responsive{--_size: inherit;margin:0!important}.extend>:is(.responsive,i){margin:0;position:absolute;inset-inline:1rem;z-index:1}.extend>.responsive{inset-inline:0;inline-size:3.5rem}.extend.border>.responsive{inline-size:3.375rem}menu{opacity:0;visibility:hidden;position:absolute;box-shadow:var(--elevate2);background-color:var(--surface-container);z-index:11;inset:auto auto 0 0;inline-size:100%;max-block-size:50vh;max-inline-size:none!important;overflow-x:hidden;overflow-y:auto;font-size:.875rem;font-weight:400;text-transform:none;color:var(--on-surface);line-height:normal;text-align:start;border-radius:.25rem;transform:scale(.8) translateY(120%);transition:all var(--speed2),0s background-color;justify-content:flex-start}[dir=rtl] menu{inset:auto 0 0 auto}menu.no-wrap{inline-size:max-content;white-space:nowrap!important}menu.active,:not(menu,[data-ui]):focus-within>menu,menu>li:hover>menu,menu>li>menu:hover{opacity:1;visibility:visible;transform:scale(1) translateY(100%)}menu.active.top,:not(menu,[data-ui]):focus-within>menu.top,menu>li:hover>menu.top,menu>li>menu.top:hover{transform:scale(1) translateY(-100%)}menu *{white-space:inherit!important}menu>li,menu>li>a:only-child{all:unset;box-sizing:border-box;position:relative;display:flex;align-items:center;align-self:normal;text-align:start;justify-content:inherit;white-space:nowrap;gap:1rem;padding:.5rem 1rem;min-block-size:3rem;flex:1;margin:0!important;cursor:pointer}menu>li:is(:hover,:focus,.active){background-color:var(--active)}menu>li>:is(.max,.field),menu>li>a:only-child>.max,menu>li:has(.field,a:only-child){flex:1;padding:0;margin:0}menu.min{inset:0 0 auto 0;transform:none!important;background-color:var(--surface-variant)!important;color:var(--on-surface-variant)!important}[dir=rtl] menu.min.right,menu.min.left,menu.top.left{inset:0 0 auto auto}[dir=rtl] menu.min.left,menu.min.right,menu.top,menu.top.right{inset:0 auto auto 0}menu.max{position:fixed;top:0;right:0;bottom:0;left:0;block-size:100%;max-block-size:none;min-block-size:auto;z-index:100;transform:none!important;background-color:var(--surface-variant)!important;color:var(--on-surface-variant)!important;border-radius:0}menu.no-wrap:is(.min,.max){min-inline-size:16rem}[dir=rtl] menu.right,[dir=rtl] menu.top.min.right,menu.left,menu.top.min.left{inset:auto 0 0 auto}[dir=rtl] menu.left,[dir=rtl] menu.top.min.left,menu.right,menu.top.min{inset:auto auto 0 0}menu.top{transform:scale(.8) translateY(-120%)}menu:has(menu){--_child: 1;--_type: 0;overflow:unset;white-space:nowrap;inline-size:auto;min-inline-size:12rem;max-block-size:none}menu>li>:is(menu,menu.right),[dir=rtl] menu>li>menu.left{inset:auto auto calc(3rem * (var(--_child) - var(--_type))) 100%}[dir=rtl] menu>li>:is(menu,menu.right),menu>li>menu.left{inset:auto 100% calc(3rem * (var(--_child) - var(--_type))) auto}menu>li>:is(menu.top,menu.top.right),[dir=rtl] menu>li>menu.top.left{inset:calc(3rem * (var(--_child) - var(--_type))) auto auto 100%}[dir=rtl] menu>li>:is(menu.top,menu.top.right),menu>li>menu.top.left{inset:calc(3rem * (var(--_child) - var(--_type))) 100% auto auto}menu.no-space>li{min-block-size:2.5rem}menu.medium-space>li{min-block-size:3.5rem}menu.large-space>li{min-block-size:4rem}menu.border>li:not(:last-child):before{content:"";position:absolute;background-color:var(--outline-variant);inset:auto 0 0 0;block-size:.0625rem;inline-size:auto}menu.transparent{margin:0 -1rem!important;padding:.5rem}menu.transparent>li{background-color:inherit;box-shadow:none;padding:0}menu>li:nth-last-child(2){--_child: 2}menu>li:nth-last-child(3){--_child: 3}menu>li:nth-last-child(4){--_child: 4}menu>li:nth-last-child(5){--_child: 5}menu>li:nth-last-child(6){--_child: 6}menu>li:nth-last-child(7){--_child: 7}menu>li:nth-last-child(8){--_child: 8}menu>li:nth-last-child(9){--_child: 9}menu>li:nth-last-child(10){--_child: 10}menu>li:nth-last-child(11){--_child: 11}menu>li:nth-last-of-type(2){--_type: 1}menu>li:nth-last-of-type(3){--_type: 2}menu>li:nth-last-of-type(4){--_type: 3}menu>li:nth-last-of-type(5){--_type: 4}menu>li:nth-last-of-type(6){--_type: 5}menu>li:nth-last-of-type(7){--_type: 6}menu>li:nth-last-of-type(8){--_type: 7}menu>li:nth-last-of-type(9){--_type: 8}menu>li:nth-last-of-type(10){--_type: 9}menu>li:nth-last-of-type(11){--_type: 10}nav>:is(ol,ul),nav>:is(ol,ul)>li{all:unset}nav,.row,a.row,nav.drawer>:is(a,label),nav.drawer>:is(ol,ul)>li>:is(a,label){display:flex;align-items:center;align-self:normal;text-align:start;justify-content:flex-start;white-space:nowrap;gap:1rem;border-radius:0}a.row,nav.row{min-block-size:3rem;margin:0}:is(nav,.row,.max)>:only-child,nav>:is(ol,ul)>li>:only-child{margin:0}:is(nav,.row)>:not(ul,ol){margin:0;white-space:normal;flex:none}:is(nav,.row).min{display:inline-flex}:is(nav,.row,li).no-space{gap:0}:is(nav,.row,li).tiny-space{gap:.5rem}:is(nav,.row,li).medium-space{gap:1.5rem}:is(nav,.row,li).large-space{gap:2rem}:is(nav,.row)>.max,:is(nav,.row)>:is(ol,ul)>.max,nav.drawer>:is(a,label)>.max,nav.drawer>:is(ol,ul)>li>:is(a,label)>.max{flex:1}:is(nav,.row).wrap{display:flex;flex-wrap:wrap}:is(header,footer)>:is(nav,.row){min-block-size:inherit}nav:is(.left,.right,.top,.bottom){border:0;position:fixed;color:var(--on-surface);transform:none;z-index:100;block-size:auto;inline-size:auto;text-align:center;padding:calc(var(--top) + .5rem) calc(var(--right) + 1rem) calc(var(--bottom) + .5rem) calc(var(--left) + 1rem);margin:0}nav:is(.left,.right){justify-content:flex-start;flex-direction:column;background-color:var(--surface)}nav:is(.top,.bottom){justify-content:center;flex-direction:row;background-color:var(--surface-container)}nav.top{block-size:calc(var(--top) + 5rem);inset:0 0 auto 0;padding-block-end:.5rem}nav.left,[dir=rtl] nav.right{inline-size:calc(var(--left) + 5rem);inset:0 auto 0 0;padding-inline-end:1rem}[dir=rtl] nav.right{padding-inline-end:calc(var(--left) + 1rem)}nav.right,[dir=rtl] nav.left{inline-size:calc(var(--right) + 5rem);inset:0 0 0 auto;padding-inline-start:1rem}[dir=rtl] nav.left{padding-inline-start:calc(var(--right) + 1rem)}nav.bottom{min-block-size:calc(var(--bottom) + 5rem);inset:auto 0 0 0;padding-block-start:.5rem}nav.drawer,[dir=rtl] nav.drawer{flex-direction:column;align-items:normal;inline-size:20rem;gap:0}nav.drawer:not(.left,.right,.top,.bottom){padding:.5rem 1rem}dialog>nav.drawer:not(.left,.right,.top,.bottom){padding:0 1rem;background-color:inherit}nav.drawer:is(.min,.max){inline-size:auto}nav.drawer.max{inline-size:100%}nav.drawer>:is(a,label),nav.drawer>:is(ol,ul)>li>:is(a,label),:is(a.row,nav.row):is(.wave,.slow-ripple,.ripple,.fast-ripple){padding:.75rem;font-size:inherit}nav.drawer>a,nav.drawer>:is(ol,ul)>li>a{border-radius:2rem}nav.drawer>a:is(:hover,.active),nav.drawer>:is(ol,ul)>li>a:is(:hover,.active){background-color:var(--secondary-container)}nav.drawer>a:is(:hover,:focus,.active)>i,nav.drawer>:is(ol,ul)>li>a:is(:hover,:focus,.active)>i{font-variation-settings:"FILL" 1}nav>:is(ol,ul){all:inherit;flex:auto}nav:not(.left,.right,.bottom,.top)>:is(ol,ul){padding:0}nav:is(.left,.right,.top,.bottom):not(.drawer)>a:not(.button,.chip),nav:is(.left,.right,.top,.bottom):not(.drawer)>:is(ol,ul)>li>a:not(.button,.chip){align-self:center;display:flex;flex-direction:column;gap:.25rem;line-height:normal}nav:is(.top,.bottom):not(.drawer)>a:not(.button,.chip),nav:is(.top,.bottom):not(.drawer)>:is(ol,ul)>li>a:not(.button,.chip){inline-size:3.5rem}nav:is(.left,.right,.top,.bottom):not(.drawer)>a:not(.button,.chip)>i,nav:is(.left,.right,.top,.bottom):not(.drawer)>:is(ol,ul)>li>a:not(.button,.chip)>i{padding:.25rem;border-radius:2rem;transition:padding var(--speed1) linear;margin:0 auto}nav:is(.left,.right,.top,.bottom):not(.drawer)>a:not(.button,.chip):is(:hover,:focus,.active)>i,nav:is(.left,.right,.top,.bottom):not(.drawer)>:is(ol,ul)>li>a:not(.button,.chip):is(:hover,:focus,.active)>i{background-color:var(--secondary-container);color:var(--on-secondary-container);padding:.25rem 1rem;font-variation-settings:"FILL" 1}:is(nav,.row):is(.left-align,.top-align,.vertical){justify-content:flex-start}:is(nav,.row):is(.right-align,.bottom-align){justify-content:flex-end}:is(nav,.row):is(.center-align,.middle-align){justify-content:center}:is(nav,.row):is(.left-align,.top-align,.vertical).vertical{align-items:flex-start}:is(nav,.row):is(.right-align,.bottom-align).vertical{align-items:flex-end}:is(nav,.row):is(.center-align,.middle-align).vertical{align-items:center}:is(.drawer,.vertical)>:is(li,[class*=divider],hr):not(.vertical),:is(.drawer,.vertical)>:is(ol,ul)>li:not(.vertical){align-self:stretch}nav:not(.left,.right)>.space{inline-size:.5rem}nav:not(.left,.right)>.medium-space{inline-size:1rem}nav:not(.left,.right)>.large-space{inline-size:1.5rem}nav.tabbed{background-color:var(--surface-container);border-radius:4rem!important;gap:0rem;block-size:4rem}nav.tabbed.small{block-size:3rem}nav.tabbed.large{block-size:5rem}nav.tabbed>a{border-radius:inherit;block-size:inherit;display:inline-flex;align-items:center;padding-inline:1rem;gap:.5rem;font-size:1rem;flex:1}nav.tabbed>a.active{background-color:var(--primary-container)}nav.toolbar{display:inline-flex;justify-content:space-around;border-radius:2rem;background-color:var(--surface-container);color:var(--on-surface);padding:0 1rem;gap:.5rem;min-block-size:4rem;min-inline-size:4rem}nav.toolbar>a{display:inline-flex;gap:.5rem;min-inline-size:2.5rem;min-block-size:2.5rem;border-radius:1.75rem}nav.toolbar>a:has(>:not(i)){padding:0 1rem}nav.toolbar>a.active{background-color:var(--secondary-container);color:var(--on-secondary-container)}nav.toolbar.fill{background-color:var(--primary-container)!important;color:var(--on-primary-container)!important}nav.toolbar.fill>a.active{background-color:var(--surface-container)!important;color:var(--on-surface)!important}nav.toolbar.vertical{flex-direction:column!important;min-inline-size:4rem;padding:1rem 0;align-self:center;align-items:center!important}nav.toolbar.vertical>a{inline-size:2.5rem;block-size:2.5rem}nav.toolbar.vertical>a>:is(div,span):not(.badge,.tooltip){display:none}nav.toolbar.max{border-radius:0;display:flex}nav.group{gap:.125rem}nav.group>:is(.button,button):not(.chip,.fill,.border).active{background-color:var(--primary);color:var(--on-primary)}nav.group>:is(.button,button):not(.chip,.fill,.border){background-color:var(--surface-container);color:var(--on-surface-container)}nav.group>:is(.button,button):not(.chip).active{border-radius:2rem!important}:not(nav)>:is(ul,ol){all:revert}:is(.scroll,.no-scroll,.no-space,.tabs,.tabbed)>:focus-visible{outline:.125rem solid var(--primary);outline-offset:-.125rem}@media only screen and (max-width: 600px){nav.top,nav.bottom{justify-content:space-around}}.overlay,dialog::backdrop{display:block!important;opacity:0;visibility:hidden;position:fixed;top:0;right:0;bottom:0;left:0;color:var(--on-surface);background-color:var(--overlay);z-index:100;transition:all var(--speed3),0s background-color}.overlay.active{opacity:1;visibility:visible}dialog:popover-open::backdrop{opacity:1;visibility:visible}.overlay+dialog::backdrop,.snackbar::backdrop{display:none}[popover]{border:0}.page{--_transform: translate(0, 0);opacity:0;position:absolute;display:none}.page.active{opacity:1;position:inherit;display:inherit;animation:var(--speed4) to-page ease}.page.active.top{--_transform: translate(0, -4rem)}.page.active.bottom{--_transform: translate(0, 4rem)}.page.active.left{--_transform: translate(-4rem, 0)}.page.active.right{--_transform: translate(4rem, 0)}@keyframes to-page{0%{opacity:0;transform:var(--_transform)}to{opacity:1;transform:translate(0)}}progress{position:relative;inline-size:100%;block-size:.5rem;color:var(--primary);background:var(--primary-container);border-radius:1rem;flex:none;border:none;overflow:hidden;writing-mode:horizontal-tb;direction:ltr;-webkit-appearance:none}progress.small{inline-size:4rem}progress.medium{inline-size:8rem}progress.large{inline-size:12rem}progress:not(.circle,[value]):after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;inline-size:100%;block-size:100%;clip-path:none;background:currentcolor;animation:1.6s to-linear ease infinite}progress:not(.circle,[value])::-moz-progress-bar{animation:1.6s to-linear ease infinite}progress:not(.circle,[value])::-webkit-progress-value{animation:1.6s to-linear ease infinite}progress::-webkit-progress-bar{background:none}progress::-webkit-progress-value{background:currentcolor}progress::-moz-progress-bar{background:currentcolor}progress.circle{display:inline-block;inline-size:2.5rem;block-size:2.5rem;border-radius:50%;border-width:.3rem;border-style:solid;border-color:currentcolor;animation:1.6s to-circular linear infinite;background:none;flex:none}progress.circle::-moz-progress-bar{background:none}progress.circle.small{inline-size:1.5rem;block-size:1.5rem;border-width:.2rem}progress.circle.large{inline-size:3.5rem;block-size:3.5rem;border-width:.4rem}:is(nav,.row,.field)>progress:not(.circle,.small,.medium,.large){flex:auto}progress.max{display:unset;position:absolute;inline-size:100%!important;block-size:100%!important;color:var(--active);background:none;top:0;right:0;bottom:0;left:0;border-radius:inherit;animation:none;writing-mode:horizontal-tb}progress:is(.horizontal,.vertical,.max){display:unset;inline-size:100%!important}progress.vertical{writing-mode:vertical-lr}progress.max.vertical{transform:rotate(-180deg)}progress.max+*{margin-block-start:0}:is(.button,button,.chip)>progress.circle{color:inherit}@supports (-moz-appearance:none){progress.max.vertical{transform:none}}@keyframes to-linear{0%{margin-inline-start:0%;inline-size:0%}50%{margin-inline-start:0%;inline-size:100%}to{margin-inline-start:100%;inline-size:0%}}@keyframes to-circular{0%{transform:rotate(0);clip-path:polygon(50% 50%,0% 0%,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%)}20%{clip-path:polygon(50% 50%,0% 0%,50% 0%,100% 0%,100% 0%,100% 0%,100% 0%,100% 0%,100% 0%)}30%{clip-path:polygon(50% 50%,0% 0%,50% 0%,100% 0%,100% 50%,100% 50%,100% 50%,100% 50%,100% 50%)}40%{clip-path:polygon(50% 50%,0% 0%,50% 0%,100% 0%,100% 50%,100% 100%,100% 100%,100% 100%,100% 100%)}50%{clip-path:polygon(50% 50%,50% 0%,50% 0%,100% 0%,100% 50%,100% 100%,50% 100%,50% 100%,50% 100%)}60%{clip-path:polygon(50% 50%,100% 50%,100% 50%,100% 50%,100% 50%,100% 100%,50% 100%,0% 100%,0% 100%)}70%{clip-path:polygon(50% 50%,50% 100%,50% 100%,50% 100%,50% 100%,50% 100%,50% 100%,0% 100%,0% 50%)}80%{clip-path:polygon(50% 50%,0% 100%,0% 100%,0% 100%,0% 100%,0% 100%,0% 100%,0% 100%,0% 50%)}90%{transform:rotate(360deg);clip-path:polygon(50% 50%,0% 50%,0% 50%,0% 50%,0% 50%,0% 50%,0% 50%,0% 50%,0% 50%)}to{clip-path:polygon(50% 50%,0% 50%,0% 50%,0% 50%,0% 50%,0% 50%,0% 50%,0% 50%,0% 50%)}}.checkbox,.radio,.switch{--_size: 1.5rem;direction:ltr;inline-size:auto;block-size:auto;line-height:normal;white-space:nowrap;cursor:pointer;display:inline-flex;align-items:center}:is(.checkbox,.radio,.switch).small{--_size: 1rem}:is(.checkbox,.radio,.switch).large{--_size: 2rem}:is(.checkbox,.radio,.switch).extra{--_size: 2.5rem}:is(.checkbox,.radio)>input{inline-size:var(--_size);block-size:var(--_size);opacity:0}.switch>input{inline-size:3.25rem;block-size:2rem;opacity:0}:is(.checkbox,.radio,.switch)>span{display:inline-flex;align-items:center;color:var(--on-surface);font-size:.875rem}:is(.checkbox,.radio)>span:not(:empty){padding-inline-start:.25rem}:is(.checkbox,.radio,.switch)>span:before,:is(.checkbox,.radio,.switch)>span>i,:is(.checkbox,.radio)>span:after{--_size: inherit;content:"";inline-size:var(--_size);block-size:var(--_size);box-sizing:border-box;margin:0 auto;outline:none;color:var(--primary);position:absolute;inset:auto auto auto calc(var(--_size) * -1);border-radius:50%;-webkit-user-select:none;user-select:none;z-index:1}.switch>span:before,.switch.icon>span>i{position:absolute;inset:50% auto auto 0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;transition:all var(--speed2);font-size:calc(var(--_size) - .5rem);-webkit-user-select:none;user-select:none;min-inline-size:var(--_size);min-block-size:var(--_size);content:"";color:var(--surface-variant);background-color:var(--outline)}.switch>span:before,.switch.icon>span>i{transform:translate(-3rem,-50%) scale(.6)}.switch.icon>span>i{transform:translate(-3rem,-50%) scale(1)}.checkbox>span:before{content:"check_box_outline_blank"}.checkbox>input:checked+span:before{content:"check_box";font-variation-settings:"FILL" 1}.checkbox>input:indeterminate+span:before{content:"indeterminate_check_box"}.radio>span:before{content:"radio_button_unchecked"}.radio>input:checked+span:before{content:"radio_button_checked"}:is(.radio,.checkbox,.switch).icon>span:before{content:""!important;font-variation-settings:unset!important}:is(.checkbox,.radio)>span:after{transition:all var(--speed1);background-color:currentColor;box-shadow:0 0 0 0 currentColor;opacity:0}:is(.checkbox,.radio):is(:hover)>input:not(:disabled)+span:after,:is(.checkbox,.radio)>input:not(:disabled):is(:focus)+span:after{box-shadow:0 0 0 .5rem currentColor;opacity:.1}.switch>input:not(:disabled):is(:focus,:hover)+span:before,.switch.icon>input:not(:disabled):is(:focus,:hover)+span>i{box-shadow:0 0 0 .5rem var(--active)}:is(.checkbox,.radio)>input:checked+span:before,:is(.checkbox,.radio).icon>input:checked+span>i{color:var(--primary)}.icon>input:checked+span>i:first-child,.icon>span>i:last-child{opacity:0}.icon>input:checked+span>i:last-child,.icon>span>i:first-child{opacity:1}.switch>input:checked+span:after{border:none;background-color:var(--primary)}.switch>input:checked+span:before,.switch.icon>input:checked+span>i{content:"check";color:var(--primary);background-color:var(--on-primary);transform:translate(-1.75rem,-50%) scale(1)}.switch>input:active:not(:disabled)+span:before,.switch.icon>input:active:not(:disabled)+span>i{transform:translate(-3rem,-50%) scale(1.2)}.switch>input:active:checked:not(:disabled)+span:before,.switch.icon>input:active:checked:not(:disabled)+span>i{transform:translate(-1.75rem,-50%) scale(1.2)}:is(.checkbox,.radio,.switch)>input:disabled+span{opacity:.5;cursor:not-allowed}.switch>span:after{content:"";position:absolute;inset:50% auto auto 0;background-color:var(--active);border:.125rem solid var(--outline);box-sizing:border-box;inline-size:3.25rem;block-size:2rem;border-radius:2rem;transform:translate(-3.25rem,-50%)}.field>:is(nav,.row){flex-grow:1;padding:0 1rem}.field.round>:is(nav,.row){flex-grow:1;padding:0 1.5rem}[dir=rtl] .switch{transform:scale(-1)}[dir=rtl] .switch>span:before,[dir=rtl] .switch.icon>span>i{transform:translate(-3rem,-50%) scale(-.6)}[dir=rtl] .switch.icon>span>i{transform:translate(-3rem,-50%) scale(-1)}[dir=rtl] .switch>input:checked+span:before,[dir=rtl] .switch.icon>input:checked+span>i{transform:translate(-1.75rem,-50%) scale(-1)}.switch>:focus-visible+span:after{outline:.125rem solid var(--primary);outline-offset:.25rem}:is(.checkbox,.radio)>:focus-visible+span:before{outline:.125rem solid var(--primary);outline-offset:.375rem}.slider{--_start: 0%;--_end: 0%;--_value1: "";--_value2: "";display:flex;align-items:center!important;inline-size:auto;block-size:1.25rem;margin:1.125rem;flex:none;direction:ltr}[dir=rtl] .slider{transform:scaleX(-1)}.slider.vertical{flex-direction:row!important;margin:.5rem auto!important;padding:50% 0;transform:rotate(-90deg);inline-size:100%}.slider.small{inline-size:4rem}.slider.medium{inline-size:8rem}.slider.large{inline-size:12rem}.slider>input{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-shadow:none;border:none;outline:none;pointer-events:none;inline-size:100%;block-size:1rem;background:none;z-index:1;padding:0;margin:0;transform:rotate(0)}.slider>input:only-of-type{pointer-events:all}.slider>input+input{position:absolute}.slider>input::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-shadow:none;border:none;outline:none;pointer-events:all;block-size:2.75rem;inline-size:.25rem;border-radius:.25rem;background:var(--primary);cursor:grab;margin:0}.slider>input::-webkit-slider-thumb:active{cursor:grabbing}.slider>input::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-shadow:none;border:none;outline:none;pointer-events:all;block-size:2.75rem;inline-size:.25rem;border-radius:.25rem;background:var(--primary);cursor:grab;margin:0}.slider>input::-moz-range-thumb:active{cursor:grabbing}.slider>input:not(:disabled):is(:focus)::-webkit-slider-thumb{transform:scaleX(.6)}.slider>input:not(:disabled):is(:focus)::-moz-range-thumb{transform:scaleX(.6)}.slider>input:disabled{cursor:not-allowed;opacity:1}.slider>input:disabled::-webkit-slider-thumb{background:#9e9e9e;cursor:not-allowed}.slider>input:disabled::-moz-range-thumb{background:#9e9e9e;cursor:not-allowed}.slider>input:disabled~span{background:#9e9e9e}.slider>span{position:absolute;block-size:1rem;border-radius:1rem 0 0 1rem;background:var(--primary);z-index:0;inset:calc(50% - .5rem) var(--_end) auto var(--_start);clip-path:polygon(0 0,calc(100% - .5rem) 0,calc(100% - .5rem) 100%,0 100%)}.slider>input[type=range]+input[type=range]~span{border-radius:0;clip-path:polygon(.5rem 0,max(.5rem,calc(100% - .5rem)) 0,max(.5rem,calc(100% - .5rem)) 100%,.5rem 100%)}.field>.slider{inline-size:100%}.slider:before{content:"";position:absolute;inline-size:100%;block-size:1rem;border-radius:1rem;background:var(--primary-container);clip-path:polygon(calc(var(--_start) - .5rem) 0,0 0,0 100%,calc(var(--_start) - .5rem) 100%,calc(var(--_start) - .5rem) 0,calc(100% - var(--_end) + .5rem) 0,100% 0,100% 100%,calc(100% - var(--_end) + .5rem) 100%,calc(100% - var(--_end) + .5rem) 0)}.slider:has(>[disabled]):before{background:var(--active)}.slider>.tooltip{visibility:hidden!important;opacity:0!important;inset:0 auto auto calc(100% - var(--_end));border-radius:2rem;transition:top var(--speed2) ease,opacity var(--speed2) ease;transform:translate(-50%,-50%)!important;padding:.75rem 1rem}[dir=rtl] .slider>.tooltip{transform:translate(-50%,-50%) scaleX(-1)!important}.slider>.tooltip+.tooltip{inset:.25rem calc(100% - var(--_start)) auto auto;transform:translate(50%,-50%)!important}[dir=rtl] .slider>.tooltip+.tooltip{transform:translate(50%,-50%) scaleX(-1)!important}.slider>.tooltip:before{content:var(--_value1)}.slider>.tooltip+.tooltip:before{content:var(--_value2)}.slider>:focus~.tooltip{inset-block-start:-1rem!important;opacity:1!important;visibility:visible!important}.slider.vertical>.tooltip{display:none}:is(nav,.row,.field)>.slider:not(.circle,.small,.medium,.large){flex:auto}.slider.max,.slider.max.vertical,.slider.max>input,.slider.max.vertical>input{all:unset;margin:0!important;position:absolute;color:var(--primary);top:0;right:0;bottom:0;left:0;border-radius:inherit;overflow:hidden;z-index:2;cursor:grab;inline-size:100%;block-size:100%}.slider.max:before{display:none}.slider.max.vertical>input{writing-mode:vertical-lr;transform:rotate(-180deg)}.slider.max>input::-webkit-slider-thumb{opacity:0;inline-size:1rem;block-size:100vh;transform:none!important}.slider.max>input::-moz-range-thumb{opacity:0;inline-size:1rem;block-size:100vh;transform:none!important}.slider.max>span{block-size:auto!important;inset:0 var(--_end) 0 var(--_start);clip-path:none;background:currentcolor;border-radius:0}.slider.max.vertical>span{inset:var(--_end) 0 var(--_start) 0}.slider>input:focus-visible::-webkit-slider-thumb{outline:.1875rem solid var(--primary);outline-offset:.25rem}.slider>input:focus-visible::-moz-range-thumb{outline:.1875rem solid var(--primary);outline-offset:.25rem}.slider.max>input:focus-visible{outline:.1875rem solid var(--primary);outline-offset:-.125rem}@media (pointer: coarse){.slider>:hover~.tooltip{inset-block-start:-1rem!important;opacity:1!important;visibility:visible!important}}.snackbar{position:fixed;inset:auto auto 6rem 50%;inline-size:80%;block-size:auto;z-index:200;visibility:hidden;display:flex;box-shadow:var(--elevate2);color:var(--inverse-on-surface);background-color:var(--inverse-surface);padding:1rem;cursor:pointer;text-align:start;align-items:center;border-radius:.25rem;gap:.5rem;transition:all var(--speed2);transform:translate(-50%,1rem);opacity:0}.snackbar.top{inset:6rem auto auto 50%}.snackbar:is(.active){visibility:visible;transform:translate(-50%);opacity:1}.snackbar:popover-open{visibility:visible;transform:translate(-50%);opacity:1}.snackbar>.max{flex:auto}@media only screen and (min-width: 993px){.snackbar{inline-size:40%}}table{inline-size:100%;border-spacing:0;font-size:.875rem;text-align:start}.scroll>table,table :is(thead,tbody,tfoot,tr,th,td){background-color:inherit;color:inherit}:is(th,td){inline-size:auto;text-align:inherit;padding:.5rem;border-radius:0}:is(th,td)>*{vertical-align:middle}table.border>tbody>tr:not(:last-child)>td,thead>tr>th{border-block-end:.0625rem solid var(--outline)}tfoot>tr>th{border-block-start:.0625rem solid var(--outline)}table.stripes>tbody>tr:nth-child(odd){background-color:var(--active)}table.no-space :is(th,td){padding:0}table.medium-space :is(th,td){padding:.75rem}table.large-space :is(th,td){padding:1rem}table>.fixed,th.fixed{position:sticky;z-index:1;inset-block-start:0}tfoot.fixed,tfoot th.fixed{inset-block-end:0}:is(td,th).min{inline-size:.1%;white-space:nowrap}.tabs{display:flex;white-space:nowrap;border-block-end:.0625rem solid var(--surface-variant);border-radius:0}.tabs:not(.left-align,.right-align,.center-align){justify-content:space-around}.tabs>a{display:flex;font-size:.875rem;font-weight:500;color:var(--on-surface-variant);padding:.5rem 1rem;text-align:center;min-block-size:3rem;inline-size:100%;gap:.25rem}.tabs.small>a{min-block-size:2rem}.tabs.large>a{min-block-size:4rem}.tabs>a.active,.tabs>a.active>i{color:var(--primary)}.tabs>a.active:before{content:"";position:absolute;inset:auto 0 0 0;block-size:.125rem;background-color:var(--primary)}.tabs.min>a.active:before{margin:0 auto;max-inline-size:min(100%,4rem)}.tabs:is(.left-align,.center-align,.right-align)>a{inline-size:auto}.tooltip{--_space: -.5rem;visibility:hidden;display:flex;align-items:center;justify-content:center;gap:.5rem;background-color:var(--inverse-surface);color:var(--inverse-on-surface);font-size:.75rem;text-align:center;border-radius:.25rem;padding:.5rem;position:absolute;z-index:200;inset:0 auto auto 50%;inline-size:auto;white-space:nowrap;font-weight:500;opacity:0;transition:all var(--speed2);line-height:normal;transform:translate(-50%,-100%) scale(.9)}.tooltip.left{inset:50% auto auto 0;transform:translate(-100%,-50%) scale(.9)}.tooltip.right{inset:50% 0 auto auto;transform:translate(100%,-50%) scale(.9)}.tooltip.bottom{inset:auto auto 0 50%;transform:translate(-50%,100%) scale(.9)}.tooltip.small{inline-size:8rem;white-space:normal}.tooltip.medium{inline-size:12rem;white-space:normal}.tooltip.large{inline-size:16rem;white-space:normal}:hover>.tooltip{visibility:visible;opacity:1;transform:translate(-50%,-100%) scale(1)}:hover>.tooltip.left{transform:translate(-100%,-50%) scale(1)}:hover>.tooltip.right{transform:translate(100%,-50%) scale(1)}:hover>.tooltip.bottom{transform:translate(-50%,100%) scale(1)}.tooltip.no-space{--_space: 0}.tooltip.medium-space{--_space: -1rem}.tooltip.large-space{--_space: -1.5rem}.tooltip:not(.left,.right,.bottom){margin-block-start:var(--_space)!important}.tooltip.left,.tooltip.right{margin-inline:var(--_space)!important}.tooltip.bottom{margin-block-end:var(--_space)!important}menu:active~.tooltip,:is(button,.button):focus>menu~.tooltip,.field>:focus~menu~.tooltip{visibility:hidden}.slider>.tooltip{--_space: -1.25rem}.slider.vertical>.tooltip{--_space: -.75rem}.slider.vertical>.tooltip:is(.left,.right){--_space: -.5rem}.tooltip.max{display:block;font-size:inherit;white-space:normal;text-align:start;inline-size:20rem;border-radius:.5rem;padding:1rem;box-shadow:var(--elevate2)}:root{--eox-theme-light-background: 237, 237, 242;--eox-theme-light-code: 245, 245, 245;--eox-theme-light-error-container: 255, 218, 214;--eox-theme-light-error: 186, 26, 26;--eox-theme-light-inverse-on-surface: 240, 240, 245;--eox-theme-light-inverse-primary: 158, 202, 255;--eox-theme-light-inverse-surface: 46, 48, 52;--eox-theme-light-kbd: 33, 37, 41;--eox-theme-light-neutral-palette-key-color: 117, 119, 123;--eox-theme-light-neutral-variant-palette-key-color: 114, 119, 128;--eox-theme-light-on-background: 0, 0, 0;--eox-theme-light-on-code: 0, 0, 0;--eox-theme-light-on-error-container: 65, 0, 2;--eox-theme-light-on-error: 255, 255, 255;--eox-theme-light-on-inverse-on-surface: 0, 0, 0;--eox-theme-light-on-inverse-primary: 0, 0, 0;--eox-theme-light-on-inverse-surface: 255, 255, 255;--eox-theme-light-on-kbd: 255, 255, 255;--eox-theme-light-on-neutral-palette-key-color: 255, 255, 255;--eox-theme-light-on-neutral-variant-palette-key-color: 255, 255, 255;--eox-theme-light-on-outline-variant: 0, 0, 0;--eox-theme-light-on-outline: 255, 255, 255;--eox-theme-light-on-primary-container: 0, 29, 54;--eox-theme-light-on-primary-fixed-dim: 0, 0, 0;--eox-theme-light-on-primary-fixed-variant: 16, 73, 120;--eox-theme-light-on-primary-fixed: 0, 29, 54;--eox-theme-light-on-primary-palette-key-color: 255, 255, 255;--eox-theme-light-on-primary: 255, 255, 255;--eox-theme-light-on-scrim: 255, 255, 255;--eox-theme-light-on-secondary-container: 0, 31, 40;--eox-theme-light-on-secondary-fixed-dim: 0, 0, 0;--eox-theme-light-on-secondary-fixed-variant: 15, 77, 95;--eox-theme-light-on-secondary-fixed: 0, 31, 40;--eox-theme-light-on-secondary-palette-key-color: 255, 255, 255;--eox-theme-light-on-secondary: 255, 255, 255;--eox-theme-light-on-shadow: 255, 255, 255;--eox-theme-light-on-surface-bright: 0, 0, 0;--eox-theme-light-on-surface-container-high: 0, 0, 0;--eox-theme-light-on-surface-container-highest: 0, 0, 0;--eox-theme-light-on-surface-container-low: 0, 0, 0;--eox-theme-light-on-surface-container-lowest: 0, 0, 0;--eox-theme-light-on-surface-container: 0, 0, 0;--eox-theme-light-on-surface-dim: 0, 0, 0;--eox-theme-light-on-surface-light: 0, 0, 0;--eox-theme-light-on-surface-tint: 255, 255, 255;--eox-theme-light-on-surface: 26, 28, 31;--eox-theme-light-on-tertiary-container: 17, 19, 79;--eox-theme-light-on-tertiary-fixed-dim: 0, 0, 0;--eox-theme-light-on-tertiary-fixed-variant: 62, 65, 124;--eox-theme-light-on-tertiary-fixed: 17, 19, 79;--eox-theme-light-on-tertiary-palette-key-color: 255, 255, 255;--eox-theme-light-on-tertiary: 255, 255, 255;--eox-theme-light-outline-variant: 194, 199, 208;--eox-theme-light-outline: 114, 119, 128;--eox-theme-light-primary-container: 209, 228, 255;--eox-theme-light-primary-fixed-dim: 158, 202, 255;--eox-theme-light-primary-fixed: 209, 228, 255;--eox-theme-light-primary-palette-key-color: 0, 65, 112;--eox-theme-light-primary: 0, 65, 112;--eox-theme-light-scrim: 0, 0, 0;--eox-theme-light-secondary-container: 184, 234, 255;--eox-theme-light-secondary-fixed-dim: 154, 206, 228;--eox-theme-light-secondary-fixed: 184, 234, 255;--eox-theme-light-secondary-palette-key-color: 0, 69, 87;--eox-theme-light-secondary: 47, 101, 120;--eox-theme-light-shadow: 0, 0, 0;--eox-theme-light-surface-bright: 249, 249, 254;--eox-theme-light-surface-container-high: 231, 232, 236;--eox-theme-light-surface-container-highest: 226, 226, 231;--eox-theme-light-surface-container-low: 243, 243, 248;--eox-theme-light-surface-container-lowest: 255, 255, 255;--eox-theme-light-surface-container: 237, 237, 242;--eox-theme-light-surface-dim: 217, 218, 222;--eox-theme-light-surface-light: 231, 232, 236;--eox-theme-light-surface-tint: 49, 97, 146;--eox-theme-light-surface: 249, 249, 254;--eox-theme-light-tertiary-container: 225, 224, 255;--eox-theme-light-tertiary-fixed-dim: 191, 193, 255;--eox-theme-light-tertiary-fixed: 225, 224, 255;--eox-theme-light-tertiary-palette-key-color: 54, 57, 116;--eox-theme-light-tertiary: 86, 89, 150}:root{--eox-theme-dark-background: 30, 32, 35;--eox-theme-dark-code: 52, 52, 52;--eox-theme-dark-error-container: 147, 0, 10;--eox-theme-dark-error: 255, 180, 171;--eox-theme-dark-inverse-on-surface: 46, 48, 52;--eox-theme-dark-inverse-primary: 49, 97, 146;--eox-theme-dark-inverse-surface: 226, 226, 231;--eox-theme-dark-kbd: 33, 37, 41;--eox-theme-dark-neutral-palette-key-color: 117, 119, 123;--eox-theme-dark-neutral-variant-palette-key-color: 114, 119, 128;--eox-theme-dark-on-background: 255, 255, 255;--eox-theme-dark-on-code: 204, 204, 204;--eox-theme-dark-on-error-container: 255, 180, 171;--eox-theme-dark-on-error: 105, 0, 5;--eox-theme-dark-on-inverse-on-surface: 255, 255, 255;--eox-theme-dark-on-inverse-primary: 158, 202, 255;--eox-theme-dark-on-inverse-surface: 0, 0, 0;--eox-theme-dark-on-kbd: 255, 255, 255;--eox-theme-dark-on-neutral-palette-key-color: 255, 255, 255;--eox-theme-dark-on-neutral-variant-palette-key-color: 255, 255, 255;--eox-theme-dark-on-outline-variant: 255, 255, 255;--eox-theme-dark-on-outline: 255, 255, 255;--eox-theme-dark-on-primary-container: 209, 228, 255;--eox-theme-dark-on-primary-fixed-dim: 0, 0, 0;--eox-theme-dark-on-primary-fixed-variant: 16, 73, 120;--eox-theme-dark-on-primary-fixed: 0, 29, 54;--eox-theme-dark-on-primary-palette-key-color: 255, 255, 255;--eox-theme-dark-on-primary: 0, 50, 88;--eox-theme-dark-on-scrim: 255, 255, 255;--eox-theme-dark-on-secondary-container: 184, 234, 255;--eox-theme-dark-on-secondary-fixed-dim: 0, 0, 0;--eox-theme-dark-on-secondary-fixed-variant: 15, 77, 95;--eox-theme-dark-on-secondary-fixed: 0, 31, 40;--eox-theme-dark-on-secondary-palette-key-color: 255, 255, 255;--eox-theme-dark-on-secondary: 0, 53, 68;--eox-theme-dark-on-shadow: 255, 255, 255;--eox-theme-dark-on-surface-bright: 255, 255, 255;--eox-theme-dark-on-surface-container-high: 255, 255, 255;--eox-theme-dark-on-surface-container-highest: 255, 255, 255;--eox-theme-dark-on-surface-container-low: 255, 255, 255;--eox-theme-dark-on-surface-container-lowest: 255, 255, 255;--eox-theme-dark-on-surface-container: 255, 255, 255;--eox-theme-dark-on-surface-dim: 255, 255, 255;--eox-theme-dark-on-surface-light: 255, 255, 255;--eox-theme-dark-on-surface-tint: 0, 0, 0;--eox-theme-dark-on-surface: 226, 226, 231;--eox-theme-dark-on-tertiary-container: 225, 224, 255;--eox-theme-dark-on-tertiary-fixed-dim: 0, 0, 0;--eox-theme-dark-on-tertiary-fixed-variant: 62, 65, 124;--eox-theme-dark-on-tertiary-fixed: 17, 19, 79;--eox-theme-dark-on-tertiary-palette-key-color: 255, 255, 255;--eox-theme-dark-on-tertiary: 39, 42, 100;--eox-theme-dark-outline-variant: 66, 71, 79;--eox-theme-dark-outline: 140, 145, 154;--eox-theme-dark-primary-container: 16, 73, 120;--eox-theme-dark-primary-fixed-dim: 158, 202, 255;--eox-theme-dark-primary-fixed-variant: 209, 228, 255;--eox-theme-dark-primary-fixed: 209, 228, 255;--eox-theme-dark-primary-palette-key-color: 0, 65, 112;--eox-theme-dark-primary: 158, 202, 255;--eox-theme-dark-scrim: 0, 0, 0;--eox-theme-dark-secondary-container: 15, 77, 95;--eox-theme-dark-secondary-fixed-dim: 154, 206, 228;--eox-theme-dark-secondary-fixed-variant: 184, 234, 255;--eox-theme-dark-secondary-fixed: 184, 234, 255;--eox-theme-dark-secondary-palette-key-color: 0, 69, 87;--eox-theme-dark-secondary: 154, 206, 228;--eox-theme-dark-shadow: 0, 0, 0;--eox-theme-dark-surface-bright: 55, 57, 61;--eox-theme-dark-surface-container-high: 40, 42, 46;--eox-theme-dark-surface-container-highest: 51, 53, 56;--eox-theme-dark-surface-container-low: 26, 28, 31;--eox-theme-dark-surface-container-lowest: 12, 14, 17;--eox-theme-dark-surface-container: 30, 32, 35;--eox-theme-dark-surface-dim: 17, 19, 23;--eox-theme-dark-surface-light: 55, 57, 61;--eox-theme-dark-surface-tint: 158, 202, 255;--eox-theme-dark-surface: 17, 19, 23;--eox-theme-dark-tertiary-container: 62, 65, 124;--eox-theme-dark-tertiary-fixed-dim: 191, 193, 255;--eox-theme-dark-tertiary-fixed-variant: 225, 224, 255;--eox-theme-dark-tertiary-fixed: 225, 224, 255;--eox-theme-dark-tertiary-palette-key-color: 54, 57, 116;--eox-theme-dark-tertiary: 191, 193, 255}:root{--eox-slider-thumb-height: 20px;--eox-slider-thumb-width: 20px;--eox-slider-track-height: 6px;--eox-slider-track-color: var(--outline-variant);--eox-slider-brightness-hover: 100%;--eox-slider-brightness-down: 100%;--eox-slider-clip-edges: 4px;--eox-slider-margin: 1.125rem}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input){font-size:1.5rem;color:var(--primary);width:100%;background:none;overflow:hidden}input[type=range]:not(.slider input[type=range]){margin:var(--eox-slider-margin);width:100%}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):active{cursor:grabbing}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):disabled{filter:grayscale(1);opacity:.3;cursor:not-allowed}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input),input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-webkit-slider-runnable-track,input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-webkit-slider-thumb{-webkit-appearance:none;transition:all ease .1s;height:var(--eox-slider-thumb-height)}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-webkit-slider-runnable-track,input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-webkit-slider-thumb{position:relative}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-webkit-slider-runnable-track{border-radius:var(--eox-slider-track-height)}input[type=range]:not(.slider input)::-webkit-slider-thumb{--thumb-radius: calc((var(--eox-slider-thumb-height) * .5) - 1px);--clip-top: calc( (var(--eox-slider-thumb-height) - var(--eox-slider-track-height)) * .5 - .5px );--clip-bottom: calc(var(--eox-slider-thumb-height) - var(--clip-top));--clip-further: calc(100% + 1px) ;--box-fill: calc( -100vmax - var(--eox-slider-thumb-width, var(--eox-slider-thumb-height)) ) 0 0 100vmax currentColor;width:var(--eox-slider-thumb-width, var(--eox-slider-thumb-height));background:linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--eox-slider-track-height) + 1px);background-color:currentColor;box-shadow:var(--box-fill);border-radius:var(--eox-slider-thumb-width, var(--eox-slider-thumb-height));filter:brightness(100%);clip-path:polygon(100% -1px,var(--eox-slider-clip-edges) -1px,0 var(--clip-top),-100vmax var(--clip-top),-100vmax var(--clip-bottom),0 var(--clip-bottom),var(--eox-slider-clip-edges) 100%,var(--clip-further) var(--clip-further))}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):hover::-webkit-slider-thumb{filter:brightness(var(--eox-slider-brightness-hover));cursor:grab}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):active::-webkit-slider-thumb{filter:brightness(var(--eox-slider-brightness-down));cursor:grabbing}input[type=range]:not(.slider input)::-webkit-slider-runnable-track{background:linear-gradient(var(--eox-slider-track-color) 0 0) scroll no-repeat center / 100% calc(var(--eox-slider-track-height) + 1px)}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):disabled::-webkit-slider-thumb{cursor:not-allowed}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input),input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-track,input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;transition:all ease .1s;height:var(--eox-slider-thumb-height)}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-track,input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-thumb,input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-progress{background:#fff0}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-thumb{background:currentColor;border:0;width:var(--eox-slider-thumb-width, var(--eox-slider-thumb-height));border-radius:var(--eox-slider-thumb-width, var(--eox-slider-thumb-height));cursor:grab}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):active::-moz-range-thumb{cursor:grabbing}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-track{width:100%;background:var(--eox-slider-track-color)}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:currentColor;transition-delay:30ms}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-track,input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-progress{height:calc(var(--eox-slider-track-height) + 1px);border-radius:var(--eox-slider-track-height)}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-thumb,input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input)::-moz-range-progress{filter:brightness(100%)}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):hover::-moz-range-thumb,input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):hover::-moz-range-progress{filter:brightness(var(--eox-slider-brightness-hover))}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):active::-moz-range-thumb,input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):active::-moz-range-progress{filter:brightness(var(--eox-slider-brightness-down))}input[type=range]:not(.slider.large input,.slider.small input,.slider.medium input,.slider.extra input):disabled::-moz-range-thumb{cursor:not-allowed}label.slider.tiny:before{height:var(--eox-slider-track-height);background:var(--outline-variant);clip-path:none}label.slider.tiny>span,.slider.tiny>input[type=range]+input[type=range]~span{height:var(--eox-slider-track-height);top:var(--eox-slider-track-height) - 1;clip-path:none}.slider.tiny>input[type=range]::-webkit-slider-thumb{box-shadow:unset;width:var(--eox-slider-thumb-width, var(--eox-slider-thumb-height));border-radius:var(--eox-slider-thumb-width, var(--eox-slider-thumb-height))}.slider.tiny>input[type=range]::-webkit-slider-runnable-track{background:unset}.slider.tiny>input[type=range]:not(:disabled):is(:focus)::-webkit-slider-thumb{transform:scaleX(1)}.slider.tiny>input:not(:disabled):is(:focus)::-moz-range-thumb{transform:scaleX(1)}tc-range-slider{--panel-bg-fill: var(--primary);--pointer-bg: var(--primary);--pointer-bg-focus: var(--primary);--pointer-bg-hover: var(--primary);--pointer-border: 0;--pointer-border-focus: 0;--pointer-border-hover: 0;--pointer-width: var( --eox-slider-thumb-width, var(--eox-slider-thumb-height) );--pointer-height: var( --eox-slider-thumb-width, var(--eox-slider-thumb-height) );--pointer-shadow: 0;--pointer-shadow-hover: 0;--height: var(--eox-slider-track-height);--width: 100%;--panel-bg-border-radius: var(--eox-slider-track-height);--panel-bg: var(--eox-slider-track-color);--panel-bg-hover: var(--eox-slider-track-color);display:block;margin:var(--eox-slider-margin)}:root{--eox-body-font-family: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Noto Sans, Arial, sans-serif;--eox-header-font-family: var(--eox-body-font-family);--size: 1rem;--font: var(--eox-body-font-family);--font-icon: "Material Symbols Subset";--speed1: .1s;--speed2: .2s;--speed3: .3s;--speed4: .4s;--active: rgb(128 128 128 / .192);--overlay: rgb(0 0 0 / .5);--elevate1: 0 .125rem .125rem 0 rgb(0 0 0 / .32);--elevate2: 0 .25rem .5rem 0 rgb(0 0 0 / .4);--elevate3: 0 .375rem .75rem 0 rgb(0 0 0 / .48);--top: env(safe-area-inset-top);--bottom: env(safe-area-inset-bottom);--left: env(safe-area-inset-left);--right: env(safe-area-inset-right)}*{font-family:var(--eox-body-font-family)}h1,h2,h3,h4,h5,h6{font-family:var(--eox-header-font-family)}:root,body.light{--primary: rgb(var(--eox-theme-light-primary));--on-primary: rgb(var(--eox-theme-light-on-primary));--primary-container: rgb(var(--eox-theme-light-primary-container));--on-primary-container: #001d36;--secondary: rgb(var(--eox-theme-light-secondary));--on-secondary: rgb(var(--eox-theme-light-on-secondary));--secondary-container: #d7e3f7;--on-secondary-container: #101c2b;--tertiary: rgb(var(--eox-theme-light-tertiary));--on-tertiary: rgb(var(--eox-theme-light-on-tertiary));--tertiary-container: #f2daff;--on-tertiary-container: #251431;--error: rgb(var(--eox-theme-light-error));--on-error: rgb(var(--eox-theme-light-on-error));--error-container: #ffdad6;--on-error-container: #410002;--background: rgb(var(--eox-theme-light-background));--on-background: #1a1c1e;--surface: rgb(var(--eox-theme-light-surface));--on-surface: rgb(var(--eox-theme-light-on-surface));--surface-variant: #dfe2eb;--on-surface-variant: #43474e;--outline: rgb(var(--eox-theme-light-outline));--outline-variant: rgb(var(--eox-theme-light-outline-variant));--shadow: #000000;--scrim: #000000;--inverse-surface: #2f3033;--inverse-on-surface: #f1f0f4;--inverse-primary: #9ecaff;--surface-dim: rgb(var(--eox-theme-light-surface-dim));--surface-bright: rgb(var(--eox-theme-light-surface-bright));--surface-container-lowest: #ffffff;--surface-container-low: #f4f3f7;--surface-container: #eeedf1;--surface-container-high: #e8e8eb;--surface-container-highest: #e2e2e6}body.dark{--primary: rgb(var(--eox-theme-dark-primary));--on-primary: rgb(var(--eox-theme-dark-on-primary));--primary-container: rgb(var(--eox-theme-dark-primary-container));--on-primary-container: #d1e4ff;--secondary: rgb(var(--eox-theme-dark-secondary));--secondary-container: #3b4858;--on-secondary-container: #d7e3f7;--on-secondary-container: rgb(var(--eox-theme-dark-on-secondary-container));--tertiary: rgb(var(--eox-theme-dark-tertiary));--on-tertiary: rgb(var(--eox-theme-dark-on-tertiary));--tertiary-container: #523f5f;--on-tertiary-container: #f2daff;--error: rgb(var(--eox-theme-dark-error));--on-error: rgb(var(--eox-theme-dark-on-error));--error-container: #93000a;--on-error-container: #ffb4ab;--background: rgb(var(--eox-theme-dark-background));--on-background: #e2e2e6;--surface: rgb(var(--eox-theme-dark-surface));--on-surface: rgb(var(--eox-theme-dark-on-surface));--surface-variant: #43474e;--on-surface-variant: #c3c7cf;--outline: rgb(var(--eox-theme-dark-outline));--outline-variant: rgb(var(--eox-theme-dark-outline-variant));--shadow: #000000;--scrim: #000000;--inverse-surface: #e2e2e6;--inverse-on-surface: #2f3033;--inverse-primary: #0161a3;--surface-dim: rgb(var(--eox-theme-dark-surface-dim));--surface-bright: rgb(var(--eox-theme-dark-surface-bright));--surface-container-lowest: #0d0e11;--surface-container-low: #1a1c1e;--surface-container: #1e2022;--surface-container-high: #282a2d;--surface-container-highest: #333538}.list.no-space>li,.list.no-space>li>details>summary{min-block-size:0rem;padding:0 1rem}:is(.checkbox,.radio,.switch).small{--_size: 1.2rem}:is(.checkbox,.radio):is(:hover)>input:not(:disabled)+span:after,:is(.checkbox,.radio)>input:not(:disabled):is(:focus)+span:after{box-shadow:0 0 0 .4rem currentColor}:is(.checkbox,.radio,.switch):is(.no-round,.square)>span:before,:is(.checkbox,.radio,.switch):is(.no-round,.square)>span>i,:is(.checkbox,.radio):is(.no-round,.square)>span:after{border-radius:.15rem}.scroll::-webkit-scrollbar,.scroll::-webkit-scrollbar-thumb,.scroll::-webkit-scrollbar-button{background:none;inline-size:.4rem;block-size:.4rem}.scroll:is(:hover,:focus)::-webkit-scrollbar-thumb{background:var(--outline);border-radius:1rem}',Jo=()=>{const i="eox-elements";if(!document.head.querySelector(`style#${i}`)){const e=new CSSStyleSheet;e.replaceSync(si);const t=Array.from(e.cssRules).filter(n=>n.cssText.includes(":root")).map(n=>n.cssText).join(" "),r=document.createElement("style");r.setAttribute("id",i),r.innerHTML=`
219
+ @import url("https://eox.at/fonts/inter/inter.css");
220
+
221
+ @font-face {
222
+ font-family: "Material Symbols Subset";
223
+ font-style: normal;
224
+ font-weight: 400;
225
+ font-display: block;
226
+ src: url(https://cdn.jsdelivr.net/npm/@eox/ui@0.3.4/dist/material-symbols-subset.woff2) format("woff2");
227
+ }
228
+
229
+ eox-chart,
230
+ eox-drawtools,
231
+ eox-feedback,
232
+ eox-geosearch,
233
+ eox-itemfilter,
234
+ eox-jsonform,
235
+ eox-layercontrol,
236
+ eox-map,
237
+ eox-stacinfo,
238
+ eox-storytelling,
239
+ eox-timecontrol {
240
+ font-family: var(--font);
241
+ font-size: .875rem;
242
+ line-height: 1.5rem;
243
+ letter-spacing: .0313rem;
244
+ }
245
+ ${t}
246
+ `,document.head.appendChild(r)}},Wo=i=>{let e;return typeof i=="string"?e=document.querySelector(i):e=i,e};Jo();const Zo=`
247
+ ${si}
248
+ :host {
249
+ --padding: 0.5rem;
164
250
  }
165
- .icon-copy {
166
- position: absolute;
167
- bottom: 26px;
168
- right: 26px;
169
- border-radius: 4px;
170
- height: 26px;
171
- padding: 4px 6px;
251
+ .drawtitle {
252
+ padding-left: var(--padding);
253
+ padding-right: var(--padding);
172
254
  }
173
- .icon-copy:before {
174
- width: 14px;
175
- min-width: 14px;
176
- height: 14px;
177
- display: flex margin-right: 6px;
178
- color: white;
179
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Econtent-copy%3C/title%3E%3Cpath d='M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z' fill='white' /%3E%3C/svg%3E")
180
- }
181
- `,Zs=n=>{(()=>{if(n.emitDrawnFeatures(),!n.multipleFeatures)n.draw.setActive(!1),n.selectionEvents.removeSelectionEvent(),n.currentlyDrawing=!1;else if(n.continuous)if(!n.layerId)n.drawLayer.getSource().clear(),n.drawnFeatures=[];else{const i=n.drawLayer.getSource().getFeatures().at(-1);if(n.drawLayer.getSource().clear(),!i)return;n.drawLayer.getSource().addFeature(i),n.drawnFeatures=[i]}})(),n.requestUpdate()},Ks=n=>{const t=()=>{n.drawLayer.set("isDrawingEnabled",!0),n.draw.setActive(!0),n.selectionEvents.addSelectionEvent()},e=()=>{n.currentlyDrawing=!0,n.requestUpdate()};t(),e()},Qs=n=>{let t;return typeof n=="string"?t=document.querySelector(n):t=n,t},cn=(n,t)=>{var s,o,a,l,h;const i=Qs(n.for),r=i.map;return n.drawLayer=i.addOrUpdateLayer({zIndex:100,type:"Vector",properties:{id:"drawLayer",layerControlHide:!0,isDrawingEnabled:!1,multipleFeatures:t},source:{type:"Vector"},style:(s=n.featureStyles)==null?void 0:s.layer,interactions:[{type:"draw",options:{active:!1,id:"drawInteraction",type:n.type,modify:n.allowModify,stopClick:!0,style:(o=n.featureStyles)==null?void 0:o.layer}},{type:"select",options:{id:"SelectLayerHoverInteraction",condition:"pointermove",style:((a=n.featureStyles)==null?void 0:a.hover)||{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5},tooltip:!1}},{type:"select",options:{id:"SelectLayerClickInteraction",condition:"click",panIn:!0,style:((l=n.featureStyles)==null?void 0:l.click)||{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5}}}]}),n.draw=i.interactions.drawInteraction,n.modify=i.interactions.drawInteractionmodify,He(n,i,n.layerId),(h=n.modify)==null||h.on("modifyend",()=>n.onModifyEnd()),i.addEventListener("addfeatures",()=>Zs(n)),{EoxMap:i,OlMap:r}},to=n=>{const t=()=>{n.drawnFeatures=[],n.draw.setActive(!1),n.selectionEvents.removeSelectionEvent(),n.drawLayer.getSource().clear(),n.geoJSON=null},e=()=>{n.emitDrawnFeatures(),n.currentlyDrawing=!1,n.requestUpdate()};t(),e()},eo=(n,t)=>{setTimeout(()=>{const i=n.drawLayer.getSource().getFeatures(),r=n.eoxMap.projection||"EPSG:3857",s=n.projection;n.drawnFeatures=s?i.map(a=>{a=a.clone();const l=a.getGeometry().transform(r,s);return a.setGeometry(l),a}):i;let o;switch(n.format){case"geojson":o=Ts(n.drawnFeatures);break;case"wkt":o=qs(n.drawnFeatures);break;case"feature":o=n.drawnFeatures;break;default:o=n.drawnFeatures;break}n.updateGeoJSON(),n.requestUpdate(),t(o)},0)},io=n=>{const t=r=>{(r==null?void 0:r.detail.id)!=="SelectLayerClickInteraction"||!r.detail.feature||(n.drawLayer.getSource().addFeature(r.detail.feature),n.eoxMap.dispatchEvent(new CustomEvent("addfeatures",{detail:r.detail})))};return{addSelectionEvent:()=>{n.layerId&&(n.eoxMap.selectInteractions.SelectLayerHoverInteraction.setActive(!0),n.eoxMap.addEventListener("select",t))},removeSelectionEvent:()=>{var s;const r=(s=n.eoxMap.selectInteractions)==null?void 0:s.SelectLayerHoverInteraction;r&&(r.selectedFids=[],r.setActive(!1)),n.eoxMap.removeEventListener("select",t)}}},He=(n,t,e)=>{var l,h;if(!e||!t)return;const i=t.getLayerById(e),r=i?JSON.parse(JSON.stringify(i.get("_jsonDefinition"))):null;if(!r){console.error(`Layer with id ${e} not found`);return}const s={type:"select",active:!1,options:{id:"SelectLayerHoverInteraction",condition:"pointermove",active:!1,style:((l=n.featureStyles)==null?void 0:l.hover)||{"fill-color":"rgba(0, 0, 0,0.0)","stroke-color":"#3399CC","stroke-width":2.5}}},o={type:"select",options:{id:"SelectLayerClickInteraction",condition:"click",multi:n.multipleFeatures,modify:n.allowModify,active:!1,style:((h=n.featureStyles)==null?void 0:h.click)||{"fill-color":"rgba(0, 0, 0,0.0)","stroke-color":"rgba(0, 0, 0,0.0)"}}};r.interactions=[s,o],t.addOrUpdateLayer(r),un(t.layers,e,[r]);const a=n.draw;n.draw=t.selectInteractions.SelectLayerClickInteraction,a.setActive(!1),t.selectInteractions.SelectLayerClickInteraction.setActive(!1),t.selectInteractions.SelectLayerHoverInteraction.setActive(!1)};function un(n,t,e){const i=n.findIndex(r=>r.properties.id===t);if(i!==-1)return n.splice(i,1,...e),n;for(const r of n)if(r.type==="Group"){const s=un(r.layers,t,e);s!=null&&s.length&&(r.layers=s)}return n}const no=(n,t,e,i)=>{if(t){if(e){i&&e!==i&&dn(n,t),He(n,t,e);return}if(!e&&i){dn(n,t);return}}};function dn(n,t){t&&(n.discardDrawing(),n.selectionEvents.removeSelectionEvent(),n.draw=t.interactions.drawInteraction,t.selectInteractions.SelectLayerClickInteraction.remove(),t.selectInteractions.SelectLayerHoverInteraction.remove())}const ro=':root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, transparent); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24); overflow: auto;}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}';function so(n,t){function e(s){s.preventDefault(),s.stopPropagation()}function i(s){s.srcElement.style.opacity="0.4"}function r(s){s.srcElement.style.opacity="1"}["dragenter","dragover","dragleave","drop"].forEach(s=>{t.addEventListener(s,e,!1),["dragenter","dragover"].includes(s)?t.addEventListener(s,i,!1):t.addEventListener(s,r,!1)}),t.addEventListener("drop",s=>fn(s,n),!1)}function oo(n){n.preventDefault(),n.stopPropagation()}function fn(n,t){oo(n);const e=n.dataTransfer?n.dataTransfer.files:n.target.files;Array.from(e).forEach(i=>ao(i,t))}function ao(n,t){const e=new FileReader;e.readAsText(n),e.onloadend=function(){typeof e.result=="string"&&t.handleFeatureChange(e.result)}}class gn extends U{constructor(){super();T(this,ut);T(this,dt);T(this,It);T(this,ft);T(this,Lt);this.allowModify=!1,this.for="eox-map",this.currentlyDrawing=!1,this.draw=null,this.drawLayer=null,this.layerId="",this.drawnFeatures=[],this.featureName="Feature",this.featureStyles=null,this.modify=null,this.multipleFeatures=!1,this.importFeatures=!1,this.showEditor=!1,this.showList=!1,this.projection="EPSG:4326",this.type="Polygon",this.selectionEvents=null,this.format="feature",this.unstyled=!1,this.noShadow=!1}static get properties(){return{allowModify:{attribute:"allow-modify",type:Boolean},for:{type:String},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},continuous:{type:Boolean},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},drawnFeatures:{attribute:!1,state:!0,type:Array},featureName:{attribute:"feature-name",type:String},layerId:{attribute:"layer-id",type:String},featureStyles:{attribute:!1},modify:{attribute:!1,state:!0},multipleFeatures:{attribute:"multiple-features",type:Boolean},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},showList:{attribute:"show-list",type:Boolean},projection:{type:String},noShadow:{type:Boolean},format:{type:String},type:{type:String},unstyled:{type:Boolean}}}set continuous(e){I(this,Lt,e),e&&(this.multipleFeatures=!0)}get continuous(){return A(this,Lt)}set layerId(e){no(this,this.eoxMap,e,A(this,ft)),I(this,ft,e)}get layerId(){return A(this,ft)}startDrawing(){Ks(this)}discardDrawing(){to(this)}handleFeatureChange(e,i=!1,r=!0){this.eoxMap.parseTextToFeature(e||JSON.stringify(ri),this.drawLayer,this.eoxMap,i,{dataProjection:this.eoxMap.projection,featureProjection:this.projection},r)}handleFilesChange(e){fn(e,this)}onModifyEnd(){this.emitDrawnFeatures()}updateGeoJSON(){I(this,It,JSON.stringify(this.eoxMap.parseFeature(this.drawnFeatures)||ri,void 0,2))}emitDrawnFeatures(){eo(this,i=>{this.dispatchEvent(new CustomEvent("drawupdate",{detail:i}))})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){const{EoxMap:e,OlMap:i}=cn(this,this.multipleFeatures);this.eoxMap=e,I(this,dt,i),this.selectionEvents=io(this),this.importFeatures&&so(this,this.eoxMap),this.updateGeoJSON(),this.requestUpdate()}updated(e){if(e.has("for")){const{EoxMap:i,OlMap:r}=cn(this,this.multipleFeatures);this.eoxMap=i,I(this,dt,r)}}get eoxMap(){return A(this,ut)}set eoxMap(e){const i=A(this,ut);I(this,ut,e),this.requestUpdate("eoxMap",i)}disconnectedCallback(){var e;(e=this.eoxMap)==null||e.map.removeLayer(this.drawLayer),super.disconnectedCallback()}render(){var e;return k`
255
+ `,Ko=i=>{(()=>{if(i.emitDrawnFeatures(),!i.multipleFeatures)i.draw.setActive(!1),i.selectionEvents.removeSelectionEvent(),i.currentlyDrawing=!1;else if(i.continuous)if(!i.layerId)i.drawLayer.getSource().clear(),i.drawnFeatures=[];else{const r=i.drawLayer.getSource().getFeatures().at(-1);if(i.drawLayer.getSource().clear(),!r)return;i.drawLayer.getSource().addFeature(r),i.drawnFeatures=[r]}})(),i.requestUpdate()},Do=i=>{const e=()=>{i.drawLayer.set("isDrawingEnabled",!0),i.draw.setActive(!0),i.selectionEvents.addSelectionEvent()},t=()=>{i.currentlyDrawing=!0,i.requestUpdate()};e(),t(),document.addEventListener("keydown",({key:r})=>{r==="Escape"&&i.currentlyDrawing&&(i.draw.setActive(!1),i.currentlyDrawing=!1,i.requestUpdate())})},li=(i,e)=>{var a,s,l,c,d;const r=Wo(i.for),n=r.map,o="0, 65, 112";return i.drawLayer=r.addOrUpdateLayer({zIndex:100,type:"Vector",properties:{id:"drawLayer",layerControlHide:!0,isDrawingEnabled:!1,multipleFeatures:e},source:{type:"Vector"},style:((a=i.featureStyles)==null?void 0:a.layer)||{"fill-color":`rgba(${o}, 0.1)`,"stroke-color":`rgba(${o}, 1)`,"stroke-width":2,"circle-radius":5,"circle-fill-color":`rgba(${o}, 1)`},interactions:[{type:"draw",options:{active:!1,id:"drawInteraction",type:i.type,modify:i.allowModify,stopClick:!0,style:((s=i.featureStyles)==null?void 0:s.layer)||{"fill-color":`rgba(${o}, 0.1)`,"stroke-color":`rgba(${o}, 1)`,"stroke-width":1,"stroke-line-dash":[7,3],"circle-radius":5,"circle-fill-color":`rgba(${o}, 1)`}}},{type:"select",options:{id:"SelectLayerHoverInteraction",condition:"pointermove",style:((l=i.featureStyles)==null?void 0:l.hover)||{"fill-color":`rgba(${o}, 0.2)`,"stroke-color":`rgba(${o}, 1)`,"stroke-width":2},tooltip:!1}},{type:"select",options:{id:"SelectLayerClickInteraction",condition:"click",panIn:!0,style:((c=i.featureStyles)==null?void 0:c.click)||{"fill-color":`rgba(${o}, 0.2)`,"stroke-color":`rgba(${o}, 1)`,"stroke-width":2}}}]}),i.draw=r.interactions.drawInteraction,i.modify=r.interactions.drawInteractionmodify,Ot(i,r,i.layerId),(d=i.modify)==null||d.on("modifyend",()=>i.onModifyEnd()),r.addEventListener("addfeatures",()=>Ko(i)),{EoxMap:r,OlMap:n}},Qo=i=>{const e=()=>{i.drawnFeatures=[],i.draw.setActive(!1),i.selectionEvents.removeSelectionEvent(),i.drawLayer.getSource().clear(),i.geoJSON=null},t=()=>{i.emitDrawnFeatures(),i.currentlyDrawing=!1,i.requestUpdate()};e(),t()},ea=(i,e)=>{setTimeout(()=>{const r=i.drawLayer.getSource().getFeatures(),n=i.eoxMap.projection||"EPSG:3857",o=i.projection;i.drawnFeatures=o?r.map(s=>{s=s.clone();const l=s.getGeometry().transform(n,o);return s.setGeometry(l),s}):r;let a;switch(i.format){case"geojson":a=Go(i.drawnFeatures);break;case"wkt":a=qo(i.drawnFeatures);break;case"feature":a=i.drawnFeatures;break;default:a=i.drawnFeatures;break}i.updateGeoJSON(),i.requestUpdate(),e(a)},0)},ta=i=>{const e=n=>{(n==null?void 0:n.detail.id)!=="SelectLayerClickInteraction"||!n.detail.feature||(i.drawLayer.getSource().addFeature(n.detail.feature),i.eoxMap.dispatchEvent(new CustomEvent("addfeatures",{detail:n.detail})))};return{addSelectionEvent:()=>{i.layerId&&(i.eoxMap.selectInteractions.SelectLayerHoverInteraction.setActive(!0),i.eoxMap.addEventListener("select",e))},removeSelectionEvent:()=>{var o;const n=(o=i.eoxMap.selectInteractions)==null?void 0:o.SelectLayerHoverInteraction;n&&(n.selectedFids=[],n.setActive(!1)),i.eoxMap.removeEventListener("select",e)}}},Ot=(i,e,t)=>{var l,c;if(!t||!e)return;const r=e.getLayerById(t),n=r?JSON.parse(JSON.stringify(r.get("_jsonDefinition"))):null;if(!n){console.error(`Layer with id ${t} not found`);return}const o={type:"select",active:!1,options:{id:"SelectLayerHoverInteraction",condition:"pointermove",active:!1,style:((l=i.featureStyles)==null?void 0:l.hover)||{"fill-color":"rgba(0, 0, 0,0.0)","stroke-color":"#3399CC","stroke-width":2.5}}},a={type:"select",options:{id:"SelectLayerClickInteraction",condition:"click",multi:i.multipleFeatures,modify:i.allowModify,active:!1,style:((c=i.featureStyles)==null?void 0:c.click)||{"fill-color":"rgba(0, 0, 0,0.0)","stroke-color":"rgba(0, 0, 0,0.0)"}}};n.interactions=[o,a],e.addOrUpdateLayer(n),ci(e.layers,t,[n]);const s=i.draw;i.draw=e.selectInteractions.SelectLayerClickInteraction,s.setActive(!1),e.selectInteractions.SelectLayerClickInteraction.setActive(!1),e.selectInteractions.SelectLayerHoverInteraction.setActive(!1)};function ci(i,e,t){const r=i.findIndex(n=>n.properties.id===e);if(r!==-1)return i.splice(r,1,...t),i;for(const n of i)if(n.type==="Group"){const o=ci(n.layers,e,t);o!=null&&o.length&&(n.layers=o)}return i}const ra=(i,e,t,r)=>{if(e){if(t){r&&t!==r&&di(i,e),Ot(i,e,t);return}if(!t&&r){di(i,e);return}}};function di(i,e){e&&(i.discardDrawing(),i.selectionEvents.removeSelectionEvent(),i.draw=e.interactions.drawInteraction,e.selectInteractions.SelectLayerClickInteraction.remove(),e.selectInteractions.SelectLayerHoverInteraction.remove())}function ia(i,e){function t(o){o.preventDefault(),o.stopPropagation()}function r(o){o.srcElement.style.opacity="0.4"}function n(o){o.srcElement.style.opacity="1"}["dragenter","dragover","dragleave","drop"].forEach(o=>{e.addEventListener(o,t,!1),["dragenter","dragover"].includes(o)?e.addEventListener(o,r,!1):e.addEventListener(o,n,!1)}),e.addEventListener("drop",o=>ui(o,i),!1)}function na(i){i.preventDefault(),i.stopPropagation()}function ui(i,e){na(i);const t=i.dataTransfer?i.dataTransfer.files:i.target.files;Array.from(t).forEach(r=>oa(r,e))}function oa(i,e){const t=new FileReader;t.readAsText(i),t.onloadend=function(){typeof t.result=="string"&&e.handleFeatureChange(t.result)}}class hi extends H{constructor(){super();R(this,de);R(this,ue);R(this,Ae);R(this,he);R(this,Fe);this.allowModify=!1,this.for="eox-map",this.currentlyDrawing=!1,this.draw=null,this.drawLayer=null,this.layerId="",this.drawnFeatures=[],this.featureName="Feature",this.featureNameKey=null,this.featureStyles=null,this.modify=null,this.multipleFeatures=!1,this.importFeatures=!1,this.showEditor=!1,this.showList=!1,this.projection="EPSG:4326",this.type="Polygon",this.selectionEvents=null,this.format="feature",this.unstyled=!1,this.noShadow=!1}static get properties(){return{allowModify:{attribute:"allow-modify",type:Boolean},for:{type:String},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},continuous:{type:Boolean},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},drawnFeatures:{attribute:!1,state:!0,type:Array},featureName:{attribute:"feature-name",type:String},featureNameKey:{attribute:"feature-name-key",type:String},layerId:{attribute:"layer-id",type:String},featureStyles:{attribute:!1},modify:{attribute:!1,state:!0},multipleFeatures:{attribute:"multiple-features",type:Boolean},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},showList:{attribute:"show-list",type:Boolean},projection:{type:String},noShadow:{type:Boolean},format:{type:String},type:{type:String},unstyled:{type:Boolean}}}set continuous(t){G(this,Fe,t),t&&(this.multipleFeatures=!0)}get continuous(){return $(this,Fe)}set layerId(t){ra(this,this.eoxMap,t,$(this,he)),G(this,he,t)}get layerId(){return $(this,he)}startDrawing(){Do(this)}discardDrawing(){Qo(this)}handleFeatureChange(t,r=!1,n=!0){this.eoxMap.parseTextToFeature(t||JSON.stringify(ir),this.drawLayer,this.eoxMap,r,{dataProjection:this.eoxMap.projection,featureProjection:this.projection},n)}handleFilesChange(t){ui(t,this)}onModifyEnd(){this.emitDrawnFeatures()}updateGeoJSON(){G(this,Ae,JSON.stringify(this.eoxMap.parseFeature(this.drawnFeatures)||ir,void 0,2))}emitDrawnFeatures(){ea(this,r=>{this.dispatchEvent(new CustomEvent("drawupdate",{detail:r}))})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){const{EoxMap:t,OlMap:r}=li(this,this.multipleFeatures);this.eoxMap=t,G(this,ue,r),this.selectionEvents=ta(this),this.importFeatures&&ia(this,this.eoxMap),this.updateGeoJSON(),this.requestUpdate()}updated(t){if(t.has("for")){const{EoxMap:r,OlMap:n}=li(this,this.multipleFeatures);this.eoxMap=r,G(this,ue,n)}}get eoxMap(){return $(this,de)}set eoxMap(t){const r=$(this,de);G(this,de,t),this.requestUpdate("eoxMap",r)}disconnectedCallback(){var t;(t=this.eoxMap)==null||t.map.removeLayer(this.drawLayer),super.disconnectedCallback()}render(){var t;return w`
182
256
  <style>
183
257
  :host { display: block; }
184
- ${!this.unstyled&&ro}
185
- ${!this.unstyled&&Ds}
258
+ ${!this.unstyled&&Zo}
186
259
  </style>
187
260
 
261
+ <div class="drawtitle">
262
+ <slot name="drawtitle"
263
+ ><p><strong>Draw</strong></p></slot
264
+ >
265
+ </div>
266
+
188
267
  <!-- Controller Component -->
189
268
  <eox-drawtools-controller
190
- .drawFunc=${{start:()=>this.startDrawing(),discard:()=>this.discardDrawing(),editor:i=>this.handleFeatureChange(i.target.value,!0),import:i=>this.handleFilesChange(i)}}
269
+ .drawFunc=${{start:()=>this.startDrawing(),discard:()=>this.discardDrawing(),editor:r=>this.handleFeatureChange(r.target.value,!0),import:r=>this.handleFilesChange(r)}}
191
270
  ?select=${!!this.layerId}
192
271
  .unstyled=${this.unstyled}
193
272
  .drawnFeatures=${this.drawnFeatures}
@@ -195,20 +274,22 @@
195
274
  .multipleFeatures=${this.multipleFeatures}
196
275
  .importFeatures=${this.importFeatures}
197
276
  .showEditor=${this.showEditor}
198
- .geoJSON=${A(this,It)}
277
+ .geoJSON=${$(this,Ae)}
278
+ .type=${this.type}
199
279
  ></eox-drawtools-controller>
200
280
 
201
281
  <!-- List Component -->
202
- ${this.showList&&((e=this.drawnFeatures)!=null&&e.length)?k`<eox-drawtools-list
282
+ ${this.showList&&((t=this.drawnFeatures)!=null&&t.length)?w`<eox-drawtools-list
203
283
  .eoxDrawTools=${this}
204
284
  .eoxMap=${this.eoxMap}
205
- .olMap=${A(this,dt)}
285
+ .olMap=${$(this,ue)}
206
286
  .draw=${this.draw}
207
287
  .drawLayer=${this.drawLayer}
208
288
  .drawnFeatures=${this.drawnFeatures}
209
289
  .featureName=${this.featureName}
290
+ .featureNameKey=${this.featureNameKey}
210
291
  .modify=${this.modify}
211
292
  .unstyled=${this.unstyled}
212
293
  @changed=${()=>{this.updateGeoJSON(),this.requestUpdate()}}
213
- ></eox-drawtools-list>`:b}
214
- `}}ut=new WeakMap,dt=new WeakMap,It=new WeakMap,ft=new WeakMap,Lt=new WeakMap,customElements.define("eox-drawtools",gn),w.EOxDrawTools=gn,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
294
+ ></eox-drawtools-list>`:_}
295
+ `}}de=new WeakMap,ue=new WeakMap,Ae=new WeakMap,he=new WeakMap,Fe=new WeakMap,customElements.define("eox-drawtools",hi),x.EOxDrawTools=hi,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});