diff --git a/assets/index-K7t8WV49.js b/assets/index-LHZYhEdk.js similarity index 94% rename from assets/index-K7t8WV49.js rename to assets/index-LHZYhEdk.js index adfb10d..e31da59 100644 --- a/assets/index-K7t8WV49.js +++ b/assets/index-LHZYhEdk.js @@ -36,7 +36,7 @@ var ue=(n,e,t)=>{if(!e.has(n))throw TypeError("Cannot "+t)};var te=(n,e,t)=>(ue( * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const we=nt(class extends st{constructor(n){var e;if(super(n),n.type!==rt.ATTRIBUTE||n.name!=="class"||((e=n.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(e=>n[e]).join(" ")+" "}update(n,[e]){var i,r;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.st=new Set(n.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!((i=this.st)!=null&&i.has(s))&&this.it.add(s);return this.render(e)}const t=n.element.classList;for(const s of this.it)s in e||(t.remove(s),this.it.delete(s));for(const s in e){const o=!!e[s];o===this.it.has(s)||(r=this.st)!=null&&r.has(s)||(o?(t.add(s),this.it.add(s)):(t.remove(s),this.it.delete(s)))}return P}});function ot(n){for(var e=[],t=0;t=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){r+=n[s++];continue}break}if(!r)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:r}),t=s;continue}if(i==="("){var l=1,a="",s=t+1;if(n[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s)?(?!\?)/g,i=0,r=t.exec(n.source);r;)e.push({name:r[1]||i++,prefix:"",suffix:"",modifier:"",pattern:""}),r=t.exec(n.source);return n}function dt(n,e,t){var i=n.map(function(r){return Oe(r,e,t).source});return new RegExp("(?:".concat(i.join("|"),")"),Me(t))}function ut(n,e,t){return pt(at(n,t),e,t)}function pt(n,e,t){t===void 0&&(t={});for(var i=t.strict,r=i===void 0?!1:i,s=t.start,o=s===void 0?!0:s,l=t.end,a=l===void 0?!0:l,h=t.encode,c=h===void 0?function(ee){return ee}:h,d=t.delimiter,f=d===void 0?"/#?":d,p=t.endsWith,$=p===void 0?"":p,T="[".concat(M($),"]|$"),b="[".concat(M(f),"]"),m=o?"^":"",L=0,z=n;L-1:E===void 0;r||(m+="(?:".concat(b,"(?=").concat(T,"))?")),X||(m+="(?=".concat(b,"|").concat(T,")"))}return new RegExp(m,Me(t))}function Oe(n,e,t){return n instanceof RegExp?ht(n,e):Array.isArray(n)?dt(n,e,t):ut(n,e,t)}var ft=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,Z=(n,e,t,i)=>{for(var r=i>1?void 0:i?gt(e,t):e,s=n.length-1,o;s>=0;s--)(o=n[s])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&ft(e,t,r),r};async function mt(n){return fetch(n).then(e=>e.json())}var O,U,Ee;let H=(Ee=class extends j{constructor(){super(...arguments);ie(this,O,void 0);ie(this,U,void 0);I(this,O,"https://konturio.github.io/qgis-uni-navigation/nav-config.json"),I(this,U,1024),this.config=null,this.logo=null}get src(){return te(this,O)}set src(e){I(this,O,e)}get breakpoint(){return te(this,U)}set breakpoint(e){I(this,U,e)}async connectedCallback(){super.connectedCallback();const e=await mt(this.src);this.config=e,this.getAttribute("data-screen")!=="mobile"&&(this.handleWindowResize(),window.addEventListener("resize",this.handleWindowResize.bind(this)))}disconnectedCallback(){window.removeEventListener("resize",this.handleWindowResize.bind(this)),super.disconnectedCallback()}handleWindowResize(){if(!this.breakpoint)return;window.innerWidth