1"use strict";(self.webpackChunkkunstmaan_edition=self.webpackChunkkunstmaan_edition||[]).push([[2685],{2685:(t,e,a)=>{a.d(e,{default:()=>s});var n=a(2891),i=a(5471);const s=class extends n.xI{static values={from:String,to:String,longUnit:String,shortUnit:String,translations:Object};connect(){this.locale=document.documentElement.lang||"en",this.updateDistance()}updateDistance(){if(!this.fromValue||!this.toValue)return;const[t,e]=this.fromValue.split(",").map(parseFloat),[a,n]=this.toValue.split(",").map(parseFloat),s=(0,i.A)({latitude:t,longitude:e},{latitude:a,longitude:n});let l;if(0===s&&this.translationsValue[0])l=this.translationsValue[0];else{const t=s<1?this.shortUnitValue:this.longUnitValue;l=`${(s<1?(1e3*s).toFixed(0):s.toFixed(1)).toLocaleString(this.locale)}${t} ${this.translationsValue.default}`}this.element.textContent=l}}},5471:(t,e,a)=>{a.d(e,{A:()=>n});const n=function(t,e){const a=t=>t*Math.PI/180,n=a(e.latitude-t.latitude),i=a(e.longitude-t.longitude),s=Math.sin(n/2)**2+Math.cos(a(t.latitude))*Math.cos(a(e.latitude))*Math.sin(i/2)**2;return 2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))*6371}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.