Bing Maps


=f;i=e+(o-e)*u/f;s&&(t.stop(),i=o);n(c,i);s&&r&&r()};t.getInterval=function(){return s}};var sj_fader=function(){return new sj_anim(function(n,t){sj_so(n,t)})};sj_fade=new function(){function n(n,t,i,r,u,f,e){var o=n.fader;if(o){if(e==n.fIn)return}else o=sj_fader(),n.fader=o;u&&u();o.init(n,t,i,r,f);n.fIn=e}this.up=function(t,i,r){function u(){t.style.visibility=”visible”}n(t,0,100,i,u,r,1)};this.down=function(t,i,r){function u(){t.style.visibility=”hidden”;r&&r()}n(t,100,0,i,0,u,0)}}; //]]]]>]]>0&&r!==”navigationStart”&&r!==s&&u.mark(r,h);_G.FCT&&u.mark(“FN”,_G.FCT);_G.BCT&&u.mark(“BN”,_G.BCT)}u.record(“nav”,s in f?f[s]:performance[s].type)}e=”connection”;c=””;_w.navigator&&navigator[e]&&(c=’,”net”:”‘+navigator[e].type+'”‘,navigator[e].downlinkMax&&(c+=’,”dlMax”:”‘+navigator[e].downlinkMax+'”‘));_G.PPImg=new Image;_G.PPImg.src=_G.lsUrl+’&Type=Event.CPT&DATA={“pp”:{“S”:”‘+(t||”L”)+'”,’+o.join(“,”)+’,”CT”:’+(n-_G.ST)+’,”IL”:’+_d.images.length+”}”+(_G.C1?”,”+_G.C1:””)+c+”}”+(_G.P?”&P=”+_G.P:””)+(_G.DA?”&DA=”+_G.DA:””)+(_G.MN?”&MN=”+_G.MN:””);_G.PPS=1;sb_st(function(){u&&u.flush();sj_evt.fire(“onPP”);sj_evt.fire(_w.p1)},1)}};_w.onbeforeunload=function(){si_PP(new Date,”A”)};sj_evt.bind(“ajax.requestSent”,function(){window.perf&&perf.reset()});var sj_log=function(n,t,i){var r=new RegExp(‘”‘,”g”);(new Image).src=_G.lsUrl+’&Type=Event.ClientInst&DATA=[{“T”:”‘+n+'”,”FID”:”CI”,”Name”:”‘+t+'”,”Text”:”‘+escape(i.replace(r,””))+'”}]’};var BM=BM||{};BM.rules={“.b_navbar”:[0,0,0],”.taskbar”:[-1,-1,0],”.searchbox”:[12,12,0],”.mapContainer”:[0,-1,0],”.b_scopebar ul li”:[-1,-1,1],”.b_slogo”:[-1,-1,0],”.actions”:[-1,-1,1],”.b_footer”:[0,-1,0],”.MicrosoftMap”:[-1,-1,0],”.fdbLinks”:[-1,-1,0],”img,div[data-src]”:[-1,-1,0],iframe:[-1,-1,0]};var BM=BM||{};(function(n){function u(n,u){n in t||(t[n]=[]);!u.compute||n in r||(r[n]=u.compute);!u.unload||n in i||(i[n]=u.unload);u.load&&u.load()}function f(n,i){t[n].push({t:s(),i:i})}function e(n){return n in i&&i[n](),n in t?t[n]:void 0}function o(){for(var n in r)r[n]()}function s(){return window.performance&&performance.now?Math.round(performance.now()):new Date-window.si_ST}var t={},i={},r={};n.wireup=u;n.enqueue=f;n.dequeue=e;n.trigger=o})(BM);(function(n){function i(){var i=document.documentElement,r=document.body,u=”innerWidth”in window?window.innerWidth:i.clientWidth,f=”innerHeight”in window?window.innerHeight:i.clientHeight,e=window.pageXOffset||i.scrollLeft,o=window.pageYOffset||i.scrollTop,s=document.visibilityState||”default”;n.enqueue(t,{x:e,y:o,w:u,h:f,dw:r.clientWidth,dh:r.clientHeight,v:s})}var t=”V”;n.wireup(t,{load:null,compute:i,unload:null})})(BM);(function(n){function i(){var e,o,u,s,f,r;if(document.querySelector&&document.querySelectorAll){e=[];o=n.rules;for(u in o)for(s=o[u],u+=!s[2]?””:” >*”,f=document.querySelectorAll(u),r=0;r]]>16)return;window[s]=r;var l=n.error||n,b='”noMessage”‘,k=n.filename,d=n.lineno,g=n.colno,nt=n.extra,a=l.severity||”Error”,tt=l.message||b,i=l.stack,t='”‘+escape(tt.replace(/”/g,””))+'”‘,it=new RegExp(regexEscape(getHref()),”g”);if(i){for(y=/(([^)]+):[0-9]+:[0-9]+)/g,u={};(p=y.exec(i))!==null;)f=p[1],u[f]?u[f]++:u[f]=1;e=0;for(h in u)u[h]>1&&(c=regexEscape(h),w=new RegExp(c,”g”),i=i.replace(w,e),i+=”#”+e+”=”+c,e++);i=i.replace(it,”self”).replace(/”/g,””);t+=’,”Stack”:”‘+(escape(i)+'”‘)}if(k&&(t+=’,”Meta”:”‘+escape(k.replace(it,”self”))+'”‘),d&&(t+=’,”Line”:”‘+d+'”‘),g&&(t+=’,”Char”:”‘+g+'”‘),nt&&(t+=’,”ExtraInfo”:”‘+nt+'”‘),tt===b)if(a=”Warning”,t+=’,”ObjectToString”:”‘+n.toString()+'”‘,JSON&&JSON.stringify)t+=’,”JSON”:”‘+escape(JSON.stringify(n))+'”‘;else for(o in n)n.hasOwnProperty(o)&&(t+=’,”‘+o+'”:”‘+n[o]+'”‘);var rt=(new Date).getTime(),ut='”T”:”CI.’+a+'”,”FID”:”CI”,”Name”:”JS’+a+'”,”Text”:’+t+””,ft=”Event.ClientInst”+_G.IG+””+rt+””,et=””+ft+””+rt+””,v=new XMLHttpRequest;v.open(“POST”,”/fd/ls/lsp.aspx?”,!0);v.setRequestHeader(“Content-Type”,”text/xml”);v.send(et);typeof sj_evt!=”undefined”&&sj_evt.fire(“ErrorInstrumentation”,t)}catch(ot){logMetaError(“Failed to execute error handler. “+ot.message)}}window.addEventListener&&window.addEventListener(“error”,jsErrorHandler,!1);window.addEventListener||window.onerror||(window.onerror=function(n,t,i,r,u){var f=””,e;typeof n==”object”&&n.srcElement&&n.srcElement.src?f=””ScriptSrc = ‘”+escape(n.srcElement.src.replace(/’/g,””))+”‘””:(n=””+n,f='”‘+escape(n.replace(/”/g,””))+'”,”Meta”:”‘+escape(t)+'”,”Line”:’+i+’,”Char”: ‘+r,u&&u.stack&&(e=new RegExp(regexEscape(getHref()),”g”),f+=’,”Stack”:”‘+escape(u.stack.replace(e,”self”).replace(/”/g,””)+'”‘)));(new Image).src=_G.lsUrl+’&Type=Event.ClientInst&DATA=[{“T”:”CI.GetError”,”FID”:”CI”,”Name”:”JSGetError”,”Text”:’+f+”}]”;typeof sj_evt!=”undefined”&&sj_evt.fire(“ErrorInstrumentation”,f)})}catch(e){logMetaError(“Failed to bind error handler “+e.message)};var sj_b=_d.body;(function(n){var i,r,t;if(document.querySelector){i=[];r=”ad”;function u(){var w=sb_gt(),l=document.documentElement,s=document.body,t=0,r=-1,b=l.clientHeight,a=[“#b_results .”+_G.adc,”.sb_adsWv2″,”.ads”],n,f,e,p,c,o,u;if(s){n=0;f=document.querySelector(“#b_pole .pa_carousel_mlo”);f&&(n=f.offsetHeight,r=f.offsetTop);var v=document.querySelector(“#b_results #productAdCarousel”),h=document.querySelector(“#b_results .pa_b_supertop”),y=document.querySelector(“#b_results .bn_wide”);for(h?(r=h.offsetTop,n=h.offsetHeight):y?n+=y.offsetHeight:v&&(n+=v.offsetHeight),t=n,e=0;e0&&n.hostname.length>0&&n.hostname!==location.hostname&&!e(n.hostname)?(sj_log(“CI.AntiMalware”,i,u.substr(0,1)+”:”+n.href.substr(0,r)),!1):!0}function e(n){for(var t=0;t=0)return!0;return!1}var i=_w.AM,r=100,n=document.createElement(“A”),u,f;document.write=function(n){n.length>0&&sj_log(“CI.AntiMalware”,”DW”,n.substr(0,r))};typeof Element!=”undefined”&&Element.prototype&&(u=Element.prototype.appendChild,Element.prototype.appendChild=function(n){return t(n,”AC”)?u.apply(this,arguments):null},f=Element.prototype.insertBefore,Element.prototype.insertBefore=function(n){return t(n,”IB”)?f.apply(this,arguments):null})})();_G!==undefined&&_G.EF!==undefined&&_G.EF.bmasynctrigger===1&&window.requestAnimationFrame!==undefined&&document.visibilityState!==undefined&&document.visibilityState===”visible”?requestAnimationFrame(function(){_G.EF.bmasynctrigger2===1?requestAnimationFrame(function(){BM.trigger()}):_G.EF.bmasynctrigger3===1?requestAnimationFrame(function(){setTimeout(function(){BM.trigger()},0)}):setTimeout(function(){BM.trigger()},0)}):BM.trigger();var NetworkPerformance;(function(){function n(){var r=window.navigator,n,t=0,i=0;typeof r!=”undefined”&&(n=r.connection);typeof n!=”undefined”&&(t=n.rtt||t,i=n.downlink||i,typeof Log!=”undefined”&&typeof Log.Log==typeof Function&&Log.Log(“NetworkPerformance”,”NetworkPerformanceDetails”,”timinginfo”,!1,”Rtt”,t.toString(),”Downlink”,i.toString()))}sj_evt.bind(“onPP”,n,!0)})(NetworkPerformance||(NetworkPerformance={}));var AwayTimeThreshold = 60;;var Identity; (function(Identity) { Identity.sglid =false; Identity.orgIdPhotoUrl =”https://business.bing.com/api/v3/search/person/photo?caller=IPu0026id={0}”; Identity.setLoginPreference =false})(Identity || (Identity = {}));;var wlc_d =10, wlc_t =63789977196, wlc_wfa =false;;var DynScopesDropdown;(function(n){function e(n,r,u){i||(t=n,sj_evt.fire(“dynamicscopesrearranging”,r),s(r),h(u),sj_evt.bind(“onP1″,o),i=!0)}function o(){if(sj_cook&&sj_cook.set&&sj_cook.clear){var n=”dsc”;sj_cook.clear(n,”/”);t&&sj_cook.set(n,”order”,t,!1,”/”)}}function s(n){var e=c(),r,u,f,t;if(e){if(n){var s=n.split(“,”),i=a(e),h=i.length,o=[],l=[];for(t=0;t .b_scopehide”);return n&&n.length>0?n[0]:null}function l(){var n=_d.querySelectorAll(“.b_scopebar”);return(n===null||n===void 0?void 0:n.length)?n[0].firstChild:null}function a(n){for(var e,t=[],r=n.children,i=0;i]]>0&&(n?(u=r.logClientInstRequestFormatString.replace(“{Events}”,t.logList.join(“”)),f={“Content-Type”:”text/plain;charset=UTF-8″},n.doPost(t._instrumentationUrl,u,{headers:f}),this.clear()):this.startTimer())},t.getOverlayType=function(){var r=””,t=n.dynamicProperties,i;return t&&n.isMapsAnswer&&(t.localOverlayOnSerp&&t.localOverlayOnSerp.visible?(i=t.localOverlayOnSerp.searchQueryCategory,r=i&&i.toLowerCase&&(i.toLowerCase()===”hotel”||i.toLowerCase()===”restaurant”)?i.toLowerCase():”local”):t.travelOverlayOnSerp&&t.travelOverlayOnSerp.visible?r=”travel”:t.realEstateOverlayOnSerp&&t.realEstateOverlayOnSerp.visible?r=t.realEstateOverlayOnSerp.isApartmentSegment?”apartment”:”realestate”:t.attractionOverlayOnSerp&&t.attractionOverlayOnSerp.visible?r=”attraction”:t.mapsOverlayOnSerp&&t.mapsOverlayOnSerp.visible&&(i=t.mapsOverlayOnSerp.searchQueryCategory,r=i&&i.toLowerCase&&(i.toLowerCase()===”hotel”||i.toLowerCase()===”restaurant”)?i.toLowerCase():”maps”)),r},t.SendInstrumentationToServer=function(u,f){var e,o,s,h;n.enableInstrumentation&&f&&(e=r.serverInstrumentationUrlFormat.replace(“{origin}”,n.dynamicProperties.origin).replace(“{q}”,u?u:””).replace(“{f}”,f),o=”MONITR”,window.location.href.toUpperCase().indexOf(o)>-1&&(e+=”&FORM=”+o),s=t.getOverlayType(),s&&(e+=”&OVRLY=”+s),h=n.dynamicProperties.mapsIG,h&&(e+=”&MCIG=”+h),i.Network&&i.Network.downloadGeneric(e,”srvinst”,function(){},null,null,null))},t.logList=[],t._igUpdateRequested=!1,t._timerToken=0,t}(),l=function(){function n(){var n=this;this._promise=new Promise(function(t,i){n.resolve=t;n.reject=i})}return n.prototype.then=function(n,t){return this._promise.then(n,t)},n}(),ct=function(i){function r(){var n=i.call(this,”Event.ClientInst”)||this;return n._exceptionCount=0,n.igUpdatedPromise=new l,t.errorLogs=t.errorLogs||[],n}return d(r,i),r.prototype.logObject=function(n,t,r){n.T=n.T?n.T:r?”CI.MapsAction”:”CI.ClientClick”;n.FID=n.FID?n.FID:”CI”;i.prototype.logObject.call(this,n,t)},r.prototype.logCriticalError=function(t,i,r,u){var f,o;if(r===void 0&&(r=!0),f=i&&i.data&&i.data.url,f=f&&f.toLowerCase(),n.testHooksAllowed||(n.enableInstrumentation||n.enableErrorInstrumentation)&&(!f||f.indexOf(“virtualearth.net”)>-1||f.indexOf(“bing.com”)>-1||f.indexOf(“microsoft.com”)>-1||f.indexOf(“live.com”)>-1||f.indexOf(“bingapis.com”)>-1)){f&&(i.data.url=this._cleanUrl(f));o=t?t.stack:f?f:””;i&&i.data&&i.data.stack&&(o+=”;”+i.data.stack);(n.isMapsVertical||n.isMapsAnswer)&&r&&(o+=”;”+window.location.href);var s=!t&&f,e={T:s?”CI.Warning”:”CI.Error”,feature:”SDK”,action:i?i.action:””,data:i?i.data:””,partner:”Maps”,horizontal:n.isMapsVertical?”Vertical”:n.isMapsAnswer?”MapSerp”:”SDK”,Name:s?”MapsNetwork”:”JSError”,Text:t?typeof t==”string”?t:t.message:i?this._serializeData(i.data):””,Stack:o},h=t?”unhandledEx:”:f?”network:”:”handledEx:”;if(e.Text=”v9;”+e.horizontal+”;”+(h+e.Text),(n.testHooksAllowed||!n.isSDK)&&Microsoft.Maps.errorLogs.push(e),n.testHooksAllowed&&(console.log(Date.now()-performance.timing.navigationStart+” – Error:”),s&&f?console.log(“Network error – status:”+i.data.httpStatus+”, url: “+f):(console.log(“Error – message:”+e.Text),console.log(“Error – stack:”+e.Stack)),console.log(“”)),t){if(n.isSDK||typeof _G==”undefined”||u?this.logObject(e,n.dynamicProperties.mapsIG):t.message=e.Text,!u)throw t;}else++this._exceptionCount<=16&&(this.logObject(e,n.dynamicProperties.mapsIG),this.flush())}if(t&&!u)throw t;},r.prototype._serializeData=function(n){var i="",t;if(n)if(typeof n=="object")for(t in n)n.hasOwnProperty(t)&&n[t]!==""&&t.toLowerCase()!=="stack"&&(i=i+t+":"+(typeof n[t]=="object"?JSON.stringify(n[t]):n[t])+", ");else i=n;return i},r.prototype._cleanUrl=function(n){return n&&(n=n.replace(/(/|/be|/hs)[0123]+(?|.json?)/gi,"/{quadkey}?").replace(/key=(w|-)+/gi,"key={credentials}").replace(/auth=(w|-)+/gi,"auth={credentials}").replace(/jsonso=w+/gi,"jsonso={jsonso}").replace(/jsonp=(w|.)+/gi,"jsonp={jsonp}").replace(/t[01](.|-)/gi,"{subdomain}").replace(/mkt=w{2}-w{2}/gi,"mkt={mkt}").replace(/culture=w{2}-w{2}/gi,"culture={culture}").replace(/og=d+/gi,"og={og}").replace(/ur=w{2}/gi,"ur={ur}").replace(/idx=d+/gi,"idx={idx}").replace(/eid=d+/gi,"eid={eid}").replace(/copyright/w{2}-w{2}/w+(/(d|.|-)+){5}?/gi,"copyright/{Copyright}?").replace(/locations/(d |.|,|-)+?/gi,"location/{locations}?")),n},r}(nt),e;if(function(n){function t(n,t){return typeof n=="function"?function(){try{return n.apply(null,t)}catch(i){if(window.Microsoft&&Microsoft.Maps)Microsoft.Maps.logger.logCriticalError(i);else throw i;}}:n}function r(n,i){for(var f,u=[],r=2;r0)&&t.setItem(n,r),u>0&&t.setItem(i(n),(Date.now()+u*864e5).toString()))}function e(n){if(t){var r=i(n);t.removeItem(n);t.removeItem(r)}}function i(n){return”_$Maps_”+n+”_expiration”}var t=function(){var n,t,i;try{return n=(new Date).toString(),t=window.localStorage,t.setItem(n,n),i=t.getItem(n)===n,t.removeItem(n),i&&t}catch(r){}}();n.isEnabled=r;n.getItem=u;n.setItem=f;n.removeItem=e}(h||(h={})),function(n){function e(){var n={},v=window.navigator,l,e,c,a;v&&(n.cpuCores=v.hardwareConcurrency,l=v.connection,l&&(n.networkConnectionType=l.effectiveType,n.networkRTT=l.rtt,n.networkDownloadSpeed=l.downlink));n.contrastMode=s();try{c=h.getItem(t);c&&(c=JSON.parse(c),n.gpuRenderer=c.gpuRenderer,e=n.deviceClassification=c.deviceClassification)}catch(y){}return typeof e==”undefined”&&(e=o(n),e===1&&(n.cpuCores>=i?e=0:n.cpuCores-1})},w=function(){return!u||i(l,!0)||i(a,!1,!0)||i(v,!1,!1)},b=function(){return u&&(i(y,!1,!0)||i(p,!1,!1))};r=w()?2:b()?0:1}catch(k){r=2}return r}function s(){var n=”none”,t;return matchMedia(“(-ms-high-contrast: white-on-black)”).matches?n=”dark”:matchMedia(“(-ms-high-contrast: black-on-white)”).matches?n=”light”:(matchMedia(“(-ms-high-contrast: active)”).matches||matchMedia(“(inverted-colors: inverted)”).matches)&&(n=”dark”),t=r.overrideHighContrast,t&&(n=t===1?”dark”:”light”),n}var i=8,u=4,t=”deviceInfo”,f=14;n.detectCapability=e}(p||(p={})),function(n){function i(n,i,r,u){var o=t(n,-85.05112878,85.05112878),s=t(i,-180,180),h=(s+180)/360,e=Math.sin(o*Math.PI/180),c=.5-Math.log((1+e)/(1-e))/(4*Math.PI),f=Math.pow(2,r)*u;return{x:t(h*f+.5,0,f-1),y:t(c*f+.5,0,f-1)}}function r(n,t){var i=f.degreesToRadians(t.latitude),r=f.degreesToRadians(n.latitude),o=f.degreesToRadians(t.longitude),s=f.degreesToRadians(n.longitude),h=Math.abs(i-r),c=Math.abs(o-s),u=Math.sin(h/2),e=Math.sin(c/2),l=2*Math.asin(Math.sqrt(u*u+Math.cos(r)*Math.cos(i)*e*e));return 6378137*l}function u(t,i,r){return f.log2(Math.cos(f.degreesToRadians(t))*n.C_earthCircumference/(r*i))}function e(n){var u=.675,f=7,r,a;if(n.length<15)return n;var t=n.map(function(n){return n[1]}),i=n.map(function(n){return n[0]}),e=t.sort()[Math.floor(t.length/2)],o=i.sort()[Math.floor(i.length/2)],s=t.map(function(n){return Math.abs(n-e)}),h=i.map(function(n){return Math.abs(n-o)}),c=s.sort()[Math.floor(s.length/2)],l=h.sort()[Math.floor(h.length/2)];return c===0||l===0?n:(r=n.filter(function(n){var t=u*Math.abs(n[1]-e)/ca?n:r)}function t(n,t,i){return Math.min(Math.max(n,t),i)}n.C_earthCircumference=12756274*Math.PI;n.C_radiansPerDegree=Math.PI/180;n.latlongToPixelXY=i;n.greatCircleDistance=r;n.getZoomFromMetersPerPixel=u;n.cullOutlierPositions=e}(u||(u={})),function(n){function t(t){return Math.log(t)/n.loge2}function i(t){return t*n.radiansPerDegree}n.radiansPerDegree=Math.PI/180;n.loge2=Math.log(2);n.log2=t;n.degreesToRadians=i}(f||(f={})),function(n){function e(t,i,r){n.loadingView.bounds&&(n.loadingView=s(n.loadingView.bounds,t,i,r),f&&(n.loadingView.zoom-=n.zoomAdjustment))}function o(){var n=null,r=mapControlViewData.globalConfigs.dynamicProperties,i,u;return t=document.querySelector(“div.nonajaxLGCardPrimer”),l(window.location.href,”cp”,!0)||t||(n=c()),n||(i=r.location,i&&i!==”0,0″||(i=r.reverseIPLocation,i||(u=a(),u&&(i=u))),n={center:v(i),zoom:r.zoom}),r.style!==”x”&&(n=n||{},n.bearing=r.bearing,n.pitch=r.pitch),n}function s(n,t,i,r){var f={},s={latitude:n[1],longitude:n[0]},h={latitude:n[1],longitude:n[2]},c={latitude:n[3],longitude:n[0]},l={latitude:n[3],longitude:n[2]},a={latitude:n[1],longitude:0},v={latitude:n[3],longitude:0},e={latitude:(n[3]+n[1])/2,longitude:(n[0]+n[2])/2},y=u.greatCircleDistance(s,h),p=u.greatCircleDistance(c,l),w=Math.max(y,p),b=u.greatCircleDistance(a,v),k=w/t,d=b/i,o=Math.max(k,d);return f.zoom=o!==0?u.getZoomFromMetersPerPixel(e.latitude,o,r):16,f.center=[e.longitude,e.latitude],f}function h(){var i=0,r=”data-mapcardwidth”,u=document.querySelector(“[“+r+”]”),n;return!window.history.state&&t?(n=parseInt(t.getAttribute(“data-width”)),isNaN(n)||(i=n)):u&&(n=parseInt(u.getAttribute(r)),isNaN(n)||(i=n)),i>0&&!t&&(i+=32),i}function c(){var v,r=null,it=”data-entity”,o=[],y=document.querySelectorAll(“[“+it+”]”),l,p,w,s,a,b,e,k,d,nt,tt,h,t,n;if(y)for(l=0;l1){for(s=[],a=0,b=o;a1&&(nt=c[0],tt=c[1],r={bounds:i([[nt.longitude,nt.latitude],[tt.longitude,tt.latitude]])})}r||(h=o[0],t=h.geometry,h.geometryType===1&&t?r={center:[t.x,t.y],zoom:((v=mapControlViewData.globalConfigs.features.taskFramework)===null||v===void 0?void 0:v.defaultZoomLevel)||16}:(n=t===null||t===void 0?void 0:t.bounds,(n===null||n===void 0?void 0:n.length)>=4&&(r={bounds:i([[n[1],n[0]],[n[3],n[2]]])})))}return r}function l(n,t,i){i===void 0&&(i=!0);var u=typeof n==”string”?new URL(n):new URL(n.href),r=u.searchParams.get(t)||””;return i?decodeURIComponent(r):r}function i(n){for(var f=NaN,e=NaN,s=NaN,h=NaN,r,t=n.length,i=new Array(t),u=0,c,o,l;t–;)r=n[t],r&&r.length>=2&&(f=isNaN(f)?r[1]:Math.max(f,r[1]),e=isNaN(e)?r[1]:Math.min(e,r[1]),i[u++]=r[0]);if(u){for(i.length=u,i.sort(function(n,t){return n-t}),c=i[0]+360-i[u-1],o=0,t=1;tc&&(c=l,o=t);s=i[o];h=i[(o||u)-1]}return isNaN(s)||isNaN(e)||isNaN(h)||isNaN(f)?null:[s,e,h,f]}function a(){r;var n=parseFloat(r(“centerLatitude”)),t=parseFloat(r(“centerLongitude”));if(isFinite(n)&&isFinite(t))return n+”,”+t}function r(n){var r=window.localStorage,t=r.getItem(n),u,i,f;return t&&(u=”_$Maps_”+n+”_expiration”,i=r.getItem(u),i&&(f=parseInt(i),Date.now()>f&&(t=null))),t}function v(n){var t,i,r;return n&&(t=n.split(“,”),t.length===2&&(i=parseFloat(t[0]),r=parseFloat(t[1]),isFinite(i)&&isFinite(r)))?[r,i]:null}var t,f=!1;n.zoomAdjustment=.5;n.loadingView=o();n.contentFirstPadding=h();n.updateLoadingView=e}(s||(s={})),tt=function(){function n(n,i){this._downloadedLabelImages={};this._downloadedBaseImages={};this._mapStyleDefinition=r.mapStyleDefinition;this._style=this._mapStyleDefinition&&this._getMapStyleName(i);var e=t.DeviceInfo,c=e.contrastMode,u=this._getTilePrimerConfig(c);if(this._parentDiv=typeof n==”string”?document.getElementById(n):n,this._parentDiv&&(this._width=this._parentDiv.offsetWidth-s.contentFirstPadding,this._height=this._parentDiv.offsetHeight,this._tileSize=(u===null||u===void 0?void 0:u.tileSize)||256,s.updateLoadingView(this._width,this._height,this._tileSize),u&&(e.deviceClassification===0?this._tileFormat=u.baseWithLabelUrl:(this._tileFormat=u.baseUrl,this._labelFormat=u.labelUrl),this._tileFormat))){var o=s.loadingView,f=o.zoom,h=Math.round(f);this._scale=1+(Math.pow(2,f)-Math.pow(2,h))/Math.pow(2,h);this._scaledTileSize=this._tileSize*this._scale;this._zoom=Math.max(3,f);this._zoomRounded=Math.round(this._zoom);this.loadTilePrimer(o)}}return n.prototype.unWrap=function(){var n;this._tileContainer&&((n=this._parentDiv)===null||n===void 0?void 0:n.removeChild(this._tileContainer),this._mapStyleDefinition=this._tileContainer=this._parentDiv=this._downloadedLabelImages=null)},n.prototype.isEnabledForStyle=function(n){return n===this._style&&this._tileFormat},n.prototype.loadTilePrimer=function(n){this._tilesLoaded=0;this._maxTileCoordinate=Math.pow(2,this._zoom)-1;this._centerTile=u.latlongToPixelXY(n.center[1],n.center[0],this._zoom,this._tileSize);this._centerTileX=this._centerTile.x/this._scaledTileSize;this._centerTileY=this._centerTile.y/this._scaledTileSize;this._centerOffset={x:-(this._centerTile.x%this._scaledTileSize),y:-(this._centerTile.y%this._scaledTileSize)+(this._scaledTileSize-this._tileSize)};this._centerOffset.x+=this._width/2;this._centerOffset.y+=this._height/2;this._tileContainer=document.createElement(“div”);this._tileContainer.style.cssText=”position:absolute;width:”+this._width+”px;”+(this._isRtl()?”left”:”right”)+”:0px;”;this._baseTileContainer=document.createElement(“div”);this._tileContainer.appendChild(this._baseTileContainer);this._labelFormat&&(this._labelTileContainer=document.createElement(“div”),this._tileContainer.appendChild(this._labelTileContainer),this._labelTileContainer.style.cssText=”z-index:1;position:relative”);this._parentDiv.appendChild(this._tileContainer);this._addTiles()},n.prototype._getMapStyleName=function(n){var t,i;return this._mapStyleDefinition&&(t=this._mapStyleDefinition.defaultStyle,n&&(i=this._mapStyleDefinition.styles.find(function(t){return t.styleKey===n||t.name===n}),i&&(t=i.name))),t},n.prototype._getTilePrimerConfig=function(n){var f=this,i,r,t=(i=this._mapStyleDefinition)===null||i===void 0?void 0:i.styles.find(function(n){return n.name===f._style}),u;return t&&(n===”none”?r=t.primer:t.contrast&&(u=t.contrast.find(function(t){return t.mode===n}),u&&(r=u.primer))),r},n.prototype._addTile=function(i,u,f,e){var o=this,s=document.createElement(“img”),c,h,l,a;s.style.cssText=”transform-origin:bottom left;transform:scale(“+this._scale+”);n “+(r.tileBoundary?”outline:1px solid #555″:””)+”;position:absolute;n top:”+f.y+”px;left:”+f.x+”px”;h=function(n){n&&(s.src=n);s.onload=s.onerror=s.onabort=null;++o._tilesLoaded;window.clearTimeout(c);e?o._downloadedBaseImages[u]?o._labelTileContainer.appendChild(s):o._downloadedLabelImages[u]=s:(o._baseTileContainer.appendChild(s),o._downloadedBaseImages[u]=!0,o._downloadedLabelImages[u]&&(o._labelTileContainer.appendChild(o._downloadedLabelImages[u]),delete o._downloadedLabelImages[u],delete o._downloadedBaseImages[u]));o._tilesLoaded===o._tileCount&&(o.tilePrimerLoadTime=performance.now())};l=t.DeviceInfo;l.deviceClassification===0||l.deviceClassification===1&&e?(c=setTimeout(function(){return h()},n.C_TileTimeout),s.onload=function(){h()},s.onerror=s.onabort=function(){h()},s.src=i):(a=new AbortController,c=setTimeout(function(){return a.abort()},n.C_TileTimeout),fetch(i,{signal:a.signal}).then(function(n){return n.blob()}).then(function(n){return h(URL.createObjectURL(n))}).catch(function(){return h()}))},n.prototype._getImageUrl=function(n,t){return n.replace(“{quadkey}”,t)},n.prototype._addTiles=function(){var i,t,r;for(this._tileX=this._centerTileX,this._tileY=this._centerTileY,this._offset=this._centerOffset,this._direction=0,this._movesLeft=1,this._step=1,i=0,this._tileCount=0;i0;n–)t=0,r=1<-this._scaledTileSize&&n.y-this._scaledTileSize&&n.x-this._scaledTileSize+i&&n.y-this._scaledTileSize+i&&n.xthis._maxTileCoordinate?this._tileX=0:this._tileX<0&&(this._tileX=this._maxTileCoordinate);this._movesLeft--;this._movesLeft3&&(this._direction=0))},n.prototype._isRtl=function(){return typeof _G=="object"&&_G&&_G.RTL},n.C_maxTiles=48,n.C_maxAttempts=128,n.C_TileTimeout=5e3,n}(),o=window,o.Microsoft=o.Microsoft||{},t=o.$MicrosoftMaps8=o.Microsoft.Maps=o.Microsoft.Maps||{},t.toString=function(){return"Microsoft.Maps"},n=t.globalConfig=mapControlViewData.globalConfigs,t.dragonflyCatalog=mapControlViewData.dragonflyCatalog,i=t.Internal=t.Internal||{},r=i.coreConfig=mapControlViewData.mapControlConfig,t.DeviceInfo=p.detectCapability(),i.__assign=y,i.__extends=d,i.__spreadArrays=g,i.BootstrapView=s,i.ExternalPromise=l,i.InstrumentationBase=nt,i.LocalStorageCache=h,i.MapMath=u,i.TilePrimer=tt,i.TimeoutWrapper=e,i.VectorMath=f,t.logger=new ct,w=document.getElementById("b_header"),w&&w.classList.add("bm_oneMap"),function(n){function i(t){n.allowLogging&&!1&&console.log(t)}function p(t){var r,i;n.allowLogging&&(r=document.getElementById("perfTestHook"),r&&(i=r.getAttribute("data-loadOrder"),i=i?i+","+t:t,r.setAttribute("data-loadOrder",i)))}function w(n){var i=n.length,t;return i>2&&(t=n.charAt(0),t===n.charAt(i-1)&&(t==='”‘||t===”‘”))?n.slice(1,i-1):null}function b(n){for(var t=n.length;t–;)if(!n[t].loaded)return!1;return!0}function k(n){for(var u=[],i=n?n.length:0,t,r;i–;)t=n[i]+””,r=t.charAt(0)===”-“,r&&(t=t.substring(1)),u[i]={name:t,optional:r};return u}function l(n){var t=null,r,i,u,f;if(n)for(t=window,r=n.split(“.”),i=0,u=r.length;i“+t,f=u.childNodes,u.removeChild(f[0]),e=u.getElementsByTagName(l),e)for(o=0;o0&&(e=l(function(){c();s(r,!1)},f))};var Feedback;(function(n){var t;(function(t){function u(t,r,u,f,e,o){t=typeof t===i?!1:t;t&&scrollTo(0,0);u=typeof u===i?!0:u;n.PackageLoad.Load(r,u,f,e,o)}function o(n,t){for(var r=0,i=null;n&&n.getAttribute&&(!(t>=1)||r1&&(r=n[1],r.tagName!==undefined&&r.nodeType!==undefined?(f=r,i=it(f)):i=r,s=i&&i.elementToHighlight||f,e=o(s));h=i&&i.linkId||a;u(y,t,v,h,e,i)},sj_evt.bind(f,r,1)),typeof SearchAppWrapper!==i&&SearchAppWrapper.CortanaApp&&SearchAppWrapper.CortanaApp.addEventListener&&SearchAppWrapper.CortanaApp.addEventListener(f,function(n){(typeof n!==i&&n!==null&&(n.isHandled=!0),a===e)&&_ge(“fbpgdg”)===null&&u(y,t,v,a)})),g!==null?(tt=function(n){if(!(n instanceof KeyboardEvent)||n.keyCode===13){var r=null,i=null,f=null,e;if(p&&g.classList){if(g.classList.contains(h))return!1;g.classList.add(h)}d&&sj_evt.fire(“feedback.dialog.defaultcheckedradio”,d);sj_pd(n);sj_sp(n);r=sj_et(n);i=it(r);e=i&&i.elementToHighlight||r;f=o(e);u(y,t,v,a,f||nt,i||k)}},sj_be(g,”click”,tt),sj_be(g,”keydown”,tt),g.classList&&g.classList.add(s)):(b=typeof b===i?!1:b,b&&u(y,t,v,a,nt)),typeof sj_evt!==i&&sj_evt.fire(l))}var f=”feedbackformrequested”,l=”feedbackInitialized”,r,e=””,s=”feedback-binded”,h=”clicked”,i=”undefined”,c;t.InitializeFeedback=a;n.le=function(n,t){SharedLogHelper&&SharedLogHelper.LogError&&SharedLogHelper.LogError(“Feedback: “+n,null,t)};n.leh=function(t,i,r){n.le(“Feedback: “+t+” handler failed in “+i,r)};n.fel=function(t,i){for(var u=[],r=2;r10&&(f=f.substring(0,10).replace(/s+$/,””)+”…”),e.textContent=f,e.innerText=f,r(e),o&&i(o),i(s),l===”WL”&&u&&(u.style.className+=” sw_spd”)):e&&s&&(i(e),u&&i(u),o&&r(o),r(s))}},sj_evt.bind(“wl:auth”,function(){t(n.wlProfile())},1),sj_evt.bind(“aad:signedout”,function(){t({displayName:null,img:null,idp:”orgid”})},1),sj_evt.bind(“aad:signedin”,function(i){var r,u,f,e;i&&i.length>=2&&(r=i[1],r&&r.displayName&&r.uniqueName&&(u=”/orgid/thumbnailPhoto?user={0}”,n.orgIdPhotoUrl&&(u=n.orgIdPhotoUrl),f=u.replace(“{0}”,encodeURIComponent(r.userObjectId)),e={displayName:r.uniqueName,img:f,idp:”orgid”},t(e)))},1))})(Identity||(Identity={}));var Identity = Identity || {}; (function(i) { i.wlImgSm =”https://storage.live.com/users/0x{0}/myprofile/expressionprofile/profilephoto:UserTileStatic/p?ck=1u0026ex=720u0026sid=1F954D82AD996ECB02385C3BACC36F39u0026fofoff=1″; i.wlImgLg =”https://storage.live.com/users/0x{0}/myprofile/expressionprofile/profilephoto:UserTileMedium/p?ck=1u0026ex=720u0026sid=1F954D82AD996ECB02385C3BACC36F39u0026fofoff=1″;i.popupLoginUrls = {“WindowsLiveId”:”https://login.live.com/login.srf?wa=wsignin1.0u0026rpsnv=11u0026ct=1654380397u0026rver=6.0.5286.0u0026wp=MBI_SSLu0026wreply=https:%2F%2fwww.bing.com%2Fsecure%2FPassport.aspx%3Fpopup%3D1%26ssl%3D1u0026lc=4096u0026id=264960″}; })(Identity);;var BingAtWork;(function(n){var t;(function(n){n.fetchLowerHeader=function(n){sj_ajax(“/business/lowerheader?q=”+n,{callback:function(n,t){var u,r,i,f;n&&(u=_ge(“b_content”),u&&(r=u.getElementsByTagName(“main”),r&&r.length>0&&(i=r[0],i&&i.hasChildNodes()&&(f=sj_ce(“div”,”b_lowerHeader”),t.appendTo(f),i.insertBefore(f,i.firstChild)))))}})};n.fetchScopeBar=function(n){sj_ajax(“/header/scopebar?q=”+n,{callback:function(n,t){var i,r,u,f;n&&(i=_ge(“b_header”),i&&(r=i.getElementsByTagName(“nav”),r&&r.length>0&&(u=r[0],u&&(f=sj_ce(“div”,”b_nav”),t.appendTo(f),i.removeChild(u),i.appendChild(f)))))}})};n.fetchNotificationConditional=function(){sj_ajax(“/business/notification/conditional”,{callback:function(n,t){n&&t.appendTo(_d.body)}})};n.raiseAuthEventAndLog=function(n){var i=n.isAuthenticated,r=n.postUserNameInMessage,u=n.displayName,f=n.uniqueName,e=n.userObjectId,t;if(!i){sj_evt.fire(“aad:signedout”);return}t={displayName:u,uniqueName:f,userObjectId:e};r?sj_evt.fire(“aad:signedin”,t):sj_evt.fire(“aad:signedin”);Log&&Log.Log&&Log.Log(“ClientInst”,”AADSignedIn”,”OrgId”,!1,”Type”,”Conditional”,”TimeStamp”,Math.round(performance.now()).toString())}})(t=n.ConditionalSignIn||(n.ConditionalSignIn={}))})(BingAtWork||(BingAtWork={}));var sch=sch||{};(function(){var n=”click”;sj_evt.bind(“onP1”,function(){setTimeout(function(){var i=_ge(“id_h”),t=_ge(“id_sc”);i&&t&&(sj_jb(“Blue/HamburgerServicesHeaderFlyout_c”,0,i,”mouseover”,t,n,t,”focus”),sj_be(t,n,function(n){sch.clk=n}))},50)},1)})();var SearchBox;(function(n){function u(){t=_ge(“b_header”);sj_be(_d.body,”click”,i)}function i(n){var i=sj_et(n);i.id!=”sb_form_q”&&(t.className=t.className.replace(r,””))}var r=/(^|s)b_focus(?!S)/gi,t;n.removeFocusClass=i;sj_evt.bind(“onP1”,u)})(SearchBox||(SearchBox={}));define(“ClientObservations_logging_desktop_mm”,[“require”,”exports”],function(n,t){function i(){var n=Math.round(document.documentElement.clientWidth);return n<100&&(n=1164),n}function r(){return Math.round(document.documentElement.clientHeight)}(function(){function b(n,t){var i="XW",r;n<=st&&(i="W");n<=p&&(i="M");n<=w&&(i="N");n<=ht&&(i="S");n<=ct&&(i="HTP");n<=lt&&(i="NOTP");r="T";t<=ft&&(r="M");t<=et&&(r="S");h(ot,i,"width",n.toString());h(ut,r,"height",t.toString())}function h(i,r,f,e){c("Info",i,r,f,e);u(n,i)!=r&&t(n,i,r,!0,"/",null)}function c(n,t,i,r,u){typeof Log!="undefined"&&Log.Log&&Log.Log(n,t,i,!1,r,u)}function f(n,t,i){typeof Log!="undefined"&&Log.Log&&Log.Log(n,t,i)}function l(i,r,e){var o=u(n,r);o&&o===i||(t(n,r,i,!0,"/",null),o&&f("Info","BRResize",e))}function k(n){if(at){var i=_w.TPane,t="W";n<=p&&(t="M");n]]>


Source

Leave a Reply

Your email address will not be published. Required fields are marked *