@eox/itemfilter 0.14.0 → 0.14.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-itemfilter.js +8464 -6724
- package/dist/eox-itemfilter.umd.cjs +613 -789
- package/package.json +6 -3
- package/test/cases/general/accordion.js +60 -0
- package/test/cases/general/disable-highlight.js +21 -0
- package/test/cases/general/external-filter.js +38 -0
- package/test/cases/general/highlight-result.js +16 -0
- package/test/cases/general/index.js +10 -0
- package/test/cases/general/multiple-filters.js +21 -0
- package/test/cases/general/search-bar.js +12 -0
- package/test/cases/general/search-result.js +14 -0
- package/test/cases/general/spatial-filter.js +22 -0
- package/test/cases/state/custom-order.js +24 -0
- package/test/cases/state/index.js +6 -0
- package/test/cases/state/render-checkbox.js +17 -0
- package/test/cases/state/result-pre-checked.js +20 -0
- package/test/cases/state/results-with-pre-set-filters.js +30 -0
- package/test/general.cy.js +89 -0
- package/test/state.cy.js +75 -0
- package/test/testItems.json +40 -20
- package/test/general.cy.ts +0 -230
- package/test/state.cy.ts +0 -100
|
@@ -1,62 +1,30 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(ge,he){typeof exports=="object"&&typeof module<"u"?he(exports):typeof define=="function"&&define.amd?define(["exports"],he):(ge=typeof globalThis<"u"?globalThis:ge||self,he(ge["eox-itemfilter"]={}))})(this,function(ge){"use strict";var d1=Object.defineProperty;var Gf=ge=>{throw TypeError(ge)};var g1=(ge,he,Oe)=>he in ge?d1(ge,he,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ge[he]=Oe;var Jn=(ge,he,Oe)=>g1(ge,typeof he!="symbol"?he+"":he,Oe),Ea=(ge,he,Oe)=>he.has(ge)||Gf("Cannot "+Oe);var pt=(ge,he,Oe)=>(Ea(ge,he,"read from private field"),Oe?Oe.call(ge):he.get(ge)),nt=(ge,he,Oe)=>he.has(ge)?Gf("Cannot add the same private member more than once"):he instanceof WeakSet?he.add(ge):he.set(ge,Oe),go=(ge,he,Oe,ln)=>(Ea(ge,he,"write to private field"),ln?ln.call(ge,Oe):he.set(ge,Oe),Oe),Se=(ge,he,Oe)=>(Ea(ge,he,"access private method"),Oe);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var
|
|
5
|
+
*/var qf,Fi,Vf,Be,Kf,Ma,Pa,Yf,Oa,Jf,Zf,Wi,dr,Ca,Xf,Yt,Qf,ep,tp,gr,rp,ka,zi,np,qi,ip,yr,La,op,Ln,Wr,yt,zr,sp,ap;const he=globalThis,Oe=he.ShadowRoot&&(he.ShadyCSS===void 0||he.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ln=Symbol(),Ta=new WeakMap;let lp=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==ln)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Oe&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Ta.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Ta.set(r,e))}return e}toString(){return this.cssText}};const cp=t=>new lp(typeof t=="string"?t:t+"",void 0,ln),up=(t,e)=>{if(Oe)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const n=document.createElement("style"),i=he.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},Ia=Oe?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return cp(r)})(t):t;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:fp,defineProperty:pp,getOwnPropertyDescriptor:hp,getOwnPropertyNames:dp,getOwnPropertySymbols:gp,getPrototypeOf:yp}=Object,Nt=globalThis,Da=Nt.trustedTypes,vp=Da?Da.emptyScript:"",yo=Nt.reactiveElementPolyfillSupport,cn=(t,e)=>t,vo={toAttribute(t,e){switch(e){case Boolean:t=t?vp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Ra=(t,e)=>!fp(t,e),ja={attribute:!0,type:String,converter:vo,reflect:!1,hasChanged:Ra};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Nt.litPropertyMetadata??(Nt.litPropertyMetadata=new WeakMap);class Mr 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,r=ja){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&pp(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){const{get:i,set:o}=hp(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i==null?void 0:i.call(this)},set(s){const c=i==null?void 0:i.call(this);o.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ja}static _$Ei(){if(this.hasOwnProperty(cn("elementProperties")))return;const e=yp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(cn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cn("properties"))){const r=this.properties,n=[...dp(r),...gp(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(Ia(i))}else e!==void 0&&r.push(Ia(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n: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(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return up(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EC(e,r){var o;const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const s=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:vo).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){var o;const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const s=n.getPropertyOptions(i),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:vo;this._$Em=i,this[i]=c.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??(n=this.constructor.getPropertyOptions(e)),!(n.hasChanged??Ra)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,s]of i)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(n=this._$EO)==null||n.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(r)):this._$EU()}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),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(r=>this._$EC(r,this[r]))),this._$EU()}updated(e){}firstUpdated(e){}}Mr.elementStyles=[],Mr.shadowRootOptions={mode:"open"},Mr[cn("elementProperties")]=new Map,Mr[cn("finalized")]=new Map,yo==null||yo({ReactiveElement:Mr}),(Nt.reactiveElementVersions??(Nt.reactiveElementVersions=[])).push("2.0.4");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/const un=globalThis,Zn=un.trustedTypes,Ba=Zn?Zn.createPolicy("lit-html",{createHTML:t=>t}):void 0,mo="$lit$",Ot=`lit$${(Math.random()+"").slice(9)}$`,bo="?"+Ot,mp=`<${bo}>`,tr=document,fn=()=>tr.createComment(""),pn=t=>t===null||typeof t!="object"&&typeof t!="function",Na=Array.isArray,Ha=t=>Na(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",wo=`[
|
|
14
|
+
\f\r]`,hn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ua=/-->/g,Fa=/>/g,rr=RegExp(`>|${wo}(?:([^\\s"'>=/]+)(${wo}*=${wo}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Wa=/'/g,za=/"/g,qa=/^(?:script|style|textarea|title)$/i,bp=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),K=bp(1),Ht=Symbol.for("lit-noChange"),be=Symbol.for("lit-nothing"),Ga=new WeakMap,nr=tr.createTreeWalker(tr,129);function Va(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ba!==void 0?Ba.createHTML(e):e}const Ka=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"<svg>":"",s=hn;for(let c=0;c<r;c++){const l=t[c];let f,h,y=-1,m=0;for(;m<l.length&&(s.lastIndex=m,h=s.exec(l),h!==null);)m=s.lastIndex,s===hn?h[1]==="!--"?s=Ua:h[1]!==void 0?s=Fa:h[2]!==void 0?(qa.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=rr):h[3]!==void 0&&(s=rr):s===rr?h[0]===">"?(s=i??hn,y=-1):h[1]===void 0?y=-2:(y=s.lastIndex-h[2].length,f=h[1],s=h[3]===void 0?rr:h[3]==='"'?za:Wa):s===za||s===Wa?s=rr:s===Ua||s===Fa?s=hn:(s=rr,i=void 0);const b=s===rr&&t[c+1].startsWith("/>")?" ":"";o+=s===hn?l+mp:y>=0?(n.push(f),l.slice(0,y)+mo+l.slice(y)+Ot+b):l+Ot+(y===-2?c:b)}return[Va(t,o+(t[r]||"<?>")+(e===2?"</svg>":"")),n]};class dn{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0;const c=e.length-1,l=this.parts,[f,h]=Ka(e,r);if(this.el=dn.createElement(f,n),nr.currentNode=this.el.content,r===2){const y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(i=nr.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const y of i.getAttributeNames())if(y.endsWith(mo)){const m=h[s++],b=i.getAttribute(y).split(Ot),A=/([.?@])?(.*)/.exec(m);l.push({type:1,index:o,name:A[2],strings:b,ctor:A[1]==="."?Ja:A[1]==="?"?Za:A[1]==="@"?Xa:gn}),i.removeAttribute(y)}else y.startsWith(Ot)&&(l.push({type:6,index:o}),i.removeAttribute(y));if(qa.test(i.tagName)){const y=i.textContent.split(Ot),m=y.length-1;if(m>0){i.textContent=Zn?Zn.emptyScript:"";for(let b=0;b<m;b++)i.append(y[b],fn()),nr.nextNode(),l.push({type:2,index:++o});i.append(y[m],fn())}}}else if(i.nodeType===8)if(i.data===bo)l.push({type:2,index:o});else{let y=-1;for(;(y=i.data.indexOf(Ot,y+1))!==-1;)l.push({type:7,index:o}),y+=Ot.length-1}o++}}static createElement(e,r){const n=tr.createElement("template");return n.innerHTML=e,n}}function ir(t,e,r=t,n){var s,c;if(e===Ht)return e;let i=n!==void 0?(s=r._$Co)==null?void 0:s[n]:r._$Cl;const o=pn(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??(r._$Co=[]))[n]=i:r._$Cl=i),i!==void 0&&(e=ir(t,i._$AS(t,e.values),i,n)),e}class Ya{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:r},parts:n}=this._$AD,i=((e==null?void 0:e.creationScope)??tr).importNode(r,!0);nr.currentNode=i;let o=nr.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let f;l.type===2?f=new Pr(o,o.nextSibling,this,e):l.type===1?f=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(f=new Qa(o,this,e)),this._$AV.push(f),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=nr.nextNode(),s++)}return nr.currentNode=tr,i}p(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}}class Pr{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=be,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ir(this,e,r),pn(e)?e===be||e==null||e===""?(this._$AH!==be&&this._$AR(),this._$AH=be):e!==this._$AH&&e!==Ht&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ha(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==be&&pn(this._$AH)?this._$AA.nextSibling.data=e:this.T(tr.createTextNode(e)),this._$AH=e}$(e){var o;const{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=dn.createElement(Va(n.h,n.h[0]),this.options)),n);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(r);else{const s=new Ya(i,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=Ga.get(e.strings);return r===void 0&&Ga.set(e.strings,r=new dn(e)),r}k(e){Na(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const o of e)i===r.length?r.push(n=new Pr(this.S(fn()),this.S(fn()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}}class gn{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=be,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=be}_$AI(e,r=this,n,i){const o=this.strings;let s=!1;if(o===void 0)e=ir(this,e,r,0),s=!pn(e)||e!==this._$AH&&e!==Ht,s&&(this._$AH=e);else{const c=e;let l,f;for(e=o[0],l=0;l<o.length-1;l++)f=ir(this,c[n+l],r,l),f===Ht&&(f=this._$AH[l]),s||(s=!pn(f)||f!==this._$AH[l]),f===be?e=be:e!==be&&(e+=(f??"")+o[l+1]),this._$AH[l]=f}s&&!i&&this.j(e)}j(e){e===be?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ja extends gn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===be?void 0:e}}class Za extends gn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==be)}}class Xa extends gn{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=ir(this,e,r,0)??be)===Ht)return;const n=this._$AH,i=e===be&&n!==be||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==be&&(n===be||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,e):this._$AH.handleEvent(e)}}class Qa{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ir(this,e)}}const wp={P:mo,A:Ot,C:bo,M:1,L:Ka,R:Ya,D:Ha,V:ir,I:Pr,H:gn,N:Za,U:Xa,B:Ja,F:Qa},$o=un.litHtmlPolyfillSupport;$o==null||$o(dn,Pr),(un.litHtmlVersions??(un.litHtmlVersions=[])).push("3.1.2");const $p=(t,e,r)=>{const n=(r==null?void 0:r.renderBefore)??e;let i=n._$litPart$;if(i===void 0){const o=(r==null?void 0:r.renderBefore)??null;n._$litPart$=i=new Pr(e.insertBefore(fn(),o),o,void 0,r??{})}return i._$AI(t),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/let
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2017 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const ke=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2017 Google LLC
|
|
26
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const bo={attribute:!0,type:String,converter:ar,reflect:!1,hasChanged:Fr},xo=(t=bo,e,r)=>{const{kind:i,metadata:n}=r;let s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),s.set(r.name,t),i==="accessor"){const{name:o}=r;return{set(l){const a=e.get.call(this);e.set.call(this,l),this.requestUpdate(o,a,t)},init(l){return l!==void 0&&this.P(o,void 0,t),l}}}if(i==="setter"){const{name:o}=r;return function(l){const a=this[o];e.call(this,l),this.requestUpdate(o,a,t)}}throw Error("Unsupported decorator location: "+i)};function J(t){return(e,r)=>typeof r=="object"?xo(t,e,r):((i,n,s)=>{const o=n.hasOwnProperty(s);return n.constructor.createProperty(s,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(n,s):void 0})(t,e,r)}/**
|
|
28
|
-
* @license
|
|
29
|
-
* Copyright 2017 Google LLC
|
|
30
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function Ze(t){return J({...t,state:!0,attribute:!1})}/**
|
|
19
|
+
*/let it=class extends Mr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const e=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$p(r,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 Ht}};it._$litElement$=!0,it.finalized=!0,(qf=globalThis.litElementHydrateSupport)==null||qf.call(globalThis,{LitElement:it});const xo=globalThis.litElementPolyfillSupport;xo==null||xo({LitElement:it}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
|
|
32
20
|
* @license
|
|
33
21
|
* Copyright 2021 Google LLC
|
|
34
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/function
|
|
23
|
+
*/function*Xn(t,e){if(t!==void 0){let r=0;for(const n of t)yield e(n,r++)}}/**
|
|
36
24
|
* @license
|
|
37
25
|
* Copyright 2021 Google LLC
|
|
38
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/function
|
|
40
|
-
* @license
|
|
41
|
-
* Copyright 2017 Google LLC
|
|
42
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/const wn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$n=t=>(...e)=>({_$litDirective$:t,values:e});let _n=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};/**
|
|
44
|
-
* @license
|
|
45
|
-
* Copyright 2020 Google LLC
|
|
46
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/const{I:wo}=yo,En=()=>document.createComment(""),Jt=(t,e,r)=>{var s;const i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){const o=i.insertBefore(En(),n),l=i.insertBefore(En(),n);r=new wo(o,l,t,t.options)}else{const o=r._$AB.nextSibling,l=r._$AM,a=l!==t;if(a){let c;(s=r._$AQ)==null||s.call(r,t),r._$AM=t,r._$AP!==void 0&&(c=t._$AU)!==l._$AU&&r._$AP(c)}if(o!==n||a){let c=r._$AA;for(;c!==o;){const f=c.nextSibling;i.insertBefore(c,n),c=f}}}return r},vt=(t,e,r=t)=>(t._$AI(e,r),t),$o={},_o=(t,e=$o)=>t._$AH=e,Eo=t=>t._$AH,Wr=t=>{var i;(i=t._$AP)==null||i.call(t,!1,!0);let e=t._$AA;const r=t._$AB.nextSibling;for(;e!==r;){const n=e.nextSibling;e.remove(),e=n}};/**
|
|
48
|
-
* @license
|
|
49
|
-
* Copyright 2017 Google LLC
|
|
50
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/const Sn=(t,e,r)=>{const i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},An=$n(class extends _n{constructor(t){if(super(t),t.type!==wn.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);const n=[],s=[];let o=0;for(const l of t)n[o]=i?i(l,o):o,s[o]=r(l,o),o++;return{values:s,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){const n=Eo(t),{values:s,keys:o}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=o,s;const l=this.ut??(this.ut=[]),a=[];let c,f,p=0,b=n.length-1,y=0,E=s.length-1;for(;p<=b&&y<=E;)if(n[p]===null)p++;else if(n[b]===null)b--;else if(l[p]===o[y])a[y]=vt(n[p],s[y]),p++,y++;else if(l[b]===o[E])a[E]=vt(n[b],s[E]),b--,E--;else if(l[p]===o[E])a[E]=vt(n[p],s[E]),Jt(t,a[E+1],n[p]),p++,E--;else if(l[b]===o[y])a[y]=vt(n[b],s[y]),Jt(t,n[p],n[b]),b--,y++;else if(c===void 0&&(c=Sn(o,y,E),f=Sn(l,p,b)),c.has(l[p]))if(c.has(l[b])){const O=f.get(o[y]),z=O!==void 0?n[O]:null;if(z===null){const B=Jt(t,n[p]);vt(B,s[y]),a[y]=B}else a[y]=vt(z,s[y]),Jt(t,n[p],z),n[O]=null;y++}else Wr(n[b]),b--;else Wr(n[p]),p++;for(;y<=E;){const O=Jt(t,a[E+1]);vt(O,s[y]),a[y++]=O}for(;p<=b;){const O=n[p++];O!==null&&Wr(O)}return this.ut=o,_o(t,a),lt}});/**
|
|
52
|
-
* @license
|
|
53
|
-
* Copyright 2017 Google LLC
|
|
54
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
-
*/let Xr=class extends _n{constructor(e){if(super(e),this.it=se,e.type!==wn.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===se||e==null)return this._t=void 0,this.it=e;if(e===lt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Xr.directiveName="unsafeHTML",Xr.resultType=1;const Mn=$n(Xr);/**
|
|
56
|
-
* @license
|
|
57
|
-
* Copyright 2020 Google LLC
|
|
58
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
|
-
*/const On=Symbol.for(""),So=t=>{if((t==null?void 0:t.r)===On)return t==null?void 0:t._$litStatic$},Ot=t=>({_$litStatic$:t,r:On}),Pn=new Map,Ao=t=>(e,...r)=>{const i=r.length;let n,s;const o=[],l=[];let a,c=0,f=!1;for(;c<i;){for(a=e[c];c<i&&(s=r[c],(n=So(s))!==void 0);)a+=n+e[++c],f=!0;c!==i&&l.push(s),o.push(a),c++}if(c===i&&o.push(e[i]),f){const p=o.join("$$lit$$");(e=Pn.get(p))===void 0&&(o.raw=o,Pn.set(p,e=o)),r=l}return t(e,...r)},ur=Ao(U);(()=>{var t=Object.defineProperty,e=Math.pow,r=(u,d,x)=>d in u?t(u,d,{enumerable:!0,configurable:!0,writable:!0,value:x}):u[d]=x,i=(u,d,x)=>(r(u,typeof d!="symbol"?d+"":d,x),x),n=(u,d)=>` ${d&&d.length>0?d.map(x=>`<link rel="stylesheet" href="${x}" />`).join(""):""} <style> ${u} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`,s=":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}",o="pointers-overlap",l="pointers-min-distance",a="pointers-max-distance",c="range-dragging",f="data",p="min",b="max",y="step",E="round",O="type",z="theme",B="rtl",g="btt",m="disabled",w="keyboard-disabled",S="mousewheel-disabled",_="slider-width",A="slider-height",k="slider-radius",F="slider-bg",H="slider-bg-hover",I="slider-bg-fill",te="pointer-width",le="pointer-height",P="pointer-radius",L="pointer-bg",M="pointer-bg-hover",j="pointer-bg-focus",C="pointer-shadow",G="pointer-shadow-hover",Y="pointer-shadow-focus",oe="pointer-border",re="pointer-border-hover",ye="pointer-border-focus",ve="animate-onclick",Me="css-links",xe="vertical",Oe="horizontal",nt=(u,d,x,v,R)=>{let W=d-u;return W===0?x:(v-x)*(R-u)/W+x},Ee=u=>!isNaN(parseFloat(u))&&isFinite(u),ie=(u,d)=>Ee(u)?Number(u):d,qe=(u,d)=>d===0?0:Math.round(u/d)*d,_t=(u,d=1/0)=>{if(d===1/0)return u;let x=e(10,d);return Math.round(u*x)/x},fe=u=>u==null?!1:typeof u=="boolean"?u:u.trim().toLowerCase()==="true",kc=(u,d)=>{u.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:d}}))},Rc=(u,d)=>{u.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:d}}))},Tc=(u,d)=>{u.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:d}}))},Ic=(u,d)=>{u.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:d}}))},Dc=(u,d)=>{if(!d||d.length<=0)return;let x=d.map(R=>Ee(R)?ie(R,R):R),v={values:x||[]};v.value=x[0],v.value0=x[0],v.value1=x[0];for(let R=1;R<x.length;R++)v[`value${R+1}`]=x[R];u.dispatchEvent(new CustomEvent("change",{detail:v}))},Oi=(u,d,x)=>{let v=0,R,W,Z,T,D=!1,Q=(V,he,we,be,pe,ge)=>{let Pe=v;we!==void 0&&V>we&&(V=we),he!==void 0&&V<he&&(V=he),v=V;let Le=v;return(be===xe&&ge||be===Oe&&pe)&&(Le=100-Le),be===xe?d.style.top=`${Le}%`:d.style.left=`${Le}%`,Pe!==v},ne=V=>V===d||d.contains(V),q=(V,he,we,be)=>{R=V,W=he,Z=we,T=be},ce=V=>{D=V,d.classList.toggle("disabled",D),D?d.setAttribute("aria-disabled","true"):d.hasAttribute("aria-disabled")&&d.removeAttribute("aria-disabled")},Ne=(V,he)=>{he==null?d.removeAttribute(V):d.setAttribute(V,he)},Ae=V=>d.getAttribute(V),X=V=>{if(!D){switch(V.key){case"ArrowLeft":{V.preventDefault(),typeof R=="function"&&R(x);break}case"ArrowRight":{V.preventDefault(),typeof W=="function"&&W(x);break}case"ArrowUp":{V.preventDefault(),typeof Z=="function"&&Z(x);break}case"ArrowDown":{V.preventDefault(),typeof T=="function"&&T(x);break}}Ic(u,V)}},ee=()=>{D||kc(u,d)};return d.className=`pointer pointer-${x}`,d.addEventListener("keydown",X),d.addEventListener("click",ee),{$pointer:d,get percent(){return v},get disabled(){return D},set disabled(V){ce(V)},updatePosition:Q,isClicked:ne,setCallbacks:q,setAttr:Ne,getAttr:Ae,destroy:()=>{d.removeEventListener("keydown",X),d.removeEventListener("click",ee),d.remove()}}},jc=u=>{if(u==null)return;if(Array.isArray(u))return u;if(u.trim()==="")return;let d=u.split(","),x=[],v=!0;for(let R=0;R<d.length;R++){let W=d[R].trim();W!==""&&(x.push(W),Ee(W)||(v=!1))}return v?x.map(R=>Number(R)):x},Nc=(u,d)=>d?d.findIndex(x=>x===u||x.toString().trim()===u.toString().trim()):-1,Bc=u=>({updatePosition:(d,x,v,R)=>{if(x.length<=0)return;let W=x.length===1,Z=x[0],T=x[x.length-1];d===xe?(u.style.removeProperty("width"),u.style.removeProperty("right"),u.style.removeProperty("left"),W?u.style.height=`${Z}%`:u.style.height=`${Math.abs(Z-T)}%`,R?(u.style.bottom="0%",W?u.style.top="auto":u.style.top=`${Math.min(100-T,100-Z)}%`):(u.style.bottom="auto",W?u.style.top="0%":u.style.top=`${Math.min(Z,T)}%`)):(u.style.removeProperty("height"),u.style.removeProperty("top"),u.style.removeProperty("bottom"),W?u.style.width=`${Z}%`:u.style.width=`${Math.abs(Z-T)}%`,v?(u.style.right="0%",W?u.style.left="auto":u.style.left=`${Math.min(100-T,100-Z)}%`):(u.style.right="auto",W?u.style.left="0%":u.style.left=`${Math.min(Z,T)}%`))}}),Ts="--animate-onclick",Fc="--width",Hc="--height",qc="--panel-bg-border-radius",Uc="--panel-bg",zc="--panel-bg-hover",Yc="--panel-bg-fill",Wc="--pointer-width",Xc="--pointer-height",Vc="--pointer-border-radius",Kc="--pointer-bg",Gc="--pointer-bg-hover",Jc="--pointer-bg-focus",Zc="--pointer-shadow",Qc="--pointer-shadow-hover",eu="--pointer-shadow-focus",tu="--pointer-border",ru="--pointer-border-hover",iu="--pointer-border-focus",Ar=(u,d,x)=>{let v=new Map;for(let R of u.attributes){let W=R.nodeName.trim().toLowerCase();if(!d.test(W))continue;let Z=W.replace(/\D/g,"").trim(),T=Z===""||Z==="0"||Z==="1"?0:ie(Z,0)-1,D=x&&typeof x=="function"?x(R.value):R.value;v.set(T,D)}return v},nu=u=>{if(!u)return null;let d=u.getAttribute(Me);if(!d)return null;let x=d.split(";"),v=[];for(let R of x)R.trim()!==""&&v.push(R.trim());return v},Is=[[Fc,_,"sliderWidth",null],[Hc,A,"sliderHeight",null],[qc,k,"sliderRadius",null],[Uc,F,"sliderBg",null],[zc,H,"sliderBgHover",null],[Yc,I,"sliderBgFill",null],[Wc,te,"pointer#Width",/^pointer([0-9]*)-width$/],[Xc,le,"pointer#Height",/^pointer([0-9]*)-height$/],[Vc,P,"pointer#Radius",/^pointer([0-9]*)-radius$/],[Kc,L,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Gc,M,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[Jc,j,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[Zc,C,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[Qc,G,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[eu,Y,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[tu,oe,"pointer#Border",/^pointer([0-9]*)-border$/],[ru,re,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[iu,ye,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],su=(u,d,x)=>{let v=null,R=[],W=new Map,Z=(X,ee=d)=>{let V=[...ee.classList];for(let he of V)he.startsWith(X)&&d.classList.remove(he)},T=()=>{Z("shape");let X=d.querySelectorAll(".pointer");for(let ee of X)Z("shape",ee)},D=X=>{v=X,Z("theme-"),typeof X=="string"&&d.classList.add(`theme-${X}`)},Q=()=>{if(T(),!(R.length<=0)){d.classList.add("shape",`shape-${R[0]}`);for(let X=1;X<R.length;X++){let ee=R[X];if(!ee)continue;let V=d.querySelector(`.pointer-${X}`);!V||V.classList.add("shape",`shape-${ee}`)}}},ne=(X,ee)=>{R[X]=ee,Q()},q=()=>{T();let X=Ar(u,/^pointer([0-9]*)-shape$/);if(!(X.size<=0)){for(let ee of X){let V=ee[0];R[V]=ee[1]}Q()}},ce=(X,ee)=>`${X}-${ee}`,Ne=(X,ee,V)=>{let he=x[V];if(!he)return;let we=V===0?d:he.$pointer;if(ee==null){W.has(ce(X,V))&&W.delete(ce(X,V)),we.style.removeProperty(X);return}W.set(ce(X,V),ee),we.style.setProperty(X,ee)},Ae=(X,ee)=>W.get(ce(X,ee));return(()=>{for(let X of Is){let[ee,V,he,we]=X;if(we){let pe=Ar(u,we);for(let ge of pe){let Pe=ge[0],Le=ge[1];Ne(ee,Le,Pe)}}else{let pe=u.getAttribute(V);Ne(ee,pe,0)}let be=[];if(he.indexOf("#")===-1)be.push([he,0]);else{be.push([he.replace("#",""),0]),be.push([he.replace("#","0"),0]),be.push([he.replace("#","1"),0]);for(let pe=1;pe<x.length;pe++)be.push([he.replace("#",(pe+1).toString()),pe])}for(let pe of be)try{let ge=pe[0],Pe=pe[1];Object.prototype.hasOwnProperty.call(u,ge)||Object.defineProperty(u,ge,{get(){return Ae(ee,Pe)},set:Le=>{Ne(ee,Le,Pe)}})}catch(ge){console.error(ge)}}D(u.getAttribute(z)),q()})(),{setStyle:Ne,getStyle:Ae,get theme(){return v},set theme(X){D(X)},get pointerShapes(){return R},setPointerShape:ne}},Ft="animate-on-click",Ds="range-dragging",ou=(u,d,x,v)=>{let R=[],W=ne=>{for(let q of R)q.update&&typeof q.update=="function"&&q.update(ne)},Z=()=>{for(let ne of R)ne.destroy&&typeof ne.destroy=="function"&&ne.destroy()},T=(ne,q)=>{for(let ce of R)ce.onAttrChange&&typeof ce.onAttrChange=="function"&&ce.onAttrChange(ne,q)},D=ne=>{if(ne.gettersAndSetters){for(let q of ne.gettersAndSetters)if(!(!q.name||!q.attributes))try{Object.prototype.hasOwnProperty.call(u,q.name)||Object.defineProperty(u,q.name,q.attributes)}catch(ce){console.error("defineSettersGetters error:",ce)}}},Q=ne=>{var q;if(!ne.css)return;let ce=(q=u.shadowRoot)==null?void 0:q.querySelector("style");!ce||(ce.innerHTML+=ne.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let ne of window.tcRangeSliderPlugins){let q=ne();R.push(q),q.init&&typeof q.init=="function"&&(q.init(u,d,x,v),D(q),Q(q))}},update:W,onAttrChange:T,destroy:Z}},lu=10,js=20,au=(u,d)=>{let x=new Map,v=/^value([0-9]*)$/;for(let T of u.attributes){let D=T.nodeName.trim().toLowerCase();if(!v.test(D))continue;let Q=D.replace("value","").trim(),ne=Q===""||Q==="0"||Q==="1"?0:ie(Q,0)-1,q=Ee(T.value)?ie(T.value,0):T.value;x.set(ne,q)}let R=Math.max(...Array.from(x.keys())),W=[];W.push([Oi(u,d,0),x.get(0)]);let Z=d;for(let T=1;T<=R;T++){let D=d.cloneNode(!0);Z.after(D),Z=D,W.push([Oi(u,D,T),x.get(T)])}return W},Ns=(u,d,x,v,R,W,Z)=>{try{Object.defineProperty(u,v,{configurable:!0,get(){if(!d)return;let T=d.pointers[x];if(!T)return;let D=d.getTextValue(T.percent);return Ee(D)?ie(D,D):D},set:T=>{d.pointers[x]?d==null||d.setValue(T,x):d==null||d.addPointer(T)}}),Object.defineProperty(u,R,{configurable:!0,get(){var T,D;return(D=(T=d==null?void 0:d.pointers[x])==null?void 0:T.getAttr("aria-label"))!=null?D:void 0},set:T=>{!d||d.setAriaLabel(x,T)}}),Object.defineProperty(u,W,{configurable:!0,get(){var T,D;return(D=(T=d==null?void 0:d.styles)==null?void 0:T.pointerShapes[x])!=null?D:null},set:T=>{!d||!d.styles||d.styles.setPointerShape(x,T)}}),Object.defineProperty(u,Z,{configurable:!0,get(){var T;return(T=d==null?void 0:d.pointers[x].disabled)!=null?T:!1},set:T=>{if(!d)return;let D=d==null?void 0:d.pointers[x];!D||(D.disabled=T)}})}catch(T){console.error(T)}},cu=(u,d)=>{let x=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let v=2;v<lu;v++)x.push([`value${v}`,`ariaLabel${v}`,`pointer${v}Shape`,`pointer${v}Disabled`,v-1]);for(let v of x)Ns(u,d,v[4],v[0],v[1],v[2],v[3])},Bs=(u,d,x)=>{var v;let R=(v=x.shadowRoot)==null?void 0:v.querySelector(".container");if(R)for(let W of u)d?R.prepend(W.$pointer):R.append(W.$pointer)},uu=(u,d)=>{if(!(!d||u.length<=1)){for(let x of u)x.$pointer.style.zIndex=js.toString();d.$pointer.style.zIndex=(js*2).toString()}},Pi=0,sr=100,Ht=2,Fs="0.3s",hu=(u,d,x)=>{let v=x.map(h=>h[0]),R=null,W=null,Z=null,T=null,D=Pi,Q=sr,ne,q,ce=Oe,Ne=Ht,Ae=!1,X=!1,ee=!1,V=0,he=1/0,we=!1,be,pe,ge=!1,Pe=!1,Le=!1,ft=Fs,Hs=[],qs=h=>{ge||(h.preventDefault&&h.preventDefault(),Et(h),window.addEventListener("mousemove",Et),window.addEventListener("mouseup",Mr),Rc(u,h))},Mr=h=>{ge||(be=void 0,pe=void 0,window.removeEventListener("mousemove",Et),window.removeEventListener("mouseup",Mr),ft&&d.classList.add(Ft),Tc(u,h))},pu=(h,$)=>{if(v.length<=0)return;if(v.length===1)return v[0].isClicked(h)&&ft&&d.classList.remove(Ft),v[0];let N=mu(h);if(we){let ae=$,Ue=Pr(ae);Ue!==void 0&&(ae=qe(ae,Ue)),N?(be=ae,pe=0,ft&&d.classList.remove(Ft)):be!==void 0&&(pe=ae-be,be=ae)}if(!gu(h)&&!N){for(let ae of v)if(!(!ae.isClicked(h)||ae.disabled))return ft&&d.classList.remove(Ft),ae;for(let ae of v)if(R===ae)return ae}let ue=1/0,me=null;for(let ae of v){if(ae.disabled)continue;let Ue=Math.abs($-ae.percent);Ue<ue&&(ue=Ue,me=ae)}return me},Us=()=>v.findIndex(h=>R===h&&!h.disabled),Et=h=>{let $;if(ce===xe){let{height:ue,top:me}=d.getBoundingClientRect(),ae=h.type.indexOf("mouse")!==-1?h.clientY:h.touches[0].clientY;$=Math.min(Math.max(0,ae-me),ue)*100/ue}else{let{width:ue,left:me}=d.getBoundingClientRect(),ae=h.type.indexOf("mouse")!==-1?h.clientX:h.touches[0].clientX;$=Math.min(Math.max(0,ae-me),ue)*100/ue}if((Ae||X)&&($=100-$),R=pu(h.target,$),R&&uu(v,R),we&&v.length>1&&pe!==void 0){let ue=v[0],me=v[v.length-1],ae=ue.percent+pe<0,Ue=me.percent+pe>100;if(ae||Ue)return;for(let jr=0;jr<v.length;jr++)Ce(jr,v[jr].percent+pe);return}let N=Us();N!==-1&&(Ce(N,$),R==null||R.$pointer.focus())},Or=h=>{if(ge||document.activeElement!==u||R!=null&&R.disabled)return;h.stopPropagation(),h.preventDefault();let $=h.deltaY<0,N=Ae||X,ue=$?!N:N,me=Us();me!==-1&&(ue?or(me,v[me].percent):lr(me,v[me].percent))},zs=h=>{ge||Pe||(ce===xe?X?Ce(h,100):Ce(h,0):Ae?lr(h,v[h].percent):or(h,v[h].percent))},Ys=h=>{ge||Pe||(ce===xe?X?Ce(h,0):Ce(h,100):Ae?or(h,v[h].percent):lr(h,v[h].percent))},Ws=h=>{ge||Pe||(ce===xe?X?lr(h,v[h].percent):or(h,v[h].percent):Ae?Ce(h,100):Ce(h,0))},Xs=h=>{ge||Pe||(ce===xe?X?or(h,v[h].percent):lr(h,v[h].percent):Ae?Ce(h,0):Ce(h,100))},gu=h=>h.classList.contains("panel"),mu=h=>h.classList.contains("panel-fill"),or=(h,$)=>{if($===void 0)return;let N=Pr($);N==null&&(N=1),$-=N,$<0&&($=0),Ce(h,$)},lr=(h,$)=>{if($===void 0)return;let N=Pr($);N==null&&(N=1),$+=N,$>100&&($=100),Ce(h,$)},St=()=>{!T||T.update({percents:Vs(),values:Ks(),$pointers:Gs(),min:Js(),max:Zs(),data:ki(),step:Ci(),round:Ti(),type:Ri(),textMin:Lr(),textMax:Cr(),rightToLeft:ji(),bottomToTop:Ni(),pointersOverlap:qi(),pointersMinDistance:Ii(),pointersMaxDistance:Di(),rangeDragging:Ui(),disabled:Bi(),keyboardDisabled:Fi(),mousewheelDisabled:Hi()})},yu=()=>{St()},vu=h=>{if(!(ee||v.length<=1||Q===D))if(h===0){let $=he*100/(Q-D);return Math.max(0,v[h+1].percent-$)}else{let $=V*100/(Q-D);return Math.min(v[h-1].percent+$,100)}},bu=h=>{if(!(ee||v.length<=1||Q===D))if(h===v.length-1){let $=he*100/(Q-D);return Math.min(v[h-1].percent+$,100)}else{let $=V*100/(Q-D);return Math.max(0,v[h+1].percent-$)}},Pr=h=>{let $;if(typeof ne=="function"){let N=nt(0,100,D,Q,h);$=ne(N,h)}else $=ne;if(Ee($)){let N=Q-D;return $=N===0?0:$*100/N,$}},qt=h=>{if(h===void 0)return;let $=nt(0,100,D,Q,h);return q!==void 0?q[Math.round($)]:_t($,Ne)},Lr=()=>q!==void 0?q[D]:D,Cr=()=>q!==void 0?q[Q]:Q,Ci=()=>ne,xu=h=>{var $;return h<=0||ee?Lr():($=qt(v[h-1].percent))!=null?$:""},wu=h=>{var $;return v.length<=1||h>=v.length-1||ee?Cr():($=qt(v[h+1].percent))!=null?$:""},Vs=()=>v.map(h=>h.percent),Ks=()=>v.map(h=>qt(h.percent)),Gs=()=>v.map(h=>h.$pointer),Js=()=>D,Zs=()=>Q,ki=()=>q,Ri=()=>ce,Ti=()=>Ne,Ii=()=>V,Di=()=>he,$u=h=>Hs[h],ji=()=>Ae,Ni=()=>X,Bi=()=>ge,Fi=()=>Pe,Hi=()=>Le,qi=()=>ee,Ui=()=>we,Ce=(h,$)=>{if($===void 0)return;let N=Pr($);N!==void 0&&($=qe($,N));let ue=v[h];if(!ue)return;let me=ue.updatePosition($,vu(h),bu(h),ce,Ae,X);W==null||W.updatePosition(ce,v.map(ae=>ae.percent),Ae,X),St();for(let ae of v){let Ue=qt(ae.percent);Ue!==void 0&&(ae.setAttr("aria-valuenow",Ue.toString()),ae.setAttr("aria-valuetext",Ue.toString()))}Eu(),me&&Dc(u,v.map(ae=>qt(ae.percent)))},Ge=()=>{for(let h=0;h<v.length;h++)Ce(h,v[h].percent)},_u=(h,$)=>{D=q!==void 0?0:ie(h,Pi),Q=q!==void 0?q.length-1:ie($,sr),kr(D),Rr(Q)},Eu=()=>{var h,$;for(let N=0;N<v.length;N++){let ue=v[N];ue.setAttr("aria-valuemin",((h=xu(N))!=null?h:"").toString()),ue.setAttr("aria-valuemax",(($=wu(N))!=null?$:"").toString())}},kr=h=>{D=ie(h,Pi),D>Q&&(Q=D+sr),Ge()},Rr=h=>{Q=ie(h,sr),Q<D&&(Q=D+sr),Ge()},Qs=h=>{ee=!0;for(let $=0;$<h.length;$++)Tr(h[$],$);ee=!1;for(let $=0;$<h.length;$++)Tr(h[$],$)},Tr=(h,$)=>{let N;q!==void 0?(N=h==null?0:Nc(h,q),N===-1&&(N=0)):(N=ie(h,D),N<D&&(N=D),N>Q&&(N=Q));let ue=nt(D,Q,0,100,N);Ce($,ue)},Ir=h=>{if(h==null){ne=void 0;return}if(typeof h=="function"){ne=h,Ge();return}if(Ee(h)){ne=ie(h,1);let $=Math.abs(Q-D);ne>$&&(ne=void 0),Ge();return}ne=void 0},zi=h=>{ee=h,Ge()},Yi=h=>{(!Ee(h)||h<0)&&(h=0),V=h},Wi=h=>{(!Ee(h)||h<0)&&(h=1/0),he=h},Xi=h=>{ge=h,d.classList.toggle("disabled",ge),ge?d.setAttribute("aria-disabled","true"):d.hasAttribute("aria-disabled")&&d.removeAttribute("aria-disabled")},eo=h=>{Pe=h},to=h=>{Le=h,Le?document.removeEventListener("wheel",Or):document.addEventListener("wheel",Or,{passive:!1})},Vi=h=>{if(h==null){q=void 0;return}if(q=jc(h),q===void 0||q.length<=0){q=void 0;return}kr(0),Rr(q.length-1),ne===void 0&&Ir(1)},Ki=h=>{var $;typeof h=="string"?ce=h.trim().toLowerCase()===xe?xe:Oe:ce=Oe;let N=($=u.shadowRoot)==null?void 0:$.querySelector(".range-slider-box");if(!N)return;N.className=`range-slider-box type-${ce}`,Ge();let ue=ce===xe?"vertical":"horizontal";for(let me of v)me.setAttr("aria-orientation",ue)},Gi=h=>{Ae=h,v.length>1&&Bs(v,Ae,u),Ge(),St()},Ji=h=>{X=h,v.length>1&&Bs(v,X,u),Ge(),St()},Zi=h=>{Ne=ie(h,Ht),Ne<0&&(Ne=Ht),St()},ro=h=>{h==null||h.toString().trim().toLowerCase()==="false"?(ft=void 0,d.style.removeProperty(Ts),d.classList.remove(Ft)):(ft=h.toString(),d.style.setProperty(Ts,ft),d.classList.add(Ft))},io=(h,$)=>{let N=v[h];!N||(N.setAttr("aria-label",$),Hs[h]=$)},Dr=h=>{if(be=void 0,v.length<=1){we=!1,d.classList.remove(Ds);return}we=h,d.classList.toggle(Ds,we)},Su=()=>{Xi(fe(u.getAttribute(m))),Pe=fe(u.getAttribute(w)),Le=fe(u.getAttribute(S));let h=Ar(u,/^pointer([0-9]*)-disabled$/,$=>fe($));for(let $ of h){let N=$[0];!v[N]||(v[N].disabled=$[1])}},Au=()=>{let h=Ar(u,/^aria-label([0-9]*)$/);for(let $ of h){let N=$[0];io(N,$[1])}},Mu=h=>{let $=v.length,N=v[$-1].$pointer,ue=N.cloneNode(!0);N.after(ue);let me=Oi(u,ue,$);return me.setCallbacks(zs,Ys,Ws,Xs),v.push(me),Tr(h,$),Ge(),St(),$},Ou=()=>{let h=v.length,$=v[h-1];return $?($.destroy(),v.pop(),v.length<=1&&Dr(!1),Ge(),St(),h-1):-1};return(()=>{var h,$;for(let ue of v)ue.setCallbacks(zs,Ys,Ws,Xs);let N=(h=u.shadowRoot)==null?void 0:h.querySelector(".panel-fill");N&&(W=Bc(N)),Ki(u.getAttribute(O)),Gi(fe(u.getAttribute(B))),Ji(fe(u.getAttribute(g))),_u(u.getAttribute(p),u.getAttribute(b)),Ir(u.getAttribute(y)),Vi(u.getAttribute(f)),Qs(x.map(ue=>ue[1])),zi(fe(u.getAttribute(o))),Yi(ie(u.getAttribute(l),0)),Wi(ie(u.getAttribute(a),1/0)),Dr(fe(u.getAttribute(c))),Zi(ie(u.getAttribute(E),Ht)),Su(),Au(),Z=su(u,d,v),ro(($=u.getAttribute(ve))!=null?$:Fs),d.addEventListener("mousedown",qs),d.addEventListener("mouseup",Mr),d.addEventListener("touchmove",Et),d.addEventListener("touchstart",Et),Le||document.addEventListener("wheel",Or,{passive:!1}),T=ou(u,yu,{setValues:Qs,setMin:kr,setMax:Rr,setStep:Ir,setPointersOverlap:zi,setPointersMinDistance:Yi,setPointersMaxDistance:Wi,setDisabled:Xi,setType:Ki,setRightToLeft:Gi,setBottomToTop:Ji,setRound:Zi,setKeyboardDisabled:eo,setMousewheelDisabled:to,setRangeDragging:Dr,setData:Vi},{getPercents:Vs,getValues:Ks,getPointerElements:Gs,getMin:Js,getMax:Zs,getStep:Ci,getData:ki,getType:Ri,getRound:Ti,getTextMin:Lr,getTextMax:Cr,isRightToLeft:ji,isBottomToTop:Ni,isDisabled:Bi,isKeyboardDisabled:Fi,isMousewheelDisabled:Hi,isPointersOverlap:qi,isRangeDraggingEnabled:Ui,getPointersMinDistance:Ii,getPointersMaxDistance:Di}),T.init()})(),{get pointers(){return v},get styles(){return Z},get pluginsManager(){return T},get min(){return Lr()},get max(){return Cr()},get step(){return Ci()},get pointersOverlap(){return qi()},set pointersOverlap(h){zi(h)},get pointersMinDistance(){return Ii()},set pointersMinDistance(h){Yi(h)},get pointersMaxDistance(){return Di()},set pointersMaxDistance(h){Wi(h)},get disabled(){return Bi()},set disabled(h){Xi(h)},get data(){return ki()},get type(){return Ri()},set type(h){Ki(h)},get rightToLeft(){return ji()},set rightToLeft(h){Gi(h)},get bottomToTop(){return Ni()},set bottomToTop(h){Ji(h)},get round(){return Ti()},set round(h){Zi(h)},get animateOnClick(){return ft},set animateOnClick(h){ro(h)},get keyboardDisabled(){return Fi()},set keyboardDisabled(h){eo(h)},get mousewheelDisabled(){return Hi()},set mousewheelDisabled(h){to(h)},get rangeDragging(){return Ui()},set rangeDragging(h){Dr(h)},setMin:kr,setMax:Rr,setValue:Tr,setStep:Ir,setData:Vi,getTextValue:qt,setAriaLabel:io,getAriaLabel:$u,addPointer:Mu,removePointer:Ou,destroy:()=>{d.removeEventListener("mousedown",qs),d.removeEventListener("mouseup",Mr),d.removeEventListener("touchmove",Et),d.removeEventListener("touchstart",Et),document.removeEventListener("wheel",Or);for(let h of v)h.destroy();T==null||T.destroy()}}},du=(u,d,x)=>{let v=Is.find(([T,D,Q,ne])=>D.replace("#","")===d.replace(/\d+/g,""));if(v&&u.styles){let[T,D,Q,ne]=v,q=d.replace(/\D/g,"").trim(),ce=q===""||q==="0"||q==="1"?0:ie(q,0)-1;u.styles.setStyle(T,x,ce);return}switch(u&&u.pluginsManager&&u.pluginsManager.onAttrChange(d,x),d){case p:{u.setMin(x);break}case b:{u.setMax(x);break}case y:{u.setStep(x);break}case o:{u.pointersOverlap=fe(x);break}case l:{u.pointersMinDistance=ie(x,0);break}case c:{u.rangeDragging=fe(x);break}case a:{u.pointersMaxDistance=ie(x,1/0);break}case m:{u.disabled=fe(x);break}case w:{u.keyboardDisabled=fe(x);break}case S:{u.mousewheelDisabled=fe(x);break}case f:{u.setData(x);break}case O:{u.type=x;break}case B:{u.rightToLeft=fe(x);break}case g:{u.bottomToTop=fe(x);break}case E:{u.round=ie(x,Ht);break}case z:{u.styles&&(u.styles.theme=x);break}case ve:{u.animateOnClick=x;break}}let R=null;if(/^value([0-9]*)$/.test(d)&&(R="value"),/^pointer([0-9]*)-disabled$/.test(d)&&(R="pointer-disabled"),/^aria-label([0-9]*)$/.test(d)&&(R="aria-label"),/^pointer([0-9]*)-shape$/.test(d)&&(R="pointer-shape"),!R)return;let W=d.replace(/\D/g,"").trim(),Z=W===""||W==="0"||W==="1"?0:ie(W,0)-1;switch(R){case"value":{u.setValue(x,Z);break}case"pointer-disabled":{let T=u==null?void 0:u.pointers[Z];if(!T)return;T.disabled=fe(x);break}case"aria-label":{u.setAriaLabel(Z,x);break}case"pointer-shape":{u.styles&&u.styles.setPointerShape(Z,x);break}}},fu=class extends HTMLElement{constructor(){super(),i(this,"slider"),i(this,"_externalCSSList",[]),i(this,"_observer",null),this.attachShadow({mode:"open"})}set step(u){this.slider&&this.slider.setStep(u)}get step(){var u;return(u=this.slider)==null?void 0:u.step}set disabled(u){this.slider&&(this.slider.disabled=u)}get disabled(){var u,d;return(d=(u=this.slider)==null?void 0:u.disabled)!=null?d:!1}set data(u){var d;(d=this.slider)==null||d.setData(u)}get data(){var u;return(u=this.slider)==null?void 0:u.data}set min(u){var d;(d=this.slider)==null||d.setMin(u)}get min(){var u;return(u=this.slider)==null?void 0:u.min}set max(u){var d;(d=this.slider)==null||d.setMax(u)}get max(){var u;return(u=this.slider)==null?void 0:u.max}set round(u){!this.slider||(this.slider.round=u)}get round(){var u,d;return(d=(u=this.slider)==null?void 0:u.round)!=null?d:Ht}set type(u){!this.slider||(this.slider.type=u??Oe)}get type(){var u;return((u=this.slider)==null?void 0:u.type)||Oe}set pointersOverlap(u){!this.slider||(this.slider.pointersOverlap=u)}get pointersOverlap(){var u,d;return(d=(u=this.slider)==null?void 0:u.pointersOverlap)!=null?d:!1}set pointersMinDistance(u){!this.slider||(this.slider.pointersMinDistance=u)}get pointersMinDistance(){var u,d;return(d=(u=this.slider)==null?void 0:u.pointersMinDistance)!=null?d:0}set pointersMaxDistance(u){!this.slider||(this.slider.pointersMaxDistance=u)}get pointersMaxDistance(){var u,d;return(d=(u=this.slider)==null?void 0:u.pointersMaxDistance)!=null?d:1/0}set theme(u){!this.slider||!this.slider.styles||(this.slider.styles.theme=u)}get theme(){var u,d,x;return(x=(d=(u=this.slider)==null?void 0:u.styles)==null?void 0:d.theme)!=null?x:null}set rtl(u){!this.slider||(this.slider.rightToLeft=u)}get rtl(){var u,d;return(d=(u=this.slider)==null?void 0:u.rightToLeft)!=null?d:!1}set btt(u){!this.slider||(this.slider.bottomToTop=u)}get btt(){var u,d;return(d=(u=this.slider)==null?void 0:u.bottomToTop)!=null?d:!1}set keyboardDisabled(u){!this.slider||(this.slider.keyboardDisabled=u)}get keyboardDisabled(){var u,d;return(d=(u=this.slider)==null?void 0:u.keyboardDisabled)!=null?d:!1}set mousewheelDisabled(u){!this.slider||(this.slider.mousewheelDisabled=u)}get mousewheelDisabled(){var u,d;return(d=(u=this.slider)==null?void 0:u.mousewheelDisabled)!=null?d:!1}set animateOnClick(u){!this.slider||(this.slider.animateOnClick=u)}get animateOnClick(){var u;return(u=this.slider)==null?void 0:u.animateOnClick}get rangeDragging(){var u,d;return(d=(u=this.slider)==null?void 0:u.rangeDragging)!=null?d:!1}set rangeDragging(u){this.slider&&(this.slider.rangeDragging=fe(u))}get externalCSSList(){return this._externalCSSList}addPointer(u){var d,x;if(!this.slider)return;let v=(x=(d=this.slider)==null?void 0:d.addPointer(u))!=null?x:0;Ns(this,this.slider,v,`value${v+1}`,`ariaLabel${v+1}`,`pointerShape${v+1}`,`pointer${v+1}Disabled`)}removePointer(){var u;!this.slider||(u=this.slider)==null||u.removePointer()}addCSS(u){if(!this.shadowRoot)return;let d=document.createElement("style");d.textContent=u,this.shadowRoot.appendChild(d)}connectedCallback(){var u,d;if(!this.shadowRoot)return;this._externalCSSList=nu(this),this.shadowRoot.innerHTML=n(s,this._externalCSSList);let x=(u=this.shadowRoot)==null?void 0:u.querySelector(".pointer");if(!x)return;let v=(d=this.shadowRoot)==null?void 0:d.getElementById("range-slider");if(!v)return;let R=au(this,x);this.slider=hu(this,v,R),cu(this,this.slider),this._observer=new MutationObserver(W=>{W.forEach(Z=>{var T;if(!this.slider||Z.type!=="attributes")return;let D=Z.attributeName;!D||du(this.slider,D,(T=this.getAttribute(D))!=null?T:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},Li=fu;window.tcRangeSlider=Li,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",Li),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends Li{})})();var Pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Kr(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}),r}var Ln={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(Pt,function(){var r=1e3,i=6e4,n=36e5,s="millisecond",o="second",l="minute",a="hour",c="day",f="week",p="month",b="quarter",y="year",E="date",O="Invalid Date",z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var L=["th","st","nd","rd"],M=P%100;return"["+P+(L[(M-20)%10]||L[M]||L[0])+"]"}},m=function(P,L,M){var j=String(P);return!j||j.length>=L?P:""+Array(L+1-j.length).join(M)+P},w={s:m,z:function(P){var L=-P.utcOffset(),M=Math.abs(L),j=Math.floor(M/60),C=M%60;return(L<=0?"+":"-")+m(j,2,"0")+":"+m(C,2,"0")},m:function P(L,M){if(L.date()<M.date())return-P(M,L);var j=12*(M.year()-L.year())+(M.month()-L.month()),C=L.clone().add(j,p),G=M-C<0,Y=L.clone().add(j+(G?-1:1),p);return+(-(j+(M-C)/(G?C-Y:Y-C))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:p,y,w:f,d:c,D:E,h:a,m:l,s:o,ms:s,Q:b}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},S="en",_={};_[S]=g;var A="$isDayjsObject",k=function(P){return P instanceof te||!(!P||!P[A])},F=function P(L,M,j){var C;if(!L)return S;if(typeof L=="string"){var G=L.toLowerCase();_[G]&&(C=G),M&&(_[G]=M,C=G);var Y=L.split("-");if(!C&&Y.length>1)return P(Y[0])}else{var oe=L.name;_[oe]=L,C=oe}return!j&&C&&(S=C),C||!j&&S},H=function(P,L){if(k(P))return P.clone();var M=typeof L=="object"?L:{};return M.date=P,M.args=arguments,new te(M)},I=w;I.l=F,I.i=k,I.w=function(P,L){return H(P,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var te=function(){function P(M){this.$L=F(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[A]=!0}var L=P.prototype;return L.parse=function(M){this.$d=function(j){var C=j.date,G=j.utc;if(C===null)return new Date(NaN);if(I.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var Y=C.match(z);if(Y){var oe=Y[2]-1||0,re=(Y[7]||"0").substring(0,3);return G?new Date(Date.UTC(Y[1],oe,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,re)):new Date(Y[1],oe,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,re)}}return new Date(C)}(M),this.init()},L.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},L.$utils=function(){return I},L.isValid=function(){return this.$d.toString()!==O},L.isSame=function(M,j){var C=H(M);return this.startOf(j)<=C&&C<=this.endOf(j)},L.isAfter=function(M,j){return H(M)<this.startOf(j)},L.isBefore=function(M,j){return this.endOf(j)<H(M)},L.$g=function(M,j,C){return I.u(M)?this[j]:this.set(C,M)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(M,j){var C=this,G=!!I.u(j)||j,Y=I.p(M),oe=function(Ee,ie){var qe=I.w(C.$u?Date.UTC(C.$y,ie,Ee):new Date(C.$y,ie,Ee),C);return G?qe:qe.endOf(c)},re=function(Ee,ie){return I.w(C.toDate()[Ee].apply(C.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ie)),C)},ye=this.$W,ve=this.$M,Me=this.$D,xe="set"+(this.$u?"UTC":"");switch(Y){case y:return G?oe(1,0):oe(31,11);case p:return G?oe(1,ve):oe(0,ve+1);case f:var Oe=this.$locale().weekStart||0,nt=(ye<Oe?ye+7:ye)-Oe;return oe(G?Me-nt:Me+(6-nt),ve);case c:case E:return re(xe+"Hours",0);case a:return re(xe+"Minutes",1);case l:return re(xe+"Seconds",2);case o:return re(xe+"Milliseconds",3);default:return this.clone()}},L.endOf=function(M){return this.startOf(M,!1)},L.$set=function(M,j){var C,G=I.p(M),Y="set"+(this.$u?"UTC":""),oe=(C={},C[c]=Y+"Date",C[E]=Y+"Date",C[p]=Y+"Month",C[y]=Y+"FullYear",C[a]=Y+"Hours",C[l]=Y+"Minutes",C[o]=Y+"Seconds",C[s]=Y+"Milliseconds",C)[G],re=G===c?this.$D+(j-this.$W):j;if(G===p||G===y){var ye=this.clone().set(E,1);ye.$d[oe](re),ye.init(),this.$d=ye.set(E,Math.min(this.$D,ye.daysInMonth())).$d}else oe&&this.$d[oe](re);return this.init(),this},L.set=function(M,j){return this.clone().$set(M,j)},L.get=function(M){return this[I.p(M)]()},L.add=function(M,j){var C,G=this;M=Number(M);var Y=I.p(j),oe=function(ve){var Me=H(G);return I.w(Me.date(Me.date()+Math.round(ve*M)),G)};if(Y===p)return this.set(p,this.$M+M);if(Y===y)return this.set(y,this.$y+M);if(Y===c)return oe(1);if(Y===f)return oe(7);var re=(C={},C[l]=i,C[a]=n,C[o]=r,C)[Y]||1,ye=this.$d.getTime()+M*re;return I.w(ye,this)},L.subtract=function(M,j){return this.add(-1*M,j)},L.format=function(M){var j=this,C=this.$locale();if(!this.isValid())return C.invalidDate||O;var G=M||"YYYY-MM-DDTHH:mm:ssZ",Y=I.z(this),oe=this.$H,re=this.$m,ye=this.$M,ve=C.weekdays,Me=C.months,xe=C.meridiem,Oe=function(ie,qe,_t,fe){return ie&&(ie[qe]||ie(j,G))||_t[qe].slice(0,fe)},nt=function(ie){return I.s(oe%12||12,ie,"0")},Ee=xe||function(ie,qe,_t){var fe=ie<12?"AM":"PM";return _t?fe.toLowerCase():fe};return G.replace(B,function(ie,qe){return qe||function(_t){switch(_t){case"YY":return String(j.$y).slice(-2);case"YYYY":return I.s(j.$y,4,"0");case"M":return ye+1;case"MM":return I.s(ye+1,2,"0");case"MMM":return Oe(C.monthsShort,ye,Me,3);case"MMMM":return Oe(Me,ye);case"D":return j.$D;case"DD":return I.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Oe(C.weekdaysMin,j.$W,ve,2);case"ddd":return Oe(C.weekdaysShort,j.$W,ve,3);case"dddd":return ve[j.$W];case"H":return String(oe);case"HH":return I.s(oe,2,"0");case"h":return nt(1);case"hh":return nt(2);case"a":return Ee(oe,re,!0);case"A":return Ee(oe,re,!1);case"m":return String(re);case"mm":return I.s(re,2,"0");case"s":return String(j.$s);case"ss":return I.s(j.$s,2,"0");case"SSS":return I.s(j.$ms,3,"0");case"Z":return Y}return null}(ie)||Y.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(M,j,C){var G,Y=this,oe=I.p(j),re=H(M),ye=(re.utcOffset()-this.utcOffset())*i,ve=this-re,Me=function(){return I.m(Y,re)};switch(oe){case y:G=Me()/12;break;case p:G=Me();break;case b:G=Me()/3;break;case f:G=(ve-ye)/6048e5;break;case c:G=(ve-ye)/864e5;break;case a:G=ve/n;break;case l:G=ve/i;break;case o:G=ve/r;break;default:G=ve}return C?G:I.a(G)},L.daysInMonth=function(){return this.endOf(p).$D},L.$locale=function(){return _[this.$L]},L.locale=function(M,j){if(!M)return this.$L;var C=this.clone(),G=F(M,j,!0);return G&&(C.$L=G),C},L.clone=function(){return I.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},P}(),le=te.prototype;return H.prototype=le,[["$ms",s],["$s",o],["$m",l],["$H",a],["$W",c],["$M",p],["$y",y],["$D",E]].forEach(function(P){le[P[1]]=function(L){return this.$g(L,P[0],P[1])}}),H.extend=function(P,L){return P.$i||(P(L,te,H),P.$i=!0),H},H.locale=F,H.isDayjs=k,H.unix=function(P){return H(1e3*P)},H.en=_[S],H.Ls=_,H.p={},H})})(Ln);var Mo=Ln.exports;const Lt=Vr(Mo);class Oo extends _e{constructor(){super(...arguments),this.templates={},this._renderedTemplates={}}setBindingSyntax(e,r){this._startExpression=e,this._endExpression=r;const i=this.escapeRegex(this._startExpression),n=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${i}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${n}`,"g")}hasTemplate(e){return this.templates&&!!this.templates[e]}renderTemplate(e,r,i){if(!this.hasTemplate(e))return null;i=i||e;const n=U` <slot name=${i}></slot> `,s={[e]:{...r}};if(this._renderedTemplates.hasOwnProperty(i)){const{slot:l}=this._renderedTemplates[i];this.contains(l)&&this.removeChild(l)}const o=document.createElement("div");return o.slot=i,o.dataset.generated="template",this._renderTemplate(o,this.templates[e],s),this.appendChild(o),this._renderedTemplates[i]={context:s,slot:o},n}getTemplates(){const e={};for(let r=0;r<this.children.length;r++){const i=this.children[r];if(i.nodeName==="RENDER-TEMPLATE"){const n=i;n.dataset.type?e[n.dataset.type]=n:e.default=n,n.templateOrder=r}}return e}_renderTemplate(e,r,i){let n;if(r&&r.childNodes.length){const s=r.cloneNode(!0);n=this.renderNode(s,e,i)}n&&e.appendChild(n)}expandExpressionsAsString(e,r){return e.replace(this.expression,(i,n)=>{const s=this.evalInContext(n||this.trimExpression(i),r);return s?typeof s=="object"?JSON.stringify(s):s.toString():""})}get expression(){return this._expression||this.setBindingSyntax("{{","}}"),this._expression}escapeRegex(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}evalInContext(e,r){r={...r};const i=new Function("with(this) { return "+e+";}");let n;try{n=i.call(r)}catch{}return n}trimExpression(e){return e=e.trim(),e.startsWith(this._startExpression)&&e.endsWith(this._endExpression)&&(e=e.substr(this._startExpression.length,e.length-this._startExpression.length-this._endExpression.length),e=e.trim()),e}renderNode(e,r,i){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,i),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=i,e;for(let n=0;n<e.childNodes.length;n++){const s=e.childNodes[n];this.renderNode(s,r,i)}return e}firstUpdated(){this.templates=this.getTemplates()}}const Gr=`
|
|
27
|
+
*/function Qe(t,e,r){return t?e(t):r==null?void 0:r(t)}const xp=`
|
|
60
28
|
:host {
|
|
61
29
|
display: flex;
|
|
62
30
|
box-sizing: border-box;
|
|
@@ -78,253 +46,32 @@ form#itemfilter {
|
|
|
78
46
|
details {
|
|
79
47
|
width: 100%;
|
|
80
48
|
}
|
|
81
|
-
`,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
font-weight: 500;
|
|
104
|
-
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);
|
|
105
|
-
transition-property: box-shadow, transform, opacity, background;
|
|
106
|
-
transition-duration: 0.28s;
|
|
107
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
button:hover:not([disabled]):not(.icon),
|
|
111
|
-
.button:hover:not([disabled]):not(.icon) {
|
|
112
|
-
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);
|
|
113
|
-
background: var(--primary-color-hover);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
button, button:active,
|
|
117
|
-
.button, .button:active {
|
|
118
|
-
background: var(--primary-color);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
button[disabled],
|
|
122
|
-
.button[disabled] {
|
|
123
|
-
opacity: 0.5;
|
|
124
|
-
cursor: not-allowed;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
button.outline,
|
|
128
|
-
.button.outline {
|
|
129
|
-
background: transparent;
|
|
130
|
-
box-shadow: none;
|
|
131
|
-
color: var(--primary-color);
|
|
132
|
-
outline: 1px solid var(--primary-color);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
button.outline:hover,
|
|
136
|
-
.button.outline:hover {
|
|
137
|
-
background: transparent;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
button.icon,
|
|
141
|
-
.button.icon {
|
|
142
|
-
background: transparent;
|
|
143
|
-
border: none;
|
|
144
|
-
box-shadow: none;
|
|
145
|
-
padding: 0;
|
|
146
|
-
border-radius: 50%;
|
|
147
|
-
width: 24px;
|
|
148
|
-
height: 24px;
|
|
149
|
-
text-indent: -9999px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
button.icon-text,
|
|
153
|
-
.button.icon-text {
|
|
154
|
-
text-indent: 26px;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
button.icon:before, button.icon-text:before,
|
|
158
|
-
.button.icon:before, .button.icon-text:before {
|
|
159
|
-
position: absolute;
|
|
160
|
-
text-indent: 0;
|
|
161
|
-
line-height: initial;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
button.icon:before,
|
|
165
|
-
.button.icon:before {
|
|
166
|
-
width: 24px;
|
|
167
|
-
height: 24px;
|
|
168
|
-
margin-right: 0;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
button.icon-text:before,
|
|
172
|
-
.button.icon-text:before {
|
|
173
|
-
width: 18px;
|
|
174
|
-
height: 18px;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
button.small,
|
|
178
|
-
.button.small {
|
|
179
|
-
height: 28px;
|
|
180
|
-
padding: 12.4px;
|
|
181
|
-
font-size: .75rem;
|
|
49
|
+
`,yn=`
|
|
50
|
+
:host, :root {
|
|
51
|
+
--item-color: color-mix(
|
|
52
|
+
in srgb,
|
|
53
|
+
var(--primary-color) 10%,
|
|
54
|
+
transparent
|
|
55
|
+
);
|
|
56
|
+
--item-hover-color: color-mix(
|
|
57
|
+
in srgb,
|
|
58
|
+
var(--secondary-color) 30%,
|
|
59
|
+
transparent
|
|
60
|
+
);
|
|
61
|
+
--inline-bg-color: color-mix(
|
|
62
|
+
in srgb,
|
|
63
|
+
var(--secondary-color) 10%,
|
|
64
|
+
transparent
|
|
65
|
+
);
|
|
66
|
+
--border-color: color-mix(
|
|
67
|
+
in srgb,
|
|
68
|
+
#000000 20%,
|
|
69
|
+
transparent
|
|
70
|
+
);
|
|
182
71
|
}
|
|
183
|
-
|
|
184
|
-
button.smallest.icon,
|
|
185
|
-
button.smallest.icon::before {
|
|
186
|
-
height: 16px;
|
|
187
|
-
width: 16px;
|
|
188
|
-
padding: 0px;
|
|
189
|
-
}
|
|
190
|
-
`,Zr=`
|
|
191
72
|
* {
|
|
192
73
|
font-family: Roboto, sans-serif;
|
|
193
74
|
}
|
|
194
|
-
|
|
195
|
-
${Jr}
|
|
196
|
-
|
|
197
|
-
input[type=checkbox] {
|
|
198
|
-
appearance: none;
|
|
199
|
-
-webkit-appearance: none;
|
|
200
|
-
margin: 0;
|
|
201
|
-
cursor: pointer;
|
|
202
|
-
display: flex;
|
|
203
|
-
flex-direction: row;
|
|
204
|
-
align-items: center;
|
|
205
|
-
width: 24px;
|
|
206
|
-
height: 24px;
|
|
207
|
-
}
|
|
208
|
-
input[type=checkbox]:after {
|
|
209
|
-
display: block;
|
|
210
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E");
|
|
211
|
-
width: 20px;
|
|
212
|
-
height: 20px;
|
|
213
|
-
margin-right: 4px;
|
|
214
|
-
}
|
|
215
|
-
input[type=checkbox]:checked:after {
|
|
216
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
input[type=radio] {
|
|
222
|
-
appearance: none;
|
|
223
|
-
-webkit-appearance: none;
|
|
224
|
-
margin: 0;
|
|
225
|
-
cursor: pointer;
|
|
226
|
-
display: flex;
|
|
227
|
-
flex-direction: row;
|
|
228
|
-
align-items: center;
|
|
229
|
-
width: 24px;
|
|
230
|
-
height: 24px;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
label span {
|
|
234
|
-
font-size: small;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
input[type=radio]:after {
|
|
238
|
-
display: block;
|
|
239
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E");
|
|
240
|
-
width: 20px;
|
|
241
|
-
height: 20px;
|
|
242
|
-
margin-right: 4px;
|
|
243
|
-
}
|
|
244
|
-
input[type=radio]:checked:after {
|
|
245
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
input[type="range"] {
|
|
251
|
-
-webkit-appearance: none;
|
|
252
|
-
width: 90%;
|
|
253
|
-
margin-left: 5%;
|
|
254
|
-
height: 6px;
|
|
255
|
-
border-radius: 5px;
|
|
256
|
-
background: #d7dcdf;
|
|
257
|
-
outline: none;
|
|
258
|
-
padding: 0;
|
|
259
|
-
}
|
|
260
|
-
input[type="range"]::-webkit-slider-thumb {
|
|
261
|
-
appearance: none;
|
|
262
|
-
width: 15px;
|
|
263
|
-
height: 15px;
|
|
264
|
-
border-radius: 50%;
|
|
265
|
-
background: #2c3e50;
|
|
266
|
-
cursor: pointer;
|
|
267
|
-
transition: background 0.15s ease-in-out;
|
|
268
|
-
}
|
|
269
|
-
.range-slider {
|
|
270
|
-
margin: 60px 0 0 0;
|
|
271
|
-
}
|
|
272
|
-
.range-slider {
|
|
273
|
-
width: 100%;
|
|
274
|
-
}
|
|
275
|
-
input[type="range"]::-webkit-slider-thumb:hover {
|
|
276
|
-
background: #00416F;
|
|
277
|
-
}
|
|
278
|
-
input[type="range"]:active::-webkit-slider-thumb {
|
|
279
|
-
background: #00416F;
|
|
280
|
-
}
|
|
281
|
-
input[type="range"]::-moz-range-thumb {
|
|
282
|
-
width: 15px;
|
|
283
|
-
height: 15px;
|
|
284
|
-
border: 0;
|
|
285
|
-
border-radius: 50%;
|
|
286
|
-
background: #2c3e50;
|
|
287
|
-
cursor: pointer;
|
|
288
|
-
transition: background 0.15s ease-in-out;
|
|
289
|
-
}
|
|
290
|
-
input[type="range"]::-moz-range-thumb:hover {
|
|
291
|
-
background: #00416F;
|
|
292
|
-
}
|
|
293
|
-
input[type="range"]:active::-moz-range-thumb {
|
|
294
|
-
background: #00416F;
|
|
295
|
-
}
|
|
296
|
-
input[type="range"]:focus::-webkit-slider-thumb {
|
|
297
|
-
box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
|
|
298
|
-
}
|
|
299
|
-
.range-slider__value {
|
|
300
|
-
display: inline-block;
|
|
301
|
-
position: relative;
|
|
302
|
-
width: 60px;
|
|
303
|
-
color: #fff;
|
|
304
|
-
line-height: 20px;
|
|
305
|
-
text-align: center;
|
|
306
|
-
border-radius: 3px;
|
|
307
|
-
background: #2c3e50;
|
|
308
|
-
padding: 5px 10px;
|
|
309
|
-
margin-left: 8px;
|
|
310
|
-
}
|
|
311
|
-
.range-slider__value:after {
|
|
312
|
-
position: absolute;
|
|
313
|
-
top: 8px;
|
|
314
|
-
left: -7px;
|
|
315
|
-
width: 0;
|
|
316
|
-
height: 0;
|
|
317
|
-
border-top: 7px solid transparent;
|
|
318
|
-
border-right: 7px solid #2c3e50;
|
|
319
|
-
border-bottom: 7px solid transparent;
|
|
320
|
-
content: '';
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
324
|
-
border: 0;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
|
|
328
75
|
ul {
|
|
329
76
|
padding-left: 0;
|
|
330
77
|
margin-top: 0;
|
|
@@ -333,7 +80,6 @@ li {
|
|
|
333
80
|
list-style: none;
|
|
334
81
|
}
|
|
335
82
|
li span {
|
|
336
|
-
overflow: hidden;
|
|
337
83
|
text-overflow: ellipsis;
|
|
338
84
|
white-space: nowrap;
|
|
339
85
|
}
|
|
@@ -358,6 +104,13 @@ details > summary::-webkit-details-marker {
|
|
|
358
104
|
.title {
|
|
359
105
|
font-size: small;
|
|
360
106
|
align-items: center;
|
|
107
|
+
text-transform: capitalize;
|
|
108
|
+
}
|
|
109
|
+
h6.main-heading {
|
|
110
|
+
font-size: 1rem;
|
|
111
|
+
margin-block-start: 1.33em;
|
|
112
|
+
margin-block-end: 1.33em;
|
|
113
|
+
margin-top: 8px;
|
|
361
114
|
}
|
|
362
115
|
details summary .title {
|
|
363
116
|
display: flex;
|
|
@@ -410,7 +163,7 @@ input[type="text"] {
|
|
|
410
163
|
margin-bottom: 0.5rem;
|
|
411
164
|
padding: 5px 7px;
|
|
412
165
|
border-radius: 4px;
|
|
413
|
-
border: 1px solid
|
|
166
|
+
border: 1px solid var(--border-color);
|
|
414
167
|
}
|
|
415
168
|
section:not(section:last-of-type) {
|
|
416
169
|
margin-bottom: 1rem;
|
|
@@ -424,9 +177,6 @@ section:not(section:last-of-type) {
|
|
|
424
177
|
ul li {
|
|
425
178
|
padding: 5px 10px;
|
|
426
179
|
}
|
|
427
|
-
li.highlighted {
|
|
428
|
-
background: #00417011;
|
|
429
|
-
}
|
|
430
180
|
section {
|
|
431
181
|
position: relative;
|
|
432
182
|
}
|
|
@@ -434,38 +184,33 @@ button#filter-reset {
|
|
|
434
184
|
position: absolute;
|
|
435
185
|
top: 4px;
|
|
436
186
|
right: 0;
|
|
437
|
-
|
|
438
|
-
.scroll {
|
|
439
|
-
max-height: calc(100% - 30px);
|
|
440
|
-
overflow-x: hidden;
|
|
441
|
-
overflow-y: auto;
|
|
187
|
+
padding: 2px 10px;
|
|
442
188
|
}
|
|
443
189
|
.count {
|
|
444
190
|
display: flex;
|
|
445
191
|
justify-content: center;
|
|
446
192
|
align-items: center;
|
|
447
|
-
background:
|
|
193
|
+
background: var(--secondary-color);
|
|
448
194
|
padding: 0 12px;
|
|
449
195
|
height: 20px;
|
|
450
196
|
border-radius: 10px;
|
|
451
|
-
color:
|
|
197
|
+
color: var(--primary-color);
|
|
452
198
|
font-weight: 500;
|
|
453
199
|
margin-left: 9px;
|
|
454
200
|
}
|
|
455
|
-
eox-itemfilter-range
|
|
456
|
-
|
|
201
|
+
eox-itemfilter-range,
|
|
202
|
+
tc-range-slider {
|
|
457
203
|
align-items: center;
|
|
458
|
-
|
|
204
|
+
display: block;
|
|
205
|
+
padding-left: 0.6rem;
|
|
459
206
|
}
|
|
460
207
|
.range-before,
|
|
461
208
|
.range-after {
|
|
462
209
|
font-size: small;
|
|
463
210
|
}
|
|
464
|
-
.range-before
|
|
465
|
-
margin-right: .5rem;
|
|
466
|
-
}
|
|
211
|
+
.range-before,
|
|
467
212
|
.range-after {
|
|
468
|
-
margin
|
|
213
|
+
margin: 1rem 0px;
|
|
469
214
|
}
|
|
470
215
|
|
|
471
216
|
button.reset-icon:before {
|
|
@@ -473,231 +218,463 @@ button.reset-icon:before {
|
|
|
473
218
|
}
|
|
474
219
|
eox-itemfilter-expandcontainer button.reset-icon {
|
|
475
220
|
margin-left: 4px;
|
|
476
|
-
margin-top:
|
|
221
|
+
margin-top: -5px;
|
|
222
|
+
height: 14px;
|
|
223
|
+
width: 14px;
|
|
477
224
|
}
|
|
478
225
|
eox-itemfilter-expandcontainer button.reset-icon:before {
|
|
479
|
-
height:
|
|
480
|
-
width:
|
|
226
|
+
height: 14px;
|
|
227
|
+
width: 14px;
|
|
228
|
+
}
|
|
229
|
+
.inline-content {
|
|
230
|
+
padding: 4px;
|
|
231
|
+
border: 1.5px solid var(--secondary-color);
|
|
232
|
+
border-radius: 4px;
|
|
233
|
+
position: absolute;
|
|
234
|
+
width: calc(100% - 10px);
|
|
235
|
+
max-height: 300px;
|
|
236
|
+
overflow-y: auto;
|
|
237
|
+
background: var(--inline-bg-color);
|
|
238
|
+
z-index: 1;
|
|
239
|
+
margin-top: 0.5rem;
|
|
240
|
+
}
|
|
241
|
+
.inline-container {
|
|
242
|
+
position: relative;
|
|
243
|
+
align-items: center;
|
|
244
|
+
}
|
|
245
|
+
.inline-container-wrapper {
|
|
246
|
+
width: 100%;
|
|
247
|
+
position: relative;
|
|
248
|
+
}
|
|
249
|
+
.inline-container {
|
|
250
|
+
position: relative;
|
|
251
|
+
border: 1px solid var(--border-color);
|
|
252
|
+
border-radius: 4px;
|
|
253
|
+
height: 24px;
|
|
254
|
+
padding: 8px;
|
|
255
|
+
flex: 1;
|
|
256
|
+
justify-content: space-between;
|
|
257
|
+
cursor: text;
|
|
258
|
+
transition: all 0.2s ease-in-out;
|
|
259
|
+
display: flex;
|
|
260
|
+
}
|
|
261
|
+
.inline-container:hover {
|
|
262
|
+
border: 1px solid var(--primary-color);
|
|
263
|
+
}
|
|
264
|
+
.input-container {
|
|
265
|
+
display: flex;
|
|
266
|
+
flex: 1;
|
|
267
|
+
align-items: center;
|
|
268
|
+
}
|
|
269
|
+
.input-container input,
|
|
270
|
+
.input-container input:focus {
|
|
271
|
+
height: 100%;
|
|
272
|
+
border: none;
|
|
273
|
+
outline: none;
|
|
274
|
+
border: 0;
|
|
275
|
+
min-width: 25%;
|
|
276
|
+
}
|
|
277
|
+
.button-container {
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
justify-content: center;
|
|
281
|
+
position: absolute;
|
|
282
|
+
right: 1px;
|
|
283
|
+
top: 5px;
|
|
284
|
+
height: calc(100% - 10px);
|
|
285
|
+
width: 34px;
|
|
286
|
+
background: white;
|
|
287
|
+
}
|
|
288
|
+
button.icon {
|
|
289
|
+
color: #004170;
|
|
290
|
+
height: 24px;
|
|
291
|
+
font-size: large;
|
|
292
|
+
width: unset;
|
|
293
|
+
}
|
|
294
|
+
.inline-container::-webkit-scrollbar {
|
|
295
|
+
height: 2px;
|
|
296
|
+
}
|
|
297
|
+
.inline-container::-webkit-scrollbar-thumb {
|
|
298
|
+
background: lightgrey;
|
|
299
|
+
border-radius: 2px;
|
|
300
|
+
}
|
|
301
|
+
.hidden {
|
|
302
|
+
height: 0;
|
|
303
|
+
padding: 0;
|
|
304
|
+
border: none;
|
|
305
|
+
}
|
|
306
|
+
.hidden:hover {
|
|
307
|
+
border: none;
|
|
308
|
+
}
|
|
309
|
+
.chip-title {
|
|
310
|
+
pointer-events: none;
|
|
311
|
+
text-transform: capitalize;
|
|
312
|
+
}
|
|
313
|
+
.chip {
|
|
314
|
+
display: flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
background: var(--item-color);
|
|
317
|
+
border-radius: 30px;
|
|
318
|
+
margin-right: 4px;
|
|
319
|
+
padding: 5px 10px;
|
|
320
|
+
font-size: small;
|
|
321
|
+
cursor: default;
|
|
322
|
+
white-space: nowrap;
|
|
323
|
+
}
|
|
324
|
+
.chip.highlighted {
|
|
325
|
+
background: var(--primary-color);
|
|
326
|
+
color: white;
|
|
327
|
+
}
|
|
328
|
+
.chip-close {
|
|
329
|
+
cursor: pointer;
|
|
330
|
+
font-weight: 600;
|
|
331
|
+
position: absolute;
|
|
332
|
+
right: -25px;
|
|
333
|
+
background: white;
|
|
334
|
+
top: 0;
|
|
335
|
+
height: 100%;
|
|
336
|
+
display: flex;
|
|
337
|
+
align-items: center;
|
|
338
|
+
height: 24px;
|
|
339
|
+
width: 24px;
|
|
340
|
+
}
|
|
341
|
+
.chip-close:before {
|
|
342
|
+
position: absolute;
|
|
343
|
+
text-indent: 0;
|
|
344
|
+
line-height: initial;
|
|
345
|
+
height: 24px;
|
|
346
|
+
width: 24px;
|
|
347
|
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E");
|
|
348
|
+
}
|
|
349
|
+
.chip-container {
|
|
350
|
+
position: relative;
|
|
351
|
+
max-width: 75%;
|
|
352
|
+
}
|
|
353
|
+
.autocomplete-container,
|
|
354
|
+
.text-container {
|
|
355
|
+
position: relative;
|
|
356
|
+
align-items: center;
|
|
357
|
+
width: 100%;
|
|
358
|
+
box-sizing: border-box;
|
|
359
|
+
border: 1px solid var(--border-color);
|
|
360
|
+
border-radius: 4px;
|
|
361
|
+
justify-content: space-between;
|
|
362
|
+
cursor: text;
|
|
363
|
+
margin-top: 0.5rem;
|
|
364
|
+
margin-bottom: 0.5rem;
|
|
365
|
+
background: white;
|
|
366
|
+
}
|
|
367
|
+
.autocomplete-container:hover,
|
|
368
|
+
.text-container:hover {
|
|
369
|
+
border: 1px solid var(--primary-color);
|
|
370
|
+
}
|
|
371
|
+
.autocomplete-container-wrapper,
|
|
372
|
+
.text-container-wrapper {
|
|
373
|
+
padding: 6px;
|
|
374
|
+
position: relative;
|
|
375
|
+
display: flex;
|
|
376
|
+
align-items: center;
|
|
377
|
+
flex: 1;
|
|
378
|
+
overflow-x: auto;
|
|
379
|
+
-ms-overflow-style: none;
|
|
380
|
+
scrollbar-width: none;
|
|
381
|
+
}
|
|
382
|
+
.autocomplete-container-wrapper::-webkit-scrollbar {
|
|
383
|
+
display: none;
|
|
481
384
|
}
|
|
482
|
-
|
|
385
|
+
.chip-wrapper {
|
|
386
|
+
-ms-overflow-style: none;
|
|
387
|
+
scrollbar-width: none;
|
|
388
|
+
}
|
|
389
|
+
.chip-wrapper::-webkit-scrollbar {
|
|
390
|
+
display: none;
|
|
391
|
+
width: 0;
|
|
392
|
+
background: transparent;
|
|
393
|
+
}
|
|
394
|
+
.autocomplete-input,
|
|
395
|
+
.text-input {
|
|
396
|
+
flex: 1;
|
|
397
|
+
border: none !important;
|
|
398
|
+
outline: none;
|
|
399
|
+
box-sizing: border-box;
|
|
400
|
+
margin-top: 0 !important;
|
|
401
|
+
margin-bottom: 0 !important;
|
|
402
|
+
padding: 3px 0px !important;
|
|
403
|
+
min-width: 150px;
|
|
404
|
+
border-radius: 4px;
|
|
405
|
+
}
|
|
406
|
+
.selected-items {
|
|
407
|
+
display: flex;
|
|
408
|
+
flex-wrap: nowrap;
|
|
409
|
+
gap: 4px;
|
|
410
|
+
}
|
|
411
|
+
li.highlighted,
|
|
412
|
+
.select-container li:hover,
|
|
413
|
+
.highlight-item {
|
|
414
|
+
background: var(--item-hover-color);
|
|
415
|
+
}
|
|
416
|
+
.selected-item span {
|
|
417
|
+
margin-right: 8px;
|
|
418
|
+
}
|
|
419
|
+
.selected-item button {
|
|
420
|
+
background: none;
|
|
421
|
+
border: none;
|
|
422
|
+
color: #fff;
|
|
423
|
+
cursor: pointer;
|
|
424
|
+
font-size: 16px;
|
|
425
|
+
line-height: 1;
|
|
426
|
+
}
|
|
427
|
+
.multiselect-container,
|
|
428
|
+
.select-container {
|
|
429
|
+
display: flex;
|
|
430
|
+
flex-direction: column;
|
|
431
|
+
gap: 4px;
|
|
432
|
+
}
|
|
433
|
+
.multiselect-container label,
|
|
434
|
+
.select-container label {
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
}
|
|
439
|
+
.multiselect-container input,
|
|
440
|
+
.select-container input {
|
|
441
|
+
margin-right: 8px;
|
|
442
|
+
}
|
|
443
|
+
.select-overflow {
|
|
444
|
+
max-height: 185px;
|
|
445
|
+
overflow-y: auto;
|
|
446
|
+
}
|
|
447
|
+
.chip-title strong {
|
|
448
|
+
font-weight: 500;
|
|
449
|
+
}
|
|
450
|
+
.chip-wrapper {
|
|
451
|
+
max-width: 100%;
|
|
452
|
+
overflow-x: scroll;
|
|
453
|
+
}
|
|
454
|
+
.chip-container {
|
|
455
|
+
display: flex;
|
|
456
|
+
flex: 0;
|
|
457
|
+
}
|
|
458
|
+
.input-container.dirty-filter-input {
|
|
459
|
+
margin-left: 25px;
|
|
460
|
+
}
|
|
461
|
+
`,Sp=`:root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --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);}button,.button { 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):not(.json-editor-btntype-*),.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-btn-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,button[class*="json-editor-btntype-"] { 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,button[class*="json-editor-btntype-"]::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: 0;}input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}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[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;}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;}input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}input[type="range"] { -webkit-appearance: none; width: 90%; margin-left: 5%; height: 6px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0;}input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}.range-slider { margin: 60px 0 0 0;}.range-slider { width: 100%;}input[type="range"]::-webkit-slider-thumb:hover { background: #00416f;}input[type="range"]:active::-webkit-slider-thumb { background: #00416f;}input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}input[type="range"]::-moz-range-thumb:hover { background: #00416f;}input[type="range"]:active::-moz-range-thumb { background: #00416f;}input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416f00;}.range-slider__value { display: inline-block; position: relative; width: 60px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px;}.range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "";}input::-moz-focus-inner,input::-moz-focus-outer { border: 0;}`;class Ap extends it{constructor(){super();nt(this,Fi);this.filterObject={},this.unstyled=!1}static get properties(){return{filterObject:{attribute:!1,type:Object},unstyled:{type:Boolean}}}render(){return K`
|
|
483
462
|
<style>
|
|
484
|
-
${
|
|
485
|
-
${!this.unstyled&&Zr}
|
|
463
|
+
${!this.unstyled&&yn}
|
|
486
464
|
</style>
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
>
|
|
493
|
-
<summary>
|
|
494
|
-
<span
|
|
495
|
-
class="title"
|
|
496
|
-
style="${!this.filterObject.title&&"text-transform: capitalize"}"
|
|
465
|
+
|
|
466
|
+
${Qe(this.filterObject.featured,()=>K`<slot name="filter"></slot>`,()=>K`<details
|
|
467
|
+
@toggle="${Se(this,Fi,Vf)}"
|
|
468
|
+
class="details-filter"
|
|
469
|
+
?open=${this.filterObject.expanded||be}
|
|
497
470
|
>
|
|
498
|
-
|
|
499
|
-
<slot name="reset-button"></slot>
|
|
500
|
-
</span>
|
|
501
|
-
</summary>
|
|
502
|
-
<div class="scroll">
|
|
503
|
-
<slot name="filter"></slot>
|
|
504
|
-
</div>
|
|
505
|
-
</details>
|
|
506
|
-
`}};Qr([J({attribute:!1})],hr.prototype,"filterObject",2),Qr([J()],hr.prototype,"unstyled",2),hr=Qr([ke("eox-itemfilter-expandcontainer")],hr);const Ct=t=>{if(!t.dirty)return null;switch(t.type){case"multiselect":for(const r in t.state)t.state[r]=!1;break;case"range":t.state.min=t.min,t.state.max=t.max;break;case"select":for(const r in t.state)t.state[r]=!1;break;case"spatial":t.state.geometry=void 0;break;case"text":t.keys.forEach(r=>{t.state[r]=void 0});break}return delete t.stringifiedState,delete t.dirty,t},ei=Math.min,kt=Math.max,dr=Math.round,fr=Math.floor,at=t=>({x:t,y:t});function Cn(t){return t.split("-")[0]}function Co(t){return t.split("-")[1]}function ko(t){return t==="x"?"y":"x"}function Ro(t){return t==="y"?"height":"width"}function kn(t){return["top","bottom"].includes(Cn(t))?"y":"x"}function To(t){return ko(kn(t))}function Rn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Tn(t,e,r){let{reference:i,floating:n}=t;const s=kn(e),o=To(e),l=Ro(o),a=Cn(e),c=s==="y",f=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,b=i[l]/2-n[l]/2;let y;switch(a){case"top":y={x:f,y:i.y-n.height};break;case"bottom":y={x:f,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}switch(Co(e)){case"start":y[o]-=b*(r&&c?-1:1);break;case"end":y[o]+=b*(r&&c?-1:1);break}return y}const Io=async(t,e,r)=>{const{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,l=s.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:f,y:p}=Tn(c,i,a),b=i,y={},E=0;for(let O=0;O<l.length;O++){const{name:z,fn:B}=l[O],{x:g,y:m,data:w,reset:S}=await B({x:f,y:p,initialPlacement:i,placement:b,strategy:n,middlewareData:y,rects:c,platform:o,elements:{reference:t,floating:e}});f=g??f,p=m??p,y={...y,[z]:{...y[z],...w}},S&&E<=50&&(E++,typeof S=="object"&&(S.placement&&(b=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):S.rects),{x:f,y:p}=Tn(c,b,a)),O=-1)}return{x:f,y:p,placement:b,strategy:n,middlewareData:y}};function ct(t){return In(t)?(t.nodeName||"").toLowerCase():"#document"}function Re(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qe(t){var e;return(e=(In(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function In(t){return t instanceof Node||t instanceof Re(t).Node}function et(t){return t instanceof Element||t instanceof Re(t).Element}function ze(t){return t instanceof HTMLElement||t instanceof Re(t).HTMLElement}function Dn(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Re(t).ShadowRoot}function Zt(t){const{overflow:e,overflowX:r,overflowY:i,display:n}=Ie(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Do(t){return["table","td","th"].includes(ct(t))}function ti(t){const e=ri(),r=Ie(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function jo(t){let e=Rt(t);for(;ze(e)&&!pr(e);){if(ti(e))return e;e=Rt(e)}return null}function ri(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pr(t){return["html","body","#document"].includes(ct(t))}function Ie(t){return Re(t).getComputedStyle(t)}function gr(t){return et(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Rt(t){if(ct(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Dn(t)&&t.host||Qe(t);return Dn(e)?e.host:e}function jn(t){const e=Rt(t);return pr(e)?t.ownerDocument?t.ownerDocument.body:t.body:ze(e)&&Zt(e)?e:jn(e)}function Qt(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=jn(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Re(n);return s?e.concat(o,o.visualViewport||[],Zt(n)?n:[],o.frameElement&&r?Qt(o.frameElement):[]):e.concat(n,Qt(n,[],r))}function Nn(t){const e=Ie(t);let r=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=ze(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,l=dr(r)!==s||dr(i)!==o;return l&&(r=s,i=o),{width:r,height:i,$:l}}function ii(t){return et(t)?t:t.contextElement}function Tt(t){const e=ii(t);if(!ze(e))return at(1);const r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Nn(e);let o=(s?dr(r.width):r.width)/i,l=(s?dr(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const No=at(0);function Bn(t){const e=Re(t);return!ri()||!e.visualViewport?No:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Bo(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Re(t)?!1:e}function bt(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=t.getBoundingClientRect(),s=ii(t);let o=at(1);e&&(i?et(i)&&(o=Tt(i)):o=Tt(t));const l=Bo(s,r,i)?Bn(s):at(0);let a=(n.left+l.x)/o.x,c=(n.top+l.y)/o.y,f=n.width/o.x,p=n.height/o.y;if(s){const b=Re(s),y=i&&et(i)?Re(i):i;let E=b,O=E.frameElement;for(;O&&i&&y!==E;){const z=Tt(O),B=O.getBoundingClientRect(),g=Ie(O),m=B.left+(O.clientLeft+parseFloat(g.paddingLeft))*z.x,w=B.top+(O.clientTop+parseFloat(g.paddingTop))*z.y;a*=z.x,c*=z.y,f*=z.x,p*=z.y,a+=m,c+=w,E=Re(O),O=E.frameElement}}return Rn({width:f,height:p,x:a,y:c})}const Fo=[":popover-open",":modal"];function Fn(t){return Fo.some(e=>{try{return t.matches(e)}catch{return!1}})}function Ho(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t;const s=n==="fixed",o=Qe(i),l=e?Fn(e.floating):!1;if(i===o||l&&s)return r;let a={scrollLeft:0,scrollTop:0},c=at(1);const f=at(0),p=ze(i);if((p||!p&&!s)&&((ct(i)!=="body"||Zt(o))&&(a=gr(i)),ze(i))){const b=bt(i);c=Tt(i),f.x=b.x+i.clientLeft,f.y=b.y+i.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-a.scrollLeft*c.x+f.x,y:r.y*c.y-a.scrollTop*c.y+f.y}}function qo(t){return Array.from(t.getClientRects())}function Hn(t){return bt(Qe(t)).left+gr(t).scrollLeft}function Uo(t){const e=Qe(t),r=gr(t),i=t.ownerDocument.body,n=kt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=kt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-r.scrollLeft+Hn(t);const l=-r.scrollTop;return Ie(i).direction==="rtl"&&(o+=kt(e.clientWidth,i.clientWidth)-n),{width:n,height:s,x:o,y:l}}function zo(t,e){const r=Re(t),i=Qe(t),n=r.visualViewport;let s=i.clientWidth,o=i.clientHeight,l=0,a=0;if(n){s=n.width,o=n.height;const c=ri();(!c||c&&e==="fixed")&&(l=n.offsetLeft,a=n.offsetTop)}return{width:s,height:o,x:l,y:a}}function Yo(t,e){const r=bt(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=ze(t)?Tt(t):at(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,a=n*s.x,c=i*s.y;return{width:o,height:l,x:a,y:c}}function qn(t,e,r){let i;if(e==="viewport")i=zo(t,r);else if(e==="document")i=Uo(Qe(t));else if(et(e))i=Yo(e,r);else{const n=Bn(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Rn(i)}function Un(t,e){const r=Rt(t);return r===e||!et(r)||pr(r)?!1:Ie(r).position==="fixed"||Un(r,e)}function Wo(t,e){const r=e.get(t);if(r)return r;let i=Qt(t,[],!1).filter(l=>et(l)&&ct(l)!=="body"),n=null;const s=Ie(t).position==="fixed";let o=s?Rt(t):t;for(;et(o)&&!pr(o);){const l=Ie(o),a=ti(o);!a&&l.position==="fixed"&&(n=null),(s?!a&&!n:!a&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Zt(o)&&!a&&Un(t,o))?i=i.filter(f=>f!==o):n=l,o=Rt(o)}return e.set(t,i),i}function Xo(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t;const o=[...r==="clippingAncestors"?Wo(e,this._c):[].concat(r),i],l=o[0],a=o.reduce((c,f)=>{const p=qn(e,f,n);return c.top=kt(p.top,c.top),c.right=ei(p.right,c.right),c.bottom=ei(p.bottom,c.bottom),c.left=kt(p.left,c.left),c},qn(e,l,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Vo(t){const{width:e,height:r}=Nn(t);return{width:e,height:r}}function Ko(t,e,r){const i=ze(e),n=Qe(e),s=r==="fixed",o=bt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const a=at(0);if(i||!i&&!s)if((ct(e)!=="body"||Zt(n))&&(l=gr(e)),i){const p=bt(e,!0,s,e);a.x=p.x+e.clientLeft,a.y=p.y+e.clientTop}else n&&(a.x=Hn(n));const c=o.left+l.scrollLeft-a.x,f=o.top+l.scrollTop-a.y;return{x:c,y:f,width:o.width,height:o.height}}function zn(t,e){return!ze(t)||Ie(t).position==="fixed"?null:e?e(t):t.offsetParent}function Yn(t,e){const r=Re(t);if(!ze(t)||Fn(t))return r;let i=zn(t,e);for(;i&&Do(i)&&Ie(i).position==="static";)i=zn(i,e);return i&&(ct(i)==="html"||ct(i)==="body"&&Ie(i).position==="static"&&!ti(i))?r:i||jo(t)||r}const Go=async function(t){const e=this.getOffsetParent||Yn,r=this.getDimensions;return{reference:Ko(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await r(t.floating)}}};function Jo(t){return Ie(t).direction==="rtl"}const Zo={convertOffsetParentRelativeRectToViewportRelativeRect:Ho,getDocumentElement:Qe,getClippingRect:Xo,getOffsetParent:Yn,getElementRects:Go,getClientRects:qo,getDimensions:Vo,getScale:Tt,isElement:et,isRTL:Jo};function Qo(t,e){let r=null,i;const n=Qe(t);function s(){var l;clearTimeout(i),(l=r)==null||l.disconnect(),r=null}function o(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const{left:c,top:f,width:p,height:b}=t.getBoundingClientRect();if(l||e(),!p||!b)return;const y=fr(f),E=fr(n.clientWidth-(c+p)),O=fr(n.clientHeight-(f+b)),z=fr(c),g={rootMargin:-y+"px "+-E+"px "+-O+"px "+-z+"px",threshold:kt(0,ei(1,a))||1};let m=!0;function w(S){const _=S[0].intersectionRatio;if(_!==a){if(!m)return o();_?o(!1,_):i=setTimeout(()=>{o(!1,1e-7)},100)}m=!1}try{r=new IntersectionObserver(w,{...g,root:n.ownerDocument})}catch{r=new IntersectionObserver(w,g)}r.observe(t)}return o(!0),s}function el(t,e,r,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,c=ii(t),f=n||s?[...c?Qt(c):[],...Qt(e)]:[];f.forEach(B=>{n&&B.addEventListener("scroll",r,{passive:!0}),s&&B.addEventListener("resize",r)});const p=c&&l?Qo(c,r):null;let b=-1,y=null;o&&(y=new ResizeObserver(B=>{let[g]=B;g&&g.target===c&&y&&(y.unobserve(e),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var m;(m=y)==null||m.observe(e)})),r()}),c&&!a&&y.observe(c),y.observe(e));let E,O=a?bt(t):null;a&&z();function z(){const B=bt(t);O&&(B.x!==O.x||B.y!==O.y||B.width!==O.width||B.height!==O.height)&&r(),O=B,E=requestAnimationFrame(z)}return r(),()=>{var B;f.forEach(g=>{n&&g.removeEventListener("scroll",r),s&&g.removeEventListener("resize",r)}),p==null||p(),(B=y)==null||B.disconnect(),y=null,a&&cancelAnimationFrame(E)}}const tl=(t,e,r)=>{const i=new Map,n={platform:Zo,...r},s={...n.platform,_c:i};return Io(t,e,{...n,platform:s})};var rl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,mr=(t,e,r,i)=>{for(var n=i>1?void 0:i?il(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&rl(e,r,n),n};let er=class extends _e{constructor(){super(...arguments),this.open=!1,this.parent=null,this.unstyled=!1,this._clickEventListener=()=>{this.open=!1},this._keyboardEventListener=t=>{const{code:e}=t;["Escape"].includes(e)&&this._handleKeyboard(e)}}_handleKeyboard(t){this.clientHeight}_overlayCleanup(){}connectedCallback(){super.connectedCallback(),this.unstyled||setTimeout(()=>{const t=this.parent||this.renderRoot.querySelector("[name=trigger]").assignedNodes()[0],e=this.renderRoot.querySelector("#dropdown"),r=()=>{e.classList.contains("open")&&tl(t,e,{strategy:"fixed"}).then(({x:i,y:n})=>{Object.assign(e.style,{left:`${i}px`,top:`${n}px`,width:`${t.getBoundingClientRect().width}px`})})};this._overlayCleanup=el(t,e,r)})}disconnectedCallback(){super.disconnectedCallback(),this._overlayCleanup(),this.getRootNode().removeEventListener("keydown",this._keyboardEventListener),window.removeEventListener("click",this._clickEventListener)}render(){return U`
|
|
507
|
-
<style>
|
|
508
|
-
#dropdown {
|
|
509
|
-
display: none;
|
|
510
|
-
}
|
|
511
|
-
#dropdown.open {
|
|
512
|
-
display: block;
|
|
513
|
-
}
|
|
514
|
-
${this.unstyled?se:U`
|
|
515
|
-
eox-dropdown { height: 100%;} #dropdown { position: fixed; top:
|
|
516
|
-
0px; left: 0; width: 100%; margin: 0; padding: 0; background:
|
|
517
|
-
white; border-bottom-left-radius: 4px; border-bottom-right-radius:
|
|
518
|
-
4px; box-shadow: 0 4px 4px #0007; cursor: default; max-height:
|
|
519
|
-
200px; overflow-y: auto; z-index: 99;}
|
|
520
|
-
`}
|
|
521
|
-
</style>
|
|
522
|
-
<slot name="trigger"></slot>
|
|
523
|
-
<div id="dropdown">
|
|
524
|
-
<slot name="content"></slot>
|
|
525
|
-
</div>
|
|
526
|
-
`}updated(t){if(t.has("open")){const e=this.renderRoot.querySelector("#dropdown");this.open?e.classList.add("open"):e.classList.remove("open"),this.requestUpdate()}}firstUpdated(){window.addEventListener("click",this._clickEventListener),this.getRootNode().addEventListener("keydown",this._keyboardEventListener),this.renderRoot.querySelector("[name=trigger]").assignedNodes()[0].addEventListener("focus",()=>{this.open=!0})}};mr([J({type:Boolean})],er.prototype,"open",2),mr([J()],er.prototype,"parent",2),mr([J({type:Boolean})],er.prototype,"unstyled",2),er=mr([ke("eox-dropdown")],er);var nl=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,yr=(t,e,r,i)=>{for(var n=i>1?void 0:i?sl(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&nl(e,r,n),n};let tr=class extends _e{constructor(){super(...arguments),this.items=[],this.titleProperty="title",this.unstyled=!1,this._keyboardEventListener=t=>{const{code:e}=t;this.parentElement.classList.contains("hidden")&&["ArrowLeft","ArrowRight","Backspace"].includes(e)||(e==="Space"&&t.preventDefault(),["Escape","Space","Enter"].includes(e)||t.stopPropagation(),["ArrowLeft","ArrowRight","Escape","Backspace"].includes(e)&&this._handleKeyboard(e,t.target.value??""))}}_dispatchEvent(){this.dispatchEvent(new CustomEvent("items-selected",{detail:this.items}))}_handleKeyboard(t,e){const r=this.renderRoot.querySelector(".chip.highlighted");if((t==="Escape"||e)&&r&&r.classList.remove("highlighted"),t==="Backspace"&&!e){if(this.items.length){r&&this.items.splice(Array.from(this.renderRoot.querySelectorAll(".chip")).indexOf(r),1);const i=this.renderRoot.querySelectorAll(".chip")[this.renderRoot.querySelectorAll(".chip").length-1];i.classList.contains("highlighted")||i.classList.add("highlighted"),this.requestUpdate()}this._dispatchEvent()}if((t==="ArrowLeft"||t==="ArrowRight")&&!e){if(this.renderRoot.querySelectorAll(".chip").length<1)return;let i=0;const n=this.renderRoot.querySelector(".chip.highlighted");n&&(i=Array.from(this.renderRoot.querySelectorAll(".chip")).indexOf(n),n.classList.remove("highlighted")),i=i+(t==="ArrowLeft"?-1:1),t==="ArrowLeft"&&i<0&&(i=this.renderRoot.querySelectorAll(".chip").length-1),t==="ArrowRight"&&i>this.renderRoot.querySelectorAll(".chip").length-1&&(i=0),Array.from(this.renderRoot.querySelectorAll(".chip"))[i].classList.add("highlighted")}}connectedCallback(){super.connectedCallback(),this.getRootNode().addEventListener("keydown",this._keyboardEventListener)}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",this._keyboardEventListener)}render(){return U`
|
|
527
|
-
<style>
|
|
528
|
-
.chip.highlighted {
|
|
529
|
-
background: lightgrey;
|
|
530
|
-
}
|
|
531
|
-
.chip-title {
|
|
532
|
-
pointer-events: none;
|
|
533
|
-
}
|
|
534
|
-
${this.unstyled?se:U`
|
|
535
|
-
.chip-container { display: flex; flex: 0; } .chip { display: flex;
|
|
536
|
-
align-items: center; background: #00417022; border-radius: 4px;
|
|
537
|
-
margin-right: 4px; padding: 5px 10px; font-size: small; cursor:
|
|
538
|
-
default; white-space: nowrap; } .chip.highlighted { background:
|
|
539
|
-
#004170; color: white; } .chip-close { cursor: pointer;
|
|
540
|
-
margin-left: 4px; }
|
|
541
|
-
`}
|
|
542
|
-
</style>
|
|
543
|
-
<span class="chip-container">
|
|
544
|
-
${Gt(this.items,t=>U`
|
|
545
|
-
<span
|
|
546
|
-
class="chip"
|
|
547
|
-
@click=${e=>{this.renderRoot.querySelectorAll(".chip").forEach(r=>{r.classList.remove("highlighted")}),e.target.classList.add("highlighted"),this.requestUpdate()}}
|
|
548
|
-
>
|
|
549
|
-
<span class="chip-title"
|
|
550
|
-
>${t[this.titleProperty]}</span
|
|
551
|
-
>
|
|
552
|
-
${de(t._inProgress,()=>t.stringifiedState?"":U` ... `)}
|
|
553
|
-
${de(t.stringifiedState,()=>U`: ${t.stringifiedState}`)}
|
|
471
|
+
<summary>
|
|
554
472
|
<span
|
|
555
|
-
class="
|
|
556
|
-
|
|
557
|
-
>✕</span
|
|
473
|
+
class="title"
|
|
474
|
+
style="${!this.filterObject.title&&"text-transform: capitalize"}"
|
|
558
475
|
>
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
476
|
+
${this.filterObject.title||this.filterObject.key||"Filter"}
|
|
477
|
+
<slot name="reset-button"></slot>
|
|
478
|
+
</span>
|
|
479
|
+
</summary>
|
|
480
|
+
<div>
|
|
481
|
+
<slot name="filter"></slot>
|
|
482
|
+
</div>
|
|
483
|
+
</details>`)}
|
|
484
|
+
`}}Fi=new WeakSet,Vf=function(r){this.dispatchEvent(new CustomEvent("details-toggled",{detail:r,bubbles:!0,composed:!0}))},customElements.define("eox-itemfilter-expandcontainer",Ap);function Ct(t){return Array.isArray?Array.isArray(t):rl(t)==="[object Array]"}const _p=1/0;function Ep(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-_p?"-0":e}function Mp(t){return t==null?"":Ep(t)}function bt(t){return typeof t=="string"}function el(t){return typeof t=="number"}function Pp(t){return t===!0||t===!1||Op(t)&&rl(t)=="[object Boolean]"}function tl(t){return typeof t=="object"}function Op(t){return tl(t)&&t!==null}function ot(t){return t!=null}function So(t){return!t.trim().length}function rl(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const y1="Extended search is not available",Cp="Incorrect 'index' type",kp=t=>`Invalid value for key ${t}`,Lp=t=>`Pattern length exceeds max of ${t}.`,Tp=t=>`Missing ${t} property in key`,Ip=t=>`Property 'weight' in key '${t}' must be a positive integer`,nl=Object.prototype.hasOwnProperty;class Dp{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(n=>{let i=il(n);this._keys.push(i),this._keyMap[i.id]=i,r+=i.weight}),this._keys.forEach(n=>{n.weight/=r})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function il(t){let e=null,r=null,n=null,i=1,o=null;if(bt(t)||Ct(t))n=t,e=ol(t),r=Ao(t);else{if(!nl.call(t,"name"))throw new Error(Tp("name"));const s=t.name;if(n=s,nl.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Ip(s));e=ol(s),r=Ao(s),o=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:o}}function ol(t){return Ct(t)?t:t.split(".")}function Ao(t){return Ct(t)?t.join("."):t}function Rp(t,e){let r=[],n=!1;const i=(o,s,c)=>{if(ot(o))if(!s[c])r.push(o);else{let l=s[c];const f=o[l];if(!ot(f))return;if(c===s.length-1&&(bt(f)||el(f)||Pp(f)))r.push(Mp(f));else if(Ct(f)){n=!0;for(let h=0,y=f.length;h<y;h+=1)i(f[h],s,c+1)}else s.length&&i(f,s,c+1)}};return i(t,bt(e)?e.split("."):e,0),n?r:r[0]}var z={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:Rp,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const jp=/[^ ]+/g;function Bp(t=1,e=3){const r=new Map,n=Math.pow(10,e);return{get(i){const o=i.match(jp).length;if(r.has(o))return r.get(o);const s=1/Math.pow(o,.5*t),c=parseFloat(Math.round(s*n)/n);return r.set(o,c),c},clear(){r.clear()}}}class _o{constructor({getFn:e=z.getFn,fieldNormWeight:r=z.fieldNormWeight}={}){this.norm=Bp(r,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,bt(this.docs[0])?this.docs.forEach((e,r)=>{this._addString(e,r)}):this.docs.forEach((e,r)=>{this._addObject(e,r)}),this.norm.clear())}add(e){const r=this.size();bt(e)?this._addString(e,r):this._addObject(e,r)}removeAt(e){this.records.splice(e,1);for(let r=e,n=this.size();r<n;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(e,r){return e[this._keysMap[r]]}size(){return this.records.length}_addString(e,r){if(!ot(e)||So(e))return;let n={v:e,i:r,n:this.norm.get(e)};this.records.push(n)}_addObject(e,r){let n={i:r,$:{}};this.keys.forEach((i,o)=>{let s=i.getFn?i.getFn(e):this.getFn(e,i.path);if(ot(s)){if(Ct(s)){let c=[];const l=[{nestedArrIndex:-1,value:s}];for(;l.length;){const{nestedArrIndex:f,value:h}=l.pop();if(ot(h))if(bt(h)&&!So(h)){let y={v:h,i:f,n:this.norm.get(h)};c.push(y)}else Ct(h)&&h.forEach((y,m)=>{l.push({nestedArrIndex:m,value:y})})}n.$[o]=c}else if(bt(s)&&!So(s)){let c={v:s,n:this.norm.get(s)};n.$[o]=c}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function sl(t,e,{getFn:r=z.getFn,fieldNormWeight:n=z.fieldNormWeight}={}){const i=new _o({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(il)),i.setSources(e),i.create(),i}function Np(t,{getFn:e=z.getFn,fieldNormWeight:r=z.fieldNormWeight}={}){const{keys:n,records:i}=t,o=new _o({getFn:e,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(i),o}function Qn(t,{errors:e=0,currentLocation:r=0,expectedLocation:n=0,distance:i=z.distance,ignoreLocation:o=z.ignoreLocation}={}){const s=e/t.length;if(o)return s;const c=Math.abs(n-r);return i?s+c/i:c?1:s}function Hp(t=[],e=z.minMatchCharLength){let r=[],n=-1,i=-1,o=0;for(let s=t.length;o<s;o+=1){let c=t[o];c&&n===-1?n=o:!c&&n!==-1&&(i=o-1,i-n+1>=e&&r.push([n,i]),n=-1)}return t[o-1]&&o-n>=e&&r.push([n,o-1]),r}const or=32;function Up(t,e,r,{location:n=z.location,distance:i=z.distance,threshold:o=z.threshold,findAllMatches:s=z.findAllMatches,minMatchCharLength:c=z.minMatchCharLength,includeMatches:l=z.includeMatches,ignoreLocation:f=z.ignoreLocation}={}){if(e.length>or)throw new Error(Lp(or));const h=e.length,y=t.length,m=Math.max(0,Math.min(n,y));let b=o,A=m;const L=c>1||l,W=L?Array(y):[];let V;for(;(V=t.indexOf(e,A))>-1;){let X=Qn(e,{currentLocation:V,expectedLocation:m,distance:i,ignoreLocation:f});if(b=Math.min(X,b),A=V+h,L){let ie=0;for(;ie<h;)W[V+ie]=1,ie+=1}}A=-1;let J=[],Z=1,pe=h+y;const te=1<<h-1;for(let X=0;X<h;X+=1){let ie=0,we=pe;for(;ie<we;)Qn(e,{errors:X,currentLocation:m+we,expectedLocation:m,distance:i,ignoreLocation:f})<=b?ie=we:pe=we,we=Math.floor((pe-ie)/2+ie);pe=we;let de=Math.max(1,m-we+1),re=s?y:Math.min(m+we,y)+h,Ne=Array(re+2);Ne[re+1]=(1<<X)-1;for(let I=re;I>=de;I-=1){let E=I-1,_=r[t.charAt(E)];if(L&&(W[E]=+!!_),Ne[I]=(Ne[I+1]<<1|1)&_,X&&(Ne[I]|=(J[I+1]|J[I])<<1|1|J[I+1]),Ne[I]&te&&(Z=Qn(e,{errors:X,currentLocation:E,expectedLocation:m,distance:i,ignoreLocation:f}),Z<=b)){if(b=Z,A=E,A<=m)break;de=Math.max(1,2*m-A)}}if(Qn(e,{errors:X+1,currentLocation:m,expectedLocation:m,distance:i,ignoreLocation:f})>b)break;J=Ne}const N={isMatch:A>=0,score:Math.max(.001,Z)};if(L){const X=Hp(W,c);X.length?l&&(N.indices=X):N.isMatch=!1}return N}function Fp(t){let e={};for(let r=0,n=t.length;r<n;r+=1){const i=t.charAt(r);e[i]=(e[i]||0)|1<<n-r-1}return e}class al{constructor(e,{location:r=z.location,threshold:n=z.threshold,distance:i=z.distance,includeMatches:o=z.includeMatches,findAllMatches:s=z.findAllMatches,minMatchCharLength:c=z.minMatchCharLength,isCaseSensitive:l=z.isCaseSensitive,ignoreLocation:f=z.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:l,ignoreLocation:f},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const h=(m,b)=>{this.chunks.push({pattern:m,alphabet:Fp(m),startIndex:b})},y=this.pattern.length;if(y>or){let m=0;const b=y%or,A=y-b;for(;m<A;)h(this.pattern.substr(m,or),m),m+=or;if(b){const L=y-or;h(this.pattern.substr(L),L)}}else h(this.pattern,0)}searchIn(e){const{isCaseSensitive:r,includeMatches:n}=this.options;if(r||(e=e.toLowerCase()),this.pattern===e){let A={isMatch:!0,score:0};return n&&(A.indices=[[0,e.length-1]]),A}const{location:i,distance:o,threshold:s,findAllMatches:c,minMatchCharLength:l,ignoreLocation:f}=this.options;let h=[],y=0,m=!1;this.chunks.forEach(({pattern:A,alphabet:L,startIndex:W})=>{const{isMatch:V,score:J,indices:Z}=Up(e,A,L,{location:i+W,distance:o,threshold:s,findAllMatches:c,minMatchCharLength:l,includeMatches:n,ignoreLocation:f});V&&(m=!0),y+=J,V&&Z&&(h=[...h,...Z])});let b={isMatch:m,score:m?y/this.chunks.length:1};return m&&n&&(b.indices=h),b}}class Ut{constructor(e){this.pattern=e}static isMultiMatch(e){return ll(e,this.multiRegex)}static isSingleMatch(e){return ll(e,this.singleRegex)}search(){}}function ll(t,e){const r=t.match(e);return r?r[1]:null}class Wp extends Ut{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const r=e===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class zp extends Ut{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class qp extends Ut{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const r=e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Gp extends Ut{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const r=!e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Vp extends Ut{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const r=e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Kp extends Ut{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const r=!e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class cl extends Ut{constructor(e,{location:r=z.location,threshold:n=z.threshold,distance:i=z.distance,includeMatches:o=z.includeMatches,findAllMatches:s=z.findAllMatches,minMatchCharLength:c=z.minMatchCharLength,isCaseSensitive:l=z.isCaseSensitive,ignoreLocation:f=z.ignoreLocation}={}){super(e),this._bitapSearch=new al(e,{location:r,threshold:n,distance:i,includeMatches:o,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:l,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class ul extends Ut{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let r=0,n;const i=[],o=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+o,i.push([n,r-1]);const s=!!i.length;return{isMatch:s,score:s?0:1,indices:i}}}const Eo=[Wp,ul,qp,Gp,Kp,Vp,zp,cl],fl=Eo.length,Yp=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Jp="|";function Zp(t,e={}){return t.split(Jp).map(r=>{let n=r.trim().split(Yp).filter(o=>o&&!!o.trim()),i=[];for(let o=0,s=n.length;o<s;o+=1){const c=n[o];let l=!1,f=-1;for(;!l&&++f<fl;){const h=Eo[f];let y=h.isMultiMatch(c);y&&(i.push(new h(y,e)),l=!0)}if(!l)for(f=-1;++f<fl;){const h=Eo[f];let y=h.isSingleMatch(c);if(y){i.push(new h(y,e));break}}}return i})}const Xp=new Set([cl.type,ul.type]);class Qp{constructor(e,{isCaseSensitive:r=z.isCaseSensitive,includeMatches:n=z.includeMatches,minMatchCharLength:i=z.minMatchCharLength,ignoreLocation:o=z.ignoreLocation,findAllMatches:s=z.findAllMatches,location:c=z.location,threshold:l=z.threshold,distance:f=z.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:n,minMatchCharLength:i,findAllMatches:s,ignoreLocation:o,location:c,threshold:l,distance:f},this.pattern=r?e:e.toLowerCase(),this.query=Zp(this.pattern,this.options)}static condition(e,r){return r.useExtendedSearch}searchIn(e){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let o=0,s=[],c=0;for(let l=0,f=r.length;l<f;l+=1){const h=r[l];s.length=0,o=0;for(let y=0,m=h.length;y<m;y+=1){const b=h[y],{isMatch:A,indices:L,score:W}=b.search(e);if(A){if(o+=1,c+=W,n){const V=b.constructor.type;Xp.has(V)?s=[...s,...L]:s.push(L)}}else{c=0,o=0,s.length=0;break}}if(o){let y={isMatch:!0,score:c/o};return n&&(y.indices=s),y}}return{isMatch:!1,score:1}}}const Mo=[];function eh(...t){Mo.push(...t)}function Po(t,e){for(let r=0,n=Mo.length;r<n;r+=1){let i=Mo[r];if(i.condition(t,e))return new i(t,e)}return new al(t,e)}const ei={AND:"$and",OR:"$or"},Oo={PATH:"$path",PATTERN:"$val"},Co=t=>!!(t[ei.AND]||t[ei.OR]),th=t=>!!t[Oo.PATH],rh=t=>!Ct(t)&&tl(t)&&!Co(t),pl=t=>({[ei.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function hl(t,e,{auto:r=!0}={}){const n=i=>{let o=Object.keys(i);const s=th(i);if(!s&&o.length>1&&!Co(i))return n(pl(i));if(rh(i)){const l=s?i[Oo.PATH]:o[0],f=s?i[Oo.PATTERN]:i[l];if(!bt(f))throw new Error(kp(l));const h={keyId:Ao(l),pattern:f};return r&&(h.searcher=Po(f,e)),h}let c={children:[],operator:o[0]};return o.forEach(l=>{const f=i[l];Ct(f)&&f.forEach(h=>{c.children.push(n(h))})}),c};return Co(t)||(t=pl(t)),n(t)}function nh(t,{ignoreFieldNorm:e=z.ignoreFieldNorm}){t.forEach(r=>{let n=1;r.matches.forEach(({key:i,norm:o,score:s})=>{const c=i?i.weight:null;n*=Math.pow(s===0&&c?Number.EPSILON:s,(c||1)*(e?1:o))}),r.score=n})}function ih(t,e){const r=t.matches;e.matches=[],ot(r)&&r.forEach(n=>{if(!ot(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let s={indices:i,value:o};n.key&&(s.key=n.key.src),n.idx>-1&&(s.refIndex=n.idx),e.matches.push(s)})}function oh(t,e){e.score=t.score}function sh(t,e,{includeMatches:r=z.includeMatches,includeScore:n=z.includeScore}={}){const i=[];return r&&i.push(ih),n&&i.push(oh),t.map(o=>{const{idx:s}=o,c={item:e[s],refIndex:s};return i.length&&i.forEach(l=>{l(o,c)}),c})}class kt{constructor(e,r={},n){this.options={...z,...r},this.options.useExtendedSearch,this._keyStore=new Dp(this.options.keys),this.setCollection(e,n)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof _o))throw new Error(Cp);this._myIndex=r||sl(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){ot(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const r=[];for(let n=0,i=this._docs.length;n<i;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,i-=1,r.push(o))}return r}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:r=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:o,sortFn:s,ignoreFieldNorm:c}=this.options;let l=bt(e)?bt(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return nh(l,{ignoreFieldNorm:c}),o&&l.sort(s),el(r)&&r>-1&&(l=l.slice(0,r)),sh(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=Po(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:s,n:c})=>{if(!ot(o))return;const{isMatch:l,score:f,indices:h}=r.searchIn(o);l&&i.push({item:o,idx:s,matches:[{score:f,value:o,norm:c,indices:h}]})}),i}_searchLogical(e){const r=hl(e,this.options),n=(c,l,f)=>{if(!c.children){const{keyId:y,searcher:m}=c,b=this._findMatches({key:this._keyStore.get(y),value:this._myIndex.getValueForItemAtKeyId(l,y),searcher:m});return b&&b.length?[{idx:f,item:l,matches:b}]:[]}const h=[];for(let y=0,m=c.children.length;y<m;y+=1){const b=c.children[y],A=n(b,l,f);if(A.length)h.push(...A);else if(c.operator===ei.AND)return[]}return h},i=this._myIndex.records,o={},s=[];return i.forEach(({$:c,i:l})=>{if(ot(c)){let f=n(r,c,l);f.length&&(o[l]||(o[l]={idx:l,item:c,matches:[]},s.push(o[l])),f.forEach(({matches:h})=>{o[l].matches.push(...h)}))}}),s}_searchObjectList(e){const r=Po(e,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:s,i:c})=>{if(!ot(s))return;let l=[];n.forEach((f,h)=>{l.push(...this._findMatches({key:f,value:s[h],searcher:r}))}),l.length&&o.push({idx:c,item:s,matches:l})}),o}_findMatches({key:e,value:r,searcher:n}){if(!ot(r))return[];let i=[];if(Ct(r))r.forEach(({v:o,i:s,n:c})=>{if(!ot(o))return;const{isMatch:l,score:f,indices:h}=n.searchIn(o);l&&i.push({score:f,key:e,value:o,idx:s,norm:c,indices:h})});else{const{v:o,n:s}=r,{isMatch:c,score:l,indices:f}=n.searchIn(o);c&&i.push({score:l,key:e,value:o,norm:s,indices:f})}return i}}kt.version="7.0.0",kt.createIndex=sl,kt.parseIndex=Np,kt.config=z,kt.parseQuery=hl,eh(Qp);function dl(t,e){const r=new kt(e.filterProperties,{keys:["title"]}),n=t.target.value,o=r.search(n).map(s=>s.item.key||s.item.keys.join("|"));Object.keys(e.filters).forEach(s=>{e.querySelector(`[data-details="${s}"]`).parentElement.style.display=o.includes(s)||!n?"":"none"})}function ah(t,e){const r=t.target.getAttribute("data-close").replace("|","-");e.querySelector(`#filter-${r}`).reset(),e.dispatchEvent(new CustomEvent("filter")),e.requestUpdate()}function gl(t){t.renderRoot.querySelector("#itemfilter-input-search").value="",dl({target:{value:""}},t)}function lh(t,e){e.inlineMode&&t.stopPropagation()}function ch(t){t.inlineMode&&(t.showDropdown=!0,t.requestUpdate())}function uh(t,e){e.inlineMode&&(t.stopPropagation(),e.showDropdown=!0,e.requestUpdate())}function fh(t,e){e.inlineMode&&t.key==="Escape"&&e.showDropdown&&(gl(e),e.showDropdown=!1,e.requestUpdate())}function ph(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&(gl(e),e.showDropdown=!1,e.requestUpdate())}function hh(t,e){var r=0,n=0,i=0,o=0,s=0,c=0,l=0,f=0,h=null,y=null,m=t[0],b=t[1],A=e.length;for(r;r<A;r++){n=0;var L=e[r].length-1,W=e[r];if(h=W[0],h[0]!==W[L][0]&&h[1]!==W[L][1])throw new Error("First and last coordinates in a ring must be the same");for(s=h[0]-m,c=h[1]-b,n;n<L;n++){if(y=W[n+1],f=y[1]-b,c<0&&f<0||c>0&&f>0){h=y,c=f,s=h[0]-m;continue}if(l=y[0]-t[0],f>0&&c<=0){if(o=s*f-l*c,o>0)i=i+1;else if(o===0)return 0}else if(c>0&&f<=0){if(o=s*f-l*c,o<0)i=i+1;else if(o===0)return 0}else if(f===0&&c<0){if(o=s*f-l*c,o===0)return 0}else if(c===0&&f<0){if(o=s*f-l*c,o===0)return 0}else if(c===0&&f===0){if(l<=0&&s>=0)return 0;if(s<=0&&l>=0)return 0}h=y,c=f,s=l}}return i%2!==0}var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function dh(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var yl=Object.prototype.toString,vl=function(e){var r=yl.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&yl.call(e.callee)==="[object Function]"),n},ko,ml;function gh(){if(ml)return ko;ml=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=vl,i=Object.prototype.propertyIsEnumerable,o=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(m){var b=m.constructor;return b&&b.prototype===m},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!f["$"+m]&&e.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{l(window[m])}catch{return!0}}catch{return!0}return!1}(),y=function(m){if(typeof window>"u"||!h)return l(m);try{return l(m)}catch{return!1}};t=function(b){var A=b!==null&&typeof b=="object",L=r.call(b)==="[object Function]",W=n(b),V=A&&r.call(b)==="[object String]",J=[];if(!A&&!L&&!W)throw new TypeError("Object.keys called on a non-object");var Z=s&&L;if(V&&b.length>0&&!e.call(b,0))for(var pe=0;pe<b.length;++pe)J.push(String(pe));if(W&&b.length>0)for(var te=0;te<b.length;++te)J.push(String(te));else for(var N in b)!(Z&&N==="prototype")&&e.call(b,N)&&J.push(String(N));if(o)for(var X=y(b),ie=0;ie<c.length;++ie)!(X&&c[ie]==="constructor")&&e.call(b,c[ie])&&J.push(c[ie]);return J}}return ko=t,ko}var yh=Array.prototype.slice,vh=vl,bl=Object.keys,ti=bl?function(e){return bl(e)}:gh(),wl=Object.keys;ti.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(n){return vh(n)?wl(yh.call(n)):wl(n)})}else Object.keys=ti;return Object.keys||ti};var Lo=ti,mh=Error,bh=EvalError,wh=RangeError,$h=ReferenceError,$l=SyntaxError,Ft=TypeError,xh=URIError,ri=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0},xl=typeof Symbol<"u"&&Symbol,Sh=ri,To=function(){return typeof xl!="function"||typeof Symbol!="function"||typeof xl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Sh()},Sl={foo:{}},Ah=Object,_h=function(){return{__proto__:Sl}.foo===Sl.foo&&!({__proto__:null}instanceof Ah)},Eh="Function.prototype.bind called on incompatible ",Mh=Object.prototype.toString,Ph=Math.max,Oh="[object Function]",Al=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var o=0;o<r.length;o+=1)n[o+e.length]=r[o];return n},Ch=function(e,r){for(var n=[],i=r||0,o=0;i<e.length;i+=1,o+=1)n[o]=e[i];return n},kh=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Lh=function(e){var r=this;if(typeof r!="function"||Mh.apply(r)!==Oh)throw new TypeError(Eh+r);for(var n=Ch(arguments,1),i,o=function(){if(this instanceof i){var h=r.apply(this,Al(n,arguments));return Object(h)===h?h:this}return r.apply(e,Al(n,arguments))},s=Ph(0,r.length-n.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(i=Function("binder","return function ("+kh(c,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var f=function(){};f.prototype=r.prototype,i.prototype=new f,f.prototype=null}return i},Th=Lh,Io=Function.prototype.bind||Th,Ih=Function.prototype.call,Dh=Object.prototype.hasOwnProperty,Rh=Io,_l=Rh.call(Ih,Dh),ae,jh=mh,Bh=bh,Nh=wh,Hh=$h,Or=$l,Cr=Ft,Uh=xh,El=Function,Do=function(t){try{return El('"use strict"; return ('+t+").constructor;")()}catch{}},sr=Object.getOwnPropertyDescriptor;if(sr)try{sr({},"")}catch{sr=null}var Ro=function(){throw new Cr},Fh=sr?function(){try{return arguments.callee,Ro}catch{try{return sr(arguments,"callee").get}catch{return Ro}}}():Ro,kr=To(),Wh=_h(),Ue=Object.getPrototypeOf||(Wh?function(t){return t.__proto__}:null),Lr={},zh=typeof Uint8Array>"u"||!Ue?ae:Ue(Uint8Array),ar={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ae:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ae:ArrayBuffer,"%ArrayIteratorPrototype%":kr&&Ue?Ue([][Symbol.iterator]()):ae,"%AsyncFromSyncIteratorPrototype%":ae,"%AsyncFunction%":Lr,"%AsyncGenerator%":Lr,"%AsyncGeneratorFunction%":Lr,"%AsyncIteratorPrototype%":Lr,"%Atomics%":typeof Atomics>"u"?ae:Atomics,"%BigInt%":typeof BigInt>"u"?ae:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ae:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ae:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ae:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":jh,"%eval%":eval,"%EvalError%":Bh,"%Float32Array%":typeof Float32Array>"u"?ae:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ae:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ae:FinalizationRegistry,"%Function%":El,"%GeneratorFunction%":Lr,"%Int8Array%":typeof Int8Array>"u"?ae:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ae:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ae:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":kr&&Ue?Ue(Ue([][Symbol.iterator]())):ae,"%JSON%":typeof JSON=="object"?JSON:ae,"%Map%":typeof Map>"u"?ae:Map,"%MapIteratorPrototype%":typeof Map>"u"||!kr||!Ue?ae:Ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ae:Promise,"%Proxy%":typeof Proxy>"u"?ae:Proxy,"%RangeError%":Nh,"%ReferenceError%":Hh,"%Reflect%":typeof Reflect>"u"?ae:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ae:Set,"%SetIteratorPrototype%":typeof Set>"u"||!kr||!Ue?ae:Ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ae:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":kr&&Ue?Ue(""[Symbol.iterator]()):ae,"%Symbol%":kr?Symbol:ae,"%SyntaxError%":Or,"%ThrowTypeError%":Fh,"%TypedArray%":zh,"%TypeError%":Cr,"%Uint8Array%":typeof Uint8Array>"u"?ae:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ae:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ae:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ae:Uint32Array,"%URIError%":Uh,"%WeakMap%":typeof WeakMap>"u"?ae:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ae:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ae:WeakSet};if(Ue)try{null.error}catch(t){var qh=Ue(Ue(t));ar["%Error.prototype%"]=qh}var Gh=function t(e){var r;if(e==="%AsyncFunction%")r=Do("async function () {}");else if(e==="%GeneratorFunction%")r=Do("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Do("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Ue&&(r=Ue(i.prototype))}return ar[e]=r,r},Ml={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},mn=Io,ni=_l,Vh=mn.call(Function.call,Array.prototype.concat),Kh=mn.call(Function.apply,Array.prototype.splice),Pl=mn.call(Function.call,String.prototype.replace),ii=mn.call(Function.call,String.prototype.slice),Yh=mn.call(Function.call,RegExp.prototype.exec),Jh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Zh=/\\(\\)?/g,Xh=function(e){var r=ii(e,0,1),n=ii(e,-1);if(r==="%"&&n!=="%")throw new Or("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Or("invalid intrinsic syntax, expected opening `%`");var i=[];return Pl(e,Jh,function(o,s,c,l){i[i.length]=c?Pl(l,Zh,"$1"):s||o}),i},Qh=function(e,r){var n=e,i;if(ni(Ml,n)&&(i=Ml[n],n="%"+i[0]+"%"),ni(ar,n)){var o=ar[n];if(o===Lr&&(o=Gh(n)),typeof o>"u"&&!r)throw new Cr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Or("intrinsic "+e+" does not exist!")},wt=function(e,r){if(typeof e!="string"||e.length===0)throw new Cr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Cr('"allowMissing" argument must be a boolean');if(Yh(/^%?[^%]*%?$/,e)===null)throw new Or("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Xh(e),i=n.length>0?n[0]:"",o=Qh("%"+i+"%",r),s=o.name,c=o.value,l=!1,f=o.alias;f&&(i=f[0],Kh(n,Vh([0,1],f)));for(var h=1,y=!0;h<n.length;h+=1){var m=n[h],b=ii(m,0,1),A=ii(m,-1);if((b==='"'||b==="'"||b==="`"||A==='"'||A==="'"||A==="`")&&b!==A)throw new Or("property names with quotes must have matching quotes");if((m==="constructor"||!y)&&(l=!0),i+="."+m,s="%"+i+"%",ni(ar,s))c=ar[s];else if(c!=null){if(!(m in c)){if(!r)throw new Cr("base intrinsic for "+e+" exists, but the property is not available.");return}if(sr&&h+1>=n.length){var L=sr(c,m);y=!!L,y&&"get"in L&&!("originalValue"in L.get)?c=L.get:c=c[m]}else y=ni(c,m),c=c[m];y&&!l&&(ar[s]=c)}}return c},ed=wt,oi=ed("%Object.defineProperty%",!0)||!1;if(oi)try{oi({},"a",{value:1})}catch{oi=!1}var jo=oi,td=wt,si=td("%Object.getOwnPropertyDescriptor%",!0);if(si)try{si([],"length")}catch{si=null}var Bo=si,Ol=jo,rd=$l,Tr=Ft,Cl=Bo,No=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Tr("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Tr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Tr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Tr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Tr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Tr("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!Cl&&Cl(e,r);if(Ol)Ol(e,r,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(c||!i&&!o&&!s)e[r]=n;else throw new rd("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ho=jo,kl=function(){return!!Ho};kl.hasArrayLengthDefineBug=function(){if(!Ho)return null;try{return Ho([],"length",{value:1}).length!==1}catch{return!0}};var Uo=kl,nd=Lo,id=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",od=Object.prototype.toString,sd=Array.prototype.concat,Ll=No,ad=function(t){return typeof t=="function"&&od.call(t)==="[object Function]"},Tl=Uo(),ld=function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!ad(n)||!n())return}Tl?Ll(t,e,r,!0):Ll(t,e,r)},Il=function(t,e){var r=arguments.length>2?arguments[2]:{},n=nd(e);id&&(n=sd.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)ld(t,n[i],e[n[i]],r[n[i]])};Il.supportsDescriptors=!!Tl;var lr=Il,Dl={exports:{}},cd=wt,Rl=No,ud=Uo(),jl=Bo,Bl=Ft,fd=cd("%Math.floor%"),pd=function(e,r){if(typeof e!="function")throw new Bl("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||fd(r)!==r)throw new Bl("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&jl){var s=jl(e,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(ud?Rl(e,"length",r,!0,!0):Rl(e,"length",r)),e};(function(t){var e=Io,r=wt,n=pd,i=Ft,o=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||e.call(s,o),l=jo,f=r("%Math.max%");t.exports=function(m){if(typeof m!="function")throw new i("a function is required");var b=c(e,s,arguments);return n(b,1+f(0,m.length-(arguments.length-1)),!0)};var h=function(){return c(e,o,arguments)};l?l(t.exports,"apply",{value:h}):t.exports.apply=h})(Dl);var Ir=Dl.exports,Nl=wt,Hl=Ir,hd=Hl(Nl("String.prototype.indexOf")),ct=function(e,r){var n=Nl(e,!!r);return typeof n=="function"&&hd(e,".prototype.")>-1?Hl(n):n},dd=Lo,Ul=ri(),Fl=ct,Wl=Object,gd=Fl("Array.prototype.push"),zl=Fl("Object.prototype.propertyIsEnumerable"),yd=Ul?Object.getOwnPropertySymbols:null,ql=function(e,r){if(e==null)throw new TypeError("target must be an object");var n=Wl(e);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var o=Wl(arguments[i]),s=dd(o),c=Ul&&(Object.getOwnPropertySymbols||yd);if(c)for(var l=c(o),f=0;f<l.length;++f){var h=l[f];zl(o,h)&&gd(s,h)}for(var y=0;y<s.length;++y){var m=s[y];if(zl(o,m)){var b=o[m];n[m]=b}}}return n},Fo=ql,vd=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),o="";for(var s in i)o+=s;return t!==o},md=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}return!1},Gl=function(){return!Object.assign||vd()||md()?Fo:Object.assign},bd=lr,wd=Gl,$d=function(){var e=wd();return bd(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e},xd=lr,Sd=Ir,Ad=ql,Vl=Gl,_d=$d,Ed=Sd.apply(Vl()),Kl=function(e,r){return Ed(Object,arguments)};xd(Kl,{getPolyfill:Vl,implementation:Ad,shim:_d});var Md=Kl,bn=function(){return typeof(function(){}).name=="string"},wn=Object.getOwnPropertyDescriptor;if(wn)try{wn([],"length")}catch{wn=null}bn.functionsHaveConfigurableNames=function(){if(!bn()||!wn)return!1;var e=wn(function(){},"name");return!!e&&!!e.configurable};var Pd=Function.prototype.bind;bn.boundFunctionsHaveNames=function(){return bn()&&typeof Pd=="function"&&(function(){}).bind().name!==""};var Od=bn,Yl=No,Cd=Uo(),kd=Od.functionsHaveConfigurableNames(),Ld=Ft,Td=function(e,r){if(typeof e!="function")throw new Ld("`fn` is not a function");var n=arguments.length>2&&!!arguments[2];return(!n||kd)&&(Cd?Yl(e,"name",r,!0,!0):Yl(e,"name",r)),e},Id=Td,Dd=Ft,Rd=Object,Jl=Id(function(){if(this==null||this!==Rd(this))throw new Dd("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0),jd=Jl,Bd=lr.supportsDescriptors,Nd=Object.getOwnPropertyDescriptor,Zl=function(){if(Bd&&/a/mig.flags==="gim"){var e=Nd(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return e.get}}return jd},Hd=lr.supportsDescriptors,Ud=Zl,Fd=Object.getOwnPropertyDescriptor,Wd=Object.defineProperty,zd=TypeError,Xl=Object.getPrototypeOf,qd=/a/,Gd=function(){if(!Hd||!Xl)throw new zd("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=Ud(),r=Xl(qd),n=Fd(r,"flags");return(!n||n.get!==e)&&Wd(r,"flags",{configurable:!0,enumerable:!1,get:e}),e},Vd=lr,Kd=Ir,Yd=Jl,Ql=Zl,Jd=Gd,ec=Kd(Ql());Vd(ec,{getPolyfill:Ql,implementation:Yd,shim:Jd});var Zd=ec,ai={exports:{}},Xd=ri,cr=function(){return Xd()&&!!Symbol.toStringTag},Qd=cr(),eg=ct,Wo=eg("Object.prototype.toString"),li=function(e){return Qd&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Wo(e)==="[object Arguments]"},tc=function(e){return li(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Wo(e)!=="[object Array]"&&Wo(e.callee)==="[object Function]"},tg=function(){return li(arguments)}();li.isLegacyArguments=tc;var rc=tg?li:tc;const rg=dh(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var zo=typeof Map=="function"&&Map.prototype,qo=Object.getOwnPropertyDescriptor&&zo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ci=zo&&qo&&typeof qo.get=="function"?qo.get:null,nc=zo&&Map.prototype.forEach,Go=typeof Set=="function"&&Set.prototype,Vo=Object.getOwnPropertyDescriptor&&Go?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ui=Go&&Vo&&typeof Vo.get=="function"?Vo.get:null,ic=Go&&Set.prototype.forEach,ng=typeof WeakMap=="function"&&WeakMap.prototype,$n=ng?WeakMap.prototype.has:null,ig=typeof WeakSet=="function"&&WeakSet.prototype,xn=ig?WeakSet.prototype.has:null,og=typeof WeakRef=="function"&&WeakRef.prototype,oc=og?WeakRef.prototype.deref:null,sg=Boolean.prototype.valueOf,ag=Object.prototype.toString,lg=Function.prototype.toString,cg=String.prototype.match,Ko=String.prototype.slice,Wt=String.prototype.replace,ug=String.prototype.toUpperCase,sc=String.prototype.toLowerCase,ac=RegExp.prototype.test,lc=Array.prototype.concat,$t=Array.prototype.join,fg=Array.prototype.slice,cc=Math.floor,Yo=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Jo=Object.getOwnPropertySymbols,Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ve=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Dr||!0)?Symbol.toStringTag:null,uc=Object.prototype.propertyIsEnumerable,fc=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function pc(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||ac.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-cc(-t):cc(t);if(n!==t){var i=String(n),o=Ko.call(e,i.length+1);return Wt.call(i,r,"$&_")+"."+Wt.call(Wt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Wt.call(e,r,"$&_")}var Xo=rg,hc=Xo.custom,dc=vc(hc)?hc:null,pg=function t(e,r,n,i){var o=r||{};if(zt(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zt(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=zt(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zt(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zt(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return bc(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return c?pc(e,l):l}if(typeof e=="bigint"){var f=String(e)+"n";return c?pc(e,f):f}var h=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=h&&h>0&&typeof e=="object")return Qo(e)?"[Array]":"[Object]";var y=Cg(o,n);if(typeof i>"u")i=[];else if(mc(i,e)>=0)return"[Circular]";function m(et,I,E){if(I&&(i=fg.call(i),i.push(I)),E){var _={depth:o.depth};return zt(o,"quoteStyle")&&(_.quoteStyle=o.quoteStyle),t(et,_,n+1,i)}return t(et,o,n+1,i)}if(typeof e=="function"&&!yc(e)){var b=$g(e),A=fi(e,m);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(A.length>0?" { "+$t.call(A,", ")+" }":"")}if(vc(e)){var L=Dr?Wt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zo.call(e);return typeof e=="object"&&!Dr?Sn(L):L}if(Mg(e)){for(var W="<"+sc.call(String(e.nodeName)),V=e.attributes||[],J=0;J<V.length;J++)W+=" "+V[J].name+"="+gc(hg(V[J].value),"double",o);return W+=">",e.childNodes&&e.childNodes.length&&(W+="..."),W+="</"+sc.call(String(e.nodeName))+">",W}if(Qo(e)){if(e.length===0)return"[]";var Z=fi(e,m);return y&&!Og(Z)?"["+ts(Z,y)+"]":"[ "+$t.call(Z,", ")+" ]"}if(gg(e)){var pe=fi(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!uc.call(e,"cause")?"{ ["+String(e)+"] "+$t.call(lc.call("[cause]: "+m(e.cause),pe),", ")+" }":pe.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$t.call(pe,", ")+" }"}if(typeof e=="object"&&s){if(dc&&typeof e[dc]=="function"&&Xo)return Xo(e,{depth:h-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(xg(e)){var te=[];return nc&&nc.call(e,function(et,I){te.push(m(I,e,!0)+" => "+m(et,e))}),wc("Map",ci.call(e),te,y)}if(_g(e)){var N=[];return ic&&ic.call(e,function(et){N.push(m(et,e))}),wc("Set",ui.call(e),N,y)}if(Sg(e))return es("WeakMap");if(Eg(e))return es("WeakSet");if(Ag(e))return es("WeakRef");if(vg(e))return Sn(m(Number(e)));if(bg(e))return Sn(m(Yo.call(e)));if(mg(e))return Sn(sg.call(e));if(yg(e))return Sn(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===Ge)return"{ [object globalThis] }";if(!dg(e)&&!yc(e)){var X=fi(e,m),ie=fc?fc(e)===Object.prototype:e instanceof Object||e.constructor===Object,we=e instanceof Object?"":"null prototype",de=!ie&&Ve&&Object(e)===e&&Ve in e?Ko.call(qt(e),8,-1):we?"Object":"",re=ie||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Ne=re+(de||we?"["+$t.call(lc.call([],de||[],we||[]),": ")+"] ":"");return X.length===0?Ne+"{}":y?Ne+"{"+ts(X,y)+"}":Ne+"{ "+$t.call(X,", ")+" }"}return String(e)};function gc(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function hg(t){return Wt.call(String(t),/"/g,""")}function Qo(t){return qt(t)==="[object Array]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function dg(t){return qt(t)==="[object Date]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function yc(t){return qt(t)==="[object RegExp]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function gg(t){return qt(t)==="[object Error]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function yg(t){return qt(t)==="[object String]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function vg(t){return qt(t)==="[object Number]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function mg(t){return qt(t)==="[object Boolean]"&&(!Ve||!(typeof t=="object"&&Ve in t))}function vc(t){if(Dr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Zo)return!1;try{return Zo.call(t),!0}catch{}return!1}function bg(t){if(!t||typeof t!="object"||!Yo)return!1;try{return Yo.call(t),!0}catch{}return!1}var wg=Object.prototype.hasOwnProperty||function(t){return t in this};function zt(t,e){return wg.call(t,e)}function qt(t){return ag.call(t)}function $g(t){if(t.name)return t.name;var e=cg.call(lg.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function mc(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function xg(t){if(!ci||!t||typeof t!="object")return!1;try{ci.call(t);try{ui.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Sg(t){if(!$n||!t||typeof t!="object")return!1;try{$n.call(t,$n);try{xn.call(t,xn)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Ag(t){if(!oc||!t||typeof t!="object")return!1;try{return oc.call(t),!0}catch{}return!1}function _g(t){if(!ui||!t||typeof t!="object")return!1;try{ui.call(t);try{ci.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Eg(t){if(!xn||!t||typeof t!="object")return!1;try{xn.call(t,xn);try{$n.call(t,$n)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Mg(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function bc(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return bc(Ko.call(t,0,e.maxStringLength),e)+n}var i=Wt.call(Wt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Pg);return gc(i,"single",e)}function Pg(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+ug.call(e.toString(16))}function Sn(t){return"Object("+t+")"}function es(t){return t+" { ? }"}function wc(t,e,r,n){var i=n?ts(r,n):$t.call(r,", ");return t+" ("+e+") {"+i+"}"}function Og(t){for(var e=0;e<t.length;e++)if(mc(t[e],`
|
|
485
|
+
`)>=0)return!1;return!0}function Cg(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=$t.call(Array(t.indent+1)," ");else return null;return{base:r,prev:$t.call(Array(e+1),r)}}function ts(t,e){if(t.length===0)return"";var r=`
|
|
486
|
+
`+e.prev+e.base;return r+$t.call(t,","+r)+`
|
|
487
|
+
`+e.prev}function fi(t,e){var r=Qo(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=zt(t,i)?e(t[i],t):""}var o=typeof Jo=="function"?Jo(t):[],s;if(Dr){s={};for(var c=0;c<o.length;c++)s["$"+o[c]]=o[c]}for(var l in t)zt(t,l)&&(r&&String(Number(l))===l&&l<t.length||Dr&&s["$"+l]instanceof Symbol||(ac.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if(typeof Jo=="function")for(var f=0;f<o.length;f++)uc.call(t,o[f])&&n.push("["+e(o[f])+"]: "+e(t[o[f]],t));return n}var $c=wt,Rr=ct,kg=pg,Lg=Ft,pi=$c("%WeakMap%",!0),hi=$c("%Map%",!0),Tg=Rr("WeakMap.prototype.get",!0),Ig=Rr("WeakMap.prototype.set",!0),Dg=Rr("WeakMap.prototype.has",!0),Rg=Rr("Map.prototype.get",!0),jg=Rr("Map.prototype.set",!0),Bg=Rr("Map.prototype.has",!0),rs=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},Ng=function(t,e){var r=rs(t,e);return r&&r.value},Hg=function(t,e,r){var n=rs(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Ug=function(t,e){return!!rs(t,e)},xc=function(){var e,r,n,i={assert:function(o){if(!i.has(o))throw new Lg("Side channel does not contain "+kg(o))},get:function(o){if(pi&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Tg(e,o)}else if(hi){if(r)return Rg(r,o)}else if(n)return Ng(n,o)},has:function(o){if(pi&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Dg(e,o)}else if(hi){if(r)return Bg(r,o)}else if(n)return Ug(n,o);return!1},set:function(o,s){pi&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new pi),Ig(e,o,s)):hi?(r||(r=new hi),jg(r,o,s)):(n||(n={key:{},next:null}),Hg(n,o,s))}};return i},Fg=_l,An=xc(),Lt=Ft,ns={assert:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Lt("`O` is not an object");if(typeof e!="string")throw new Lt("`slot` must be a string");if(An.assert(t),!ns.has(t,e))throw new Lt("`"+e+"` is not present on `O`")},get:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Lt("`O` is not an object");if(typeof e!="string")throw new Lt("`slot` must be a string");var r=An.get(t);return r&&r["$"+e]},has:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Lt("`O` is not an object");if(typeof e!="string")throw new Lt("`slot` must be a string");var r=An.get(t);return!!r&&Fg(r,"$"+e)},set:function(t,e,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Lt("`O` is not an object");if(typeof e!="string")throw new Lt("`slot` must be a string");var n=An.get(t);n||(n={},An.set(t,n)),n["$"+e]=r}};Object.freeze&&Object.freeze(ns);var Wg=ns,_n=Wg,zg=SyntaxError,Sc=typeof StopIteration=="object"?StopIteration:null,qg=function(e){if(!Sc)throw new zg("this environment lacks StopIteration");_n.set(e,"[[Done]]",!1);var r={next:function(){var i=_n.get(this,"[[Iterator]]"),o=_n.get(i,"[[Done]]");try{return{done:o,value:o?void 0:i.next()}}catch(s){if(_n.set(i,"[[Done]]",!0),s!==Sc)throw s;return{done:!0,value:void 0}}}};return _n.set(r,"[[Iterator]]",e),r},is,Ac;function Gg(){if(Ac)return is;Ac=1;var t={}.toString;return is=Array.isArray||function(e){return t.call(e)=="[object Array]"},is}var Vg=String.prototype.valueOf,Kg=function(e){try{return Vg.call(e),!0}catch{return!1}},Yg=Object.prototype.toString,Jg="[object String]",Zg=cr(),_c=function(e){return typeof e=="string"?!0:typeof e!="object"?!1:Zg?Kg(e):Yg.call(e)===Jg},os=typeof Map=="function"&&Map.prototype?Map:null,Xg=typeof Set=="function"&&Set.prototype?Set:null,di;os||(di=function(e){return!1});var Ec=os?Map.prototype.has:null,Mc=Xg?Set.prototype.has:null;!di&&!Ec&&(di=function(e){return!1});var Pc=di||function(e){if(!e||typeof e!="object")return!1;try{if(Ec.call(e),Mc)try{Mc.call(e)}catch{return!0}return e instanceof os}catch{}return!1},Qg=typeof Map=="function"&&Map.prototype?Map:null,ss=typeof Set=="function"&&Set.prototype?Set:null,gi;ss||(gi=function(e){return!1});var Oc=Qg?Map.prototype.has:null,Cc=ss?Set.prototype.has:null;!gi&&!Cc&&(gi=function(e){return!1});var kc=gi||function(e){if(!e||typeof e!="object")return!1;try{if(Cc.call(e),Oc)try{Oc.call(e)}catch{return!0}return e instanceof ss}catch{}return!1},Lc=rc,Tc=qg;if(To()||ri()){var as=Symbol.iterator;ai.exports=function(e){if(e!=null&&typeof e[as]<"u")return e[as]();if(Lc(e))return Array.prototype[as].call(e)}}else{var ey=Gg(),ty=_c,Ic=wt,ry=Ic("%Map%",!0),ny=Ic("%Set%",!0),ht=ct,Dc=ht("Array.prototype.push"),Rc=ht("String.prototype.charCodeAt"),iy=ht("String.prototype.slice"),oy=function(e,r){var n=e.length;if(r+1>=n)return r+1;var i=Rc(e,r);if(i<55296||i>56319)return r+1;var o=Rc(e,r+1);return o<56320||o>57343?r+1:r+2},ls=function(e){var r=0;return{next:function(){var i=r>=e.length,o;return i||(o=e[r],r+=1),{done:i,value:o}}}},jc=function(e,r){if(ey(e)||Lc(e))return ls(e);if(ty(e)){var n=0;return{next:function(){var o=oy(e,n),s=iy(e,n,o);return n=o,{done:o>e.length,value:s}}}}if(r&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()};if(!ry&&!ny)ai.exports=function(e){if(e!=null)return jc(e,!0)};else{var sy=Pc,ay=kc,Bc=ht("Map.prototype.forEach",!0),Nc=ht("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Hc=ht("Map.prototype.iterator",!0),Uc=ht("Set.prototype.iterator",!0);var Fc=ht("Map.prototype.@@iterator",!0)||ht("Map.prototype._es6-shim iterator_",!0),Wc=ht("Set.prototype.@@iterator",!0)||ht("Set.prototype._es6-shim iterator_",!0),ly=function(e){if(sy(e)){if(Hc)return Tc(Hc(e));if(Fc)return Fc(e);if(Bc){var r=[];return Bc(e,function(i,o){Dc(r,[o,i])}),ls(r)}}if(ay(e)){if(Uc)return Tc(Uc(e));if(Wc)return Wc(e);if(Nc){var n=[];return Nc(e,function(i){Dc(n,i)}),ls(n)}}};ai.exports=function(e){return ly(e)||jc(e)}}}var cy=ai.exports,zc=function(t){return t!==t},qc=function(e,r){return e===0&&r===0?1/e===1/r:!!(e===r||zc(e)&&zc(r))},uy=qc,Gc=function(){return typeof Object.is=="function"?Object.is:uy},fy=Gc,py=lr,hy=function(){var e=fy();return py(Object,{is:e},{is:function(){return Object.is!==e}}),e},dy=lr,gy=Ir,yy=qc,Vc=Gc,vy=hy,Kc=gy(Vc(),Object);dy(Kc,{getPolyfill:Vc,implementation:yy,shim:vy});var my=Kc,by={}.toString,wy=Array.isArray||function(t){return by.call(t)=="[object Array]"},$y=Ir,Yc=ct,xy=wt,cs=xy("%ArrayBuffer%",!0),yi=Yc("ArrayBuffer.prototype.byteLength",!0),Sy=Yc("Object.prototype.toString"),Jc=!!cs&&!yi&&new cs(0).slice,Zc=!!Jc&&$y(Jc),Xc=yi||Zc?function(e){if(!e||typeof e!="object")return!1;try{return yi?yi(e):Zc(e,0),!0}catch{return!1}}:cs?function(e){return Sy(e)==="[object ArrayBuffer]"}:function(e){return!1},Ay=Date.prototype.getDay,_y=function(e){try{return Ay.call(e),!0}catch{return!1}},Ey=Object.prototype.toString,My="[object Date]",Py=cr(),Oy=function(e){return typeof e!="object"||e===null?!1:Py?_y(e):Ey.call(e)===My},us=ct,Qc=cr(),eu,tu,fs,ps;if(Qc){eu=us("Object.prototype.hasOwnProperty"),tu=us("RegExp.prototype.exec"),fs={};var hs=function(){throw fs};ps={toString:hs,valueOf:hs},typeof Symbol.toPrimitive=="symbol"&&(ps[Symbol.toPrimitive]=hs)}var Cy=us("Object.prototype.toString"),ky=Object.getOwnPropertyDescriptor,Ly="[object RegExp]",Ty=Qc?function(e){if(!e||typeof e!="object")return!1;var r=ky(e,"lastIndex"),n=r&&eu(r,"value");if(!n)return!1;try{tu(e,ps)}catch(i){return i===fs}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:Cy(e)===Ly},Iy=ct,ru=Iy("SharedArrayBuffer.prototype.byteLength",!0),Dy=ru?function(e){if(!e||typeof e!="object")return!1;try{return ru(e),!0}catch{return!1}}:function(e){return!1},Ry=Number.prototype.toString,jy=function(e){try{return Ry.call(e),!0}catch{return!1}},By=Object.prototype.toString,Ny="[object Number]",Hy=cr(),Uy=function(e){return typeof e=="number"?!0:typeof e!="object"?!1:Hy?jy(e):By.call(e)===Ny},nu=ct,Fy=nu("Boolean.prototype.toString"),Wy=nu("Object.prototype.toString"),zy=function(e){try{return Fy(e),!0}catch{return!1}},qy="[object Boolean]",Gy=cr(),Vy=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:Gy&&Symbol.toStringTag in e?zy(e):Wy(e)===qy},ds={exports:{}},Ky=Object.prototype.toString,Yy=To();if(Yy){var Jy=Symbol.prototype.toString,Zy=/^Symbol\(.*\)$/,Xy=function(e){return typeof e.valueOf()!="symbol"?!1:Zy.test(Jy.call(e))};ds.exports=function(e){if(typeof e=="symbol")return!0;if(Ky.call(e)!=="[object Symbol]")return!1;try{return Xy(e)}catch{return!1}}}else ds.exports=function(e){return!1};var Qy=ds.exports,gs={exports:{}},iu=typeof BigInt<"u"&&BigInt,ev=function(){return typeof iu=="function"&&typeof BigInt=="function"&&typeof iu(42)=="bigint"&&typeof BigInt(42)=="bigint"},tv=ev();if(tv){var rv=BigInt.prototype.valueOf,nv=function(e){try{return rv.call(e),!0}catch{}return!1};gs.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:nv(e)}}else gs.exports=function(e){return!1};var iv=gs.exports,ov=_c,sv=Uy,av=Vy,lv=Qy,cv=iv,uv=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(ov(e))return"String";if(sv(e))return"Number";if(av(e))return"Boolean";if(lv(e))return"Symbol";if(cv(e))return"BigInt"},vi=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,ou=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,mi;vi||(mi=function(e){return!1});var ys=vi?vi.prototype.has:null,vs=ou?ou.prototype.has:null;!mi&&!ys&&(mi=function(e){return!1});var fv=mi||function(e){if(!e||typeof e!="object")return!1;try{if(ys.call(e,ys),vs)try{vs.call(e,vs)}catch{return!0}return e instanceof vi}catch{}return!1},ms={exports:{}},pv=wt,su=ct,hv=pv("%WeakSet%",!0),bs=su("WeakSet.prototype.has",!0);if(bs){var ws=su("WeakMap.prototype.has",!0);ms.exports=function(e){if(!e||typeof e!="object")return!1;try{if(bs(e,bs),ws)try{ws(e,ws)}catch{return!0}return e instanceof hv}catch{}return!1}}else ms.exports=function(e){return!1};var dv=ms.exports,gv=Pc,yv=kc,vv=fv,mv=dv,bv=function(e){if(e&&typeof e=="object"){if(gv(e))return"Map";if(yv(e))return"Set";if(vv(e))return"WeakMap";if(mv(e))return"WeakSet"}return!1},au=Function.prototype.toString,jr=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,$s,bi;if(typeof jr=="function"&&typeof Object.defineProperty=="function")try{$s=Object.defineProperty({},"length",{get:function(){throw bi}}),bi={},jr(function(){throw 42},null,$s)}catch(t){t!==bi&&(jr=null)}else jr=null;var wv=/^\s*class\b/,xs=function(e){try{var r=au.call(e);return wv.test(r)}catch{return!1}},Ss=function(e){try{return xs(e)?!1:(au.call(e),!0)}catch{return!1}},wi=Object.prototype.toString,$v="[object Object]",xv="[object Function]",Sv="[object GeneratorFunction]",Av="[object HTMLAllCollection]",_v="[object HTML document.all class]",Ev="[object HTMLCollection]",Mv=typeof Symbol=="function"&&!!Symbol.toStringTag,Pv=!(0 in[,]),As=function(){return!1};if(typeof document=="object"){var Ov=document.all;wi.call(Ov)===wi.call(document.all)&&(As=function(e){if((Pv||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=wi.call(e);return(r===Av||r===_v||r===Ev||r===$v)&&e("")==null}catch{}return!1})}var Cv=jr?function(e){if(As(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{jr(e,null,$s)}catch(r){if(r!==bi)return!1}return!xs(e)&&Ss(e)}:function(e){if(As(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Mv)return Ss(e);if(xs(e))return!1;var r=wi.call(e);return r!==xv&&r!==Sv&&!/^\[object HTML/.test(r)?!1:Ss(e)},kv=Cv,Lv=Object.prototype.toString,lu=Object.prototype.hasOwnProperty,Tv=function(e,r,n){for(var i=0,o=e.length;i<o;i++)lu.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))},Iv=function(e,r,n){for(var i=0,o=e.length;i<o;i++)n==null?r(e.charAt(i),i,e):r.call(n,e.charAt(i),i,e)},Dv=function(e,r,n){for(var i in e)lu.call(e,i)&&(n==null?r(e[i],i,e):r.call(n,e[i],i,e))},Rv=function(e,r,n){if(!kv(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),Lv.call(e)==="[object Array]"?Tv(e,r,i):typeof e=="string"?Iv(e,r,i):Dv(e,r,i)},jv=Rv,_s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Bv=typeof globalThis>"u"?Ge:globalThis,Nv=function(){for(var e=[],r=0;r<_s.length;r++)typeof Bv[_s[r]]=="function"&&(e[e.length]=_s[r]);return e},$i=jv,Hv=Nv,cu=Ir,Es=ct,xi=Bo,Uv=Es("Object.prototype.toString"),uu=cr(),fu=typeof globalThis>"u"?Ge:globalThis,Ms=Hv(),Ps=Es("String.prototype.slice"),Os=Object.getPrototypeOf,Fv=Es("Array.prototype.indexOf",!0)||function(e,r){for(var n=0;n<e.length;n+=1)if(e[n]===r)return n;return-1},Si={__proto__:null};uu&&xi&&Os?$i(Ms,function(t){var e=new fu[t];if(Symbol.toStringTag in e){var r=Os(e),n=xi(r,Symbol.toStringTag);if(!n){var i=Os(r);n=xi(i,Symbol.toStringTag)}Si["$"+t]=cu(n.get)}}):$i(Ms,function(t){var e=new fu[t],r=e.slice||e.set;r&&(Si["$"+t]=cu(r))});var Wv=function(e){var r=!1;return $i(Si,function(n,i){if(!r)try{"$"+n(e)===i&&(r=Ps(i,1))}catch{}}),r},zv=function(e){var r=!1;return $i(Si,function(n,i){if(!r)try{n(e),r=Ps(i,1)}catch{}}),r},qv=function(e){if(!e||typeof e!="object")return!1;if(!uu){var r=Ps(Uv(e),8,-1);return Fv(Ms,r)>-1?r:r!=="Object"?!1:zv(e)}return xi?Wv(e):null},Gv=ct,pu=Gv("ArrayBuffer.prototype.byteLength",!0),Vv=Xc,Kv=function(e){return Vv(e)?pu?pu(e):e.byteLength:NaN},hu=Md,xt=ct,du=Zd,Yv=wt,Br=cy,Jv=xc,gu=my,yu=rc,vu=wy,mu=Xc,bu=Oy,wu=Ty,$u=Dy,xu=Lo,Su=uv,Au=bv,_u=qv,Eu=Kv,Mu=xt("SharedArrayBuffer.prototype.byteLength",!0),Pu=xt("Date.prototype.getTime"),Cs=Object.getPrototypeOf,Ou=xt("Object.prototype.toString"),Ai=Yv("%Set%",!0),ks=xt("Map.prototype.has",!0),_i=xt("Map.prototype.get",!0),Cu=xt("Map.prototype.size",!0),Ei=xt("Set.prototype.add",!0),ku=xt("Set.prototype.delete",!0),Mi=xt("Set.prototype.has",!0),Pi=xt("Set.prototype.size",!0);function Lu(t,e,r,n){for(var i=Br(t),o;(o=i.next())&&!o.done;)if(dt(e,o.value,r,n))return ku(t,o.value),!0;return!1}function Tu(t){if(typeof t>"u")return null;if(typeof t!="object")return typeof t=="symbol"?!1:typeof t=="string"||typeof t=="number"?+t==+t:!0}function Zv(t,e,r,n,i,o){var s=Tu(r);if(s!=null)return s;var c=_i(e,s),l=hu({},i,{strict:!1});return typeof c>"u"&&!ks(e,s)||!dt(n,c,l,o)?!1:!ks(t,s)&&dt(n,c,l,o)}function Xv(t,e,r){var n=Tu(r);return n??(Mi(e,n)&&!Mi(t,n))}function Iu(t,e,r,n,i,o){for(var s=Br(t),c,l;(c=s.next())&&!c.done;)if(l=c.value,dt(r,l,i,o)&&dt(n,_i(e,l),i,o))return ku(t,l),!0;return!1}function dt(t,e,r,n){var i=r||{};if(i.strict?gu(t,e):t===e)return!0;var o=Su(t),s=Su(e);if(o!==s)return!1;if(!t||!e||typeof t!="object"&&typeof e!="object")return i.strict?gu(t,e):t==e;var c=n.has(t),l=n.has(e),f;if(c&&l){if(n.get(t)===n.get(e))return!0}else f={};return c||n.set(t,f),l||n.set(e,f),tm(t,e,i,n)}function Du(t){return!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}function Qv(t,e,r,n){if(Pi(t)!==Pi(e))return!1;for(var i=Br(t),o=Br(e),s,c,l;(s=i.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new Ai),Ei(l,s.value);else if(!Mi(e,s.value)){if(r.strict||!Xv(t,e,s.value))return!1;l||(l=new Ai),Ei(l,s.value)}if(l){for(;(c=o.next())&&!c.done;)if(c.value&&typeof c.value=="object"){if(!Lu(l,c.value,r.strict,n))return!1}else if(!r.strict&&!Mi(t,c.value)&&!Lu(l,c.value,r.strict,n))return!1;return Pi(l)===0}return!0}function em(t,e,r,n){if(Cu(t)!==Cu(e))return!1;for(var i=Br(t),o=Br(e),s,c,l,f,h,y;(s=i.next())&&!s.done;)if(f=s.value[0],h=s.value[1],f&&typeof f=="object")l||(l=new Ai),Ei(l,f);else if(y=_i(e,f),typeof y>"u"&&!ks(e,f)||!dt(h,y,r,n)){if(r.strict||!Zv(t,e,f,h,r,n))return!1;l||(l=new Ai),Ei(l,f)}if(l){for(;(c=o.next())&&!c.done;)if(f=c.value[0],y=c.value[1],f&&typeof f=="object"){if(!Iu(l,t,f,y,r,n))return!1}else if(!r.strict&&(!t.has(f)||!dt(_i(t,f),y,r,n))&&!Iu(l,t,f,y,hu({},r,{strict:!1}),n))return!1;return Pi(l)===0}return!0}function tm(t,e,r,n){var i,o;if(typeof t!=typeof e||t==null||e==null||Ou(t)!==Ou(e)||yu(t)!==yu(e))return!1;var s=vu(t),c=vu(e);if(s!==c)return!1;var l=t instanceof Error,f=e instanceof Error;if(l!==f||(l||f)&&(t.name!==e.name||t.message!==e.message))return!1;var h=wu(t),y=wu(e);if(h!==y||(h||y)&&(t.source!==e.source||du(t)!==du(e)))return!1;var m=bu(t),b=bu(e);if(m!==b||(m||b)&&Pu(t)!==Pu(e)||r.strict&&Cs&&Cs(t)!==Cs(e))return!1;var A=_u(t),L=_u(e);if(A!==L)return!1;if(A||L){if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}var W=Du(t),V=Du(e);if(W!==V)return!1;if(W||V){if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}var J=mu(t),Z=mu(e);if(J!==Z)return!1;if(J||Z)return Eu(t)!==Eu(e)?!1:typeof Uint8Array=="function"&&dt(new Uint8Array(t),new Uint8Array(e),r,n);var pe=$u(t),te=$u(e);if(pe!==te)return!1;if(pe||te)return Mu(t)!==Mu(e)?!1:typeof Uint8Array=="function"&&dt(new Uint8Array(t),new Uint8Array(e),r,n);if(typeof t!=typeof e)return!1;var N=xu(t),X=xu(e);if(N.length!==X.length)return!1;for(N.sort(),X.sort(),i=N.length-1;i>=0;i--)if(N[i]!=X[i])return!1;for(i=N.length-1;i>=0;i--)if(o=N[i],!dt(t[o],e[o],r,n))return!1;var ie=Au(t),we=Au(e);return ie!==we?!1:ie==="Set"||we==="Set"?Qv(t,e,r,n):ie==="Map"?em(t,e,r,n):!0}var rm=function(e,r,n){return dt(e,r,n,Jv())};const nm=vn(rm);var im=Object.defineProperty,ve=(t,e)=>im(t,"name",{value:e,configurable:!0}),om=class{constructor(e){this.direction=!1,this.compareProperties=!0;var r,n,i;this.precision=10**-((r=e==null?void 0:e.precision)!=null?r:17),this.direction=(n=e==null?void 0:e.direction)!=null?n:!1,this.compareProperties=(i=e==null?void 0:e.compareProperties)!=null?i:!0}compare(e,r){if(e.type!==r.type||!En(e,r))return!1;switch(e.type){case"Point":return this.compareCoord(e.coordinates,r.coordinates);case"LineString":return this.compareLine(e.coordinates,r.coordinates);case"Polygon":return this.comparePolygon(e,r);case"GeometryCollection":return this.compareGeometryCollection(e,r);case"Feature":return this.compareFeature(e,r);case"FeatureCollection":return this.compareFeatureCollection(e,r);default:if(e.type.startsWith("Multi")){const n=Ls(e),i=Ls(r);return n.every(o=>i.some(s=>this.compare(o,s)))}}return!1}compareCoord(e,r){return e.length===r.length&&e.every((n,i)=>Math.abs(n-r[i])<this.precision)}compareLine(e,r,n=0,i=!1){if(!En(e,r))return!1;const o=e;let s=r;if(i&&!this.compareCoord(o[0],s[0])){const l=this.fixStartIndex(s,o);if(l)s=l;else return!1}const c=this.compareCoord(o[n],s[n]);return this.direction||c?this.comparePath(o,s):this.compareCoord(o[n],s[s.length-(1+n)])?this.comparePath(o.slice().reverse(),s):!1}fixStartIndex(e,r){let n,i=-1;for(let o=0;o<e.length;o++)if(this.compareCoord(e[o],r[0])){i=o;break}return i>=0&&(n=[].concat(e.slice(i,e.length),e.slice(1,i+1))),n}comparePath(e,r){return e.every((n,i)=>this.compareCoord(n,r[i]))}comparePolygon(e,r){if(this.compareLine(e.coordinates[0],r.coordinates[0],1,!0)){const n=e.coordinates.slice(1,e.coordinates.length),i=r.coordinates.slice(1,r.coordinates.length);return n.every(o=>i.some(s=>this.compareLine(o,s,1,!0)))}return!1}compareGeometryCollection(e,r){return En(e.geometries,r.geometries)&&this.compareBBox(e,r)&&e.geometries.every((n,i)=>this.compare(n,r.geometries[i]))}compareFeature(e,r){return e.id===r.id&&(this.compareProperties?nm(e.properties,r.properties):!0)&&this.compareBBox(e,r)&&this.compare(e.geometry,r.geometry)}compareFeatureCollection(e,r){return En(e.features,r.features)&&this.compareBBox(e,r)&&e.features.every((n,i)=>this.compare(n,r.features[i]))}compareBBox(e,r){return!e.bbox&&!r.bbox||(e.bbox&&r.bbox?this.compareCoord(e.bbox,r.bbox):!1)}};ve(om,"GeojsonEquality");function En(t,e){return t.coordinates?t.coordinates.length===e.coordinates.length:t.length===e.length}ve(En,"sameLength");function Ls(t){return t.coordinates.map(e=>({type:t.type.replace("Multi",""),coordinates:e}))}ve(Ls,"explode");var st=63710088e-1,Ru={centimeters:st*100,centimetres:st*100,degrees:360/(2*Math.PI),feet:st*3.28084,inches:st*39.37,kilometers:st/1e3,kilometres:st/1e3,meters:st,metres:st,miles:st/1609.344,millimeters:st*1e3,millimetres:st*1e3,nauticalmiles:st/1852,radians:1,yards:st*1.0936},ju={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ut(t,e,r={}){const n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}ve(ut,"feature");function sm(t,e,r={}){switch(t){case"Point":return St(e).geometry;case"LineString":return At(e).geometry;case"Polygon":return Ts(e).geometry;case"MultiPoint":return Bu(e).geometry;case"MultiLineString":return Is(e).geometry;case"MultiPolygon":return Nu(e).geometry;default:throw new Error(t+" is invalid")}}ve(sm,"geometry");function St(t,e,r={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Nr(t[0])||!Nr(t[1]))throw new Error("coordinates must contain numbers");return ut({type:"Point",coordinates:t},e,r)}ve(St,"point");function am(t,e,r={}){return ur(t.map(n=>St(n,e)),r)}ve(am,"points");function Ts(t,e,r={}){for(const i of t){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let o=0;o<i[i.length-1].length;o++)if(i[i.length-1][o]!==i[0][o])throw new Error("First and last Position are not equivalent.")}return ut({type:"Polygon",coordinates:t},e,r)}ve(Ts,"polygon");function lm(t,e,r={}){return ur(t.map(n=>Ts(n,e)),r)}ve(lm,"polygons");function At(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return ut({type:"LineString",coordinates:t},e,r)}ve(At,"lineString");function cm(t,e,r={}){return ur(t.map(n=>At(n,e)),r)}ve(cm,"lineStrings");function ur(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}ve(ur,"featureCollection");function Is(t,e,r={}){return ut({type:"MultiLineString",coordinates:t},e,r)}ve(Is,"multiLineString");function Bu(t,e,r={}){return ut({type:"MultiPoint",coordinates:t},e,r)}ve(Bu,"multiPoint");function Nu(t,e,r={}){return ut({type:"MultiPolygon",coordinates:t},e,r)}ve(Nu,"multiPolygon");function um(t,e,r={}){return ut({type:"GeometryCollection",geometries:t},e,r)}ve(um,"geometryCollection");function fm(t,e=0){if(e&&!(e>=0))throw new Error("precision must be a positive number");const r=Math.pow(10,e||0);return Math.round(t*r)/r}ve(fm,"round");function Hu(t,e="kilometers"){const r=Ru[e];if(!r)throw new Error(e+" units is invalid");return t*r}ve(Hu,"radiansToLength");function Ds(t,e="kilometers"){const r=Ru[e];if(!r)throw new Error(e+" units is invalid");return t/r}ve(Ds,"lengthToRadians");function pm(t,e){return Uu(Ds(t,e))}ve(pm,"lengthToDegrees");function hm(t){let e=t%360;return e<0&&(e+=360),e}ve(hm,"bearingToAzimuth");function Uu(t){return t%(2*Math.PI)*180/Math.PI}ve(Uu,"radiansToDegrees");function dm(t){return t%360*Math.PI/180}ve(dm,"degreesToRadians");function gm(t,e="kilometers",r="kilometers"){if(!(t>=0))throw new Error("length must be a positive number");return Hu(Ds(t,e),r)}ve(gm,"convertLength");function ym(t,e="meters",r="kilometers"){if(!(t>=0))throw new Error("area must be a positive number");const n=ju[e];if(!n)throw new Error("invalid original units");const i=ju[r];if(!i)throw new Error("invalid final units");return t/n*i}ve(ym,"convertArea");function Nr(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}ve(Nr,"isNumber");function Rs(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}ve(Rs,"isObject");function vm(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(t.length!==4&&t.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(e=>{if(!Nr(e))throw new Error("bbox must only contain numbers")})}ve(vm,"validateBBox");function mm(t){if(!t)throw new Error("id is required");if(["string","number"].indexOf(typeof t)===-1)throw new Error("id must be a number or a string")}ve(mm,"validateId");var bm=Object.defineProperty,Gt=(t,e)=>bm(t,"name",{value:e,configurable:!0});function js(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return[...t.geometry.coordinates];if(t.type==="Point")return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}Gt(js,"getCoord");function Fu(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}Gt(Fu,"getCoords");function Wu(t){if(t.length>1&&Nr(t[0])&&Nr(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return Wu(t[0]);throw new Error("coordinates must only contain numbers")}Gt(Wu,"containsNumber");function wm(t,e,r){if(!e||!r)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.type)}Gt(wm,"geojsonType");function $m(t,e,r){if(!t)throw new Error("No feature passed");if(!r)throw new Error(".featureOf() requires a name");if(!t||t.type!=="Feature"||!t.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+t.geometry.type)}Gt($m,"featureOf");function xm(t,e,r){if(!t)throw new Error("No featureCollection passed");if(!r)throw new Error(".collectionOf() requires a name");if(!t||t.type!=="FeatureCollection")throw new Error("Invalid input to "+r+", FeatureCollection required");for(const n of t.features){if(!n||n.type!=="Feature"||!n.geometry)throw new Error("Invalid input to "+r+", Feature with geometry required");if(!n.geometry||n.geometry.type!==e)throw new Error("Invalid input to "+r+": must be a "+e+", given "+n.geometry.type)}}Gt(xm,"collectionOf");function fr(t){return t.type==="Feature"?t.geometry:t}Gt(fr,"getGeom");function Sm(t,e){return t.type==="FeatureCollection"?"FeatureCollection":t.type==="GeometryCollection"?"GeometryCollection":t.type==="Feature"&&t.geometry!==null?t.geometry.type:t.type}Gt(Sm,"getType");var Am=Object.defineProperty,zu=(t,e)=>Am(t,"name",{value:e,configurable:!0});function at(t,e,r={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=js(t),i=fr(e),o=i.type,s=e.bbox;let c=i.coordinates;if(s&&qu(n,s)===!1)return!1;o==="Polygon"&&(c=[c]);let l=!1;for(var f=0;f<c.length;++f){const h=hh(n,c[f]);if(h===0)return!r.ignoreBoundary;h&&(l=!0)}return l}zu(at,"booleanPointInPolygon");function qu(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}zu(qu,"inBBox");class Gu{constructor(e=[],r=_m){if(this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:r,compare:n}=this,i=r[e];for(;e>0;){const o=e-1>>1,s=r[o];if(n(i,s)>=0)break;r[e]=s,e=o}r[e]=i}_down(e){const{data:r,compare:n}=this,i=this.length>>1,o=r[e];for(;e<i;){let s=(e<<1)+1,c=r[s];const l=s+1;if(l<this.length&&n(r[l],c)<0&&(s=l,c=r[l]),n(c,o)>=0)break;r[e]=c,e=s}r[e]=o}}function _m(t,e){return t<e?-1:t>e?1:0}function Vu(t,e){return t.p.x>e.p.x?1:t.p.x<e.p.x?-1:t.p.y!==e.p.y?t.p.y>e.p.y?1:-1:1}function Em(t,e){return t.rightSweepEvent.p.x>e.rightSweepEvent.p.x?1:t.rightSweepEvent.p.x<e.rightSweepEvent.p.x?-1:t.rightSweepEvent.p.y!==e.rightSweepEvent.p.y?t.rightSweepEvent.p.y<e.rightSweepEvent.p.y?1:-1:1}class Ku{constructor(e,r,n,i){this.p={x:e[0],y:e[1]},this.featureId=r,this.ringId=n,this.eventId=i,this.otherEvent=null,this.isLeftEndpoint=null}isSamePoint(e){return this.p.x===e.p.x&&this.p.y===e.p.y}}function Mm(t,e){if(t.type==="FeatureCollection"){const r=t.features;for(let n=0;n<r.length;n++)Yu(r[n],e)}else Yu(t,e)}let Oi=0,Ci=0,ki=0;function Yu(t,e){const r=t.type==="Feature"?t.geometry:t;let n=r.coordinates;(r.type==="Polygon"||r.type==="MultiLineString")&&(n=[n]),r.type==="LineString"&&(n=[[n]]);for(let i=0;i<n.length;i++)for(let o=0;o<n[i].length;o++){let s=n[i][o][0],c=null;Ci=Ci+1;for(let l=0;l<n[i][o].length-1;l++){c=n[i][o][l+1];const f=new Ku(s,Oi,Ci,ki),h=new Ku(c,Oi,Ci,ki+1);f.otherEvent=h,h.otherEvent=f,Vu(f,h)>0?(h.isLeftEndpoint=!0,f.isLeftEndpoint=!1):(f.isLeftEndpoint=!0,h.isLeftEndpoint=!1),e.push(f),e.push(h),s=c,ki=ki+1}}Oi=Oi+1}class Pm{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}}function Om(t,e){if(t===null||e===null||t.leftSweepEvent.ringId===e.leftSweepEvent.ringId&&(t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.rightSweepEvent)||t.leftSweepEvent.isSamePoint(e.leftSweepEvent)||t.leftSweepEvent.isSamePoint(e.rightSweepEvent)))return!1;const r=t.leftSweepEvent.p.x,n=t.leftSweepEvent.p.y,i=t.rightSweepEvent.p.x,o=t.rightSweepEvent.p.y,s=e.leftSweepEvent.p.x,c=e.leftSweepEvent.p.y,l=e.rightSweepEvent.p.x,f=e.rightSweepEvent.p.y,h=(f-c)*(i-r)-(l-s)*(o-n),y=(l-s)*(n-c)-(f-c)*(r-s),m=(i-r)*(n-c)-(o-n)*(r-s);if(h===0)return!1;const b=y/h,A=m/h;if(b>=0&&b<=1&&A>=0&&A<=1){const L=r+b*(i-r),W=n+b*(o-n);return[L,W]}return!1}function Cm(t,e){e=e||!1;const r=[],n=new Gu([],Em);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const o=new Pm(i);for(let s=0;s<n.data.length;s++){const c=n.data[s];if(e&&c.leftSweepEvent.featureId===i.featureId)continue;const l=Om(o,c);l!==!1&&r.push(l)}n.push(o)}else i.isLeftEndpoint===!1&&n.pop()}return r}function km(t,e){const r=new Gu([],Vu);return Mm(t,r),Cm(r,e)}var Lm=Object.defineProperty,Tm=(t,e)=>Lm(t,"name",{value:e,configurable:!0}),Im=km;function Li(t,e,r={}){const{removeDuplicates:n=!0,ignoreSelfIntersections:i=!1}=r;let o=[];t.type==="FeatureCollection"?o=o.concat(t.features):t.type==="Feature"?o.push(t):(t.type==="LineString"||t.type==="Polygon"||t.type==="MultiLineString"||t.type==="MultiPolygon")&&o.push(ut(t)),e.type==="FeatureCollection"?o=o.concat(e.features):e.type==="Feature"?o.push(e):(e.type==="LineString"||e.type==="Polygon"||e.type==="MultiLineString"||e.type==="MultiPolygon")&&o.push(ut(e));const s=Im(ur(o),i);let c=[];if(n){const l={};s.forEach(f=>{const h=f.join(",");l[h]||(l[h]=!0,c.push(f))})}else c=s;return ur(c.map(l=>St(l)))}Tm(Li,"lineIntersect");var Dm=Object.defineProperty,We=(t,e)=>Dm(t,"name",{value:e,configurable:!0});function Hr(t,e,r){if(t!==null)for(var n,i,o,s,c,l,f,h=0,y=0,m,b=t.type,A=b==="FeatureCollection",L=b==="Feature",W=A?t.features.length:1,V=0;V<W;V++){f=A?t.features[V].geometry:L?t.geometry:t,m=f?f.type==="GeometryCollection":!1,c=m?f.geometries.length:1;for(var J=0;J<c;J++){var Z=0,pe=0;if(s=m?f.geometries[J]:f,s!==null){l=s.coordinates;var te=s.type;switch(h=r&&(te==="Polygon"||te==="MultiPolygon")?1:0,te){case null:break;case"Point":if(e(l,y,V,Z,pe)===!1)return!1;y++,Z++;break;case"LineString":case"MultiPoint":for(n=0;n<l.length;n++){if(e(l[n],y,V,Z,pe)===!1)return!1;y++,te==="MultiPoint"&&Z++}te==="LineString"&&Z++;break;case"Polygon":case"MultiLineString":for(n=0;n<l.length;n++){for(i=0;i<l[n].length-h;i++){if(e(l[n][i],y,V,Z,pe)===!1)return!1;y++}te==="MultiLineString"&&Z++,te==="Polygon"&&pe++}te==="Polygon"&&Z++;break;case"MultiPolygon":for(n=0;n<l.length;n++){for(pe=0,i=0;i<l[n].length;i++){for(o=0;o<l[n][i].length-h;o++){if(e(l[n][i][o],y,V,Z,pe)===!1)return!1;y++}pe++}Z++}break;case"GeometryCollection":for(n=0;n<s.geometries.length;n++)if(Hr(s.geometries[n],e,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}We(Hr,"coordEach");function Rm(t,e,r,n){var i=r;return Hr(t,function(o,s,c,l,f){s===0&&r===void 0?i=o:i=e(i,o,s,c,l,f)},n),i}We(Rm,"coordReduce");function Ju(t,e){var r;switch(t.type){case"FeatureCollection":for(r=0;r<t.features.length&&e(t.features[r].properties,r)!==!1;r++);break;case"Feature":e(t.properties,0);break}}We(Ju,"propEach");function jm(t,e,r){var n=r;return Ju(t,function(i,o){o===0&&r===void 0?n=i:n=e(n,i,o)}),n}We(jm,"propReduce");function Zu(t,e){if(t.type==="Feature")e(t,0);else if(t.type==="FeatureCollection")for(var r=0;r<t.features.length&&e(t.features[r],r)!==!1;r++);}We(Zu,"featureEach");function Bm(t,e,r){var n=r;return Zu(t,function(i,o){o===0&&r===void 0?n=i:n=e(n,i,o)}),n}We(Bm,"featureReduce");function Nm(t){var e=[];return Hr(t,function(r){e.push(r)}),e}We(Nm,"coordAll");function Bs(t,e){var r,n,i,o,s,c,l,f,h,y,m=0,b=t.type==="FeatureCollection",A=t.type==="Feature",L=b?t.features.length:1;for(r=0;r<L;r++){for(c=b?t.features[r].geometry:A?t.geometry:t,f=b?t.features[r].properties:A?t.properties:{},h=b?t.features[r].bbox:A?t.bbox:void 0,y=b?t.features[r].id:A?t.id:void 0,l=c?c.type==="GeometryCollection":!1,s=l?c.geometries.length:1,i=0;i<s;i++){if(o=l?c.geometries[i]:c,o===null){if(e(null,m,f,h,y)===!1)return!1;continue}switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(o,m,f,h,y)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<o.geometries.length;n++)if(e(o.geometries[n],m,f,h,y)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}m++}}We(Bs,"geomEach");function Hm(t,e,r){var n=r;return Bs(t,function(i,o,s,c,l){o===0&&r===void 0?n=i:n=e(n,i,o,s,c,l)}),n}We(Hm,"geomReduce");function Vt(t,e){Bs(t,function(r,n,i,o,s){var c=r===null?null:r.type;switch(c){case null:case"Point":case"LineString":case"Polygon":return e(ut(r,i,{bbox:o,id:s}),n,0)===!1?!1:void 0}var l;switch(c){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon";break}for(var f=0;f<r.coordinates.length;f++){var h=r.coordinates[f],y={type:l,coordinates:h};if(e(ut(y,i),n,f)===!1)return!1}})}We(Vt,"flattenEach");function Um(t,e,r){var n=r;return Vt(t,function(i,o,s){o===0&&s===0&&r===void 0?n=i:n=e(n,i,o,s)}),n}We(Um,"flattenReduce");function Xu(t,e){Vt(t,function(r,n,i){var o=0;if(r.geometry){var s=r.geometry.type;if(!(s==="Point"||s==="MultiPoint")){var c,l=0,f=0,h=0;if(Hr(r,function(y,m,b,A,L){if(c===void 0||n>l||A>f||L>h){c=y,l=n,f=A,h=L,o=0;return}var W=At([c,y],r.properties);if(e(W,n,i,L,o)===!1)return!1;o++,c=y})===!1)return!1}}})}We(Xu,"segmentEach");function Fm(t,e,r){var n=r,i=!1;return Xu(t,function(o,s,c,l,f){i===!1&&r===void 0?n=o:n=e(n,o,s,c,l,f),i=!0}),n}We(Fm,"segmentReduce");function Qu(t,e){if(!t)throw new Error("geojson is required");Vt(t,function(r,n,i){if(r.geometry!==null){var o=r.geometry.type,s=r.geometry.coordinates;switch(o){case"LineString":if(e(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var c=0;c<s.length;c++)if(e(At(s[c],r.properties),n,i,c)===!1)return!1;break}}})}We(Qu,"lineEach");function Wm(t,e,r){var n=r;return Qu(t,function(i,o,s,c){o===0&&r===void 0?n=i:n=e(n,i,o,s,c)}),n}We(Wm,"lineReduce");function zm(t,e){if(e=e||{},!Rs(e))throw new Error("options is invalid");var r=e.featureIndex||0,n=e.multiFeatureIndex||0,i=e.geometryIndex||0,o=e.segmentIndex||0,s=e.properties,c;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),s=s||t.features[r].properties,c=t.features[r].geometry;break;case"Feature":s=s||t.properties,c=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":c=t;break;default:throw new Error("geojson is invalid")}if(c===null)return null;var l=c.coordinates;switch(c.type){case"Point":case"MultiPoint":return null;case"LineString":return o<0&&(o=l.length+o-1),At([l[o],l[o+1]],s,e);case"Polygon":return i<0&&(i=l.length+i),o<0&&(o=l[i].length+o-1),At([l[i][o],l[i][o+1]],s,e);case"MultiLineString":return n<0&&(n=l.length+n),o<0&&(o=l[n].length+o-1),At([l[n][o],l[n][o+1]],s,e);case"MultiPolygon":return n<0&&(n=l.length+n),i<0&&(i=l[n].length+i),o<0&&(o=l[n][i].length-o-1),At([l[n][i][o],l[n][i][o+1]],s,e)}throw new Error("geojson is invalid")}We(zm,"findSegment");function qm(t,e){if(e=e||{},!Rs(e))throw new Error("options is invalid");var r=e.featureIndex||0,n=e.multiFeatureIndex||0,i=e.geometryIndex||0,o=e.coordIndex||0,s=e.properties,c;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),s=s||t.features[r].properties,c=t.features[r].geometry;break;case"Feature":s=s||t.properties,c=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":c=t;break;default:throw new Error("geojson is invalid")}if(c===null)return null;var l=c.coordinates;switch(c.type){case"Point":return St(l,s,e);case"MultiPoint":return n<0&&(n=l.length+n),St(l[n],s,e);case"LineString":return o<0&&(o=l.length+o),St(l[o],s,e);case"Polygon":return i<0&&(i=l.length+i),o<0&&(o=l[i].length+o),St(l[i][o],s,e);case"MultiLineString":return n<0&&(n=l.length+n),o<0&&(o=l[n].length+o),St(l[n][o],s,e);case"MultiPolygon":return n<0&&(n=l.length+n),i<0&&(i=l[n].length+i),o<0&&(o=l[n][i].length-o),St(l[n][i][o],s,e)}throw new Error("geojson is invalid")}We(qm,"findPoint");var Gm=Object.defineProperty,Ti=(t,e)=>Gm(t,"name",{value:e,configurable:!0});function Ii(t,e={}){const r=fr(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return ef(r,e);case"MultiPolygon":return tf(r,e);default:throw new Error("invalid poly")}}Ti(Ii,"polygonToLine");function ef(t,e={}){const n=fr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{};return Ns(n,i)}Ti(ef,"singlePolygonToLine");function tf(t,e={}){const n=fr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{},o=[];return n.forEach(s=>{o.push(Ns(s,i))}),ur(o)}Ti(tf,"multiPolygonToLine");function Ns(t,e){return t.length>1?Is(t,e):At(t[0],e)}Ti(Ns,"coordsToLine");var Vm=Object.defineProperty,Kt=(t,e)=>Vm(t,"name",{value:e,configurable:!0});function rf(t,e){let r=!0;return Vt(t,n=>{Vt(e,i=>{if(r===!1)return!1;r=nf(n.geometry,i.geometry)})}),r}Kt(rf,"booleanDisjoint");function nf(t,e){switch(t.type){case"Point":switch(e.type){case"Point":return!lf(t.coordinates,e.coordinates);case"LineString":return!Hs(e,t);case"Polygon":return!at(t,e)}break;case"LineString":switch(e.type){case"Point":return!Hs(t,e);case"LineString":return!of(t,e);case"Polygon":return!Us(e,t)}break;case"Polygon":switch(e.type){case"Point":return!at(e,t);case"LineString":return!Us(t,e);case"Polygon":return!sf(e,t)}}return!1}Kt(nf,"disjoint");function Hs(t,e){for(let r=0;r<t.coordinates.length-1;r++)if(af(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}Kt(Hs,"isPointOnLine");function of(t,e){return Li(t,e).features.length>0}Kt(of,"isLineOnLine");function Us(t,e){for(const n of e.coordinates)if(at(n,t))return!0;return Li(e,Ii(t)).features.length>0}Kt(Us,"isLineInPoly");function sf(t,e){for(const n of t.coordinates[0])if(at(n,e))return!0;for(const n of e.coordinates[0])if(at(n,t))return!0;return Li(Ii(t),Ii(e)).features.length>0}Kt(sf,"isPolyInPoly");function af(t,e,r){const n=r[0]-t[0],i=r[1]-t[1],o=e[0]-t[0],s=e[1]-t[1];return n*s-i*o!==0?!1:Math.abs(o)>=Math.abs(s)?o>0?t[0]<=r[0]&&r[0]<=e[0]:e[0]<=r[0]&&r[0]<=t[0]:s>0?t[1]<=r[1]&&r[1]<=e[1]:e[1]<=r[1]&&r[1]<=t[1]}Kt(af,"isPointOnLineSegment");function lf(t,e){return t[0]===e[0]&&t[1]===e[1]}Kt(lf,"compareCoords");var Km=Object.defineProperty,Ym=(t,e)=>Km(t,"name",{value:e,configurable:!0});function cf(t,e){let r=!1;return Vt(t,n=>{Vt(e,i=>{if(r===!0)return!0;r=!rf(n.geometry,i.geometry)})}),r}Ym(cf,"booleanIntersects");var Jm=cf,Zm=Object.defineProperty,Xm=(t,e)=>Zm(t,"name",{value:e,configurable:!0});function Mn(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return Hr(t,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]<n[0]&&(r[2]=n[0]),r[3]<n[1]&&(r[3]=n[1])}),r}Xm(Mn,"bbox");var Qm=Object.defineProperty,uf=(t,e)=>Qm(t,"name",{value:e,configurable:!0});function Pn(t,e,r={}){const n=js(t),i=Fu(e);for(let o=0;o<i.length-1;o++){let s=!1;if(r.ignoreEndVertices&&(o===0&&(s="start"),o===i.length-2&&(s="end"),o===0&&o+1===i.length-1&&(s="both")),ff(i[o],i[o+1],n,s,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}uf(Pn,"booleanPointOnLine");function ff(t,e,r,n,i){const o=r[0],s=r[1],c=t[0],l=t[1],f=e[0],h=e[1],y=r[0]-c,m=r[1]-l,b=f-c,A=h-l,L=y*A-m*b;if(i!==null){if(Math.abs(L)>i)return!1}else if(L!==0)return!1;if(n){if(n==="start")return Math.abs(b)>=Math.abs(A)?b>0?c<o&&o<=f:f<=o&&o<c:A>0?l<s&&s<=h:h<=s&&s<l;if(n==="end")return Math.abs(b)>=Math.abs(A)?b>0?c<=o&&o<f:f<o&&o<=c:A>0?l<=s&&s<h:h<s&&s<=l;if(n==="both")return Math.abs(b)>=Math.abs(A)?b>0?c<o&&o<f:f<o&&o<c:A>0?l<s&&s<h:h<s&&s<l}else return Math.abs(b)>=Math.abs(A)?b>0?c<=o&&o<=f:f<=o&&o<=c:A>0?l<=s&&s<=h:h<=s&&s<=l;return!1}uf(ff,"isPointOnLineSegment");var e0=Object.defineProperty,gt=(t,e)=>e0(t,"name",{value:e,configurable:!0});function pf(t,e){var r=fr(t),n=fr(e),i=r.type,o=n.type;switch(i){case"Point":switch(o){case"MultiPoint":return hf(r,n);case"LineString":return Pn(r,n,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return at(r,n,{ignoreBoundary:!0});default:throw new Error("feature2 "+o+" geometry not supported")}case"MultiPoint":switch(o){case"MultiPoint":return df(r,n);case"LineString":return gf(r,n);case"Polygon":case"MultiPolygon":return yf(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}case"LineString":switch(o){case"LineString":return vf(r,n);case"Polygon":case"MultiPolygon":return mf(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}case"Polygon":switch(o){case"Polygon":case"MultiPolygon":return bf(r,n);default:throw new Error("feature2 "+o+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}gt(pf,"booleanWithin");function hf(t,e){var r,n=!1;for(r=0;r<e.coordinates.length;r++)if(Ws(e.coordinates[r],t.coordinates)){n=!0;break}return n}gt(hf,"isPointInMultiPoint");function df(t,e){for(var r=0;r<t.coordinates.length;r++){for(var n=!1,i=0;i<e.coordinates.length;i++)Ws(t.coordinates[r],e.coordinates[i])&&(n=!0);if(!n)return!1}return!0}gt(df,"isMultiPointInMultiPoint");function gf(t,e){for(var r=!1,n=0;n<t.coordinates.length;n++){if(!Pn(t.coordinates[n],e))return!1;r||(r=Pn(t.coordinates[n],e,{ignoreEndVertices:!0}))}return r}gt(gf,"isMultiPointOnLine");function yf(t,e){for(var r=!0,n=!1,i=0;i<t.coordinates.length;i++){if(n=at(t.coordinates[i],e),!n){r=!1;break}n=at(t.coordinates[i],e,{ignoreBoundary:!0})}return r&&n}gt(yf,"isMultiPointInPoly");function vf(t,e){for(var r=0;r<t.coordinates.length;r++)if(!Pn(t.coordinates[r],e))return!1;return!0}gt(vf,"isLineOnLine");function mf(t,e){var r=Mn(e),n=Mn(t);if(!Fs(r,n))return!1;for(var i=!1,o=0;o<t.coordinates.length;o++){if(!at(t.coordinates[o],e))return!1;if(i||(i=at(t.coordinates[o],e,{ignoreBoundary:!0})),!i&&o<t.coordinates.length-1){var s=wf(t.coordinates[o],t.coordinates[o+1]);i=at(s,e,{ignoreBoundary:!0})}}return i}gt(mf,"isLineInPoly");function bf(t,e){var r=Mn(t),n=Mn(e);if(!Fs(n,r))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!at(t.coordinates[0][i],e))return!1;return!0}gt(bf,"isPolyInPoly");function Fs(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}gt(Fs,"doBBoxOverlap");function Ws(t,e){return t[0]===e[0]&&t[1]===e[1]}gt(Ws,"compareCoords");function wf(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}gt(wf,"getMidpoint");var t0=pf;const r0=(t,e)=>e?Jm(t,e):!0,n0=(t,e)=>e?t0(t,e):!0;function i0(t,e="highlight",r="title"){const n=(o,s,c)=>{const l=s.split(".");let f;for(f=0;f<l.length-1;f++)o=o[l[f]];o[l[f]]=c},i=(o,s=[])=>{let c="",l=0;return s.forEach(f=>{const h=f[1]+1;c+=[o.substring(l,f[0]),`<mark class="${e}">`,o.substring(f[0],h),"</mark>"].join(""),l=h}),c+=o.substring(l),c};return t.filter(({matches:o})=>o&&o.length).map(({item:o,matches:s})=>{const c={...o};return s.forEach(l=>{l.key===r&&n(c,l.key,i(l.value,l.indices))}),c})}var $f={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Ge,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",c="minute",l="hour",f="day",h="week",y="month",m="quarter",b="year",A="date",L="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,V=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,J={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var E=["th","st","nd","rd"],_=I%100;return"["+I+(E[(_-20)%10]||E[_]||E[0])+"]"}},Z=function(I,E,_){var R=String(I);return!R||R.length>=E?I:""+Array(E+1-R.length).join(_)+I},pe={s:Z,z:function(I){var E=-I.utcOffset(),_=Math.abs(E),R=Math.floor(_/60),P=_%60;return(E<=0?"+":"-")+Z(R,2,"0")+":"+Z(P,2,"0")},m:function I(E,_){if(E.date()<_.date())return-I(_,E);var R=12*(_.year()-E.year())+(_.month()-E.month()),P=E.clone().add(R,y),q=_-P<0,G=E.clone().add(R+(q?-1:1),y);return+(-(R+(_-P)/(q?P-G:G-P))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:y,y:b,w:h,d:f,D:A,h:l,m:c,s,ms:o,Q:m}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},te="en",N={};N[te]=J;var X="$isDayjsObject",ie=function(I){return I instanceof Ne||!(!I||!I[X])},we=function I(E,_,R){var P;if(!E)return te;if(typeof E=="string"){var q=E.toLowerCase();N[q]&&(P=q),_&&(N[q]=_,P=q);var G=E.split("-");if(!P&&G.length>1)return I(G[0])}else{var ye=E.name;N[ye]=E,P=ye}return!R&&P&&(te=P),P||!R&&te},de=function(I,E){if(ie(I))return I.clone();var _=typeof E=="object"?E:{};return _.date=I,_.args=arguments,new Ne(_)},re=pe;re.l=we,re.i=ie,re.w=function(I,E){return de(I,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var Ne=function(){function I(_){this.$L=we(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[X]=!0}var E=I.prototype;return E.parse=function(_){this.$d=function(R){var P=R.date,q=R.utc;if(P===null)return new Date(NaN);if(re.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var G=P.match(W);if(G){var ye=G[2]-1||0,_e=(G[7]||"0").substring(0,3);return q?new Date(Date.UTC(G[1],ye,G[3]||1,G[4]||0,G[5]||0,G[6]||0,_e)):new Date(G[1],ye,G[3]||1,G[4]||0,G[5]||0,G[6]||0,_e)}}return new Date(P)}(_),this.init()},E.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},E.$utils=function(){return re},E.isValid=function(){return this.$d.toString()!==L},E.isSame=function(_,R){var P=de(_);return this.startOf(R)<=P&&P<=this.endOf(R)},E.isAfter=function(_,R){return de(_)<this.startOf(R)},E.isBefore=function(_,R){return this.endOf(R)<de(_)},E.$g=function(_,R,P){return re.u(_)?this[R]:this.set(P,_)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(_,R){var P=this,q=!!re.u(R)||R,G=re.p(_),ye=function(Te,oe){var Ie=re.w(P.$u?Date.UTC(P.$y,oe,Te):new Date(P.$y,oe,Te),P);return q?Ie:Ie.endOf(f)},_e=function(Te,oe){return re.w(P.toDate()[Te].apply(P.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(oe)),P)},Pe=this.$W,Ce=this.$M,Ke=this.$D,Le="set"+(this.$u?"UTC":"");switch(G){case b:return q?ye(1,0):ye(31,11);case y:return q?ye(1,Ce):ye(0,Ce+1);case h:var Ye=this.$locale().weekStart||0,le=(Pe<Ye?Pe+7:Pe)-Ye;return ye(q?Ke-le:Ke+(6-le),Ce);case f:case A:return _e(Le+"Hours",0);case l:return _e(Le+"Minutes",1);case c:return _e(Le+"Seconds",2);case s:return _e(Le+"Milliseconds",3);default:return this.clone()}},E.endOf=function(_){return this.startOf(_,!1)},E.$set=function(_,R){var P,q=re.p(_),G="set"+(this.$u?"UTC":""),ye=(P={},P[f]=G+"Date",P[A]=G+"Date",P[y]=G+"Month",P[b]=G+"FullYear",P[l]=G+"Hours",P[c]=G+"Minutes",P[s]=G+"Seconds",P[o]=G+"Milliseconds",P)[q],_e=q===f?this.$D+(R-this.$W):R;if(q===y||q===b){var Pe=this.clone().set(A,1);Pe.$d[ye](_e),Pe.init(),this.$d=Pe.set(A,Math.min(this.$D,Pe.daysInMonth())).$d}else ye&&this.$d[ye](_e);return this.init(),this},E.set=function(_,R){return this.clone().$set(_,R)},E.get=function(_){return this[re.p(_)]()},E.add=function(_,R){var P,q=this;_=Number(_);var G=re.p(R),ye=function(Ce){var Ke=de(q);return re.w(Ke.date(Ke.date()+Math.round(Ce*_)),q)};if(G===y)return this.set(y,this.$M+_);if(G===b)return this.set(b,this.$y+_);if(G===f)return ye(1);if(G===h)return ye(7);var _e=(P={},P[c]=n,P[l]=i,P[s]=r,P)[G]||1,Pe=this.$d.getTime()+_*_e;return re.w(Pe,this)},E.subtract=function(_,R){return this.add(-1*_,R)},E.format=function(_){var R=this,P=this.$locale();if(!this.isValid())return P.invalidDate||L;var q=_||"YYYY-MM-DDTHH:mm:ssZ",G=re.z(this),ye=this.$H,_e=this.$m,Pe=this.$M,Ce=P.weekdays,Ke=P.months,Le=P.meridiem,Ye=function(oe,Ie,_t,Ee){return oe&&(oe[Ie]||oe(R,q))||_t[Ie].slice(0,Ee)},le=function(oe){return re.s(ye%12||12,oe,"0")},Te=Le||function(oe,Ie,_t){var Ee=oe<12?"AM":"PM";return _t?Ee.toLowerCase():Ee};return q.replace(V,function(oe,Ie){return Ie||function(_t){switch(_t){case"YY":return String(R.$y).slice(-2);case"YYYY":return re.s(R.$y,4,"0");case"M":return Pe+1;case"MM":return re.s(Pe+1,2,"0");case"MMM":return Ye(P.monthsShort,Pe,Ke,3);case"MMMM":return Ye(Ke,Pe);case"D":return R.$D;case"DD":return re.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return Ye(P.weekdaysMin,R.$W,Ce,2);case"ddd":return Ye(P.weekdaysShort,R.$W,Ce,3);case"dddd":return Ce[R.$W];case"H":return String(ye);case"HH":return re.s(ye,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return Te(ye,_e,!0);case"A":return Te(ye,_e,!1);case"m":return String(_e);case"mm":return re.s(_e,2,"0");case"s":return String(R.$s);case"ss":return re.s(R.$s,2,"0");case"SSS":return re.s(R.$ms,3,"0");case"Z":return G}return null}(oe)||G.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(_,R,P){var q,G=this,ye=re.p(R),_e=de(_),Pe=(_e.utcOffset()-this.utcOffset())*n,Ce=this-_e,Ke=function(){return re.m(G,_e)};switch(ye){case b:q=Ke()/12;break;case y:q=Ke();break;case m:q=Ke()/3;break;case h:q=(Ce-Pe)/6048e5;break;case f:q=(Ce-Pe)/864e5;break;case l:q=Ce/i;break;case c:q=Ce/n;break;case s:q=Ce/r;break;default:q=Ce}return P?q:re.a(q)},E.daysInMonth=function(){return this.endOf(y).$D},E.$locale=function(){return N[this.$L]},E.locale=function(_,R){if(!_)return this.$L;var P=this.clone(),q=we(_,R,!0);return q&&(P.$L=q),P},E.clone=function(){return re.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},I}(),et=Ne.prototype;return de.prototype=et,[["$ms",o],["$s",s],["$m",c],["$H",l],["$W",f],["$M",y],["$y",b],["$D",A]].forEach(function(I){et[I[1]]=function(E){return this.$g(E,I[0],I[1])}}),de.extend=function(I,E){return I.$i||(I(E,Ne,de),I.$i=!0),de},de.locale=we,de.isDayjs=ie,de.unix=function(I){return de(1e3*I)},de.en=N[te],de.Ls=N,de.p={},de})})($f);var o0=$f.exports;const On=vn(o0);let xf;const s0=(t,e)=>{xf=new kt(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},a0=async(t,e,r)=>{const n=Object.entries(e).filter(([,c])=>c.type==="text"||c.type==="select"||c.type==="multiselect").reduce((c,[l,f])=>{const h="$or",y=[],m=(b,A)=>{const L={};f.type==="text"?L[b]=`${A}`:L[l]=`="${b}"`,y.push(L)};return Object.entries(f.state).filter(([,b])=>b).forEach(([b,A])=>m(b,A)),y.length>0&&c.push({[h]:y}),c},[]);let i;if(!(n.length>0)&&r.matchAllWhenEmpty!==!1)i=t;else{const c={$and:[...n]},l=xf.search(c);i=r.enableHighlighting?i0(l,"highlight",r.titleProperty):l.map(f=>f.item)}const o=Object.entries(e).filter(([,c])=>c.type==="range").reduce((c,[l,f])=>(c[l]={min:f.state.min,max:f.state.max,format:f.format},c),{});if(Object.keys(o).length>0){const c=[];for(let l=0;l<i.length;l++){const f={};for(const[h,y]of Object.entries(o)){const m=b=>y.format==="date"?On(b).unix():b;Object.prototype.hasOwnProperty.call(i[l],h)?Array.isArray(i[l][h])?f[h]=o[h].min<=m(i[l][h][1])&&m(i[l][h][0])<=o[h].max:m(i[l][h])>=o[h].min&&m(i[l][h])<=o[h].max?f[h]=!0:f[h]=!1:f[h]=!0}Object.values(f).every(h=>!!h)&&c.push(i[l])}i=[...c]}const s=Object.entries(e).filter(([,c])=>c.type==="spatial").reduce((c,[l,f])=>(c[l]={geometry:f.state.geometry,mode:f.state.mode},c),{});if(Object.values(s).map(c=>c.geometry).filter(c=>!!c).length>0){const c=[];for(let l=0;l<i.length;l++){const f={};for(const h of Object.keys(s)){const y=s[h].mode||"within";Object.prototype.hasOwnProperty.call(i[l],h)&&(y==="within"?n0(i[l][h],s[h].geometry):r0(i[l][h],s[h].geometry))?f[h]=!0:f[h]=!1}Object.values(f).every(h=>!!h)&&c.push(i[l])}i=[...c]}return i};function l0(t,e){return[{type:"Vector",properties:{id:"draw"},source:{type:"Vector",...t&&{format:"GeoJSON"},...t&&{url:e}},zIndex:1,interactions:[{type:"draw",options:{id:"drawInteraction",type:"Box",modify:!0}}]},{type:"Tile",source:{type:"XYZ",url:"https://s2maps-tiles.eu/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpg",attribution:"{ OSM: Data © OpenStreetMap contributors and others, Rendering © EOX }"}}]}function Di(t){if(!t.dirty)return null;switch(t.type){case"multiselect":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"range":t.state.min=t.min,t.state.max=t.max;break;case"select":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"spatial":t.state.geometry=void 0;break;case"text":t.keys.forEach(r=>{t.state[r]=void 0});break}return delete t.stringifiedState,delete t.dirty,t}function Sf(t,e){return t*2+e}function c0(t){return Object.keys(t).map(e=>({title:K`${e}:
|
|
488
|
+
<strong>${t[e].stringifiedState}</strong>`,key:e})).filter(e=>t[e.key].dirty)}function zs(t){return Object.values(t).map(e=>e.dirty).filter(e=>e).length>0}async function u0(t,e,r){return await(await fetch(`${r.externalFilter(t,e)}`)).json()}class f0 extends it{constructor(){super();nt(this,Be);this.filterProperties={},this.unstyled=!1,this.inlineMode=!1,this.showDropdown=!1,this.filters={},this._handleClickOutside=Se(this,Be,Kf).bind(this),this._handleKeyDown=Se(this,Be,Ma).bind(this)}static get properties(){return{filterProperties:{attribute:!1,type:Object},inlineMode:{attribute:"inline-mode",type:Boolean},unstyled:{type:Boolean},filters:{state:!0,type:Object}}}connectedCallback(){super.connectedCallback(),this.inlineMode&&(document.addEventListener("click",this._handleClickOutside),document.addEventListener("focusout",this._handleClickOutside),document.addEventListener("keydown",this._handleKeyDown))}disconnectedCallback(){this.inlineMode&&(document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("focusout",this._handleClickOutside),document.removeEventListener("keydown",this._handleKeyDown)),super.disconnectedCallback()}updateInline(){this.inlineMode&&this.requestUpdate()}render(){return K`
|
|
563
489
|
<style>
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
display: flex;
|
|
567
|
-
}
|
|
568
|
-
#dropdown {
|
|
569
|
-
display: none;
|
|
490
|
+
${!this.unstyled&&yn} .inline-content {
|
|
491
|
+
display: ${this.showDropdown?"block":"none"};
|
|
570
492
|
}
|
|
571
|
-
${this.unstyled?se:U`
|
|
572
|
-
${Jr} :host { position: relative; } .container { width: 100%;
|
|
573
|
-
position: relative; border: 1px solid #00417066; border-radius:
|
|
574
|
-
4px; height: 24px; padding: 5px; flex: 1; justify-content:
|
|
575
|
-
space-between; cursor: text; overflow-x: auto; } .container:hover
|
|
576
|
-
{ border: 1px solid #004170; } .input-container { display: flex;
|
|
577
|
-
flex: 1; align-items: center; } input, input:focus { height: 100%;
|
|
578
|
-
border: none; outline: none; } .button-container { display: flex;
|
|
579
|
-
align-items: center; justify-content: center; position: absolute;
|
|
580
|
-
right: 1px; top: 5px; height: calc(100% - 10px); width: 34px;
|
|
581
|
-
background: white; } button.icon { color: #004170; height: 24px;
|
|
582
|
-
font-size: large; width: unset; } .container::-webkit-scrollbar {
|
|
583
|
-
height: 2px; } .container::-webkit-scrollbar-thumb { background:
|
|
584
|
-
lightgrey; border-radius: 2px;} .hidden {height: 1px; padding: 0;
|
|
585
|
-
border: none;} .hidden:hover {border: none} .hidden input {
|
|
586
|
-
opacity: 0% }
|
|
587
|
-
`}
|
|
588
493
|
</style>
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
494
|
+
${this.inlineMode?K`
|
|
495
|
+
<div
|
|
496
|
+
class="inline-container-wrapper"
|
|
497
|
+
@click="${Se(this,Be,Pa)}"
|
|
498
|
+
>
|
|
499
|
+
<div class="inline-container" part="container">
|
|
500
|
+
<div class="chip-container">
|
|
501
|
+
<div class="chip-wrapper">
|
|
502
|
+
<eox-itemfilter-chips
|
|
503
|
+
.items=${c0(this.filters)}
|
|
504
|
+
.controller=${{remove:r=>Se(this,Be,Jf).call(this,r)}}
|
|
505
|
+
>
|
|
506
|
+
</eox-itemfilter-chips>
|
|
507
|
+
</div>
|
|
508
|
+
|
|
509
|
+
${Qe(zs(this.filters),()=>K`
|
|
510
|
+
<span
|
|
511
|
+
class="chip-close"
|
|
512
|
+
@click=${()=>this.dispatchEvent(new CustomEvent("reset"))}
|
|
513
|
+
></span>
|
|
514
|
+
`)}
|
|
515
|
+
</div>
|
|
516
|
+
<div
|
|
517
|
+
class="input-container ${zs(this.filters)?"dirty-filter-input":""}"
|
|
518
|
+
>
|
|
519
|
+
<input
|
|
520
|
+
autocomplete="off"
|
|
521
|
+
id="itemfilter-input-search"
|
|
522
|
+
type="text"
|
|
523
|
+
@click="${Se(this,Be,Pa)}"
|
|
524
|
+
@focus="${Se(this,Be,Yf)}"
|
|
525
|
+
@input="${Se(this,Be,Zf)}"
|
|
526
|
+
placeholder="Search and add filter"
|
|
527
|
+
aria-haspopup="true"
|
|
528
|
+
aria-expanded="${this.showDropdown}"
|
|
529
|
+
/>
|
|
530
|
+
</div>
|
|
531
|
+
</div>
|
|
532
|
+
<div
|
|
533
|
+
class="inline-content ${this.showDropdown?"":"hidden"}"
|
|
534
|
+
slot="content"
|
|
535
|
+
@keydown="${Se(this,Be,Ma)}"
|
|
536
|
+
@click="${Se(this,Be,Oa)}"
|
|
537
|
+
@focus="${Se(this,Be,Oa)}"
|
|
538
|
+
>
|
|
539
|
+
<slot name="section"></slot>
|
|
540
|
+
</div>
|
|
541
|
+
</div>
|
|
542
|
+
`:K`<slot name="section"></slot>`}
|
|
543
|
+
`}}Be=new WeakSet,Kf=function(r){ph(r,this)},Ma=function(r){fh(r,this)},Pa=function(r){uh(r,this)},Yf=function(){ch(this)},Oa=function(r){lh(r,this)},Jf=function(r){ah(r,this)},Zf=function(r){dl(r,this)},customElements.define("eox-itemfilter-container",f0);var p0="Expected a function",Af=NaN,h0="[object Symbol]",d0=/^\s+|\s+$/g,g0=/^[-+]0x[0-9a-f]+$/i,y0=/^0b[01]+$/i,v0=/^0o[0-7]+$/i,m0=parseInt,b0=typeof Ge=="object"&&Ge&&Ge.Object===Object&&Ge,w0=typeof self=="object"&&self&&self.Object===Object&&self,$0=b0||w0||Function("return this")(),x0=Object.prototype,S0=x0.toString,A0=Math.max,_0=Math.min,qs=function(){return $0.Date.now()};function E0(t,e,r){var n,i,o,s,c,l,f=0,h=!1,y=!1,m=!0;if(typeof t!="function")throw new TypeError(p0);e=_f(e)||0,Gs(r)&&(h=!!r.leading,y="maxWait"in r,o=y?A0(_f(r.maxWait)||0,e):o,m="trailing"in r?!!r.trailing:m);function b(N){var X=n,ie=i;return n=i=void 0,f=N,s=t.apply(ie,X),s}function A(N){return f=N,c=setTimeout(V,e),h?b(N):s}function L(N){var X=N-l,ie=N-f,we=e-X;return y?_0(we,o-ie):we}function W(N){var X=N-l,ie=N-f;return l===void 0||X>=e||X<0||y&&ie>=o}function V(){var N=qs();if(W(N))return J(N);c=setTimeout(V,L(N))}function J(N){return c=void 0,m&&n?b(N):(n=i=void 0,s)}function Z(){c!==void 0&&clearTimeout(c),f=0,n=l=i=c=void 0}function pe(){return c===void 0?s:J(qs())}function te(){var N=qs(),X=W(N);if(n=arguments,i=this,l=N,X){if(c===void 0)return A(l);if(y)return c=setTimeout(V,e),b(l)}return c===void 0&&(c=setTimeout(V,e)),s}return te.cancel=Z,te.flush=pe,te}function Gs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function M0(t){return!!t&&typeof t=="object"}function P0(t){return typeof t=="symbol"||M0(t)&&S0.call(t)==h0}function _f(t){if(typeof t=="number")return t;if(P0(t))return Af;if(Gs(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Gs(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(d0,"");var r=y0.test(t);return r||v0.test(t)?m0(t.slice(2),r?2:8):g0.test(t)?Af:+t}var O0=E0;const Ri=vn(O0);function C0(t){const e=t.renderRoot.querySelector("input[type='text']");e.value="",Di(t.filterObject),t.requestUpdate()}function k0(t){const e=t.renderRoot.querySelector("input[type='text']");t.filterObject.keys.forEach(r=>{t.filterObject.state[r]=e.value}),t.filterObject.dirty=!0,t.filterObject.stringifiedState=e.value,t.dispatchEvent(new CustomEvent("filter")),e.value===""&&t.reset()}function L0(t){Di(t.filterObject),t.requestUpdate()}function T0(t,e){const[r,n]=t.detail.values;(r!==e.filterObject.state.min||n!==e.filterObject.state.max)&&([e.filterObject.state.min,e.filterObject.state.max]=[r,n],e.filterObject.dirty=!0),e.filterObject.dirty&&(e.filterObject.stringifiedState=`${On(r)} - ${On(n)}`),e.dispatchEvent(new CustomEvent("filter")),r===e.filterObject.min&&n===e.filterObject.max?e.reset():e.requestUpdate()}function I0(t,e,r){const n=r.filterObject.format==="date",i=r.filterObject.state[t],o=n?On.unix(i):i;return K`<div class="range-${e}">${o}</div>`}function D0(t){R0(-1,t),Di(t.filterObject),t.requestUpdate()}function R0(t,e){e.selectedItems=t===-1?[]:e.selectedItems.filter((r,n)=>n!==t),ji(e),Mf(e)}function Ef(t,e){const r=e.selectedItems.indexOf(t);r>=0?e.selectedItems=e.selectedItems.filter((n,i)=>i!==r):e.type==="multiselect"?e.selectedItems=[...e.selectedItems,t]:(e.selectedItems=[t],e.showSuggestions=!1),e.query="",ji(e),Mf(e)}function j0(t,e){e.query=t.target.value,e.showSuggestions=!0}function B0(t,e){switch(t.key){case"ArrowDown":e.highlightedIndex=Math.min(e.highlightedIndex+1,e.filteredSuggestions.length-1);break;case"ArrowUp":e.highlightedIndex=Math.max(e.highlightedIndex-1,0);break;case"Enter":e.highlightedIndex>=0&&Ef(e.filteredSuggestions[e.highlightedIndex],e);break;case"Escape":e.showSuggestions=!1;break}}function N0(t,e){t.has("suggestions")&&(e.fuse=new kt(e.suggestions,{threshold:.3}),ji(e)),t.has("query")&&ji(e)}function H0(t,e){var n;const r=((n=t.filterObject)==null?void 0:n.sort)||((i,o)=>i.localeCompare(o));return e.sort(r).map(i=>i)}function ji(t){let e=t.suggestions;t.query&&(e=t.fuse.search(t.query).map(r=>r.item)),t.filteredSuggestions=H0(t,e),t.highlightedIndex=-1}function Mf(t){Object.keys(t.filterObject.state).forEach(e=>{t.filterObject.state[e]=t.selectedItems.map(r=>r).includes(e)}),t.filterObject.stringifiedState=Object.keys(t.filterObject.state).filter(e=>t.filterObject.state[e]).join(", ")||"",t.filterObject.dirty=t.filterObject.stringifiedState.length>0,t.dispatchEvent(new CustomEvent("filter")),t.requestUpdate()}function U0(t){Di(t.filterObject),t.renderRoot.querySelector("itemfilter-spatial-filter").reset(),t.requestUpdate()}function F0(t){t.renderRoot.querySelector("#eox-map").innerHTML="",Pf(t)}function W0(t,e){e.filterObject.state.mode=t;const r=new CustomEvent("filter",{detail:{[e.filterObject.key]:{}}});e.dispatchEvent(r)}function Pf(t){const e=t.renderRoot.querySelector("#eox-map");e.innerHTML===""&&(e.innerHTML='<eox-map part="map" style="height: 400px"></eox-map>');const r=t.geometry&&z0(t.geometry),n=l0(t.geometry,r);t.eoxMap=t.renderRoot.querySelector("eox-map"),setTimeout(()=>{t.eoxMap.layers=n;const i=o=>{const s=new CustomEvent("filter",{detail:{geometry:{type:"Polygon",coordinates:o.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates()}}});t.dispatchEvent(s)};t.eoxMap.interactions.drawInteraction.on("drawend",o=>{i(o.feature),t.eoxMap.removeInteraction("drawInteraction")}),t.eoxMap.interactions.drawInteraction_modify.on("modifyend",o=>{i(o.features.getArray()[0])})},1e3)}function z0(t){return`data:text/json,${encodeURIComponent(JSON.stringify({type:"FeatureCollection",features:[{type:"Feature",properties:null,geometry:t}]}))}`}class q0 extends it{constructor(){super();nt(this,Wi,()=>{k0(this)});Jn(this,"debouncedInputHandler",Ri(pt(this,Wi),500,{leading:!0}));this.filterObject={},this.unstyled=!1,this.tabIndex=0}static get properties(){return{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number},unstyled:{type:Boolean}}}reset(){C0(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>K`
|
|
544
|
+
<style></style>
|
|
545
|
+
<div class="text-container">
|
|
546
|
+
<div class="text-container-wrapper">
|
|
606
547
|
<input
|
|
607
|
-
slot="trigger"
|
|
608
548
|
type="text"
|
|
609
|
-
|
|
610
|
-
|
|
549
|
+
placeholder=${this.filterObject.placeholder}
|
|
550
|
+
data-cy="search"
|
|
551
|
+
class="text-input"
|
|
552
|
+
part="input-search"
|
|
553
|
+
value="${Object.values(this.filterObject.state)[0]}"
|
|
554
|
+
tabindex=${this.tabIndex}
|
|
555
|
+
@input="${this.debouncedInputHandler}"
|
|
556
|
+
@click=${r=>r.stopPropagation()}
|
|
611
557
|
/>
|
|
612
|
-
|
|
613
|
-
<eox-selectionlist
|
|
614
|
-
slot="content"
|
|
615
|
-
.filter=${this.inputText}
|
|
616
|
-
.idProperty=${this.idProperty}
|
|
617
|
-
.titleProperty=${this.titleProperty}
|
|
618
|
-
.items=${this.items.filter(t=>this.multiStep?!t.stringifiedState:!0).filter(t=>this.inputText?t[this.titleProperty].toLowerCase().includes(this.inputText.toLowerCase()):!0)}
|
|
619
|
-
.multiple=${this.multiStep?!0:this.multiple}
|
|
620
|
-
.disableKeyboardEvents=${this.multiStep}
|
|
621
|
-
.selectedItems=${this.multiStep?this.selectedItems.filter(t=>t.stringifiedState):this.selectedItems}
|
|
622
|
-
.unstyled=${this.unstyled}
|
|
623
|
-
@items-highlighted=${t=>{this._handleHighlight(t.detail)}}
|
|
624
|
-
@items-selected=${t=>{this._handleSelect(t.detail)}}
|
|
625
|
-
>
|
|
626
|
-
</eox-selectionlist>
|
|
627
|
-
`)}
|
|
628
|
-
</eox-dropdown>
|
|
558
|
+
</div>
|
|
629
559
|
</div>
|
|
560
|
+
`)}}Wi=new WeakMap,customElements.define("eox-itemfilter-text",q0);class Of extends it{constructor(){super(...arguments),this.templates={},this._renderedTemplates={}}setBindingSyntax(e,r){this._startExpression=e,this._endExpression=r;const n=this.escapeRegex(this._startExpression),i=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${n}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${i}`,"g")}hasTemplate(e){return this.templates&&!!this.templates[e]}renderTemplate(e,r,n){if(!this.hasTemplate(e))return null;n=n||e;const i=K` <slot name=${n}></slot> `,o={[e]:{...r}};if(this._renderedTemplates.hasOwnProperty(n)){const{slot:c}=this._renderedTemplates[n];this.contains(c)&&this.removeChild(c)}const s=document.createElement("div");return s.slot=n,s.dataset.generated="template",this._renderTemplate(s,this.templates[e],o),this.appendChild(s),this._renderedTemplates[n]={context:o,slot:s},i}getTemplates(){const e={};for(let r=0;r<this.children.length;r++){const n=this.children[r];if(n.nodeName==="RENDER-TEMPLATE"){const i=n;i.dataset.type?e[i.dataset.type]=i:e.default=i,i.templateOrder=r}}return e}_renderTemplate(e,r,n){let i;if(r&&r.childNodes.length){const o=r.cloneNode(!0);i=this.renderNode(o,e,n)}i&&e.appendChild(i)}expandExpressionsAsString(e,r){return e.replace(this.expression,(n,i)=>{const o=this.evalInContext(i||this.trimExpression(n),r);return o?typeof o=="object"?JSON.stringify(o):o.toString():""})}get expression(){return this._expression||this.setBindingSyntax("{{","}}"),this._expression}escapeRegex(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}evalInContext(e,r){r={...r};const n=new Function("with(this) { return "+e+";}");let i;try{i=n.call(r)}catch{}return i}trimExpression(e){return e=e.trim(),e.startsWith(this._startExpression)&&e.endsWith(this._endExpression)&&(e=e.substr(this._startExpression.length,e.length-this._startExpression.length-this._endExpression.length),e=e.trim()),e}renderNode(e,r,n){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,n),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=n,e;for(let i=0;i<e.childNodes.length;i++){const o=e.childNodes[i];this.renderNode(o,r,n)}return e}firstUpdated(){this.templates=this.getTemplates()}}function G0(t,e,r){return t.filter(n=>{const i=n[r.config.aggregateResults];let o;return r.filters[r.config.aggregateResults]&&(o=Object.keys(r.filters[r.config.aggregateResults]).filter(c=>r.filters[r.config.aggregateResults].state[c])),(o!=null&&o.length?o.includes(e):!0)&&Array.isArray(i)?i.includes(e):i===e})}/**
|
|
561
|
+
* @license
|
|
562
|
+
* Copyright 2017 Google LLC
|
|
563
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
564
|
+
*/const Cf={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},kf=t=>(...e)=>({_$litDirective$:t,values:e});class Lf{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/**
|
|
565
|
+
* @license
|
|
566
|
+
* Copyright 2020 Google LLC
|
|
567
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
568
|
+
*/const{I:V0}=wp,Tf=()=>document.createComment(""),Cn=(t,e,r)=>{var o;const n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){const s=n.insertBefore(Tf(),i),c=n.insertBefore(Tf(),i);r=new V0(s,c,t,t.options)}else{const s=r._$AB.nextSibling,c=r._$AM,l=c!==t;if(l){let f;(o=r._$AQ)==null||o.call(r,t),r._$AM=t,r._$AP!==void 0&&(f=t._$AU)!==c._$AU&&r._$AP(f)}if(s!==i||l){let f=r._$AA;for(;f!==s;){const h=f.nextSibling;n.insertBefore(f,i),f=h}}}return r},pr=(t,e,r=t)=>(t._$AI(e,r),t),K0={},Y0=(t,e=K0)=>t._$AH=e,J0=t=>t._$AH,Vs=t=>{var n;(n=t._$AP)==null||n.call(t,!1,!0);let e=t._$AA;const r=t._$AB.nextSibling;for(;e!==r;){const i=e.nextSibling;e.remove(),e=i}};/**
|
|
569
|
+
* @license
|
|
570
|
+
* Copyright 2017 Google LLC
|
|
571
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
572
|
+
*/const If=(t,e,r)=>{const n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},Z0=kf(class extends Lf{constructor(t){if(super(t),t.type!==Cf.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);const i=[],o=[];let s=0;for(const c of t)i[s]=n?n(c,s):s,o[s]=r(c,s),s++;return{values:o,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){const i=J0(t),{values:o,keys:s}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=s,o;const c=this.ut??(this.ut=[]),l=[];let f,h,y=0,m=i.length-1,b=0,A=o.length-1;for(;y<=m&&b<=A;)if(i[y]===null)y++;else if(i[m]===null)m--;else if(c[y]===s[b])l[b]=pr(i[y],o[b]),y++,b++;else if(c[m]===s[A])l[A]=pr(i[m],o[A]),m--,A--;else if(c[y]===s[A])l[A]=pr(i[y],o[A]),Cn(t,l[A+1],i[y]),y++,A--;else if(c[m]===s[b])l[b]=pr(i[m],o[b]),Cn(t,i[y],i[m]),m--,b++;else if(f===void 0&&(f=If(s,b,A),h=If(c,y,m)),f.has(c[y]))if(f.has(c[m])){const L=h.get(s[b]),W=L!==void 0?i[L]:null;if(W===null){const V=Cn(t,i[y]);pr(V,o[b]),l[b]=V}else l[b]=pr(W,o[b]),Cn(t,i[y],W),i[L]=null;b++}else Vs(i[m]),m--;else Vs(i[y]),y++;for(;b<=A;){const L=Cn(t,l[A+1]);pr(L,o[b]),l[b++]=L}for(;y<=m;){const L=i[y++];L!==null&&Vs(L)}return this.ut=s,Y0(t,l),Ht}});/**
|
|
573
|
+
* @license
|
|
574
|
+
* Copyright 2017 Google LLC
|
|
575
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
576
|
+
*/class Ks extends Lf{constructor(e){if(super(e),this.it=be,e.type!==Cf.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===be||e==null)return this._t=void 0,this.it=e;if(e===Ht)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Ks.directiveName="unsafeHTML",Ks.resultType=1;const X0=kf(Ks);function Q0(t,e){return K`
|
|
577
|
+
<details
|
|
578
|
+
class="details-results"
|
|
579
|
+
@toggle=${e.toggleAccordion}
|
|
580
|
+
?open=${e.config.expandResults||be}
|
|
581
|
+
>
|
|
582
|
+
<summary>
|
|
583
|
+
<span class="title">
|
|
584
|
+
${t}
|
|
585
|
+
<span class="count"
|
|
586
|
+
>${e.aggregateResults(e.results,t).length}</span
|
|
587
|
+
>
|
|
588
|
+
</span>
|
|
589
|
+
</summary>
|
|
590
|
+
<div>
|
|
591
|
+
${Df(t,e)}
|
|
630
592
|
</div>
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
>
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
593
|
+
</details>
|
|
594
|
+
`}function Df(t,e){const r=e.results,n=t?e.aggregateResults(r,t):r,i=e.config,o=s=>{var c;return((c=e.selectedResult)==null?void 0:c[i.titleProperty])===s[i.titleProperty]?"highlighted":be};return K`
|
|
595
|
+
<ul>
|
|
596
|
+
${Z0(n,s=>s.id,s=>{var c;return K`
|
|
597
|
+
<li class=${o(s)}>
|
|
598
|
+
<label>
|
|
599
|
+
<input
|
|
600
|
+
data-cy="result-radio"
|
|
601
|
+
type="radio"
|
|
602
|
+
class="result-radio"
|
|
603
|
+
name="result"
|
|
604
|
+
id="${s.id}"
|
|
605
|
+
?checked=${((c=e.selectedResult)==null?void 0:c[i.titleProperty])===s[i.titleProperty]||be}
|
|
606
|
+
@click=${()=>{e.selectedResult=s,e.dispatchEvent(new CustomEvent("result",{detail:s}))}}
|
|
607
|
+
/>
|
|
608
|
+
${Qe(e.hasTemplate("result"),()=>e.renderTemplate("result",s,`result-${s.id}`),()=>K`
|
|
609
|
+
<span class="title"
|
|
610
|
+
>${X0(s[i.titleProperty])}</span
|
|
611
|
+
>
|
|
612
|
+
`)}
|
|
613
|
+
</label>
|
|
614
|
+
</li>
|
|
615
|
+
`})}
|
|
616
|
+
</ul>
|
|
617
|
+
`}class eb extends Of{constructor(){super();nt(this,dr);this.config=null,this.filters={},this.resultAggregation=[],this.selectedResult=null}static get properties(){return{config:{attribute:!1,type:Object},results:{state:!0,type:Object},filters:{state:!0,type:Object},resultAggregation:{attribute:!1,type:Array},selectedResult:{state:!0,type:Object}}}aggregateResults(r,n){return G0(r,n,this)}createRenderRoot(){return this}render(){return K`
|
|
618
|
+
<section id="section-results">
|
|
619
|
+
<div>
|
|
620
|
+
<h6 style="padding: 8px 0px;">Results</h6>
|
|
621
|
+
</div>
|
|
622
|
+
<div id="container-results" class="scroll">
|
|
623
|
+
${Qe(this.results.length<1,()=>K`<small class="no-results">No matching items</small>`,()=>be)}
|
|
624
|
+
<ul id="results" part="results">
|
|
625
|
+
${Qe(this.config.aggregateResults,()=>Xn(this.resultAggregation.filter(r=>this.aggregateResults(this.results,r).length),r=>K`${Qe(this.aggregateResults(this.results,r).length===1&&this.config.autoSpreadSingle,()=>K`<div style="margin-left: -8px">
|
|
626
|
+
${Se(this,dr,Ca).call(this,r)}
|
|
627
|
+
</div>`,()=>Se(this,dr,Xf).call(this,r))}`),()=>Se(this,dr,Ca).call(this))}
|
|
628
|
+
</ul>
|
|
629
|
+
</div>
|
|
630
|
+
</section>
|
|
631
|
+
`}}dr=new WeakSet,Ca=function(r){return Df(r,this)},Xf=function(r){return Q0(r,this)},customElements.define("eox-itemfilter-results",eb);const tb=`input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`,rb=`input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`;class Rf extends it{constructor(){super();nt(this,Yt);Jn(this,"debouncedInputHandler",Ri(Se(this,Yt,tp),500,{leading:!0}));this.filterObject={},this.suggestions=[],this.selectedItems=[],this.query="",this.showSuggestions=!1,this.highlightedIndex=-1,this.filteredSuggestions=[],this.type="select",this.fuse=new kt(this.suggestions,{threshold:.3}),this.unstyled=!1,this.tabIndex=0,this.inlineMode=!1}updated(r){N0(r,this)}reset(){D0(this)}firstUpdated(){this.filterObject.state&&(this.selectedItems=Object.keys(this.filterObject.state).map(r=>this.filterObject.state[r]?r:null).filter(r=>!!r),this.filterObject.stringifiedState=this.selectedItems.join(", ")||"",this.requestUpdate())}render(){const r=this.type.includes("multi")?"checkbox":"radio",n=this.filteredSuggestions.length>5?"select-overflow":be;return K`
|
|
642
632
|
<style>
|
|
643
|
-
${
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}
|
|
647
|
-
ul {
|
|
648
|
-
width: 100%;
|
|
649
|
-
}
|
|
650
|
-
li.highlighted {
|
|
651
|
-
background: lightgrey;
|
|
652
|
-
}
|
|
653
|
-
${!this.unstyled&&Zr}
|
|
633
|
+
${!this.unstyled&&yn}
|
|
634
|
+
${!this.unstyled&&tb}
|
|
635
|
+
${!this.unstyled&&rb}
|
|
654
636
|
</style>
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
<
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
@items-selected=${t=>this._handleSelected(t.detail)}
|
|
695
|
-
|
|
696
|
-
`)}
|
|
697
|
-
`)}};vr([J()],rr.prototype,"filterObject",2),vr([J({type:Boolean})],rr.prototype,"inline",2),vr([J({type:Boolean})],rr.prototype,"unstyled",2),rr=vr([ke("eox-itemfilter-multiselect")],rr);var dl="Expected a function",Wn=NaN,fl="[object Symbol]",pl=/^\s+|\s+$/g,gl=/^[-+]0x[0-9a-f]+$/i,ml=/^0b[01]+$/i,yl=/^0o[0-7]+$/i,vl=parseInt,bl=typeof Pt=="object"&&Pt&&Pt.Object===Object&&Pt,xl=typeof self=="object"&&self&&self.Object===Object&&self,wl=bl||xl||Function("return this")(),$l=Object.prototype,_l=$l.toString,El=Math.max,Sl=Math.min,ni=function(){return wl.Date.now()};function Al(t,e,r){var i,n,s,o,l,a,c=0,f=!1,p=!1,b=!0;if(typeof t!="function")throw new TypeError(dl);e=Xn(e)||0,si(r)&&(f=!!r.leading,p="maxWait"in r,s=p?El(Xn(r.maxWait)||0,e):s,b="trailing"in r?!!r.trailing:b);function y(_){var A=i,k=n;return i=n=void 0,c=_,o=t.apply(k,A),o}function E(_){return c=_,l=setTimeout(B,e),f?y(_):o}function O(_){var A=_-a,k=_-c,F=e-A;return p?Sl(F,s-k):F}function z(_){var A=_-a,k=_-c;return a===void 0||A>=e||A<0||p&&k>=s}function B(){var _=ni();if(z(_))return g(_);l=setTimeout(B,O(_))}function g(_){return l=void 0,b&&i?y(_):(i=n=void 0,o)}function m(){l!==void 0&&clearTimeout(l),c=0,i=a=n=l=void 0}function w(){return l===void 0?o:g(ni())}function S(){var _=ni(),A=z(_);if(i=arguments,n=this,a=_,A){if(l===void 0)return E(a);if(p)return l=setTimeout(B,e),y(a)}return l===void 0&&(l=setTimeout(B,e)),o}return S.cancel=m,S.flush=w,S}function si(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Ml(t){return!!t&&typeof t=="object"}function Ol(t){return typeof t=="symbol"||Ml(t)&&_l.call(t)==fl}function Xn(t){if(typeof t=="number")return t;if(Ol(t))return Wn;if(si(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=si(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(pl,"");var r=ml.test(t);return r||yl.test(t)?vl(t.slice(2),r?2:8):gl.test(t)?Wn:+t}var Pl=Al;const Vn=Vr(Pl);var Ll=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,Kn=(t,e,r,i)=>{for(var n=i>1?void 0:i?Cl(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&Ll(e,r,n),n};let oi=class extends _e{constructor(){super(...arguments),this.inputHandler=t=>{const[e,r]=t.detail.values;(e!==this.filterObject.state.min||r!=this.filterObject.state.max)&&([this.filterObject.state.min,this.filterObject.state.max]=[e,r],this.filterObject.dirty=!0),this.filterObject.dirty&&(this.filterObject.stringifiedState=`${Lt(e)} - ${Lt(r)}`),this.dispatchEvent(new CustomEvent("filter")),this.requestUpdate()},this.debouncedInputHandler=Vn(this.inputHandler,0,{leading:!0})}reset(){Ct(this.filterObject),this.requestUpdate()}createRenderRoot(){return this}render(){return de(this.filterObject,()=>U`
|
|
698
|
-
<div class="range-before">
|
|
699
|
-
${this.filterObject.format==="date"?Lt.unix(this.filterObject.state.min):this.filterObject.state.min}
|
|
700
|
-
</div>
|
|
637
|
+
${Qe(this.suggestions.length>10,()=>K`<div class="autocomplete-container">
|
|
638
|
+
<div class="autocomplete-container-wrapper">
|
|
639
|
+
<input
|
|
640
|
+
autocomplete="off"
|
|
641
|
+
tabindex=${this.tabIndex}
|
|
642
|
+
class="autocomplete-input"
|
|
643
|
+
type="text"
|
|
644
|
+
.value=${this.query}
|
|
645
|
+
placeholder="${this.filterObject.placeholder||""}"
|
|
646
|
+
@input=${Se(this,Yt,Qf)}
|
|
647
|
+
@keydown=${Se(this,Yt,ep)}
|
|
648
|
+
@blur=${()=>this.showSuggestions=!1}
|
|
649
|
+
@focus=${()=>this.showSuggestions=!0}
|
|
650
|
+
/>
|
|
651
|
+
</div>
|
|
652
|
+
</div>`)}
|
|
653
|
+
<div class="select-container ${n}">
|
|
654
|
+
<ul class="${this.type}">
|
|
655
|
+
${this.filteredSuggestions.map(i=>K`
|
|
656
|
+
<li
|
|
657
|
+
data-identifier="${i.toString().toLowerCase()}"
|
|
658
|
+
data-title="${i}"
|
|
659
|
+
class="${this.selectedItems.includes(i)?"highlight-item":""}"
|
|
660
|
+
>
|
|
661
|
+
<label>
|
|
662
|
+
<input
|
|
663
|
+
type="${r}"
|
|
664
|
+
name=${i}
|
|
665
|
+
.checked=${this.selectedItems.includes(i)}
|
|
666
|
+
@change=${()=>this.debouncedInputHandler(i)}
|
|
667
|
+
@keydown=${o=>{o.key===" "&&this.inlineMode&&this.debouncedInputHandler(i)}}
|
|
668
|
+
tabindex=${this.tabIndex+1}
|
|
669
|
+
/>
|
|
670
|
+
<span class="title">${i}</span>
|
|
671
|
+
</label>
|
|
672
|
+
</li>
|
|
673
|
+
`)}
|
|
674
|
+
</ul>
|
|
675
|
+
</div>
|
|
676
|
+
`}}Yt=new WeakSet,Qf=function(r){j0(r,this)},ep=function(r){B0(r,this)},tp=function(r){Ef(r,this)},Jn(Rf,"properties",{filterObject:{attribute:!1,type:Object},suggestions:{attribute:!1,type:Array},selectedItems:{state:!0,type:Array},query:{state:!0,type:String},showSuggestions:{state:!0,type:Boolean},highlightedIndex:{state:!0,type:Number},filteredSuggestions:{state:!0,type:Array},type:{attribute:!0,type:String},unstyled:{type:Boolean},tabIndex:{attribute:!1,type:Number},inlineMode:{attribute:"inline-mode",type:Boolean}}),customElements.define("eox-itemfilter-select",Rf),(()=>{var t=Object.defineProperty,e=Math.pow,r=(u,g,x)=>g in u?t(u,g,{enumerable:!0,configurable:!0,writable:!0,value:x}):u[g]=x,n=(u,g,x)=>(r(u,typeof g!="symbol"?g+"":g,x),x),i=(u,g)=>` ${g&&g.length>0?g.map(x=>`<link rel="stylesheet" href="${x}" />`).join(""):""} <style> ${u} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`,o=":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}",s="pointers-overlap",c="pointers-min-distance",l="pointers-max-distance",f="range-dragging",h="data",y="min",m="max",b="step",A="round",L="type",W="theme",V="rtl",J="btt",Z="disabled",pe="keyboard-disabled",te="mousewheel-disabled",N="slider-width",X="slider-height",ie="slider-radius",we="slider-bg",de="slider-bg-hover",re="slider-bg-fill",Ne="pointer-width",et="pointer-height",I="pointer-radius",E="pointer-bg",_="pointer-bg-hover",R="pointer-bg-focus",P="pointer-shadow",q="pointer-shadow-hover",G="pointer-shadow-focus",ye="pointer-border",_e="pointer-border-hover",Pe="pointer-border-focus",Ce="animate-onclick",Ke="css-links",Le="vertical",Ye="horizontal",le=(u,g,x,w,M)=>{let H=g-u;return H===0?x:(w-x)*(M-u)/H+x},Te=u=>!isNaN(parseFloat(u))&&isFinite(u),oe=(u,g)=>Te(u)?Number(u):g,Ie=(u,g)=>g===0?0:Math.round(u/g)*g,_t=(u,g=1/0)=>{if(g===1/0)return u;let x=e(10,g);return Math.round(u*x)/x},Ee=u=>u==null?!1:typeof u=="boolean"?u:u.trim().toLowerCase()==="true",ta=(u,g)=>{u.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:g}}))},Gi=(u,g)=>{u.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:g}}))},Vi=(u,g)=>{u.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:g}}))},Ki=(u,g)=>{u.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:g}}))},ra=(u,g)=>{if(!g||g.length<=0)return;let x=g.map(M=>Te(M)?oe(M,M):M),w={values:x||[]};w.value=x[0],w.value0=x[0],w.value1=x[0];for(let M=1;M<x.length;M++)w[`value${M+1}`]=x[M];u.dispatchEvent(new CustomEvent("change",{detail:w}))},Tn=(u,g,x)=>{let w=0,M,H,U,C,k=!1,Q=(F,$e,De,ke,Me,Ae)=>{let Je=w;De!==void 0&&F>De&&(F=De),$e!==void 0&&F<$e&&(F=$e),w=F;let ze=w;return(ke===Le&&Ae||ke===Ye&&Me)&&(ze=100-ze),ke===Le?g.style.top=`${ze}%`:g.style.left=`${ze}%`,Je!==w},se=F=>F===g||g.contains(F),B=(F,$e,De,ke)=>{M=F,H=$e,U=De,C=ke},ce=F=>{k=F,g.classList.toggle("disabled",k),k?g.setAttribute("aria-disabled","true"):g.hasAttribute("aria-disabled")&&g.removeAttribute("aria-disabled")},rt=(F,$e)=>{$e==null?g.removeAttribute(F):g.setAttribute(F,$e)},Fe=F=>g.getAttribute(F),j=F=>{if(!k){switch(F.key){case"ArrowLeft":{F.preventDefault(),typeof M=="function"&&M(x);break}case"ArrowRight":{F.preventDefault(),typeof H=="function"&&H(x);break}case"ArrowUp":{F.preventDefault(),typeof U=="function"&&U(x);break}case"ArrowDown":{F.preventDefault(),typeof C=="function"&&C(x);break}}Ki(u,F)}},ne=()=>{k||ta(u,g)};return g.className=`pointer pointer-${x}`,g.addEventListener("keydown",j),g.addEventListener("click",ne),{$pointer:g,get percent(){return w},get disabled(){return k},set disabled(F){ce(F)},updatePosition:Q,isClicked:se,setCallbacks:B,setAttr:rt,getAttr:Fe,destroy:()=>{g.removeEventListener("keydown",j),g.removeEventListener("click",ne),g.remove()}}},na=u=>{if(u==null)return;if(Array.isArray(u))return u;if(u.trim()==="")return;let g=u.split(","),x=[],w=!0;for(let M=0;M<g.length;M++){let H=g[M].trim();H!==""&&(x.push(H),Te(H)||(w=!1))}return w?x.map(M=>Number(M)):x},ia=(u,g)=>g?g.findIndex(x=>x===u||x.toString().trim()===u.toString().trim()):-1,oa=u=>({updatePosition:(g,x,w,M)=>{if(x.length<=0)return;let H=x.length===1,U=x[0],C=x[x.length-1];g===Le?(u.style.removeProperty("width"),u.style.removeProperty("right"),u.style.removeProperty("left"),H?u.style.height=`${U}%`:u.style.height=`${Math.abs(U-C)}%`,M?(u.style.bottom="0%",H?u.style.top="auto":u.style.top=`${Math.min(100-C,100-U)}%`):(u.style.bottom="auto",H?u.style.top="0%":u.style.top=`${Math.min(U,C)}%`)):(u.style.removeProperty("height"),u.style.removeProperty("top"),u.style.removeProperty("bottom"),H?u.style.width=`${U}%`:u.style.width=`${Math.abs(U-C)}%`,w?(u.style.right="0%",H?u.style.left="auto":u.style.left=`${Math.min(100-C,100-U)}%`):(u.style.right="auto",H?u.style.left="0%":u.style.left=`${Math.min(U,C)}%`))}}),Yi="--animate-onclick",sa="--width",In="--height",aa="--panel-bg-border-radius",la="--panel-bg",ca="--panel-bg-hover",ua="--panel-bg-fill",fa="--pointer-width",qr="--pointer-height",Dn="--pointer-border-radius",Ji="--pointer-bg",Zi="--pointer-bg-hover",vt="--pointer-bg-focus",Jt="--pointer-shadow",pa="--pointer-shadow-hover",Gr="--pointer-shadow-focus",Xi="--pointer-border",ha="--pointer-border-hover",da="--pointer-border-focus",vr=(u,g,x)=>{let w=new Map;for(let M of u.attributes){let H=M.nodeName.trim().toLowerCase();if(!g.test(H))continue;let U=H.replace(/\D/g,"").trim(),C=U===""||U==="0"||U==="1"?0:oe(U,0)-1,k=x&&typeof x=="function"?x(M.value):M.value;w.set(C,k)}return w},ga=u=>{if(!u)return null;let g=u.getAttribute(Ke);if(!g)return null;let x=g.split(";"),w=[];for(let M of x)M.trim()!==""&&w.push(M.trim());return w},Vr=[[sa,N,"sliderWidth",null],[In,X,"sliderHeight",null],[aa,ie,"sliderRadius",null],[la,we,"sliderBg",null],[ca,de,"sliderBgHover",null],[ua,re,"sliderBgFill",null],[fa,Ne,"pointer#Width",/^pointer([0-9]*)-width$/],[qr,et,"pointer#Height",/^pointer([0-9]*)-height$/],[Dn,I,"pointer#Radius",/^pointer([0-9]*)-radius$/],[Ji,E,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Zi,_,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[vt,R,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[Jt,P,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[pa,q,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[Gr,G,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[Xi,ye,"pointer#Border",/^pointer([0-9]*)-border$/],[ha,_e,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[da,Pe,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],mr=(u,g,x)=>{let w=null,M=[],H=new Map,U=(j,ne=g)=>{let F=[...ne.classList];for(let $e of F)$e.startsWith(j)&&g.classList.remove($e)},C=()=>{U("shape");let j=g.querySelectorAll(".pointer");for(let ne of j)U("shape",ne)},k=j=>{w=j,U("theme-"),typeof j=="string"&&g.classList.add(`theme-${j}`)},Q=()=>{if(C(),!(M.length<=0)){g.classList.add("shape",`shape-${M[0]}`);for(let j=1;j<M.length;j++){let ne=M[j];if(!ne)continue;let F=g.querySelector(`.pointer-${j}`);!F||F.classList.add("shape",`shape-${ne}`)}}},se=(j,ne)=>{M[j]=ne,Q()},B=()=>{C();let j=vr(u,/^pointer([0-9]*)-shape$/);if(!(j.size<=0)){for(let ne of j){let F=ne[0];M[F]=ne[1]}Q()}},ce=(j,ne)=>`${j}-${ne}`,rt=(j,ne,F)=>{let $e=x[F];if(!$e)return;let De=F===0?g:$e.$pointer;if(ne==null){H.has(ce(j,F))&&H.delete(ce(j,F)),De.style.removeProperty(j);return}H.set(ce(j,F),ne),De.style.setProperty(j,ne)},Fe=(j,ne)=>H.get(ce(j,ne));return(()=>{for(let j of Vr){let[ne,F,$e,De]=j;if(De){let Me=vr(u,De);for(let Ae of Me){let Je=Ae[0],ze=Ae[1];rt(ne,ze,Je)}}else{let Me=u.getAttribute(F);rt(ne,Me,0)}let ke=[];if($e.indexOf("#")===-1)ke.push([$e,0]);else{ke.push([$e.replace("#",""),0]),ke.push([$e.replace("#","0"),0]),ke.push([$e.replace("#","1"),0]);for(let Me=1;Me<x.length;Me++)ke.push([$e.replace("#",(Me+1).toString()),Me])}for(let Me of ke)try{let Ae=Me[0],Je=Me[1];Object.prototype.hasOwnProperty.call(u,Ae)||Object.defineProperty(u,Ae,{get(){return Fe(ne,Je)},set:ze=>{rt(ne,ze,Je)}})}catch(Ae){console.error(Ae)}}k(u.getAttribute(W)),B()})(),{setStyle:rt,getStyle:Fe,get theme(){return w},set theme(j){k(j)},get pointerShapes(){return M},setPointerShape:se}},Et="animate-on-click",Kr="range-dragging",Rn=(u,g,x,w)=>{let M=[],H=se=>{for(let B of M)B.update&&typeof B.update=="function"&&B.update(se)},U=()=>{for(let se of M)se.destroy&&typeof se.destroy=="function"&&se.destroy()},C=(se,B)=>{for(let ce of M)ce.onAttrChange&&typeof ce.onAttrChange=="function"&&ce.onAttrChange(se,B)},k=se=>{if(se.gettersAndSetters){for(let B of se.gettersAndSetters)if(!(!B.name||!B.attributes))try{Object.prototype.hasOwnProperty.call(u,B.name)||Object.defineProperty(u,B.name,B.attributes)}catch(ce){console.error("defineSettersGetters error:",ce)}}},Q=se=>{var B;if(!se.css)return;let ce=(B=u.shadowRoot)==null?void 0:B.querySelector("style");!ce||(ce.innerHTML+=se.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let se of window.tcRangeSliderPlugins){let B=se();M.push(B),B.init&&typeof B.init=="function"&&(B.init(u,g,x,w),k(B),Q(B))}},update:H,onAttrChange:C,destroy:U}},br=10,Qi=20,ya=(u,g)=>{let x=new Map,w=/^value([0-9]*)$/;for(let C of u.attributes){let k=C.nodeName.trim().toLowerCase();if(!w.test(k))continue;let Q=k.replace("value","").trim(),se=Q===""||Q==="0"||Q==="1"?0:oe(Q,0)-1,B=Te(C.value)?oe(C.value,0):C.value;x.set(se,B)}let M=Math.max(...Array.from(x.keys())),H=[];H.push([Tn(u,g,0),x.get(0)]);let U=g;for(let C=1;C<=M;C++){let k=g.cloneNode(!0);U.after(k),U=k,H.push([Tn(u,k,C),x.get(C)])}return H},eo=(u,g,x,w,M,H,U)=>{try{Object.defineProperty(u,w,{configurable:!0,get(){if(!g)return;let C=g.pointers[x];if(!C)return;let k=g.getTextValue(C.percent);return Te(k)?oe(k,k):k},set:C=>{g.pointers[x]?g==null||g.setValue(C,x):g==null||g.addPointer(C)}}),Object.defineProperty(u,M,{configurable:!0,get(){var C,k;return(k=(C=g==null?void 0:g.pointers[x])==null?void 0:C.getAttr("aria-label"))!=null?k:void 0},set:C=>{!g||g.setAriaLabel(x,C)}}),Object.defineProperty(u,H,{configurable:!0,get(){var C,k;return(k=(C=g==null?void 0:g.styles)==null?void 0:C.pointerShapes[x])!=null?k:null},set:C=>{!g||!g.styles||g.styles.setPointerShape(x,C)}}),Object.defineProperty(u,U,{configurable:!0,get(){var C;return(C=g==null?void 0:g.pointers[x].disabled)!=null?C:!1},set:C=>{if(!g)return;let k=g==null?void 0:g.pointers[x];!k||(k.disabled=C)}})}catch(C){console.error(C)}},va=(u,g)=>{let x=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let w=2;w<br;w++)x.push([`value${w}`,`ariaLabel${w}`,`pointer${w}Shape`,`pointer${w}Disabled`,w-1]);for(let w of x)eo(u,g,w[4],w[0],w[1],w[2],w[3])},to=(u,g,x)=>{var w;let M=(w=x.shadowRoot)==null?void 0:w.querySelector(".container");if(M)for(let H of u)g?M.prepend(H.$pointer):M.append(H.$pointer)},Yr=(u,g)=>{if(!(!g||u.length<=1)){for(let x of u)x.$pointer.style.zIndex=Qi.toString();g.$pointer.style.zIndex=(Qi*2).toString()}},wr=0,Zt=100,tt=2,ro="0.3s",ma=(u,g,x)=>{let w=x.map(d=>d[0]),M=null,H=null,U=null,C=null,k=wr,Q=Zt,se,B,ce=Ye,rt=tt,Fe=!1,j=!1,ne=!1,F=0,$e=1/0,De=!1,ke,Me,Ae=!1,Je=!1,ze=!1,Mt=ro,no=[],Bn=d=>{Ae||(d.preventDefault&&d.preventDefault(),Tt(d),window.addEventListener("mousemove",Tt),window.addEventListener("mouseup",Jr),Gi(u,d))},Jr=d=>{Ae||(ke=void 0,Me=void 0,window.removeEventListener("mousemove",Tt),window.removeEventListener("mouseup",Jr),Mt&&g.classList.add(Et),Vi(u,d))},$a=(d,$)=>{if(w.length<=0)return;if(w.length===1)return w[0].isClicked(d)&&Mt&&g.classList.remove(Et),w[0];let T=Sa(d);if(De){let fe=$,Xe=Sr(fe);Xe!==void 0&&(fe=Ie(fe,Xe)),T?(ke=fe,Me=0,Mt&&g.classList.remove(Et)):ke!==void 0&&(Me=fe-ke,ke=fe)}if(!xa(d)&&!T){for(let fe of w)if(!(!fe.isClicked(d)||fe.disabled))return Mt&&g.classList.remove(Et),fe;for(let fe of w)if(M===fe)return fe}let ee=1/0,me=null;for(let fe of w){if(fe.disabled)continue;let Xe=Math.abs($-fe.percent);Xe<ee&&(ee=Xe,me=fe)}return me},Zr=()=>w.findIndex(d=>M===d&&!d.disabled),Tt=d=>{let $;if(ce===Le){let{height:ee,top:me}=g.getBoundingClientRect(),fe=d.type.indexOf("mouse")!==-1?d.clientY:d.touches[0].clientY;$=Math.min(Math.max(0,fe-me),ee)*100/ee}else{let{width:ee,left:me}=g.getBoundingClientRect(),fe=d.type.indexOf("mouse")!==-1?d.clientX:d.touches[0].clientX;$=Math.min(Math.max(0,fe-me),ee)*100/ee}if((Fe||j)&&($=100-$),M=$a(d.target,$),M&&Yr(w,M),De&&w.length>1&&Me!==void 0){let ee=w[0],me=w[w.length-1],fe=ee.percent+Me<0,Xe=me.percent+Me>100;if(fe||Xe)return;for(let Bt=0;Bt<w.length;Bt++)He(Bt,w[Bt].percent+Me);return}let T=Zr();T!==-1&&(He(T,$),M==null||M.$pointer.focus())},Xr=d=>{if(Ae||document.activeElement!==u||M!=null&&M.disabled)return;d.stopPropagation(),d.preventDefault();let $=d.deltaY<0,T=Fe||j,ee=$?!T:T,me=Zr();me!==-1&&(ee?$r(me,w[me].percent):xr(me,w[me].percent))},io=d=>{Ae||Je||(ce===Le?j?He(d,100):He(d,0):Fe?xr(d,w[d].percent):$r(d,w[d].percent))},oo=d=>{Ae||Je||(ce===Le?j?He(d,0):He(d,100):Fe?$r(d,w[d].percent):xr(d,w[d].percent))},so=d=>{Ae||Je||(ce===Le?j?xr(d,w[d].percent):$r(d,w[d].percent):Fe?He(d,100):He(d,0))},ao=d=>{Ae||Je||(ce===Le?j?$r(d,w[d].percent):xr(d,w[d].percent):Fe?He(d,0):He(d,100))},xa=d=>d.classList.contains("panel"),Sa=d=>d.classList.contains("panel-fill"),$r=(d,$)=>{if($===void 0)return;let T=Sr($);T==null&&(T=1),$-=T,$<0&&($=0),He(d,$)},xr=(d,$)=>{if($===void 0)return;let T=Sr($);T==null&&(T=1),$+=T,$>100&&($=100),He(d,$)},It=()=>{!C||C.update({percents:co(),values:uo(),$pointers:Hn(),min:Ar(),max:fo(),data:Un(),step:Nn(),round:en(),type:Fn(),textMin:Qr(),textMax:Dt(),rightToLeft:mt(),bottomToTop:zn(),pointersOverlap:Er(),pointersMinDistance:tn(),pointersMaxDistance:Wn(),rangeDragging:lt(),disabled:qn(),keyboardDisabled:_r(),mousewheelDisabled:nn()})},lo=()=>{It()},Aa=d=>{if(!(ne||w.length<=1||Q===k))if(d===0){let $=$e*100/(Q-k);return Math.max(0,w[d+1].percent-$)}else{let $=F*100/(Q-k);return Math.min(w[d-1].percent+$,100)}},_a=d=>{if(!(ne||w.length<=1||Q===k))if(d===w.length-1){let $=$e*100/(Q-k);return Math.min(w[d-1].percent+$,100)}else{let $=F*100/(Q-k);return Math.max(0,w[d+1].percent-$)}},Sr=d=>{let $;if(typeof se=="function"){let T=le(0,100,k,Q,d);$=se(T,d)}else $=se;if(Te($)){let T=Q-k;return $=T===0?0:$*100/T,$}},Xt=d=>{if(d===void 0)return;let $=le(0,100,k,Q,d);return B!==void 0?B[Math.round($)]:_t($,rt)},Qr=()=>B!==void 0?B[k]:k,Dt=()=>B!==void 0?B[Q]:Q,Nn=()=>se,Qt=d=>{var $;return d<=0||ne?Qr():($=Xt(w[d-1].percent))!=null?$:""},Pt=d=>{var $;return w.length<=1||d>=w.length-1||ne?Dt():($=Xt(w[d+1].percent))!=null?$:""},co=()=>w.map(d=>d.percent),uo=()=>w.map(d=>Xt(d.percent)),Hn=()=>w.map(d=>d.$pointer),Ar=()=>k,fo=()=>Q,Un=()=>B,Fn=()=>ce,en=()=>rt,tn=()=>F,Wn=()=>$e,rn=d=>no[d],mt=()=>Fe,zn=()=>j,qn=()=>Ae,_r=()=>Je,nn=()=>ze,Er=()=>ne,lt=()=>De,He=(d,$)=>{if($===void 0)return;let T=Sr($);T!==void 0&&($=Ie($,T));let ee=w[d];if(!ee)return;let me=ee.updatePosition($,Aa(d),_a(d),ce,Fe,j);H==null||H.updatePosition(ce,w.map(fe=>fe.percent),Fe,j),It();for(let fe of w){let Xe=Xt(fe.percent);Xe!==void 0&&(fe.setAttr("aria-valuenow",Xe.toString()),fe.setAttr("aria-valuetext",Xe.toString()))}Gn(),me&&ra(u,w.map(fe=>Xt(fe.percent)))},ft=()=>{for(let d=0;d<w.length;d++)He(d,w[d].percent)},po=(d,$)=>{k=B!==void 0?0:oe(d,wr),Q=B!==void 0?B.length-1:oe($,Zt),Rt(k),jt(Q)},Gn=()=>{var d,$;for(let T=0;T<w.length;T++){let ee=w[T];ee.setAttr("aria-valuemin",((d=Qt(T))!=null?d:"").toString()),ee.setAttr("aria-valuemax",(($=Pt(T))!=null?$:"").toString())}},Rt=d=>{k=oe(d,wr),k>Q&&(Q=k+Zt),ft()},jt=d=>{Q=oe(d,Zt),Q<k&&(Q=k+Zt),ft()},on=d=>{ne=!0;for(let $=0;$<d.length;$++)sn(d[$],$);ne=!1;for(let $=0;$<d.length;$++)sn(d[$],$)},sn=(d,$)=>{let T;B!==void 0?(T=d==null?0:ia(d,B),T===-1&&(T=0)):(T=oe(d,k),T<k&&(T=k),T>Q&&(T=Q));let ee=le(k,Q,0,100,T);He($,ee)},an=d=>{if(d==null){se=void 0;return}if(typeof d=="function"){se=d,ft();return}if(Te(d)){se=oe(d,1);let $=Math.abs(Q-k);se>$&&(se=void 0),ft();return}se=void 0},Vn=d=>{ne=d,ft()},Kn=d=>{(!Te(d)||d<0)&&(d=0),F=d},er=d=>{(!Te(d)||d<0)&&(d=1/0),$e=d},Yn=d=>{Ae=d,g.classList.toggle("disabled",Ae),Ae?g.setAttribute("aria-disabled","true"):g.hasAttribute("aria-disabled")&&g.removeAttribute("aria-disabled")},ho=d=>{Je=d},a=d=>{ze=d,ze?document.removeEventListener("wheel",Xr):document.addEventListener("wheel",Xr,{passive:!1})},p=d=>{if(d==null){B=void 0;return}if(B=na(d),B===void 0||B.length<=0){B=void 0;return}Rt(0),jt(B.length-1),se===void 0&&an(1)},v=d=>{var $;typeof d=="string"?ce=d.trim().toLowerCase()===Le?Le:Ye:ce=Ye;let T=($=u.shadowRoot)==null?void 0:$.querySelector(".range-slider-box");if(!T)return;T.className=`range-slider-box type-${ce}`,ft();let ee=ce===Le?"vertical":"horizontal";for(let me of w)me.setAttr("aria-orientation",ee)},S=d=>{Fe=d,w.length>1&&to(w,Fe,u),ft(),It()},D=d=>{j=d,w.length>1&&to(w,j,u),ft(),It()},O=d=>{rt=oe(d,tt),rt<0&&(rt=tt),It()},Y=d=>{d==null||d.toString().trim().toLowerCase()==="false"?(Mt=void 0,g.style.removeProperty(Yi),g.classList.remove(Et)):(Mt=d.toString(),g.style.setProperty(Yi,Mt),g.classList.add(Et))},ue=(d,$)=>{let T=w[d];!T||(T.setAttr("aria-label",$),no[d]=$)},xe=d=>{if(ke=void 0,w.length<=1){De=!1,g.classList.remove(Kr);return}De=d,g.classList.toggle(Kr,De)},Re=()=>{Yn(Ee(u.getAttribute(Z))),Je=Ee(u.getAttribute(pe)),ze=Ee(u.getAttribute(te));let d=vr(u,/^pointer([0-9]*)-disabled$/,$=>Ee($));for(let $ of d){let T=$[0];!w[T]||(w[T].disabled=$[1])}},qe=()=>{let d=vr(u,/^aria-label([0-9]*)$/);for(let $ of d){let T=$[0];ue(T,$[1])}},Ze=d=>{let $=w.length,T=w[$-1].$pointer,ee=T.cloneNode(!0);T.after(ee);let me=Tn(u,ee,$);return me.setCallbacks(io,oo,so,ao),w.push(me),sn(d,$),ft(),It(),$},je=()=>{let d=w.length,$=w[d-1];return $?($.destroy(),w.pop(),w.length<=1&&xe(!1),ft(),It(),d-1):-1};return(()=>{var d,$;for(let ee of w)ee.setCallbacks(io,oo,so,ao);let T=(d=u.shadowRoot)==null?void 0:d.querySelector(".panel-fill");T&&(H=oa(T)),v(u.getAttribute(L)),S(Ee(u.getAttribute(V))),D(Ee(u.getAttribute(J))),po(u.getAttribute(y),u.getAttribute(m)),an(u.getAttribute(b)),p(u.getAttribute(h)),on(x.map(ee=>ee[1])),Vn(Ee(u.getAttribute(s))),Kn(oe(u.getAttribute(c),0)),er(oe(u.getAttribute(l),1/0)),xe(Ee(u.getAttribute(f))),O(oe(u.getAttribute(A),tt)),Re(),qe(),U=mr(u,g,w),Y(($=u.getAttribute(Ce))!=null?$:ro),g.addEventListener("mousedown",Bn),g.addEventListener("mouseup",Jr),g.addEventListener("touchmove",Tt),g.addEventListener("touchstart",Tt),ze||document.addEventListener("wheel",Xr,{passive:!1}),C=Rn(u,lo,{setValues:on,setMin:Rt,setMax:jt,setStep:an,setPointersOverlap:Vn,setPointersMinDistance:Kn,setPointersMaxDistance:er,setDisabled:Yn,setType:v,setRightToLeft:S,setBottomToTop:D,setRound:O,setKeyboardDisabled:ho,setMousewheelDisabled:a,setRangeDragging:xe,setData:p},{getPercents:co,getValues:uo,getPointerElements:Hn,getMin:Ar,getMax:fo,getStep:Nn,getData:Un,getType:Fn,getRound:en,getTextMin:Qr,getTextMax:Dt,isRightToLeft:mt,isBottomToTop:zn,isDisabled:qn,isKeyboardDisabled:_r,isMousewheelDisabled:nn,isPointersOverlap:Er,isRangeDraggingEnabled:lt,getPointersMinDistance:tn,getPointersMaxDistance:Wn}),C.init()})(),{get pointers(){return w},get styles(){return U},get pluginsManager(){return C},get min(){return Qr()},get max(){return Dt()},get step(){return Nn()},get pointersOverlap(){return Er()},set pointersOverlap(d){Vn(d)},get pointersMinDistance(){return tn()},set pointersMinDistance(d){Kn(d)},get pointersMaxDistance(){return Wn()},set pointersMaxDistance(d){er(d)},get disabled(){return qn()},set disabled(d){Yn(d)},get data(){return Un()},get type(){return Fn()},set type(d){v(d)},get rightToLeft(){return mt()},set rightToLeft(d){S(d)},get bottomToTop(){return zn()},set bottomToTop(d){D(d)},get round(){return en()},set round(d){O(d)},get animateOnClick(){return Mt},set animateOnClick(d){Y(d)},get keyboardDisabled(){return _r()},set keyboardDisabled(d){ho(d)},get mousewheelDisabled(){return nn()},set mousewheelDisabled(d){a(d)},get rangeDragging(){return lt()},set rangeDragging(d){xe(d)},setMin:Rt,setMax:jt,setValue:sn,setStep:an,setData:p,getTextValue:Xt,setAriaLabel:ue,getAriaLabel:rn,addPointer:Ze,removePointer:je,destroy:()=>{g.removeEventListener("mousedown",Bn),g.removeEventListener("mouseup",Jr),g.removeEventListener("touchmove",Tt),g.removeEventListener("touchstart",Tt),document.removeEventListener("wheel",Xr);for(let d of w)d.destroy();C==null||C.destroy()}}},ba=(u,g,x)=>{let w=Vr.find(([C,k,Q,se])=>k.replace("#","")===g.replace(/\d+/g,""));if(w&&u.styles){let[C,k,Q,se]=w,B=g.replace(/\D/g,"").trim(),ce=B===""||B==="0"||B==="1"?0:oe(B,0)-1;u.styles.setStyle(C,x,ce);return}switch(u&&u.pluginsManager&&u.pluginsManager.onAttrChange(g,x),g){case y:{u.setMin(x);break}case m:{u.setMax(x);break}case b:{u.setStep(x);break}case s:{u.pointersOverlap=Ee(x);break}case c:{u.pointersMinDistance=oe(x,0);break}case f:{u.rangeDragging=Ee(x);break}case l:{u.pointersMaxDistance=oe(x,1/0);break}case Z:{u.disabled=Ee(x);break}case pe:{u.keyboardDisabled=Ee(x);break}case te:{u.mousewheelDisabled=Ee(x);break}case h:{u.setData(x);break}case L:{u.type=x;break}case V:{u.rightToLeft=Ee(x);break}case J:{u.bottomToTop=Ee(x);break}case A:{u.round=oe(x,tt);break}case W:{u.styles&&(u.styles.theme=x);break}case Ce:{u.animateOnClick=x;break}}let M=null;if(/^value([0-9]*)$/.test(g)&&(M="value"),/^pointer([0-9]*)-disabled$/.test(g)&&(M="pointer-disabled"),/^aria-label([0-9]*)$/.test(g)&&(M="aria-label"),/^pointer([0-9]*)-shape$/.test(g)&&(M="pointer-shape"),!M)return;let H=g.replace(/\D/g,"").trim(),U=H===""||H==="0"||H==="1"?0:oe(H,0)-1;switch(M){case"value":{u.setValue(x,U);break}case"pointer-disabled":{let C=u==null?void 0:u.pointers[U];if(!C)return;C.disabled=Ee(x);break}case"aria-label":{u.setAriaLabel(U,x);break}case"pointer-shape":{u.styles&&u.styles.setPointerShape(U,x);break}}},wa=class extends HTMLElement{constructor(){super(),n(this,"slider"),n(this,"_externalCSSList",[]),n(this,"_observer",null),this.attachShadow({mode:"open"})}set step(u){this.slider&&this.slider.setStep(u)}get step(){var u;return(u=this.slider)==null?void 0:u.step}set disabled(u){this.slider&&(this.slider.disabled=u)}get disabled(){var u,g;return(g=(u=this.slider)==null?void 0:u.disabled)!=null?g:!1}set data(u){var g;(g=this.slider)==null||g.setData(u)}get data(){var u;return(u=this.slider)==null?void 0:u.data}set min(u){var g;(g=this.slider)==null||g.setMin(u)}get min(){var u;return(u=this.slider)==null?void 0:u.min}set max(u){var g;(g=this.slider)==null||g.setMax(u)}get max(){var u;return(u=this.slider)==null?void 0:u.max}set round(u){!this.slider||(this.slider.round=u)}get round(){var u,g;return(g=(u=this.slider)==null?void 0:u.round)!=null?g:tt}set type(u){!this.slider||(this.slider.type=u??Ye)}get type(){var u;return((u=this.slider)==null?void 0:u.type)||Ye}set pointersOverlap(u){!this.slider||(this.slider.pointersOverlap=u)}get pointersOverlap(){var u,g;return(g=(u=this.slider)==null?void 0:u.pointersOverlap)!=null?g:!1}set pointersMinDistance(u){!this.slider||(this.slider.pointersMinDistance=u)}get pointersMinDistance(){var u,g;return(g=(u=this.slider)==null?void 0:u.pointersMinDistance)!=null?g:0}set pointersMaxDistance(u){!this.slider||(this.slider.pointersMaxDistance=u)}get pointersMaxDistance(){var u,g;return(g=(u=this.slider)==null?void 0:u.pointersMaxDistance)!=null?g:1/0}set theme(u){!this.slider||!this.slider.styles||(this.slider.styles.theme=u)}get theme(){var u,g,x;return(x=(g=(u=this.slider)==null?void 0:u.styles)==null?void 0:g.theme)!=null?x:null}set rtl(u){!this.slider||(this.slider.rightToLeft=u)}get rtl(){var u,g;return(g=(u=this.slider)==null?void 0:u.rightToLeft)!=null?g:!1}set btt(u){!this.slider||(this.slider.bottomToTop=u)}get btt(){var u,g;return(g=(u=this.slider)==null?void 0:u.bottomToTop)!=null?g:!1}set keyboardDisabled(u){!this.slider||(this.slider.keyboardDisabled=u)}get keyboardDisabled(){var u,g;return(g=(u=this.slider)==null?void 0:u.keyboardDisabled)!=null?g:!1}set mousewheelDisabled(u){!this.slider||(this.slider.mousewheelDisabled=u)}get mousewheelDisabled(){var u,g;return(g=(u=this.slider)==null?void 0:u.mousewheelDisabled)!=null?g:!1}set animateOnClick(u){!this.slider||(this.slider.animateOnClick=u)}get animateOnClick(){var u;return(u=this.slider)==null?void 0:u.animateOnClick}get rangeDragging(){var u,g;return(g=(u=this.slider)==null?void 0:u.rangeDragging)!=null?g:!1}set rangeDragging(u){this.slider&&(this.slider.rangeDragging=Ee(u))}get externalCSSList(){return this._externalCSSList}addPointer(u){var g,x;if(!this.slider)return;let w=(x=(g=this.slider)==null?void 0:g.addPointer(u))!=null?x:0;eo(this,this.slider,w,`value${w+1}`,`ariaLabel${w+1}`,`pointerShape${w+1}`,`pointer${w+1}Disabled`)}removePointer(){var u;!this.slider||(u=this.slider)==null||u.removePointer()}addCSS(u){if(!this.shadowRoot)return;let g=document.createElement("style");g.textContent=u,this.shadowRoot.appendChild(g)}connectedCallback(){var u,g;if(!this.shadowRoot)return;this._externalCSSList=ga(this),this.shadowRoot.innerHTML=i(o,this._externalCSSList);let x=(u=this.shadowRoot)==null?void 0:u.querySelector(".pointer");if(!x)return;let w=(g=this.shadowRoot)==null?void 0:g.getElementById("range-slider");if(!w)return;let M=ya(this,x);this.slider=ma(this,w,M),va(this,this.slider),this._observer=new MutationObserver(H=>{H.forEach(U=>{var C;if(!this.slider||U.type!=="attributes")return;let k=U.attributeName;!k||ba(this.slider,k,(C=this.getAttribute(k))!=null?C:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},jn=wa;window.tcRangeSlider=jn,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",jn),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends jn{})})();class jf extends it{constructor(){super();nt(this,gr);this.filterObject={},this.tabIndex=0,this.inputHandler=Se(this,gr,rp).bind(this),this.debouncedInputHandler=Ri(this.inputHandler,0,{leading:!0})}reset(){L0(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>K`
|
|
677
|
+
${Se(this,gr,ka).call(this,"min","before")}
|
|
701
678
|
<tc-range-slider
|
|
702
679
|
min="${this.filterObject.min}"
|
|
703
680
|
max="${this.filterObject.max}"
|
|
@@ -706,242 +683,130 @@ eox-itemfilter-expandcontainer button.reset-icon:before {
|
|
|
706
683
|
step="1"
|
|
707
684
|
@change=${this.debouncedInputHandler}
|
|
708
685
|
></tc-range-slider>
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
${de(this.inline||Object.keys(this.filterObject.state).length>10,()=>U`
|
|
714
|
-
<eox-autocomplete
|
|
715
|
-
.items=${this._getItems()}
|
|
716
|
-
.selectedItems=${this._getSelectedItems()}
|
|
717
|
-
.unstyled=${this.unstyled}
|
|
718
|
-
@items-selected=${t=>this._handleSelected(t)}
|
|
719
|
-
>
|
|
720
|
-
</eox-autocomplete>
|
|
721
|
-
`,()=>U`
|
|
722
|
-
<eox-selectionlist
|
|
723
|
-
.noShadow=${!this.inline}
|
|
724
|
-
.items=${this._getItems()}
|
|
725
|
-
.selectedItems=${this._getSelectedItems()}
|
|
726
|
-
.unstyled=${this.unstyled}
|
|
727
|
-
@items-selected=${t=>this._handleSelected(t)}
|
|
728
|
-
></eox-selectionlist>
|
|
729
|
-
`)}
|
|
730
|
-
`)}};br([J()],ir.prototype,"filterObject",2),br([J({type:Boolean})],ir.prototype,"inline",2),br([J({type:Boolean})],ir.prototype,"unstyled",2),ir=br([ke("eox-itemfilter-select")],ir);var Se=63710088e-1,li={centimeters:Se*100,centimetres:Se*100,degrees:Se/111325,feet:Se*3.28084,inches:Se*39.37,kilometers:Se/1e3,kilometres:Se/1e3,meters:Se,metres:Se,miles:Se/1609.344,millimeters:Se*1e3,millimetres:Se*1e3,nauticalmiles:Se/1852,radians:1,yards:Se*1.0936},Tl={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Se,yards:1.0936133},ai={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function De(t,e,r){r===void 0&&(r={});var i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=e||{},i.geometry=t,i}function Il(t,e,r){switch(t){case"Point":return Xe(e).geometry;case"LineString":return He(e).geometry;case"Polygon":return ci(e).geometry;case"MultiPoint":return Gn(e).geometry;case"MultiLineString":return ui(e).geometry;case"MultiPolygon":return Jn(e).geometry;default:throw new Error(t+" is invalid")}}function Xe(t,e,r){if(r===void 0&&(r={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!xr(t[0])||!xr(t[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:t};return De(i,e,r)}function Dl(t,e,r){return r===void 0&&(r={}),ut(t.map(function(i){return Xe(i,e)}),r)}function ci(t,e,r){r===void 0&&(r={});for(var i=0,n=t;i<n.length;i++){var s=n[i];if(s.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var o=0;o<s[s.length-1].length;o++)if(s[s.length-1][o]!==s[0][o])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:t};return De(l,e,r)}function jl(t,e,r){return r===void 0&&(r={}),ut(t.map(function(i){return ci(i,e)}),r)}function He(t,e,r){if(r===void 0&&(r={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var i={type:"LineString",coordinates:t};return De(i,e,r)}function Nl(t,e,r){return r===void 0&&(r={}),ut(t.map(function(i){return He(i,e)}),r)}function ut(t,e){e===void 0&&(e={});var r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function ui(t,e,r){r===void 0&&(r={});var i={type:"MultiLineString",coordinates:t};return De(i,e,r)}function Gn(t,e,r){r===void 0&&(r={});var i={type:"MultiPoint",coordinates:t};return De(i,e,r)}function Jn(t,e,r){r===void 0&&(r={});var i={type:"MultiPolygon",coordinates:t};return De(i,e,r)}function Bl(t,e,r){r===void 0&&(r={});var i={type:"GeometryCollection",geometries:t};return De(i,e,r)}function Fl(t,e){if(e===void 0&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,e||0);return Math.round(t*r)/r}function Zn(t,e){e===void 0&&(e="kilometers");var r=li[e];if(!r)throw new Error(e+" units is invalid");return t*r}function hi(t,e){e===void 0&&(e="kilometers");var r=li[e];if(!r)throw new Error(e+" units is invalid");return t/r}function Hl(t,e){return Qn(hi(t,e))}function ql(t){var e=t%360;return e<0&&(e+=360),e}function Qn(t){var e=t%(2*Math.PI);return e*180/Math.PI}function Ul(t){var e=t%360;return e*Math.PI/180}function zl(t,e,r){if(e===void 0&&(e="kilometers"),r===void 0&&(r="kilometers"),!(t>=0))throw new Error("length must be a positive number");return Zn(hi(t,e),r)}function Yl(t,e,r){if(e===void 0&&(e="meters"),r===void 0&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=ai[e];if(!i)throw new Error("invalid original units");var n=ai[r];if(!n)throw new Error("invalid final units");return t/i*n}function xr(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function di(t){return!!t&&t.constructor===Object}function Wl(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(t.length!==4&&t.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(function(e){if(!xr(e))throw new Error("bbox must only contain numbers")})}function Xl(t){if(!t)throw new Error("id is required");if(["string","number"].indexOf(typeof t)===-1)throw new Error("id must be a number or a string")}const Vl=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:ai,bearingToAzimuth:ql,convertArea:Yl,convertLength:zl,degreesToRadians:Ul,earthRadius:Se,factors:li,feature:De,featureCollection:ut,geometry:Il,geometryCollection:Bl,isNumber:xr,isObject:di,lengthToDegrees:Hl,lengthToRadians:hi,lineString:He,lineStrings:Nl,multiLineString:ui,multiPoint:Gn,multiPolygon:Jn,point:Xe,points:Dl,polygon:ci,polygons:jl,radiansToDegrees:Qn,radiansToLength:Zn,round:Fl,unitsFactors:Tl,validateBBox:Wl,validateId:Xl},Symbol.toStringTag,{value:"Module"}));function es(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return t.geometry.coordinates;if(t.type==="Point")return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function It(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Dt(t){return t.type==="Feature"?t.geometry:t}function je(t,e,r){if(r===void 0&&(r={}),!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var i=es(t),n=Dt(e),s=n.type,o=e.bbox,l=n.coordinates;if(o&&Kl(i,o)===!1)return!1;s==="Polygon"&&(l=[l]);for(var a=!1,c=0;c<l.length&&!a;c++)if(ts(i,l[c][0],r.ignoreBoundary)){for(var f=!1,p=1;p<l[c].length&&!f;)ts(i,l[c][p],!r.ignoreBoundary)&&(f=!0),p++;f||(a=!0)}return a}function ts(t,e,r){var i=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var n=0,s=e.length-1;n<e.length;s=n++){var o=e[n][0],l=e[n][1],a=e[s][0],c=e[s][1],f=t[1]*(o-a)+l*(a-t[0])+c*(t[0]-o)===0&&(o-t[0])*(a-t[0])<=0&&(l-t[1])*(c-t[1])<=0;if(f)return!r;var p=l>t[1]!=c>t[1]&&t[0]<(a-o)*(t[1]-l)/(c-l)+o;p&&(i=!i)}return i}function Kl(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function jt(t,e,r){if(t!==null)for(var i,n,s,o,l,a,c,f=0,p=0,b,y=t.type,E=y==="FeatureCollection",O=y==="Feature",z=E?t.features.length:1,B=0;B<z;B++){c=E?t.features[B].geometry:O?t.geometry:t,b=c?c.type==="GeometryCollection":!1,l=b?c.geometries.length:1;for(var g=0;g<l;g++){var m=0,w=0;if(o=b?c.geometries[g]:c,o!==null){a=o.coordinates;var S=o.type;switch(f=r&&(S==="Polygon"||S==="MultiPolygon")?1:0,S){case null:break;case"Point":if(e(a,p,B,m,w)===!1)return!1;p++,m++;break;case"LineString":case"MultiPoint":for(i=0;i<a.length;i++){if(e(a[i],p,B,m,w)===!1)return!1;p++,S==="MultiPoint"&&m++}S==="LineString"&&m++;break;case"Polygon":case"MultiLineString":for(i=0;i<a.length;i++){for(n=0;n<a[i].length-f;n++){if(e(a[i][n],p,B,m,w)===!1)return!1;p++}S==="MultiLineString"&&m++,S==="Polygon"&&w++}S==="Polygon"&&m++;break;case"MultiPolygon":for(i=0;i<a.length;i++){for(w=0,n=0;n<a[i].length;n++){for(s=0;s<a[i][n].length-f;s++){if(e(a[i][n][s],p,B,m,w)===!1)return!1;p++}w++}m++}break;case"GeometryCollection":for(i=0;i<o.geometries.length;i++)if(jt(o.geometries[i],e,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Gl(t,e,r,i){var n=r;return jt(t,function(s,o,l,a,c){o===0&&r===void 0?n=s:n=e(n,s,o,l,a,c)},i),n}function rs(t,e){var r;switch(t.type){case"FeatureCollection":for(r=0;r<t.features.length&&e(t.features[r].properties,r)!==!1;r++);break;case"Feature":e(t.properties,0);break}}function Jl(t,e,r){var i=r;return rs(t,function(n,s){s===0&&r===void 0?i=n:i=e(i,n,s)}),i}function wr(t,e){if(t.type==="Feature")e(t,0);else if(t.type==="FeatureCollection")for(var r=0;r<t.features.length&&e(t.features[r],r)!==!1;r++);}function Zl(t,e,r){var i=r;return wr(t,function(n,s){s===0&&r===void 0?i=n:i=e(i,n,s)}),i}function Ql(t){var e=[];return jt(t,function(r){e.push(r)}),e}function fi(t,e){var r,i,n,s,o,l,a,c,f,p,b=0,y=t.type==="FeatureCollection",E=t.type==="Feature",O=y?t.features.length:1;for(r=0;r<O;r++){for(l=y?t.features[r].geometry:E?t.geometry:t,c=y?t.features[r].properties:E?t.properties:{},f=y?t.features[r].bbox:E?t.bbox:void 0,p=y?t.features[r].id:E?t.id:void 0,a=l?l.type==="GeometryCollection":!1,o=a?l.geometries.length:1,n=0;n<o;n++){if(s=a?l.geometries[n]:l,s===null){if(e(null,b,c,f,p)===!1)return!1;continue}switch(s.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(s,b,c,f,p)===!1)return!1;break}case"GeometryCollection":{for(i=0;i<s.geometries.length;i++)if(e(s.geometries[i],b,c,f,p)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}b++}}function ea(t,e,r){var i=r;return fi(t,function(n,s,o,l,a){s===0&&r===void 0?i=n:i=e(i,n,s,o,l,a)}),i}function tt(t,e){fi(t,function(r,i,n,s,o){var l=r===null?null:r.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return e(De(r,n,{bbox:s,id:o}),i,0)===!1?!1:void 0}var a;switch(l){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon";break}for(var c=0;c<r.coordinates.length;c++){var f=r.coordinates[c],p={type:a,coordinates:f};if(e(De(p,n),i,c)===!1)return!1}})}function ta(t,e,r){var i=r;return tt(t,function(n,s,o){s===0&&o===0&&r===void 0?i=n:i=e(i,n,s,o)}),i}function is(t,e){tt(t,function(r,i,n){var s=0;if(r.geometry){var o=r.geometry.type;if(!(o==="Point"||o==="MultiPoint")){var l,a=0,c=0,f=0;if(jt(r,function(p,b,y,E,O){if(l===void 0||i>a||E>c||O>f){l=p,a=i,c=E,f=O,s=0;return}var z=He([l,p],r.properties);if(e(z,i,n,O,s)===!1)return!1;s++,l=p})===!1)return!1}}})}function ra(t,e,r){var i=r,n=!1;return is(t,function(s,o,l,a,c){n===!1&&r===void 0?i=s:i=e(i,s,o,l,a,c),n=!0}),i}function ns(t,e){if(!t)throw new Error("geojson is required");tt(t,function(r,i,n){if(r.geometry!==null){var s=r.geometry.type,o=r.geometry.coordinates;switch(s){case"LineString":if(e(r,i,n,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l<o.length;l++)if(e(He(o[l],r.properties),i,n,l)===!1)return!1;break}}})}function ia(t,e,r){var i=r;return ns(t,function(n,s,o,l){s===0&&r===void 0?i=n:i=e(i,n,s,o,l)}),i}function na(t,e){if(e=e||{},!di(e))throw new Error("options is invalid");var r=e.featureIndex||0,i=e.multiFeatureIndex||0,n=e.geometryIndex||0,s=e.segmentIndex||0,o=e.properties,l;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),o=o||t.features[r].properties,l=t.features[r].geometry;break;case"Feature":o=o||t.properties,l=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=t;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var a=l.coordinates;switch(l.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=a.length+s-1),He([a[s],a[s+1]],o,e);case"Polygon":return n<0&&(n=a.length+n),s<0&&(s=a[n].length+s-1),He([a[n][s],a[n][s+1]],o,e);case"MultiLineString":return i<0&&(i=a.length+i),s<0&&(s=a[i].length+s-1),He([a[i][s],a[i][s+1]],o,e);case"MultiPolygon":return i<0&&(i=a.length+i),n<0&&(n=a[i].length+n),s<0&&(s=a[i][n].length-s-1),He([a[i][n][s],a[i][n][s+1]],o,e)}throw new Error("geojson is invalid")}function sa(t,e){if(e=e||{},!di(e))throw new Error("options is invalid");var r=e.featureIndex||0,i=e.multiFeatureIndex||0,n=e.geometryIndex||0,s=e.coordIndex||0,o=e.properties,l;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),o=o||t.features[r].properties,l=t.features[r].geometry;break;case"Feature":o=o||t.properties,l=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=t;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var a=l.coordinates;switch(l.type){case"Point":return Xe(a,o,e);case"MultiPoint":return i<0&&(i=a.length+i),Xe(a[i],o,e);case"LineString":return s<0&&(s=a.length+s),Xe(a[s],o,e);case"Polygon":return n<0&&(n=a.length+n),s<0&&(s=a[n].length+s),Xe(a[n][s],o,e);case"MultiLineString":return i<0&&(i=a.length+i),s<0&&(s=a[i].length+s),Xe(a[i][s],o,e);case"MultiPolygon":return i<0&&(i=a.length+i),n<0&&(n=a[i].length+n),s<0&&(s=a[i][n].length-s),Xe(a[i][n][s],o,e)}throw new Error("geojson is invalid")}const oa=Object.freeze(Object.defineProperty({__proto__:null,coordAll:Ql,coordEach:jt,coordReduce:Gl,featureEach:wr,featureReduce:Zl,findPoint:sa,findSegment:na,flattenEach:tt,flattenReduce:ta,geomEach:fi,geomReduce:ea,lineEach:ns,lineReduce:ia,propEach:rs,propReduce:Jl,segmentEach:is,segmentReduce:ra},Symbol.toStringTag,{value:"Module"}));function ss(t){if(!t)throw new Error("geojson is required");var e=[];return tt(t,function(r){la(r,e)}),ut(e)}function la(t,e){var r=[],i=t.geometry;if(i!==null){switch(i.type){case"Polygon":r=It(i);break;case"LineString":r=[It(i)]}r.forEach(function(n){var s=aa(n,t.properties);s.forEach(function(o){o.id=e.length,e.push(o)})})}}function aa(t,e){var r=[];return t.reduce(function(i,n){var s=He([i,n],e);return s.bbox=ca(i,n),r.push(s),n}),r}function ca(t,e){var r=t[0],i=t[1],n=e[0],s=e[1],o=r<n?r:n,l=i<s?i:s,a=r>n?r:n,c=i>s?i:s;return[o,l,a,c]}var pi={exports:{}},os={exports:{}};(function(t,e){(function(r,i){t.exports=i()})(Pt,function(){function r(g,m,w,S,_){(function A(k,F,H,I,te){for(;I>H;){if(I-H>600){var le=I-H+1,P=F-H+1,L=Math.log(le),M=.5*Math.exp(2*L/3),j=.5*Math.sqrt(L*M*(le-M)/le)*(P-le/2<0?-1:1),C=Math.max(H,Math.floor(F-P*M/le+j)),G=Math.min(I,Math.floor(F+(le-P)*M/le+j));A(k,F,C,G,te)}var Y=k[F],oe=H,re=I;for(i(k,H,F),te(k[I],Y)>0&&i(k,H,I);oe<re;){for(i(k,oe,re),oe++,re--;te(k[oe],Y)<0;)oe++;for(;te(k[re],Y)>0;)re--}te(k[H],Y)===0?i(k,H,re):i(k,++re,I),re<=F&&(H=re+1),F<=re&&(I=re-1)}})(g,m,w||0,S||g.length-1,_||n)}function i(g,m,w){var S=g[m];g[m]=g[w],g[w]=S}function n(g,m){return g<m?-1:g>m?1:0}var s=function(g){g===void 0&&(g=9),this._maxEntries=Math.max(4,g),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(g,m,w){if(!w)return m.indexOf(g);for(var S=0;S<m.length;S++)if(w(g,m[S]))return S;return-1}function l(g,m){a(g,0,g.children.length,m,g)}function a(g,m,w,S,_){_||(_=z(null)),_.minX=1/0,_.minY=1/0,_.maxX=-1/0,_.maxY=-1/0;for(var A=m;A<w;A++){var k=g.children[A];c(_,g.leaf?S(k):k)}return _}function c(g,m){return g.minX=Math.min(g.minX,m.minX),g.minY=Math.min(g.minY,m.minY),g.maxX=Math.max(g.maxX,m.maxX),g.maxY=Math.max(g.maxY,m.maxY),g}function f(g,m){return g.minX-m.minX}function p(g,m){return g.minY-m.minY}function b(g){return(g.maxX-g.minX)*(g.maxY-g.minY)}function y(g){return g.maxX-g.minX+(g.maxY-g.minY)}function E(g,m){return g.minX<=m.minX&&g.minY<=m.minY&&m.maxX<=g.maxX&&m.maxY<=g.maxY}function O(g,m){return m.minX<=g.maxX&&m.minY<=g.maxY&&m.maxX>=g.minX&&m.maxY>=g.minY}function z(g){return{children:g,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function B(g,m,w,S,_){for(var A=[m,w];A.length;)if(!((w=A.pop())-(m=A.pop())<=S)){var k=m+Math.ceil((w-m)/S/2)*S;r(g,k,m,w,_),A.push(m,k,k,w)}}return s.prototype.all=function(){return this._all(this.data,[])},s.prototype.search=function(g){var m=this.data,w=[];if(!O(g,m))return w;for(var S=this.toBBox,_=[];m;){for(var A=0;A<m.children.length;A++){var k=m.children[A],F=m.leaf?S(k):k;O(g,F)&&(m.leaf?w.push(k):E(g,F)?this._all(k,w):_.push(k))}m=_.pop()}return w},s.prototype.collides=function(g){var m=this.data;if(!O(g,m))return!1;for(var w=[];m;){for(var S=0;S<m.children.length;S++){var _=m.children[S],A=m.leaf?this.toBBox(_):_;if(O(g,A)){if(m.leaf||E(g,A))return!0;w.push(_)}}m=w.pop()}return!1},s.prototype.load=function(g){if(!g||!g.length)return this;if(g.length<this._minEntries){for(var m=0;m<g.length;m++)this.insert(g[m]);return this}var w=this._build(g.slice(),0,g.length-1,0);if(this.data.children.length)if(this.data.height===w.height)this._splitRoot(this.data,w);else{if(this.data.height<w.height){var S=this.data;this.data=w,w=S}this._insert(w,this.data.height-w.height-1,!0)}else this.data=w;return this},s.prototype.insert=function(g){return g&&this._insert(g,this.data.height-1),this},s.prototype.clear=function(){return this.data=z([]),this},s.prototype.remove=function(g,m){if(!g)return this;for(var w,S,_,A=this.data,k=this.toBBox(g),F=[],H=[];A||F.length;){if(A||(A=F.pop(),S=F[F.length-1],w=H.pop(),_=!0),A.leaf){var I=o(g,A.children,m);if(I!==-1)return A.children.splice(I,1),F.push(A),this._condense(F),this}_||A.leaf||!E(A,k)?S?(w++,A=S.children[w],_=!1):A=null:(F.push(A),H.push(w),w=0,S=A,A=A.children[0])}return this},s.prototype.toBBox=function(g){return g},s.prototype.compareMinX=function(g,m){return g.minX-m.minX},s.prototype.compareMinY=function(g,m){return g.minY-m.minY},s.prototype.toJSON=function(){return this.data},s.prototype.fromJSON=function(g){return this.data=g,this},s.prototype._all=function(g,m){for(var w=[];g;)g.leaf?m.push.apply(m,g.children):w.push.apply(w,g.children),g=w.pop();return m},s.prototype._build=function(g,m,w,S){var _,A=w-m+1,k=this._maxEntries;if(A<=k)return l(_=z(g.slice(m,w+1)),this.toBBox),_;S||(S=Math.ceil(Math.log(A)/Math.log(k)),k=Math.ceil(A/Math.pow(k,S-1))),(_=z([])).leaf=!1,_.height=S;var F=Math.ceil(A/k),H=F*Math.ceil(Math.sqrt(k));B(g,m,w,H,this.compareMinX);for(var I=m;I<=w;I+=H){var te=Math.min(I+H-1,w);B(g,I,te,F,this.compareMinY);for(var le=I;le<=te;le+=F){var P=Math.min(le+F-1,te);_.children.push(this._build(g,le,P,S-1))}}return l(_,this.toBBox),_},s.prototype._chooseSubtree=function(g,m,w,S){for(;S.push(m),!m.leaf&&S.length-1!==w;){for(var _=1/0,A=1/0,k=void 0,F=0;F<m.children.length;F++){var H=m.children[F],I=b(H),te=(le=g,P=H,(Math.max(P.maxX,le.maxX)-Math.min(P.minX,le.minX))*(Math.max(P.maxY,le.maxY)-Math.min(P.minY,le.minY))-I);te<A?(A=te,_=I<_?I:_,k=H):te===A&&I<_&&(_=I,k=H)}m=k||m.children[0]}var le,P;return m},s.prototype._insert=function(g,m,w){var S=w?g:this.toBBox(g),_=[],A=this._chooseSubtree(S,this.data,m,_);for(A.children.push(g),c(A,S);m>=0&&_[m].children.length>this._maxEntries;)this._split(_,m),m--;this._adjustParentBBoxes(S,_,m)},s.prototype._split=function(g,m){var w=g[m],S=w.children.length,_=this._minEntries;this._chooseSplitAxis(w,_,S);var A=this._chooseSplitIndex(w,_,S),k=z(w.children.splice(A,w.children.length-A));k.height=w.height,k.leaf=w.leaf,l(w,this.toBBox),l(k,this.toBBox),m?g[m-1].children.push(k):this._splitRoot(w,k)},s.prototype._splitRoot=function(g,m){this.data=z([g,m]),this.data.height=g.height+1,this.data.leaf=!1,l(this.data,this.toBBox)},s.prototype._chooseSplitIndex=function(g,m,w){for(var S,_,A,k,F,H,I,te=1/0,le=1/0,P=m;P<=w-m;P++){var L=a(g,0,P,this.toBBox),M=a(g,P,w,this.toBBox),j=(_=L,A=M,k=void 0,F=void 0,H=void 0,I=void 0,k=Math.max(_.minX,A.minX),F=Math.max(_.minY,A.minY),H=Math.min(_.maxX,A.maxX),I=Math.min(_.maxY,A.maxY),Math.max(0,H-k)*Math.max(0,I-F)),C=b(L)+b(M);j<te?(te=j,S=P,le=C<le?C:le):j===te&&C<le&&(le=C,S=P)}return S||w-m},s.prototype._chooseSplitAxis=function(g,m,w){var S=g.leaf?this.compareMinX:f,_=g.leaf?this.compareMinY:p;this._allDistMargin(g,m,w,S)<this._allDistMargin(g,m,w,_)&&g.children.sort(S)},s.prototype._allDistMargin=function(g,m,w,S){g.children.sort(S);for(var _=this.toBBox,A=a(g,0,m,_),k=a(g,w-m,w,_),F=y(A)+y(k),H=m;H<w-m;H++){var I=g.children[H];c(A,g.leaf?_(I):I),F+=y(A)}for(var te=w-m-1;te>=m;te--){var le=g.children[te];c(k,g.leaf?_(le):le),F+=y(k)}return F},s.prototype._adjustParentBBoxes=function(g,m,w){for(var S=w;S>=0;S--)c(m[S],g)},s.prototype._condense=function(g){for(var m=g.length-1,w=void 0;m>=0;m--)g[m].children.length===0?m>0?(w=g[m-1].children).splice(w.indexOf(g[m]),1):this.clear():l(g[m],this.toBBox)},s})})(os);var ua=os.exports;const ha=Kr(Vl),da=Kr(oa);function xt(t){var e=[1/0,1/0,-1/0,-1/0];return jt(t,function(r){e[0]>r[0]&&(e[0]=r[0]),e[1]>r[1]&&(e[1]=r[1]),e[2]<r[0]&&(e[2]=r[0]),e[3]<r[1]&&(e[3]=r[1])}),e}xt.default=xt;const fa=Kr(Object.freeze(Object.defineProperty({__proto__:null,default:xt},Symbol.toStringTag,{value:"Module"})));var Ve=ua,ls=ha,as=da,Nt=fa.default,pa=as.featureEach;as.coordEach,ls.polygon;var cs=ls.featureCollection;function us(t){var e=new Ve(t);return e.insert=function(r){if(r.type!=="Feature")throw new Error("invalid feature");return r.bbox=r.bbox?r.bbox:Nt(r),Ve.prototype.insert.call(this,r)},e.load=function(r){var i=[];return Array.isArray(r)?r.forEach(function(n){if(n.type!=="Feature")throw new Error("invalid features");n.bbox=n.bbox?n.bbox:Nt(n),i.push(n)}):pa(r,function(n){if(n.type!=="Feature")throw new Error("invalid features");n.bbox=n.bbox?n.bbox:Nt(n),i.push(n)}),Ve.prototype.load.call(this,i)},e.remove=function(r,i){if(r.type!=="Feature")throw new Error("invalid feature");return r.bbox=r.bbox?r.bbox:Nt(r),Ve.prototype.remove.call(this,r,i)},e.clear=function(){return Ve.prototype.clear.call(this)},e.search=function(r){var i=Ve.prototype.search.call(this,this.toBBox(r));return cs(i)},e.collides=function(r){return Ve.prototype.collides.call(this,this.toBBox(r))},e.all=function(){var r=Ve.prototype.all.call(this);return cs(r)},e.toJSON=function(){return Ve.prototype.toJSON.call(this)},e.fromJSON=function(r){return Ve.prototype.fromJSON.call(this,r)},e.toBBox=function(r){var i;if(r.bbox)i=r.bbox;else if(Array.isArray(r)&&r.length===4)i=r;else if(Array.isArray(r)&&r.length===6)i=[r[0],r[1],r[3],r[4]];else if(r.type==="Feature")i=Nt(r);else if(r.type==="FeatureCollection")i=Nt(r);else throw new Error("invalid geojson");return{minX:i[0],minY:i[1],maxX:i[2],maxY:i[3]}},e}pi.exports=us,pi.exports.default=us;var ga=pi.exports;const ma=Vr(ga);function gi(t,e){var r={},i=[];if(t.type==="LineString"&&(t=De(t)),e.type==="LineString"&&(e=De(e)),t.type==="Feature"&&e.type==="Feature"&&t.geometry!==null&&e.geometry!==null&&t.geometry.type==="LineString"&&e.geometry.type==="LineString"&&t.geometry.coordinates.length===2&&e.geometry.coordinates.length===2){var n=hs(t,e);return n&&i.push(n),ut(i)}var s=ma();return s.load(ss(e)),wr(ss(t),function(o){wr(s.search(o),function(l){var a=hs(o,l);if(a){var c=It(a).join(",");r[c]||(r[c]=!0,i.push(a))}})}),ut(i)}function hs(t,e){var r=It(t),i=It(e);if(r.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(i.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var n=r[0][0],s=r[0][1],o=r[1][0],l=r[1][1],a=i[0][0],c=i[0][1],f=i[1][0],p=i[1][1],b=(p-c)*(o-n)-(f-a)*(l-s),y=(f-a)*(s-c)-(p-c)*(n-a),E=(o-n)*(s-c)-(l-s)*(n-a);if(b===0)return null;var O=y/b,z=E/b;if(O>=0&&O<=1&&z>=0&&z<=1){var B=n+O*(o-n),g=s+O*(l-s);return Xe([B,g])}return null}function mi(t,e){e===void 0&&(e={});var r=Dt(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return ya(r,e);case"MultiPolygon":return va(r,e);default:throw new Error("invalid poly")}}function ya(t,e){e===void 0&&(e={});var r=Dt(t),i=r.coordinates,n=e.properties?e.properties:t.type==="Feature"?t.properties:{};return ds(i,n)}function va(t,e){e===void 0&&(e={});var r=Dt(t),i=r.coordinates,n=e.properties?e.properties:t.type==="Feature"?t.properties:{},s=[];return i.forEach(function(o){s.push(ds(o,n))}),ut(s)}function ds(t,e){return t.length>1?ui(t,e):He(t[0],e)}function ba(t,e){var r=!0;return tt(t,function(i){tt(e,function(n){if(r===!1)return!1;r=xa(i.geometry,n.geometry)})}),r}function xa(t,e){switch(t.type){case"Point":switch(e.type){case"Point":return!Ea(t.coordinates,e.coordinates);case"LineString":return!fs(e,t);case"Polygon":return!je(t,e)}break;case"LineString":switch(e.type){case"Point":return!fs(t,e);case"LineString":return!wa(t,e);case"Polygon":return!ps(e,t)}break;case"Polygon":switch(e.type){case"Point":return!je(e,t);case"LineString":return!ps(t,e);case"Polygon":return!$a(e,t)}}return!1}function fs(t,e){for(var r=0;r<t.coordinates.length-1;r++)if(_a(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}function wa(t,e){var r=gi(t,e);return r.features.length>0}function ps(t,e){for(var r=0,i=e.coordinates;r<i.length;r++){var n=i[r];if(je(n,t))return!0}var s=gi(e,mi(t));return s.features.length>0}function $a(t,e){for(var r=0,i=t.coordinates[0];r<i.length;r++){var n=i[r];if(je(n,e))return!0}for(var s=0,o=e.coordinates[0];s<o.length;s++){var l=o[s];if(je(l,t))return!0}var a=gi(mi(t),mi(e));return a.features.length>0}function _a(t,e,r){var i=r[0]-t[0],n=r[1]-t[1],s=e[0]-t[0],o=e[1]-t[1],l=i*o-n*s;return l!==0?!1:Math.abs(s)>=Math.abs(o)?s>0?t[0]<=r[0]&&r[0]<=e[0]:e[0]<=r[0]&&r[0]<=t[0]:o>0?t[1]<=r[1]&&r[1]<=e[1]:e[1]<=r[1]&&r[1]<=t[1]}function Ea(t,e){return t[0]===e[0]&&t[1]===e[1]}function Sa(t,e){var r=!1;return tt(t,function(i){tt(e,function(n){if(r===!0)return!0;r=!ba(i.geometry,n.geometry)})}),r}function $r(t,e,r){r===void 0&&(r={});for(var i=es(t),n=It(e),s=0;s<n.length-1;s++){var o=!1;if(r.ignoreEndVertices&&(s===0&&(o="start"),s===n.length-2&&(o="end"),s===0&&s+1===n.length-1&&(o="both")),Aa(n[s],n[s+1],i,o,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}function Aa(t,e,r,i,n){var s=r[0],o=r[1],l=t[0],a=t[1],c=e[0],f=e[1],p=r[0]-l,b=r[1]-a,y=c-l,E=f-a,O=p*E-b*y;if(n!==null){if(Math.abs(O)>n)return!1}else if(O!==0)return!1;if(i){if(i==="start")return Math.abs(y)>=Math.abs(E)?y>0?l<s&&s<=c:c<=s&&s<l:E>0?a<o&&o<=f:f<=o&&o<a;if(i==="end")return Math.abs(y)>=Math.abs(E)?y>0?l<=s&&s<c:c<s&&s<=l:E>0?a<=o&&o<f:f<o&&o<=a;if(i==="both")return Math.abs(y)>=Math.abs(E)?y>0?l<s&&s<c:c<s&&s<l:E>0?a<o&&o<f:f<o&&o<a}else return Math.abs(y)>=Math.abs(E)?y>0?l<=s&&s<=c:c<=s&&s<=l:E>0?a<=o&&o<=f:f<=o&&o<=a;return!1}function Ma(t,e){var r=Dt(t),i=Dt(e),n=r.type,s=i.type;switch(n){case"Point":switch(s){case"MultiPoint":return Oa(r,i);case"LineString":return $r(r,i,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return je(r,i,{ignoreBoundary:!0});default:throw new Error("feature2 "+s+" geometry not supported")}case"MultiPoint":switch(s){case"MultiPoint":return Pa(r,i);case"LineString":return La(r,i);case"Polygon":case"MultiPolygon":return Ca(r,i);default:throw new Error("feature2 "+s+" geometry not supported")}case"LineString":switch(s){case"LineString":return ka(r,i);case"Polygon":case"MultiPolygon":return Ra(r,i);default:throw new Error("feature2 "+s+" geometry not supported")}case"Polygon":switch(s){case"Polygon":case"MultiPolygon":return Ta(r,i);default:throw new Error("feature2 "+s+" geometry not supported")}default:throw new Error("feature1 "+n+" geometry not supported")}}function Oa(t,e){var r,i=!1;for(r=0;r<e.coordinates.length;r++)if(ms(e.coordinates[r],t.coordinates)){i=!0;break}return i}function Pa(t,e){for(var r=0;r<t.coordinates.length;r++){for(var i=!1,n=0;n<e.coordinates.length;n++)ms(t.coordinates[r],e.coordinates[n])&&(i=!0);if(!i)return!1}return!0}function La(t,e){for(var r=!1,i=0;i<t.coordinates.length;i++){if(!$r(t.coordinates[i],e))return!1;r||(r=$r(t.coordinates[i],e,{ignoreEndVertices:!0}))}return r}function Ca(t,e){for(var r=!0,i=!1,n=0;n<t.coordinates.length;n++){if(i=je(t.coordinates[1],e),!i){r=!1;break}i=je(t.coordinates[1],e,{ignoreBoundary:!0})}return r&&i}function ka(t,e){for(var r=0;r<t.coordinates.length;r++)if(!$r(t.coordinates[r],e))return!1;return!0}function Ra(t,e){var r=xt(e),i=xt(t);if(!gs(r,i))return!1;for(var n=!1,s=0;s<t.coordinates.length-1;s++){if(!je(t.coordinates[s],e))return!1;if(n||(n=je(t.coordinates[s],e,{ignoreBoundary:!0})),!n){var o=Ia(t.coordinates[s],t.coordinates[s+1]);n=je(o,e,{ignoreBoundary:!0})}}return n}function Ta(t,e){var r=xt(t),i=xt(e);if(!gs(i,r))return!1;for(var n=0;n<t.coordinates[0].length;n++)if(!je(t.coordinates[0][n],e))return!1;return!0}function gs(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function ms(t,e){return t[0]===e[0]&&t[1]===e[1]}function Ia(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}var Da=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,nr=(t,e,r,i)=>{for(var n=i>1?void 0:i?ja(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&Da(e,r,n),n};const Na=(t,e)=>e?Sa(t,e):!0,Ba=(t,e)=>e?Ma(t,e):!0;let yi=class extends _e{reset(){Ct(this.filterObject),this.renderRoot.querySelector("eox-itemfilter-spatial-filter").reset(),this.requestUpdate()}createRenderRoot(){return this}render(){return de(this.filterObject,()=>{var t;return U`
|
|
731
|
-
<form style="display: inline">
|
|
732
|
-
${Gt(["intersects","within"],e=>U`
|
|
733
|
-
<label>
|
|
734
|
-
<input
|
|
735
|
-
type="radio"
|
|
736
|
-
name="mode"
|
|
737
|
-
.checked="${this.filterObject.state.mode===e||se}
|
|
738
|
-
"
|
|
739
|
-
value="${e}"
|
|
740
|
-
@click="${()=>{this.filterObject.state.mode=e;const r=new CustomEvent("filter",{detail:{[this.filterObject.key]:{}}});this.dispatchEvent(r)}}"
|
|
741
|
-
/>
|
|
742
|
-
<small>${e} filter geometry</small>
|
|
743
|
-
</label>
|
|
744
|
-
`)}
|
|
745
|
-
</form>
|
|
746
|
-
<eox-itemfilter-spatial-filter
|
|
747
|
-
exportparts="map: spatial-filter-map"
|
|
748
|
-
.geometry=${(t=this.filterObject.state)==null?void 0:t.geometry}
|
|
749
|
-
@filter="${e=>{this.filterObject.state.geometry=e.detail.geometry,this.filterObject.dirty=!0,this.filterObject.stringifiedState="Polygon",this.dispatchEvent(new CustomEvent("filter"))}}"
|
|
750
|
-
></eox-itemfilter-spatial>
|
|
751
|
-
`})}};nr([J()],yi.prototype,"filterObject",2),yi=nr([ke("eox-itemfilter-spatial")],yi);let _r=class extends _e{render(){return U`<eox-map part="map" style="height: 400px"></eox-map>`}firstUpdated(){this.setup()}setup(){const t=[{type:"Vector",properties:{id:"draw"},source:{type:"Vector",...this.geometry&&{format:"GeoJSON"},...this.geometry&&{url:this.createFeatureUrl(this.geometry)}},zIndex:1,interactions:[{type:"draw",options:{id:"drawInteraction",type:"Box",modify:!0}}]},{type:"Tile",source:{type:"XYZ",url:"https://s2maps-tiles.eu/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpg",attribution:"{ OSM: Data © OpenStreetMap contributors and others, Rendering © EOX }"}}];this.eoxMap=this.renderRoot.querySelector("eox-map"),setTimeout(()=>{this.eoxMap.layers=t;const e=r=>{const i=new CustomEvent("filter",{detail:{geometry:{type:"Polygon",coordinates:r.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates()}}});this.dispatchEvent(i)};this.eoxMap.interactions.drawInteraction.on("drawend",r=>{e(r.feature),this.eoxMap.removeInteraction("drawInteraction")}),this.eoxMap.interactions.drawInteraction_modify.on("modifyend",r=>{e(r.features.getArray()[0])})},1e3)}createFeatureUrl(t){return`data:text/json,${encodeURIComponent(JSON.stringify({type:"FeatureCollection",features:[{type:"Feature",properties:null,geometry:t}]}))}`}reset(){var e;const t=this.eoxMap.getLayerById("draw").getSource();((e=t.getFeatures())==null?void 0:e.length)>0&&(t.clear(),this.eoxMap.removeInteraction("drawInteraction_modify"),this.setup())}};nr([J()],_r.prototype,"geometry",2),nr([Ze()],_r.prototype,"eoxMap",2),_r=nr([ke("eox-itemfilter-spatial-filter")],_r);var Fa=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,ys=(t,e,r,i)=>{for(var n=i>1?void 0:i?Ha(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&Fa(e,r,n),n};let vi=class extends _e{constructor(){super(...arguments),this.inputHandler=()=>{const t=this.renderRoot.querySelector("input[type='text']");this.filterObject.keys.forEach(e=>{this.filterObject.state[e]=t.value}),this.filterObject.dirty=!0,this.filterObject.stringifiedState=t.value,this.dispatchEvent(new CustomEvent("filter"))},this.debouncedInputHandler=Vn(this.inputHandler,500,{leading:!0})}reset(){const t=this.renderRoot.querySelector("input[type='text']");t.value="",Ct(this.filterObject),this.filterObject.dirty=!1,this.requestUpdate()}createRenderRoot(){return this}render(){return de(this.filterObject,()=>U`
|
|
752
|
-
<style>
|
|
753
|
-
input {
|
|
754
|
-
max-height: 100%;
|
|
755
|
-
}
|
|
756
|
-
</style>
|
|
757
|
-
<input
|
|
758
|
-
type="text"
|
|
759
|
-
placeholder="Type something..."
|
|
760
|
-
data-cy="search"
|
|
761
|
-
part="input-search"
|
|
762
|
-
value="${Object.values(this.filterObject.state)[0]}"
|
|
763
|
-
@input="${this.debouncedInputHandler}"
|
|
764
|
-
@click=${t=>{t.stopPropagation()}}
|
|
765
|
-
/>
|
|
766
|
-
`)}};ys([J()],vi.prototype,"filterObject",2),vi=ys([ke("eox-itemfilter-text")],vi);var qa=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,wt=(t,e,r,i)=>{for(var n=i>1?void 0:i?Ua(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&qa(e,r,n),n};let ht=class extends _e{constructor(){super(...arguments),this.idProperty="id",this.items=[],this.titleProperty="title",this.unstyled=!1,this.inputText="",this.replaceInput=null,this._clickOutsideListener=()=>{this.items.forEach(t=>{delete t._inProgress}),this.requestUpdate()},this._keyboardEventListener=t=>{["Enter","Escape","Space"].includes(t.code)&&this._handleKeyboard(t.code)}}_handleKeyboard(t){var s,o,l,a,c,f;if(this.clientHeight===0)return;const e=this.items.find(p=>p._inProgress),r=(e==null?void 0:e.type)==="text"&&(e==null?void 0:e.dirty),i=this.renderRoot.querySelector("#inline-input"),n=(f=(c=(a=(l=(o=(s=this.renderRoot)==null?void 0:s.querySelector("[data-filter]"))==null?void 0:o.querySelector("eox-autocomplete"))==null?void 0:l.renderRoot)==null?void 0:a.querySelector("eox-selectionlist"))==null?void 0:c.renderRoot)==null?void 0:f.querySelector("li.highlighted");if(t=="Enter"&&n&&i.selectionStart&&(n.querySelector("input[type=checkbox]").dispatchEvent(new Event("change")),i.selectionStart=0,i.value="",i.focus()),["Escape","Space"].includes(t)||t=="Enter"&&r){e&&(delete e._inProgress,this.requestUpdate(),this.inputText="",this.renderRoot.querySelector("input").value="",this.renderRoot.querySelector("input").focus()),this.renderRoot.querySelector("[slot=content]").classList.remove("hidden");return}}_handleReset(t){t.forEach(e=>{Ct(e),delete e._inProgress,delete e.stringifiedState}),this.renderRoot.querySelector("[slot=content]").classList.remove("hidden"),this.requestUpdate(),this.dispatchEvent(new CustomEvent("filter"))}connectedCallback(){super.connectedCallback(),this.getRootNode().addEventListener("keydown",this._keyboardEventListener),window.addEventListener("click",this._clickOutsideListener)}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",this._keyboardEventListener),window.removeEventListener("click",this._clickOutsideListener)}render(){return U`
|
|
767
|
-
<style>
|
|
768
|
-
:host,
|
|
769
|
-
.container {
|
|
770
|
-
display: flex;
|
|
771
|
-
}
|
|
772
|
-
${this.unstyled?se:U`
|
|
773
|
-
${Jr} :host { position: relative; } .container { width: 100%;
|
|
774
|
-
position: relative; border: 1px solid #00417066; border-radius:
|
|
775
|
-
4px; height: 24px; padding: 5px; flex: 1; justify-content:
|
|
776
|
-
space-between; cursor: text; transition: all 0.2s ease-in-out;
|
|
777
|
-
overflow-x: auto; } .container:hover { border: 1px solid #004170;
|
|
778
|
-
} .input-container { display: flex; flex: 1; align-items: center;
|
|
779
|
-
} input, input:focus { height: 100%; border: none; outline: none;
|
|
780
|
-
} .button-container { display: flex; align-items: center;
|
|
781
|
-
justify-content: center; position: absolute; right: 1px; top: 5px;
|
|
782
|
-
height: calc(100% - 10px); width: 34px; background: white; }
|
|
783
|
-
button.icon { color: #004170; height: 24px; font-size: large;
|
|
784
|
-
width: unset; } .container::-webkit-scrollbar { height: 2px; }
|
|
785
|
-
.container::-webkit-scrollbar-thumb { background: lightgrey;
|
|
786
|
-
border-radius: 2px; } .hidden {height: 0; padding: 0; border:
|
|
787
|
-
none;} .hidden:hover {border: none}
|
|
788
|
-
`}
|
|
789
|
-
</style>
|
|
790
|
-
<div
|
|
791
|
-
class="container"
|
|
792
|
-
part="container"
|
|
793
|
-
@click=${t=>{var e;t.stopPropagation(),(e=this.renderRoot.querySelector("input[type=text]"))==null||e.focus()}}
|
|
794
|
-
>
|
|
795
|
-
<eox-itemfilter-chips
|
|
796
|
-
.items=${this.items.filter(t=>t._inProgress||t.stringifiedState)}
|
|
797
|
-
.titleProperty=${this.titleProperty}
|
|
798
|
-
.unstyled=${this.unstyled}
|
|
799
|
-
@items-selected=${t=>{this.items.forEach(e=>{t.detail.find(r=>r.id===e.id)||this._handleReset([e])})}}
|
|
800
|
-
@click=${t=>{t.stopPropagation()}}
|
|
801
|
-
></eox-itemfilter-chips>
|
|
802
|
-
<div class="input-container">
|
|
803
|
-
<eox-dropdown .parent=${this} .unstyled=${this.unstyled}>
|
|
804
|
-
<input
|
|
805
|
-
id="inline-input"
|
|
806
|
-
slot="trigger"
|
|
807
|
-
type="text"
|
|
808
|
-
placeholder="Type something..."
|
|
809
|
-
@focus=${()=>{this.inputText="",this.requestUpdate()}}
|
|
810
|
-
@input=${t=>{if(this.inputText=t.target.value.toLowerCase(),this.replaceInput){const e=this.renderRoot.querySelector("[data-filter]").renderRoot.querySelector("input")||this.renderRoot.querySelector("[data-filter]").renderRoot.querySelector("eox-autocomplete").renderRoot.querySelector("input");e&&(e.value=this.inputText,e.dispatchEvent(new Event("input")))}}}
|
|
811
|
-
/>
|
|
812
|
-
<div slot="content">
|
|
813
|
-
${de(!this.items.find(t=>t._inProgress),()=>U`
|
|
814
|
-
<eox-selectionlist
|
|
815
|
-
.filter=${this.inputText}
|
|
816
|
-
.idProperty=${this.idProperty}
|
|
817
|
-
.titleProperty=${this.titleProperty}
|
|
818
|
-
.items=${this.items.filter(t=>!t.stringifiedState)}
|
|
819
|
-
.multiple=${!1}
|
|
820
|
-
.selectedItems=${this.items.filter(t=>t.stringifiedState)}
|
|
821
|
-
.unstyled=${this.unstyled}
|
|
822
|
-
@click=${t=>{t.stopPropagation()}}
|
|
823
|
-
@items-highlighted=${()=>{}}
|
|
824
|
-
@items-selected=${t=>{const e=t.detail;e.length>0&&(e[e.length-1]._inProgress=!0,this.renderRoot.querySelector("input[slot=trigger]").value="",this.inputText="",this.requestUpdate());const r=this.items.find(i=>i._inProgress);(r&&r.type==="text"||r.type==="multiselect"||r.type==="select")&&(this.replaceInput=!0),this.replaceInput&&(setTimeout(()=>{if(r.type==="text")this.renderRoot.querySelector("[slot=content]").classList.add("hidden");else if(r.type==="multiselect"||r.type==="select"){const i=this.renderRoot.querySelector("[data-filter]").renderRoot.querySelector("eox-autocomplete");i.renderRoot.querySelector("eox-dropdown").open=!0,i.renderRoot.querySelector(".container").classList.add("hidden")}}),this.renderRoot.querySelector("input").select(),this.renderRoot.querySelector("input").focus())}}
|
|
825
|
-
>
|
|
826
|
-
</eox-selectionlist>
|
|
827
|
-
`)}
|
|
828
|
-
${de(this.items.find(t=>t._inProgress),()=>ur`
|
|
829
|
-
<eox-itemfilter-${Ot(this.items.find(t=>t._inProgress).type)}
|
|
830
|
-
data-filter=${this.items.find(t=>t._inProgress).id}
|
|
831
|
-
slot="dropdown"
|
|
832
|
-
.filterObject=${this.items.find(t=>t._inProgress)}
|
|
833
|
-
.unstyled=${this.unstyled}
|
|
834
|
-
.inline=${!0}
|
|
835
|
-
@filter=${()=>{this.dispatchEvent(new CustomEvent("filter"))}}
|
|
836
|
-
@click=${t=>{t.stopPropagation()}}
|
|
837
|
-
></eox-itemfilter-${Ot(this.items.find(t=>t._inProgress).type)}>
|
|
838
|
-
`)}
|
|
839
|
-
</div>
|
|
840
|
-
</eox-dropdown>
|
|
841
|
-
</div>
|
|
842
|
-
</div>
|
|
843
|
-
${de(this.items.filter(t=>t.stringifiedState||t._inProgress).length>0,()=>U`
|
|
844
|
-
<div class="button-container">
|
|
845
|
-
<button
|
|
846
|
-
class="icon"
|
|
847
|
-
@click=${()=>{this._handleReset(this.items.filter(t=>t.stringifiedState||t._inProgress))}}
|
|
848
|
-
>
|
|
849
|
-
✕
|
|
850
|
-
</button>
|
|
851
|
-
</div>
|
|
852
|
-
`)}
|
|
853
|
-
`}};wt([J()],ht.prototype,"idProperty",2),wt([J()],ht.prototype,"items",2),wt([J()],ht.prototype,"titleProperty",2),wt([J()],ht.prototype,"unstyled",2),wt([Ze()],ht.prototype,"inputText",2),wt([Ze()],ht.prototype,"replaceInput",2),ht=wt([ke("eox-itemfilter-inline")],ht);function rt(t){return Array.isArray?Array.isArray(t):xs(t)==="[object Array]"}const za=1/0;function Ya(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-za?"-0":e}function Wa(t){return t==null?"":Ya(t)}function Ke(t){return typeof t=="string"}function vs(t){return typeof t=="number"}function Xa(t){return t===!0||t===!1||Va(t)&&xs(t)=="[object Boolean]"}function bs(t){return typeof t=="object"}function Va(t){return bs(t)&&t!==null}function Te(t){return t!=null}function bi(t){return!t.trim().length}function xs(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Ru="Extended search is not available",Ka="Incorrect 'index' type",Ga=t=>`Invalid value for key ${t}`,Ja=t=>`Pattern length exceeds max of ${t}.`,Za=t=>`Missing ${t} property in key`,Qa=t=>`Property 'weight' in key '${t}' must be a positive integer`,ws=Object.prototype.hasOwnProperty;class ec{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(i=>{let n=$s(i);this._keys.push(n),this._keyMap[n.id]=n,r+=n.weight}),this._keys.forEach(i=>{i.weight/=r})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $s(t){let e=null,r=null,i=null,n=1,s=null;if(Ke(t)||rt(t))i=t,e=_s(t),r=xi(t);else{if(!ws.call(t,"name"))throw new Error(Za("name"));const o=t.name;if(i=o,ws.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(Qa(o));e=_s(o),r=xi(o),s=t.getFn}return{path:e,id:r,weight:n,src:i,getFn:s}}function _s(t){return rt(t)?t:t.split(".")}function xi(t){return rt(t)?t.join("."):t}function tc(t,e){let r=[],i=!1;const n=(s,o,l)=>{if(Te(s))if(!o[l])r.push(s);else{let a=o[l];const c=s[a];if(!Te(c))return;if(l===o.length-1&&(Ke(c)||vs(c)||Xa(c)))r.push(Wa(c));else if(rt(c)){i=!0;for(let f=0,p=c.length;f<p;f+=1)n(c[f],o,l+1)}else o.length&&n(c,o,l+1)}};return n(t,Ke(e)?e.split("."):e,0),i?r:r[0]}var K={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:tc,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const rc=/[^ ]+/g;function ic(t=1,e=3){const r=new Map,i=Math.pow(10,e);return{get(n){const s=n.match(rc).length;if(r.has(s))return r.get(s);const o=1/Math.pow(s,.5*t),l=parseFloat(Math.round(o*i)/i);return r.set(s,l),l},clear(){r.clear()}}}class wi{constructor({getFn:e=K.getFn,fieldNormWeight:r=K.fieldNormWeight}={}){this.norm=ic(r,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((r,i)=>{this._keysMap[r.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Ke(this.docs[0])?this.docs.forEach((e,r)=>{this._addString(e,r)}):this.docs.forEach((e,r)=>{this._addObject(e,r)}),this.norm.clear())}add(e){const r=this.size();Ke(e)?this._addString(e,r):this._addObject(e,r)}removeAt(e){this.records.splice(e,1);for(let r=e,i=this.size();r<i;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(e,r){return e[this._keysMap[r]]}size(){return this.records.length}_addString(e,r){if(!Te(e)||bi(e))return;let i={v:e,i:r,n:this.norm.get(e)};this.records.push(i)}_addObject(e,r){let i={i:r,$:{}};this.keys.forEach((n,s)=>{let o=n.getFn?n.getFn(e):this.getFn(e,n.path);if(Te(o)){if(rt(o)){let l=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:c,value:f}=a.pop();if(Te(f))if(Ke(f)&&!bi(f)){let p={v:f,i:c,n:this.norm.get(f)};l.push(p)}else rt(f)&&f.forEach((p,b)=>{a.push({nestedArrIndex:b,value:p})})}i.$[s]=l}else if(Ke(o)&&!bi(o)){let l={v:o,n:this.norm.get(o)};i.$[s]=l}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function Es(t,e,{getFn:r=K.getFn,fieldNormWeight:i=K.fieldNormWeight}={}){const n=new wi({getFn:r,fieldNormWeight:i});return n.setKeys(t.map($s)),n.setSources(e),n.create(),n}function nc(t,{getFn:e=K.getFn,fieldNormWeight:r=K.fieldNormWeight}={}){const{keys:i,records:n}=t,s=new wi({getFn:e,fieldNormWeight:r});return s.setKeys(i),s.setIndexRecords(n),s}function Er(t,{errors:e=0,currentLocation:r=0,expectedLocation:i=0,distance:n=K.distance,ignoreLocation:s=K.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(i-r);return n?o+l/n:l?1:o}function sc(t=[],e=K.minMatchCharLength){let r=[],i=-1,n=-1,s=0;for(let o=t.length;s<o;s+=1){let l=t[s];l&&i===-1?i=s:!l&&i!==-1&&(n=s-1,n-i+1>=e&&r.push([i,n]),i=-1)}return t[s-1]&&s-i>=e&&r.push([i,s-1]),r}const $t=32;function oc(t,e,r,{location:i=K.location,distance:n=K.distance,threshold:s=K.threshold,findAllMatches:o=K.findAllMatches,minMatchCharLength:l=K.minMatchCharLength,includeMatches:a=K.includeMatches,ignoreLocation:c=K.ignoreLocation}={}){if(e.length>$t)throw new Error(Ja($t));const f=e.length,p=t.length,b=Math.max(0,Math.min(i,p));let y=s,E=b;const O=l>1||a,z=O?Array(p):[];let B;for(;(B=t.indexOf(e,E))>-1;){let A=Er(e,{currentLocation:B,expectedLocation:b,distance:n,ignoreLocation:c});if(y=Math.min(A,y),E=B+f,O){let k=0;for(;k<f;)z[B+k]=1,k+=1}}E=-1;let g=[],m=1,w=f+p;const S=1<<f-1;for(let A=0;A<f;A+=1){let k=0,F=w;for(;k<F;)Er(e,{errors:A,currentLocation:b+F,expectedLocation:b,distance:n,ignoreLocation:c})<=y?k=F:w=F,F=Math.floor((w-k)/2+k);w=F;let H=Math.max(1,b-F+1),I=o?p:Math.min(b+F,p)+f,te=Array(I+2);te[I+1]=(1<<A)-1;for(let P=I;P>=H;P-=1){let L=P-1,M=r[t.charAt(L)];if(O&&(z[L]=+!!M),te[P]=(te[P+1]<<1|1)&M,A&&(te[P]|=(g[P+1]|g[P])<<1|1|g[P+1]),te[P]&S&&(m=Er(e,{errors:A,currentLocation:L,expectedLocation:b,distance:n,ignoreLocation:c}),m<=y)){if(y=m,E=L,E<=b)break;H=Math.max(1,2*b-E)}}if(Er(e,{errors:A+1,currentLocation:b,expectedLocation:b,distance:n,ignoreLocation:c})>y)break;g=te}const _={isMatch:E>=0,score:Math.max(.001,m)};if(O){const A=sc(z,l);A.length?a&&(_.indices=A):_.isMatch=!1}return _}function lc(t){let e={};for(let r=0,i=t.length;r<i;r+=1){const n=t.charAt(r);e[n]=(e[n]||0)|1<<i-r-1}return e}class Ss{constructor(e,{location:r=K.location,threshold:i=K.threshold,distance:n=K.distance,includeMatches:s=K.includeMatches,findAllMatches:o=K.findAllMatches,minMatchCharLength:l=K.minMatchCharLength,isCaseSensitive:a=K.isCaseSensitive,ignoreLocation:c=K.ignoreLocation}={}){if(this.options={location:r,threshold:i,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:c},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const f=(b,y)=>{this.chunks.push({pattern:b,alphabet:lc(b),startIndex:y})},p=this.pattern.length;if(p>$t){let b=0;const y=p%$t,E=p-y;for(;b<E;)f(this.pattern.substr(b,$t),b),b+=$t;if(y){const O=p-$t;f(this.pattern.substr(O),O)}}else f(this.pattern,0)}searchIn(e){const{isCaseSensitive:r,includeMatches:i}=this.options;if(r||(e=e.toLowerCase()),this.pattern===e){let E={isMatch:!0,score:0};return i&&(E.indices=[[0,e.length-1]]),E}const{location:n,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:a,ignoreLocation:c}=this.options;let f=[],p=0,b=!1;this.chunks.forEach(({pattern:E,alphabet:O,startIndex:z})=>{const{isMatch:B,score:g,indices:m}=oc(e,E,O,{location:n+z,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:a,includeMatches:i,ignoreLocation:c});B&&(b=!0),p+=g,B&&m&&(f=[...f,...m])});let y={isMatch:b,score:b?p/this.chunks.length:1};return b&&i&&(y.indices=f),y}}class dt{constructor(e){this.pattern=e}static isMultiMatch(e){return As(e,this.multiRegex)}static isSingleMatch(e){return As(e,this.singleRegex)}search(){}}function As(t,e){const r=t.match(e);return r?r[1]:null}class ac extends dt{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const r=e===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class cc extends dt{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const i=e.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,e.length-1]}}}class uc extends dt{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const r=e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class hc extends dt{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const r=!e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class dc extends dt{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const r=e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class fc extends dt{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const r=!e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class Ms extends dt{constructor(e,{location:r=K.location,threshold:i=K.threshold,distance:n=K.distance,includeMatches:s=K.includeMatches,findAllMatches:o=K.findAllMatches,minMatchCharLength:l=K.minMatchCharLength,isCaseSensitive:a=K.isCaseSensitive,ignoreLocation:c=K.ignoreLocation}={}){super(e),this._bitapSearch=new Ss(e,{location:r,threshold:i,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:a,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Os extends dt{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let r=0,i;const n=[],s=this.pattern.length;for(;(i=e.indexOf(this.pattern,r))>-1;)r=i+s,n.push([i,r-1]);const o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const $i=[ac,Os,uc,hc,fc,dc,cc,Ms],Ps=$i.length,pc=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,gc="|";function mc(t,e={}){return t.split(gc).map(r=>{let i=r.trim().split(pc).filter(s=>s&&!!s.trim()),n=[];for(let s=0,o=i.length;s<o;s+=1){const l=i[s];let a=!1,c=-1;for(;!a&&++c<Ps;){const f=$i[c];let p=f.isMultiMatch(l);p&&(n.push(new f(p,e)),a=!0)}if(!a)for(c=-1;++c<Ps;){const f=$i[c];let p=f.isSingleMatch(l);if(p){n.push(new f(p,e));break}}}return n})}const yc=new Set([Ms.type,Os.type]);class vc{constructor(e,{isCaseSensitive:r=K.isCaseSensitive,includeMatches:i=K.includeMatches,minMatchCharLength:n=K.minMatchCharLength,ignoreLocation:s=K.ignoreLocation,findAllMatches:o=K.findAllMatches,location:l=K.location,threshold:a=K.threshold,distance:c=K.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:i,minMatchCharLength:n,findAllMatches:o,ignoreLocation:s,location:l,threshold:a,distance:c},this.pattern=r?e:e.toLowerCase(),this.query=mc(this.pattern,this.options)}static condition(e,r){return r.useExtendedSearch}searchIn(e){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let s=0,o=[],l=0;for(let a=0,c=r.length;a<c;a+=1){const f=r[a];o.length=0,s=0;for(let p=0,b=f.length;p<b;p+=1){const y=f[p],{isMatch:E,indices:O,score:z}=y.search(e);if(E){if(s+=1,l+=z,i){const B=y.constructor.type;yc.has(B)?o=[...o,...O]:o.push(O)}}else{l=0,s=0,o.length=0;break}}if(s){let p={isMatch:!0,score:l/s};return i&&(p.indices=o),p}}return{isMatch:!1,score:1}}}const _i=[];function bc(...t){_i.push(...t)}function Ei(t,e){for(let r=0,i=_i.length;r<i;r+=1){let n=_i[r];if(n.condition(t,e))return new n(t,e)}return new Ss(t,e)}const Sr={AND:"$and",OR:"$or"},Si={PATH:"$path",PATTERN:"$val"},Ai=t=>!!(t[Sr.AND]||t[Sr.OR]),xc=t=>!!t[Si.PATH],wc=t=>!rt(t)&&bs(t)&&!Ai(t),Ls=t=>({[Sr.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Cs(t,e,{auto:r=!0}={}){const i=n=>{let s=Object.keys(n);const o=xc(n);if(!o&&s.length>1&&!Ai(n))return i(Ls(n));if(wc(n)){const a=o?n[Si.PATH]:s[0],c=o?n[Si.PATTERN]:n[a];if(!Ke(c))throw new Error(Ga(a));const f={keyId:xi(a),pattern:c};return r&&(f.searcher=Ei(c,e)),f}let l={children:[],operator:s[0]};return s.forEach(a=>{const c=n[a];rt(c)&&c.forEach(f=>{l.children.push(i(f))})}),l};return Ai(t)||(t=Ls(t)),i(t)}function $c(t,{ignoreFieldNorm:e=K.ignoreFieldNorm}){t.forEach(r=>{let i=1;r.matches.forEach(({key:n,norm:s,score:o})=>{const l=n?n.weight:null;i*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),r.score=i})}function _c(t,e){const r=t.matches;e.matches=[],Te(r)&&r.forEach(i=>{if(!Te(i.indices)||!i.indices.length)return;const{indices:n,value:s}=i;let o={indices:n,value:s};i.key&&(o.key=i.key.src),i.idx>-1&&(o.refIndex=i.idx),e.matches.push(o)})}function Ec(t,e){e.score=t.score}function Sc(t,e,{includeMatches:r=K.includeMatches,includeScore:i=K.includeScore}={}){const n=[];return r&&n.push(_c),i&&n.push(Ec),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return n.length&&n.forEach(a=>{a(s,l)}),l})}class Bt{constructor(e,r={},i){this.options={...K,...r},this.options.useExtendedSearch,this._keyStore=new ec(this.options.keys),this.setCollection(e,i)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof wi))throw new Error(Ka);this._myIndex=r||Es(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Te(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const r=[];for(let i=0,n=this._docs.length;i<n;i+=1){const s=this._docs[i];e(s,i)&&(this.removeAt(i),i-=1,n-=1,r.push(s))}return r}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:r=-1}={}){const{includeMatches:i,includeScore:n,shouldSort:s,sortFn:o,ignoreFieldNorm:l}=this.options;let a=Ke(e)?Ke(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return $c(a,{ignoreFieldNorm:l}),s&&a.sort(o),vs(r)&&r>-1&&(a=a.slice(0,r)),Sc(a,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(e){const r=Ei(e,this.options),{records:i}=this._myIndex,n=[];return i.forEach(({v:s,i:o,n:l})=>{if(!Te(s))return;const{isMatch:a,score:c,indices:f}=r.searchIn(s);a&&n.push({item:s,idx:o,matches:[{score:c,value:s,norm:l,indices:f}]})}),n}_searchLogical(e){const r=Cs(e,this.options),i=(l,a,c)=>{if(!l.children){const{keyId:p,searcher:b}=l,y=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(a,p),searcher:b});return y&&y.length?[{idx:c,item:a,matches:y}]:[]}const f=[];for(let p=0,b=l.children.length;p<b;p+=1){const y=l.children[p],E=i(y,a,c);if(E.length)f.push(...E);else if(l.operator===Sr.AND)return[]}return f},n=this._myIndex.records,s={},o=[];return n.forEach(({$:l,i:a})=>{if(Te(l)){let c=i(r,l,a);c.length&&(s[a]||(s[a]={idx:a,item:l,matches:[]},o.push(s[a])),c.forEach(({matches:f})=>{s[a].matches.push(...f)}))}}),o}_searchObjectList(e){const r=Ei(e,this.options),{keys:i,records:n}=this._myIndex,s=[];return n.forEach(({$:o,i:l})=>{if(!Te(o))return;let a=[];i.forEach((c,f)=>{a.push(...this._findMatches({key:c,value:o[f],searcher:r}))}),a.length&&s.push({idx:l,item:o,matches:a})}),s}_findMatches({key:e,value:r,searcher:i}){if(!Te(r))return[];let n=[];if(rt(r))r.forEach(({v:s,i:o,n:l})=>{if(!Te(s))return;const{isMatch:a,score:c,indices:f}=i.searchIn(s);a&&n.push({score:c,key:e,value:s,idx:o,norm:l,indices:f})});else{const{v:s,n:o}=r,{isMatch:l,score:a,indices:c}=i.searchIn(s);l&&n.push({score:a,key:e,value:s,norm:o,indices:c})}return n}}Bt.version="7.0.0",Bt.createIndex=Es,Bt.parseIndex=nc,Bt.config=K,Bt.parseQuery=Cs,bc(vc);const Ac=(t,e="highlight",r="title")=>{const i=(s,o,l)=>{const a=o.split(".");let c;for(c=0;c<a.length-1;c++)s=s[a[c]];s[a[c]]=l},n=(s,o=[])=>{let l="",a=0;return o.forEach(c=>{const f=c[1]+1;l+=[s.substring(a,c[0]),`<mark class="${e}">`,s.substring(c[0],f),"</mark>"].join(""),a=f}),l+=s.substring(a),l};return t.filter(({matches:s})=>s&&s.length).map(({item:s,matches:o})=>{const l={};for(const[a,c]of Object.entries(s))l[a]=c;return o.forEach(a=>{a.key===r&&i(l,a.key,n(a.value,a.indices))}),l})};let ks;const Mc=(t,e)=>{ks=new Bt(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},Oc=async(t,e,r)=>{const i=Object.entries(e).filter(([,l])=>l.type==="text"||l.type==="select"||l.type==="multiselect").reduce((l,[a,c])=>{const f="$or",p=[],b=(y,E)=>{const O={};c.type==="text"?O[y]=`${E}`:O[a]=`="${y}"`,p.push(O)};return Object.entries(c.state).filter(([,y])=>y).forEach(([y,E])=>b(y,E)),p.length>0&&l.push({[f]:p}),l},[]);let n;if(!(i.length>0)&&r.matchAllWhenEmpty!==!1)n=t;else{const l={$and:[...i]},a=ks.search(l);n=r.enableHighlighting?Ac(a,"highlight",r.titleProperty):a.map(c=>c.item)}const s=Object.entries(e).filter(([,l])=>l.type==="range").reduce((l,[a,c])=>(l[a]={min:c.state.min,max:c.state.max,format:c.format},l),{});if(Object.keys(s).length>0){const l=[];for(let a=0;a<n.length;a++){const c={};for(const[f,p]of Object.entries(s)){const b=y=>p.format==="date"?Lt(y).unix():y;Object.prototype.hasOwnProperty.call(n[a],f)?Array.isArray(n[a][f])?c[f]=s[f].min<=b(n[a][f][1])&&b(n[a][f][0])<=s[f].max:b(n[a][f])>=s[f].min&&b(n[a][f])<=s[f].max?c[f]=!0:c[f]=!1:c[f]=!0}Object.values(c).every(f=>!!f)&&l.push(n[a])}n=[...l]}const o=Object.entries(e).filter(([,l])=>l.type==="spatial").reduce((l,[a,c])=>(l[a]={geometry:c.state.geometry,mode:c.state.mode},l),{});if(Object.values(o).map(l=>l.geometry).filter(l=>!!l).length>0){const l=[];for(let a=0;a<n.length;a++){const c={};for(const f of Object.keys(o)){const p=o[f].mode||"within";Object.prototype.hasOwnProperty.call(n[a],f)&&(p==="within"?Ba(n[a][f],o[f].geometry):Na(n[a][f],o[f].geometry))?c[f]=!0:c[f]=!1}Object.values(c).every(f=>!!f)&&l.push(n[a])}n=[...l]}return n},Pc=async(t,e,r)=>(await(await fetch(`${r.externalFilter(t,e)}`)).json()).features;var Lc=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,it=(t,e,r,i)=>{for(var n=i>1?void 0:i?Cc(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(n=(i?o(e,r,n):o(n))||n);return i&&n&&Lc(e,r,n),n};class Mi{constructor(){this.aggregateResults=void 0,this.autoSpreadSingle=!1,this.enableHighlighting=!1,this.filterProperties=[],this.inlineMode=!1,this.matchAllWhenEmpty=!0,this.onFilter=()=>{},this.onSelect=()=>{},this.showResults=!0,this.titleProperty="title",this.expandMultipleFilters=!0,this.expandResults=!0,this.expandMultipleResults=!0}}$e.EOxItemFilter=class extends Oo{constructor(){super(...arguments),this._resultAggregation=[],this._items=[],this.filters={},this._config=new Mi,this.apply=e=>{this._items=e.map((i,n)=>({id:`item-${n}`,...i})),this._config.filterProperties.length&&this._config.filterProperties.forEach(i=>{const n={},s=o=>i.format==="date"?Lt(o).unix():parseInt(o);this._items.forEach(o=>{if(i.type==="range"){if(Array.isArray(o[i.key])){const l=[s(o[i.key][0]),s(o[i.key][1])];n.min=n.min!==void 0?Math.min(n.min,l[0]):l[0],n.max=n.max!==void 0?Math.max(n.max,l[1]):l[1]}else{const l=s(o[i.key]);n.min=n.min!==void 0?Math.min(n.min,l):l,n.max=n.max!==void 0?Math.max(n.max,l):l}return}Array.isArray(o[i.key])?o[i.key].forEach(l=>{n[l]=void 0}):i.type==="spatial"?(n.geometry=void 0,n.mode=i.mode||"intersects"):n[o[i.key]]=void 0}),this.filters[i.key||i.keys.join("|")]={...i,type:i.type||"multiselect",state:{...n,...i.state},...i.state&&{dirty:!1},...i.type==="range"&&{min:n.min,max:n.max,format:i.format}}}),this._config.matchAllWhenEmpty!==!1&&(this.results=this.sortResults(this._items),this.requestUpdate()),this._config.aggregateResults&&(this._resultAggregation=[...new Set(this._items.reduce((i,n)=>i.concat(n[this._config.aggregateResults]),[]))].sort((i,n)=>i.localeCompare(n)));const r=[];Object.values(this.filters).forEach(i=>{i.type==="text"?i.keys.forEach(n=>{r.includes(n)||r.push(n)}):(i.type==="select"||i.type==="multiselect")&&(r.includes(i.key)||r.push(i.key))}),Mc(this._items,{keys:r,...this._config.fuseConfig}),this.search()}}set items(e){this.apply(e)}get items(){return this._items}set config(e){const r=this._config;this._config={...new Mi,...e},this.requestUpdate("config",r)}get config(){return this._config}async search(){let e;this.config.externalFilter?e=await Pc(this._items,this.filters,this._config):e=await Oc(this._items,this.filters,this._config),this.results=this.sortResults(e),this._config.onFilter(this.results,this.filters)}aggregateResults(e,r){return e.filter(i=>{const n=i[this._config.aggregateResults];let s;return this.filters[this._config.aggregateResults]&&(s=Object.keys(this.filters[this._config.aggregateResults]).filter(l=>this.filters[this._config.aggregateResults].state[l])),(s!=null&&s.length?s.includes(r):!0)&&Array.isArray(n)?n.includes(r):n===r})}createItemList(e){return U`
|
|
854
|
-
<ul>
|
|
855
|
-
${An(this.aggregateResults(this.results,e),r=>r.id,r=>{var i,n;return U`
|
|
856
|
-
<li
|
|
857
|
-
class=${((i=this.selectedResult)==null?void 0:i[this._config.titleProperty])===r[this._config.titleProperty]?"highlighted":se}
|
|
858
|
-
>
|
|
686
|
+
${Se(this,gr,ka).call(this,"max","after")}
|
|
687
|
+
`)}}gr=new WeakSet,rp=function(r){T0(r,this)},ka=function(r,n){return I0(r,n,this)},Jn(jf,"properties",{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number}}),customElements.define("eox-itemfilter-range",jf);class nb extends it{constructor(){super();nt(this,zi);this.filterObject={},this.tabIndex=0}static get properties(){return{filterObject:{type:Object},tabIndex:{attribute:!1,type:Number}}}reset(){U0(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>{var r;return K`
|
|
688
|
+
<form style="display: inline">
|
|
689
|
+
${Xn(["intersects","within"],n=>K`
|
|
859
690
|
<label>
|
|
860
691
|
<input
|
|
861
|
-
|
|
692
|
+
tabindex=${this.tabIndex}
|
|
862
693
|
type="radio"
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
@click=${()=>{this.selectedResult=r,this._config.onSelect(r)}}
|
|
694
|
+
name="mode"
|
|
695
|
+
.checked="${(this.filterObject.state.mode||"")===n||be}"
|
|
696
|
+
value="${n}"
|
|
697
|
+
@click=${()=>Se(this,zi,np).call(this,n)}
|
|
868
698
|
/>
|
|
869
|
-
|
|
870
|
-
<span class="title"
|
|
871
|
-
>${Mn(r[this._config.titleProperty])}</span
|
|
872
|
-
>
|
|
873
|
-
`)}
|
|
699
|
+
<small>${n} filter geometry</small>
|
|
874
700
|
</label>
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
701
|
+
`)}
|
|
702
|
+
</form>
|
|
703
|
+
<eox-itemfilter-spatial-filter
|
|
704
|
+
exportparts="map: spatial-filter-map"
|
|
705
|
+
.geometry="${(r=this.filterObject.state)==null?void 0:r.geometry}"
|
|
706
|
+
@filter="${n=>{this.filterObject.state.geometry=n.detail.geometry,this.filterObject.dirty=!0,this.filterObject.stringifiedState="Polygon",this.dispatchEvent(new CustomEvent("filter"))}}"
|
|
707
|
+
></eox-itemfilter-spatial>
|
|
708
|
+
`})}}zi=new WeakSet,np=function(r){W0(r,this)},customElements.define("eox-itemfilter-spatial",nb);class ib extends it{constructor(){super();nt(this,qi);this.geometry=null,this.eoxMap=null}static get properties(){return{geometry:{type:Object},eoxMap:{type:Object}}}firstUpdated(){Se(this,qi,ip).call(this)}reset(){F0(this)}render(){return K`<div id="eox-map"></div>`}}qi=new WeakSet,ip=function(){Pf(this)},customElements.define("eox-itemfilter-spatial-filter",ib);function ob(t,e){e.renderRoot.querySelectorAll(".chip").forEach(r=>{r.classList.remove("highlighted")}),t.target.classList.add("highlighted"),e.requestUpdate()}function sb(t,e){const{code:r}=t;e.parentElement.classList.contains("hidden")&&["ArrowLeft","ArrowRight","Backspace"].includes(r)||(r==="Space"&&t.preventDefault(),["Escape","Space","Enter"].includes(r)||t.stopPropagation(),["ArrowLeft","ArrowRight","Escape","Backspace"].includes(r)&&ab(r,t.target.value??"",e))}function ab(t,e,r){const n=r.renderRoot.querySelector(".chip.highlighted");if((t==="Escape"||e)&&n&&n.classList.remove("highlighted"),t==="Backspace"&&!e){if(r.items.length){n&&(n.querySelector(".chip-item-close").click(),r.items.splice(Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(n),1));const i=r.renderRoot.querySelectorAll(".chip")[r.renderRoot.querySelectorAll(".chip").length-1];i.classList.contains("highlighted")||i.classList.add("highlighted"),r.requestUpdate()}r._dispatchEvent()}if((t==="ArrowLeft"||t==="ArrowRight")&&!e){if(r.renderRoot.querySelectorAll(".chip").length<1)return;let i=0;const o=r.renderRoot.querySelector(".chip.highlighted");o&&(i=Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(o),o.classList.remove("highlighted")),i=i+(t==="ArrowLeft"?-1:1),t==="ArrowLeft"&&i<0&&(i=r.renderRoot.querySelectorAll(".chip").length-1),t==="ArrowRight"&&i>r.renderRoot.querySelectorAll(".chip").length-1&&(i=0),Array.from(r.renderRoot.querySelectorAll(".chip"))[i].classList.add("highlighted")}}class lb extends it{constructor(){super();nt(this,yr);this.items={},this.controller={}}static get properties(){return{items:{attribute:!1,type:Object},controller:{attribute:!1,type:Object}}}connectedCallback(){super.connectedCallback(),this.getRootNode().addEventListener("keydown",Se(this,yr,La).bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",Se(this,yr,La).bind(this))}_dispatchEvent(){this.dispatchEvent(new CustomEvent("items-selected",{detail:this.items}))}render(){return K`
|
|
879
709
|
<style>
|
|
880
|
-
${
|
|
881
|
-
|
|
710
|
+
${yn}
|
|
711
|
+
</style>
|
|
712
|
+
<span class="chip-container">
|
|
713
|
+
${Xn(this.items,r=>K`
|
|
714
|
+
<span class="chip" @click=${Se(this,yr,op).bind(this)}>
|
|
715
|
+
<span class="chip-title">${r.title}</span>
|
|
716
|
+
<span
|
|
717
|
+
class="chip-item-close hidden"
|
|
718
|
+
data-close=${r.key}
|
|
719
|
+
@click=${n=>{n.stopPropagation(),this.controller.remove(n),this.requestUpdate()}}
|
|
720
|
+
></span>
|
|
721
|
+
</span>
|
|
722
|
+
</span>
|
|
723
|
+
`)}
|
|
724
|
+
</span>
|
|
725
|
+
`}}yr=new WeakSet,La=function(r){sb(r,this)},op=function(r){ob(r,this)},customElements.define("eox-itemfilter-chips",lb);const Bf=Object.freeze({aggregateResults:void 0,autoSpreadSingle:!1,enableHighlighting:!1,externalFilter:()=>{},filterProperties:[],fuseConfig:{},inlineMode:!1,matchAllWhenEmpty:!0,showResults:!0,titleProperty:"title",expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0});function cb(t,e,r){let n=[];t.filterProperties.length&&t.filterProperties.forEach(o=>{const s={},c=f=>o.format==="date"?On(f).unix():parseInt(f,10);e.forEach(f=>{if(o.type==="range"){if(Array.isArray(f[o.key])){const h=[c(f[o.key][0]),c(f[o.key][1])];s.min=s.min!==void 0?Math.min(s.min,h[0]):h[0],s.max=s.max!==void 0?Math.max(s.max,h[1]):h[1]}else{const h=c(f[o.key]);s.min=s.min!==void 0?Math.min(s.min,h):h,s.max=s.max!==void 0?Math.max(s.max,h):h}return}Array.isArray(f[o.key])?f[o.key].forEach(h=>{s[h]=void 0}):o.type==="spatial"?(s.geometry=void 0,s.mode=o.mode||"intersects"):s[f[o.key]]=void 0});const l=o.key||o.keys.join("|");r.filters[l]=Object.assign({type:o.type||"multiselect",dirty:o.state?!1:void 0,key:l},o.type==="range"?{min:s.min,max:s.max,format:o.format}:{},o),r.filters[l].state=Object.assign({},s,o.state)}),t.matchAllWhenEmpty!==!1&&(r.results=r.sortResults(e),r.requestUpdate()),t.aggregateResults&&(n=Array.from(new Set(e.reduce((o,s)=>o.concat(s[t.aggregateResults]),[]))).sort((o,s)=>o.localeCompare(s)));const i=[];return Object.values(r.filters).forEach(o=>{o.type==="text"?o.keys.forEach(s=>{i.includes(s)||i.push(s)}):(o.type==="select"||o.type==="multiselect")&&(i.includes(o.key)||i.push(o.key))}),s0(e,Object.assign({keys:i},t.fuseConfig)),n}async function ub(t,e,r){var i;let n;(i=r.config)!=null&&i.externalFilter?n=await u0(e,r.filters,t):n=await a0(e,r.filters,t),r.results=r.sortResults(n)}var fb=200,Ys="__lodash_hash_undefined__",pb=1/0,hb="[object Function]",db="[object GeneratorFunction]",gb=/[\\^$.*+?()[\]{}|]/g,yb=/^\[object .+?Constructor\]$/,vb=typeof Ge=="object"&&Ge&&Ge.Object===Object&&Ge,mb=typeof self=="object"&&self&&self.Object===Object&&self,Js=vb||mb||Function("return this")();function bb(t,e){var r=t?t.length:0;return!!r&&xb(t,e,0)>-1}function wb(t,e,r){for(var n=-1,i=t?t.length:0;++n<i;)if(r(e,t[n]))return!0;return!1}function $b(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function xb(t,e,r){if(e!==e)return $b(t,Sb,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function Sb(t){return t!==t}function Ab(t,e){return t.has(e)}function _b(t,e){return t==null?void 0:t[e]}function Eb(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function Nf(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Mb=Array.prototype,Pb=Function.prototype,Hf=Object.prototype,Zs=Js["__core-js_shared__"],Uf=function(){var t=/[^.]+$/.exec(Zs&&Zs.keys&&Zs.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ff=Pb.toString,Xs=Hf.hasOwnProperty,Ob=Hf.toString,Cb=RegExp("^"+Ff.call(Xs).replace(gb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kb=Mb.splice,Lb=ea(Js,"Map"),Qs=ea(Js,"Set"),kn=ea(Object,"create");function hr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tb(){this.__data__=kn?kn(null):{}}function Ib(t){return this.has(t)&&delete this.__data__[t]}function Db(t){var e=this.__data__;if(kn){var r=e[t];return r===Ys?void 0:r}return Xs.call(e,t)?e[t]:void 0}function Rb(t){var e=this.__data__;return kn?e[t]!==void 0:Xs.call(e,t)}function jb(t,e){var r=this.__data__;return r[t]=kn&&e===void 0?Ys:e,this}hr.prototype.clear=Tb,hr.prototype.delete=Ib,hr.prototype.get=Db,hr.prototype.has=Rb,hr.prototype.set=jb;function Ur(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Bb(){this.__data__=[]}function Nb(t){var e=this.__data__,r=Ni(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():kb.call(e,r,1),!0}function Hb(t){var e=this.__data__,r=Ni(e,t);return r<0?void 0:e[r][1]}function Ub(t){return Ni(this.__data__,t)>-1}function Fb(t,e){var r=this.__data__,n=Ni(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}Ur.prototype.clear=Bb,Ur.prototype.delete=Nb,Ur.prototype.get=Hb,Ur.prototype.has=Ub,Ur.prototype.set=Fb;function Fr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Wb(){this.__data__={hash:new hr,map:new(Lb||Ur),string:new hr}}function zb(t){return Hi(this,t).delete(t)}function qb(t){return Hi(this,t).get(t)}function Gb(t){return Hi(this,t).has(t)}function Vb(t,e){return Hi(this,t).set(t,e),this}Fr.prototype.clear=Wb,Fr.prototype.delete=zb,Fr.prototype.get=qb,Fr.prototype.has=Gb,Fr.prototype.set=Vb;function Bi(t){var e=-1,r=t?t.length:0;for(this.__data__=new Fr;++e<r;)this.add(t[e])}function Kb(t){return this.__data__.set(t,Ys),this}function Yb(t){return this.__data__.has(t)}Bi.prototype.add=Bi.prototype.push=Kb,Bi.prototype.has=Yb;function Ni(t,e){for(var r=t.length;r--;)if(n1(t[r][0],e))return r;return-1}function Jb(t){if(!Wf(t)||e1(t))return!1;var e=i1(t)||Eb(t)?Cb:yb;return e.test(t1(t))}function Zb(t,e,r){var n=-1,i=bb,o=t.length,s=!0,c=[],l=c;if(r)s=!1,i=wb;else if(o>=fb){var f=e?null:Xb(t);if(f)return Nf(f);s=!1,i=Ab,l=new Bi}else l=e?[]:c;e:for(;++n<o;){var h=t[n],y=e?e(h):h;if(h=r||h!==0?h:0,s&&y===y){for(var m=l.length;m--;)if(l[m]===y)continue e;e&&l.push(y),c.push(h)}else i(l,y,r)||(l!==c&&l.push(y),c.push(h))}return c}var Xb=Qs&&1/Nf(new Qs([,-0]))[1]==pb?function(t){return new Qs(t)}:o1;function Hi(t,e){var r=t.__data__;return Qb(e)?r[typeof e=="string"?"string":"hash"]:r.map}function ea(t,e){var r=_b(t,e);return Jb(r)?r:void 0}function Qb(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function e1(t){return!!Uf&&Uf in t}function t1(t){if(t!=null){try{return Ff.call(t)}catch{}try{return t+""}catch{}}return""}function r1(t){return t&&t.length?Zb(t):[]}function n1(t,e){return t===e||t!==t&&e!==e}function i1(t){var e=Wf(t)?Ob.call(t):"";return e==hb||e==db}function Wf(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function o1(){}var s1=r1;const a1=vn(s1);var Ui={exports:{}};Ui.exports,function(t,e){var r=200,n="Expected a function",i="__lodash_hash_undefined__",o=1,s=2,c=1/0,l=9007199254740991,f="[object Arguments]",h="[object Array]",y="[object Boolean]",m="[object Date]",b="[object Error]",A="[object Function]",L="[object GeneratorFunction]",W="[object Map]",V="[object Number]",J="[object Object]",Z="[object Promise]",pe="[object RegExp]",te="[object Set]",N="[object String]",X="[object Symbol]",ie="[object WeakMap]",we="[object ArrayBuffer]",de="[object DataView]",re="[object Float32Array]",Ne="[object Float64Array]",et="[object Int8Array]",I="[object Int16Array]",E="[object Int32Array]",_="[object Uint8Array]",R="[object Uint8ClampedArray]",P="[object Uint16Array]",q="[object Uint32Array]",G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ye=/^\w*$/,_e=/^\./,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Ke=/\\(\\)?/g,Le=/^\[object .+?Constructor\]$/,Ye=/^(?:0|[1-9]\d*)$/,le={};le[re]=le[Ne]=le[et]=le[I]=le[E]=le[_]=le[R]=le[P]=le[q]=!0,le[f]=le[h]=le[we]=le[y]=le[de]=le[m]=le[b]=le[A]=le[W]=le[V]=le[J]=le[pe]=le[te]=le[N]=le[ie]=!1;var Te=typeof Ge=="object"&&Ge&&Ge.Object===Object&&Ge,oe=typeof self=="object"&&self&&self.Object===Object&&self,Ie=Te||oe||Function("return this")(),_t=e&&!e.nodeType&&e,Ee=_t&&!0&&t&&!t.nodeType&&t,ta=Ee&&Ee.exports===_t,Gi=ta&&Te.process,Vi=function(){try{return Gi&&Gi.binding("util")}catch{}}(),Ki=Vi&&Vi.isTypedArray;function ra(a,p){for(var v=-1,S=a?a.length:0,D=Array(S);++v<S;)D[v]=p(a[v],v,a);return D}function Tn(a,p){for(var v=-1,S=p.length,D=a.length;++v<S;)a[D+v]=p[v];return a}function na(a,p){for(var v=-1,S=a?a.length:0;++v<S;)if(p(a[v],v,a))return!0;return!1}function ia(a){return function(p){return p==null?void 0:p[a]}}function oa(a,p){for(var v=-1,S=Array(a);++v<a;)S[v]=p(v);return S}function Yi(a){return function(p){return a(p)}}function sa(a,p){return a==null?void 0:a[p]}function In(a){var p=!1;if(a!=null&&typeof a.toString!="function")try{p=!!(a+"")}catch{}return p}function aa(a){var p=-1,v=Array(a.size);return a.forEach(function(S,D){v[++p]=[D,S]}),v}function la(a,p){return function(v){return a(p(v))}}function ca(a){var p=-1,v=Array(a.size);return a.forEach(function(S){v[++p]=S}),v}var ua=Array.prototype,fa=Function.prototype,qr=Object.prototype,Dn=Ie["__core-js_shared__"],Ji=function(){var a=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Zi=fa.toString,vt=qr.hasOwnProperty,Jt=qr.toString,pa=RegExp("^"+Zi.call(vt).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gr=Ie.Symbol,Xi=Ie.Uint8Array,ha=qr.propertyIsEnumerable,da=ua.splice,vr=Gr?Gr.isConcatSpreadable:void 0,ga=la(Object.keys,Object),Vr=Qt(Ie,"DataView"),mr=Qt(Ie,"Map"),Et=Qt(Ie,"Promise"),Kr=Qt(Ie,"Set"),Rn=Qt(Ie,"WeakMap"),br=Qt(Object,"create"),Qi=mt(Vr),ya=mt(mr),eo=mt(Et),va=mt(Kr),to=mt(Rn),Yr=Gr?Gr.prototype:void 0,wr=Yr?Yr.valueOf:void 0,Zt=Yr?Yr.toString:void 0;function tt(a){var p=-1,v=a?a.length:0;for(this.clear();++p<v;){var S=a[p];this.set(S[0],S[1])}}function ro(){this.__data__=br?br(null):{}}function ma(a){return this.has(a)&&delete this.__data__[a]}function ba(a){var p=this.__data__;if(br){var v=p[a];return v===i?void 0:v}return vt.call(p,a)?p[a]:void 0}function wa(a){var p=this.__data__;return br?p[a]!==void 0:vt.call(p,a)}function jn(a,p){var v=this.__data__;return v[a]=br&&p===void 0?i:p,this}tt.prototype.clear=ro,tt.prototype.delete=ma,tt.prototype.get=ba,tt.prototype.has=wa,tt.prototype.set=jn;function u(a){var p=-1,v=a?a.length:0;for(this.clear();++p<v;){var S=a[p];this.set(S[0],S[1])}}function g(){this.__data__=[]}function x(a){var p=this.__data__,v=Ae(p,a);if(v<0)return!1;var S=p.length-1;return v==S?p.pop():da.call(p,v,1),!0}function w(a){var p=this.__data__,v=Ae(p,a);return v<0?void 0:p[v][1]}function M(a){return Ae(this.__data__,a)>-1}function H(a,p){var v=this.__data__,S=Ae(v,a);return S<0?v.push([a,p]):v[S][1]=p,this}u.prototype.clear=g,u.prototype.delete=x,u.prototype.get=w,u.prototype.has=M,u.prototype.set=H;function U(a){var p=-1,v=a?a.length:0;for(this.clear();++p<v;){var S=a[p];this.set(S[0],S[1])}}function C(){this.__data__={hash:new tt,map:new(mr||u),string:new tt}}function k(a){return Dt(this,a).delete(a)}function Q(a){return Dt(this,a).get(a)}function se(a){return Dt(this,a).has(a)}function B(a,p){return Dt(this,a).set(a,p),this}U.prototype.clear=C,U.prototype.delete=k,U.prototype.get=Q,U.prototype.has=se,U.prototype.set=B;function ce(a){var p=-1,v=a?a.length:0;for(this.__data__=new U;++p<v;)this.add(a[p])}function rt(a){return this.__data__.set(a,i),this}function Fe(a){return this.__data__.has(a)}ce.prototype.add=ce.prototype.push=rt,ce.prototype.has=Fe;function j(a){this.__data__=new u(a)}function ne(){this.__data__=new u}function F(a){return this.__data__.delete(a)}function $e(a){return this.__data__.get(a)}function De(a){return this.__data__.has(a)}function ke(a,p){var v=this.__data__;if(v instanceof u){var S=v.__data__;if(!mr||S.length<r-1)return S.push([a,p]),this;v=this.__data__=new U(S)}return v.set(a,p),this}j.prototype.clear=ne,j.prototype.delete=F,j.prototype.get=$e,j.prototype.has=De,j.prototype.set=ke;function Me(a,p){var v=lt(a)||Er(a)?oa(a.length,String):[],S=v.length,D=!!S;for(var O in a)(p||vt.call(a,O))&&!(D&&(O=="length"||Hn(O,S)))&&v.push(O);return v}function Ae(a,p){for(var v=a.length;v--;)if(nn(a[v][0],p))return v;return-1}var Je=Aa(no);function ze(a,p,v,S,D){var O=-1,Y=a.length;for(v||(v=uo),D||(D=[]);++O<Y;){var ue=a[O];p>0&&v(ue)?p>1?ze(ue,p-1,v,S,D):Tn(D,ue):S||(D[D.length]=ue)}return D}var Mt=_a();function no(a,p){return a&&Mt(a,p,er)}function Bn(a,p){p=Ar(p,a)?[p]:lo(p);for(var v=0,S=p.length;a!=null&&v<S;)a=a[rn(p[v++])];return v&&v==S?a:void 0}function Jr(a){return Jt.call(a)}function $a(a,p){return a!=null&&p in Object(a)}function Zr(a,p,v,S,D){return a===p?!0:a==null||p==null||!Rt(a)&&!jt(p)?a!==a&&p!==p:Tt(a,p,Zr,v,S,D)}function Tt(a,p,v,S,D,O){var Y=lt(a),ue=lt(p),xe=h,Re=h;Y||(xe=Pt(a),xe=xe==f?J:xe),ue||(Re=Pt(p),Re=Re==f?J:Re);var qe=xe==J&&!In(a),Ze=Re==J&&!In(p),je=xe==Re;if(je&&!qe)return O||(O=new j),Y||sn(a)?Sr(a,p,v,S,D,O):Xt(a,p,xe,v,S,D,O);if(!(D&s)){var d=qe&&vt.call(a,"__wrapped__"),$=Ze&&vt.call(p,"__wrapped__");if(d||$){var T=d?a.value():a,ee=$?p.value():p;return O||(O=new j),v(T,ee,S,D,O)}}return je?(O||(O=new j),Qr(a,p,v,S,D,O)):!1}function Xr(a,p,v,S){var D=v.length,O=D,Y=!S;if(a==null)return!O;for(a=Object(a);D--;){var ue=v[D];if(Y&&ue[2]?ue[1]!==a[ue[0]]:!(ue[0]in a))return!1}for(;++D<O;){ue=v[D];var xe=ue[0],Re=a[xe],qe=ue[1];if(Y&&ue[2]){if(Re===void 0&&!(xe in a))return!1}else{var Ze=new j;if(S)var je=S(Re,qe,xe,a,p,Ze);if(!(je===void 0?Zr(qe,Re,S,o|s,Ze):je))return!1}}return!0}function io(a){if(!Rt(a)||Un(a))return!1;var p=po(a)||In(a)?pa:Le;return p.test(mt(a))}function oo(a){return jt(a)&&Gn(a.length)&&!!le[Jt.call(a)]}function so(a){return typeof a=="function"?a:a==null?Yn:typeof a=="object"?lt(a)?$r(a[0],a[1]):Sa(a):ho(a)}function ao(a){if(!Fn(a))return ga(a);var p=[];for(var v in Object(a))vt.call(a,v)&&v!="constructor"&&p.push(v);return p}function xa(a,p){var v=-1,S=He(a)?Array(a.length):[];return Je(a,function(D,O,Y){S[++v]=p(D,O,Y)}),S}function Sa(a){var p=Nn(a);return p.length==1&&p[0][2]?tn(p[0][0],p[0][1]):function(v){return v===a||Xr(v,a,p)}}function $r(a,p){return Ar(a)&&en(p)?tn(rn(a),p):function(v){var S=Vn(v,a);return S===void 0&&S===p?Kn(v,a):Zr(p,S,void 0,o|s)}}function xr(a){return function(p){return Bn(p,a)}}function It(a){if(typeof a=="string")return a;if(on(a))return Zt?Zt.call(a):"";var p=a+"";return p=="0"&&1/a==-c?"-0":p}function lo(a){return lt(a)?a:Wn(a)}function Aa(a,p){return function(v,S){if(v==null)return v;if(!He(v))return a(v,S);for(var D=v.length,O=p?D:-1,Y=Object(v);(p?O--:++O<D)&&S(Y[O],O,Y)!==!1;);return v}}function _a(a){return function(p,v,S){for(var D=-1,O=Object(p),Y=S(p),ue=Y.length;ue--;){var xe=Y[a?ue:++D];if(v(O[xe],xe,O)===!1)break}return p}}function Sr(a,p,v,S,D,O){var Y=D&s,ue=a.length,xe=p.length;if(ue!=xe&&!(Y&&xe>ue))return!1;var Re=O.get(a);if(Re&&O.get(p))return Re==p;var qe=-1,Ze=!0,je=D&o?new ce:void 0;for(O.set(a,p),O.set(p,a);++qe<ue;){var d=a[qe],$=p[qe];if(S)var T=Y?S($,d,qe,p,a,O):S(d,$,qe,a,p,O);if(T!==void 0){if(T)continue;Ze=!1;break}if(je){if(!na(p,function(ee,me){if(!je.has(me)&&(d===ee||v(d,ee,S,D,O)))return je.add(me)})){Ze=!1;break}}else if(!(d===$||v(d,$,S,D,O))){Ze=!1;break}}return O.delete(a),O.delete(p),Ze}function Xt(a,p,v,S,D,O,Y){switch(v){case de:if(a.byteLength!=p.byteLength||a.byteOffset!=p.byteOffset)return!1;a=a.buffer,p=p.buffer;case we:return!(a.byteLength!=p.byteLength||!S(new Xi(a),new Xi(p)));case y:case m:case V:return nn(+a,+p);case b:return a.name==p.name&&a.message==p.message;case pe:case N:return a==p+"";case W:var ue=aa;case te:var xe=O&s;if(ue||(ue=ca),a.size!=p.size&&!xe)return!1;var Re=Y.get(a);if(Re)return Re==p;O|=o,Y.set(a,p);var qe=Sr(ue(a),ue(p),S,D,O,Y);return Y.delete(a),qe;case X:if(wr)return wr.call(a)==wr.call(p)}return!1}function Qr(a,p,v,S,D,O){var Y=D&s,ue=er(a),xe=ue.length,Re=er(p),qe=Re.length;if(xe!=qe&&!Y)return!1;for(var Ze=xe;Ze--;){var je=ue[Ze];if(!(Y?je in p:vt.call(p,je)))return!1}var d=O.get(a);if(d&&O.get(p))return d==p;var $=!0;O.set(a,p),O.set(p,a);for(var T=Y;++Ze<xe;){je=ue[Ze];var ee=a[je],me=p[je];if(S)var fe=Y?S(me,ee,je,p,a,O):S(ee,me,je,a,p,O);if(!(fe===void 0?ee===me||v(ee,me,S,D,O):fe)){$=!1;break}T||(T=je=="constructor")}if($&&!T){var Xe=a.constructor,Bt=p.constructor;Xe!=Bt&&"constructor"in a&&"constructor"in p&&!(typeof Xe=="function"&&Xe instanceof Xe&&typeof Bt=="function"&&Bt instanceof Bt)&&($=!1)}return O.delete(a),O.delete(p),$}function Dt(a,p){var v=a.__data__;return fo(p)?v[typeof p=="string"?"string":"hash"]:v.map}function Nn(a){for(var p=er(a),v=p.length;v--;){var S=p[v],D=a[S];p[v]=[S,D,en(D)]}return p}function Qt(a,p){var v=sa(a,p);return io(v)?v:void 0}var Pt=Jr;(Vr&&Pt(new Vr(new ArrayBuffer(1)))!=de||mr&&Pt(new mr)!=W||Et&&Pt(Et.resolve())!=Z||Kr&&Pt(new Kr)!=te||Rn&&Pt(new Rn)!=ie)&&(Pt=function(a){var p=Jt.call(a),v=p==J?a.constructor:void 0,S=v?mt(v):void 0;if(S)switch(S){case Qi:return de;case ya:return W;case eo:return Z;case va:return te;case to:return ie}return p});function co(a,p,v){p=Ar(p,a)?[p]:lo(p);for(var S,D=-1,Y=p.length;++D<Y;){var O=rn(p[D]);if(!(S=a!=null&&v(a,O)))break;a=a[O]}if(S)return S;var Y=a?a.length:0;return!!Y&&Gn(Y)&&Hn(O,Y)&&(lt(a)||Er(a))}function uo(a){return lt(a)||Er(a)||!!(vr&&a&&a[vr])}function Hn(a,p){return p=p??l,!!p&&(typeof a=="number"||Ye.test(a))&&a>-1&&a%1==0&&a<p}function Ar(a,p){if(lt(a))return!1;var v=typeof a;return v=="number"||v=="symbol"||v=="boolean"||a==null||on(a)?!0:ye.test(a)||!G.test(a)||p!=null&&a in Object(p)}function fo(a){var p=typeof a;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?a!=="__proto__":a===null}function Un(a){return!!Ji&&Ji in a}function Fn(a){var p=a&&a.constructor,v=typeof p=="function"&&p.prototype||qr;return a===v}function en(a){return a===a&&!Rt(a)}function tn(a,p){return function(v){return v==null?!1:v[a]===p&&(p!==void 0||a in Object(v))}}var Wn=_r(function(a){a=an(a);var p=[];return _e.test(a)&&p.push(""),a.replace(Pe,function(v,S,D,O){p.push(D?O.replace(Ke,"$1"):S||v)}),p});function rn(a){if(typeof a=="string"||on(a))return a;var p=a+"";return p=="0"&&1/a==-c?"-0":p}function mt(a){if(a!=null){try{return Zi.call(a)}catch{}try{return a+""}catch{}}return""}function zn(a,p){return ze(qn(a,p),1)}function qn(a,p){var v=lt(a)?ra:xa;return v(a,so(p))}function _r(a,p){if(typeof a!="function"||p&&typeof p!="function")throw new TypeError(n);var v=function(){var S=arguments,D=p?p.apply(this,S):S[0],O=v.cache;if(O.has(D))return O.get(D);var Y=a.apply(this,S);return v.cache=O.set(D,Y),Y};return v.cache=new(_r.Cache||U),v}_r.Cache=U;function nn(a,p){return a===p||a!==a&&p!==p}function Er(a){return ft(a)&&vt.call(a,"callee")&&(!ha.call(a,"callee")||Jt.call(a)==f)}var lt=Array.isArray;function He(a){return a!=null&&Gn(a.length)&&!po(a)}function ft(a){return jt(a)&&He(a)}function po(a){var p=Rt(a)?Jt.call(a):"";return p==A||p==L}function Gn(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=l}function Rt(a){var p=typeof a;return!!a&&(p=="object"||p=="function")}function jt(a){return!!a&&typeof a=="object"}function on(a){return typeof a=="symbol"||jt(a)&&Jt.call(a)==X}var sn=Ki?Yi(Ki):oo;function an(a){return a==null?"":It(a)}function Vn(a,p,v){var S=a==null?void 0:Bn(a,p);return S===void 0?v:S}function Kn(a,p){return a!=null&&co(a,p,$a)}function er(a){return He(a)?Me(a):ao(a)}function Yn(a){return a}function ho(a){return Ar(a)?ia(rn(a)):xr(a)}t.exports=zn}(Ui,Ui.exports);var l1=Ui.exports;const c1=vn(l1);function u1(t,e,r){const n=`filter-${t.key}`.replace("|","-");switch(t.type){case"text":return K`<eox-itemfilter-text
|
|
726
|
+
data-type="filter"
|
|
727
|
+
slot="filter"
|
|
728
|
+
id="${n}"
|
|
729
|
+
.tabIndex=${e}
|
|
730
|
+
.filterObject=${t}
|
|
731
|
+
.unstyled=${r.unstyled}
|
|
732
|
+
@filter=${()=>r.search()}
|
|
733
|
+
></eox-itemfilter-text>`;case"multiselect":case"select":return K`
|
|
734
|
+
<eox-itemfilter-select
|
|
735
|
+
.inlineMode=${r.config.inlineMode||!1}
|
|
736
|
+
data-type="filter"
|
|
737
|
+
id="${n}"
|
|
738
|
+
.tabIndex=${e}
|
|
739
|
+
.filterObject=${t}
|
|
740
|
+
slot="filter"
|
|
741
|
+
.suggestions="${a1(c1(r.items,t.key))}"
|
|
742
|
+
type="${t.type}"
|
|
743
|
+
.unstyled=${r.unstyled}
|
|
744
|
+
@filter=${()=>r.search()}
|
|
745
|
+
></eox-itemfilter-select>
|
|
746
|
+
`;case"range":return K`
|
|
747
|
+
<eox-itemfilter-range
|
|
748
|
+
id="${n}"
|
|
749
|
+
data-type="filter"
|
|
750
|
+
.tabIndex=${e}
|
|
751
|
+
.filterObject=${t}
|
|
752
|
+
slot="filter"
|
|
753
|
+
.unstyled=${r.unstyled}
|
|
754
|
+
@filter=${()=>r.search()}
|
|
755
|
+
></eox-itemfilter-range>
|
|
756
|
+
`;case"spatial":return K`
|
|
757
|
+
<eox-itemfilter-spatial
|
|
758
|
+
id="${n}"
|
|
759
|
+
data-type="filter"
|
|
760
|
+
.tabIndex=${e}
|
|
761
|
+
.filterObject=${t}
|
|
762
|
+
slot="filter"
|
|
763
|
+
@filter=${()=>r.search()}
|
|
764
|
+
></eox-itemfilter-spatial>
|
|
765
|
+
`;default:return K``}}function f1(t,e){return[...t].sort((r,n)=>r[e.titleProperty].localeCompare(n[e.titleProperty]))}function p1(t,e,r){return K`
|
|
766
|
+
${Qe(t.dirty,()=>K`
|
|
767
|
+
<button
|
|
768
|
+
tabindex=${e}
|
|
769
|
+
slot="reset-button"
|
|
770
|
+
class="reset-icon icon"
|
|
771
|
+
@click=${n=>{const i=n.target.parentElement.querySelector("[slot=filter]");i&&typeof i.reset=="function"&&i.reset(),r.search(),r.requestUpdate()}}
|
|
772
|
+
>
|
|
773
|
+
${r.unstyled?"Reset":be}
|
|
774
|
+
</button>
|
|
775
|
+
`)}
|
|
776
|
+
`}function h1(t){t.renderRoot.querySelectorAll("[data-type='filter']").forEach(e=>{typeof e.reset=="function"&&e.reset()}),t.search()}class zf extends Of{constructor(){super();nt(this,zr);nt(this,Ln,[]);nt(this,Wr,[]);nt(this,yt,Bf);this.config=null,this.items=null,this.filters={},this.selectedResult=null,this.search=Ri(this.searchHandler,100,{leading:!0})}static get properties(){return{config:{attribute:!1,type:Object},items:{attribute:!1,type:Object},results:{state:!0,attribute:!1,type:Object},filters:{state:!0,attribute:!1,type:Object},selectedResult:{attribute:!1,type:Object}}}apply(){go(this,Ln,cb(pt(this,yt),pt(this,Wr),this)),this.search()}async searchHandler(){var r;await ub(pt(this,yt),pt(this,Wr),this),this.dispatchEvent(new CustomEvent("filter",{detail:{results:this.results,filters:this.filters},bubbles:!0,composed:!0})),(r=this.config)!=null&&r.inlineMode&&this.renderRoot.querySelector("eox-itemfilter-container").updateInline(),this.requestUpdate()}sortResults(r){return f1(r,pt(this,yt))}resetFilters(){h1(this)}firstUpdated(r){var n;go(this,yt,{...Bf,...this.config}),go(this,Wr,((n=this.items)==null?void 0:n.map((i,o)=>Object.assign({id:`item-${o}`},i)))||[]),this.apply()}updated(r){(r.has("config")||r.has("items"))&&this.firstUpdated()}updateResult(r){this.selectedResult=r.detail,this.dispatchEvent(new CustomEvent("select",{detail:this.selectedResult,bubbles:!0,composed:!0})),this.requestUpdate()}render(){var r,n;return K`
|
|
777
|
+
<style>
|
|
778
|
+
${xp}
|
|
779
|
+
${!this.unstyled&&yn}
|
|
780
|
+
${!this.unstyled&&Sp}
|
|
882
781
|
${this.styleOverride}
|
|
883
782
|
</style>
|
|
884
|
-
<form
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
.unstyled=${this.unstyled}
|
|
783
|
+
<form id="itemfilter" @submit="${i=>i.preventDefault()}">
|
|
784
|
+
${Qe((r=this.config)==null?void 0:r.filterProperties,()=>K`
|
|
785
|
+
<eox-itemfilter-container
|
|
786
|
+
.filters=${this.filters}
|
|
787
|
+
.filterProperties=${this.config.filterProperties}
|
|
788
|
+
.inlineMode=${this.config.inlineMode||!1}
|
|
789
|
+
@reset=${()=>this.resetFilters()}
|
|
892
790
|
@filter=${()=>this.search()}
|
|
893
791
|
>
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
>
|
|
900
|
-
${de(!this.config.inlineMode,()=>U`
|
|
901
|
-
<slot name="filterstitle"
|
|
902
|
-
><h4 style="margin-top: 8px">Filters</h4></slot
|
|
903
|
-
>
|
|
904
|
-
`)}
|
|
905
|
-
<ul id="filters">
|
|
906
|
-
${Gt(Object.values(this.filters),e=>ur`
|
|
907
|
-
<li>
|
|
908
|
-
${e.featured?ur`
|
|
909
|
-
<eox-itemfilter-${Ot(e.type)}
|
|
910
|
-
slot="filter"
|
|
911
|
-
data-type="filter"
|
|
912
|
-
.filterObject=${e}
|
|
913
|
-
.unstyled=${this.unstyled}
|
|
914
|
-
@filter="${()=>this.search()}"
|
|
915
|
-
></eox-itemfilter-${Ot(e.type)}>
|
|
916
|
-
`:ur`
|
|
917
|
-
<eox-itemfilter-expandcontainer
|
|
918
|
-
.filterObject=${e}
|
|
919
|
-
.unstyled=${this.unstyled}
|
|
920
|
-
@details-toggled=${this.toggleAccordion}
|
|
921
|
-
>
|
|
922
|
-
${de(e.dirty,()=>U`
|
|
923
|
-
<button
|
|
924
|
-
slot="reset-button"
|
|
925
|
-
class="reset-icon icon"
|
|
926
|
-
@click=${r=>{r.target.parentElement.querySelector("[slot=filter]").reset(),this.search(),this.requestUpdate()}}
|
|
927
|
-
>
|
|
928
|
-
${this.unstyled?"Reset":se}
|
|
929
|
-
</button>
|
|
930
|
-
`)}
|
|
931
|
-
<eox-itemfilter-${Ot(e.type)}
|
|
932
|
-
slot="filter"
|
|
933
|
-
data-type="filter"
|
|
934
|
-
data-filter="${e.key}"
|
|
935
|
-
.filterObject=${e}
|
|
936
|
-
.unstyled=${this.unstyled}
|
|
937
|
-
@filter="${()=>this.search()}"
|
|
938
|
-
></eox-itemfilter-${Ot(e.type)}>
|
|
939
|
-
</eox-itemfilter-expandcontainer>
|
|
940
|
-
`}
|
|
941
|
-
</li>
|
|
792
|
+
<section slot="section">
|
|
793
|
+
${Qe(!this.config.inlineMode,()=>K`
|
|
794
|
+
<slot name="filterstitle"
|
|
795
|
+
><h6 class="main-heading">Filters</h6></slot
|
|
796
|
+
>
|
|
942
797
|
`)}
|
|
943
|
-
|
|
944
|
-
${
|
|
798
|
+
<ul id="filters">
|
|
799
|
+
${Xn(Object.values(this.filters),(i,o)=>K` <li>
|
|
800
|
+
<eox-itemfilter-expandcontainer
|
|
801
|
+
.filterObject=${i}
|
|
802
|
+
data-details="${i.key}"
|
|
803
|
+
>
|
|
804
|
+
${Se(this,zr,ap).call(this,i,Sf(o,1))}
|
|
805
|
+
${Se(this,zr,sp).call(this,i,Sf(o,2))}
|
|
806
|
+
</eox-itemfilter-expandcontainer>
|
|
807
|
+
</li>`)}
|
|
808
|
+
</ul>
|
|
809
|
+
${Qe(!this.config.inlineMode&&pt(this,yt).filterProperties&&!this.config.inlineMode&&pt(this,yt).filterProperties&&zs(this.filters),()=>K`
|
|
945
810
|
<button
|
|
946
811
|
id="filter-reset"
|
|
947
812
|
class="outline small icon-text reset-icon"
|
|
@@ -951,59 +816,18 @@ eox-itemfilter-expandcontainer button.reset-icon:before {
|
|
|
951
816
|
Reset all
|
|
952
817
|
</a>
|
|
953
818
|
`)}
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
`:se}
|
|
967
|
-
<ul id="results" part="results">
|
|
968
|
-
${this._config.aggregateResults?Gt(this._resultAggregation.filter(e=>this.aggregateResults(this.results,e).length),e=>U` ${de(this.aggregateResults(this.results,e).length===1&&this.config.autoSpreadSingle,()=>U` <div style="margin-left: -8px">
|
|
969
|
-
${this.createItemList(e)}
|
|
970
|
-
</div>`,()=>U`
|
|
971
|
-
<details
|
|
972
|
-
class="details-results"
|
|
973
|
-
@toggle=${this.toggleAccordion}
|
|
974
|
-
?open=${this._config.expandResults||se}
|
|
975
|
-
>
|
|
976
|
-
<summary>
|
|
977
|
-
<span class="title">
|
|
978
|
-
${e}
|
|
979
|
-
<span class="count"
|
|
980
|
-
>${this.aggregateResults(this.results,e).length}</span
|
|
981
|
-
>
|
|
982
|
-
</span>
|
|
983
|
-
</summary>
|
|
984
|
-
<div>
|
|
985
|
-
${this.createItemList(e)}
|
|
986
|
-
</div>
|
|
987
|
-
</details>
|
|
988
|
-
`)}`):Gt(this.results,e=>U`<li part="result">
|
|
989
|
-
<label>
|
|
990
|
-
<input
|
|
991
|
-
type="radio"
|
|
992
|
-
name="result"
|
|
993
|
-
id="${e.id}"
|
|
994
|
-
@click=${()=>{this.selectedResult=e,this._config.onSelect(e)}}
|
|
995
|
-
/>
|
|
996
|
-
${de(this.hasTemplate("result"),()=>this.renderTemplate("result",e,`result-${e.id}`),()=>U`
|
|
997
|
-
<span class="title"
|
|
998
|
-
>${Mn(e[this._config.titleProperty])}</span
|
|
999
|
-
>
|
|
1000
|
-
`)}
|
|
1001
|
-
</label>
|
|
1002
|
-
</li>`)}
|
|
1003
|
-
</ul>
|
|
1004
|
-
</div>
|
|
1005
|
-
</section>
|
|
1006
|
-
`)}
|
|
819
|
+
</section>
|
|
820
|
+
</eox-itemfilter-container>
|
|
821
|
+
`)}
|
|
822
|
+
${Qe(((n=pt(this,yt))==null?void 0:n.showResults)&&this.results,()=>K`
|
|
823
|
+
<eox-itemfilter-results
|
|
824
|
+
.config=${pt(this,yt)}
|
|
825
|
+
.results=${this.results}
|
|
826
|
+
.filters=${this.filters}
|
|
827
|
+
.resultAggregation=${pt(this,Ln)}
|
|
828
|
+
.selectedResult=${this.selectedResult}
|
|
829
|
+
@result=${this.updateResult}
|
|
830
|
+
></eox-itemfilter-results>
|
|
1007
831
|
`)}
|
|
1008
832
|
</form>
|
|
1009
|
-
`}},
|
|
833
|
+
`}}Ln=new WeakMap,Wr=new WeakMap,yt=new WeakMap,zr=new WeakSet,sp=function(r,n){return u1(r,n,this)},ap=function(r,n){return p1(r,n,this)},customElements.define("eox-itemfilter",zf),ge.EOxItemFilter=zf,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})});
|