From 4b726d4d47f8f1fbbea8bacfa98d3a1c3cb0b3ad Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 29 Jun 2026 17:48:43 +0200 Subject: [PATCH] Restore previous assets This reverts commit 6618b8dc248b0903bb834504ae2ab39d807967c4. --- dist/assets/search-Cs0oVPut.js | 31 ++++++++++++++++++++++++++++++ dist/assets/search-Cs0oVPut.js.map | 1 + 2 files changed, 32 insertions(+) create mode 100644 dist/assets/search-Cs0oVPut.js create mode 100644 dist/assets/search-Cs0oVPut.js.map diff --git a/dist/assets/search-Cs0oVPut.js b/dist/assets/search-Cs0oVPut.js new file mode 100644 index 0000000..e17837e --- /dev/null +++ b/dist/assets/search-Cs0oVPut.js @@ -0,0 +1,31 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=Array.isArray,u=Array.prototype.indexOf,d=Array.prototype.includes,f=Array.from,p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,g=Object.prototype,_=Array.prototype,v=Object.getPrototypeOf,y=Object.isExtensible,b=()=>{};function x(e){return e()}function S(e){for(var t=0;t{e=n,t=r}),resolve:e,reject:t}}var C=1024,w=2048,T=4096,te=8192,ne=16384,re=32768,ie=1<<25,ae=65536,E=1<<19,oe=1<<20,D=1<<25,se=65536,ce=1<<21,le=1<<22,ue=1<<23,O=Symbol(`$state`),k=Symbol(`legacy props`),de=Symbol(``),fe=Symbol(`attributes`),pe=Symbol(`class`),me=Symbol(`style`),he=Symbol(`text`),ge=Symbol(`form reset`),_e=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},A=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ve(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function ye(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function be(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function xe(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Se(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ce(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function we(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Te(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ee(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function De(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Oe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function ke(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ae={},je=Symbol(),Me=`http://www.w3.org/1999/xhtml`,Ne=`http://www.w3.org/2000/svg`,Pe=`http://www.w3.org/1998/Math/MathML`;function Fe(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ie(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Le(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Re(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var j=!1;function ze(e){j=e}var Be;function Ve(e){if(e===null)throw Ie(),Ae;return Be=e}function He(){return Ve(gn(Be))}function M(e){if(j){if(gn(Be)!==null)throw Ie(),Ae;Be=e}}function Ue(e=1){if(j){for(var t=e,n=Be;t--;)n=gn(n);Be=n}}function We(e=!0){for(var t=0,n=Be;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=gn(n);e&&n.remove(),n=i}}function Ge(e){if(!e||e.nodeType!==8)throw Ie(),Ae;return e.data}function Ke(e){return e===this.v}function qe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Je(e){return!qe(e,this.v)}var Ye=!1,Xe=!1;function Ze(){Xe=!0}var Qe=null;function $e(e){Qe=e}function et(e,t=!1,n){Qe={p:Qe,i:!1,c:null,e:null,s:e,x:null,r:J,l:Xe&&!t?{s:null,u:null,$:[]}:null}}function N(e){var t=Qe,n=t.e;if(n!==null){t.e=null;for(var r of n)jn(r)}return e!==void 0&&(t.x=e),t.i=!0,Qe=t.p,e??{}}function P(){return!Xe||Qe!==null&&Qe.l===null}var tt=[];function nt(){var e=tt;tt=[],S(e)}function rt(e){if(tt.length===0&&!bt){var t=tt;queueMicrotask(()=>{t===tt&&nt()})}tt.push(e)}function it(){for(;tt.length>0;)nt()}function at(e){var t=J;if(t===null)return q.f|=ue,e;if(!(t.f&32768)&&!(t.f&4))throw e;ot(e,t)}function ot(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var st=~(w|T|C);function ct(e,t){e.f=e.f&st|t}function lt(e){e.f&512||e.deps===null?ct(e,C):ct(e,T)}function ut(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=se,ut(t.deps))}function dt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),ut(e.deps),ct(e,C)}var ft=!1,pt=!1;function mt(e){var t=pt;try{return pt=!1,[e(),pt]}finally{pt=t}}var ht=null,gt=null,F=null,_t=null,vt=null,yt=null,bt=!1,xt=!1,St=null,Ct=null,wt=0,Tt=1,Et=class e{id=Tt++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#a=new Set;#o=0;#s=new Map;#c=null;#l=[];#u=[];#d=new Set;#f=new Set;#p=new Map;#m=new Set;is_fork=!1;#h=!1;#g(){if(this.is_fork)return!0;for(let n of this.#s.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#m.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){this.#p.delete(e);for(var r of n.d)ct(r,w),t(r);for(r of n.m)ct(r,T),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,wt++>1e3&&(this.#w(),Ot()),!this.#g()){for(let e of this.#d)this.#f.delete(e),ct(e,w),this.schedule(e);for(let e of this.#f)ct(e,T),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=St=[],r=[],i=Ct=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw Pt(e),t}if(F=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(St=null,Ct=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)Nt(e,t);i.length>0&&F.#_();return}let o=this.#y();if(o){o.#b(this);return}this.#d.clear(),this.#f.clear();for(let e of this.#r)e(this);this.#r.clear(),_t=this,At(r),At(n),_t=null,this.#c?.resolve();var s=F;if(this.linked&&this.#o===0&&this.#w(),Ye&&!this.linked&&(this.#S(),F=s),this.#l.length>0){s===null&&(s=this,this.#C());let e=s;e.#l.push(...this.#l.filter(t=>!e.#l.includes(t)))}s!==null&&s.#_()}#v(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):Ye&&i&16777224?n.push(r):mr(r)&&(i&16&&this.#f.add(r),yr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#f.delete(i),ct(i,w),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#w(),F=this,this.#_()}#x(e){for(var t=0;t!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#m)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#x([e])});l.activate();var i=new Set,a=new Map;for(var o of t)I(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e.v:!0);if(s.length>0)for(let e of this.#u)!(e.f&155648)&&jt(e,s,a)&&(e.f&4194320?(ct(e,w),l.schedule(e)):l.#d.add(e));if(l.#l.length>0){l.apply();for(var c of l.#l)l.#v(c,[],[]);l.#l=[]}l.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#s.get(t)??0;this.#s.set(t,e+1)}}decrement(e,t){if(--this.#o,e){let e=this.#s.get(t)??0;e===1?this.#s.delete(t):this.#s.set(t,e-1)}this.#h||(this.#h=!0,rt(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(let e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=ee()).promise}static ensure(){if(F===null){let t=F=new e;t.#C(),!xt&&!bt&&rt(()=>{t.#e||t.flush()})}return F}apply(){if(!Ye||!this.is_fork&&this.#t===null&&this.#n===null){vt=null;return}vt=new Map;for(let[e,[t]]of this.current)vt.set(e,t);for(let t=ht;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id0)){Qt.clear();for(let e of kt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)kt.has(n)&&(kt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||yr(n)}}kt.clear()}}kt=null}}function I(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?I(i,t,n,r):e&4194320&&!(e&2048)&&jt(i,t,r)&&(ct(i,w),Mt(i))}}function jt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(d.call(t,r))return!0;if(r.f&2&&jt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Mt(e){F.schedule(e)}function Nt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),ct(e,C);for(var n=e.first;n!==null;)Nt(n,t),n=n.next}}function Pt(e){ct(e,C);for(var t=e.first;t!==null;)Pt(t),t=t.next}function Ft(e){let t=0,n=en(0),r;return()=>{On()&&(Y(n),In(()=>(t===0&&(r=Cr(()=>e(()=>an(n)))),t+=1,()=>{rt(()=>{--t,t===0&&(r?.(),r=void 0,an(n))})})))}}var It=ae|E;function Lt(e,t,n,r){new Rt(e,t,n,r)}var Rt=class{parent;is_pending=!1;transform_error;#e;#t=j?Be:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Ft(()=>(this.#m=en(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=J;t.b=this,t.f|=128,n(e)},this.parent=J.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Ln(()=>{if(j){let e=this.#t;He();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},It),j&&(this.#e=Be)}#g(){try{this.#a=Rn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=Rn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Rn(()=>e(this.#e)),rt(()=>{var e=this.#c=document.createDocumentFragment(),t=H();e.append(t),this.#a=this.#x(()=>Rn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Gn(this.#o,()=>{this.#o=null}),this.#b(F))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Rn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Yn(this.#a,e);let t=this.#n.pending;this.#o=Rn(()=>t(this.#e))}else this.#b(F)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){dt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=J,n=q,r=Qe;nr(this.#i),tr(this.#i),$e(this.#i.ctx);try{return Et.ensure(),e()}catch(e){return at(e),null}finally{nr(t),tr(n),$e(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Gn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,rt(()=>{this.#d=!1,this.#m&&nn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Y(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;F?.is_fork?(this.#a&&F.skip_effect(this.#a),this.#o&&F.skip_effect(this.#o),this.#s&&F.skip_effect(this.#s),F.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(Hn(this.#a),null),this.#o&&=(Hn(this.#o),null),this.#s&&=(Hn(this.#s),null),j&&(Ve(this.#t),Ue(),Ve(We()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){Re();return}r=!0,i&&ke(),this.#s!==null&&Gn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){ot(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return Rn(()=>{var t=J;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return ot(e,this.#i.parent),null}}))};rt(()=>{var t;try{t=this.transform_error(e)}catch(e){ot(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>ot(e,this.#i&&this.#i.parent)):o(t)})}};function zt(e,t,n,r){let i=P()?Ut:Kt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=J,s=Bt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){if(!(o.f&16384)){s();try{r(e)}catch(e){ot(e,o)}Vt()}}var u=Ht();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>Gt(e))).then(e=>l([...t.map(i),...e])).catch(e=>ot(e,o)).finally(u)}c?c.then(()=>{s(),d(),Vt()}):d()}function Bt(){var e=J,t=q,n=Qe,r=F;return function(i=!0){nr(e),tr(t),$e(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Vt(e=!0){nr(null),tr(null),$e(null),e&&F?.deactivate()}function Ht(){var e=J,t=e.b,n=F,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}function Ut(e){var t=2|w;return J!==null&&(J.f|=E),{ctx:Qe,deps:null,effects:null,equals:Ke,f:t,fn:e,reactions:null,rv:0,v:je,wv:0,parent:J,ac:null}}var Wt=Symbol(`obsolete`);function Gt(e,t,n){let r=J;r===null&&ye();var i=void 0,a=en(je),o=!q,s=new Set;return Fn(()=>{var t=J,n=ee();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==_e&&n.reject(e)}).finally(Vt)}catch(e){n.reject(e),Vt()}var c=F;if(o){if(t.f&32768)var l=Ht();if(r.b.is_rendered())c.async_deriveds.get(t)?.reject(Wt);else for(let e of s.values())e.reject(Wt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Wt&&(c.activate(),t?(a.f|=ue,nn(a,t)):(a.f&8388608&&(a.f^=ue),nn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),kn(()=>{for(let e of s)e.reject(Wt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function R(e){let t=Ut(e);return Ye||ir(t),t}function Kt(e){let t=Ut(e);return t.equals=Je,t}function qt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n0&&!$t&&rn()}return t}function rn(){$t=!1;for(let e of z){e.f&1024&&ct(e,T);let t;try{t=mr(e)}catch{t=!0}t&&yr(e)}z.clear()}function an(e){V(e,e.v+1)}function on(e,t,n){var r=e.reactions;if(r!==null)for(var i=P(),a=r.length,o=0;o{if(dr===o)return e();var t=q,n=dr;tr(null),fr(o);var r=e();return tr(t),fr(n),r};return r&&n.set(`length`,B(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ee();var i=n.get(t);return i===void 0?s(()=>{var e=B(r.value,a);return n.set(t,e),e}):V(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>B(je,a));n.set(t,e),an(i)}}else V(r,je),an(i);return!0},get(t,r,i){if(r===O)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||m(t,r)?.writable)&&(o=s(()=>B(sn(c?t[r]:je),a)),n.set(r,o)),o!==void 0){var l=Y(o);return l===je?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Y(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==je)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===O)return!0;var r=n.get(t),i=r!==void 0&&r.v!==je||Reflect.has(e,t);return(r!==void 0||J!==null&&(!i||m(e,t)?.writable))&&(r===void 0&&(r=s(()=>B(i?sn(e[t]):je,a)),n.set(t,r)),Y(r)===je)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;dB(je,a)),n.set(d+``,f)):V(f,je)}if(l===void 0)(!u||m(e,t)?.writable)&&(l=s(()=>B(void 0,a)),V(l,sn(o)),n.set(t,l));else{u=l.v!==je;var p=s(()=>sn(o));V(l,p)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&V(g,_+1)}an(i)}return!0},ownKeys(e){Y(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==je});for(var[r,a]of n)a.v!==je&&!(r in e)&&t.push(r);return t},setPrototypeOf(){De()}})}function cn(e){try{if(typeof e==`object`&&e&&O in e)return e[O]}catch{}return e}function ln(e,t){return Object.is(cn(e),cn(t))}new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);var un,dn,fn,pn;function mn(){if(un===void 0){un=window,dn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;fn=m(t,`firstChild`).get,pn=m(t,`nextSibling`).get,y(e)&&(e[pe]=void 0,e[fe]=null,e[me]=void 0,e.__e=void 0),y(n)&&(n[he]=void 0)}}function H(e=``){return document.createTextNode(e)}function hn(e){return fn.call(e)}function gn(e){return pn.call(e)}function U(e,t){if(!j)return hn(e);var n=hn(Be);if(n===null)n=Be.appendChild(H());else if(t&&n.nodeType!==3){var r=H();return n?.before(r),Ve(r),r}return t&&bn(n),Ve(n),n}function W(e,t=!1){if(!j){var n=hn(e);return n instanceof Comment&&n.data===``?gn(n):n}if(t){if(Be?.nodeType!==3){var r=H();return Be?.before(r),Ve(r),r}bn(Be)}return Be}function G(e,t=1,n=!1){let r=j?Be:e;for(var i;t--;)i=r,r=gn(r);if(!j)return r;if(n){if(r?.nodeType!==3){var a=H();return r===null?i?.after(a):r.before(a),Ve(a),a}bn(r)}return Ve(r),r}function _n(e){e.textContent=``}function vn(){return!Ye||kt!==null?!1:(J.f&re)!==0}function yn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function bn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var xn=!1;function Sn(){xn||(xn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[ge]?.()})},{capture:!0}))}function Cn(e){var t=q,n=J;tr(null),nr(null);try{return e()}finally{tr(t),nr(n)}}function wn(e,t,n,r=n){e.addEventListener(t,()=>Cn(n));let i=e[ge];i?e[ge]=()=>{i(),r(!0)}:e[ge]=()=>r(!0),Sn()}function Tn(e){J===null&&(q===null&&Ce(e),Se()),Qn&&xe(e)}function En(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Dn(e,t){var n=J;n!==null&&n.f&8192&&(e|=te);var r={ctx:Qe,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};F?.register_created_effect(r);var i=r;if(e&4)St===null?Et.ensure().schedule(r):St.push(r);else if(t!==null){try{yr(r)}catch(e){throw Hn(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ae))}if(i!==null&&(i.parent=n,n!==null&&En(i,n),q!==null&&q.f&2&&!(e&64))){var a=q;(a.effects??=[]).push(i)}return r}function On(){return q!==null&&!er}function kn(e){let t=Dn(8,null);return ct(t,C),t.teardown=e,t}function An(e){Tn(`$effect`);var t=J.f;if(!q&&t&32&&!(t&32768)){var n=Qe;(n.e??=[]).push(e)}else return jn(e)}function jn(e){return Dn(4|oe,e)}function Mn(e){return Tn(`$effect.pre`),Dn(8|oe,e)}function Nn(e){Et.ensure();let t=Dn(64|E,e);return(e={})=>new Promise(n=>{e.outro?Gn(t,()=>{Hn(t),n(void 0)}):(Hn(t),n(void 0))})}function Pn(e){return Dn(4,e)}function Fn(e){return Dn(le|E,e)}function In(e,t=0){return Dn(8|t,e)}function K(e,t=[],n=[],r=[]){zt(r,t,n,t=>{Dn(8,()=>e(...t.map(Y)))})}function Ln(e,t=0){return Dn(16|t,e)}function Rn(e){return Dn(32|E,e)}function zn(e){var t=e.teardown;if(t!==null){let e=Qn,n=q;$n(!0),tr(null);try{t.call(null)}finally{$n(e),tr(n)}}}function Bn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Cn(()=>{e.abort(_e)});var r=n.next;n.f&64?n.parent=null:Hn(n,t),n=r}}function Vn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Hn(t),t=n}}function Hn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Un(e.nodes.start,e.nodes.end),n=!0),ct(e,ie),Bn(e,t&&!n),vr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();zn(e),e.f^=ie,e.f|=ne;var i=e.parent;i!==null&&i.first!==null&&Wn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Un(e,t){for(;e!==null;){var n=e===t?null:gn(e);e.remove(),e=n}}function Wn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Gn(e,t,n=!0){var r=[];Kn(e,r,!0);var i=()=>{n&&Hn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Kn(e,t,n){if(!(e.f&8192)){e.f^=te;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Kn(i,t,o?n:!1)}i=a}}}function qn(e){Jn(e,!0)}function Jn(e,t){if(e.f&8192){e.f^=te,e.f&1024||(ct(e,w),Et.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Jn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Yn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:gn(n);t.append(n),n=i}}var Xn=null,Zn=!1,Qn=!1;function $n(e){Qn=e}var q=null,er=!1;function tr(e){q=e}var J=null;function nr(e){J=e}var rr=null;function ir(e){q!==null&&(!Ye||q.f&2)&&(rr===null?rr=[e]:rr.push(e))}var ar=null,or=0,sr=null;function cr(e){sr=e}var lr=1,ur=0,dr=ur;function fr(e){dr=e}function pr(){return++lr}function mr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~se),t&4096){for(var n=e.deps,r=n.length,i=0;ie.wv)return!0}t&512&&vt===null&&ct(e,C)}return!1}function hr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ye&&rr!==null&&d.call(rr,e)))for(var i=0;i{e.ac.abort(_e)}),e.ac=null);try{e.f|=ce;var u=e.fn,d=u();e.f|=re;var f=e.deps,p=F?.is_fork;if(ar!==null){var m;if(p||vr(e,or),f!==null&&or>0)for(f.length=or+ar.length,m=0;m{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Dt()}function Y(e){var t=(e.f&2)!=0;if(Xn?.add(e),q!==null&&!er&&!(J!==null&&J.f&16384)&&(rr===null||!d.call(rr,e))){var n=q.deps;if(q.f&2097152)e.rvn?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?rt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Mr(e,t,n,r,i){var a={capture:r,passive:i},o=jr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&kn(()=>{t.removeEventListener(e,o,a)})}function Nr(e,t,n){(t[Or]??={})[e]=n}function Pr(e){for(var t=0;t{throw e});throw f}}finally{e[Or]=t,delete e.currentTarget,tr(u),nr(d)}}}var Lr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Rr(e){return Lr?.createHTML(e)??e}function zr(e){var t=yn(`template`);return t.innerHTML=Rr(e.replaceAll(``,``)),t.content}function Br(e,t){var n=J;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function X(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(``);return()=>{if(j)return Br(Be,null),Be;i===void 0&&(i=zr(a?e:``+e),n||(i=hn(i)));var t=r||dn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=hn(t),s=t.lastChild;Br(o,s)}else Br(t,t);return t}}function Vr(e=``){if(!j){var t=H(e+``);return Br(t,t),t}var n=Be;return n.nodeType===3?bn(n):(n.before(n=H()),Ve(n)),Br(n,n),n}function Hr(){if(j)return Br(Be,null),Be;var e=document.createDocumentFragment(),t=document.createComment(``),n=H();return e.append(t,n),Br(t,n),e}function Z(e,t){if(j){var n=J;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=Be),He();return}e!==null&&e.before(t)}function Q(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[he]??=e.nodeValue)&&(e[he]=n,e.nodeValue=`${n}`)}function Ur(e,t){return Gr(e,t)}var Wr=new Map;function Gr(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){mn();var c=void 0,l=Nn(()=>{var o=n??t.appendChild(H());Lt(o,{pending:()=>{}},t=>{et({});var n=Qe;if(a&&(n.c=a),i&&(r.$$events=i),j&&Br(t,null),c=e(t,r)||{},j&&(J.nodes.end=Be,Be===null||Be.nodeType!==8||Be.data!==`]`))throw Ie(),Ae;N()},s);var l=new Set,u=e=>{for(var n=0;n{for(var e of l)for(let n of[t,document]){var r=Wr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Ir),r.delete(e),r.size===0&&Wr.delete(n)):r.set(e,i)}Ar.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return Kr.set(c,l),c}var Kr=new WeakMap,qr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)qn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Hn(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Yn(r,t),t.append(H()),this.#n.set(e,{effect:r,fragment:t})}else Hn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Gn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Hn(n.effect),this.#n.delete(e))};ensure(e,t){var n=F,r=vn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=H();i.append(a),this.#n.set(e,{effect:Rn(()=>t(a)),fragment:i})}else this.#t.set(e,Rn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else j&&(this.anchor=Be),this.#a(n)}};function $(e,t,n=!1){var r;j&&(r=Be,He());var i=new qr(e),a=n?ae:0;function o(e,t){if(j){var n=Ge(r);if(e!==parseInt(n.substring(1))){var a=We();Ve(a),i.anchor=a,ze(!1),i.ensure(e,t),ze(!0);return}}i.ensure(e,t)}Ln(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Jr(e,t){return t}function Yr(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Xr(e,f(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;_n(u),u.append(l),e.items.clear()}Xr(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Xr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i{var e=n();return l(e)?e:e==null?[]:f(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=u,ei(v,p,o,t,r),u!==null&&(p.length===0?u.f&33554432?(u.f^=D,ni(u,null,o)):qn(u):Gn(u,()=>{u=null})))}function _(e){v.pending.delete(e)}var v={effect:Ln(()=>{p=Y(d);var e=p.length;let c=!1;j&&Ge(o)===`[!`!=(e===0)&&(o=We(),Ve(o),ze(!1),c=!0);for(var l=new Set,f=F,v=vn(),y=0;ya(o)):(u=Rn(()=>a(Zr??=H())),u.f|=D)),e>l.size&&be(``,``,``),j&&e>0&&Ve(We()),!h)if(m.set(f,l),v){for(let[e,t]of s)l.has(e)||f.skip_effect(t.e);f.oncommit(g),f.ondiscard(_)}else g(f);c&&ze(!0),Y(d)}),flags:t,items:s,pending:m,outrogroups:null,fallback:u};h=!1,j&&(o=Be)}function $r(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function ei(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=$r(e.effect.first),l,u=null,d,p=[],m=[],h,g,_,v;if(a)for(v=0;v0){var T=r&4&&o===0?n:null;if(a){for(v=0;v{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function ti(e,t,n,r,i,a,o,s){var c=o&1?o&16?en(n):tn(n,!1,!1):null,l=o&2?en(i):null;return{v:c,i:l,e:Rn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ni(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=gn(r);if(a.before(r),r===i)return;r=o}}function ri(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ii(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;j&&(o=Ve(hn(c)))}K(()=>{var e=J;if(s===(s=t()??``)){j&&He();return}if(n&&!j){e.nodes=null,c.innerHTML=s,s!==``&&Br(hn(c),c.lastChild);return}if(e.nodes!==null&&(Un(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(j){for(var a=Be.data,l=He(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=gn(l);if(l===null)throw Ie(),Ae;Br(Be,u),o=Ve(l);return}var d=yn(r?`svg`:i?`math`:`template`,r?Ne:i?Pe:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Br(hn(f),f.lastChild),r||i)for(;hn(f);)o.before(hn(f));else o.before(f)}})}function ai(e,t,...n){var r=new qr(e);Ln(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ae)}function oi(e,t,n){Pn(()=>{var r=Cr(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};In(()=>{var e=n();wr(e),i&&qe(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function si(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t=0;){var s=o+a;(o===0||ui.includes(r[o-1]))&&(s===r.length||ui.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function fi(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function pi(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function mi(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(pi)),i&&c.push(...Object.keys(i).map(pi));var l=0,u=-1;let t=e.length;for(var d=0;d{vi(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),kn(()=>{t.disconnect()})}function bi(e,t,n=t){var r=new WeakSet,i=!0;wn(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),xi);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&xi(o)}n(a),e.__value=a,F!==null&&r.add(F)}),Pn(()=>{var a=t();if(e===document.activeElement){var o=Ye?_t:F;if(r.has(o))return}if(vi(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=xi(s),n(a))}e.__value=a,i=!1}),yi(e)}function xi(e){return`__value`in e?e.__value:e.value}var Si=Symbol(`is custom element`),Ci=Symbol(`is html`),wi=A?`link`:`LINK`,Ti=A?`progress`:`PROGRESS`;function Ei(e){if(j){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;ki(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;ki(e,`checked`,null),e.checked=r}}};e[ge]=n,rt(n),Sn()}}function Di(e,t){var n=Ai(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Ti)||(e.value=t??``)}function Oi(e,t){var n=Ai(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function ki(e,t,n,r){var i=Ai(e);j&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===wi)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Mi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ai(e){return e[fe]??={[Si]:e.nodeName.includes(`-`),[Ci]:e.namespaceURI===Me}}var ji=new Map;function Mi(e){var t=e.getAttribute(`is`)||e.nodeName,n=ji.get(t);if(n)return n;ji.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=h(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=v(i)}return n}function Ni(e,t,n=t){var r=new WeakSet;wn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Pi(e)?Fi(a):a,n(a),F!==null&&r.add(F),await br(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(j&&e.defaultValue!==e.value||Cr(t)==null&&e.value)&&(n(Pi(e)?Fi(e.value):e.value),F!==null&&r.add(F)),In(()=>{var n=t();if(e===document.activeElement){var i=Ye?_t:F;if(r.has(i))return}Pi(e)&&n===Fi(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Pi(e){var t=e.type;return t===`number`||t===`range`}function Fi(e){return e===``?null:+e}function Ii(e=!1){let t=Qe,n=t.l.u;if(!n)return;let r=()=>wr(t.s);if(e){let e=0,n={},i=Ut(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>Y(i)}n.b.length&&Mn(()=>{Li(t,r),S(n.b)}),An(()=>{let e=Cr(()=>n.m.map(x));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&An(()=>{Li(t,r),S(n.a)})}function Li(e,t){if(e.l.s)for(let t of e.l.s)Y(t);t()}function Ri(e){var t=en(0);return function(){return arguments.length===1?(V(t,Y(t)+1),arguments[0]):(Y(t),e())}}function zi(e,t,n,r){var i=!Xe||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=void 0,u=()=>o&&i?(l??=Ut(r),Y(l)):(c&&(c=!1,s=o?Cr(r):r),s);let d;if(a){var f=O in e||k in e;d=m(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,h=!1;a?[p,h]=mt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Te(t),d(p)));var g=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(d){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&d(t?g():e),e):g()})}var v=!1,y=(n&1?Ut:Kt)(()=>(v=!1,g()));a&&Y(y);var b=J;return(function(e,t){if(arguments.length>0){let n=t?Y(y):i&&a?sn(e):e;return V(y,n),v=!0,s!==void 0&&(s=n),e}return Qn&&v||b.f&16384?y.v:Y(y)})}function Bi(e){Qe===null&&ve(`onMount`),Xe&&Qe.l!==null?Vi(Qe).m.push(e):An(()=>{let t=Cr(e);if(typeof t==`function`)return t})}function Vi(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`),Ze();var Hi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.bootstrap=r())})(e,(function(){let e=new Map,t={set(t,n,r){e.has(t)||e.set(t,new Map);let i=e.get(t);if(!i.has(n)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(n,r)},get(t,n){return e.has(t)&&e.get(t).get(n)||null},remove(t,n){if(!e.has(t))return;let r=e.get(t);r.delete(n),r.size===0&&e.delete(t)}},n=`transitionend`,r=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),i=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),a=e=>{do e+=Math.floor(Math.random()*1e6);while(document.getElementById(e));return e},o=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*1e3)},s=e=>{e.dispatchEvent(new Event(n))},c=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),l=e=>c(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(r(e)):null,u=e=>{if(!c(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},d=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,f=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?f(e.parentNode):null},p=()=>{},m=e=>{e.offsetHeight},h=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,g=[],_=e=>{document.readyState===`loading`?(g.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of g)e()}),g.push(e)):e()},v=()=>document.documentElement.dir===`rtl`,y=e=>{_(()=>{let t=h();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},b=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,x=(e,t,r=!0)=>{if(!r){b(e);return}let i=o(t)+5,a=!1,c=({target:r})=>{r===t&&(a=!0,t.removeEventListener(n,c),b(e))};t.addEventListener(n,c),setTimeout(()=>{a||s(t)},i)},S=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},ee=/[^.]*(?=\..*)\.|.*/,C=/\..*/,w=/::\d+$/,T={},te=1,ne={mouseenter:`mouseover`,mouseleave:`mouseout`},re=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function ie(e,t){return t&&`${t}::${te++}`||e.uidEvent||te++}function ae(e){let t=ie(e);return e.uidEvent=t,T[t]=T[t]||{},T[t]}function E(e,t){return function n(r){return de(r,{delegateTarget:e}),n.oneOff&&k.off(e,r.type,t),t.apply(e,[r])}}function oe(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return de(i,{delegateTarget:o}),r.oneOff&&k.off(e,i.type,t,n),n.apply(o,[i])}}function D(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function se(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=O(e);return re.has(a)||(a=e),[r,i,a]}function ce(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=se(t,n,r);t in ne&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=ae(e),l=c[s]||(c[s]={}),u=D(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=ie(o,t.replace(ee,``)),f=a?oe(e,n,o):E(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function le(e,t,n,r,i){let a=D(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function ue(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&le(e,t,n,o.callable,o.delegationSelector)}function O(e){return e=e.replace(C,``),ne[e]||e}let k={on(e,t,n,r){ce(e,t,n,r,!1)},one(e,t,n,r){ce(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=se(t,n,r),s=o!==t,c=ae(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;le(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))ue(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(w,``);(!s||t.includes(i))&&le(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=h(),i=t!==O(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=de(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function de(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function fe(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function pe(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}let me={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${pe(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${pe(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=fe(e.dataset[r])}return t},getDataAttribute(e,t){return fe(e.getAttribute(`data-bs-${pe(t)}`))}};class he{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=c(t)?me.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...c(t)?me.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],a=c(t)?`element`:i(t);if(!new RegExp(r).test(a))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}}}class ge extends he{constructor(e,n){super(),e=l(e),e&&(this._element=e,this._config=this._getConfig(n),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),k.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){x(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(l(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return`5.3.8`}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}let _e=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>r(e)).join(`,`):null},A={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!d(e)&&u(e))},getSelectorFromElement(e){let t=_e(e);return t&&A.findOne(t)?t:null},getElementFromSelector(e){let t=_e(e);return t?A.findOne(t):null},getMultipleElementsFromSelector(e){let t=_e(e);return t?A.find(t):[]}},ve=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;k.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),d(this))return;let i=A.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},ye=`.bs.alert`,be=`close${ye}`,xe=`closed${ye}`;class Se extends ge{static get NAME(){return`alert`}close(){if(k.trigger(this._element,be).defaultPrevented)return;this._element.classList.remove(`show`);let e=this._element.classList.contains(`fade`);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),k.trigger(this._element,xe),this.dispose()}static jQueryInterface(e){return this.each(function(){let t=Se.getOrCreateInstance(this);if(typeof e==`string`){if(t[e]===void 0||e.startsWith(`_`)||e===`constructor`)throw TypeError(`No method named "${e}"`);t[e](this)}})}}ve(Se,`close`),y(Se);let Ce=`[data-bs-toggle="button"]`;class we extends ge{static get NAME(){return`button`}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(`active`))}static jQueryInterface(e){return this.each(function(){let t=we.getOrCreateInstance(this);e===`toggle`&&t[e]()})}}k.on(document,`click.bs.button.data-api`,Ce,e=>{e.preventDefault();let t=e.target.closest(Ce);we.getOrCreateInstance(t).toggle()}),y(we);let Te=`.bs.swipe`,Ee=`touchstart${Te}`,De=`touchmove${Te}`,Oe=`touchend${Te}`,ke=`pointerdown${Te}`,Ae=`pointerup${Te}`,je={endCallback:null,leftCallback:null,rightCallback:null},Me={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`};class Ne extends he{constructor(e,t){super(),this._element=e,!(!e||!Ne.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return je}static get DefaultType(){return Me}static get NAME(){return`swipe`}dispose(){k.off(this._element,Te)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),b(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=40)return;let t=e/this._deltaX;this._deltaX=0,t&&b(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(k.on(this._element,ke,e=>this._start(e)),k.on(this._element,Ae,e=>this._end(e)),this._element.classList.add(`pointer-event`)):(k.on(this._element,Ee,e=>this._start(e)),k.on(this._element,De,e=>this._move(e)),k.on(this._element,Oe,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===`pen`||e.pointerType===`touch`)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}}let Pe=`.bs.carousel`,Fe=`.data-api`,Ie=`next`,Le=`prev`,Re=`left`,j=`right`,ze=`slide${Pe}`,Be=`slid${Pe}`,Ve=`keydown${Pe}`,He=`mouseenter${Pe}`,M=`mouseleave${Pe}`,Ue=`dragstart${Pe}`,We=`load${Pe}${Fe}`,Ge=`click${Pe}${Fe}`,Ke=`carousel`,qe=`active`,Je={ArrowLeft:j,ArrowRight:Re},Ye={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},Xe={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`};class Ze extends ge{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=A.findOne(`.carousel-indicators`,this._element),this._addEventListeners(),this._config.ride===Ke&&this.cycle()}static get Default(){return Ye}static get DefaultType(){return Xe}static get NAME(){return`carousel`}next(){this._slide(Ie)}nextWhenVisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(Le)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){k.one(this._element,Be,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){k.one(this._element,Be,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?Ie:Le;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&k.on(this._element,Ve,e=>this._keydown(e)),this._config.pause===`hover`&&(k.on(this._element,He,()=>this.pause()),k.on(this._element,M,()=>this._maybeEnableCycle())),this._config.touch&&Ne.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of A.find(`.carousel-item img`,this._element))k.on(e,Ue,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(Re)),rightCallback:()=>this._slide(this._directionToOrder(j)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new Ne(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=Je[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=A.findOne(`.active`,this._indicatorsElement);t.classList.remove(qe),t.removeAttribute(`aria-current`);let n=A.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(qe),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===Ie,i=t||S(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>k.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(ze).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?`carousel-item-start`:`carousel-item-end`,l=r?`carousel-item-next`:`carousel-item-prev`;i.classList.add(l),m(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(qe),n.classList.remove(qe,l,c),this._isSliding=!1,o(Be)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(`slide`)}_getActive(){return A.findOne(`.active.carousel-item`,this._element)}_getItems(){return A.find(`.carousel-item`,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return v()?e===Re?Le:Ie:e===Re?Ie:Le}_orderToDirection(e){return v()?e===Le?Re:j:e===Le?j:Re}static jQueryInterface(e){return this.each(function(){let t=Ze.getOrCreateInstance(this,e);if(typeof e==`number`){t.to(e);return}if(typeof e==`string`){if(t[e]===void 0||e.startsWith(`_`)||e===`constructor`)throw TypeError(`No method named "${e}"`);t[e]()}})}}k.on(document,Ge,`[data-bs-slide], [data-bs-slide-to]`,function(e){let t=A.getElementFromSelector(this);if(!t||!t.classList.contains(Ke))return;e.preventDefault();let n=Ze.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(me.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),k.on(window,We,()=>{let e=A.find(`[data-bs-ride="carousel"]`);for(let t of e)Ze.getOrCreateInstance(t)}),y(Ze);let Qe=`.bs.collapse`,$e=`show${Qe}`,et=`shown${Qe}`,N=`hide${Qe}`,P=`hidden${Qe}`,tt=`click${Qe}.data-api`,nt=`show`,rt=`collapse`,it=`collapsing`,at=`:scope .${rt} .${rt}`,ot=`[data-bs-toggle="collapse"]`,st={parent:null,toggle:!0},ct={parent:`(null|element)`,toggle:`boolean`};class lt extends ge{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=A.find(ot);for(let e of n){let t=A.getSelectorFromElement(e),n=A.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return st}static get DefaultType(){return ct}static get NAME(){return`collapse`}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(`.collapse.show, .collapse.collapsing`).filter(e=>e!==this._element).map(e=>lt.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning||k.trigger(this._element,$e).defaultPrevented)return;for(let t of e)t.hide();let t=this._getDimension();this._element.classList.remove(rt),this._element.classList.add(it),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let n=()=>{this._isTransitioning=!1,this._element.classList.remove(it),this._element.classList.add(rt,nt),this._element.style[t]=``,k.trigger(this._element,et)},r=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[t]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||k.trigger(this._element,N).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,m(this._element),this._element.classList.add(it),this._element.classList.remove(rt,nt);for(let e of this._triggerArray){let t=A.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(it),this._element.classList.add(rt),k.trigger(this._element,P)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(nt)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=l(e.parent),e}_getDimension(){return this._element.classList.contains(`collapse-horizontal`)?`width`:`height`}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(ot);for(let t of e){let e=A.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=A.find(at,this._config.parent);return A.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(`collapsed`,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(e){let t={};return typeof e==`string`&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){let n=lt.getOrCreateInstance(this,t);if(typeof e==`string`){if(n[e]===void 0)throw TypeError(`No method named "${e}"`);n[e]()}})}}k.on(document,tt,ot,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of A.getMultipleElementsFromSelector(this))lt.getOrCreateInstance(e,{toggle:!1}).toggle()}),y(lt);var ut=`top`,dt=`bottom`,ft=`right`,pt=`left`,mt=`auto`,ht=[ut,dt,ft,pt],gt=`start`,F=`end`,_t=`clippingParents`,vt=`viewport`,yt=`popper`,bt=`reference`,xt=ht.reduce(function(e,t){return e.concat([t+`-`+gt,t+`-`+F])},[]),St=[].concat(ht,[mt]).reduce(function(e,t){return e.concat([t,t+`-`+gt,t+`-`+F])},[]),Ct=`beforeRead`,wt=`read`,Tt=`afterRead`,Et=`beforeMain`,Dt=`main`,Ot=`afterMain`,kt=`beforeWrite`,At=`write`,I=`afterWrite`,jt=[Ct,wt,Tt,Et,Dt,Ot,kt,At,I];function Mt(e){return e?(e.nodeName||``).toLowerCase():null}function Nt(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pt(e){return e instanceof Nt(e).Element||e instanceof Element}function Ft(e){return e instanceof Nt(e).HTMLElement||e instanceof HTMLElement}function It(e){return typeof ShadowRoot>`u`?!1:e instanceof Nt(e).ShadowRoot||e instanceof ShadowRoot}function Lt(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Ft(i)||!Mt(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Rt(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!Ft(r)||!Mt(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}let zt={name:`applyStyles`,enabled:!0,phase:`write`,fn:Lt,effect:Rt,requires:[`computeStyles`]};function Bt(e){return e.split(`-`)[0]}var Vt=Math.max,Ht=Math.min,Ut=Math.round;function Wt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function Gt(){return!/^((?!chrome|android).)*safari/i.test(Wt())}function R(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Ft(e)&&(i=e.offsetWidth>0&&Ut(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ut(r.height)/e.offsetHeight||1);var o=(Pt(e)?Nt(e):window).visualViewport,s=!Gt()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Kt(e){var t=R(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&It(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jt(e){return Nt(e).getComputedStyle(e)}function Yt(e){return[`table`,`td`,`th`].indexOf(Mt(e))>=0}function Xt(e){return((Pt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zt(e){return Mt(e)===`html`?e:e.assignedSlot||e.parentNode||(It(e)?e.host:null)||Xt(e)}function z(e){return!Ft(e)||Jt(e).position===`fixed`?null:e.offsetParent}function Qt(e){var t=/firefox/i.test(Wt());if(/Trident/i.test(Wt())&&Ft(e)&&Jt(e).position===`fixed`)return null;var n=Zt(e);for(It(n)&&(n=n.host);Ft(n)&&[`html`,`body`].indexOf(Mt(n))<0;){var r=Jt(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function $t(e){for(var t=Nt(e),n=z(e);n&&Yt(n)&&Jt(n).position===`static`;)n=z(n);return n&&(Mt(n)===`html`||Mt(n)===`body`&&Jt(n).position===`static`)?t:n||Qt(e)||t}function en(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function B(e,t,n){return Vt(e,Ht(t,n))}function tn(e,t,n){var r=B(e,t,n);return r>n?n:r}function V(){return{top:0,right:0,bottom:0,left:0}}function nn(e){return Object.assign({},V(),e)}function rn(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var an=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,nn(typeof e==`number`?rn(e,ht):e)};function on(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Bt(n.placement),c=en(s),l=[pt,ft].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=an(i.padding,n),d=Kt(a),f=c===`y`?ut:pt,p=c===`y`?dt:ft,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=$t(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=B(y,x,b),ee=c;n.modifiersData[r]=(t={},t[ee]=S,t.centerOffset=S-x,t)}}function sn(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||qt(t.elements.popper,r)&&(t.elements.arrow=r))}let cn={name:`arrow`,enabled:!0,phase:`main`,fn:on,effect:sn,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function ln(e){return e.split(`-`)[1]}var un={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function dn(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ut(n*i)/i||0,y:Ut(r*i)/i||0}}function fn(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=pt,b=ut,x=window;if(l){var S=$t(n),ee=`clientHeight`,C=`clientWidth`;if(S===Nt(n)&&(S=Xt(n),Jt(S).position!==`static`&&s===`absolute`&&(ee=`scrollHeight`,C=`scrollWidth`)),S=S,i===ut||(i===pt||i===ft)&&a===F){b=dt;var w=d&&S===x&&x.visualViewport?x.visualViewport.height:S[ee];h-=w-r.height,h*=c?1:-1}if(i===pt||(i===ut||i===dt)&&a===F){y=ft;var T=d&&S===x&&x.visualViewport?x.visualViewport.width:S[C];p-=T-r.width,p*=c?1:-1}}var te=Object.assign({position:s},l&&un),ne=u===!0?dn({x:p,y:h},Nt(n)):{x:p,y:h};if(p=ne.x,h=ne.y,c){var re;return Object.assign({},te,(re={},re[b]=v?`0`:``,re[y]=_?`0`:``,re.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,re))}return Object.assign({},te,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function pn(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:Bt(t.placement),variation:ln(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,fn(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,fn(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}let mn={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:pn,data:{}};var H={passive:!0};function hn(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=Nt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,H)}),s&&c.addEventListener(`resize`,n.update,H),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,H)}),s&&c.removeEventListener(`resize`,n.update,H)}}let gn={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:hn,data:{}};var U={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function W(e){return e.replace(/left|right|bottom|top/g,function(e){return U[e]})}var G={start:`end`,end:`start`};function _n(e){return e.replace(/start|end/g,function(e){return G[e]})}function vn(e){var t=Nt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yn(e){return R(Xt(e)).left+vn(e).scrollLeft}function bn(e,t){var n=Nt(e),r=Xt(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Gt();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+yn(e),y:c}}function xn(e){var t=Xt(e),n=vn(e),r=e.ownerDocument?.body,i=Vt(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Vt(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+yn(e),s=-n.scrollTop;return Jt(r||t).direction===`rtl`&&(o+=Vt(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Sn(e){var t=Jt(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Cn(e){return[`html`,`body`,`#document`].indexOf(Mt(e))>=0?e.ownerDocument.body:Ft(e)&&Sn(e)?e:Cn(Zt(e))}function wn(e,t){t===void 0&&(t=[]);var n=Cn(e),r=n===e.ownerDocument?.body,i=Nt(n),a=r?[i].concat(i.visualViewport||[],Sn(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(wn(Zt(a)))}function Tn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function En(e,t){var n=R(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Dn(e,t,n){return t===vt?Tn(bn(e,n)):Pt(t)?En(t,n):Tn(xn(Xt(e)))}function On(e){var t=wn(Zt(e)),n=[`absolute`,`fixed`].indexOf(Jt(e).position)>=0&&Ft(e)?$t(e):e;return Pt(n)?t.filter(function(e){return Pt(e)&&qt(e,n)&&Mt(e)!==`body`}):[]}function kn(e,t,n,r){var i=t===`clippingParents`?On(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Dn(e,n,r);return t.top=Vt(i.top,t.top),t.right=Ht(i.right,t.right),t.bottom=Ht(i.bottom,t.bottom),t.left=Vt(i.left,t.left),t},Dn(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function An(e){var t=e.reference,n=e.element,r=e.placement,i=r?Bt(r):null,a=r?ln(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case ut:c={x:o,y:t.y-n.height};break;case dt:c={x:o,y:t.y+t.height};break;case ft:c={x:t.x+t.width,y:s};break;case pt:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?en(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case gt:c[l]=c[l]-(t[u]/2-n[u]/2);break;case F:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function jn(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?_t:s,l=n.rootBoundary,u=l===void 0?vt:l,d=n.elementContext,f=d===void 0?yt:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=nn(typeof g==`number`?rn(g,ht):g),v=f===yt?bt:yt,y=e.rects.popper,b=e.elements[m?v:f],x=kn(Pt(b)?b:b.contextElement||Xt(e.elements.popper),c,u,o),S=R(e.elements.reference),ee=An({reference:S,element:y,placement:i}),C=Tn(Object.assign({},y,ee)),w=f===yt?C:S,T={top:x.top-w.top+_.top,bottom:w.bottom-x.bottom+_.bottom,left:x.left-w.left+_.left,right:w.right-x.right+_.right},te=e.modifiersData.offset;if(f===yt&&te){var ne=te[i];Object.keys(T).forEach(function(e){var t=[ft,dt].indexOf(e)>=0?1:-1,n=[ut,dt].indexOf(e)>=0?`y`:`x`;T[e]+=ne[n]*t})}return T}function Mn(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?St:c,u=ln(r),d=u?s?xt:xt.filter(function(e){return ln(e)===u}):ht,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=jn(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Bt(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Nn(e){if(Bt(e)===mt)return[];var t=W(e);return[_n(e),t,_n(t)]}function Pn(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=Bt(g)===g,v=c||(_||!m?[W(g)]:Nn(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Bt(n)===mt?Mn(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,ee=!0,C=y[0],w=0;w=0,ie=re?`width`:`height`,ae=jn(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),E=re?ne?ft:pt:ne?dt:ut;b[ie]>x[ie]&&(E=W(E));var oe=W(E),D=[];if(a&&D.push(ae[te]<=0),s&&D.push(ae[E]<=0,ae[oe]<=0),D.every(function(e){return e})){C=T,ee=!1;break}S.set(T,D)}if(ee)for(var se=m?3:1,ce=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,`break`},le=se;le>0&&ce(le)!==`break`;le--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}}let Fn={name:`flip`,enabled:!0,phase:`main`,fn:Pn,requiresIfExists:[`offset`],data:{_skip:!1}};function In(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function K(e){return[ut,ft,dt,pt].some(function(t){return e[t]>=0})}function Ln(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=jn(t,{elementContext:`reference`}),s=jn(t,{altBoundary:!0}),c=In(o,r),l=In(s,i,a),u=K(c),d=K(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}let Rn={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Ln};function zn(e,t,n){var r=Bt(e),i=[pt,ut].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[pt,ft].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Bn(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=St.reduce(function(e,n){return e[n]=zn(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}let Vn={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Bn};function Hn(e){var t=e.state,n=e.name;t.modifiersData[n]=An({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}let Un={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Hn,data:{}};function Wn(e){return e===`x`?`y`:`x`}function Gn(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=jn(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Bt(t.placement),v=ln(t.placement),y=!v,b=en(_),x=Wn(b),S=t.modifiersData.popperOffsets,ee=t.rects.reference,C=t.rects.popper,w=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,T=typeof w==`number`?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),te=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ne={x:0,y:0};if(S){if(a){var re=b===`y`?ut:pt,ie=b===`y`?dt:ft,ae=b===`y`?`height`:`width`,E=S[b],oe=E+g[re],D=E-g[ie],se=p?-C[ae]/2:0,ce=v===gt?ee[ae]:C[ae],le=v===gt?-C[ae]:-ee[ae],ue=t.elements.arrow,O=p&&ue?Kt(ue):{width:0,height:0},k=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:V(),de=k[re],fe=k[ie],pe=B(0,ee[ae],O[ae]),me=y?ee[ae]/2-se-pe-de-T.mainAxis:ce-pe-de-T.mainAxis,he=y?-ee[ae]/2+se+pe+fe+T.mainAxis:le+pe+fe+T.mainAxis,ge=t.elements.arrow&&$t(t.elements.arrow),_e=ge?b===`y`?ge.clientTop||0:ge.clientLeft||0:0,A=te?.[b]??0,ve=E+me-A-_e,ye=E+he-A,be=B(p?Ht(oe,ve):oe,E,p?Vt(D,ye):D);S[b]=be,ne[b]=be-E}if(s){var xe=b===`x`?ut:pt,Se=b===`x`?dt:ft,Ce=S[x],we=x===`y`?`height`:`width`,Te=Ce+g[xe],Ee=Ce-g[Se],De=[ut,pt].indexOf(_)!==-1,Oe=te?.[x]??0,ke=De?Te:Ce-ee[we]-C[we]-Oe+T.altAxis,Ae=De?Ce+ee[we]+C[we]-Oe-T.altAxis:Ee,je=p&&De?tn(ke,Ce,Ae):B(p?ke:Te,Ce,p?Ae:Ee);S[x]=je,ne[x]=je-Ce}t.modifiersData[r]=ne}}let Kn={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Gn,requiresIfExists:[`offset`]};function qn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Jn(e){return e===Nt(e)||!Ft(e)?vn(e):qn(e)}function Yn(e){var t=e.getBoundingClientRect(),n=Ut(t.width)/e.offsetWidth||1,r=Ut(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Xn(e,t,n){n===void 0&&(n=!1);var r=Ft(t),i=Ft(t)&&Yn(t),a=Xt(t),o=R(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Mt(t)!==`body`||Sn(a))&&(s=Jn(t)),Ft(t)?(c=R(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=yn(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Zn(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Qn(e){var t=Zn(e);return jt.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function $n(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function q(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var er={placement:`bottom`,modifiers:[],strategy:`absolute`};function tr(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function J(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?er:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},er,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Pt(e)?wn(e):e.contextElement?wn(e.contextElement):[],popper:wn(t)};var s=Qn(q([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(tr(t,n)){i.rects={reference:Xn(t,$t(n),i.options.strategy===`fixed`),popper:Kt(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;rNumber.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(me.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...b(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=A.find(`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,this._menu).filter(e=>u(e));n.length&&S(n,t,e===cr,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){let t=Dr.getOrCreateInstance(this,e);if(typeof e==`string`){if(t[e]===void 0)throw TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===2||e.type===`keyup`&&e.key!==`Tab`)return;let t=A.find(vr);for(let n of t){let t=Dr.getInstance(n);if(!t||t._config.autoClose===!1)continue;let r=e.composedPath(),i=r.includes(t._menu);if(r.includes(t._element)||t._config.autoClose===`inside`&&!i||t._config.autoClose===`outside`&&i||t._menu.contains(e.target)&&(e.type===`keyup`&&e.key===`Tab`||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;let a={relatedTarget:t._element};e.type===`click`&&(a.clickEvent=e),t._completeHide(a)}}static dataApiKeydownHandler(e){let t=/input|textarea/i.test(e.target.tagName),n=e.key===`Escape`,r=[`ArrowUp`,cr].includes(e.key);if(!r&&!n||t&&!n)return;e.preventDefault();let i=this.matches(_r)?this:A.prev(this,_r)[0]||A.next(this,_r)[0]||A.findOne(_r,e.delegateTarget.parentNode),a=Dr.getOrCreateInstance(i);if(r){e.stopPropagation(),a.show(),a._selectMenuItem(e);return}a._isShown()&&(e.stopPropagation(),a.hide(),i.focus())}}k.on(document,mr,_r,Dr.dataApiKeydownHandler),k.on(document,mr,yr,Dr.dataApiKeydownHandler),k.on(document,pr,Dr.clearMenus),k.on(document,hr,Dr.clearMenus),k.on(document,pr,_r,function(e){e.preventDefault(),Dr.getOrCreateInstance(this).toggle()}),y(Dr);let Or=`backdrop`,kr=`show`,Ar=`mousedown.bs.${Or}`,jr={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},Mr={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`};class Nr extends he{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return jr}static get DefaultType(){return Mr}static get NAME(){return Or}show(e){if(!this._config.isVisible){b(e);return}this._append();let t=this._getElement();this._config.isAnimated&&m(t),t.classList.add(kr),this._emulateAnimation(()=>{b(e)})}hide(e){if(!this._config.isVisible){b(e);return}this._getElement().classList.remove(kr),this._emulateAnimation(()=>{this.dispose(),b(e)})}dispose(){this._isAppended&&=(k.off(this._element,Ar),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(`fade`),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=l(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),k.on(e,Ar,()=>{b(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){x(e,this._getElement(),this._config.isAnimated)}}let Pr=`.bs.focustrap`,Fr=`focusin${Pr}`,Ir=`keydown.tab${Pr}`,Lr=`backward`,Rr={autofocus:!0,trapElement:null},zr={autofocus:`boolean`,trapElement:`element`};class Br extends he{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Rr}static get DefaultType(){return zr}static get NAME(){return`focustrap`}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),k.off(document,Pr),k.on(document,Fr,e=>this._handleFocusin(e)),k.on(document,Ir,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,k.off(document,Pr))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=A.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===Lr?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===`Tab`&&(this._lastTabNavDirection=e.shiftKey?Lr:`forward`)}}let X=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,Vr=`.sticky-top`,Hr=`padding-right`,Z=`margin-right`;class Q{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Hr,t=>t+e),this._setElementAttributes(X,Hr,t=>t+e),this._setElementAttributes(Vr,Z,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,Hr),this._resetElementAttributes(X,Hr),this._resetElementAttributes(Vr,Z)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&me.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=me.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}me.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(c(e)){t(e);return}for(let n of A.find(e,this._element))t(n)}}let Ur=`.bs.modal`,Wr=`hide${Ur}`,Gr=`hidePrevented${Ur}`,Kr=`hidden${Ur}`,qr=`show${Ur}`,$=`shown${Ur}`,Jr=`resize${Ur}`,Yr=`click.dismiss${Ur}`,Xr=`mousedown.dismiss${Ur}`,Zr=`keydown.dismiss${Ur}`,Qr=`click${Ur}.data-api`,$r=`modal-open`,ei=`show`,ti=`modal-static`,ni={backdrop:!0,focus:!0,keyboard:!0},ri={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`};class ii extends ge{constructor(e,t){super(e,t),this._dialog=A.findOne(`.modal-dialog`,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Q,this._addEventListeners()}static get Default(){return ni}static get DefaultType(){return ri}static get NAME(){return`modal`}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||k.trigger(this._element,qr,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add($r),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||k.trigger(this._element,Wr).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ei),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){k.off(window,Ur),k.off(this._dialog,Ur),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Nr({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Br({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=A.findOne(`.modal-body`,this._dialog);t&&(t.scrollTop=0),m(this._element),this._element.classList.add(ei),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,k.trigger(this._element,$,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){k.on(this._element,Zr,e=>{if(e.key===`Escape`){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),k.on(window,Jr,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),k.on(this._element,Xr,e=>{k.one(this._element,Yr,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop===`static`){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display=`none`,this._element.setAttribute(`aria-hidden`,!0),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove($r),this._resetAdjustments(),this._scrollBar.reset(),k.trigger(this._element,Kr)})}_isAnimated(){return this._element.classList.contains(`fade`)}_triggerBackdropTransition(){if(k.trigger(this._element,Gr).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(ti)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(ti),this._queueCallback(()=>{this._element.classList.remove(ti),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=v()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=v()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(e,t){return this.each(function(){let n=ii.getOrCreateInstance(this,e);if(typeof e==`string`){if(n[e]===void 0)throw TypeError(`No method named "${e}"`);n[e](t)}})}}k.on(document,Qr,`[data-bs-toggle="modal"]`,function(e){let t=A.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),k.one(t,qr,e=>{e.defaultPrevented||k.one(t,Kr,()=>{u(this)&&this.focus()})});let n=A.findOne(`.modal.show`);n&&ii.getInstance(n).hide(),ii.getOrCreateInstance(t).toggle(this)}),ve(ii),y(ii);let ai=`.bs.offcanvas`,oi=`.data-api`,si=`load${ai}${oi}`,ci=`show`,li=`showing`,ui=`hiding`,di=`.offcanvas.show`,fi=`show${ai}`,pi=`shown${ai}`,mi=`hide${ai}`,hi=`hidePrevented${ai}`,gi=`hidden${ai}`,_i=`resize${ai}`,vi=`click${ai}${oi}`,yi=`keydown.dismiss${ai}`,bi={backdrop:!0,keyboard:!0,scroll:!1},xi={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`};class Si extends ge{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return bi}static get DefaultType(){return xi}static get NAME(){return`offcanvas`}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||k.trigger(this._element,fi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Q().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(li),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ci),this._element.classList.remove(li),k.trigger(this._element,pi,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||k.trigger(this._element,mi).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ui),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(ci,ui),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new Q().reset(),k.trigger(this._element,gi)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){k.trigger(this._element,hi);return}this.hide()},t=!!this._config.backdrop;return new Nr({className:`offcanvas-backdrop`,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new Br({trapElement:this._element})}_addEventListeners(){k.on(this._element,yi,e=>{if(e.key===`Escape`){if(this._config.keyboard){this.hide();return}k.trigger(this._element,hi)}})}static jQueryInterface(e){return this.each(function(){let t=Si.getOrCreateInstance(this,e);if(typeof e==`string`){if(t[e]===void 0||e.startsWith(`_`)||e===`constructor`)throw TypeError(`No method named "${e}"`);t[e](this)}})}}k.on(document,vi,`[data-bs-toggle="offcanvas"]`,function(e){let t=A.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),d(this))return;k.one(t,gi,()=>{u(this)&&this.focus()});let n=A.findOne(di);n&&n!==t&&Si.getInstance(n).hide(),Si.getOrCreateInstance(t).toggle(this)}),k.on(window,si,()=>{for(let e of A.find(di))Si.getOrCreateInstance(e).show()}),k.on(window,_i,()=>{for(let e of A.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&Si.getOrCreateInstance(e).hide()}),ve(Si),y(Si);let Ci={"*":[`class`,`dir`,`id`,`lang`,`role`,/^aria-[\w-]*$/i],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},wi=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),Ti=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ei=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?wi.has(n)?!!Ti.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function Di(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)Ei(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}let Oi={allowList:Ci,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`
`},ki={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},Ai={entry:`(string|element|function|null)`,selector:`(string|element)`};class ji extends he{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Oi}static get DefaultType(){return ki}static get NAME(){return`TemplateFactory`}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Ai)}_setContent(e,t,n){let r=A.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(c(t)){this._putElementInTemplate(l(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?Di(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return b(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}}let Mi=new Set([`sanitize`,`allowList`,`sanitizeFn`]),Ni=`fade`,Pi=`show`,Fi=`.modal`,Ii=`hide.bs.modal`,Li=`hover`,Ri=`focus`,zi=`click`,Bi={AUTO:`auto`,TOP:`top`,RIGHT:v()?`left`:`right`,BOTTOM:`bottom`,LEFT:v()?`right`:`left`},Vi={allowList:Ci,animation:!0,boundary:`clippingParents`,container:!1,customClass:``,delay:0,fallbackPlacements:[`top`,`right`,`bottom`,`left`],html:!1,offset:[0,6],placement:`top`,popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:``,title:``,trigger:`hover focus`},Hi={allowList:`object`,animation:`boolean`,boundary:`(string|element)`,container:`(string|element|boolean)`,customClass:`(string|function)`,delay:`(number|object)`,fallbackPlacements:`array`,html:`boolean`,offset:`(array|string|function)`,placement:`(string|function)`,popperConfig:`(null|object|function)`,sanitize:`boolean`,sanitizeFn:`(null|function)`,selector:`(string|boolean)`,template:`string`,title:`(string|element|function)`,trigger:`string`};class Ui extends ge{constructor(e,t){if(ar===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Vi}static get DefaultType(){return Hi}static get NAME(){return`tooltip`}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),k.off(this._element.closest(Fi),Ii,this._hideModalHandler),this._element.getAttribute(`data-bs-original-title`)&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=k.trigger(this._element,this.constructor.eventName(`show`)),t=(f(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),k.trigger(this._element,this.constructor.eventName(`inserted`))),this._popper=this._createPopper(n),n.classList.add(Pi),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))k.on(e,`mouseover`,p);this._queueCallback(()=>{k.trigger(this._element,this.constructor.eventName(`shown`)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||k.trigger(this._element,this.constructor.eventName(`hide`)).defaultPrevented)){if(this._getTipElement().classList.remove(Pi),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))k.off(e,`mouseover`,p);this._activeTrigger[zi]=!1,this._activeTrigger[Ri]=!1,this._activeTrigger[Li]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),k.trigger(this._element,this.constructor.eventName(`hidden`)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Ni,Pi),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=a(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(Ni),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new ji({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(`data-bs-original-title`)}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ni)}_isShown(){return this.tip&&this.tip.classList.contains(Pi)}_createPopper(e){let t=Bi[b(this._config.placement,[this,e,this._element]).toUpperCase()];return ir(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return b(e,[this._element,this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...b(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)k.on(this._element,this.constructor.eventName(`click`),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[zi]=!(t._isShown()&&t._activeTrigger[zi]),t.toggle()});else if(t!==`manual`){let e=t===Li?this.constructor.eventName(`mouseenter`):this.constructor.eventName(`focusin`),n=t===Li?this.constructor.eventName(`mouseleave`):this.constructor.eventName(`focusout`);k.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?Ri:Li]=!0,t._enter()}),k.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?Ri:Li]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},k.on(this._element.closest(Fi),Ii,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=me.getDataAttributes(this._element);for(let e of Object.keys(t))Mi.has(e)&&delete t[e];return e={...t,...typeof e==`object`&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:l(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(e){return this.each(function(){let t=Ui.getOrCreateInstance(this,e);if(typeof e==`string`){if(t[e]===void 0)throw TypeError(`No method named "${e}"`);t[e]()}})}}y(Ui);let Wi={...Ui.Default,content:``,offset:[0,8],placement:`right`,template:``,trigger:`click`},Gi={...Ui.DefaultType,content:`(null|string|element|function)`};class Ki extends Ui{static get Default(){return Wi}static get DefaultType(){return Gi}static get NAME(){return`popover`}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){let t=Ki.getOrCreateInstance(this,e);if(typeof e==`string`){if(t[e]===void 0)throw TypeError(`No method named "${e}"`);t[e]()}})}}y(Ki);let qi=`.bs.scrollspy`,Ji=`activate${qi}`,Yi=`click${qi}`,Xi=`load${qi}.data-api`,Zi=`active`,Qi=`[href]`,$i=`.nav-link`,ea=`${$i}, .nav-item > ${$i}, .list-group-item`,ta={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},na={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`};class ra extends ge{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY===`visible`?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ta}static get DefaultType(){return na}static get NAME(){return`scrollspy`}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=l(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(k.off(this._config.target,Yi),k.on(this._config.target,Yi,Qi,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=A.find(Qi,this._config.target);for(let t of e){if(!t.hash||d(t))continue;let e=A.findOne(decodeURI(t.hash),this._element);u(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Zi),this._activateParents(e),k.trigger(this._element,Ji,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(`dropdown-item`)){A.findOne(`.dropdown-toggle`,e.closest(`.dropdown`)).classList.add(Zi);return}for(let t of A.parents(e,`.nav, .list-group`))for(let e of A.prev(t,ea))e.classList.add(Zi)}_clearActiveClass(e){e.classList.remove(Zi);let t=A.find(`${Qi}.${Zi}`,e);for(let e of t)e.classList.remove(Zi)}static jQueryInterface(e){return this.each(function(){let t=ra.getOrCreateInstance(this,e);if(typeof e==`string`){if(t[e]===void 0||e.startsWith(`_`)||e===`constructor`)throw TypeError(`No method named "${e}"`);t[e]()}})}}k.on(window,Xi,()=>{for(let e of A.find(`[data-bs-spy="scroll"]`))ra.getOrCreateInstance(e)}),y(ra);let ia=`.bs.tab`,aa=`hide${ia}`,oa=`hidden${ia}`,sa=`show${ia}`,ca=`shown${ia}`,la=`click${ia}`,ua=`keydown${ia}`,da=`load${ia}`,fa=`ArrowRight`,pa=`ArrowDown`,ma=`Home`,ha=`active`,ga=`fade`,_a=`show`,va=`.dropdown-toggle`,ya=`:not(${va})`,ba=`.nav-link${ya}, .list-group-item${ya}, [role="tab"]${ya}`,xa=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,Sa=`${ba}, ${xa}`,Ca=`.${ha}[data-bs-toggle="tab"], .${ha}[data-bs-toggle="pill"], .${ha}[data-bs-toggle="list"]`;class wa extends ge{constructor(e){super(e),this._parent=this._element.closest(`.list-group, .nav, [role="tablist"]`),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),k.on(this._element,ua,e=>this._keydown(e)))}static get NAME(){return`tab`}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?k.trigger(t,aa,{relatedTarget:e}):null;k.trigger(e,sa,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(ha),this._activate(A.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(_a);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),k.trigger(e,ca,{relatedTarget:t})},e,e.classList.contains(ga)))}_deactivate(e,t){e&&(e.classList.remove(ha),e.blur(),this._deactivate(A.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(_a);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),k.trigger(e,oa,{relatedTarget:t})},e,e.classList.contains(ga)))}_keydown(e){if(![`ArrowLeft`,fa,`ArrowUp`,pa,ma,`End`].includes(e.key))return;e.stopPropagation(),e.preventDefault();let t=this._getChildren().filter(e=>!d(e)),n;if([ma,`End`].includes(e.key))n=t[e.key===ma?0:t.length-1];else{let r=[fa,pa].includes(e.key);n=S(t,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),wa.getOrCreateInstance(n).show())}_getChildren(){return A.find(Sa,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=A.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(`dropdown`))return;let r=(e,r)=>{let i=A.findOne(e,n);i&&i.classList.toggle(r,t)};r(va,ha),r(`.dropdown-menu`,_a),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(ha)}_getInnerElement(e){return e.matches(Sa)?e:A.findOne(Sa,e)}_getOuterElement(e){return e.closest(`.nav-item, .list-group-item`)||e}static jQueryInterface(e){return this.each(function(){let t=wa.getOrCreateInstance(this);if(typeof e==`string`){if(t[e]===void 0||e.startsWith(`_`)||e===`constructor`)throw TypeError(`No method named "${e}"`);t[e]()}})}}k.on(document,la,xa,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!d(this)&&wa.getOrCreateInstance(this).show()}),k.on(window,da,()=>{for(let e of A.find(Ca))wa.getOrCreateInstance(e)}),y(wa);let Ta=`.bs.toast`,Ea=`mouseover${Ta}`,Da=`mouseout${Ta}`,Oa=`focusin${Ta}`,ka=`focusout${Ta}`,Aa=`hide${Ta}`,ja=`hidden${Ta}`,Ma=`show${Ta}`,Na=`shown${Ta}`,Pa=`hide`,Fa=`show`,Ia=`showing`,La={animation:`boolean`,autohide:`boolean`,delay:`number`},Ra={animation:!0,autohide:!0,delay:5e3};class za extends ge{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ra}static get DefaultType(){return La}static get NAME(){return`toast`}show(){k.trigger(this._element,Ma).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(`fade`),this._element.classList.remove(Pa),m(this._element),this._element.classList.add(Fa,Ia),this._queueCallback(()=>{this._element.classList.remove(Ia),k.trigger(this._element,Na),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||k.trigger(this._element,Aa).defaultPrevented||(this._element.classList.add(Ia),this._queueCallback(()=>{this._element.classList.add(Pa),this._element.classList.remove(Ia,Fa),k.trigger(this._element,ja)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Fa),super.dispose()}isShown(){return this._element.classList.contains(Fa)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){k.on(this._element,Ea,e=>this._onInteraction(e,!0)),k.on(this._element,Da,e=>this._onInteraction(e,!1)),k.on(this._element,Oa,e=>this._onInteraction(e,!0)),k.on(this._element,ka,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){let t=za.getOrCreateInstance(this,e);if(typeof e==`string`){if(t[e]===void 0)throw TypeError(`No method named "${e}"`);t[e](this)}})}}return ve(za),y(za),{Alert:Se,Button:we,Carousel:Ze,Collapse:lt,Dropdown:Dr,Modal:ii,Offcanvas:Si,Popover:Ki,ScrollSpy:ra,Tab:wa,Toast:za,Tooltip:Ui}}))})),Ui=o(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;oe.text()).then(n=>{let r=(0,Wi.default)(Ji());n=n.replace(`Nominatim_API_Endpoint`,r),t.innerHTML=n,Ki[e]=n})}catch(n){t.textContent=`Error fetching content from ${e} (${n})`}}function Ji(e){let t=Nominatim_Config.Nominatim_API_Endpoint;return typeof t==`function`?t(e):e?t+e:t}function Yi(e,t){return t.dedupe===1&&delete t.dedupe,Object.assign(t,Nominatim_Config.Nominatim_API_Endpoint_Params),Ji(e)+`?`+Object.keys(Xi(t)).map(e=>encodeURIComponent(e)+`=`+encodeURIComponent(t[e])).join(`&`)}function Xi(e){for(let[t,n]of Object.entries(e))(n===void 0||n===``||n===null)&&delete e[t];return e}function Zi(e){document.title=[e,Nominatim_Config.Page_Title].filter(e=>e&&e.length>1).join(` | `)}function Qi(e){return e===`node`||e===`N`?`N`:e===`way`||e===`W`?`W`:e===`relation`||e===`R`?`R`:``}function $i(e,t){return e===`N`?`node`:e===`W`?`way`:e===`R`?`relation`:t&&(e===`T`||e===`I`)?`way`:``}function ea(e){if(!e)return;let t=e.match(/\/(relation|way|node)\/(-?\d+)/)||e.match(/^([nwr])(-?\d+)$/i);if(t)return[t[1][0].toUpperCase(),Number(t[2])]}function ta(e){if(e.label)return e.label;function t(e){return e&&e[0].toUpperCase()+e.slice(1)}return e.type&&e.type===`yes`&&e.category?t(e.category.replace(/_/g,` `)):e.type?t(e.type.replace(/_/g,` `)):``}function na(e){return e.isarea?`Polygon`:`Point`}function ra(e){return e.category===`boundary`&&e.type===`administrative`}function ia(e){return e<4?`other`:e<6?`country`:e<8?`region`:e<10?`state`:e<12?`state district`:e<14?`county`:e<16?`municipality`:e<18?`city / town / village`:e<20?`city / village district`:e<22?`suburb / hamlet`:e<24?`neighbourhood`:e<26?`city block / square`:e===26?`major street`:e===27?`minory street / path`:e<=30?`house / building`:`other`}function aa(e){let t=e.class+`:`+e.type;return e.type&&e.type===`administrative`&&e.place_type&&(t=t+` (`+e.place_type+`)`),(0,Wi.default)(t)}function oa(e){return e&&e<15?e:``}function sa(e,t){if(t){if(e<1)return`0`;let t=e>=1e3?Math.round(e/1e3,1)+` km`:Math.round(e,0)+` m`;return`~`+(0,Wi.default)(t)+``}return e===0?`0`:`~`+(0,Wi.default)(String(Math.round(e*1e3,4)/1e3))+``}function ca(e){return(e[0]===` `?`*`:``)+(0,Wi.default)(e)}function la(){return[`Continent / Sea`,``,``,`Country`,``,`State`,`Region`,``,`County`,``,`City`,``,`Town / Borough`,`Village / Suburb`,`Neighbourhood`,`Locality`,`Major Street`,`Minor Street`,`Building`]}var ua=Nominatim_Config.Reverse_Only?`reverse`:`search`,da=[ua,`reverse`,`details`,`deletable`,`polygons`,`status`,`about`],fa=new class{#e=B();get page(){return Y(this.#e)}set page(e){V(this.#e,e,!0)}#t=B(null);get lastApiRequestURL(){return Y(this.#t)}set lastApiRequestURL(e){V(this.#t,e,!0)}#n=B(null);get errorMessage(){return Y(this.#n)}set errorMessage(e){V(this.#n,e,!0)}#r=B(`finish`);get requestProgress(){return Y(this.#r)}set requestProgress(e){V(this.#r,e,!0)}#i;constructor(){this.refreshPage()}refreshPage(e,t){if(e===void 0)e=window.location.pathname.replace(`.html`,``).replace(/^.*\//,``),da.includes(e)||(e=ua),t=new URLSearchParams(window.location.search);else{da.includes(e)||(e=ua),t===void 0&&(t=new URLSearchParams);let n=t.toString();n&&=`?`+n;let r=e+`.html`+n;window.location.protocol.match(/^http/)?window.history.pushState([],``,r):window.location.href=r}if(e===`search`&&t.has(`q`)){let n=ea(t.get(`q`));n instanceof Array&&(e=`details`,t=new URLSearchParams({osmtype:n[0],osmid:n[1]}))}Cr(()=>{this.page?.tab!==e&&this.#i&&(this.#i.abort(),this.#i=void 0),this.page={tab:e,params:t},this.lastApiRequestURL=null,this.errorMessage=null})}async fetchFromApi(e,t,n){let r=Yi(e,t),i=new URLSearchParams(window.location.search).get(`mock_api_error`),a=[`fetch`,`parse`].includes(i)?i:null,o={};this.requestProgress=`start`,e!==`status`&&(this.lastApiRequestURL=null,this.#i?.abort(),this.#i=new AbortController,o.signal=this.#i.signal),Nominatim_Config.Nominatim_API_Endpoint_Headers&&(o.headers=Nominatim_Config.Nominatim_API_Endpoint_Headers);try{await fetch(r,o).then(async e=>{if(!(e.status>=200&&e.status<300||e.status===404)||a===`fetch`){this.errorMessage=`Error fetching data from ${r} (${e.statusText})`;return}let t;try{t=a===`parse`?JSON.parse(`{`):await e.json()}catch(e){this.errorMessage=`Error parsing JSON data from ${r} (${e})`;return}return t}).then(t=>{e!==`status`&&(this.lastApiRequestURL=r),t&&(t.error&&(this.errorMessage=t.error.message),n(t)),this.requestProgress=`finish`})}catch(e){e.name!==`AbortError`&&(this.errorMessage=`Error fetching data from ${r} (${e})`,this.requestProgress=`finish`)}}},pa=X(`

Addresses and postcodes are approximate. + Blue circle is the result. + In case of reverse geocoding the smaller red circle is at the search position.

`);function ma(e){Z(e,pa())}var ha=X(``);function ga(e,t){et(t,!0);let n=zi(t,`params_hash`,19,()=>({})),r=zi(t,`extra_classes`,3,``);function i(e){e.preventDefault(),e.stopPropagation(),fa.refreshPage(t.page,new URLSearchParams(n()))}let a=R(()=>{let e=new URLSearchParams(n()).toString();return t.page+`.html`+(e?`?`:``)+e});var o=ha(),s=U(o),c=e=>{var n=Hr();ai(W(n),()=>t.text_snippet),Z(e,n)},l=e=>{var n=Vr();K(()=>Q(n,t.text)),Z(e,n)};$(s,e=>{t.text_snippet?e(c):e(l,-1)}),M(o),K(()=>{ki(o,`href`,Y(a)),hi(o,1,li(r()))}),Nr(`click`,o,i),Z(e,o),N()}Pr([`click`]);var _a=X(` `);function va(e,t){et(t,!0);let n=zi(t,`lat`,3,null),r=zi(t,`lon`,3,null),i=zi(t,`zoom`,3,null),a=zi(t,`extra_classes`,3,``),o=R(()=>{let e={};return n()&&r()&&(e.lat=n(),e.lon=r(),i()&&e.set(`zoom`,i())),new URLSearchParams(e)}),s=R(()=>{let e=Y(o).toString();return`reverse.html`+(e?`?`:``)+e});function c(e){e.preventDefault(),e.stopPropagation(),fa.refreshPage(`reverse`,Y(o))}var l=_a(),u=U(l,!0);M(l),K(()=>{ki(l,`href`,Y(s)),hi(l,1,li(a())),Q(u,t.text)}),Nr(`click`,l,c),Z(e,l),N()}Pr([`click`]);var ya=[`second`,`minute`,`hour`,`day`,`week`,`month`,`year`];function ba(e,t){if(t===0)return[`just now`,`right now`];var n=ya[Math.floor(t/2)];return e>1&&(n+=`s`),[e+` `+n+` ago`,`in `+e+` `+n]}var xa=[`秒`,`分钟`,`小时`,`天`,`周`,`个月`,`年`];function Sa(e,t){if(t===0)return[`刚刚`,`片刻后`];var n=xa[~~(t/2)];return[e+` `+n+`前`,e+` `+n+`后`]}var Ca={},wa=function(e,t){Ca[e]=t},Ta=function(e){return Ca[e]||Ca.en_US},Ea=[60,60,24,7,365/7/12,12];function Da(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||``).trim().replace(/\.\d+/,``).replace(/-/,`/`).replace(/-/,`/`).replace(/(\d)T(\d)/,`$1 $2`).replace(/Z/,` UTC`).replace(/([+-]\d\d):?(\d\d)/,` $1$2`),new Date(e))}function Oa(e,t){var n=+(e<0);e=Math.abs(e);for(var r=e,i=0;e>=Ea[i]&&i(i===0?9:1)&&(i+=1),t(e,i,r)[n].replace(`%s`,e.toString())}function ka(e,t){return((t?Da(t):new Date)-+Da(e))/1e3}var Aa=function(e,t,n){return Oa(ka(e,n&&n.relativeDate),Ta(t))};wa(`en_US`,ba),wa(`zh_CN`,Sa);var ja=X(``),Ma=X(`Data last updated: `,1),Na=X(`
Loading data from API ...
()
`);function Pa(e,t){et(t,!0);let n=B(void 0),r=R(()=>{let e=fa.lastApiRequestURL;if(e){let t=new URL(e,window.location.origin);return t.searchParams.delete(`polygon_geojson`),t.toString()}});Bi(()=>{fa.fetchFromApi(`status`,{format:`json`},function(e){V(n,e.data_updated,!0)})});var i=Na(),a=U(i);let o;var s=G(a,2),c=U(s),l=U(c),u=e=>{var t=ja(),n=G(U(t)),i=G(n,2),a=G(U(i));Ue(),M(i),M(t),K(()=>{ki(n,`href`,Y(r)),ki(a,`href`,`${Y(r)??``}&debug=1`)}),Z(e,t)};$(l,e=>{Y(r)&&e(u)}),M(c);var d=G(c,2),f=U(d),p=e=>{var t=Ma(),r=G(W(t)),i=U(r,!0);M(r),K(e=>{ki(r,`title`,`${Y(n)??``} (UTC timezone)`),Q(i,e)},[()=>Aa(new Date(Y(n)))]),Z(e,t)};$(f,e=>{Y(n)&&e(p)}),ga(G(f,2),{page:`status`,text:`Details`}),Ue(),M(d),M(s),M(i),K(()=>o=_i(a,``,o,{display:fa.requestProgress===`start`?`block`:`none`})),Z(e,i),N()}var Fa=Ri(()=>fa),Ia=X(`
`);function La(e,t){et(t,!1),Ii();var n=Hr(),r=W(n),i=e=>{var t=Ia(),n=U(t),r=G(n);M(t),K(()=>Q(n,`${Fa().errorMessage??``} `)),Nr(`click`,r,()=>Fa(Fa().errorMessage=null)),Z(e,t)};$(r,e=>{Fa().errorMessage&&e(i)}),Z(e,n),N()}Pr([`click`]);var Ra=new class{#e=B();get center(){return Y(this.#e)}set center(e){V(this.#e,e,!0)}#t=B();get zoom(){return Y(this.#t)}set zoom(e){V(this.#t,e,!0)}#n=B();get viewboxStr(){return Y(this.#n)}set viewboxStr(e){V(this.#n,e,!0)}#r=B();get lastClick(){return Y(this.#r)}set lastClick(e){V(this.#r,e,!0)}#i=B();get mousePos(){return Y(this.#i)}set mousePos(e){V(this.#i,e,!0)}reset(){this.center=void 0,this.zoom=void 0,this.viewboxStr=``,this.lastClick=void 0,this.mousePos=void 0}};function za(){let e=()=>localStorage.getItem(`theme`),t=e=>localStorage.setItem(`theme`,e),n=()=>e()||(window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),r=e=>{e===`auto`?document.documentElement.setAttribute(`data-bs-theme`,window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`):document.documentElement.setAttribute(`data-bs-theme`,e)};r(n());let i=(e,t=!1)=>{let n=document.querySelector(`#bd-theme`);if(!n)return;let r=document.querySelector(`#bd-theme-text`),i=document.querySelector(`[data-bs-theme-value="${e}"]`);document.querySelectorAll(`[data-bs-theme-value]`).forEach(e=>{e.classList.remove(`active`),e.setAttribute(`aria-pressed`,`false`)}),i.classList.add(`active`),i.setAttribute(`aria-pressed`,`true`);let a=`${r.textContent} (${i.dataset.bsThemeValue})`;n.setAttribute(`aria-label`,a),t&&n.focus()};window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{let t=e();t!==`light`&&t!==`dark`&&r(n())}),i(n()),document.querySelectorAll(`[data-bs-theme-value]`).forEach(e=>{e.addEventListener(`click`,()=>{let n=e.getAttribute(`data-bs-theme-value`);t(n),r(n),i(n,!0)})})}var Ba=X(`

`,1),Va=X(``),Ha=X(`

`,1);function Ua(e,t){et(t,!0);let n=e=>{var t=Ba(),n=G(W(t),2),i=U(n,!0);M(n),K(()=>Q(i,r)),Z(e,t)},r=Nominatim_Config.Page_Title,i=Nominatim_Config.Reverse_Only,a=R(()=>fa.page.tab);Bi(za);var o=Ha(),s=W(o),c=U(s),l=U(c),u=U(l),d=U(u);{let e=R(()=>i?`reverse`:`search`);ga(d,{get text_snippet(){return n},get page(){return Y(e)}})}M(u);var f=G(u,4),p=U(f),m=U(p),h=e=>{var t=Va(),n=U(t);{let e=R(()=>Y(a)===`search`?`active`:``);ga(n,{page:`search`,text:`Search`,get extra_classes(){return`nav-link ${Y(e)??``}`}})}M(t),Z(e,t)};$(m,e=>{i||e(h)});var g=G(m,2),_=U(g);{let e=R(()=>Ra.center?.lat),t=R(()=>Ra.center?.lng),n=R(()=>Y(a)===`reverse`?`active`:``);va(_,{get lat(){return Y(e)},get lon(){return Y(t)},text:`Reverse`,get extra_classes(){return`nav-link ${Y(n)??``}`}})}M(g);var v=G(g,2),y=U(v);{let e=R(()=>Y(a)===`details`?`active`:``);ga(y,{page:`details`,text:`Search By ID`,get extra_classes(){return`nav-link ${Y(e)??``}`}})}M(v),M(p),M(f);var x=G(f,2),S=G(U(x),2),ee=U(S);{let e=R(()=>Y(a)===`about`?`active`:``);ga(ee,{page:`about`,text:`About & Help`,get extra_classes(){return`nav-link ${Y(e)??``}`}})}M(S),M(x),M(l),M(c),M(s);var C=G(s,2),w=U(C),T=U(w,!0);M(w),M(C);var te=G(C,2);ai(U(te),()=>t.subheader??b),M(te);var ne=G(te,2);La(ne,{}),Pa(G(ne,2),{}),K(()=>Q(T,Y(a))),Z(e,o),N()}var Wa=Symbol(),Ga=class extends URLSearchParams{#e=B(0);#t=qa();#n=!1;#r(){if(!this.#t||this.#n)return;this.#n=!0;let e=this.toString();this.#t.search=e&&`?${e}`,this.#n=!1}[Wa](e){if(!this.#n){this.#n=!0;for(let e of[...super.keys()])super.delete(e);for(let[t,n]of e)super.append(t,n);an(this.#e),this.#n=!1}}append(e,t){super.append(e,t),this.#r(),an(this.#e)}delete(e,t){var n=super.has(e,t);super.delete(e,t),n&&(this.#r(),an(this.#e))}get(e){return Y(this.#e),super.get(e)}getAll(e){return Y(this.#e),super.getAll(e)}has(e,t){return Y(this.#e),super.has(e,t)}keys(){return Y(this.#e),super.keys()}set(e,t){var n=super.getAll(e).join(``);super.set(e,t),n!==super.getAll(e).join(``)&&(this.#r(),an(this.#e))}sort(){super.sort(),this.#r(),an(this.#e)}toString(){return Y(this.#e),super.toString()}values(){return Y(this.#e),super.values()}entries(){return Y(this.#e),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return Y(this.#e),super.size}},Ka=null;function qa(){return Ka}var Ja=X(``);function Ya(e,t){et(t,!0);function n(e){let t=new Ga;for(let n of e.elements)!n.name||n.disabled||[`submit`,`button`].includes(n.type)||[`checkbox`,`radio`].includes(n.type)&&!n.checked||n.value===void 0||n.value===``||n.name===`dedupe`&&(n.value===1||n.value===`1`)||t.set(n.name,n.value);return t}function r(e){return e.type===`hidden`&&e.value.length&&e.pattern&&!e.value.match(e.pattern)?!1:e.checkValidity()}function i(e){e.preventDefault();let i=e.target;for(let e of i.elements)if(!r(e)){alert(`Invalid input in ${e.name}`);return}fa.refreshPage(t.page,n(i))}var a=Ja(),o=U(a);ai(U(o),()=>t.content??b),M(o),M(a),Mr(`submit`,a,i),Z(e,a),N()}var Xa=X(`Unless languages is set, your browser is using "" (details).`);function Za(e){var t=Xa(),n=G(U(t));n.textContent=navigator.language,Ue(3),M(t),Z(e,t)}var Qa=X(`
`),$a=X(`
`,1),eo=X(`
`,1),to=X(`
Advanced options
`,1);function no(e,t){et(t,!0);let n=e=>{var t=Qa(),n=G(U(t),2);Ei(n);var r=G(n,2);Ei(r);var i=G(r,2);Ei(i);var a=G(i,2);Ei(a);var c=G(a,2);Ei(c),ki(c,`pattern`,`^[a-zA-Z]{2}(,[a-zA-Z]{2})*$`);var l=G(c,2);Ei(l);var u=G(l,2);Ei(u);var d=G(u,2);Ei(d),M(t),K(()=>{Di(n,Y(s)?Ra.viewboxStr:``),Di(r,o().dedupe===0?0:1),Di(i,o().bounded?1:``),Di(a,o()[`accept-language`]||``),Di(c,o().countrycodes||``),Di(l,o().limit||``),Di(u,o().polygon_threshold||``),Di(d,o().layer||``)}),Z(e,t)},r=e=>{var t=$a(),r=W(t),i=U(r);Ei(i),M(r),n(G(r,2)),K(()=>Di(i,o().q||``)),Z(e,t)},i=e=>{var t=eo(),r=W(t),i=U(r);Ei(i),M(r);var a=G(r,2),s=U(a);Ei(s),M(a);var c=G(a,2),l=U(c);Ei(l),M(c);var u=G(c,2),d=U(u);Ei(d),M(u);var f=G(u,2),p=U(f);Ei(p),M(f);var m=G(f,2),h=U(m);Ei(h),M(m);var g=G(m,2),_=U(g);Ei(_),M(g),n(G(g,2)),K(()=>{Di(i,o().amenity||``),Di(s,o().street||``),Di(l,o().city||``),Di(d,o().county||``),Di(p,o().state||``),Di(h,o().country||``),Di(_,o().postalcode||``)}),Z(e,t)},a=zi(t,`bStructuredSearch`,3,!1),o=zi(t,`api_request_params`,19,()=>({})),s=R(()=>!!o().viewbox);function c(e){document.querySelector(`input[name=bounded]`).value=e.target.checked?1:``}function l(e){document.querySelector(`input[name=dedupe]`).value=+!!e.target.checked}function u(e){let t=`input[name="${CSS.escape(e.target.dataset.apiParam)}"]`;document.querySelector(t).value=e.target.value}var d=to(),f=W(d),p=U(f),m=U(p);let h;M(p);var g=G(p,2),_=U(g);let v;M(g),M(f);var y=G(f,2),b=U(y);let x;Ya(U(b),{page:`search`,get content(){return r}}),M(b);var S=G(b,2);let ee;Ya(U(S),{page:`search`,get content(){return i}}),M(S),M(y);var C=G(y,2),w=G(U(C),2),T=U(w),te=U(T),ne=G(U(te),2);Ei(ne),M(te),M(T);var re=G(T,2),ie=U(re),ae=G(U(ie),2);Ei(ae),M(ie),M(re);var E=G(re,2),oe=U(E),D=G(U(oe),2);Ei(D),M(oe),M(E);var se=G(E,2),ce=G(U(se),2);Ei(ce),M(se);var le=G(se,2),ue=G(U(le),2);Ei(ue),M(le);var O=G(le,2),k=G(U(O),2);Ei(k),M(O);var de=G(O,2),fe=G(U(de),2);Ei(fe),ki(fe,`pattern`,`^[a-zA-Z]{2}(,[a-zA-Z]{2})*$`),M(de);var pe=G(de,2),me=G(U(pe),2);Ei(me),M(pe),M(w),Za(G(w,2),{}),M(C),K(()=>{h=hi(m,1,`nav-link svelte-1c3z3yb`,null,h,{active:!a()}),v=hi(_,1,`nav-link svelte-1c3z3yb`,null,v,{active:a()}),x=hi(b,1,`tab-pane`,null,x,{active:!a()}),ee=hi(S,1,`tab-pane`,null,ee,{active:a()}),Oi(ne,o().viewbox),Oi(ae,!!o().bounded),Oi(D,o().dedupe===0?0:1),Di(ce,o().limit||``),Di(ue,o().polygon_threshold||``),Di(k,o()[`accept-language`]||``),Di(fe,o().countrycodes||``),Di(me,o().layer||``)}),Nr(`change`,ne,()=>V(s,!Y(s))),Nr(`change`,ae,c),Nr(`change`,D,l),Nr(`change`,ce,u),Nr(`change`,ue,u),Nr(`change`,k,u),Nr(`change`,fe,u),Nr(`change`,me,u),Z(e,d),N()}Pr([`change`]);var ro=X(` `);function io(e,t){et(t,!0);let n=zi(t,`text`,3,`details`),r=zi(t,`extra_classes`,3,``),i=zi(t,`feature`,3,null),a=R(()=>{let e={};return i()!==null&&(i().osm_type?(e.osmtype=Qi(i().osm_type),e.osmid=i().osm_id,i().class?e.class=i().class:i().category&&(e.class=i().category)):i().place_id&&(e.place_id=i().place_id)),new URLSearchParams(e)}),o=R(()=>{let e=Y(a).toString();return`details.html`+(e?`?`:``)+e});function s(e){e.preventDefault(),e.stopPropagation(),fa.refreshPage(`details`,Y(a))}var c=ro(),l=U(c,!0);M(c),K(()=>{ki(c,`href`,Y(o)),hi(c,1,li(r())),Q(l,n())}),Nr(`click`,c,s),Z(e,c),N()}Pr([`click`]);var ao=X(`
`);function oo(e,t){et(t,!1),Bi(()=>{qi(`theme/welcome.html`,document.getElementById(`welcome`))}),Ii(),Z(e,ao()),N()}var so=X(``);function co(e,t){et(t,!0);let n=R(()=>a(t.aPlace.category,t.aPlace.type)),r=R(()=>`icon for `+t.aPlace.category+` `+t.aPlace.type),i=R(()=>Nominatim_Config.Images_Base_Url+Y(n)+`.p.20.png`);function a(e,t){return{"boundary:administrative":`poi_boundary_administrative`,"place:city":`poi_place_city`,"place:town":`poi_place_town`,"place:village":`poi_place_village`,"place:hamlet":`poi_place_village`,"place:suburb":`poi_place_village`,"place:locality":`poi_place_village`,"place:airport":`transport_airport2`,"aeroway:aerodrome":`transport_airport2`,"railway:station":`transport_train_station2`,"amenity:place_of_worship":`place_of_worship_unknown3`,"amenity:pub":`food_pub`,"amenity:bar":`food_bar`,"amenity:university":`education_university`,"tourism:museum":`tourist_museum`,"amenity:arts_centre":`tourist_art_gallery2`,"tourism:zoo":`tourist_zoo`,"tourism:theme_park":`poi_point_of_interest`,"tourism:attraction":`poi_point_of_interest`,"leisure:golf_course":`sport_golf`,"historic:castle":`tourist_castle`,"amenity:hospital":`health_hospital`,"amenity:school":`education_school`,"amenity:theatre":`tourist_theatre`,"amenity:library":`amenity_library`,"amenity:fire_station":`amenity_firestation3`,"amenity:police":`amenity_police2`,"amenity:bank":`money_bank2`,"amenity:post_office":`amenity_post_office`,"tourism:hotel":`accommodation_hotel2`,"amenity:cinema":`tourist_cinema`,"tourism:artwork":`tourist_art_gallery2`,"historic:archaeological_site":`tourist_archaeological2`,"amenity:doctors":`health_doctors`,"leisure:sports_centre":`sport_leisure_centre`,"leisure:swimming_pool":`sport_swimming_outdoor`,"shop:supermarket":`shopping_supermarket`,"shop:convenience":`shopping_convenience`,"amenity:restaurant":`food_restaurant`,"amenity:fast_food":`food_fastfood`,"amenity:cafe":`food_cafe`,"tourism:guest_house":`accommodation_bed_and_breakfast`,"amenity:pharmacy":`health_pharmacy_dispensing`,"amenity:fuel":`transport_fuel`,"natural:peak":`poi_peak`,"natural:wood":`landuse_coniferous_and_deciduous`,"shop:bicycle":`shopping_bicycle`,"shop:clothes":`shopping_clothes`,"shop:hairdresser":`shopping_hairdresser`,"shop:doityourself":`shopping_diy`,"shop:estate_agent":`shopping_estateagent2`,"shop:car":`shopping_car`,"shop:garden_centre":`shopping_garden_centre`,"shop:car_repair":`shopping_car_repair`,"shop:bakery":`shopping_bakery`,"shop:butcher":`shopping_butcher`,"shop:apparel":`shopping_clothes`,"shop:laundry":`shopping_laundrette`,"shop:beverages":`shopping_alcohol`,"shop:alcohol":`shopping_alcohol`,"shop:optician":`health_opticians`,"shop:chemist":`health_pharmacy`,"shop:gallery":`tourist_art_gallery2`,"shop:jewelry":`shopping_jewelry`,"tourism:information":`amenity_information`,"historic:ruins":`tourist_ruin`,"amenity:college":`education_school`,"historic:monument":`tourist_monument`,"historic:memorial":`tourist_monument`,"historic:mine":`poi_mine`,"tourism:caravan_site":`accommodation_caravan_park`,"amenity:bus_station":`transport_bus_station`,"amenity:atm":`money_atm2`,"tourism:viewpoint":`tourist_view_point`,"tourism:guesthouse":`accommodation_bed_and_breakfast`,"railway:tram":`transport_tram_stop`,"amenity:courthouse":`amenity_court`,"amenity:recycling":`amenity_recycling`,"amenity:dentist":`health_dentist`,"natural:beach":`tourist_beach`,"railway:tram_stop":`transport_tram_stop`,"amenity:prison":`amenity_prison`,"highway:bus_stop":`transport_bus_stop2`}[e+`:`+t]}var o=Hr(),s=W(o),c=e=>{var t=so();K(()=>{ki(t,`src`,Y(i)),ki(t,`alt`,Y(r))}),Z(e,t)};$(s,e=>{Y(n)&&e(c)}),Z(e,o),N()}var lo=X(``),uo=X(`

`,1),fo=X(`
`),po=X(`
`),mo=X(``),ho=X(`
No search results found
`);function go(e,t){et(t,!0);let n=zi(t,`reverse_search`,3,!1),r=zi(t,`current_result`,15),i=zi(t,`previousCount`,3,0),a=zi(t,`moreResultsApiBatches`,19,()=>[]),o=zi(t,`onLoadMore`,3,null),s=B(void 0),c=R(()=>{let e=new URLSearchParams(window.location.search),n=t.results,r=[];e.has(`exclude_place_ids`)&&(r=e.get(`exclude_place_ids`).split(`,`));for(let e=0;e{t.results&&V(s,i())}),An(()=>{r(t.results&&t.results.length>Y(s)?t.results[Y(s)]:null)});var u=Hr(),d=W(u),f=e=>{var r=po(),u=U(r);Qr(u,17,()=>t.results,Jr,(e,t,n)=>{var r=uo(),o=W(r);Qr(o,17,a,Jr,(e,t)=>{var r=Hr(),i=W(r),a=e=>{var n=lo(),r=U(n),i=U(r);M(r);var a=G(r,2);Ue(),M(n),K(()=>{ki(n,`data-request-num`,Y(t).requestNum),ki(r,`href`,Y(t).url),Q(i,`API request #${Y(t).requestNum??``}`),ki(a,`href`,`${Y(t).url??``}&debug=1`)}),Z(e,n)};$(i,e=>{Y(t).beforeIndex===n&&e(a)}),Z(e,r)});var c=G(o,2);let u;ki(c,`data-position`,n);var d=U(c);co(U(d),{get aPlace(){return Y(t)}}),M(d);var f=G(d,2),p=U(f,!0);M(f);var m=G(f,2),h=U(m,!0);M(m);var g=G(m,2),_=U(g);M(g),io(G(g,2),{extra_classes:`btn btn-outline-secondary btn-sm`,get feature(){return Y(t)}}),M(c),K(e=>{u=hi(c,1,`result svelte-3u0x56`,null,u,{highlight:n===Y(s),"result-previous":i()>0&&nta(Y(t))]),Nr(`click`,c,l),Mr(`keypress`,c,l),Z(e,r)});var d=G(u,2),f=e=>{var t=fo(),n=U(t);M(t),Nr(`click`,n,()=>o()(Y(c))),Z(e,t)};$(d,e=>{Y(c)&&!n()&&e(f)}),M(r),Z(e,r)},p=e=>{var t=Hr(),r=W(t),i=e=>{Z(e,mo())},a=e=>{Z(e,ho())};$(r,e=>{n()?e(i):e(a,-1)}),Z(e,t)},m=e=>{oo(e,{})};$(d,e=>{t.results&&t.results.length>0?e(f):t.results?e(p,1):e(m,-1)}),Z(e,u),N()}Pr([`click`]);var _o=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.leaflet={}))})(e,(function(e){var t=`1.9.4`;function n(e){var t,n,r,i;for(n=1,r=arguments.length;n`u`||!L||!L.Mixin)){e=_(e)?e:[e];for(var t=0;t0?Math.floor(e):Math.ceil(e)};E.prototype={clone:function(){return new E(this.x,this.y)},add:function(e){return this.clone()._add(D(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(D(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new E(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new E(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=oe(this.x),this.y=oe(this.y),this},distanceTo:function(e){e=D(e);var t=e.x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return e=D(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=D(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return`Point(`+u(this.x)+`, `+u(this.y)+`)`}};function D(e,t,n){return e instanceof E?e:_(e)?new E(e[0],e[1]):e==null?e:typeof e==`object`&&`x`in e&&`y`in e?new E(e.x,e.y):new E(e,t,n)}function se(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=ce(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},overlaps:function(e){e=ce(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.xt.y&&r.y=t.lat&&i.lat<=n.lat&&r.lng>=t.lng&&i.lng<=n.lng},intersects:function(e){e=ue(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},overlaps:function(e){e=ue(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.latt.lng&&r.lng1,Je=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener(`testPassiveEventSupport`,l,t),window.removeEventListener(`testPassiveEventSupport`,l,t)}catch{}return e}(),Ye=function(){return!!document.createElement(`canvas`).getContext}(),Xe=!!(document.createElementNS&&ve(`svg`).createSVGRect),Ze=!!Xe&&(function(){var e=document.createElement(`div`);return e.innerHTML=``,(e.firstChild&&e.firstChild.namespaceURI)===`http://www.w3.org/2000/svg`})(),Qe=!Xe&&function(){try{var e=document.createElement(`div`);e.innerHTML=``;var t=e.firstChild;return t.style.behavior=`url(#default#VML)`,t&&typeof t.adj==`object`}catch{return!1}}(),$e=navigator.platform.indexOf(`Mac`)===0,et=navigator.platform.indexOf(`Linux`)===0;function N(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var P={ie:xe,ielt9:Se,edge:Ce,webkit:we,android:Te,android23:Ee,androidStock:Oe,opera:ke,chrome:Ae,gecko:je,safari:Me,phantom:Ne,opera12:Pe,win:Fe,ie3d:Ie,webkit3d:Le,gecko3d:Re,any3d:j,mobile:ze,mobileWebkit:Be,mobileWebkit3d:Ve,msPointer:He,pointer:M,touch:We,touchNative:Ue,mobileOpera:Ge,mobileGecko:Ke,retina:qe,passiveEvents:Je,canvas:Ye,svg:Xe,vml:Qe,inlineSvg:Ze,mac:$e,linux:et},tt=P.msPointer?`MSPointerDown`:`pointerdown`,nt=P.msPointer?`MSPointerMove`:`pointermove`,rt=P.msPointer?`MSPointerUp`:`pointerup`,it=P.msPointer?`MSPointerCancel`:`pointercancel`,at={touchstart:tt,touchmove:nt,touchend:rt,touchcancel:it},ot={touchstart:gt,touchmove:ht,touchend:ht,touchcancel:ht},st={},ct=!1;function lt(e,t,n){return t===`touchstart`&&mt(),ot[t]?(n=ot[t].bind(this,n),e.addEventListener(at[t],n,!1),n):(console.warn(`wrong event specified:`,t),l)}function ut(e,t,n){if(!at[t]){console.warn(`wrong event specified:`,t);return}e.removeEventListener(at[t],n,!1)}function dt(e){st[e.pointerId]=e}function ft(e){st[e.pointerId]&&(st[e.pointerId]=e)}function pt(e){delete st[e.pointerId]}function mt(){ct||=(document.addEventListener(tt,dt,!0),document.addEventListener(nt,ft,!0),document.addEventListener(rt,pt,!0),document.addEventListener(it,pt,!0),!0)}function ht(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||`mouse`)){for(var n in t.touches=[],st)t.touches.push(st[n]);t.changedTouches=[t],e(t)}}function gt(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&on(t),ht(e,t)}function F(e){var t={},n,r;for(r in e)n=e[r],t[r]=n&&n.bind?n.bind(e):n;return e=t,t.type=`dblclick`,t.detail=2,t.isTrusted=!1,t._simulated=!0,t}var _t=200;function vt(e,t){e.addEventListener(`dblclick`,t);var n=0,r;function i(e){if(e.detail!==1){r=e.detail;return}if(!(e.pointerType===`mouse`||e.sourceCapabilities&&!e.sourceCapabilities.firesTouchEvents)){var i=cn(e);if(!(i.some(function(e){return e instanceof HTMLLabelElement&&e.attributes.for})&&!i.some(function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement}))){var a=Date.now();a-n<=_t?(r++,r===2&&t(F(e))):r=1,n=a}}}return e.addEventListener(`click`,i),{dblclick:t,simDblclick:i}}function yt(e,t){e.removeEventListener(`dblclick`,t.dblclick),e.removeEventListener(`click`,t.simDblclick)}var bt=It([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),xt=It([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]),St=xt===`webkitTransition`||xt===`OTransition`?xt+`End`:`transitionend`;function Ct(e){return typeof e==`string`?document.getElementById(e):e}function wt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||n===`auto`)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return n===`auto`?null:n}function Tt(e,t,n){var r=document.createElement(e);return r.className=t||``,n&&n.appendChild(r),r}function Et(e){var t=e.parentNode;t&&t.removeChild(e)}function Dt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Ot(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function kt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function At(e,t){if(e.classList!==void 0)return e.classList.contains(t);var n=Nt(e);return n.length>0&&RegExp(`(^|\\s)`+t+`(\\s|$)`).test(n)}function I(e,t){if(e.classList!==void 0)for(var n=f(t),r=0,i=n.length;r0?2*window.devicePixelRatio:1;function dn(e){return P.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/un:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function fn(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch{return!1}return n!==e}var pn={__proto__:null,on:z,off:$t,stopPropagation:nn,disableScrollPropagation:rn,disableClickPropagation:an,preventDefault:on,stop:sn,getPropagationPath:cn,getMousePosition:ln,getWheelDelta:dn,isExternalTarget:fn,addListener:z,removeListener:$t},mn=ae.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=zt(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire(`start`),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=w(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=this._duration*1e3;tthis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,ue(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){t||={};var n=D(t.paddingTopLeft||t.padding||[0,0]),r=D(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=this.project(e),o=this.getPixelBounds(),s=ce([o.min.add(n),o.max.subtract(r)]),c=s.getSize();if(!s.contains(a)){this._enforcingBounds=!0;var l=a.subtract(s.getCenter()),u=s.extend(a).getSize().subtract(c);i.x+=l.x<0?-u.x:u.x,i.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},e===!0?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),a=t.divideBy(2).round(),o=r.divideBy(2).round(),s=a.subtract(o);return!s.x&&!s.y?this:(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire(`move`),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,`moveend`),200)):this.fire(`moveend`)),this.fire(`resize`,{oldSize:t,newSize:r}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire(`viewreset`),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!(`geolocation`in navigator))return this._handleGeolocationError({code:0,message:`Geolocation not supported.`}),this;var t=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(t===1?`permission denied`:t===2?`position unavailable`:`timeout`);this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire(`locationerror`,{code:t,message:`Geolocation error: `+n+`.`})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=e.coords.latitude,n=e.coords.longitude,r=new O(t,n),i=r.toBounds(e.coords.accuracy*2),a=this._locateOptions;if(a.setView){var o=this.getBoundsZoom(i);this.setView(r,a.maxZoom?Math.min(o,a.maxZoom):o)}var s={latlng:r,bounds:i,timestamp:e.timestamp};for(var c in e.coords)typeof e.coords[c]==`number`&&(s[c]=e.coords[c]);this.fire(`locationfound`,s)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off(`moveend`,this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error(`Map container is being reused by another instance`);try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}for(var e in this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Et(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&=(T(this._resizeRequest),null),this._clearHandlers(),this._loaded&&this.fire(`unload`),this._layers)this._layers[e].remove();for(e in this._panes)Et(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=Tt(`div`,`leaflet-pane`+(e?` leaflet-`+e.replace(`Pane`,``)+`-pane`:``),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new le(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=ue(e),n=D(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),c=this.getSize().subtract(n),l=ce(this.project(s,r),this.project(o,r)).getSize(),u=P.any3d?this.options.zoomSnap:1,d=c.x/l.x,f=c.y/l.y,p=t?Math.max(d,f):Math.min(d,f);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(a,r))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new se(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e==`string`?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=t===void 0?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=t===void 0?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.latLngToPoint(k(e),t)},unproject:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.pointToLatLng(D(e),t)},layerPointToLatLng:function(e){var t=D(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(k(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(k(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(ue(e))},distance:function(e,t){return this.options.crs.distance(k(e),k(t))},containerPointToLayerPoint:function(e){return D(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return D(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(D(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(k(e)))},mouseEventToContainerPoint:function(e){return ln(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=Ct(e);if(!t)throw Error(`Map container not found.`);if(t._leaflet_id)throw Error(`Map container is already initialized.`);z(t,`scroll`,this._onScroll,this),this._containerId=o(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&P.any3d,I(e,`leaflet-container`+(P.touch?` leaflet-touch`:``)+(P.retina?` leaflet-retina`:``)+(P.ielt9?` leaflet-oldie`:``)+(P.safari?` leaflet-safari`:``)+(this._fadeAnimated?` leaflet-fade-anim`:``));var t=wt(e,`position`);t!==`absolute`&&t!==`relative`&&t!==`fixed`&&t!==`sticky`&&(e.style.position=`relative`),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane(`mapPane`,this._container),Rt(this._mapPane,new E(0,0)),this.createPane(`tilePane`),this.createPane(`overlayPane`),this.createPane(`shadowPane`),this.createPane(`markerPane`),this.createPane(`tooltipPane`),this.createPane(`popupPane`),this.options.markerZoomAnimation||(I(e.markerPane,`leaflet-zoom-hide`),I(e.shadowPane,`leaflet-zoom-hide`))},_resetView:function(e,t,n){Rt(this._mapPane,new E(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire(`viewprereset`);var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire(`viewreset`),r&&this.fire(`load`)},_moveStart:function(e,t){return e&&this.fire(`zoomstart`),t||this.fire(`movestart`),this},_move:function(e,t,n,r){t===void 0&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire(`zoom`,n):((i||n&&n.pinch)&&this.fire(`zoom`,n),this.fire(`move`,n)),this},_moveEnd:function(e){return e&&this.fire(`zoomend`),this.fire(`moveend`)},_stop:function(){return T(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Rt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error(`Set map center and zoom first.`)},_initEvents:function(e){this._targets={},this._targets[o(this._container)]=this;var t=e?$t:z;t(this._container,`click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup`,this._handleDOMEvent,this),this.options.trackResize&&t(window,`resize`,this._onResize,this),P.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,`moveend`,this._onMoveEnd)},_onResize:function(){T(this._resizeRequest),this._resizeRequest=w(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n=[],r,i=t===`mouseout`||t===`mouseover`,a=e.target||e.srcElement,s=!1;a;){if(r=this._targets[o(a)],r&&(t===`click`||t===`preclick`)&&this._draggableMoved(r)){s=!0;break}if(r&&r.listens(t,!0)&&(i&&!fn(a,e)||(n.push(r),i))||a===this._container)break;a=a.parentNode}return!n.length&&!s&&!i&&this.listens(t,!0)&&(n=[this]),n},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||e.type===`click`&&this._isClickDisabled(t))){var n=e.type;n===`mousedown`&&qt(t),this._fireDOMEvent(e,n)}},_mouseEvents:[`click`,`dblclick`,`mouseover`,`mouseout`,`contextmenu`],_fireDOMEvent:function(e,t,r){if(e.type===`click`){var i=n({},e);i.type=`preclick`,this._fireDOMEvent(i,i.type,r)}var a=this._findEventTargets(e,t);if(r){for(var o=[],s=0;s0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=P.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire(`move`)},_onPanTransitionEnd:function(){jt(this._mapPane,`leaflet-pan-anim`),this.fire(`moveend`)},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return(t&&t.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=Tt(`div`,`leaflet-proxy leaflet-zoom-animated`);this._panes.mapPane.appendChild(e),this.on(`zoomanim`,function(e){var t=bt,n=this._proxy.style[t];Lt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on(`load moveend`,this._animMoveEnd,this),this._on(`unload`,this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Et(this._proxy),this.off(`load moveend`,this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();Lt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf(`transform`)>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName(`leaflet-zoom-animated`).length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n||={},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return n.animate!==!0&&!this.getSize().contains(i)?!1:(w(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)},this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,I(this._mapPane,`leaflet-zoom-anim`)),this.fire(`zoomanim`,{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||=this._zoom!==this._animateToZoom,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&jt(this._mapPane,`leaflet-zoom-anim`),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire(`zoom`),delete this._tempFireZoomEvent,this.fire(`move`),this._moveEnd(!0))}});function hn(e,t){return new H(e,t)}var gn=ne.extend({options:{position:`topright`},initialize:function(e){p(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return I(t,`leaflet-control`),n.indexOf(`bottom`)===-1?r.appendChild(t):r.insertBefore(t,r.firstChild),this._map.on(`unload`,this.remove,this),this},remove:function(){return this._map?(Et(this._container),this.onRemove&&this.onRemove(this._map),this._map.off(`unload`,this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),U=function(e){return new gn(e)};H.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t=`leaflet-`,n=this._controlContainer=Tt(`div`,t+`control-container`,this._container);function r(r,i){var a=t+r+` `+t+i;e[r+i]=Tt(`div`,a,n)}r(`top`,`left`),r(`top`,`right`),r(`bottom`,`left`),r(`bottom`,`right`)},_clearControlPos:function(){for(var e in this._controlCorners)Et(this._controlCorners[e]);Et(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var W=gn.extend({options:{collapsed:!0,position:`topright`,autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n1,this._baseLayersList.style.display=e?``:`none`),this._separator.style.display=t&&e?``:`none`,this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(o(e.target)),n=t.overlay?e.type===`add`?`overlayadd`:`overlayremove`:e.type===`add`?`baselayerchange`:null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n=``,r=document.createElement(`div`);return r.innerHTML=n,r.firstChild},_addItem:function(e){var t=document.createElement(`label`),n=this._map.hasLayer(e.layer),r;e.overlay?(r=document.createElement(`input`),r.type=`checkbox`,r.className=`leaflet-control-layers-selector`,r.defaultChecked=n):r=this._createRadioElement(`leaflet-base-layers_`+o(this),n),this._layerControlInputs.push(r),r.layerId=o(e.layer),z(r,`click`,this._onInputClick,this);var i=document.createElement(`span`);i.innerHTML=` `+e.name;var a=document.createElement(`span`);return t.appendChild(a),a.appendChild(r),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(t),this._checkDisabledLayers(),t},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,t,n,r=[],i=[];this._handlingClick=!0;for(var a=e.length-1;a>=0;a--)t=e[a],n=this._getLayer(t.layerId).layer,t.checked?r.push(n):t.checked||i.push(n);for(a=0;a=0;i--)t=e[i],n=this._getLayer(t.layerId).layer,t.disabled=n.options.minZoom!==void 0&&rn.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,z(e,`click`,on),this.expand();var t=this;setTimeout(function(){$t(e,`click`,on),t._preventClick=!1})}}),G=function(e,t,n){return new W(e,t,n)},_n=gn.extend({options:{position:`topleft`,zoomInText:``,zoomInTitle:`Zoom in`,zoomOutText:``,zoomOutTitle:`Zoom out`},onAdd:function(e){var t=`leaflet-control-zoom`,n=Tt(`div`,t+` leaflet-bar`),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+`-in`,n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+`-out`,n,this._zoomOut),this._updateDisabled(),e.on(`zoomend zoomlevelschange`,this._updateDisabled,this),n},onRemove:function(e){e.off(`zoomend zoomlevelschange`,this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=Tt(`a`,n,r);return a.innerHTML=e,a.href=`#`,a.title=t,a.setAttribute(`role`,`button`),a.setAttribute(`aria-label`,t),an(a),z(a,`click`,sn),z(a,`click`,i,this),z(a,`click`,this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t=`leaflet-disabled`;jt(this._zoomInButton,t),jt(this._zoomOutButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`false`),this._zoomOutButton.setAttribute(`aria-disabled`,`false`),(this._disabled||e._zoom===e.getMinZoom())&&(I(this._zoomOutButton,t),this._zoomOutButton.setAttribute(`aria-disabled`,`true`)),(this._disabled||e._zoom===e.getMaxZoom())&&(I(this._zoomInButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`true`))}});H.mergeOptions({zoomControl:!0}),H.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _n,this.addControl(this.zoomControl))});var vn=function(e){return new _n(e)},yn=gn.extend({options:{position:`bottomleft`,maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t=`leaflet-control-scale`,n=Tt(`div`,t),r=this.options;return this._addScales(r,t+`-line`,n),e.on(r.updateWhenIdle?`moveend`:`move`,this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?`moveend`:`move`,this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=Tt(`div`,t,n)),e.imperial&&(this._iScale=Tt(`div`,t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+` m`:t/1e3+` km`;this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t=e*3.2808399,n,r,i;t>5280?(n=t/5280,r=this._getRoundNum(n),this._updateScale(this._iScale,r+` mi`,r/n)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+` ft`,i/t))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+`px`,e.innerHTML=t},_getRoundNum:function(e){var t=10**((Math.floor(e)+``).length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,t*n}}),bn=function(e){return new yn(e)},xn=gn.extend({options:{position:`bottomright`,prefix:``+(P.inlineSvg?` `:``)+`Leaflet`},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=Tt(`div`,`leaflet-control-attribution`),an(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on(`layeradd`,this._addAttribution,this),this._container},onRemove:function(e){e.off(`layeradd`,this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once(`remove`,function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(`, `)),this._container.innerHTML=n.join(` `)}}});H.mergeOptions({attributionControl:!0}),H.addInitHook(function(){this.options.attributionControl&&new xn().addTo(this)}),gn.Layers=W,gn.Zoom=_n,gn.Scale=yn,gn.Attribution=xn,U.layers=G,U.zoom=vn,U.scale=bn,U.attribution=function(e){return new xn(e)};var Sn=ne.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Sn.addTo=function(e,t){return e.addHandler(t,this),this};var Cn={Events:ie},wn=P.touch?`touchstart mousedown`:`mousedown`,Tn=ae.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){p(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||=(z(this._dragStartTarget,wn,this._onDown,this),!0)},disable:function(){this._enabled&&(Tn._dragging===this&&this.finishDrag(!0),$t(this._dragStartTarget,wn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!At(this._element,`leaflet-zoom-anim`))){if(e.touches&&e.touches.length!==1){Tn._dragging===this&&this.finishDrag();return}if(!(Tn._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(Tn._dragging=this,this._preventOutline&&qt(this._element),Wt(),Bt(),!this._moving)){this.fire(`down`);var t=e.touches?e.touches[0]:e,n=Yt(this._element);this._startPoint=new E(t.clientX,t.clientY),this._startPos=zt(this._element),this._parentScale=Xt(n);var r=e.type===`mousedown`;z(document,r?`mousemove`:`touchmove`,this._onMove,this),z(document,r?`mouseup`:`touchend touchcancel`,this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var t=e.touches&&e.touches.length===1?e.touches[0]:e,n=new E(t.clientX,t.clientY)._subtract(this._startPoint);!n.x&&!n.y||Math.abs(n.x)+Math.abs(n.y)a&&(o=s,a=c);a>n&&(t[o]=1,Pn(e,t,n,r,o),Pn(e,t,n,o,i))}function Fn(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;rt&&(n.push(e[r]),i=r);return it.max.x&&(n|=2),e.yt.max.y&&(n|=8),n}function zn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function Bn(e,t,n,r){var i=t.x,a=t.y,o=n.x-i,s=n.y-a,c=o*o+s*s,l;return c>0&&(l=((e.x-i)*o+(e.y-a)*s)/c,l>1?(i=n.x,a=n.y):l>0&&(i+=o*l,a+=s*l)),o=e.x-i,s=e.y-a,r?o*o+s*s:new E(i,a)}function Vn(e){return!_(e[0])||typeof e[0][0]!=`object`&&e[0][0]!==void 0}function Hn(e){return console.warn(`Deprecated use of _flat, please use L.LineUtil.isFlat instead.`),Vn(e)}function Un(e,t){var n,r,i,a,o,s,c,l;if(!e||e.length===0)throw Error(`latlngs not passed`);Vn(e)||(console.warn(`latlngs are not flat! Only the first ring will be used`),e=e[0]);var u=k([0,0]),d=ue(e);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=On(e));var f=e.length,p=[];for(n=0;nr){c=(a-r)/i,l=[s.x-c*(s.x-o.x),s.y-c*(s.y-o.y)];break}var h=t.unproject(D(l));return k([h.lat+u.lat,h.lng+u.lng])}var Wn={__proto__:null,simplify:An,pointToSegmentDistance:jn,closestPointOnSegment:Mn,clipSegment:K,_getEdgeIntersection:Ln,_getBitCode:Rn,_sqClosestPointOnSegment:Bn,isFlat:Vn,_flat:Hn,polylineCenter:Un},Gn={project:function(e){return new E(e.lng,e.lat)},unproject:function(e){return new O(e.y,e.x)},bounds:new se([-180,-90],[180,90])},Kn={R:6378137,R_MINOR:6356752.314245179,bounds:new se([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/((1-o)/(1+o))**(a/2);return r=-n*Math.log(Math.max(s,1e-10)),new E(e.lng*t*n,r)},unproject:function(e){for(var t=180/Math.PI,n=this.R,r=this.R_MINOR/n,i=Math.sqrt(1-r*r),a=Math.exp(-e.y/n),o=Math.PI/2-2*Math.atan(a),s=0,c=.1,l;s<15&&Math.abs(c)>1e-7;s++)l=i*Math.sin(o),l=((1-l)/(1+l))**(i/2),c=Math.PI/2-2*Math.atan(a*l)-o,o+=c;return new O(o*t,e.x*t/n)}},qn={__proto__:null,LonLat:Gn,Mercator:Kn,SphericalMercator:me},Jn=n({},fe,{code:`EPSG:3395`,projection:Kn,transformation:function(){var e=.5/(Math.PI*Kn.R);return ge(e,.5,-e,.5)}()}),Yn=n({},fe,{code:`EPSG:4326`,projection:Gn,transformation:ge(1/180,1,-1/180,.5)}),Xn=n({},de,{projection:Gn,transformation:ge(1,0,-1,0),scale:function(e){return 2**e},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});de.Earth=fe,de.EPSG3395=Jn,de.EPSG3857=_e,de.EPSG900913=A,de.EPSG4326=Yn,de.Simple=Xn;var Zn=ae.extend({options:{pane:`overlayPane`,attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[o(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[o(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once(`remove`,function(){t.off(n,this)},this)}this.onAdd(t),this.fire(`add`),t.fire(`layeradd`,{layer:this})}}});H.include({addLayer:function(e){if(!e._layerAdd)throw Error(`The provided object is not a Layer.`);var t=o(e);return this._layers[t]?this:(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var t=o(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire(`layerremove`,{layer:e}),e.fire(`remove`)),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return o(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){e=e?_(e)?e:[e]:[];for(var t=0,n=e.length;tthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&t[0]instanceof O&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){dr.prototype._setLatLngs.call(this,e),Vn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Vn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new E(t,t);if(e=new se(e.min.subtract(n),e.max.add(n)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var r=0,i=this._rings.length,a;re.y!=i.y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(t=!t);return t||dr.prototype._containsPoint.call(this,e,!0)}});function mr(e,t){return new pr(e,t)}var hr=q.extend({initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t=_(e)?e:e.features,n,r,i;if(t){for(n=0,r=t.length;n0&&i.push(i[0].slice()),i}function xr(e,t){return e.feature?n({},e.feature,{geometry:t}):Sr(t)}function Sr(e){return e.type===`Feature`||e.type===`FeatureCollection`?e:{type:`Feature`,properties:{},geometry:e}}var Cr={toGeoJSON:function(e){return xr(this,{type:`Point`,coordinates:br(this.getLatLng(),e)})}};ir.include(Cr),lr.include(Cr),sr.include(Cr),dr.include({toGeoJSON:function(e){var t=!Vn(this._latlngs),n=Y(this._latlngs,+!!t,!1,e);return xr(this,{type:(t?`Multi`:``)+`LineString`,coordinates:n})}}),pr.include({toGeoJSON:function(e){var t=!Vn(this._latlngs),n=t&&!Vn(this._latlngs[0]),r=Y(this._latlngs,n?2:+!!t,!0,e);return t||(r=[r]),xr(this,{type:(n?`Multi`:``)+`Polygon`,coordinates:r})}}),Qn.include({toMultiPoint:function(e){var t=[];return this.eachLayer(function(n){t.push(n.toGeoJSON(e).geometry.coordinates)}),xr(this,{type:`MultiPoint`,coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(t===`MultiPoint`)return this.toMultiPoint(e);var n=t===`GeometryCollection`,r=[];return this.eachLayer(function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=Sr(i);a.type===`FeatureCollection`?r.push.apply(r,a.features):r.push(a)}}}),n?xr(this,{geometries:r,type:`GeometryCollection`}):{type:`FeatureCollection`,features:r}}});function wr(e,t){return new hr(e,t)}var Tr=wr,Er=Zn.extend({options:{opacity:1,alt:``,interactive:!1,crossOrigin:!1,errorOverlayUrl:``,zIndex:1,className:``},initialize:function(e,t,n){this._url=e,this._bounds=ue(t),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(I(this._image,`leaflet-interactive`),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Et(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&Ot(this._image),this},bringToBack:function(){return this._map&&kt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=ue(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName===`IMG`,t=this._image=e?this._url:Tt(`img`);if(I(t,`leaflet-image-layer`),this._zoomAnimated&&I(t,`leaflet-zoom-animated`),this.options.className&&I(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onload=i(this.fire,this,`load`),t.onerror=i(this._overlayOnError,this,`error`),(this.options.crossOrigin||this.options.crossOrigin===``)&&(t.crossOrigin=this.options.crossOrigin===!0?``:this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=t.src;return}t.src=this._url,t.alt=this.options.alt},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;Lt(this._image,n,t)},_reset:function(){var e=this._image,t=new se(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();Rt(e,t.min),e.style.width=n.x+`px`,e.style.height=n.y+`px`},_updateOpacity:function(){Pt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire(`error`);var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),Dr=function(e,t,n){return new Er(e,t,n)},Or=Er.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName===`VIDEO`,t=this._image=e?this._url:Tt(`video`);if(I(t,`leaflet-image-layer`),this._zoomAnimated&&I(t,`leaflet-zoom-animated`),this.options.className&&I(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onloadeddata=i(this.fire,this,`load`),e){for(var n=t.getElementsByTagName(`source`),r=[],a=0;a0?r:[t.src];return}_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,`objectFit`)&&(t.style.objectFit=`fill`),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var o=0;o