/** * @license almond 0.3.3 Copyright jQuery Foundation and other contributors. * Released under MIT license, http://github.com/requirejs/almond/LICENSE */ //! moment.js //! version : 2.9.0 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com /* Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com (c) 2010-2013, Vladimir Agafonkin (c) 2010-2011, CloudMade */ /** echo * @license echo * while read i do echo * done echo */ /** ColorBrewer colors for chroma.js Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State University. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. @preserve */ /** * jshashes - https://github.com/h2non/jshashes * Released under the "New BSD" license * * Algorithms specification: * * MD5 - http://www.ietf.org/rfc/rfc1321.txt * RIPEMD-160 - http://homes.esat.kuleuven.be/~bosselae/ripemd160.html * SHA1 - http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf * SHA256 - http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf * SHA512 - http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf * HMAC - http://www.ietf.org/rfc/rfc2104.txt */ /** * @member Hashes * @class MD5 * @constructor * @param {Object} [config] * * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * See for more infHashes. */ /** * @member Hashes * @class Hashes.SHA1 * @param {Object} [config] * @constructor * * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined in FIPS 180-1 * Version 2.2 Copyright Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * See http://pajhome.org.uk/crypt/md5 for details. */ /** * @class Hashes.SHA256 * @param {config} * * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined in FIPS 180-2 * Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * See http://pajhome.org.uk/crypt/md5 for details. * Also http://anmar.eu.org/projects/jssha2/ */ /** * @class Hashes.SHA512 * @param {config} * * A JavaScript implementation of the Secure Hash Algorithm, SHA-512, as defined in FIPS 180-2 * Version 2.2 Copyright Anonymous Contributor, Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * See http://pajhome.org.uk/crypt/md5 for details. */ /** * @class Hashes.RMD160 * @constructor * @param {Object} [config] * * A JavaScript implementation of the RIPEMD-160 Algorithm * Version 2.2 Copyright Jeremy Lin, Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * See http://pajhome.org.uk/crypt/md5 for details. * Also http://www.ocf.berkeley.edu/~jjlin/jsotp/ */ /* (c) 2013, Vladimir Agafonkin RBush, a JavaScript library for high-performance 2D spatial indexing of points and rectangles. https://github.com/mourner/rbush */ /* Leaflet.label, a plugin that adds labels to markers and vectors for Leaflet powered maps. (c) 2012-2013, Jacob Toye, Smartrak https://github.com/Leaflet/Leaflet.label http://leafletjs.com https://github.com/jacobtoye */ /*! * Cross-Browser Split 1.1.1 * Copyright 2007-2012 Steven Levithan * Available under the MIT License * ECMAScript compliant, uniform cross-browser split method */ /*! * numeral.js * version : 1.5.3 * author : Adam Draper * license : MIT * http://adamwdraper.github.com/Numeral-js/ */ /*! * tablesort v3.0.2 (2015-02-25) * http://tristen.ca/tablesort/demo/ * Copyright (c) 2015 ; Licensed MIT */ /*! * numeral.js language configuration * language : belgium-dutch (be-nl) * author : Dieter Luypaert : https://github.com/moeriki */ /*! * numeral.js language configuration * language : simplified chinese * author : badplum : https://github.com/badplum */ /*! * numeral.js language configuration * language : czech (cs) * author : Anatoli Papirovski : https://github.com/apapirovski */ /*! * numeral.js language configuration * language : danish denmark (dk) * author : Michael Storgaard : https://github.com/mstorgaard */ /*! * numeral.js language configuration * language : German in Switzerland (de-ch) * author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky) */ /*! * numeral.js language configuration * language : German (de) – generally useful in Germany, Austria, Luxembourg, Belgium * author : Marco Krage : https://github.com/sinky */ /*! * numeral.js language configuration * language : english united kingdom (uk) * author : Dan Ristic : https://github.com/dristic */ /*! * numeral.js language configuration * language : spanish Spain * author : Hernan Garcia : https://github.com/hgarcia */ /*! * numeral.js language configuration * language : spanish * author : Hernan Garcia : https://github.com/hgarcia */ /*! * numeral.js language configuration * language : Estonian * author : Illimar Tambek : https://github.com/ragulka * * Note: in Estonian, abbreviations are always separated * from numbers with a space */ /*! * numeral.js language configuration * language : Finnish * author : Sami Saada : https://github.com/samitheberber */ /*! * numeral.js language configuration * language : french (Canada) (fr-CA) * author : Léo Renaud-Allaire : https://github.com/renaudleo */ /*! * numeral.js language configuration * language : french (fr-ch) * author : Adam Draper : https://github.com/adamwdraper */ /*! * numeral.js language configuration * language : french (fr) * author : Adam Draper : https://github.com/adamwdraper */ /*! * numeral.js language configuration * language : Hungarian (hu) * author : Peter Bakondy : https://github.com/pbakondy */ /*! * numeral.js language configuration * language : italian Italy (it) * author : Giacomo Trombi : http://cinquepunti.it */ /*! * numeral.js language configuration * language : japanese * author : teppeis : https://github.com/teppeis */ /*! * numeral.js language configuration * language : netherlands-dutch (nl-nl) * author : Dave Clayton : https://github.com/davedx */ /*! * numeral.js language configuration * language : polish (pl) * author : Dominik Bulaj : https://github.com/dominikbulaj */ /*! * numeral.js language configuration * language : portuguese brazil (pt-br) * author : Ramiro Varandas Jr : https://github.com/ramirovjr */ /*! * numeral.js language configuration * language : portuguese (pt-pt) * author : Diogo Resende : https://github.com/dresende */ /*! * numeral.js language configuration * language : russian (ru) * author : Anatoli Papirovski : https://github.com/apapirovski */ /*! * numeral.js language configuration * language : slovak (sk) * author : Ahmed Al Hafoudh : http://www.freevision.sk */ /*! * numeral.js language configuration * language : thai (th) * author : Sathit Jittanupat : https://github.com/jojosati */ /*! * numeral.js language configuration * language : turkish (tr) * author : Ecmel Ercan : https://github.com/ecmel, Erhan Gundogan : https://github.com/erhangundogan, Burak Yiğit Kaya: https://github.com/BYK */ if (window.location.search.match("^\\?mapcenter")) { var maploc = window.location.search.replace("?mapcenter=", "").split(","); } else { var maploc=[ 49.862222568,7.678756714,9 ]; } (function(){function r(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.onload=function(){r.status==200?t(r.response):n(Error(r.statusText))},r.onerror=function(){n(Error("Network Error"))},r.send()})}function i(e){return r(e).then(JSON.parse)}function s(e,t){return t.slice().sort(function(t,n){return t[e]-n[e]}).reverse()}function o(e,t,n){return n.filter(function(n){return n[e].isAfter(t)})}function u(e){return e.reduce(function(e,t){return e+t},0)}function a(){return 1}function f(e){return e===undefined?!0:e}function l(e,t){var n=t.shift();return n in e?t.length==0?e[n]:l(e[n],t):null}function c(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}}function h(e,t){for(key in t){var n=new RegExp(key,"g");e=e.replace(n,t[key])}return e}function p(e){return!e.flags.online}function d(e){return e.flags.online}function v(e){return"location"in e.nodeinfo&&Math.abs(e.nodeinfo.location.latitude)<90&&Math.abs(e.nodeinfo.location.longitude)<180}function m(e,t){var n={};return t.forEach(function(e){n[e.nodeinfo.node_id]=!0}),e.filter(function(e){return!(e.nodeinfo.node_id in n)})}function g(e){if(isNaN(e.distance))return;return numeral(e.distance).format("0,0")+" m"}function y(e){return numeral(1/e.tq).format("0%")}function b(e,t,n){if(n===null||n==undefined)return;var r=document.createElement("tr"),i=document.createElement("th");i.textContent=t,r.appendChild(i);var s=document.createElement("td");return typeof n=="function"?n(s):s.appendChild(document.createTextNode(n)),r.appendChild(s),e.appendChild(r),s}function w(e,t,n){return el=document.createElement("iframe"),t=typeof t!="undefined"?t:"100%",n=typeof n!="undefined"?n:"350px",e.src?el.src=e.src:el.src=e,e.frameBorder?el.frameBorder=e.frameBorder:el.frameBorder=1,e.width?el.width=e.width:el.width=t,e.height?el.height=e.height:el.height=n,el.scrolling="no",el.seamless="seamless",el}function E(e,t){var n,r;t=typeof t!="undefined"?t:{},e.thumbnail&&(n=document.createElement("img"),n.src=h(e.thumbnail,t)),e.caption&&(r=h(e.caption,t),n||(n=document.createTextNode(r))),e.iframe&&(n=w(e.iframe,e.width,e.height),e.iframe.src?n.src=h(e.iframe.src,t):n.src=h(e.iframe,t));var i=document.createElement("p");if(e.href){var s=document.createElement("a");s.target="_blank",s.href=h(e.href,t),s.appendChild(n),r&&e.thumbnail&&(s.title=r),i.appendChild(s)}else i.appendChild(n);return i}var e,t,n;(function(r){function v(e,t){return h.call(e,t)}function m(e,t){var n,r,i,s,o,u,a,f,c,h,p,v,m=t&&t.split("/"),g=l.map,y=g&&g["*"]||{};if(e){e=e.split("/"),o=e.length-1,l.nodeIdCompat&&d.test(e[o])&&(e[o]=e[o].replace(d,"")),e[0].charAt(0)==="."&&m&&(v=m.slice(0,m.length-1),e=v.concat(e));for(c=0;c0&&(e.splice(c-1,2),c-=2)}}e=e.join("/")}if((m||y)&&g){n=e.split("/");for(c=n.length;c>0;c-=1){r=n.slice(0,c).join("/");if(m)for(h=m.length;h>0;h-=1){i=g[m.slice(0,h).join("/")];if(i){i=i[r];if(i){s=i,u=c;break}}}if(s)break;!a&&y&&y[r]&&(a=y[r],f=c)}!s&&a&&(s=a,u=f),s&&(n.splice(0,u,s),e=n.join("/"))}return e}function g(e,t){return function(){var n=p.call(arguments,0);return typeof n[0]!="string"&&n.length===1&&n.push(null),s.apply(r,n.concat([e,t]))}}function y(e){return function(t){return m(t,e)}}function b(e){return function(t){a[e]=t}}function w(e){if(v(f,e)){var t=f[e];delete f[e],c[e]=!0,i.apply(r,t)}if(!v(a,e)&&!v(c,e))throw new Error("No "+e);return a[e]}function E(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?E(e):[]}function x(e){return function(){return l&&l.config&&l.config[e]||{}}}var i,s,o,u,a={},f={},l={},c={},h=Object.prototype.hasOwnProperty,p=[].slice,d=/\.js$/;o=function(e,t){var n,r=E(e),i=r[0],s=t[1];return e=r[1],i&&(i=m(i,s),n=w(i)),i?n&&n.normalize?e=n.normalize(e,y(s)):e=m(e,s):(e=m(e,s),r=E(e),i=r[0],e=r[1],i&&(n=w(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},u={require:function(e){return g(e)},exports:function(e){var t=a[e];return typeof t!="undefined"?t:a[e]={}},module:function(e){return{id:e,uri:"",exports:a[e],config:x(e)}}},i=function(e,t,n,i){var s,l,h,p,d,m,y=[],E=typeof n,x;i=i||e,m=S(i);if(E==="undefined"||E==="function"){t=!t.length&&n.length?["require","exports","module"]:t;for(d=0;dt-s?(n=e.clone().add(i-1,"months"),r=(t-s)/(s-n)):(n=e.clone().add(i+1,"months"),r=(t-s)/(n-s)),-(i+r)}function h(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&12>t&&(t+=12),r||12!==t||(t=0),t):t}function p(){}function d(e,t){t!==!1&&H(e),g(this,e),this._d=new Date(+e._d),xn===!1&&(xn=!0,xt.updateOffset(this),xn=!1)}function v(e){var t=L(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||0,o=t.day||0,u=t.hour||0,a=t.minute||0,f=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*f+6e4*a+36e5*u,this._days=+o+7*s,this._months=+i+3*r+12*n,this._data={},this._locale=xt.localeData(),this._bubble()}function m(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function g(e,t){var n,r,i;if("undefined"!=typeof t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),"undefined"!=typeof t._i&&(e._i=t._i),"undefined"!=typeof t._f&&(e._f=t._f),"undefined"!=typeof t._l&&(e._l=t._l),"undefined"!=typeof t._strict&&(e._strict=t._strict),"undefined"!=typeof t._tzm&&(e._tzm=t._tzm),"undefined"!=typeof t._isUTC&&(e._isUTC=t._isUTC),"undefined"!=typeof t._offset&&(e._offset=t._offset),"undefined"!=typeof t._pf&&(e._pf=t._pf),"undefined"!=typeof t._locale&&(e._locale=t._locale),Ft.length>0)for(n in Ft)r=Ft[n],i=t[r],"undefined"!=typeof i&&(e[r]=i);return e}function y(e){return 0>e?Math.ceil(e):Math.floor(e)}function b(e,t,n){for(var r=""+Math.abs(e),i=e>=0;r.lengthr;r++)(n&&e[r]!==t[r]||!n&&O(e[r])!==O(t[r]))&&o++;return o+s}function k(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=dn[e]||vn[t]||t}return e}function L(e){var t,n,r={};for(n in e)i(e,n)&&(t=k(n),t&&(r[t]=e[n]));return r}function A(t){var n,r;if(0===t.indexOf("week"))n=7,r="day";else{if(0!==t.indexOf("month"))return;n=12,r="month"}xt[t]=function(i,s){var o,u,a=xt._locale[t],f=[];if("number"==typeof i&&(s=i,i=e),u=function(e){var t=xt().utc().set(r,e);return a.call(xt._locale,t,i||"")},null!=s)return u(s);for(o=0;n>o;o++)f.push(u(o));return f}}function O(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function M(e,t){return(new Date(Date.UTC(e,t+1,0))).getUTCDate()}function _(e,t,n){return ct(xt([e,11,31+t-n]),t,n).week}function D(e){return P(e)?366:365}function P(e){return e%4===0&&e%100!==0||e%400===0}function H(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[Mt]<0||e._a[Mt]>11?Mt:e._a[_t]<1||e._a[_t]>M(e._a[Ot],e._a[Mt])?_t:e._a[Dt]<0||e._a[Dt]>24||24===e._a[Dt]&&(0!==e._a[Pt]||0!==e._a[Ht]||0!==e._a[Bt])?Dt:e._a[Pt]<0||e._a[Pt]>59?Pt:e._a[Ht]<0||e._a[Ht]>59?Ht:e._a[Bt]<0||e._a[Bt]>999?Bt:-1,e._pf._overflowDayOfYear&&(Ot>t||t>_t)&&(t=_t),e._pf.overflow=t)}function B(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length&&t._pf.bigHour===e)),t._isValid}function j(e){return e?e.toLowerCase().replace("_","-"):e}function F(e){for(var t,n,r,i,s=0;s0;){if(r=I(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&C(i,n,!0)>=t-1)break;t--}s++}return null}function I(e){var n=null;if(!jt[e]&&It)try{n=xt.locale(),t("./locale/"+e),xt.locale(n)}catch(r){}return jt[e]}function q(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(xt.isMoment(e)||N(e)?+e:+xt(e))- +n,n._d.setTime(+n._d+r),xt.updateOffset(n,!1),n):xt(e).local()}function R(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(zt);for(t=0,n=r.length;n>t;t++)r[t]=wn[r[t]]?wn[r[t]]:R(r[t]);return function(i){var s="";for(t=0;n>t;t++)s+=r[t]instanceof Function?r[t].call(i,e):r[t];return s}}function z(e,t){return e.isValid()?(t=W(t,e.localeData()),mn[t]||(mn[t]=U(t)),mn[t](e)):e.localeData().invalidDate()}function W(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Wt.lastIndex=0;r>=0&&Wt.test(e);)e=e.replace(Wt,n),Wt.lastIndex=0,r-=1;return e}function X(e,t){var n,r=t._strict;switch(e){case"Q":return tn;case"DDDD":return rn;case"YYYY":case"GGGG":case"gggg":return r?sn:$t;case"Y":case"G":case"g":return un;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return r?on:Jt;case"S":if(r)return tn;case"SS":if(r)return nn;case"SSS":if(r)return rn;case"DDD":return Vt;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Qt;case"a":case"A":return t._locale._meridiemParse;case"x":return Zt;case"X":return en;case"Z":case"ZZ":return Gt;case"T":return Yt;case"SSSS":return Kt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return r?nn:Xt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Xt;case"Do":return r?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return n=new RegExp(et(Z(e.replace("\\","")),"i"))}}function V(e){e=e||"";var t=e.match(Gt)||[],n=t[t.length-1]||[],r=(n+"").match(hn)||["-",0,0],i=+(60*r[1])+O(r[2]);return"+"===r[0]?i:-i}function $(e,t,n){var r,i=n._a;switch(e){case"Q":null!=t&&(i[Mt]=3*(O(t)-1));break;case"M":case"MM":null!=t&&(i[Mt]=O(t)-1);break;case"MMM":case"MMMM":r=n._locale.monthsParse(t,e,n._strict),null!=r?i[Mt]=r:n._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(i[_t]=O(t));break;case"Do":null!=t&&(i[_t]=O(parseInt(t.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=t&&(n._dayOfYear=O(t));break;case"YY":i[Ot]=xt.parseTwoDigitYear(t);break;case"YYYY":case"YYYYY":case"YYYYYY":i[Ot]=O(t);break;case"a":case"A":n._meridiem=t;break;case"h":case"hh":n._pf.bigHour=!0;case"H":case"HH":i[Dt]=O(t);break;case"m":case"mm":i[Pt]=O(t);break;case"s":case"ss":i[Ht]=O(t);break;case"S":case"SS":case"SSS":case"SSSS":i[Bt]=O(1e3*("0."+t));break;case"x":n._d=new Date(O(t));break;case"X":n._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=V(t);break;case"dd":case"ddd":case"dddd":r=n._locale.weekdaysParse(t),null!=r?(n._w=n._w||{},n._w.d=r):n._pf.invalidWeekday=t;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":e=e.substr(0,1);case"gggg":case"GGGG":case"GGGGG":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=O(t));break;case"gg":case"GG":n._w=n._w||{},n._w[e]=xt.parseTwoDigitYear(t)}}function J(e){var t,n,i,s,o,u,a;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(o=1,u=4,n=r(t.GG,e._a[Ot],ct(xt(),1,4).year),i=r(t.W,1),s=r(t.E,1)):(o=e._locale._week.dow,u=e._locale._week.doy,n=r(t.gg,e._a[Ot],ct(xt(),o,u).year),i=r(t.w,1),null!=t.d?(s=t.d,o>s&&++i):s=null!=t.e?t.e+o:o),a=ht(n,i,s,u,o),e._a[Ot]=a.year,e._dayOfYear=a.dayOfYear}function K(e){var t,n,i,s,o=[];if(!e._d){for(i=G(e),e._w&&null==e._a[_t]&&null==e._a[Mt]&&J(e),e._dayOfYear&&(s=r(e._a[Ot],i[Ot]),e._dayOfYear>D(s)&&(e._pf._overflowDayOfYear=!0),n=ut(s,0,e._dayOfYear),e._a[Mt]=n.getUTCMonth(),e._a[_t]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;7>t;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Dt]&&0===e._a[Pt]&&0===e._a[Ht]&&0===e._a[Bt]&&(e._nextDay=!0,e._a[Dt]=0),e._d=(e._useUTC?ut:ot).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Dt]=24)}}function Q(e){var t;e._d||(t=L(e._i),e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],K(e))}function G(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Y(t){if(t._f===xt.ISO_8601)return void nt(t);t._a=[],t._pf.empty=!0;var n,r,i,s,o,u=""+t._i,a=u.length,f=0;for(i=W(t._f,t._locale).match(zt)||[],n=0;n0&&t._pf.unusedInput.push(o),u=u.slice(u.indexOf(r)+r.length),f+=r.length),wn[s]?(r?t._pf.empty=!1:t._pf.unusedTokens.push(s),$(s,r,t)):t._strict&&!r&&t._pf.unusedTokens.push(s);t._pf.charsLeftOver=a-f,u.length>0&&t._pf.unusedInput.push(u),t._pf.bigHour===!0&&t._a[Dt]<=12&&(t._pf.bigHour=e),t._a[Dt]=h(t._locale,t._a[Dt],t._meridiem),K(t),H(t)}function Z(e){return e.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})}function et(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function tt(e){var t,n,r,i,o;if(0===e._f.length)return e._pf.invalidFormat=!0,void (e._d=new Date(0/0));for(i=0;io)&&(r=o,n=t));m(e,n||t)}function nt(e){var t,n,r=e._i,i=an.exec(r);if(i){for(e._pf.iso=!0,t=0,n=ln.length;n>t;t++)if(ln[t][1].exec(r)){e._f=ln[t][0]+(i[6]||" ");break}for(t=0,n=cn.length;n>t;t++)if(cn[t][1].exec(r)){e._f+=cn[t][0];break}r.match(Gt)&&(e._f+="Z"),Y(e)}else e._isValid=!1}function rt(e){nt(e),e._isValid===!1&&(delete e._isValid,xt.createFromInputFallback(e))}function it(e,t){var n,r=[];for(n=0;ne&&u.setFullYear(e),u}function ut(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function at(e,t){if("string"==typeof e)if(isNaN(e)){if(e=t.weekdaysParse(e),"number"!=typeof e)return null}else e=parseInt(e,10);return e}function ft(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function lt(e,t,n){var r=xt.duration(e).abs(),i=Lt(r.as("s")),s=Lt(r.as("m")),o=Lt(r.as("h")),u=Lt(r.as("d")),a=Lt(r.as("M")),f=Lt(r.as("y")),l=i0,l[4]=n,ft.apply({},l)}function ct(e,t,n){var r,i=n-t,s=n-e.day();return s>i&&(s-=7),i-7>s&&(s+=7),r=xt(e).add(s,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function ht(e,t,n,r,i){var s,o,u=ut(e,0,1).getUTCDay();return u=0===u?7:u,n=null!=n?n:i,s=i-u+(u>r?7:0)-(i>u?7:0),o=7*(t-1)+(n-i)+s+1,{year:o>0?e:e-1,dayOfYear:o>0?o:D(e-1)+o}}function pt(t){var n,r=t._i,i=t._f;return t._locale=t._locale||xt.localeData(t._l),null===r||i===e&&""===r?xt.invalid({nullInput:!0}):("string"==typeof r&&(t._i=r=t._locale.preparse(r)),xt.isMoment(r)?new d(r,!0):(i?T(i)?tt(t):Y(t):st(t),n=new d(t),n._nextDay&&(n.add(1,"d"),n._nextDay=e),n))}function dt(e,t){var n,r;if(1===t.length&&T(t[0])&&(t=t[0]),!t.length)return xt();for(n=t[0],r=1;r=0?"+":"-";return t+b(Math.abs(e),6)},gg:function(){return b(this.weekYear()%100,2)},gggg:function(){return b(this.weekYear(),4)},ggggg:function(){return b(this.weekYear(),5)},GG:function(){return b(this.isoWeekYear()%100,2)},GGGG:function(){return b(this.isoWeekYear(),4)},GGGGG:function(){return b(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return O(this.milliseconds()/100)},SS:function(){return b(O(this.milliseconds()/10),2)},SSS:function(){return b(this.milliseconds(),3)},SSSS:function(){return b(this.milliseconds(),3)},Z:function(){var e=this.utcOffset(),t="+";return 0>e&&(e=-e,t="-"),t+b(O(e/60),2)+":"+b(O(e)%60,2)},ZZ:function(){var e=this.utcOffset(),t="+";return 0>e&&(e=-e,t="-"),t+b(O(e/60),2)+b(O(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},En={},Sn=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],xn=!1;yn.length;)Nt=yn.pop(),wn[Nt+"o"]=l(wn[Nt],Nt);for(;bn.length;)Nt=bn.pop(),wn[Nt+Nt]=f(wn[Nt],2);wn.DDDD=f(wn.DDD,3),m(p.prototype,{set:function(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e,t,n){var r,i,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=xt.utc([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysParse:function(e){var t,n,r;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;7>t;t++)if(this._weekdaysParse[t]||(n=xt([2e3,1]).day(t),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},isPM:function(e){return"p"===(e+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(e,t,n){var r=this._calendar[e];return"function"==typeof r?r.apply(t,[n]):r},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(e,t,n,r){var i=this._relativeTime[n];return"function"==typeof i?i(e,t,n,r):i.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(e){return e},postformat:function(e){return e},week:function(e){return ct(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),xt=function(t,n,r,i){var o;return"boolean"==typeof r&&(i=r,r=e),o={},o._isAMomentObject=!0,o._i=t,o._f=n,o._l=r,o._strict=i,o._isUTC=!1,o._pf=s(),pt(o)},xt.suppressDeprecationWarnings=!1,xt.createFromInputFallback=u("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),xt.min=function(){var e=[].slice.call(arguments,0);return dt("isBefore",e)},xt.max=function(){var e=[].slice.call(arguments,0);return dt("isAfter",e)},xt.utc=function(t,n,r,i){var o;return"boolean"==typeof r&&(i=r,r=e),o={},o._isAMomentObject=!0,o._useUTC=!0,o._isUTC=!0,o._l=r,o._i=t,o._f=n,o._strict=i,o._pf=s(),pt(o).utc()},xt.unix=function(e){return xt(1e3*e)},xt.duration=function(e,t){var n,r,s,o,u=e,a=null;return xt.isDuration(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(u={},t?u[t]=e:u.milliseconds=e):(a=Rt.exec(e))?(n="-"===a[1]?-1:1,u={y:0,d:O(a[_t])*n,h:O(a[Dt])*n,m:O(a[Pt])*n,s:O(a[Ht])*n,ms:O(a[Bt])*n}):(a=Ut.exec(e))?(n="-"===a[1]?-1:1,s=function(e){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n},u={y:s(a[2]),M:s(a[3]),d:s(a[4]),h:s(a[5]),m:s(a[6]),s:s(a[7]),w:s(a[8])}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=E(xt(u.from),xt(u.to)),u={},u.ms=o.milliseconds,u.M=o.months),r=new v(u),xt.isDuration(e)&&i(e,"_locale")&&(r._locale=e._locale),r},xt.version=Ct,xt.defaultFormat=fn,xt.ISO_8601=function(){},xt.momentProperties=Ft,xt.updateOffset=function(){},xt.relativeTimeThreshold=function(t,n){return gn[t]===e?!1:n===e?gn[t]:(gn[t]=n,!0)},xt.lang=u("moment.lang is deprecated. Use moment.locale instead.",function(e,t){return xt.locale(e,t)}),xt.locale=function(e,t){var n;return e&&(n="undefined"!=typeof t?xt.defineLocale(e,t):xt.localeData(e),n&&(xt.duration._locale=xt._locale=n)),xt._locale._abbr},xt.defineLocale=function(e,t){return null!==t?(t.abbr=e,jt[e]||(jt[e]=new p),jt[e].set(t),xt.locale(e),jt[e]):(delete jt[e],null)},xt.langData=u("moment.langData is deprecated. Use moment.localeData instead.",function(e){return xt.localeData(e)}),xt.localeData=function(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return xt._locale;if(!T(e)){if(t=I(e))return t;e=[e]}return F(e)},xt.isMoment=function(e){return e instanceof d||null!=e&&i(e,"_isAMomentObject")},xt.isDuration=function(e){return e instanceof v};for(Nt=Sn.length-1;Nt>=0;--Nt)A(Sn[Nt]);xt.normalizeUnits=function(e){return k(e)},xt.invalid=function(e){var t=xt.utc(0/0);return null!=e?m(t._pf,e):t._pf.userInvalidated=!0,t},xt.parseZone=function(){return xt.apply(null,arguments).parseZone()},xt.parseTwoDigitYear=function(e){return O(e)+(O(e)>68?1900:2e3)},xt.isDate=N,m(xt.fn=d.prototype,{clone:function(){return xt(this)},valueOf:function(){return+this._d-6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var e=xt(this).utc();return 00:!1},parsingFlags:function(){return m({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.utcOffset(0,e)},local:function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(e){var t=z(this,e||xt.defaultFormat);return this.localeData().postformat(t)},add:S(1,"add"),subtract:S(-1,"subtract"),diff:function(e,t,n){var r,i,s=q(e,this),o=6e4*(s.utcOffset()-this.utcOffset());return t=k(t),"year"===t||"month"===t||"quarter"===t?(i=c(this,s),"quarter"===t?i/=3:"year"===t&&(i/=12)):(r=this-s,i="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-o)/864e5:"week"===t?(r-o)/6048e5:r),n?i:y(i)},from:function(e,t){return xt.duration({to:this,from:e}).locale(this.locale()).humanize(!t)},fromNow:function(e){return this.from(xt(),e)},calendar:function(e){var t=e||xt(),n=q(t,this).startOf("day"),r=this.diff(n,"days",!0),i=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(this.localeData().calendar(i,this,xt(t)))},isLeapYear:function(){return P(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=at(e,this.localeData()),this.add(e-t,"d")):t},month:yt("Month",!0),startOf:function(e){switch(e=k(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e?this.weekday(0):"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return t=k(t),t===e||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},isAfter:function(e,t){var n;return t=k("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=xt.isMoment(e)?e:xt(e),+this>+e):(n=xt.isMoment(e)?+e:+xt(e),n<+this.clone().startOf(t))},isBefore:function(e,t){var n;return t=k("undefined"!=typeof t?t:"millisecond"),"millisecond"===t?(e=xt.isMoment(e)?e:xt(e),+e>+this):(n=xt.isMoment(e)?+e:+xt(e),+this.clone().endOf(t)e?this:e}),max:u("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(e){return e=xt.apply(null,arguments),e>this?this:e}),zone:u("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),utcOffset:function(e,t){var n,r=this._offset||0;return null!=e?("string"==typeof e&&(e=V(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(n=this._dateUtcOffset()),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?x(this,xt.duration(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,xt.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&0===this._offset},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(V(this._i)),this},hasAlignedHourOffset:function(e){return e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60===0},daysInMonth:function(){return M(this.year(),this.month())},dayOfYear:function(e){var t=Lt((xt(this).startOf("day")-xt(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=ct(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},isoWeekYear:function(e){var t=ct(this,1,4).year;return null==e?t:this.add(e-t,"y")},week:function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},isoWeek:function(e){var t=ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return _(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return _(this.year(),e.dow,e.doy)},get:function(e){return e=k(e),this[e]()},set:function(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else e=k(e),"function"==typeof this[e]&&this[e](t);return this},locale:function(t){var n;return t===e?this._locale._abbr:(n=xt.localeData(t),null!=n&&(this._locale=n),this)},lang:u("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===e?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateUtcOffset:function(){return 15*-Math.round(this._d.getTimezoneOffset()/15)}}),xt.fn.millisecond=xt.fn.milliseconds=yt("Milliseconds",!1),xt.fn.second=xt.fn.seconds=yt("Seconds",!1),xt.fn.minute=xt.fn.minutes=yt("Minutes",!1),xt.fn.hour=xt.fn.hours=yt("Hours",!0),xt.fn.date=yt("Date",!0),xt.fn.dates=u("dates accessor is deprecated. Use date instead.",yt("Date",!0)),xt.fn.year=yt("FullYear",!0),xt.fn.years=u("years accessor is deprecated. Use year instead.",yt("FullYear",!0)),xt.fn.days=xt.fn.day,xt.fn.months=xt.fn.month,xt.fn.weeks=xt.fn.week,xt.fn.isoWeeks=xt.fn.isoWeek,xt.fn.quarters=xt.fn.quarter,xt.fn.toJSON=xt.fn.toISOString,xt.fn.isUTC=xt.fn.isUtc,m(xt.duration.fn=v.prototype,{_bubble:function(){var e,t,n,r=this._milliseconds,i=this._days,s=this._months,o=this._data,u=0;o.milliseconds=r%1e3,e=y(r/1e3),o.seconds=e%60,t=y(e/60),o.minutes=t%60,n=y(t/60),o.hours=n%24,i+=y(n/24),u=y(bt(i)),i-=y(wt(u)),s+=y(i/30),i%=30,u+=y(s/12),s%=12,o.days=i,o.months=s,o.years=u},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return y(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*O(this._months/12)},humanize:function(e){var t=lt(this,!e,this.localeData());return e&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(e,t){var n=xt.duration(e,t);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(e,t){var n=xt.duration(e,t);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(e){return e=k(e),this[e.toLowerCase()+"s"]()},as:function(e){var t,n;if(e=k(e),"month"===e||"year"===e)return t=this._days+this._milliseconds/864e5,n=this._months+12*bt(t),"month"===e?n:n/12;switch(t=this._days+Math.round(wt(this._months/12)),e){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return 24*t+this._milliseconds/36e5;case"minute":return 24*t*60+this._milliseconds/6e4;case"second":return 24*t*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*t*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+e)}},lang:xt.fn.lang,locale:xt.fn.locale,toIsoString:u("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),r=Math.abs(this.hours()),i=Math.abs(this.minutes()),s=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(r||i||s?"T":"")+(r?r+"H":"")+(i?i+"M":"")+(s?s+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),xt.duration.fn.toString=xt.duration.fn.toISOString;for(Nt in pn)i(pn,Nt)&&Et(Nt.toLowerCase());xt.duration.fn.asMilliseconds=function(){return this.as("ms")},xt.duration.fn.asSeconds=function(){return this.as("s")},xt.duration.fn.asMinutes=function(){return this.as("m")},xt.duration.fn.asHours=function(){return this.as("h")},xt.duration.fn.asDays=function(){return this.as("d")},xt.duration.fn.asWeeks=function(){return this.as("weeks")},xt.duration.fn.asMonths=function(){return this.as("M")},xt.duration.fn.asYears=function(){return this.as("y")},xt.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===O(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),function(e){e(xt)}(function(e){return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return 12>e?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}),function(e){e(xt)}(function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e){return 12>e?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}),function(e){e(xt)}(function(e){return e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&10>=e%100?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(t,n){var s=r(t),o=i[e][r(t)];return 2===s&&(o=o[n?0:1]),o.replace(/%d/i,t)}},o=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e){return 12>e?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}),function(e){e(xt)}(function(e){var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e){return 4>e?"gecə":12>e?"səhər":17>e?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(i[r],+e)}function r(e,t){var n={nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[r][e.month()]}function i(e,t){var n={nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")},r=/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[r][e.day()]}return e.defineLocale("be",{months:r,monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:i,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e){return 4>e?"ночы":12>e?"раніцы":17>e?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&20>n?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return e.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|শকাল|দুপুর|বিকেল|রাত/,isPM:function(e){return/^(দুপুর|বিকেল|রাত)$/.test(e)},meridiem:function(e){return 4>e?"রাত":10>e?"শকাল":17>e?"দুপুর":20>e?"বিকেল":"রাত"},week:{dow:0,doy:6}})}),function(e){e(xt)}(function(e){var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,isPM:function(e){return/^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(e)},meridiem:function(e){return 4>e?"མཚན་མོ":10>e?"ཞོགས་ཀས":17>e?"ཉིན་གུང":20>e?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}),function(e){e(xt)}(function(t){function n(e,t,n){var r={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+s(r[n],e)}function r(e){switch(i(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function i(e){return e>9?i(e%10):e}function s(e,t){return 2===t?o(e):e}function o(t){var n={m:"v",b:"v",d:"z"};return n[t.charAt(0)]===e?t:n[t.charAt(0)]+t.substring(1)}return t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY LT",LLLL:"dddd, D [a viz] MMMM YYYY LT"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:r},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e,t,n){var r=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return("w"===t||"W"===t)&&(n="a"),e+n},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e){return e>1&&5>e&&1!==~~(e/10)}function n(e,n,r,i){var s=e+" ";switch(r){case"s":return n||i?"pár sekund":"pár sekundami";case"m":return n?"minuta":i?"minutu":"minutou";case"mm":return n||i?s+(t(e)?"minuty":"minut"):s+"minutami";case"h":return n?"hodina":i?"hodinu":"hodinou";case"hh":return n||i?s+(t(e)?"hodiny":"hodin"):s+"hodinami";case"d":return n||i?"den":"dnem";case"dd":return n||i?s+(t(e)?"dny":"dní"):s+"dny";case"M":return n||i?"měsíc":"měsícem";case"MM":return n||i?s+(t(e)?"měsíce":"měsíců"):s+"měsíci";case"y":return n||i?"rok":"rokem";case"yy":return n||i?s+(t(e)?"roky":"let"):s+"lety"}}var r="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),i="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return e.defineLocale("cs",{months:r,monthsShort:i,monthsParse:function(e,t){var n,r=[];for(n=0;12>n;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(r,i),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("cv",{months:"кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),monthsShort:"кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кç_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",LLL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",LLLL:"dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ĕнер] LT [сехетре]",nextWeek:"[Çитес] dddd LT [сехетре]",lastWeek:"[Иртнĕ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/çул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пĕр-ик çеккунт",m:"пĕр минут",mm:"%d минут",h:"пĕр сехет",hh:"%d сехет",d:"пĕр кун",dd:"%d кун",M:"пĕр уйăх",MM:"%d уйăх",y:"пĕр çул",yy:"%d çул"},ordinalParse:/\d{1,2}-мĕш/,ordinal:"%d-мĕш",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,n="",r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=r[t]),e+n},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e,t,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}return e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e,t,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n=this._calendarEl[e],r=t&&t.hours();return"function"==typeof n&&(n=n.apply(t)),n.replace("{}",r%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY LT",LLLL:"dddd, D MMMM, YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}),function(e){e(xt)}(function(e){return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY LT",LLLL:"dddd, [la] D[-an de] MMMM, YYYY LT"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return/-MMM-/.test(r)?n[e.month()]:t[e.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}return e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] LT",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] LT",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] LT",llll:"ddd, YYYY[ko] MMM D[a] LT"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e){return 12>e?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}),function(e){e(xt)}(function(e){function t(e,t,r,i){var s="";switch(r){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"m":return i?"minuutin":"minuutti";case"mm":s=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":s=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":s=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":s=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":s=i?"vuoden":"vuotta"}return s=n(e,i)+" "+s}function n(e,t){return 10>e?t?i[e]:r[e]:e}var r="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),i=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",r[7],r[8],r[9]];return e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D. MMMM, YYYY LT"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")}})}),function(e){e(xt)}(function(e){return e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");return e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return/-MMM-/.test(r)?n[e.month()]:t[e.month()]},weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return"uns segundos"===e?"nuns segundos":"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY LT",LLLL:"dddd, D [ב]MMMM YYYY LT",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10===0&&10!==e?e+" שנה":e+" שנים"}}})}),function(e){e(xt)}(function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?4>e?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e){return 4>e?"रात":10>e?"सुबह":17>e?"दोपहर":20>e?"शाम":"रात"},week:{dow:0,doy:6}})}),function(e){e(xt)}(function(e){function t(e,t,n){var r=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("hr",{months:"sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){function t(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+r[this.day()]+"] LT[-kor]"}var r="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return 12>e?n===!0?"de":"DE":n===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){function t(e,t){var n={nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[r][e.month()]}function n(e){var t="հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_");return t[e.month()]}function r(e){var t="կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_");return t[e.day()]}return e.defineLocale("hy-am",{months:t,monthsShort:n,weekdays:r,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., LT",LLLL:"dddd, D MMMM YYYY թ., LT"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return 4>e?"գիշերվա":12>e?"առավոտվա":17>e?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e){return 11>e?"pagi":15>e?"siang":19>e?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){function t(e){return e%100===11?!0:e%10===1?!1:!0}function n(e,n,r,i){var s=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?s+(n||i?"mínútur":"mínútum"):n?s+"mínúta":s+"mínútu";case"hh":return t(e)?s+(n||i?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?s+"dagar":s+(i?"daga":"dögum"):n?s+"dagur":s+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?s+"mánuðir":s+(i?"mánuði":"mánuðum"):n?s+"mánuður":s+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?s+(n||i?"ár":"árum"):s+(n||i?"ár":"ári")}}return e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd, D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"LTs秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e){return 12>e?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}),function(e){e(xt)}(function(e){function t(e,t){var n={nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},r=/D[oD] *MMMM?/.test(t)?"accusative":"nominative";return n[r][e.month()]}function n(e,t){var n={nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")},r=/(წინა|შემდეგ)/.test(t)?"accusative":"nominative";return n[r][e.day()]}return e.defineLocale("ka",{months:t,monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:n,weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":20>e||100>=e&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",LLLL:"YYYY년 MMMM D일 dddd LT"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e){return 12>e?"오전":"오후"}})}),function(e){e(xt)}(function(e){function t(e,t,n){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return i(t)?"a "+e:"an "+e}function r(e){var t=e.substr(0,e.indexOf(" "));return i(t)?"viru "+e:"virun "+e}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(0>e)return!0;if(10>e)return e>=4&&7>=e?!0:!1;if(100>e){var t=e%10,n=e/10;return i(0===t?n:t)}if(1e4>e){for(;e>=10;)e/=10;return i(e)}return e/=1e3,i(e)}return e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10===0||e>10&&20>e}function i(e){return u[e].split("_")}function s(e,t,s,o){var u=e+" ";return 1===e?u+n(e,t,s[0],o):t?u+(r(e)?i(s)[1]:i(s)[0]):o?u+i(s)[1]:u+(r(e)?i(s)[1]:i(s)[2])}function o(e,t){var n=-1===t.indexOf("dddd HH:mm"),r=a[e.day()];return n?r:r.substring(0,r.length-2)+"į"}var u={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"},a="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_");return e.defineLocale("lt",{months:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:o,weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], LT [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, LT [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], LT [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, LT [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:t,m:n,mm:s,h:n,hh:s,d:n,dd:s,M:n,MM:s,y:n,yy:s},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e,t,n){var r=e.split("_");return n?t%10===1&&11!==t?r[2]:r[3]:t%10===1&&11!==t?r[0]:r[1]}function n(e,n,i){return e+" "+t(r[i],e,n)}var r={mm:"minūti_minūtes_minūte_minūtes",hh:"stundu_stundas_stunda_stundas",dd:"dienu_dienas_diena_dienas",MM:"mēnesi_mēnešus_mēnesis_mēneši",yy:"gadu_gadus_gads_gadi"};return e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, LT",LLLL:"YYYY. [gada] D. MMMM, dddd, LT"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"%s vēlāk",past:"%s agrāk",s:"dažas sekundes",m:"minūti",mm:n,h:"stundu",hh:n,d:"dienu",dd:n,M:"mēnesi",MM:n,y:"gadu",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Во изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Во изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&20>n?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,isPM:function(e){return/^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(e)},meridiem:function(e){return 4>e?"രാത്രി":12>e?"രാവിലെ":17>e?"ഉച്ച കഴിഞ്ഞ്":20>e?"വൈകുന്നേരം":"രാത്രി"}})}),function(e){e(xt)}(function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?4>e?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e){return 4>e?"रात्री":10>e?"सकाळी":17>e?"दुपारी":20>e?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}),function(e){e(xt)}(function(e){return e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e){return 11>e?"pagi":15>e?"tengahari":19>e?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",LTS:"LT.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आइ._सो._मङ्_बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राती|बिहान|दिउँसो|बेलुका|साँझ|राती/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?3>e?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"बेलुका"===t||"साँझ"===t?e+12:void 0},meridiem:function(e){return 3>e?"राती":10>e?"बिहान":15>e?"दिउँसो":18>e?"बेलुका":20>e?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");return e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return/-MMM-/.test(r)?n[e.month()]:t[e.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e){return 5>e%10&&e%10>1&&~~(e/10)%10!==1}function n(e,n,r){var i=e+" ";switch(r){case"m":return n?"minuta":"minutę";case"mm":return i+(t(e)?"minuty":"minut");case"h":return n?"godzina":"godzinę";case"hh":return i+(t(e)?"godziny":"godzin");case"MM":return i+(t(e)?"miesiące":"miesięcy");case"yy":return i+(t(e)?"lata":"lat")}}var r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,t){return/D MMMM/.test(t)?i[e.month()]:r[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})}),function(e){e(xt)}(function(e){return e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e,t,n){var r={mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},i=" ";return(e%100>=20||e>=100&&e%100===0)&&(i=" de "),e+i+r[n]}return e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?n?"минута":"минуту":e+" "+t(i[r],+e)}function r(e,t){var n={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[r][e.month()]}function i(e,t){var n={nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[r][e.month()]}function s(e,t){var n={nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")},r=/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[r][e.day()]}return e.defineLocale("ru",{months:r,monthsShort:i,weekdays:s,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e){return 4>e?"ночи":12>e?"утра":17>e?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){function t(e){return e>1&&5>e}function n(e,n,r,i){var s=e+" ";switch(r){case"s":return n||i?"pár sekúnd":"pár sekundami";case"m":return n?"minúta":i?"minútu":"minútou";case"mm":return n||i?s+(t(e)?"minúty":"minút"):s+"minútami";case"h":return n?"hodina":i?"hodinu":"hodinou";case"hh":return n||i?s+(t(e)?"hodiny":"hodín"):s+"hodinami";case"d":return n||i?"deň":"dňom";case"dd":return n||i?s+(t(e)?"dni":"dní"):s+"dňami";case"M":return n||i?"mesiac":"mesiacom";case"MM":return n||i?s+(t(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return n||i?"rok":"rokom";case"yy":return n||i?s+(t(e)?"roky":"rokov"):s+"rokmi"}}var r="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),i="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return e.defineLocale("sk",{months:r,monthsShort:i,monthsParse:function(e,t){var n,r=[];for(n=0;12>n;n++)r[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return r}(r,i),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){function t(e,t,n){var r=e+" ";switch(n){case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?"minuta":2===e?"minuti":3===e||4===e?"minute":"minut";case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?"ura":2===e?"uri":3===e||4===e?"ure":"ur";case"dd":return r+=1===e?"dan":"dni";case"MM":return r+=1===e?"mesec":2===e?"meseca":3===e||4===e?"mesece":"mesecev";case"yy":return r+=1===e?"leto":2===e?"leti":3===e||4===e?"leta":"let"}}return e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[prejšnja] dddd [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"%s nazaj",s:"nekaj sekund",m:t,mm:t,h:t,hh:t,d:"en dan",dd:t,M:"en mesec",MM:t,y:"eno leto",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e){return 12>e?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};return e.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};return e.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"dddd LT",lastWeek:"[Förra] dddd[en] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"e":1===t?"a":2===t?"a":"e";return e+n},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e){return 2>e?" யாமம்":6>e?" வைகறை":10>e?" காலை":14>e?" நண்பகல்":18>e?" எற்பாடு":22>e?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?2>e?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}),function(e){e(xt)}(function(e){return e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"LT s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e){return 12>e?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}),function(e){e(xt)}(function(e){return e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM DD, YYYY LT"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}),function(e){e(xt)}(function(e){return e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}),function(e){e(xt)}(function(e){function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function n(e,n,r){var i={mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t(i[r],+e)}function r(e,t){var n={nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")},r=/D[oD]? *MMMM?/.test(t)?"accusative":"nominative";return n[r][e.month()]}function i(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},r=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return n[r][e.day()]}function s(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:r,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:i,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., LT",LLLL:"dddd, D MMMM YYYY р., LT"},calendar:{sameDay:s("[Сьогодні "),nextDay:s("[Завтра "),lastDay:s("[Вчора "),nextWeek:s("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return s("[Минулої] dddd [").call(this);case 1:case 2:case 4:return s("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e){return 4>e?"ночі":12>e?"ранку":17>e?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"D MMMM YYYY, dddd LT"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}),function(e){e(xt)}(function(e){return e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY LT",LLLL:"dddd, D MMMM [năm] YYYY LT",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}),function(e){e(xt)}(function(e){return e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return 600>n?"凌晨":900>n?"早上":1130>n?"上午":1230>n?"中午":1800>n?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()-t.unix()>=604800?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t){var n=100*e+t;return 900>n?"早上":1130>n?"上午":1230>n?"中午":1800>n?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})}),xt.locale("en"),It?module.exports=xt:"function"==typeof n&&n.amd?(n("moment",["require","exports","module"],function(e,t,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(kt.moment=Tt),xt}),St(!0)):St()}.call(this),n("router",[],function(){return function(){function u(){var e=[];i&&e.push("v:"+i),s&&("node"in s&&e.push("n:"+encodeURIComponent(s.node.nodeinfo.node_id)),"link"in s&&e.push("l:"+encodeURIComponent(s.link.id)));var t="#!"+e.join(";");window.history.pushState(t,undefined,t)}function a(e){e=f(e),n.forEach(function(e){e.resetView()}),e&&(s=undefined,u())}function l(e){return e?(n.forEach(function(t){t.gotoNode(e)}),!0):!1}function c(e){return e?(n.forEach(function(t){t.gotoLink(e)}),!0):!1}function h(e){return e?(n.forEach(function(t){t.gotoLocation||console.warn("has no gotoLocation",t),t.gotoLocation(e)}),!0):!1}function p(e){if(!e)return!1;e=decodeURIComponent(e);if(!e.startsWith("#!"))return!1;var n=!1;return e.slice(2).split(";").forEach(function(e){var o=e.split(":");o[0]==="v"&&o[1]in r&&(i=o[1],r[o[1]]());var u;o[0]==="n"&&(u=o[1],u in t.nodes&&(s={node:t.nodes[u]},l(t.nodes[u]),n=!0)),o[0]==="l"&&(u=o[1],u in t.links&&(s={link:t.links[u]},c(t.links[u]),n=!0))}),n}var e=this,t={nodes:{},links:{}},n=[],r={},i,s,o=!1;return e.start=function(){o=!0,p(window.location.hash)||a(!1),window.onpopstate=function(e){p(e.state)||a(!1)}},e.view=function(e){if(e in r){r[e]();if(!i||o)i=e;if(!o)return;u();if(!s){a(!1);return}"node"in s&&l(s.node),"link"in s&&c(s.link)}},e.node=function(e){return function(){return l(e)&&(s={node:e},u()),!1}},e.link=function(e){return function(){return c(e)&&(s={link:e},u()),!1}},e.gotoLocation=h,e.reset=function(){a()},e.addTarget=function(e){n.push(e)},e.removeTarget=function(e){n=n.filter(function(t){return e!==t})},e.addView=function(e,t){r[e]=t},e.setData=function(e){t.nodes={},t.links={},e.nodes.all.forEach(function(e){t.nodes[e.nodeinfo.node_id]=e}),e.graph.links.forEach(function(e){t.links[e.id]=e})},e}}),!function(e,t,r){var i=e.L,s={};s.version="0.7.7","object"==typeof module&&"object"==typeof module.exports?module.exports=s:"function"==typeof n&&n.amd&&n("leaflet",s),s.noConflict=function(){return e.L=i,this},e.L=s,s.Util={extend:function(e){var t,n,r,i,s=Array.prototype.slice.call(arguments,1);for(n=0,r=s.length;r>n;n++){i=s[n]||{};for(t in i)i.hasOwnProperty(t)&&(e[t]=i[t])}return e},bind:function(e,t){var n=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return e.apply(t,n||arguments)}},stamp:function(){var e=0,t="_leaflet_id";return function(n){return n[t]=n[t]||++e,n[t]}}(),invokeEach:function(e,t,n){var r,i;if("object"==typeof e){i=Array.prototype.slice.call(arguments,3);for(r in e)t.apply(n,[r,e[r]].concat(i));return!0}return!1},limitExecByInterval:function(e,t,n){var r,i;return function s(){var o=arguments;return r?void (i=!0):(r=!0,setTimeout(function(){r=!1,i&&(s.apply(n,o),i=!1)},t),void e.apply(n,o))}},falseFn:function(){return!1},formatNum:function(e,t){var n=Math.pow(10,t||5);return Math.round(e*n)/n},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},splitWords:function(e){return s.Util.trim(e).split(/\s+/)},setOptions:function(e,t){return e.options=s.extend({},e.options,t),e.options},getParamString:function(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")},template:function(e,t){return e.replace(/\{ *([\w_]+) *\}/g,function(e,n){var i=t[n];if(i===r)throw new Error("No value provided for variable "+e);return"function"==typeof i&&(i=i(t)),i})},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function t(t){var n,r,i=["webkit","moz","o","ms"];for(n=0;ne;e++)r._initHooks[e].call(this)}},t},s.Class.include=function(e){s.extend(this.prototype,e)},s.Class.mergeOptions=function(e){s.extend(this.prototype.options,e)},s.Class.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n)};var o="_leaflet_events";s.Mixin={},s.Mixin.Events={addEventListener:function(e,t,n){if(s.Util.invokeEach(e,this.addEventListener,this,t,n))return this;var r,i,u,a,f,l,c,h=this[o]=this[o]||{},p=n&&n!==this&&s.stamp(n);for(e=s.Util.splitWords(e),r=0,i=e.length;i>r;r++)u={action:t,context:n||this},a=e[r],p?(f=a+"_idx",l=f+"_len",c=h[f]=h[f]||{},c[p]||(c[p]=[],h[l]=(h[l]||0)+1),c[p].push(u)):(h[a]=h[a]||[],h[a].push(u));return this},hasEventListeners:function(e){var t=this[o];return!!t&&(e in t&&t[e].length>0||e+"_idx"in t&&t[e+"_idx_len"]>0)},removeEventListener:function(e,t,n){if(!this[o])return this;if(!e)return this.clearAllEventListeners();if(s.Util.invokeEach(e,this.removeEventListener,this,t,n))return this;var r,i,u,a,f,l,c,h,p,d=this[o],v=n&&n!==this&&s.stamp(n);for(e=s.Util.splitWords(e),r=0,i=e.length;i>r;r++)if(u=e[r],l=u+"_idx",c=l+"_len",h=d[l],t){if(a=v&&h?h[v]:d[u]){for(f=a.length-1;f>=0;f--)a[f].action!==t||n&&a[f].context!==n||(p=a.splice(f,1),p[0].action=s.Util.falseFn);n&&h&&0===a.length&&(delete h[v],d[c]--)}}else delete d[u],delete d[l],delete d[c];return this},clearAllEventListeners:function(){return delete this[o],this},fireEvent:function(e,t){if(!this.hasEventListeners(e))return this;var n,r,i,u,a,f=s.Util.extend({},t,{type:e,target:this}),l=this[o];if(l[e])for(n=l[e].slice(),r=0,i=n.length;i>r;r++)n[r].action.call(n[r].context,f);u=l[e+"_idx"];for(a in u)if(n=u[a].slice())for(r=0,i=n.length;i>r;r++)n[r].action.call(n[r].context,f);return this},addOneTimeEventListener:function(e,t,n){if(s.Util.invokeEach(e,this.addOneTimeEventListener,this,t,n))return this;var r=s.bind(function(){this.removeEventListener(e,t,n).removeEventListener(e,r,n)},this);return this.addEventListener(e,t,n).addEventListener(e,r,n)}},s.Mixin.Events.on=s.Mixin.Events.addEventListener,s.Mixin.Events.off=s.Mixin.Events.removeEventListener,s.Mixin.Events.once=s.Mixin.Events.addOneTimeEventListener,s.Mixin.Events.fire=s.Mixin.Events.fireEvent,function(){var n="ActiveXObject"in e,i=n&&!t.addEventListener,o=navigator.userAgent.toLowerCase(),u=-1!==o.indexOf("webkit"),a=-1!==o.indexOf("chrome"),f=-1!==o.indexOf("phantom"),l=-1!==o.indexOf("android"),c=-1!==o.search("android [23]"),h=-1!==o.indexOf("gecko"),p=typeof orientation!=r+"",d=!e.PointerEvent&&e.MSPointerEvent,v=e.PointerEvent&&e.navigator.pointerEnabled||d,m="devicePixelRatio"in e&&e.devicePixelRatio>1||"matchMedia"in e&&e.matchMedia("(min-resolution:144dpi)")&&e.matchMedia("(min-resolution:144dpi)").matches,g=t.documentElement,y=n&&"transition"in g.style,b="WebKitCSSMatrix"in e&&"m11"in new e.WebKitCSSMatrix&&!c,w="MozPerspective"in g.style,E="OTransition"in g.style,S=!e.L_DISABLE_3D&&(y||b||w||E)&&!f,x=!e.L_NO_TOUCH&&!f&&(v||"ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch);s.Browser={ie:n,ielt9:i,webkit:u,gecko:h&&!u&&!e.opera&&!n,android:l,android23:c,chrome:a,ie3d:y,webkit3d:b,gecko3d:w,opera3d:E,any3d:S,mobile:p,mobileWebkit:p&&u,mobileWebkit3d:p&&b,mobileOpera:p&&e.opera,touch:x,msPointer:d,pointer:v,retina:m}}(),s.Point=function(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t},s.Point.prototype={clone:function(){return new s.Point(this.x,this.y)},add:function(e){return this.clone()._add(s.point(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(s.point(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},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},distanceTo:function(e){e=s.point(e);var t=e.x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return e=s.point(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=s.point(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+s.Util.formatNum(this.x)+", "+s.Util.formatNum(this.y)+")"}},s.point=function(e,t,n){return e instanceof s.Point?e:s.Util.isArray(e)?new s.Point(e[0],e[1]):e===r||null===e?e:new s.Point(e,t,n)},s.Bounds=function(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;i>r;r++)this.extend(n[r])},s.Bounds.prototype={extend:function(e){return e=s.point(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new s.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new s.Point(this.min.x,this.max.y)},getTopRight:function(){return new s.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return e="number"==typeof e[0]||e instanceof s.Point?s.point(e):s.bounds(e),e instanceof s.Bounds?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=s.bounds(e);var t=this.min,n=this.max,r=e.min,i=e.max,o=i.x>=t.x&&r.x<=n.x,u=i.y>=t.y&&r.y<=n.y;return o&&u},isValid:function(){return!!this.min&&!!this.max}},s.bounds=function(e,t){return!e||e instanceof s.Bounds?e:new s.Bounds(e,t)},s.Transformation=function(e,t,n,r){this._a=e,this._b=t,this._c=n,this._d=r},s.Transformation.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new s.Point((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}},s.DomUtil={get:function(e){return"string"==typeof e?t.getElementById(e):e},getStyle:function(e,n){var r=e.style[n];if(!r&&e.currentStyle&&(r=e.currentStyle[n]),(!r||"auto"===r)&&t.defaultView){var i=t.defaultView.getComputedStyle(e,null);r=i?i[n]:null}return"auto"===r?null:r},getViewportOffset:function(e){var n,r=0,i=0,o=e,u=t.body,a=t.documentElement;do{if(r+=o.offsetTop||0,i+=o.offsetLeft||0,r+=parseInt(s.DomUtil.getStyle(o,"borderTopWidth"),10)||0,i+=parseInt(s.DomUtil.getStyle(o,"borderLeftWidth"),10)||0,n=s.DomUtil.getStyle(o,"position"),o.offsetParent===u&&"absolute"===n)break;if("fixed"===n){r+=u.scrollTop||a.scrollTop||0,i+=u.scrollLeft||a.scrollLeft||0;break}if("relative"===n&&!o.offsetLeft){var f=s.DomUtil.getStyle(o,"width"),l=s.DomUtil.getStyle(o,"max-width"),c=o.getBoundingClientRect();("none"!==f||"none"!==l)&&(i+=c.left+o.clientLeft),r+=c.top+(u.scrollTop||a.scrollTop||0);break}o=o.offsetParent}while(o);o=e;do{if(o===u)break;r-=o.scrollTop||0,i-=o.scrollLeft||0,o=o.parentNode}while(o);return new s.Point(i,r)},documentIsLtr:function(){return s.DomUtil._docIsLtrCached||(s.DomUtil._docIsLtrCached=!0,s.DomUtil._docIsLtr="ltr"===s.DomUtil.getStyle(t.body,"direction")),s.DomUtil._docIsLtr},create:function(e,n,r){var i=t.createElement(e);return i.className=n,r&&r.appendChild(i),i},hasClass:function(e,t){if(e.classList!==r)return e.classList.contains(t);var n=s.DomUtil._getClass(e);return n.length>0&&(new RegExp("(^|\\s)"+t+"(\\s|$)")).test(n)},addClass:function(e,t){if(e.classList!==r)for(var n=s.Util.splitWords(t),i=0,o=n.length;o>i;i++)e.classList.add(n[i]);else if(!s.DomUtil.hasClass(e,t)){var u=s.DomUtil._getClass(e);s.DomUtil._setClass(e,(u?u+" ":"")+t)}},removeClass:function(e,t){e.classList!==r?e.classList.remove(t):s.DomUtil._setClass(e,s.Util.trim((" "+s.DomUtil._getClass(e)+" ").replace(" "+t+" "," ")))},_setClass:function(e,t){e.className.baseVal===r?e.className=t:e.className.baseVal=t},_getClass:function(e){return e.className.baseVal===r?e.className:e.className.baseVal},setOpacity:function(e,t){if("opacity"in e.style)e.style.opacity=t;else if("filter"in e.style){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(i){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}},testProp:function(e){for(var n=t.documentElement.style,r=0;rn||n===t?t:e),new s.LatLng(this.lat,n)}},s.latLng=function(e,t){return e instanceof s.LatLng?e:s.Util.isArray(e)?"number"==typeof e[0]||"string"==typeof e[0]?new s.LatLng(e[0],e[1],e[2]):null:e===r||null===e?e:"object"==typeof e&&"lat"in e?new s.LatLng(e.lat,"lng"in e?e.lng:e.lon):t===r?null:new s.LatLng(e,t)},s.LatLngBounds=function(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;i>r;r++)this.extend(n[r])},s.LatLngBounds.prototype={extend:function(e){if(!e)return this;var t=s.latLng(e);return e=null!==t?t:s.latLngBounds(e),e instanceof s.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(e.lat,this._southWest.lat),this._southWest.lng=Math.min(e.lng,this._southWest.lng),this._northEast.lat=Math.max(e.lat,this._northEast.lat),this._northEast.lng=Math.max(e.lng,this._northEast.lng)):(this._southWest=new s.LatLng(e.lat,e.lng),this._northEast=new s.LatLng(e.lat,e.lng)):e instanceof s.LatLngBounds&&(this.extend(e._southWest),this.extend(e._northEast)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new s.LatLngBounds(new s.LatLng(t.lat-r,t.lng-i),new s.LatLng(n.lat+r,n.lng+i))},getCenter:function(){return new s.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new s.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new s.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"==typeof e[0]||e instanceof s.LatLng?s.latLng(e):s.latLngBounds(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof s.LatLngBounds?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=s.latLngBounds(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),o=i.lat>=t.lat&&r.lat<=n.lat,u=i.lng>=t.lng&&r.lng<=n.lng;return o&&u},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e){return e?(e=s.latLngBounds(e),this._southWest.equals(e.getSouthWest())&&this._northEast.equals(e.getNorthEast())):!1},isValid:function(){return!!this._southWest&&!!this._northEast}},s.latLngBounds=function(e,t){return!e||e instanceof s.LatLngBounds?e:new s.LatLngBounds(e,t)},s.Projection={},s.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(e){var t=s.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=e.lng*t,o=r*t;return o=Math.log(Math.tan(Math.PI/4+o/2)),new s.Point(i,o)},unproject:function(e){var t=s.LatLng.RAD_TO_DEG,n=e.x*t,r=(2*Math.atan(Math.exp(e.y))-Math.PI/2)*t;return new s.LatLng(r,n)}},s.Projection.LonLat={project:function(e){return new s.Point(e.lng,e.lat)},unproject:function(e){return new s.LatLng(e.y,e.x)}},s.CRS={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},scale:function(e){return 256*Math.pow(2,e)},getSize:function(e){var t=this.scale(e);return s.point(t,t)}},s.CRS.Simple=s.extend({},s.CRS,{projection:s.Projection.LonLat,transformation:new s.Transformation(1,0,-1,0),scale:function(e){return Math.pow(2,e)}}),s.CRS.EPSG3857=s.extend({},s.CRS,{code:"EPSG:3857",projection:s.Projection.SphericalMercator,transformation:new s.Transformation(.5/Math.PI,.5,-0.5/Math.PI,.5),project:function(e){var t=this.projection.project(e),n=6378137;return t.multiplyBy(n)}}),s.CRS.EPSG900913=s.extend({},s.CRS.EPSG3857,{code:"EPSG:900913"}),s.CRS.EPSG4326=s.extend({},s.CRS,{code:"EPSG:4326",projection:s.Projection.LonLat,transformation:new s.Transformation(1/360,.5,-1/360,.5)}),s.Map=s.Class.extend({includes:s.Mixin.Events,options:{crs:s.CRS.EPSG3857,fadeAnimation:s.DomUtil.TRANSITION&&!s.Browser.android23,trackResize:!0,markerZoomAnimation:s.DomUtil.TRANSITION&&s.Browser.any3d},initialize:function(e,t){t=s.setOptions(this,t),this._initContainer(e),this._initLayout(),this._onResize=s.bind(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),t.center&&t.zoom!==r&&this.setView(s.latLng(t.center),t.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(t.layers)},setView:function(e,t){return t=t===r?this.getZoom():t,this._resetView(s.latLng(e),this._limitZoom(t)),this},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=this._limitZoom(e),this)},zoomIn:function(e,t){return this.setZoom(this._zoom+(e||1),t)},zoomOut:function(e,t){return this.setZoom(this._zoom-(e||1),t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),o=e instanceof s.Point?e:this.latLngToContainerPoint(e),u=o.subtract(i).multiplyBy(1-1/r),a=this.containerPointToLatLng(i.add(u));return this.setView(a,t,{zoom:n})},fitBounds:function(e,t){t=t||{},e=e.getBounds?e.getBounds():s.latLngBounds(e);var n=s.point(t.paddingTopLeft||t.padding||[0,0]),r=s.point(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));i=t.maxZoom?Math.min(t.maxZoom,i):i;var o=r.subtract(n).divideBy(2),u=this.project(e.getSouthWest(),i),a=this.project(e.getNorthEast(),i),f=this.unproject(u.add(a).divideBy(2).add(o),i);return this.setView(f,i,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e){return this.fire("movestart"),this._rawPanBy(s.point(e)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(e){return e=s.latLngBounds(e),this.options.maxBounds=e,e?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(e,t){var n=this.getCenter(),r=this._limitCenter(n,this._zoom,e);return n.equals(r)?this:this.panTo(r,t)},addLayer:function(e){var t=s.stamp(e);return this._layers[t]?this:(this._layers[t]=e,!e.options||isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[t]=e,this._updateZoomLevels()),this.options.zoomAnimation&&s.TileLayer&&e instanceof s.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,e.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(e),this)},removeLayer:function(e){var t=s.stamp(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&this.fire("layerremove",{layer:e}),this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels()),this.options.zoomAnimation&&s.TileLayer&&e instanceof s.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,e.off("load",this._onTileLayerLoad,this)),this):this},hasLayer:function(e){return e?s.stamp(e)in this._layers:!1},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},invalidateSize:function(e){if(!this._loaded)return this;e=s.extend({animate:!1,pan:!0},e===!0?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._initialCenter=null;var n=this.getSize(),r=t.divideBy(2).round(),i=n.divideBy(2).round(),o=r.subtract(i);return o.x||o.y?(e.animate&&e.pan?this.panBy(o):(e.pan&&this._rawPanBy(o),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:n})):this},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(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(e){this._container._leaflet=r}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds(),t=this.unproject(e.getBottomLeft()),n=this.unproject(e.getTopRight());return new s.LatLngBounds(t,n)},getMinZoom:function(){return this.options.minZoom===r?this._layersMinZoom===r?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===r?this._layersMaxZoom===r?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=s.latLngBounds(e);var r,i=this.getMinZoom()-(t?1:0),o=this.getMaxZoom(),u=this.getSize(),a=e.getNorthWest(),f=e.getSouthEast(),l=!0;n=s.point(n||[0,0]);do i++,r=this.project(f,i).subtract(this.project(a,i)).add(n),l=t?r.x=i);return l&&t?null:t?i:i-1},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new s.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var e=this._getTopLeftPoint();return new s.Bounds(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e){var t=this.options.crs;return t.scale(e)/t.scale(this._zoom)},getScaleZoom:function(e){return this._zoom+Math.log(e)/Math.LN2},project:function(e,t){return t=t===r?this._zoom:t,this.options.crs.latLngToPoint(s.latLng(e),t)},unproject:function(e,t){return t=t===r?this._zoom:t,this.options.crs.pointToLatLng(s.point(e),t)},layerPointToLatLng:function(e){var t=s.point(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){var t=this.project(s.latLng(e))._round();return t._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(e){return s.point(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return s.point(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(s.point(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(s.latLng(e)))},mouseEventToContainerPoint:function(e){return s.DomEvent.getMousePosition(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=s.DomUtil.get(e);if(!t)throw new Error("Map container not found.");if(t._leaflet)throw new Error("Map container is already initialized.");t._leaflet=!0},_initLayout:function(){var e=this._container;s.DomUtil.addClass(e,"leaflet-container"+(s.Browser.touch?" leaflet-touch":"")+(s.Browser.retina?" leaflet-retina":"")+(s.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var t=s.DomUtil.getStyle(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._mapPane=e.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=e.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),e.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),e.shadowPane=this._createPane("leaflet-shadow-pane"),e.overlayPane=this._createPane("leaflet-overlay-pane"),e.markerPane=this._createPane("leaflet-marker-pane"),e.popupPane=this._createPane("leaflet-popup-pane");var t=" leaflet-zoom-hide";this.options.markerZoomAnimation||(s.DomUtil.addClass(e.markerPane,t),s.DomUtil.addClass(e.shadowPane,t),s.DomUtil.addClass(e.popupPane,t))},_createPane:function(e,t){return s.DomUtil.create("div",e,t||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(e){e=e?s.Util.isArray(e)?e:[e]:[];for(var t=0,n=e.length;n>t;t++)this.addLayer(e[t])},_resetView:function(e,t,n,r){var i=this._zoom!==t;r||(this.fire("movestart"),i&&this.fire("zoomstart")),this._zoom=t,this._initialCenter=e,this._initialTopLeftPoint=this._getNewTopLeftPoint(e),n?this._initialTopLeftPoint._add(this._getMapPanePos()):s.DomUtil.setPosition(this._mapPane,new s.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var o=!this._loaded;this._loaded=!0,this.fire("viewreset",{hard:!n}),o&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("move"),(i||r)&&this.fire("zoomend"),this.fire("moveend",{hard:!n})},_rawPanBy:function(e){s.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var e,t=1/0,n=-1/0,i=this._getZoomSpan();for(e in this._zoomBoundLayers){var s=this._zoomBoundLayers[e];isNaN(s.options.minZoom)||(t=Math.min(t,s.options.minZoom)),isNaN(s.options.maxZoom)||(n=Math.max(n,s.options.maxZoom))}e===r?this._layersMaxZoom=this._layersMinZoom=r:(this._layersMaxZoom=n,this._layersMinZoom=t),i!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){if(s.DomEvent){t=t||"on",s.DomEvent[t](this._container,"click",this._onMouseClick,this);var n,r,i=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(n=0,r=i.length;r>n;n++)s.DomEvent[t](this._container,i[n],this._fireMouseEvent,this);this.options.trackResize&&s.DomEvent[t](e,"resize",this._onResize,this)}},_onResize:function(){s.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=s.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this,!1,this._container)},_onMouseClick:function(e){!this._loaded||!e._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||s.DomEvent._skipped(e)||(this.fire("preclick"),this._fireMouseEvent(e))},_fireMouseEvent:function(e){if(this._loaded&&!s.DomEvent._skipped(e)){var t=e.type;if(t="mouseenter"===t?"mouseover":"mouseleave"===t?"mouseout":t,this.hasEventListeners(t)){"contextmenu"===t&&s.DomEvent.preventDefault(e);var n=this.mouseEventToContainerPoint(e),r=this.containerPointToLayerPoint(n),i=this.layerPointToLatLng(r);this.fire(t,{latlng:i,layerPoint:r,containerPoint:n,originalEvent:e})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var e=0,t=this._handlers.length;t>e;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,this):this.on("load",e,t),this},_layerAdd:function(e){e.onAdd(this),this.fire("layeradd",{layer:e})},_getMapPanePos:function(){return s.DomUtil.getPosition(this._mapPane)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewTopLeftPoint(n,t).add(this._getMapPanePos());return this.project(e,t)._subtract(r)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),o=new s.Bounds(r.subtract(i),r.add(i)),u=this._getBoundsOffset(o,n,t);return this.unproject(r.add(u),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new s.Bounds(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=this.project(t.getNorthWest(),n).subtract(e.min),i=this.project(t.getSouthEast(),n).subtract(e.max),o=this._rebound(r.x,-i.x),u=this._rebound(r.y,-i.y);return new s.Point(o,u)},_rebound:function(e,t){return e+t>0?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();return Math.max(t,Math.min(n,e))}}),s.map=function(e,t){return new s.Map(e,t)},s.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(e){var t=s.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=this.R_MAJOR,o=this.R_MINOR,u=e.lng*t*i,a=r*t,f=o/i,l=Math.sqrt(1-f*f),c=l*Math.sin(a);c=Math.pow((1-c)/(1+c),.5*l);var h=Math.tan(.5*(.5*Math.PI-a))/c;return a=-i*Math.log(h),new s.Point(u,a)},unproject:function(e){for(var t,n=s.LatLng.RAD_TO_DEG,r=this.R_MAJOR,i=this.R_MINOR,o=e.x*n/r,u=i/r,a=Math.sqrt(1-u*u),f=Math.exp(-e.y/r),l=Math.PI/2-2*Math.atan(f),c=15,h=1e-7,p=c,d=.1;Math.abs(d)>h&&--p>0;)t=a*Math.sin(l),d=Math.PI/2-2*Math.atan(f*Math.pow((1-t)/(1+t),.5*a))-l,l+=d;return new s.LatLng(l*n,o)}},s.CRS.EPSG3395=s.extend({},s.CRS,{code:"EPSG:3395",projection:s.Projection.Mercator,transformation:function(){var e=s.Projection.Mercator,t=e.R_MAJOR,n=.5/(Math.PI*t);return new s.Transformation(n,.5,-n,.5)}()}),s.TileLayer=s.Class.extend({includes:s.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:s.Browser.mobile,updateWhenIdle:s.Browser.mobile},initialize:function(e,t){t=s.setOptions(this,t),t.detectRetina&&s.Browser.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomOffset++,t.minZoom>0&&t.minZoom--,this.options.maxZoom--),t.bounds&&(t.bounds=s.latLngBounds(t.bounds)),this._url=e;var n=this.options.subdomains;"string"==typeof n&&(this.options.subdomains=n.split(""))},onAdd:function(e){this._map=e,this._animated=e._zoomAnimated,this._initContainer(),e.on({viewreset:this._reset,moveend:this._update},this),this._animated&&e.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=s.Util.limitExecByInterval(this._update,150,this),e.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(e){return e.addLayer(this),this},onRemove:function(e){this._container.parentNode.removeChild(this._container),e.off({viewreset:this._reset,moveend:this._update},this),this._animated&&e.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||e.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var e=this._map._panes.tilePane;return this._container&&(e.appendChild(this._container),this._setAutoZIndex(e,Math.max)),this},bringToBack:function(){var e=this._map._panes.tilePane;return this._container&&(e.insertBefore(this._container,e.firstChild),this._setAutoZIndex(e,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},setUrl:function(e,t){return this._url=e,t||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==r&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e,t){var n,r,i,s=e.children,o=-t(1/0,-1/0);for(r=0,i=s.length;i>r;r++)s[r]!==this._container&&(n=parseInt(s[r].style.zIndex,10),isNaN(n)||(o=t(o,n)));this.options.zIndex=this._container.style.zIndex=(isFinite(o)?o:0)+t(1,-1)},_updateOpacity:function(){var e,t=this._tiles;if(s.Browser.ielt9)for(e in t)s.DomUtil.setOpacity(t[e],this.options.opacity);else s.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var e=this._map._panes.tilePane;if(!this._container){if(this._container=s.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var t="leaflet-tile-container";this._bgBuffer=s.DomUtil.create("div",t,this._container),this._tileContainer=s.DomUtil.create("div",t,this._container)}else this._tileContainer=this._container;e.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(e){for(var t in this._tiles)this.fire("tileunload",{tile:this._tiles[t]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&e&&e.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var e=this._map,t=e.getZoom()+this.options.zoomOffset,n=this.options.maxNativeZoom,r=this.options.tileSize;return n&&t>n&&(r=Math.round(e.getZoomScale(t)/e.getZoomScale(n)*r)),r},_update:function(){if(this._map){var e=this._map,t=e.getPixelBounds(),n=e.getZoom(),r=this._getTileSize();if(!(n>this.options.maxZoom||nr;r++)this._addTile(o[r],f);this._tileContainer.appendChild(f)}},_tileShouldBeLoaded:function(e){if(e.x+":"+e.y in this._tiles)return!1;var t=this.options;if(!t.continuousWorld){var n=this._getWrapTileNum();if(t.noWrap&&(e.x<0||e.x>=n.x)||e.y<0||e.y>=n.y)return!1}if(t.bounds){var r=this._getTileSize(),i=e.multiplyBy(r),s=i.add([r,r]),o=this._map.unproject(i),u=this._map.unproject(s);if(t.continuousWorld||t.noWrap||(o=o.wrap(),u=u.wrap()),!t.bounds.intersects([o,u]))return!1}return!0},_removeOtherTiles:function(e){var t,n,r,i;for(i in this._tiles)t=i.split(":"),n=parseInt(t[0],10),r=parseInt(t[1],10),(ne.max.x||re.max.y)&&this._removeTile(i)},_removeTile:function(e){var t=this._tiles[e];this.fire("tileunload",{tile:t,url:t.src}),this.options.reuseTiles?(s.DomUtil.removeClass(t,"leaflet-tile-loaded"),this._unusedTiles.push(t)):t.parentNode===this._tileContainer&&this._tileContainer.removeChild(t),s.Browser.android||(t.onload=null,t.src=s.Util.emptyImageUrl),delete this._tiles[e]},_addTile:function(e,t){var n=this._getTilePos(e),r=this._getTile();s.DomUtil.setPosition(r,n,s.Browser.chrome),this._tiles[e.x+":"+e.y]=r,this._loadTile(r,e),r.parentNode!==this._tileContainer&&t.appendChild(r)},_getZoomForUrl:function(){var e=this.options,t=this._map.getZoom();return e.zoomReverse&&(t=e.maxZoom-t),t+=e.zoomOffset,e.maxNativeZoom?Math.min(t,e.maxNativeZoom):t},_getTilePos:function(e){var t=this._map.getPixelOrigin(),n=this._getTileSize();return e.multiplyBy(n).subtract(t)},getTileUrl:function(e){return s.Util.template(this._url,s.extend({s:this._getSubdomain(e),z:e.z,x:e.x,y:e.y},this.options))},_getWrapTileNum:function(){var e=this._map.options.crs,t=e.getSize(this._map.getZoom());return t.divideBy(this._getTileSize())._floor()},_adjustTilePoint:function(e){var t=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(e.x=(e.x%t.x+t.x)%t.x),this.options.tms&&(e.y=t.y-e.y-1),e.z=this._getZoomForUrl()},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_getTile:function(){if(this.options.reuseTiles&&this._unusedTiles.length>0){var e=this._unusedTiles.pop();return this._resetTile(e),e}return this._createTile()},_resetTile:function(){},_createTile:function(){var e=s.DomUtil.create("img","leaflet-tile");return e.style.width=e.style.height=this._getTileSize()+"px",e.galleryimg="no",e.onselectstart=e.onmousemove=s.Util.falseFn,s.Browser.ielt9&&this.options.opacity!==r&&s.DomUtil.setOpacity(e,this.options.opacity),s.Browser.mobileWebkit3d&&(e.style.WebkitBackfaceVisibility="hidden"),e},_loadTile:function(e,t){e._layer=this,e.onload=this._tileOnLoad,e.onerror=this._tileOnError,this._adjustTilePoint(t),e.src=this.getTileUrl(t),this.fire("tileloadstart",{tile:e,url:e.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&s.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(s.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var e=this._layer;this.src!==s.Util.emptyImageUrl&&(s.DomUtil.addClass(this,"leaflet-tile-loaded"),e.fire("tileload",{tile:this,url:this.src})),e._tileLoaded()},_tileOnError:function(){var e=this._layer;e.fire("tileerror",{tile:this,url:this.src});var t=e.options.errorTileUrl;t&&(this.src=t),e._tileLoaded()}}),s.tileLayer=function(e,t){return new s.TileLayer(e,t)},s.TileLayer.WMS=s.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(e,t){this._url=e;var n=s.extend({},this.defaultWmsParams),r=t.tileSize||this.options.tileSize;t.detectRetina&&s.Browser.retina?n.width=n.height=2*r:n.width=n.height=r;for(var i in t)this.options.hasOwnProperty(i)||"crs"===i||(n[i]=t[i]);this.wmsParams=n,s.setOptions(this,t)},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,s.TileLayer.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._map,n=this.options.tileSize,r=e.multiplyBy(n),i=r.add([n,n]),o=this._crs.project(t.unproject(r,e.z)),u=this._crs.project(t.unproject(i,e.z)),a=this._wmsVersion>=1.3&&this._crs===s.CRS.EPSG4326?[u.y,o.x,o.y,u.x].join(","):[o.x,u.y,u.x,o.y].join(","),f=s.Util.template(this._url,{s:this._getSubdomain(e)});return f+s.Util.getParamString(this.wmsParams,f,!0)+"&BBOX="+a},setParams:function(e,t){return s.extend(this.wmsParams,e),t||this.redraw(),this}}),s.tileLayer.wms=function(e,t){return new s.TileLayer.WMS(e,t)},s.TileLayer.Canvas=s.TileLayer.extend({options:{async:!1},initialize:function(e){s.setOptions(this,e)},redraw:function(){this._map&&(this._reset({hard:!0}),this._update());for(var e in this._tiles)this._redrawTile(this._tiles[e]);return this},_redrawTile:function(e){this.drawTile(e,e._tilePoint,this._map._zoom)},_createTile:function(){var e=s.DomUtil.create("canvas","leaflet-tile");return e.width=e.height=this.options.tileSize,e.onselectstart=e.onmousemove=s.Util.falseFn,e},_loadTile:function(e,t){e._layer=this,e._tilePoint=t,this._redrawTile(e),this.options.async||this.tileDrawn(e)},drawTile:function(){},tileDrawn:function(e){this._tileOnLoad.call(e)}}),s.tileLayer.canvas=function(e){return new s.TileLayer.Canvas(e)},s.ImageOverlay=s.Class.extend({includes:s.Mixin.Events,options:{opacity:1},initialize:function(e,t,n){this._url=e,this._bounds=s.latLngBounds(t),s.setOptions(this,n)},onAdd:function(e){this._map=e,this._image||this._initImage(),e._panes.overlayPane.appendChild(this._image),e.on("viewreset",this._reset,this),e.options.zoomAnimation&&s.Browser.any3d&&e.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(e){e.getPanes().overlayPane.removeChild(this._image),e.off("viewreset",this._reset,this),e.options.zoomAnimation&&e.off("zoomanim",this._animateZoom,this)},addTo:function(e){return e.addLayer(this),this},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var e=this._map._panes.overlayPane;return this._image&&e.insertBefore(this._image,e.firstChild),this},setUrl:function(e){this._url=e,this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=s.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&s.Browser.any3d?s.DomUtil.addClass(this._image,"leaflet-zoom-animated"):s.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),s.extend(this._image,{galleryimg:"no",onselectstart:s.Util.falseFn,onmousemove:s.Util.falseFn,onload:s.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(e){var t=this._map,n=this._image,r=t.getZoomScale(e.zoom),i=this._bounds.getNorthWest(),o=this._bounds.getSouthEast(),u=t._latLngToNewLayerPoint(i,e.zoom,e.center),a=t._latLngToNewLayerPoint(o,e.zoom,e.center)._subtract(u),f=u._add(a._multiplyBy(.5*(1-1/r)));n.style[s.DomUtil.TRANSFORM]=s.DomUtil.getTranslateString(f)+" scale("+r+") "},_reset:function(){var e=this._image,t=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),n=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(t);s.DomUtil.setPosition(e,t),e.style.width=n.x+"px",e.style.height=n.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){s.DomUtil.setOpacity(this._image,this.options.opacity)}}),s.imageOverlay=function(e,t,n){return new s.ImageOverlay(e,t,n)},s.Icon=s.Class.extend({options:{className:""},initialize:function(e){s.setOptions(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r;return r=t&&"IMG"===t.tagName?this._createImg(n,t):this._createImg(n),this._setIconStyles(r,e),r},_setIconStyles:function(e,t){var n,r=this.options,i=s.point(r[t+"Size"]);n="shadow"===t?s.point(r.shadowAnchor||r.iconAnchor):s.point(r.iconAnchor),!n&&i&&(n=i.divideBy(2,!0)),e.className="leaflet-marker-"+t+" "+r.className,n&&(e.style.marginLeft=-n.x+"px",e.style.marginTop=-n.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,n){return n=n||t.createElement("img"),n.src=e,n},_getIconUrl:function(e){return s.Browser.retina&&this.options[e+"RetinaUrl"]?this.options[e+"RetinaUrl"]:this.options[e+"Url"]}}),s.icon=function(e){return new s.Icon(e)},s.Icon.Default=s.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(e){var t=e+"Url";if(this.options[t])return this.options[t];s.Browser.retina&&"icon"===e&&(e+="-2x");var n=s.Icon.Default.imagePath;if(!n)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return n+"/marker-"+e+".png"}}),s.Icon.Default.imagePath=function(){var e,n,r,i,s,o=t.getElementsByTagName("script"),u=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(e=0,n=o.length;n>e;e++)if(r=o[e].src,i=r.match(u))return s=r.split(u)[0],(s?s+"/":"")+"images"}(),s.Marker=s.Class.extend({includes:s.Mixin.Events,options:{icon:new s.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(e,t){s.setOptions(this,t),this._latlng=s.latLng(e)},onAdd:function(e){this._map=e,e.on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),e.options.zoomAnimation&&e.options.markerZoomAnimation&&e.on("zoomanim",this._animateZoom,this)},addTo:function(e){return e.addLayer(this),this},onRemove:function(e){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),e.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=s.latLng(e),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update(),this},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){return this._icon&&this._setPos(this._map.latLngToLayerPoint(this._latlng).round()),this},_initIcon:function(){var e=this.options,t=this._map,n=t.options.zoomAnimation&&t.options.markerZoomAnimation,r=n?"leaflet-zoom-animated":"leaflet-zoom-hide",i=e.icon.createIcon(this._icon),o=!1;i!==this._icon&&(this._icon&&this._removeIcon(),o=!0,e.title&&(i.title=e.title),e.alt&&(i.alt=e.alt)),s.DomUtil.addClass(i,r),e.keyboard&&(i.tabIndex="0"),this._icon=i,this._initInteraction(),e.riseOnHover&&s.DomEvent.on(i,"mouseover",this._bringToFront,this).on(i,"mouseout",this._resetZIndex,this);var u=e.icon.createShadow(this._shadow),a=!1;u!==this._shadow&&(this._removeShadow(),a=!0),u&&s.DomUtil.addClass(u,r),this._shadow=u,e.opacity<1&&this._updateOpacity();var f=this._map._panes;o&&f.markerPane.appendChild(this._icon),u&&a&&f.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&s.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(e){s.DomUtil.setPosition(this._icon,e),this._shadow&&s.DomUtil.setPosition(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon.style.zIndex=this._zIndex+e},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.clickable){var e=this._icon,t=["dblclick","mousedown","mouseover","mouseout","contextmenu"];s.DomUtil.addClass(e,"leaflet-clickable"),s.DomEvent.on(e,"click",this._onMouseClick,this),s.DomEvent.on(e,"keypress",this._onKeyPress,this);for(var n=0;ni?(t.height=i+"px",s.DomUtil.addClass(e,o)):s.DomUtil.removeClass(e,o),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=this._animated,n=s.point(this.options.offset);t&&s.DomUtil.setPosition(this._container,e),this._containerBottom=-n.y-(t?0:e.y),this._containerLeft=-Math.round(this._containerWidth/2)+n.x+(t?0:e.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);s.DomUtil.setPosition(this._container,t)},_adjustPan:function(){if(this.options.autoPan){var e=this._map,t=this._container.offsetHeight,n=this._containerWidth,r=new s.Point(this._containerLeft,-t-this._containerBottom);this._animated&&r._add(s.DomUtil.getPosition(this._container));var i=e.layerPointToContainerPoint(r),o=s.point(this.options.autoPanPadding),u=s.point(this.options.autoPanPaddingTopLeft||o),a=s.point(this.options.autoPanPaddingBottomRight||o),f=e.getSize(),l=0,c=0;i.x+n+a.x>f.x&&(l=i.x+n-f.x+a.x),i.x-l-u.x<0&&(l=i.x-u.x),i.y+t+a.y>f.y&&(c=i.y+t-f.y+a.y),i.y-c-u.y<0&&(c=i.y-u.y),(l||c)&&e.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(e){this._close(),s.DomEvent.stop(e)}}),s.popup=function(e,t){return new s.Popup(e,t)},s.Map.include({openPopup:function(e,t,n){if(this.closePopup(),!(e instanceof s.Popup)){var r=e;e=(new s.Popup(n)).setLatLng(t).setContent(r)}return e._isOpen=!0,this._popup=e,this.addLayer(e)},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&(this.removeLayer(e),e._isOpen=!1),this}}),s.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(e,t){var n=s.point(this.options.icon.options.popupAnchor||[0,0]);return n=n.add(s.Popup.prototype.options.offset),t&&t.offset&&(n=n.add(t.offset)),t=s.extend({offset:n},t),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),e instanceof s.Popup?(s.setOptions(e,t),this._popup=e,e._source=this):this._popup=(new s.Popup(t,this)).setContent(e),this},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(e){this._popup.setLatLng(e.latlng)}}),s.LayerGroup=s.Class.extend({initialize:function(e){this._layers={};var t,n;if(e)for(t=0,n=e.length;n>t;t++)this.addLayer(e[t])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return e?e in this._layers||this.getLayerId(e)in this._layers:!1},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)n=this._layers[t],n[e]&&n[e].apply(n,r);return this},onAdd:function(e){this._map=e,this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e),this._map=null},addTo:function(e){return e.addLayer(this),this},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];for(var t in this._layers)e.push(this._layers[t]);return e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return s.stamp(e)}}),s.layerGroup=function(e){return new s.LayerGroup(e)},s.FeatureGroup=s.LayerGroup.extend({includes:s.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(e){return this.hasLayer(e)?this:("on"in e&&e.on(s.FeatureGroup.EVENTS,this._propagateEvent,this),s.LayerGroup.prototype.addLayer.call(this,e),this._popupContent&&e.bindPopup&&e.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),"off"in e&&e.off(s.FeatureGroup.EVENTS,this._propagateEvent,this),s.LayerGroup.prototype.removeLayer.call(this,e),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:e})):this},bindPopup:function(e,t){return this._popupContent=e,this._popupOptions=t,this.invoke("bindPopup",e,t)},openPopup:function(e){for(var t in this._layers){this._layers[t].openPopup(e);break}return this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new s.LatLngBounds;return this.eachLayer(function(t){e.extend(t instanceof s.Marker?t.getLatLng():t.getBounds())}),e},_propagateEvent:function(e){e=s.extend({layer:e.target,target:this},e),this.fire(e.type,e)}}),s.featureGroup=function(e){return new s.FeatureGroup(e)},s.Path=s.Class.extend({includes:[s.Mixin.Events],statics:{CLIP_PADDING:function(){var t=s.Browser.mobile?1280:2e3,n=(t/Math.max(e.outerWidth,e.outerHeight)-1)/2;return Math.max(0,Math.min(.5,n))}()},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(e){s.setOptions(this,e)},onAdd:function(e){this._map=e,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),e.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(e){return e.addLayer(this),this},onRemove:function(e){e._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,s.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),e.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(e){return s.setOptions(this,e),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),s.Map.include({_updatePathViewport:function(){var e=s.Path.CLIP_PADDING,t=this.getSize(),n=s.DomUtil.getPosition(this._mapPane),r=n.multiplyBy(-1)._subtract(t.multiplyBy(e)._round()),i=r.add(t.multiplyBy(1+2*e)._round());this._pathViewport=new s.Bounds(r,i)}}),s.Path.SVG_NS="http://www.w3.org/2000/svg",s.Browser.svg=!!t.createElementNS&&!!t.createElementNS(s.Path.SVG_NS,"svg").createSVGRect,s.Path=s.Path.extend({statics:{SVG:s.Browser.svg},bringToFront:function(){var e=this._map._pathRoot,t=this._container;return t&&e.lastChild!==t&&e.appendChild(t),this},bringToBack:function(){var e=this._map._pathRoot,t=this._container,n=e.firstChild;return t&&n!==t&&e.insertBefore(t,n),this},getPathString:function(){},_createElement:function(e){return t.createElementNS(s.Path.SVG_NS,e)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this.options.className&&s.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var e=this.getPathString();e||(e="M0 0"),this._path.setAttribute("d",e)},_initEvents:function(){if(this.options.clickable){(s.Browser.svg||!s.Browser.vml)&&s.DomUtil.addClass(this._path,"leaflet-clickable"),s.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var e=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],t=0;t';var n=e.firstChild;return n.style.behavior="url(#default#VML)",n&&"object"==typeof n.adj}catch(r){return!1}}(),s.Path=s.Browser.svg||!s.Browser.vml?s.Path:s.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return t.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return t.createElement("')}}catch(e){return function(e){return t.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var e=this._container=this._createElement("shape");s.DomUtil.addClass(e,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&s.DomUtil.addClass(e,"leaflet-clickable"),e.coordsize="1 1",this._path=this._createElement("path"),e.appendChild(this._path),this._map._pathRoot.appendChild(e)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var e=this._stroke,t=this._fill,n=this.options,r=this._container;r.stroked=n.stroke,r.filled=n.fill,n.stroke?(e||(e=this._stroke=this._createElement("stroke"),e.endcap="round",r.appendChild(e)),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=s.Util.isArray(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",n.lineCap&&(e.endcap=n.lineCap.replace("butt","flat")),n.lineJoin&&(e.joinstyle=n.lineJoin)):e&&(r.removeChild(e),this._stroke=null),n.fill?(t||(t=this._fill=this._createElement("fill"),r.appendChild(t)),t.color=n.fillColor||n.color,t.opacity=n.fillOpacity):t&&(r.removeChild(t),this._fill=null)},_updatePath:function(){var e=this._container.style;e.display="none",this._path.v=this.getPathString()+" ",e.display=""}}),s.Map.include(s.Browser.svg||!s.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var e=this._pathRoot=t.createElement("div");e.className="leaflet-vml-container",this._panes.overlayPane.appendChild(e),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),s.Browser.canvas=function(){return!!t.createElement("canvas").getContext}(),s.Path=s.Path.SVG&&!e.L_PREFER_CANVAS||!s.Browser.canvas?s.Path:s.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(e){return s.setOptions(this,e),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(e){e.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this.fire("remove"),this._map=null},_requestUpdate:function(){this._map&&!s.Path._updateRequest&&(s.Path._updateRequest=s.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){s.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var e=this.options;e.stroke&&(this._ctx.lineWidth=e.weight,this._ctx.strokeStyle=e.color),e.fill&&(this._ctx.fillStyle=e.fillColor||e.color),e.lineCap&&(this._ctx.lineCap=e.lineCap),e.lineJoin&&(this._ctx.lineJoin=e.lineJoin)},_drawPath:function(){var e,t,n,r,i,o;for(this._ctx.beginPath(),e=0,n=this._parts.length;n>e;e++){for(t=0,r=this._parts[e].length;r>t;t++)i=this._parts[e][t],o=(0===t?"move":"line")+"To",this._ctx[o](i.x,i.y);this instanceof s.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var e=this._ctx,t=this.options;this._drawPath(),e.save(),this._updateStyle(),t.fill&&(e.globalAlpha=t.fillOpacity,e.fill(t.fillRule||"evenodd")),t.stroke&&(e.globalAlpha=t.opacity,e.stroke()),e.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click dblclick contextmenu",this._fireMouseEvent,this))},_fireMouseEvent:function(e){this._containsPoint(e.layerPoint)&&this.fire(e.type,e)},_onMouseMove:function(e){this._map&&!this._map._animatingZoom&&(this._containsPoint(e.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",e)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",e)))}}),s.Map.include(s.Path.SVG&&!e.L_PREFER_CANVAS||!s.Browser.canvas?{}:{_initPathRoot:function(){var e,n=this._pathRoot;n||(n=this._pathRoot=t.createElement("canvas"),n.style.position="absolute",e=this._canvasCtx=n.getContext("2d"),e.lineCap="round",e.lineJoin="round",this._panes.overlayPane.appendChild(n),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var e=this._pathViewport,t=e.min,n=e.max.subtract(t),r=this._pathRoot;s.DomUtil.setPosition(r,t),r.width=n.x,r.height=n.y,r.getContext("2d").translate(-t.x,-t.y)}}}),s.LineUtil={simplify:function(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=this._reducePoints(e,n),e=this._simplifyDP(e,n)},pointToSegmentDistance:function(e,t,n){return Math.sqrt(this._sqClosestPointOnSegment(e,t,n,!0))},closestPointOnSegment:function(e,t,n){return this._sqClosestPointOnSegment(e,t,n)},_simplifyDP:function(e,t){var n=e.length,i=typeof Uint8Array!=r+""?Uint8Array:Array,s=new i(n);s[0]=s[n-1]=1,this._simplifyDPStep(e,s,t,0,n-1);var o,u=[];for(o=0;n>o;o++)s[o]&&u.push(e[o]);return u},_simplifyDPStep:function(e,t,n,r,i){var s,o,u,a=0;for(o=r+1;i-1>=o;o++)u=this._sqClosestPointOnSegment(e[o],e[r],e[i],!0),u>a&&(s=o,a=u);a>n&&(t[s]=1,this._simplifyDPStep(e,t,n,r,s),this._simplifyDPStep(e,t,n,s,i))},_reducePoints:function(e,t){for(var n=[e[0]],r=1,i=0,s=e.length;s>r;r++)this._sqDist(e[r],e[i])>t&&(n.push(e[r]),i=r);return s-1>i&&n.push(e[s-1]),n},clipSegment:function(e,t,n,r){var i,s,o,u=r?this._lastCode:this._getBitCode(e,n),a=this._getBitCode(t,n);for(this._lastCode=a;;){if(!(u|a))return[e,t];if(u&a)return!1;i=u||a,s=this._getEdgeIntersection(e,t,i,n),o=this._getBitCode(s,n),i===u?(e=s,u=o):(t=s,a=o)}},_getEdgeIntersection:function(e,t,n,r){var i=t.x-e.x,o=t.y-e.y,u=r.min,a=r.max;return 8&n?new s.Point(e.x+i*(a.y-e.y)/o,a.y):4&n?new s.Point(e.x+i*(u.y-e.y)/o,u.y):2&n?new s.Point(a.x,e.y+o*(a.x-e.x)/i):1&n?new s.Point(u.x,e.y+o*(u.x-e.x)/i):void 0},_getBitCode:function(e,t){var n=0;return e.xt.max.x&&(n|=2),e.yt.max.y&&(n|=8),n},_sqDist:function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},_sqClosestPointOnSegment:function(e,t,n,r){var i,o=t.x,u=t.y,a=n.x-o,f=n.y-u,l=a*a+f*f;return l>0&&(i=((e.x-o)*a+(e.y-u)*f)/l,i>1?(o=n.x,u=n.y):i>0&&(o+=a*i,u+=f*i)),a=e.x-o,f=e.y-u,r?a*a+f*f:new s.Point(o,u)}},s.Polyline=s.Path.extend({initialize:function(e,t){s.Path.prototype.initialize.call(this,t),this._latlngs=this._convertLatLngs(e)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var e=0,t=this._latlngs.length;t>e;e++)this._originalPoints[e]=this._map.latLngToLayerPoint(this._latlngs[e])},getPathString:function(){for(var e=0,t=this._parts.length,n="";t>e;e++)n+=this._getPathPartStr(this._parts[e]);return n},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._latlngs=this._convertLatLngs(e),this.redraw()},addLatLng:function(e){return this._latlngs.push(s.latLng(e)),this.redraw()},spliceLatLngs:function(){var e=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),e},closestLayerPoint:function(e){for(var t,n,r=1/0,i=this._parts,o=null,u=0,a=i.length;a>u;u++)for(var f=i[u],l=1,c=f.length;c>l;l++){t=f[l-1],n=f[l];var h=s.LineUtil._sqClosestPointOnSegment(e,t,n,!0);r>h&&(r=h,o=s.LineUtil._sqClosestPointOnSegment(e,t,n))}return o&&(o.distance=Math.sqrt(r)),o},getBounds:function(){return new s.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(e,t){var n,r,i=t?e:[];for(n=0,r=e.length;r>n;n++){if(s.Util.isArray(e[n])&&"number"!=typeof e[n][0])return;i[n]=s.latLng(e[n])}return i},_initEvents:function(){s.Path.prototype._initEvents.call(this)},_getPathPartStr:function(e){for(var t,n=s.Path.VML,r=0,i=e.length,o="";i>r;r++)t=e[r],n&&t._round(),o+=(r?"L":"M")+t.x+" "+t.y;return o},_clipPoints:function(){var e,t,n,r=this._originalPoints,i=r.length;if(this.options.noClip)return void (this._parts=[r]);this._parts=[];var o=this._parts,u=this._map._pathViewport,a=s.LineUtil;for(e=0,t=0;i-1>e;e++)n=a.clipSegment(r[e],r[e+1],u,e),n&&(o[t]=o[t]||[],o[t].push(n[0]),(n[1]!==r[e+1]||e===i-2)&&(o[t].push(n[1]),t++))},_simplifyPoints:function(){for(var e=this._parts,t=s.LineUtil,n=0,r=e.length;r>n;n++)e[n]=t.simplify(e[n],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),s.Path.prototype._updatePath.call(this))}}),s.polyline=function(e,t){return new s.Polyline(e,t)},s.PolyUtil={},s.PolyUtil.clipPolygon=function(e,t){var n,r,i,o,u,a,f,l,c,h=[1,4,2,8],p=s.LineUtil;for(r=0,f=e.length;f>r;r++)e[r]._code=p._getBitCode(e[r],t);for(o=0;4>o;o++){for(l=h[o],n=[],r=0,f=e.length,i=f-1;f>r;i=r++)u=e[r],a=e[i],u._code&l?a._code&l||(c=p._getEdgeIntersection(a,u,l,t),c._code=p._getBitCode(c,t),n.push(c)):(a._code&l&&(c=p._getEdgeIntersection(a,u,l,t),c._code=p._getBitCode(c,t),n.push(c)),n.push(u));e=n}return e},s.Polygon=s.Polyline.extend({options:{fill:!0},initialize:function(e,t){s.Polyline.prototype.initialize.call(this,e,t),this._initWithHoles(e)},_initWithHoles:function(e){var t,n,r;if(e&&s.Util.isArray(e[0])&&"number"!=typeof e[0][0])for(this._latlngs=this._convertLatLngs(e[0]),this._holes=e.slice(1),t=0,n=this._holes.length;n>t;t++)r=this._holes[t]=this._convertLatLngs(this._holes[t]),r[0].equals(r[r.length-1])&&r.pop();e=this._latlngs,e.length>=2&&e[0].equals(e[e.length-1])&&e.pop()},projectLatlngs:function(){if(s.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes){var e,t,n,r;for(e=0,n=this._holes.length;n>e;e++)for(this._holePoints[e]=[],t=0,r=this._holes[e].length;r>t;t++)this._holePoints[e][t]=this._map.latLngToLayerPoint(this._holes[e][t])}},setLatLngs:function(e){return e&&s.Util.isArray(e[0])&&"number"!=typeof e[0][0]?(this._initWithHoles(e),this.redraw()):s.Polyline.prototype.setLatLngs.call(this,e)},_clipPoints:function(){var e=this._originalPoints,t=[];if(this._parts=[e].concat(this._holePoints),!this.options.noClip){for(var n=0,r=this._parts.length;r>n;n++){var i=s.PolyUtil.clipPolygon(this._parts[n],this._map._pathViewport);i.length&&t.push(i)}this._parts=t}},_getPathPartStr:function(e){var t=s.Polyline.prototype._getPathPartStr.call(this,e);return t+(s.Browser.svg?"z":"x")}}),s.polygon=function(e,t){return new s.Polygon(e,t)},function(){function e(e){return s.FeatureGroup.extend({initialize:function(e,t){this._layers={},this._options=t,this.setLatLngs(e)},setLatLngs:function(t){var n=0,r=t.length;for(this.eachLayer(function(e){r>n?e.setLatLngs(t[n++]):this.removeLayer(e)},this);r>n;)this.addLayer(new e(t[n++],this._options));return this},getLatLngs:function(){var e=[];return this.eachLayer(function(t){e.push(t.getLatLngs())}),e}})}s.MultiPolyline=e(s.Polyline),s.MultiPolygon=e(s.Polygon),s.multiPolyline=function(e,t){return new s.MultiPolyline(e,t)},s.multiPolygon=function(e,t){return new s.MultiPolygon(e,t)}}(),s.Rectangle=s.Polygon.extend({initialize:function(e,t){s.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=s.latLngBounds(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}}),s.rectangle=function(e,t){return new s.Rectangle(e,t)},s.Circle=s.Path.extend({initialize:function(e,t,n){s.Path.prototype.initialize.call(this,n),this._latlng=s.latLng(e),this._mRadius=t},options:{fill:!0},setLatLng:function(e){return this._latlng=s.latLng(e),this.redraw()},setRadius:function(e){return this._mRadius=e,this.redraw()},projectLatlngs:function(){var e=this._getLngRadius(),t=this._latlng,n=this._map.latLngToLayerPoint([t.lat,t.lng-e]);this._point=this._map.latLngToLayerPoint(t),this._radius=Math.max(this._point.x-n.x,1)},getBounds:function(){var e=this._getLngRadius(),t=this._mRadius/40075017*360,n=this._latlng;return new s.LatLngBounds([n.lat-t,n.lng-e],[n.lat+t,n.lng+e])},getLatLng:function(){return this._latlng},getPathString:function(){var e=this._point,t=this._radius;return this._checkIfEmpty()?"":s.Browser.svg?"M"+e.x+","+(e.y-t)+"A"+t+","+t+",0,1,1,"+(e.x-.1)+","+(e.y-t)+" z":(e._round(),t=Math.round(t),"AL "+e.x+","+e.y+" "+t+","+t+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(s.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var e=this._map._pathViewport,t=this._radius,n=this._point;return n.x-t>e.max.x||n.y-t>e.max.y||n.x+tn;n++)for(f=this._parts[n],r=0,u=f.length,i=u-1;u>r;i=r++)if((t||0!==r)&&(a=s.LineUtil.pointToSegmentDistance(e,f[i],f[r]),l>=a))return!0;return!1}}:{}),s.Polygon.include(s.Path.CANVAS?{_containsPoint:function(e){var t,n,r,i,o,u,a,f,l=!1;if(s.Polyline.prototype._containsPoint.call(this,e,!0))return!0;for(i=0,a=this._parts.length;a>i;i++)for(t=this._parts[i],o=0,f=t.length,u=f-1;f>o;u=o++)n=t[o],r=t[u],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(l=!l);return l}}:{}),s.Circle.include(s.Path.CANVAS?{_drawPath:function(){var e=this._point;this._ctx.beginPath(),this._ctx.arc(e.x,e.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(e){var t=this._point,n=this.options.stroke?this.options.weight/2:0;return e.distanceTo(t)<=this._radius+n}}:{}),s.CircleMarker.include(s.Path.CANVAS?{_updateStyle:function(){s.Path.prototype._updateStyle.call(this)}}:{}),s.GeoJSON=s.FeatureGroup.extend({initialize:function(e,t){s.setOptions(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=s.Util.isArray(e)?e:e.features;if(i){for(t=0,n=i.length;n>t;t++)r=i[t],(r.geometries||r.geometry||r.features||r.coordinates)&&this.addData(i[t]);return this}var o=this.options;if(!o.filter||o.filter(e)){var u=s.GeoJSON.geometryToLayer(e,o.pointToLayer,o.coordsToLatLng,o);return u.feature=s.GeoJSON.asFeature(e),u.defaultOptions=u.options,this.resetStyle(u),o.onEachFeature&&o.onEachFeature(e,u),this.addLayer(u)}},resetStyle:function(e){var t=this.options.style;t&&(s.Util.extend(e.options,e.defaultOptions),this._setLayerStyle(e,t))},setStyle:function(e){this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(e,t){"function"==typeof t&&(t=t(e.feature)),e.setStyle&&e.setStyle(t)}}),s.extend(s.GeoJSON,{geometryToLayer:function(e,t,n,r){var i,o,u,a,f="Feature"===e.type?e.geometry:e,l=f.coordinates,c=[];switch(n=n||this.coordsToLatLng,f.type){case"Point":return i=n(l),t?t(e,i):new s.Marker(i);case"MultiPoint":for(u=0,a=l.length;a>u;u++)i=n(l[u]),c.push(t?t(e,i):new s.Marker(i));return new s.FeatureGroup(c);case"LineString":return o=this.coordsToLatLngs(l,0,n),new s.Polyline(o,r);case"Polygon":if(2===l.length&&!l[1].length)throw new Error("Invalid GeoJSON object.");return o=this.coordsToLatLngs(l,1,n),new s.Polygon(o,r);case"MultiLineString":return o=this.coordsToLatLngs(l,1,n),new s.MultiPolyline(o,r);case"MultiPolygon":return o=this.coordsToLatLngs(l,2,n),new s.MultiPolygon(o,r);case"GeometryCollection":for(u=0,a=f.geometries.length;a>u;u++)c.push(this.geometryToLayer({geometry:f.geometries[u],type:"Feature",properties:e.properties},t,n,r));return new s.FeatureGroup(c);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(e){return new s.LatLng(e[1],e[0],e[2])},coordsToLatLngs:function(e,t,n){var r,i,s,o=[];for(i=0,s=e.length;s>i;i++)r=t?this.coordsToLatLngs(e[i],t-1,n):(n||this.coordsToLatLng)(e[i]),o.push(r);return o},latLngToCoords:function(e){var t=[e.lng,e.lat];return e.alt!==r&&t.push(e.alt),t},latLngsToCoords:function(e){for(var t=[],n=0,r=e.length;r>n;n++)t.push(s.GeoJSON.latLngToCoords(e[n]));return t},getFeature:function(e,t){return e.feature?s.extend({},e.feature,{geometry:t}):s.GeoJSON.asFeature(t)},asFeature:function(e){return"Feature"===e.type?e:{type:"Feature",properties:{},geometry:e}}});var u={toGeoJSON:function(){return s.GeoJSON.getFeature(this,{type:"Point",coordinates:s.GeoJSON.latLngToCoords(this.getLatLng())})}};s.Marker.include(u),s.Circle.include(u),s.CircleMarker.include(u),s.Polyline.include({toGeoJSON:function(){return s.GeoJSON.getFeature(this,{type:"LineString",coordinates:s.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),s.Polygon.include({toGeoJSON:function(){var e,t,n,r=[s.GeoJSON.latLngsToCoords(this.getLatLngs())];if(r[0].push(r[0][0]),this._holes)for(e=0,t=this._holes.length;t>e;e++)n=s.GeoJSON.latLngsToCoords(this._holes[e]),n.push(n[0]),r.push(n);return s.GeoJSON.getFeature(this,{type:"Polygon",coordinates:r})}}),function(){function e(e){return function(){var t=[];return this.eachLayer(function(e){t.push(e.toGeoJSON().geometry.coordinates)}),s.GeoJSON.getFeature(this,{type:e,coordinates:t})}}s.MultiPolyline.include({toGeoJSON:e("MultiLineString")}),s.MultiPolygon.include({toGeoJSON:e("MultiPolygon")}),s.LayerGroup.include({toGeoJSON:function(){var t,n=this.feature&&this.feature.geometry,r=[];if(n&&"MultiPoint"===n.type)return e("MultiPoint").call(this);var i=n&&"GeometryCollection"===n.type;return this.eachLayer(function(e){e.toGeoJSON&&(t=e.toGeoJSON(),r.push(i?t.geometry:s.GeoJSON.asFeature(t)))}),i?s.GeoJSON.getFeature(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}})}(),s.geoJson=function(e,t){return new s.GeoJSON(e,t)},s.DomEvent={addListener:function(e,t,n,r){var i,o,u,a=s.stamp(n),f="_leaflet_"+t+a;return e[f]?this:(i=function(t){return n.call(r||e,t||s.DomEvent._getEvent())},s.Browser.pointer&&0===t.indexOf("touch")?this.addPointerListener(e,t,i,a):(s.Browser.touch&&"dblclick"===t&&this.addDoubleTapListener&&this.addDoubleTapListener(e,i,a),"addEventListener"in e?"mousewheel"===t?(e.addEventListener("DOMMouseScroll",i,!1),e.addEventListener(t,i,!1)):"mouseenter"===t||"mouseleave"===t?(o=i,u="mouseenter"===t?"mouseover":"mouseout",i=function(t){return s.DomEvent._checkMouse(e,t)?o(t):void 0},e.addEventListener(u,i,!1)):"click"===t&&s.Browser.android?(o=i,i=function(e){return s.DomEvent._filterClick(e,o)},e.addEventListener(t,i,!1)):e.addEventListener(t,i,!1):"attachEvent"in e&&e.attachEvent("on"+t,i),e[f]=i,this))},removeListener:function(e,t,n){var r=s.stamp(n),i="_leaflet_"+t+r,o=e[i];return o?(s.Browser.pointer&&0===t.indexOf("touch")?this.removePointerListener(e,t,r):s.Browser.touch&&"dblclick"===t&&this.removeDoubleTapListener?this.removeDoubleTapListener(e,r):"removeEventListener"in e?"mousewheel"===t?(e.removeEventListener("DOMMouseScroll",o,!1),e.removeEventListener(t,o,!1)):"mouseenter"===t||"mouseleave"===t?e.removeEventListener("mouseenter"===t?"mouseover":"mouseout",o,!1):e.removeEventListener(t,o,!1):"detachEvent"in e&&e.detachEvent("on"+t,o),e[i]=null,this):this},stopPropagation:function(e){return e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,s.DomEvent._skipped(e),this},disableScrollPropagation:function(e){var t=s.DomEvent.stopPropagation;return s.DomEvent.on(e,"mousewheel",t).on(e,"MozMousePixelScroll",t)},disableClickPropagation:function(e){for(var t=s.DomEvent.stopPropagation,n=s.Draggable.START.length-1;n>=0;n--)s.DomEvent.on(e,s.Draggable.START[n],t);return s.DomEvent.on(e,"click",s.DomEvent._fakeStop).on(e,"dblclick",t)},preventDefault:function(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this},stop:function(e){return s.DomEvent.preventDefault(e).stopPropagation(e)},getMousePosition:function(e,t){if(!t)return new s.Point(e.clientX,e.clientY);var n=t.getBoundingClientRect();return new s.Point(e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop)},getWheelDelta:function(e){var t=0;return e.wheelDelta&&(t=e.wheelDelta/120),e.detail&&(t=-e.detail/3),t},_skipEvents:{},_fakeStop:function(e){s.DomEvent._skipEvents[e.type]=!0},_skipped:function(e){var t=this._skipEvents[e.type];return this._skipEvents[e.type]=!1,t},_checkMouse:function(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(r){return!1}return n!==e},_getEvent:function(){var t=e.event;if(!t)for(var n=arguments.callee.caller;n&&(t=n.arguments[0],!t||e.Event!==t.constructor);)n=n.caller;return t},_filterClick:function(e,t){var n=e.timeStamp||e.originalEvent.timeStamp,r=s.DomEvent._lastClick&&n-s.DomEvent._lastClick;return r&&r>100&&500>r||e.target._simulatedClick&&!e._simulated?void s.DomEvent.stop(e):(s.DomEvent._lastClick=n,t(e))}},s.DomEvent.on=s.DomEvent.addListener,s.DomEvent.off=s.DomEvent.removeListener,s.Draggable=s.Class.extend({includes:s.Mixin.Events,statics:{START:s.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(e,t){this._element=e,this._dragStartTarget=t||e},enable:function(){if(!this._enabled){for(var e=s.Draggable.START.length-1;e>=0;e--)s.DomEvent.on(this._dragStartTarget,s.Draggable.START[e],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var e=s.Draggable.START.length-1;e>=0;e--)s.DomEvent.off(this._dragStartTarget,s.Draggable.START[e],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(e){if(this._moved=!1,!e.shiftKey&&(1===e.which||1===e.button||e.touches)&&(s.DomEvent.stopPropagation(e),!s.Draggable._disabled&&(s.DomUtil.disableImageDrag(),s.DomUtil.disableTextSelection(),!this._moving))){var n=e.touches?e.touches[0]:e;this._startPoint=new s.Point(n.clientX,n.clientY),this._startPos=this._newPos=s.DomUtil.getPosition(this._element),s.DomEvent.on(t,s.Draggable.MOVE[e.type],this._onMove,this).on(t,s.Draggable.END[e.type],this._onUp,this)}},_onMove:function(e){if(e.touches&&e.touches.length>1)return void (this._moved=!0);var n=e.touches&&1===e.touches.length?e.touches[0]:e,r=new s.Point(n.clientX,n.clientY),i=r.subtract(this._startPoint);(i.x||i.y)&&(s.Browser.touch&&Math.abs(i.x)+Math.abs(i.y)<3||(s.DomEvent.preventDefault(e),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=s.DomUtil.getPosition(this._element).subtract(i),s.DomUtil.addClass(t.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,s.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,s.Util.cancelAnimFrame(this._animRequest),this._animRequest=s.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget)))},_updatePosition:function(){this.fire("predrag"),s.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(){s.DomUtil.removeClass(t.body,"leaflet-dragging"),this._lastTarget&&(s.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var e in s.Draggable.MOVE)s.DomEvent.off(t,s.Draggable.MOVE[e],this._onMove).off(t,s.Draggable.END[e],this._onUp);s.DomUtil.enableImageDrag(),s.DomUtil.enableTextSelection(),this._moved&&this._moving&&(s.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),s.Handler=s.Class.extend({initialize:function(e){this._map=e},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),s.Map.mergeOptions({dragging:!0,inertia:!s.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:s.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),s.Map.Drag=s.Handler.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new s.Draggable(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),e.on("viewreset",this._onViewReset,this),e.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var e=this._map;e._panAnim&&e._panAnim.stop(),e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var e=this._lastTime=+(new Date),t=this._lastPos=this._draggable._newPos;this._positions.push(t),this._times.push(e),e-this._times[0]>200&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var e=this._map.getSize()._divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,s=(r+t+n)%e-t-n,o=Math.abs(i+n)n.inertiaThreshold||!this._positions[0];if(t.fire("dragend",e),i)t.fire("moveend");else{var o=this._lastPos.subtract(this._positions[0]),u=(this._lastTime+r-this._times[0])/1e3,a=n.easeLinearity,f=o.multiplyBy(a/u),l=f.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),h=f.multiplyBy(c/l),p=c/(n.inertiaDeceleration*a),d=h.multiplyBy(-p/2).round();d.x&&d.y?(d=t._limitOffset(d,t.options.maxBounds),s.Util.requestAnimFrame(function(){t.panBy(d,{duration:p,easeLinearity:a,noMoveStart:!0})})):t.fire("moveend")}}}),s.Map.addInitHook("addHandler","dragging",s.Map.Drag),s.Map.mergeOptions({doubleClickZoom:!0}),s.Map.DoubleClickZoom=s.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom()+(e.originalEvent.shiftKey?-1:1);"center"===t.options.doubleClickZoom?t.setZoom(n):t.setZoomAround(e.containerPoint,n)}}),s.Map.addInitHook("addHandler","doubleClickZoom",s.Map.DoubleClickZoom),s.Map.mergeOptions({scrollWheelZoom:!0}),s.Map.ScrollWheelZoom=s.Handler.extend({addHooks:function(){s.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),s.DomEvent.on(this._map._container,"MozMousePixelScroll",s.DomEvent.preventDefault),this._delta=0},removeHooks:function(){s.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),s.DomEvent.off(this._map._container,"MozMousePixelScroll",s.DomEvent.preventDefault)},_onWheelScroll:function(e){var t=s.DomEvent.getWheelDelta(e);this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+(new Date));var n=Math.max(40-(+(new Date)-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s.bind(this._performZoom,this),n),s.DomEvent.preventDefault(e),s.DomEvent.stopPropagation(e)},_performZoom:function(){var e=this._map,t=this._delta,n=e.getZoom();t=t>0?Math.ceil(t):Math.floor(t),t=Math.max(Math.min(t,4),-4),t=e._limitZoom(n+t)-n,this._delta=0,this._startTime=null,t&&("center"===e.options.scrollWheelZoom?e.setZoom(n+t):e.setZoomAround(this._lastMousePos,n+t))}}),s.Map.addInitHook("addHandler","scrollWheelZoom",s.Map.ScrollWheelZoom),s.extend(s.DomEvent,{_touchstart:s.Browser.msPointer?"MSPointerDown":s.Browser.pointer?"pointerdown":"touchstart",_touchend:s.Browser.msPointer?"MSPointerUp":s.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(e,n,r){function i(e){var t;if(s.Browser.pointer?(d.push(e.pointerId),t=d.length):t=e.touches.length,!(t>1)){var n=Date.now(),r=n-(u||n);a=e.touches?e.touches[0]:e,f=r>0&&l>=r,u=n}}function o(e){if(s.Browser.pointer){var t=d.indexOf(e.pointerId);if(-1===t)return;d.splice(t,1)}if(f){if(s.Browser.pointer){var r,i={};for(var o in a)r=a[o],"function"==typeof r?i[o]=r.bind(a):i[o]=r;a=i}a.type="dblclick",n(a),u=null}}var u,a,f=!1,l=250,c="_leaflet_",h=this._touchstart,p=this._touchend,d=[];e[c+h+r]=i,e[c+p+r]=o;var v=s.Browser.pointer?t.documentElement:e;return e.addEventListener(h,i,!1),v.addEventListener(p,o,!1),s.Browser.pointer&&v.addEventListener(s.DomEvent.POINTER_CANCEL,o,!1),this},removeDoubleTapListener:function(e,n){var r="_leaflet_";return e.removeEventListener(this._touchstart,e[r+this._touchstart+n],!1),(s.Browser.pointer?t.documentElement:e).removeEventListener(this._touchend,e[r+this._touchend+n],!1),s.Browser.pointer&&t.documentElement.removeEventListener(s.DomEvent.POINTER_CANCEL,e[r+this._touchend+n],!1),this}}),s.extend(s.DomEvent,{POINTER_DOWN:s.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:s.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:s.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:s.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(e,t,n,r){switch(t){case"touchstart":return this.addPointerListenerStart(e,t,n,r);case"touchend":return this.addPointerListenerEnd(e,t,n,r);case"touchmove":return this.addPointerListenerMove(e,t,n,r);default:throw"Unknown touch event type"}},addPointerListenerStart:function(e,n,r,i){var o="_leaflet_",u=this._pointers,a=function(e){"mouse"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&s.DomEvent.preventDefault(e);for(var t=!1,n=0;n1))&&(this._moved||(s.DomUtil.addClass(t._mapPane,"leaflet-touching"),t.fire("movestart").fire("zoomstart"),this._moved=!0),s.Util.cancelAnimFrame(this._animRequest),this._animRequest=s.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),s.DomEvent.preventDefault(e))}},_updateOnMove:function(){var e=this._map,t=this._getScaleOrigin(),n=e.layerPointToLatLng(t),r=e.getScaleZoom(this._scale);e._animateZoom(n,r,this._startCenter,this._scale,this._delta,!1,!0)},_onTouchEnd:function(){if(!this._moved||!this._zooming)return void (this._zooming=!1);var e=this._map;this._zooming=!1,s.DomUtil.removeClass(e._mapPane,"leaflet-touching"),s.Util.cancelAnimFrame(this._animRequest),s.DomEvent.off(t,"touchmove",this._onTouchMove).off(t,"touchend",this._onTouchEnd);var n=this._getScaleOrigin(),r=e.layerPointToLatLng(n),i=e.getZoom(),o=e.getScaleZoom(this._scale)-i,u=o>0?Math.ceil(o):Math.floor(o),a=e._limitZoom(i+u),f=e.getZoomScale(a)/this._scale;e._animateZoom(r,a,n,f)},_getScaleOrigin:function(){var e=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(e)}}),s.Map.addInitHook("addHandler","touchZoom",s.Map.TouchZoom),s.Map.mergeOptions({tap:!0,tapTolerance:15}),s.Map.Tap=s.Handler.extend({addHooks:function(){s.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){s.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(s.DomEvent.preventDefault(e),this._fireClick=!0,e.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var n=e.touches[0],r=n.target;this._startPos=this._newPos=new s.Point(n.clientX,n.clientY),r.tagName&&"a"===r.tagName.toLowerCase()&&s.DomUtil.addClass(r,"leaflet-active"),this._holdTimeout=setTimeout(s.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",n))},this),1e3),s.DomEvent.on(t,"touchmove",this._onMove,this).on(t,"touchend",this._onUp,this)}},_onUp:function(e){if(clearTimeout(this._holdTimeout),s.DomEvent.off(t,"touchmove",this._onMove,this).off(t,"touchend",this._onUp,this),this._fireClick&&e&&e.changedTouches){var n=e.changedTouches[0],r=n.target;r&&r.tagName&&"a"===r.tagName.toLowerCase()&&s.DomUtil.removeClass(r,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",n)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){var t=e.touches[0];this._newPos=new s.Point(t.clientX,t.clientY)},_simulateEvent:function(n,r){var i=t.createEvent("MouseEvents");i._simulated=!0,r.target._simulatedClick=!0,i.initMouseEvent(n,!0,!0,e,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),r.target.dispatchEvent(i)}}),s.Browser.touch&&!s.Browser.pointer&&s.Map.addInitHook("addHandler","tap",s.Map.Tap),s.Map.mergeOptions({boxZoom:!0}),s.Map.BoxZoom=s.Handler.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._moved=!1},addHooks:function(){s.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){s.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(e){return this._moved=!1,!e.shiftKey||1!==e.which&&1!==e.button?!1:(s.DomUtil.disableTextSelection(),s.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(e),void s.DomEvent.on(t,"mousemove",this._onMouseMove,this).on(t,"mouseup",this._onMouseUp,this).on(t,"keydown",this._onKeyDown,this))},_onMouseMove:function(e){this._moved||(this._box=s.DomUtil.create("div","leaflet-zoom-box",this._pane),s.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var t=this._startLayerPoint,n=this._box,r=this._map.mouseEventToLayerPoint(e),i=r.subtract(t),o=new s.Point(Math.min(r.x,t.x),Math.min(r.y,t.y));s.DomUtil.setPosition(n,o),this._moved=!0,n.style.width=Math.max(0,Math.abs(i.x)-4)+"px",n.style.height=Math.max(0,Math.abs(i.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),s.DomUtil.enableTextSelection(),s.DomUtil.enableImageDrag(),s.DomEvent.off(t,"mousemove",this._onMouseMove).off(t,"mouseup",this._onMouseUp).off(t,"keydown",this._onKeyDown)},_onMouseUp:function(e){this._finish();var t=this._map,n=t.mouseEventToLayerPoint(e);if(!this._startLayerPoint.equals(n)){var r=new s.LatLngBounds(t.layerPointToLatLng(this._startLayerPoint),t.layerPointToLatLng(n));t.fitBounds(r),t.fire("boxzoomend",{boxZoomBounds:r})}},_onKeyDown:function(e){27===e.keyCode&&this._finish()}}),s.Map.addInitHook("addHandler","boxZoom",s.Map.BoxZoom),s.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),s.Map.Keyboard=s.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(e){this._map=e,this._setPanOffset(e.options.keyboardPanOffset),this._setZoomOffset(e.options.keyboardZoomOffset)},addHooks:function(){var e=this._map._container;-1===e.tabIndex&&(e.tabIndex="0"),s.DomEvent.on(e,"focus",this._onFocus,this).on(e,"blur",this._onBlur,this).on(e,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var e=this._map._container;s.DomEvent.off(e,"focus",this._onFocus,this).off(e,"blur",this._onBlur,this).off(e,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var n=t.body,r=t.documentElement,i=n.scrollTop||r.scrollTop,s=n.scrollLeft||r.scrollLeft;this._map._container.focus(),e.scrollTo(s,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;n>t;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;n>t;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;n>t;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;n>t;t++)r[i.up[t]]=[0,-1*e]},_setZoomOffset:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;n>t;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;n>t;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){s.DomEvent.on(t,"keydown",this._onKeyDown,this)},_removeHooks:function(){s.DomEvent.off(t,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){var t=e.keyCode,n=this._map;if(t in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;n.panBy(this._panKeys[t]),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else{if(!(t in this._zoomKeys))return;n.setZoom(n.getZoom()+this._zoomKeys[t])}s.DomEvent.stop(e)}}),s.Map.addInitHook("addHandler","keyboard",s.Map.Keyboard),s.Handler.MarkerDrag=s.Handler.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new s.Draggable(e,e)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),s.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),s.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var e=this._marker,t=e._shadow,n=s.DomUtil.getPosition(e._icon),r=e._map.layerPointToLatLng(n);t&&s.DomUtil.setPosition(t,n),e._latlng=r,e.fire("move",{latlng:r}).fire("drag")},_onDragEnd:function(e){this._marker.fire("moveend").fire("dragend",e)}}),s.Control=s.Class.extend({options:{position:"topright"},initialize:function(e){s.setOptions(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._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return s.DomUtil.addClass(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this},removeFrom:function(e){var t=this.getPosition(),n=e._controlCorners[t];return n.removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(e),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),s.control=function(e){return new s.Control(e)},s.Map.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.removeFrom(this),this},_initControlPos:function(){function e(e,i){var o=n+e+" "+n+i;t[e+i]=s.DomUtil.create("div",o,r)}var t=this._controlCorners={},n="leaflet-",r=this._controlContainer=s.DomUtil.create("div",n+"control-container",this._container);e("top","left"),e("top","right"),e("bottom","left"),e("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),s.Control.Zoom=s.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=s.DomUtil.create("div",t+" leaflet-bar");return this._map=e,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,t+"-in",n,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,t+"-out",n,this._zoomOut,this),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(e){this._map.zoomIn(e.shiftKey?3:1)},_zoomOut:function(e){this._map.zoomOut(e.shiftKey?3:1)},_createButton:function(e,t,n,r,i,o){var u=s.DomUtil.create("a",n,r);u.innerHTML=e,u.href="#",u.title=t;var a=s.DomEvent.stopPropagation;return s.DomEvent.on(u,"click",a).on(u,"mousedown",a).on(u,"dblclick",a).on(u,"click",s.DomEvent.preventDefault).on(u,"click",i,o).on(u,"click",this._refocusOnMap,o),u},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";s.DomUtil.removeClass(this._zoomInButton,t),s.DomUtil.removeClass(this._zoomOutButton,t),e._zoom===e.getMinZoom()&&s.DomUtil.addClass(this._zoomOutButton,t),e._zoom===e.getMaxZoom()&&s.DomUtil.addClass(this._zoomInButton,t)}}),s.Map.mergeOptions({zoomControl:!0}),s.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new s.Control.Zoom,this.addControl(this.zoomControl))}),s.control.zoom=function(e){return new s.Control.Zoom(e)},s.Control.Attribution=s.Control.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(e){s.setOptions(this,e),this._attributions={}},onAdd:function(e){this._container=s.DomUtil.create("div","leaflet-control-attribution"),s.DomEvent.disableClickPropagation(this._container);for(var t in e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return e.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(e){e.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},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):void 0},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):void 0},_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(" | ")}},_onLayerAdd:function(e){e.layer.getAttribution&&this.addAttribution(e.layer.getAttribution())},_onLayerRemove:function(e){e.layer.getAttribution&&this.removeAttribution(e.layer.getAttribution())}}),s.Map.mergeOptions({attributionControl:!0}),s.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new s.Control.Attribution).addTo(this))}),s.control.attribution=function(e){return new s.Control.Attribution(e)},s.Control.Scale=s.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(e){this._map=e;var t="leaflet-control-scale",n=s.DomUtil.create("div",t),r=this.options;return this._addScales(r,t,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=s.DomUtil.create("div",t+"-line",n)),e.imperial&&(this._iScale=s.DomUtil.create("div",t+"-line",n))},_update:function(){var e=this._map.getBounds(),t=e.getCenter().lat,n=6378137*Math.PI*Math.cos(t*Math.PI/180),r=n*(e.getNorthEast().lng-e.getSouthWest().lng)/180,i=this._map.getSize(),s=this.options,o=0;i.x>0&&(o=r*(s.maxWidth/i.x)),this._updateScales(s,o)},_updateScales:function(e,t){e.metric&&t&&this._updateMetric(t),e.imperial&&t&&this._updateImperial(t)},_updateMetric:function(e){var t=this._getRoundNum(e);this._mScale.style.width=this._getScaleWidth(t/e)+"px",this._mScale.innerHTML=1e3>t?t+" m":t/1e3+" km"},_updateImperial:function(e){var t,n,r,i=3.2808399*e,s=this._iScale;i>5280?(t=i/5280,n=this._getRoundNum(t),s.style.width=this._getScaleWidth(n/t)+"px",s.innerHTML=n+" mi"):(r=this._getRoundNum(i),s.style.width=this._getScaleWidth(r/i)+"px",s.innerHTML=r+" ft")},_getScaleWidth:function(e){return Math.round(this.options.maxWidth*e)-10},_getRoundNum:function(e){var t=Math.pow(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}}),s.control.scale=function(e){return new s.Control.Scale(e)},s.Control.Layers=s.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(e,t,n){s.setOptions(this,n),this._layers={},this._lastZIndex=0,this._handlingClick=!1;for(var r in e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){return this._initLayout(),this._update(),e.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(e){e.off("layeradd",this._onLayerChange,this).off("layerremove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._update(),this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._update(),this},removeLayer:function(e){var t=s.stamp(e);return delete this._layers[t],this._update(),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=s.DomUtil.create("div",e);t.setAttribute("aria-haspopup",!0),s.Browser.touch?s.DomEvent.on(t,"click",s.DomEvent.stopPropagation):s.DomEvent.disableClickPropagation(t).disableScrollPropagation(t);var n=this._form=s.DomUtil.create("form",e+"-list");if(this.options.collapsed){s.Browser.android||s.DomEvent.on(t,"mouseover",this._expand,this).on(t,"mouseout",this._collapse,this);var r=this._layersLink=s.DomUtil.create("a",e+"-toggle",t);r.href="#",r.title="Layers",s.Browser.touch?s.DomEvent.on(r,"click",s.DomEvent.stop).on(r,"click",this._expand,this):s.DomEvent.on(r,"focus",this._expand,this),s.DomEvent.on(n,"click",function(){setTimeout(s.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=s.DomUtil.create("div",e+"-base",n),this._separator=s.DomUtil.create("div",e+"-separator",n),this._overlaysList=s.DomUtil.create("div",e+"-overlays",n),t.appendChild(n)},_addLayer:function(e,t,n){var r=s.stamp(e);this._layers[r]={layer:e,name:t,overlay:n},this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var e,t,n=!1,r=!1;for(e in this._layers)t=this._layers[e],this._addItem(t),r=r||t.overlay,n=n||!t.overlay;this._separator.style.display=r&&n?"":"none"}},_onLayerChange:function(e){var t=this._layers[s.stamp(e.layer)];if(t){this._handlingClick||this._update();var n=t.overlay?"layeradd"===e.type?"overlayadd":"overlayremove":"layeradd"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)}},_createRadioElement:function(e,n){var r='e;e++)t=r[e],n=this._layers[t.layerId],t.checked&&!this._map.hasLayer(n.layer)?this._map.addLayer(n.layer):!t.checked&&this._map.hasLayer(n.layer)&&this._map.removeLayer(n.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){s.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}),s.control.layers=function(e,t,n){return new s.Control.Layers(e,t,n)},s.PosAnimation=s.Class.extend({includes:s.Mixin.Events,run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._newPos=t,this.fire("start"),e.style[s.DomUtil.TRANSITION]="all "+(n||.25)+"s cubic-bezier(0,0,"+(r||.5)+",1)",s.DomEvent.on(e,s.DomUtil.TRANSITION_END,this._onTransitionEnd,this),s.DomUtil.setPosition(e,t),s.Util.falseFn(e.offsetWidth),this._stepTimer=setInterval(s.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(s.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),s.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var e=this._getPos();return e?(this._el._leaflet_pos=e,void this.fire("step")):void this._onTransitionEnd()},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var t,n,r,i=this._el,o=e.getComputedStyle(i);if(s.Browser.any3d){if(r=o[s.DomUtil.TRANSFORM].match(this._transformRe),!r)return;t=parseFloat(r[1]),n=parseFloat(r[2])}else t=parseFloat(o.left),n=parseFloat(o.top);return new s.Point(t,n,!0)},_onTransitionEnd:function(){s.DomEvent.off(this._el,s.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[s.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}),s.Map.include({setView:function(e,t,n){if(t=t===r?this._zoom:this._limitZoom(t),e=this._limitCenter(s.latLng(e),t,this.options.maxBounds),n=n||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==r&&(n.zoom=s.extend({animate:n.animate},n.zoom),n.pan=s.extend({animate:n.animate},n.pan));var i=this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,n.zoom):this._tryAnimatedPan(e,n.pan);if(i)return clearTimeout(this._sizeTimer),this}return this._resetView(e,t),this},panBy:function(e,t){if(e=s.point(e).round(),t=t||{},!e.x&&!e.y)return this;if(this._panAnim||(this._panAnim=new s.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),t.animate!==!1){s.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e);this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){s.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._floor();return(t&&t.animate)===!0||this.getSize().contains(n)?(this.panBy(n,t),!0):!1}}),s.PosAnimation=s.DomUtil.TRANSITION?s.PosAnimation:s.PosAnimation.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=s.DomUtil.getPosition(e),this._offset=t.subtract(this._startPos),this._startTime=+(new Date),this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=s.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var e=+(new Date)-this._startTime,t=1e3*this._duration;t>e?this._runFrame(this._easeOut(e/t)):(this._runFrame(1),this._complete())},_runFrame:function(e){var t=this._startPos.add(this._offset.multiplyBy(e));s.DomUtil.setPosition(this._el,t),this.fire("step")},_complete:function(){s.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),s.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),s.DomUtil.TRANSITION&&s.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&s.DomUtil.TRANSITION&&s.Browser.any3d&&!s.Browser.android23&&!s.Browser.mobileOpera,this._zoomAnimated&&s.DomEvent.on(this._mapPane,s.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),s.Map.include(s.DomUtil.TRANSITION?{_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=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),s=this._getCenterLayerPoint()._add(i);return n.animate===!0||this.getSize().contains(i)?(this.fire("movestart").fire("zoomstart"),this._animateZoom(e,t,s,r,null,!0),!0):!1},_animateZoom:function(e,t,n,r,i,o,u){u||(this._animatingZoom=!0),s.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=e,this._animateToZoom=t,s.Draggable&&(s.Draggable._disabled=!0),s.Util.requestAnimFrame(function(){this.fire("zoomanim",{center:e,zoom:t,origin:n,scale:r,delta:i,backwards:o}),setTimeout(s.bind(this._onZoomTransitionEnd,this),250)},this)},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._animatingZoom=!1,s.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),s.Util.requestAnimFrame(function(){this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),s.Draggable&&(s.Draggable._disabled=!1)},this))}}:{}),s.TileLayer.include({_animateZoom:function(e){this._animating||(this._animating=!0,this._prepareBgBuffer());var t=this._bgBuffer,n=s.DomUtil.TRANSFORM,r=e.delta?s.DomUtil.getTranslateString(e.delta):t.style[n],i=s.DomUtil.getScaleString(e.scale,e.origin);t.style[n]=e.backwards?i+" "+r:r+" "+i},_endZoomAnim:function(){var e=this._tileContainer,t=this._bgBuffer;e.style.visibility="",e.parentNode.appendChild(e),s.Util.falseFn(t.offsetWidth);var n=this._map.getZoom();(n>this.options.maxZoom||n.5&&.5>r?(e.style.visibility="hidden",void this._stopLoadingImages(e)):(t.style.visibility="hidden",t.style[s.DomUtil.TRANSFORM]="",this._tileContainer=t,t=this._bgBuffer=e,this._stopLoadingImages(t),void clearTimeout(this._clearBgBufferTimer))},_getLoadedTilesPercentage:function(e){var t,n,r=e.getElementsByTagName("img"),i=0;for(t=0,n=r.length;n>t;t++)r[t].complete&&i++;return i/n},_stopLoadingImages:function(e){var t,n,r,i=Array.prototype.slice.call(e.getElementsByTagName("img"));for(t=0,n=i.length;n>t;t++)r=i[t],r.complete||(r.onload=s.Util.falseFn,r.onerror=s.Util.falseFn,r.src=s.Util.emptyImageUrl,r.parentNode.removeChild(r))}}),s.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(e){if(e=this._locateOptions=s.extend(this._defaultLocateOptions,e),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=s.bind(this._handleGeolocationResponse,this),n=s.bind(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,n,e):navigator.geolocation.getCurrentPosition(t,n,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(e){var t=e.coords.latitude,n=e.coords.longitude,r=new s.LatLng(t,n),i=180*e.coords.accuracy/40075017,o=i/Math.cos(s.LatLng.DEG_TO_RAD*t),u=s.latLngBounds([t-i,n-o],[t+i,n+o]),a=this._locateOptions;if(a.setView){var f=Math.min(this.getBoundsZoom(u),a.maxZoom);this.setView(r,f)}var l={latlng:r,bounds:u,timestamp:e.timestamp};for(var c in e.coords)"number"==typeof e.coords[c]&&(l[c]=e.coords[c]);this.fire("locationfound",l)}})}(window,document),!function(){var e,t,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I;l=function(t,n,r,i){return new e(t,n,r,i)},typeof module!="undefined"&&module!==null&&module.exports!=null&&(module.exports=l),typeof n=="function"&&n.amd?n("chroma-js",[],function(){return l}):(P=typeof exports!="undefined"&&exports!==null?exports:this,P.chroma=l),l.color=function(t,n,r,i){return new e(t,n,r,i)},l.hsl=function(t,n,r,i){return new e(t,n,r,i,"hsl")},l.hsv=function(t,n,r,i){return new e(t,n,r,i,"hsv")},l.rgb=function(t,n,r,i){return new e(t,n,r,i,"rgb")},l.hex=function(t){return new e(t)},l.css=function(t){return new e(t)},l.lab=function(t,n,r){return new e(t,n,r,"lab")},l.lch=function(t,n,r){return new e(t,n,r,"lch")},l.hsi=function(t,n,r){return new e(t,n,r,"hsi")},l.gl=function(t,n,r,i){return new e(t*255,n*255,r*255,i,"gl")},l.interpolate=function(t,n,r,i){return t==null||n==null?"#000":(H(t)==="string"&&(t=new e(t)),H(n)==="string"&&(n=new e(n)),t.interpolate(r,n,i))},l.mix=l.interpolate,l.contrast=function(t,n){var r,i;return H(t)==="string"&&(t=new e(t)),H(n)==="string"&&(n=new e(n)),r=t.luminance(),i=n.luminance(),r>i?(r+.05)/(i+.05):(i+.05)/(r+.05)},l.luminance=function(e){return l(e).luminance()},l._Color=e,e=function(){function e(){var e,t,n,r,i,s,o,u,a,f,l,h,p,d,b,E;i=this,n=[];for(f=0,l=arguments.length;f=3&&(o=n[0],u=n[1],a=n[2]);n.length===3?(r="rgb",e=1):n.length===4?H(n[3])==="string"?(r=n[3],e=1):H(n[3])==="number"&&(r="rgb",e=n[3]):n.length===5&&(e=n[3],r=n[4]),e==null&&(e=1),r==="rgb"?i._rgb=[o,u,a,e]:r==="gl"?i._rgb=[o*255,u*255,a*255,e]:r==="hsl"?(i._rgb=g(o,u,a),i._rgb[3]=e):r==="hsv"?(i._rgb=y(o,u,a),i._rgb[3]=e):r==="hex"?i._rgb=v(o):r==="lab"?(i._rgb=w(o,u,a),i._rgb[3]=e):r==="lch"?(i._rgb=x(o,u,a),i._rgb[3]=e):r==="hsi"&&(i._rgb=m(o,u,a),i._rgb[3]=e),s=c(i._rgb)}return e.prototype.rgb=function(){return this._rgb.slice(0,3)},e.prototype.rgba=function(){return this._rgb},e.prototype.hex=function(){return k(this._rgb)},e.prototype.toString=function(){return this.name()},e.prototype.hsl=function(){return A(this._rgb)},e.prototype.hsv=function(){return O(this._rgb)},e.prototype.lab=function(){return M(this._rgb)},e.prototype.lch=function(){return _(this._rgb)},e.prototype.hsi=function(){return L(this._rgb)},e.prototype.gl=function(){return[this._rgb[0]/255,this._rgb[1]/255,this._rgb[2]/255,this._rgb[3]]},e.prototype.luminance=function(){return N(this._rgb)},e.prototype.name=function(){var e,t;e=this.hex();for(t in l.colors)if(e===l.colors[t])return t;return e},e.prototype.alpha=function(e){return arguments.length?(this._rgb[3]=e,this):this._rgb[3]},e.prototype.css=function(e){var t,n,r,i;e==null&&(e="rgb"),n=this,r=n._rgb,e.length===3&&r[3]<1&&(e+="a");if(e==="rgb")return e+"("+r.slice(0,3).map(Math.round).join(",")+")";if(e==="rgba")return e+"("+r.slice(0,3).map(Math.round).join(",")+","+r[3]+")";if(e==="hsl"||e==="hsla")return t=n.hsl(),i=function(e){return Math.round(e*100)/100},t[0]=i(t[0]),t[1]=i(t[1]*100)+"%",t[2]=i(t[2]*100)+"%",e.length===4&&(t[3]=r[3]),e+"("+t.join(",")+")"},e.prototype.interpolate=function(t,n,r){var i,s,o,u,a,f,l,c,h,p,d,v,m,g;c=this,r==null&&(r="rgb"),H(n)==="string"&&(n=new e(n));if(r==="hsl"||r==="hsv"||r==="lch"||r==="hsi")r==="hsl"?(m=c.hsl(),g=n.hsl()):r==="hsv"?(m=c.hsv(),g=n.hsv()):r==="hsi"?(m=c.hsi(),g=n.hsi()):r==="lch"&&(m=c.lch(),g=n.lch()),r.substr(0,1)==="h"?(o=m[0],d=m[1],f=m[2],u=g[0],v=g[1],l=g[2]):(f=m[0],d=m[1],o=m[2],l=g[0],v=g[1],u=g[2]),!isNaN(o)&&!isNaN(u)?(u>o&&u-o>180?i=u-(o+360):u180?i=u+360-o:i=u-o,s=o+t*i):isNaN(o)?isNaN(u)?s=Number.NaN:(s=u,(f===1||f===0)&&r!=="hsv"&&(p=v)):(s=o,(l===1||l===0)&&r!=="hsv"&&(p=d)),p==null&&(p=d+t*(v-d)),a=f+t*(l-f),r.substr(0,1)==="h"?h=new e(s,p,a,r):h=new e(a,p,s,r);else if(r==="rgb")m=c._rgb,g=n._rgb,h=new e(m[0]+t*(g[0]-m[0]),m[1]+t*(g[1]-m[1]),m[2]+t*(g[2]-m[2]),r);else{if(r!=="lab")throw"color mode "+r+" is not supported";m=c.lab(),g=n.lab(),h=new e(m[0]+t*(g[0]-m[0]),m[1]+t*(g[1]-m[1]),m[2]+t*(g[2]-m[2]),r)}return h.alpha(c.alpha()+t*(n.alpha()-c.alpha())),h},e.prototype.premultiply=function(){var e,t;return t=this.rgb(),e=this.alpha(),l(t[0]*e,t[1]*e,t[2]*e,e)},e.prototype.darken=function(e){var t,n;return e==null&&(e=20),n=this,t=n.lch(),t[0]-=e,l.lch(t).alpha(n.alpha())},e.prototype.darker=function(e){return this.darken(e)},e.prototype.brighten=function(e){return e==null&&(e=20),this.darken(-e)},e.prototype.brighter=function(e){return this.brighten(e)},e.prototype.saturate=function(e){var t,n;return e==null&&(e=20),n=this,t=n.lch(),t[1]+=e,l.lch(t).alpha(n.alpha())},e.prototype.desaturate=function(e){return e==null&&(e=20),this.saturate(-e)},e}(),c=function(e){var t;for(t in e)t<3?(e[t]<0&&(e[t]=0),e[t]>255&&(e[t]=255)):t===3&&(e[t]<0&&(e[t]=0),e[t]>1&&(e[t]=1));return e},d=function(e){var t,n,r,i,s,o,u,a;e=e.toLowerCase();if(l.colors!=null&&l.colors[e])return v(l.colors[e]);if(r=e.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){i=r.slice(1,4);for(n=s=0;s<=2;n=++s)i[n]=+i[n];i[3]=1}else if(r=e.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/)){i=r.slice(1,5);for(n=o=0;o<=3;n=++o)i[n]=+i[n]}else if(r=e.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)){i=r.slice(1,4);for(n=u=0;u<=2;n=++u)i[n]=Math.round(i[n]*2.55);i[3]=1}else if(r=e.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)){i=r.slice(1,5);for(n=a=0;a<=2;n=++a)i[n]=Math.round(i[n]*2.55);i[3]=+i[3]}else if(r=e.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/))t=r.slice(1,4),t[1]*=.01,t[2]*=.01,i=g(t),i[3]=1;else if(r=e.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/))t=r.slice(1,4),t[1]*=.01,t[2]*=.01,i=g(t),i[3]=+r[4];return i},v=function(e){var t,n,r,i,s,o;if(e.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)){if(e.length===4||e.length===7)e=e.substr(1);return e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),o=parseInt(e,16),i=o>>16,r=o>>8&255,n=o&255,[i,r,n,1]}if(e.match(/^#?([A-Fa-f0-9]{8})$/))return e.length===9&&(e=e.substr(1)),o=parseInt(e,16),i=o>>24&255,r=o>>16&255,n=o>>8&255,t=o&255,[i,r,n,t];if(s=d(e))return s;throw"unknown color: "+e},m=function(e,t,n){var s,o,u,a;return a=B(arguments),e=a[0],t=a[1],n=a[2],e/=360,e<1/3?(s=(1-t)/3,u=(1+t*p(i*e)/p(r-i*e))/3,o=1-(s+u)):e<2/3?(e-=1/3,u=(1-t)/3,o=(1+t*p(i*e)/p(r-i*e))/3,s=1-(u+o)):(e-=2/3,o=(1-t)/3,s=(1+t*p(i*e)/p(r-i*e))/3,u=1-(o+s)),u=T(n*u*3),o=T(n*o*3),s=T(n*s*3),[u*255,o*255,s*255]},g=function(){var e,t,n,r,i,s,o,u,a,f,l,c,h,p;h=B(arguments),r=h[0],u=h[1],s=h[2];if(u===0)o=n=e=s*255;else{l=[0,0,0],t=[0,0,0],f=s<.5?s*(1+u):s+u-s*u,a=2*s-f,r/=360,l[0]=r+1/3,l[1]=r,l[2]=r-1/3;for(i=c=0;c<=2;i=++c)l[i]<0&&(l[i]+=1),l[i]>1&&(l[i]-=1),6*l[i]<1?t[i]=a+(f-a)*6*l[i]:2*l[i]<1?t[i]=f:3*l[i]<2?t[i]=a+(f-a)*(2/3-l[i])*6:t[i]=a;p=[Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)],o=p[0],n=p[1],e=p[2]}return[o,n,e]},y=function(){var e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g;c=B(arguments),r=c[0],a=c[1],l=c[2],l*=255;if(a===0)u=n=e=l;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60,i=Math.floor(r),t=r-i,s=l*(1-a),o=l*(1-a*t),f=l*(1-a*(1-t));switch(i){case 0:h=[l,f,s],u=h[0],n=h[1],e=h[2];break;case 1:p=[o,l,s],u=p[0],n=p[1],e=p[2];break;case 2:d=[s,l,f],u=d[0],n=d[1],e=d[2];break;case 3:v=[s,o,l],u=v[0],n=v[1],e=v[2];break;case 4:m=[f,s,l],u=m[0],n=m[1],e=m[2];break;case 5:g=[l,s,o],u=g[0],n=g[1],e=g[2]}}return u=Math.round(u),n=Math.round(n),e=Math.round(e),[u,n,e]},t=18,s=.95047,o=1,u=1.08883,b=function(){var e,t,n,r,i,s;return s=B(arguments),i=s[0],e=s[1],t=s[2],n=Math.sqrt(e*e+t*t),r=Math.atan2(t,e)/Math.PI*180,[i,n,r]},w=function(e,t,n){var r,i,a,f,l,c,h;return e!==void 0&&e.length===3&&(c=e,e=c[0],t=c[1],n=c[2]),e!==void 0&&e.length===3&&(h=e,e=h[0],t=h[1],n=h[2]),f=(e+16)/116,a=f+t/500,l=f-n/200,a=E(a)*s,f=E(f)*o,l=E(l)*u,i=F(3.2404542*a-1.5371385*f-.4985314*l),r=F(-0.969266*a+1.8760108*f+.041556*l),n=F(.0556434*a-.2040259*f+1.0572252*l),[T(i,0,255),T(r,0,255),T(n,0,255),1]},E=function(e){return e>.206893034?e*e*e:(e-4/29)/7.787037},F=function(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))},S=function(){var e,t,n,r;return r=B(arguments),n=r[0],e=r[1],t=r[2],t=t*Math.PI/180,[n,Math.cos(t)*e,Math.sin(t)*e]},x=function(e,t,n){var r,i,s,o,u,a,f;return a=S(e,t,n),r=a[0],i=a[1],s=a[2],f=w(r,i,s),u=f[0],o=f[1],s=f[2],[T(u,0,255),T(o,0,255),T(s,0,255)]},N=function(e,t,n){var r;return r=B(arguments),e=r[0],t=r[1],n=r[2],e=C(e),t=C(t),n=C(n),.2126*e+.7152*t+.0722*n},C=function(e){return e/=255,e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)},k=function(){var e,t,n,r,i,s;return s=B(arguments),n=s[0],t=s[1],e=s[2],i=n<<16|t<<8|e,r="000000"+i.toString(16),"#"+r.substr(r.length-6)},L=function(){var e,t,n,r,i,s,o,u,a;return a=B(arguments),o=a[0],n=a[1],t=a[2],e=Math.PI*2,o/=255,n/=255,t/=255,s=Math.min(o,n,t),i=(o+n+t)/3,u=1-s/i,u===0?r=0:(r=(o-n+(o-t))/2,r/=Math.sqrt((o-n)*(o-n)+(o-t)*(n-t)),r=Math.acos(r),t>n&&(r=e-r),r/=e),[r*360,u,i]},A=function(e,t,n){var r,i,s,o,u,a;return e!==void 0&&e.length>=3&&(a=e,e=a[0],t=a[1],n=a[2]),e/=255,t/=255,n/=255,o=Math.min(e,t,n),s=Math.max(e,t,n),i=(s+o)/2,s===o?(u=0,r=Number.NaN):u=i<.5?(s-o)/(s+o):(s-o)/(2-s-o),e===s?r=(t-n)/(s-o):t===s?r=2+(n-e)/(s-o):n===s&&(r=4+(e-t)/(s-o)),r*=60,r<0&&(r+=360),[r,u,i]},O=function(){var e,t,n,r,i,s,o,u,a,f;return f=B(arguments),o=f[0],n=f[1],e=f[2],s=Math.min(o,n,e),i=Math.max(o,n,e),t=i-s,a=i/255,i===0?(r=Number.NaN,u=0):(u=t/i,o===i&&(r=(n-e)/t),n===i&&(r=2+(e-o)/t),e===i&&(r=4+(o-n)/t),r*=60,r<0&&(r+=360)),[r,u,a]},M=function(){var e,t,n,r,i,a,f;return f=B(arguments),n=f[0],t=f[1],e=f[2],n=D(n),t=D(t),e=D(e),r=j((.4124564*n+.3575761*t+.1804375*e)/s),i=j((.2126729*n+.7151522*t+.072175*e)/o),a=j((.0193339*n+.119192*t+.9503041*e)/u),[116*i-16,500*(r-i),200*(i-a)]},D=function(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},j=function(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29},_=function(){var e,t,n,r,i,s,o;return s=B(arguments),i=s[0],n=s[1],t=s[2],o=M(i,n,t),r=o[0],e=o[1],t=o[2],b(r,e,t)},l.scale=function(e,t){var n,r,i,s,o,u,a,f,c,h,p,d,v,m,g,y,b,w,E,S,x;return y="rgb",b=l("#ccc"),x=0,v=!1,d=[0,1],h=[],E=!1,S=[],g=0,m=1,p=!1,w=0,c={},u=function(e,t){var n,r,i,s,u,a,f;e==null&&(e=["#ddd","#222"]),e!=null&&H(e)==="string"&&((u=l.brewer)!=null?u[e]:void 0)!=null&&(e=l.brewer[e]);if(H(e)==="array"){e=e.slice(0);for(n=i=0,a=e.length-1;0<=a?i<=a:i>=a;n=0<=a?++i:--i)r=e[n],H(r)==="string"&&(e[n]=l(r));if(t!=null)S=t;else{S=[];for(n=s=0,f=e.length-1;0<=f?s<=f:s>=f;n=0<=f?++s:--s)S.push(n/(e.length-1))}}return o(),h=e},a=function(e){return e==null&&(e=[]),d=e,g=e[0],m=e[e.length-1],o(),e.length===2?w=0:w=e.length-1},i=function(e){var t,n;if(d!=null){n=d.length-1,t=0;while(t=d[t])t++;return t-1}return 0},f=function(e){return e},n=function(e){var t,n,r,s,o;return o=e,d.length>2&&(s=d.length-1,t=i(e),r=d[0]+(d[1]-d[0])*(0+x*.5),n=d[s-1]+(d[s]-d[s-1])*(1-x*.5),o=g+(d[t]+(d[t+1]-d[t])*.5-r)/(n-r)*(m-g)),o},s=function(e,t){var n,r,s,o,u,a,p,v,E;t==null&&(t=!1);if(isNaN(e))return b;t?p=e:d.length>2?(n=i(e),p=n/(w-1)):(p=s=(e-g)/(m-g),p=Math.min(1,Math.max(0,p))),t||(p=f(p)),u=Math.floor(p*1e4);if(c[u])r=c[u];else{if(H(h)==="array")for(o=v=0,E=S.length-1;0<=E?v<=E:v>=E;o=0<=E?++v:--v){a=S[o];if(p<=a){r=h[o];break}if(p>=a&&o===S.length-1){r=h[o];break}if(p>a&&pn,r=s(e,!0).lab()[0],o=t+(n-t)*e,i=r-o,f=0,l=1,u=20;while(Math.abs(i)>.01&&u-->0)!function(){return a&&(i*=-1),i<0?(f=e,e+=(l-e)*.5):(l=e,e+=(f-e)*.5),r=s(e,!0).lab()[0],i=r-o}();return e}:f=function(e){return e},r):p},r.colors=function(t){var n,i,s,o,u,a;t==null&&(t="hex"),e=[],i=[];if(d.length>2)for(n=s=1,a=d.length;1<=a?sa;n=1<=a?++s:--s)i.push((d[n-1]+d[n])*.5);else i=d;for(o=0,u=i.length;os.max&&(s.max=e),s.count+=1)},u=function(e,i){if(n(e,i))return t!=null&&H(t)==="function"?r(t(e)):t!=null&&H(t)==="string"||H(t)==="number"?r(e[t]):r(e)};if(H(e)==="array")for(a=0,f=e.length;a=R;f=1<=R?++O:--O)p.push(m+f/n*(d-m));p.push(d)}else if(t.substr(0,1)==="l"){if(m<=0)throw"Logarithmic scales are only possible for values > 0";g=Math.LOG10E*Math.log(m),v=Math.LOG10E*Math.log(d),p.push(m);for(f=M=1,J=n-1;1<=J?M<=J:M>=J;f=1<=J?++M:--M)p.push(Math.pow(10,g+f/n*(v-g)));p.push(d)}else if(t.substr(0,1)==="q"){p.push(m);for(f=_=1,K=n-1;1<=K?_<=K:_>=K;f=1<=K?++_:--_)S=A.length*f/n,x=Math.floor(S),x===S?p.push(A[x]):(T=S-x,p.push(A[x]*T+A[x+1]*(1-T)));p.push(d)}else if(t.substr(0,1)==="k"){b=A.length,r=new Array(b),u=new Array(n),N=!0,w=0,s=null,s=[],s.push(m);for(f=D=1,Q=n-1;1<=Q?D<=Q:D>=Q;f=1<=Q?++D:--D)s.push(m+f/n*(d-m));s.push(d);while(N){for(c=P=0,G=n-1;0<=G?P<=G:P>=G;c=0<=G?++P:--P)u[c]=0;for(f=B=0,Y=b-1;0<=Y?B<=Y:B>=Y;f=0<=Y?++B:--B){L=A[f],y=Number.MAX_VALUE;for(c=j=0,Z=n-1;0<=Z?j<=Z:j>=Z;c=0<=Z?++j:--j)a=Math.abs(s[c]-L),a=et;c=0<=et?++F:--F)E[c]=null;for(f=I=0,tt=b-1;0<=tt?I<=tt:I>=tt;f=0<=tt?++I:--I)o=r[f],E[o]===null?E[o]=A[f]:E[o]+=A[f];for(c=q=0,U=n-1;0<=U?q<=U:q>=U;c=0<=U?++q:--q)E[c]*=1/u[c];N=!1;for(c=nt=0,z=n-1;0<=z?nt<=z:nt>=z;c=0<=z?++nt:--nt)if(E[c]!==s[f]){N=!0;break}s=E,w++,w>200&&(N=!1)}h={};for(c=rt=0,W=n-1;0<=W?rt<=W:rt>=W;c=0<=W?++rt:--rt)h[c]=[];for(f=it=0,X=b-1;0<=X?it<=X:it>=X;f=0<=X?++it:--it)o=r[f],h[o].push(A[f]);k=[];for(c=st=0,V=n-1;0<=V?st<=V:st>=V;c=0<=V?++st:--st)k.push(h[c][0]),k.push(h[c][h[c].length-1]);k=k.sort(function(e,t){return e-t}),p.push(k[0]);for(f=ot=1,$=k.length-1;ot<=$;f=ot+=2)isNaN(k[f])||p.push(k[f])}return p},l.brewer=f={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},l.colors=h={indigo:"#4b0082",gold:"#ffd700",hotpink:"#ff69b4",firebrick:"#b22222",indianred:"#cd5c5c",yellow:"#ffff00",mistyrose:"#ffe4e1",darkolivegreen:"#556b2f",olive:"#808000",darkseagreen:"#8fbc8f",pink:"#ffc0cb",tomato:"#ff6347",lightcoral:"#f08080",orangered:"#ff4500",navajowhite:"#ffdead",lime:"#00ff00",palegreen:"#98fb98",darkslategrey:"#2f4f4f",greenyellow:"#adff2f",burlywood:"#deb887",seashell:"#fff5ee",mediumspringgreen:"#00fa9a",fuchsia:"#ff00ff",papayawhip:"#ffefd5",blanchedalmond:"#ffebcd",chartreuse:"#7fff00",dimgray:"#696969",black:"#000000",peachpuff:"#ffdab9",springgreen:"#00ff7f",aquamarine:"#7fffd4",white:"#ffffff",orange:"#ffa500",lightsalmon:"#ffa07a",darkslategray:"#2f4f4f",brown:"#a52a2a",ivory:"#fffff0",dodgerblue:"#1e90ff",peru:"#cd853f",lawngreen:"#7cfc00",chocolate:"#d2691e",crimson:"#dc143c",forestgreen:"#228b22",darkgrey:"#a9a9a9",lightseagreen:"#20b2aa",cyan:"#00ffff",mintcream:"#f5fffa",silver:"#c0c0c0",antiquewhite:"#faebd7",mediumorchid:"#ba55d3",skyblue:"#87ceeb",gray:"#808080",darkturquoise:"#00ced1",goldenrod:"#daa520",darkgreen:"#006400",floralwhite:"#fffaf0",darkviolet:"#9400d3",darkgray:"#a9a9a9",moccasin:"#ffe4b5",saddlebrown:"#8b4513",grey:"#808080",darkslateblue:"#483d8b",lightskyblue:"#87cefa",lightpink:"#ffb6c1",mediumvioletred:"#c71585",slategrey:"#708090",red:"#ff0000",deeppink:"#ff1493",limegreen:"#32cd32",darkmagenta:"#8b008b",palegoldenrod:"#eee8aa",plum:"#dda0dd",turquoise:"#40e0d0",lightgrey:"#d3d3d3",lightgoldenrodyellow:"#fafad2",darkgoldenrod:"#b8860b",lavender:"#e6e6fa",maroon:"#800000",yellowgreen:"#9acd32",sandybrown:"#f4a460",thistle:"#d8bfd8",violet:"#ee82ee",navy:"#000080",magenta:"#ff00ff",dimgrey:"#696969",tan:"#d2b48c",rosybrown:"#bc8f8f",olivedrab:"#6b8e23",blue:"#0000ff",lightblue:"#add8e6",ghostwhite:"#f8f8ff",honeydew:"#f0fff0",cornflowerblue:"#6495ed",slateblue:"#6a5acd",linen:"#faf0e6",darkblue:"#00008b",powderblue:"#b0e0e6",seagreen:"#2e8b57",darkkhaki:"#bdb76b",snow:"#fffafa",sienna:"#a0522d",mediumblue:"#0000cd",royalblue:"#4169e1",lightcyan:"#e0ffff",green:"#008000",mediumpurple:"#9370db",midnightblue:"#191970",cornsilk:"#fff8dc",paleturquoise:"#afeeee",bisque:"#ffe4c4",slategray:"#708090",darkcyan:"#008b8b",khaki:"#f0e68c",wheat:"#f5deb3",teal:"#008080",darkorchid:"#9932cc",deepskyblue:"#00bfff",salmon:"#fa8072",darkred:"#8b0000",steelblue:"#4682b4",palevioletred:"#db7093",lightslategray:"#778899",aliceblue:"#f0f8ff",lightslategrey:"#778899",lightgreen:"#90ee90",orchid:"#da70d6",gainsboro:"#dcdcdc",mediumseagreen:"#3cb371",lightgray:"#d3d3d3",mediumturquoise:"#48d1cc",lemonchiffon:"#fffacd",cadetblue:"#5f9ea0",lightyellow:"#ffffe0",lavenderblush:"#fff0f5",coral:"#ff7f50",purple:"#800080",aqua:"#00ffff",whitesmoke:"#f5f5f5",mediumslateblue:"#7b68ee",darkorange:"#ff8c00",mediumaquamarine:"#66cdaa",darksalmon:"#e9967a",beige:"#f5f5dc",blueviolet:"#8a2be2",azure:"#f0ffff",lightsteelblue:"#b0c4de",oldlace:"#fdf5e6"},H=function(){var e,t,n,r,i;e={},i="Boolean Number String Function Array Date RegExp Undefined Null".split(" ");for(n=0,r=i.length;nn&&(e=n),e},B=function(e){return e.length>=3?e:e[0]},i=Math.PI*2,r=Math.PI/3,p=Math.cos,a=function(e){var t,n,r,i,s,o,u,f,c,h,p;return e=function(){var t,n,r;r=[];for(t=0,n=e.length;t>>6&31,128|t&63):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|t&63):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|t&63))}return r}function r(e){var t,n,r,i,s,o=[],u;t=n=r=i=s=0;if(e&&e.length){u=e.length,e+="";while(t191&&r<224?(i=e.charCodeAt(t+1),o[n]=String.fromCharCode((r&31)<<6|i&63),t+=2):(i=e.charCodeAt(t+1),s=e.charCodeAt(t+2),o[n]=String.fromCharCode((r&15)<<12|(i&63)<<6|s&63),t+=3)}return o.join("")}function i(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function s(e,t){return e<>>32-t}function o(e,t){var n=t?"0123456789ABCDEF":"0123456789abcdef",r="",i,s=0,o=e.length;for(;s>>4&15)+n.charAt(i&15);return r}function u(e){var t,n=e.length,r="";for(t=0;t>>8&255);return r}function a(e){var t,n=e.length,r="";for(t=0;t>>8&255,e.charCodeAt(t)&255);return r}function f(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>24-t%32&255);return r}function l(e){var t,n=e.length*32,r="";for(t=0;t>5]>>>t%32&255);return r}function c(e){var t,n=e.length*8,r=Array(e.length>>2),i=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<>2),i=r.length;for(t=0;t>5]|=(e.charCodeAt(t/8)&255)<<24-t%32;return r}function p(e,t){var n=t.length,r=Array(),i,s,o,u,a,f,l,c;f=Array(Math.ceil(e.length/2)),u=f.length;for(i=0;i0){a=Array(),o=0;for(i=0;i0||s>0)a[a.length]=s}r[r.length]=o,f=a}l="";for(i=r.length-1;i>=0;i--)l+=t.charAt(r[i]);c=Math.ceil(e.length*8/(Math.log(t.length)/Math.log(2)));for(i=l.length;ie.length*8?r+=t:r+=n.charAt(u>>>6*(3-o)&63)}return r}var e;e={VERSION:"1.0.5",Base64:function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="=",i=!1,s=!0;this.encode=function(r){var i,o,u,a="",f=r.length;n=n||"=",r=s?t(r):r;for(i=0;if*8?a+=n:a+=e.charAt(u>>>6*(3-o)&63)}return a},this.decode=function(t){var i,o,u,a,f,l,c,h,p,d,v="",m=[];if(!t)return t;i=d=0,t=t.replace(new RegExp("\\"+n,"gi"),"");do f=e.indexOf(t.charAt(i+=1)),l=e.indexOf(t.charAt(i+=1)),c=e.indexOf(t.charAt(i+=1)),h=e.indexOf(t.charAt(i+=1)),p=f<<18|l<<12|c<<6|h,o=p>>16&255,u=p>>8&255,a=p&255,d+=1,c===64?m[d]=String.fromCharCode(o):h===64?m[d]=String.fromCharCode(o,u):m[d]=String.fromCharCode(o,u,a);while(i>>8^r;return(n^-1)>>>0},MD5:function(e){function a(e){return e=u?t(e):e,l(h(c(e),e.length*8))}function f(e,n){var r,i,s,o,a;e=u?t(e):e,n=u?t(n):n,r=c(e),r.length>16&&(r=h(r,e.length*8)),i=Array(16),s=Array(16);for(a=0;a<16;a+=1)i[a]=r[a]^909522486,s[a]=r[a]^1549556828;return o=h(i.concat(c(n)),512+n.length*8),l(h(s.concat(o),640))}function h(e,t){var n,r,s,o,u,a=1732584193,f=-271733879,l=-1732584194,c=271733878;e[t>>5]|=128<>>9<<4)+14]=t;for(n=0;n16&&(r=c(r,e.length*8)),i=Array(16),s=Array(16);for(o=0;o<16;o+=1)i[o]=r[o]^909522486,s[o]=r[o]^1549556828;return a=c(i.concat(h(n)),512+n.length*8),f(c(s.concat(a),672))}function c(e,t){var n,r,o,u,a,f,l,c,h=Array(80),p=1732584193,d=-271733879,g=-1732584194,y=271733878,b=-1009589776;e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(n=0;n16&&(o=C(o,e.length*8));for(;i<16;i+=1)u[i]=o[i]^909522486,a[i]=o[i]^1549556828;return r=C(u.concat(h(n)),512+n.length*8),f(C(a.concat(r),768))}function c(e,t){return e>>>t|e<<32-t}function v(e,t){return e>>>t}function m(e,t,n){return e&t^~e&n}function g(e,t,n){return e&t^e&n^t&n}function y(e){return c(e,2)^c(e,13)^c(e,22)}function b(e){return c(e,6)^c(e,11)^c(e,25)}function w(e){return c(e,7)^c(e,18)^v(e,3)}function E(e){return c(e,17)^c(e,19)^v(e,10)}function S(e){return c(e,28)^c(e,34)^c(e,39)}function x(e){return c(e,14)^c(e,18)^c(e,41)}function T(e){return c(e,1)^c(e,8)^v(e,7)}function N(e){return c(e,19)^c(e,61)^v(e,6)}function C(e,t){var n=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],r=new Array(64),s,o,a,f,l,c,h,p,d,v,S,x;e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(d=0;d32&&(o=l(o,e.length*8));for(;s<32;s+=1)u[s]=o[s]^909522486,a[s]=o[s]^1549556828;return r=l(u.concat(h(n)),1024+n.length*8),f(l(a.concat(r),1536))}function l(e,t){var n,r,i,o=new Array(80),u=new Array(16),a=[new c(1779033703,-205731576),new c(-1150833019,-2067093701),new c(1013904242,-23791573),new c(-1521486534,1595750129),new c(1359893119,-1377402159),new c(-1694144372,725511199),new c(528734635,-79577749),new c(1541459225,327033209)],f=new c(0,0),l=new c(0,0),h=new c(0,0),p=new c(0,0),d=new c(0,0),S=new c(0,0),x=new c(0,0),T=new c(0,0),N=new c(0,0),C=new c(0,0),k=new c(0,0),L=new c(0,0),A=new c(0,0),O=new c(0,0),M=new c(0,0),_=new c(0,0),D=new c(0,0);s===undefined&&(s=[new c(1116352408,-685199838),new c(1899447441,602891725),new c(-1245643825,-330482897),new c(-373957723,-2121671748),new c(961987163,-213338824),new c(1508970993,-1241133031),new c(-1841331548,-1357295717),new c(-1424204075,-630357736),new c(-670586216,-1560083902),new c(310598401,1164996542),new c(607225278,1323610764),new c(1426881987,-704662302),new c(1925078388,-226784913),new c(-2132889090,991336113),new c(-1680079193,633803317),new c(-1046744716,-815192428),new c(-459576895,-1628353838),new c(-272742522,944711139),new c(264347078,-1953704523),new c(604807628,2007800933),new c(770255983,1495990901),new c(1249150122,1856431235),new c(1555081692,-1119749164),new c(1996064986,-2096016459),new c(-1740746414,-295247957),new c(-1473132947,766784016),new c(-1341970488,-1728372417),new c(-1084653625,-1091629340),new c(-958395405,1034457026),new c(-710438585,-1828018395),new c(113926993,-536640913),new c(338241895,168717936),new c(666307205,1188179964),new c(773529912,1546045734),new c(1294757372,1522805485),new c(1396182291,-1651133473),new c(1695183700,-1951439906),new c(1986661051,1014477480),new c(-2117940946,1206759142),new c(-1838011259,344077627),new c(-1564481375,1290863460),new c(-1474664885,-1136513023),new c(-1035236496,-789014639),new c(-949202525,106217008),new c(-778901479,-688958952),new c(-694614492,1432725776),new c(-200395387,1467031594),new c(275423344,851169720),new c(430227734,-1194143544),new c(506948616,1363258195),new c(659060556,-544281703),new c(883997877,-509917016),new c(958139571,-976659869),new c(1322822218,-482243893),new c(1537002063,2003034995),new c(1747873779,-692930397),new c(1955562222,1575990012),new c(2024104815,1125592928),new c(-2067236844,-1578062990),new c(-1933114872,442776044),new c(-1866530822,593698344),new c(-1538233109,-561857047),new c(-1090935817,-1295615723),new c(-965641998,-479046869),new c(-903397682,-366583396),new c(-779700025,566280711),new c(-354779690,-840897762),new c(-176337025,-294727304),new c(116418474,1914138554),new c(174292421,-1563912026),new c(289380356,-1090974290),new c(460393269,320620315),new c(685471733,587496836),new c(852142971,1086792851),new c(1017036298,365543100),new c(1126000580,-1676669620),new c(1288033470,-885112138),new c(1501505948,-60457430),new c(1607167915,987167468),new c(1816402316,1246189591)]);for(r=0;r<80;r+=1)o[r]=new c(0,0);e[t>>5]|=128<<24-(t&31),e[(t+128>>10<<5)+31]=t,i=e.length;for(r=0;r>>n|t.h<<32-n,e.h=t.h>>>n|t.l<<32-n}function g(e,t,n){e.l=t.h>>>n|t.l<<32-n,e.h=t.l>>>n|t.h<<32-n}function y(e,t,n){e.l=t.l>>>n|t.h<<32-n,e.h=t.h>>>n}function b(e,t,n){var r=(t.l&65535)+(n.l&65535),i=(t.l>>>16)+(n.l>>>16)+(r>>>16),s=(t.h&65535)+(n.h&65535)+(i>>>16),o=(t.h>>>16)+(n.h>>>16)+(s>>>16);e.l=r&65535|i<<16,e.h=s&65535|o<<16}function w(e,t,n,r,i){var s=(t.l&65535)+(n.l&65535)+(r.l&65535)+(i.l&65535),o=(t.l>>>16)+(n.l>>>16)+(r.l>>>16)+(i.l>>>16)+(s>>>16),u=(t.h&65535)+(n.h&65535)+(r.h&65535)+(i.h&65535)+(o>>>16),a=(t.h>>>16)+(n.h>>>16)+(r.h>>>16)+(i.h>>>16)+(u>>>16);e.l=s&65535|o<<16,e.h=u&65535|a<<16}function E(e,t,n,r,i,s){var o=(t.l&65535)+(n.l&65535)+(r.l&65535)+(i.l&65535)+(s.l&65535),u=(t.l>>>16)+(n.l>>>16)+(r.l>>>16)+(i.l>>>16)+(s.l>>>16)+(o>>>16),a=(t.h&65535)+(n.h&65535)+(r.h&65535)+(i.h&65535)+(s.h&65535)+(u>>>16),f=(t.h>>>16)+(n.h>>>16)+(r.h>>>16)+(i.h>>>16)+(s.h>>>16)+(a>>>16);e.l=o&65535|u<<16,e.h=a&65535|f<<16}var n=e&&typeof e.uppercase=="boolean"?e.uppercase:!1,r=e&&typeof e.pad=="string"?e.pda:"=",i=e&&typeof e.utf8=="boolean"?e.utf8:!0,s;this.hex=function(e){return o(u(e))},this.b64=function(e){return d(u(e),r)},this.any=function(e,t){return p(u(e),t)},this.raw=function(e){return u(e,i)},this.hex_hmac=function(e,t){return o(a(e,t))},this.b64_hmac=function(e,t){return d(a(e,t),r)},this.any_hmac=function(e,t,n){return p(a(e,t),n)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(e){return typeof e=="boolean"&&(n=e),this},this.setPad=function(e){return r=e||r,this},this.setUTF8=function(e){return typeof e=="boolean"&&(i=e),this}},RMD160:function(e){function v(e){return e=u?t(e):e,g(y(c(e),e.length*8))}function m(e,n){e=u?t(e):e,n=u?t(n):n;var r,i,s=c(e),o=Array(16),a=Array(16);s.length>16&&(s=y(s,e.length*8));for(r=0;r<16;r+=1)o[r]=s[r]^909522486,a[r]=s[r]^1549556828;return i=y(o.concat(c(n)),512+n.length*8),g(y(a.concat(i),672))}function g(e){var t,n="",r=e.length*32;for(t=0;t>5]>>>t%32&255);return n}function y(e,t){var n,r,o,u,c=1732584193,p=4023233417,d=2562383102,v=271733878,m=3285377520,g,y,S,x,T,N,C,k,L,A;e[t>>5]|=128<>>9<<4)+14]=t,u=e.length;for(o=0;o=e[0]&&t[3]>=e[1]}function d(e,t,n,r,i){var s=[t,n],o;while(s.length){n=s.pop(),t=s.pop();if(n-t<=r)continue;o=t+Math.ceil((n-t)/r/2)*r,v(e,t,n,o,i),s.push(t,o,o,n)}}function v(e,t,n,r,i){var s,o,u,a,f,l,c,h,p;while(n>t){n-t>600&&(s=n-t+1,o=r-t+1,u=Math.log(s),a=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*a*(s-a)/s)*(o-s/2<0?-1:1),l=Math.max(t,Math.floor(r-o*a/s+f)),c=Math.min(n,Math.floor(r+(s-o)*a/s+f)),v(e,l,c,r,i)),h=e[r],o=t,p=n,m(e,t,r),i(e[n],h)>0&&m(e,t,n);while(o0)p--}i(e[t],h)===0?m(e,t,p):(p++,m(e,p,n)),p<=r&&(t=p+1),r<=p&&(n=p-1)}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}e.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!p(e,t.bbox))return n;var i=[],s,o,u,a;while(t){for(s=0,o=t.children.length;s=0){if(!(o[t].children.length>this._maxEntries))break;this._split(o,t),t--}this._adjustParentBBoxes(i,o,t)},_split:function(e,n){var r=e[n],i=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,i);var o={children:r.children.splice(this._chooseSplitIndex(r,s,i)),height:r.height};r.leaf&&(o.leaf=!0),t(r,this.toBBox),t(o,this.toBBox),n?e[n-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(e,n){this.data={children:[e,n],height:e.height+1},t(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var i,s,o,u,f,l,h,p;l=h=Infinity;for(i=t;i<=n-t;i++)s=r(e,0,i,this.toBBox),o=r(e,i,n,this.toBBox),u=c(s,o),f=a(s)+a(o),u=t;c--)h=e.children[c],s(a,e.leaf?o(h):h.bbox),l+=f(a);return l},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)s(t[r].bbox,e)},_condense:function(e){for(var n=e.length-1,r;n>=0;n--)e[n].children.length===0?n>0?(r=e[n-1].children,r.splice(r.indexOf(e[n]),1)):this.clear():t(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return [a"+e.join(", a")+"];")}},typeof n=="function"&&n.amd?n("rbush",[],function(){return e}):typeof module!="undefined"?module.exports=e:typeof self!="undefined"?self.rbush=e:window.rbush=e}(),n("map/labelslayer",["leaflet","rbush"],function(e,t){function o(e,t){return s.font=e,s.measureText(t)}function u(e){var t=[e.position.lat,e.position.lng,e.position.lat,e.position.lng];return t.label=e,t}function a(t,n,i,s,u){return function(a){var f=n+"px "+r;return{position:e.latLng(a.nodeinfo.location.latitude,a.nodeinfo.location.longitude),label:a.nodeinfo.hostname,offset:i,fillStyle:t,height:n*1.2,font:f,stroke:s,minZoom:u,width:o(f,a.nodeinfo.hostname).width}}}function f(e,t){return[e*Math.cos(t[2]*2*Math.PI),-e*Math.sin(t[2]*2*Math.PI)]}function l(e,t,n,r,i,s,o){var u=1+1.41*(1-(o-i)/(s-i)),a=r.width*u,f=r.height*u,l={left:0,right:-a,center:-a/2},c={top:0,ideographic:-f,middle:-f/2},h=e.x+t[0]+l[n[0]],p=e.y+t[1]+c[n[1]];return[h,p,h+a,p+f]}var n=[["left","middle",0],["center","top",.75],["right","middle",.5],["left","top",7/8],["left","ideographic",1/8],["right","top",5/8],["center","ideographic",.25],["right","ideographic",3/8]],r="Roboto",i=4,s=document.createElement("canvas").getContext("2d"),c=e.TileLayer.Canvas.extend({onAdd:function(t){e.TileLayer.Canvas.prototype.onAdd.call(this,t),this.data&&this.prepareLabels()},setData:function(e){this.data=e,this._map&&this.prepareLabels()},prepareLabels:function(){function g(e){return function(t){var n=m.project(t.position,e);return[n.x-i,n.y-i,n.x+i,n.y+i]}}var e=this.data,r=e.online.map(a("rgba(0, 0, 0, 0.9)",10,8,!0,13)),s=e.offline.map(a("rgba(212, 62, 42, 0.9)",9,5,!1,16)),o=e.new.map(a("rgba(48, 99, 20, 0.9)",11,8,!0,0)),c=e.lost.map(a("rgba(212, 62, 42, 0.9)",11,8,!0,0)),h=[].concat(o).concat(c).concat(r).concat(s),p=this.options.minZoom,d=this.options.maxZoom,v=[],m=this._map;for(var y=p;y<=d;y++)v[y]=t(9),v[y].load(h.map(g(y)));h=h.map(function(e){var t=n.map(function(t){var n=f(e.offset,t),r;for(r=d;r>=e.minZoom;r--){var i=m.project(e.position,r),s=l(i,n,t,e,p,d,r),o=v[r].search(s);if(o.length>0)break}return{loc:t,z:r+1}}).filter(function(e){return e.z<=d}).sort(function(e,t){return e.z-t.z})[0];if(t!==undefined){e.offset=f(e.offset,t.loc),e.minZoom=t.z,e.anchor=t.loc;for(var r=d;r>=t.z;r--){var i=m.project(e.position,r),s=l(i,e.offset,t.loc,e,p,d,r);v[r].insert(s)}return e}return undefined}).filter(function(e){return e!==undefined}),this.margin=16,h.length>0&&(this.margin+=h.map(function(e){return e.width}).sort().reverse()[0]),this.labels=t(9),this.labels.load(h.map(u)),this.redraw()},drawTile:function(e,t,n){function r(e,t,n,r){var i=t.unproject([e.x-r,e.y-r]),s=t.unproject([e.x+r+n,e.y+r+n]);return[s.lat,i.lng,i.lat,s.lng]}function u(e){var t=o.project(e.label.position);return t.x-=s.x,t.y-=s.y,{p:t,label:e.label}}function c(e){l.font=e.label.font,l.textAlign=e.label.anchor[0],l.textBaseline=e.label.anchor[1],l.fillStyle=e.label.fillStyle,e.label.stroke&&l.strokeText(e.label.label,e.p.x+e.label.offset[0],e.p.y+e.label.offset[1]),l.fillText(e.label.label,e.p.x+e.label.offset[0],e.p.y+e.label.offset[1])}if(!this.labels)return;var i=this.options.tileSize,s=t.multiplyBy(i),o=this._map,a=r(s,o,i,this.margin),f=this.labels.search(a).map(u),l=e.getContext("2d");l.lineWidth=5,l.strokeStyle="rgba(255, 255, 255, 0.8)",l.miterLimit=2,f.filter(function(e){return n>=e.label.minZoom}).forEach(c)}});return c}),!function(){function e(e){return e&&(e.ownerDocument||e.document||e).documentElement}function t(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function r(e,t){return t>e?-1:e>t?1:e>=t?0:NaN}function i(e){return null===e?NaN:+e}function s(e){return!isNaN(e)}function o(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var s=r+i>>>1;e(t[s],n)<0?r=s+1:i=s}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var s=r+i>>>1;e(t[s],n)>0?i=s:r=s+1}return r}}}function u(e){return e.length}function a(e){for(var t=1;e*t%1;)t*=10;return t}function f(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function l(){this._=Object.create(null)}function c(e){return(e+="")===Su||e[0]===xu?xu+e:e}function h(e){return(e+="")[0]===xu?e.slice(1):e}function p(e){return c(e)in this._}function d(e){return(e=c(e))in this._&&delete this._[e]}function v(){var e=[];for(var t in this._)e.push(h(t));return e}function m(){var e=0;for(var t in this._)++e;return e}function g(){for(var e in this._)return!1;return!0}function y(){this._=Object.create(null)}function b(e){return e}function w(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function E(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=Tu.length;r>n;++n){var i=Tu[n]+t;if(i in e)return i}}function S(){}function x(){}function T(e){function t(){for(var t,r=n,i=-1,s=r.length;++in;n++)for(var i,s=e[n],o=0,u=s.length;u>o;o++)(i=s[o])&&t(i,o,n);return e}function X(e){return Cu(e,Du),e}function V(e){var t,n;return function(r,i,s){var o,u=e[s].update,a=u.length;for(s!=n&&(n=s,t=0),i>=t&&(t=i+1);!(o=u[t])&&++t0&&(e=e.slice(0,u));var f=Pu.get(e);return f&&(e=f,a=K),u?t?i:r:t?S:s}function J(e,t){return function(n){var r=fu.event;fu.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{fu.event=r}}}function K(e,t){var n=J(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function Q(n){var r=".dragsuppress-"+ ++Bu,i="click"+r,s=fu.select(t(n)).on("touchmove"+r,N).on("dragstart"+r,N).on("selectstart"+r,N);if(null==Hu&&(Hu="onselectstart"in n?!1:E(n.style,"userSelect")),Hu){var o=e(n).style,u=o[Hu];o[Hu]="none"}return function(e){if(s.on(r,null),Hu&&(o[Hu]=u),e){var t=function(){s.on(i,null)};s.on(i,function(){N(),t()},!0),setTimeout(t,0)}}}function G(e,n){n.changedTouches&&(n=n.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>ju){var s=t(e);if(s.scrollX||s.scrollY){r=fu.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();ju=!o.f&&!o.e,r.remove()}}return ju?(i.x=n.pageX,i.y=n.pageY):(i.x=n.clientX,i.y=n.clientY),i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}var u=e.getBoundingClientRect();return[n.clientX-u.left-e.clientLeft,n.clientY-u.top-e.clientTop]}function Y(){return fu.event.changedTouches[0].identifier}function Z(e){return e>0?1:0>e?-1:0}function et(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function tt(e){return e>1?0:-1>e?qu:Math.acos(e)}function nt(e){return e>1?zu:-1>e?-zu:Math.asin(e)}function rt(e){return((e=Math.exp(e))-1/e)/2}function it(e){return((e=Math.exp(e))+1/e)/2}function st(e){return((e=Math.exp(2*e))-1)/(e+1)}function ot(e){return(e=Math.sin(e/2))*e}function ut(){}function at(e,t,n){return this instanceof at?(this.h=+e,this.s=+t,void (this.l=+n)):arguments.length<2?e instanceof at?new at(e.h,e.s,e.l):St(""+e,xt,at):new at(e,t,n)}function ft(e,t,n){function r(e){return e>360?e-=360:0>e&&(e+=360),60>e?s+(o-s)*e/60:180>e?o:240>e?s+(o-s)*(240-e)/60:s}function i(e){return Math.round(255*r(e))}var s,o;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:0>t?0:t>1?1:t,n=0>n?0:n>1?1:n,o=.5>=n?n*(1+t):n+t-n*t,s=2*n-o,new yt(i(e+120),i(e),i(e-120))}function lt(e,t,n){return this instanceof lt?(this.h=+e,this.c=+t,void (this.l=+n)):arguments.length<2?e instanceof lt?new lt(e.h,e.c,e.l):e instanceof ht?dt(e.l,e.a,e.b):dt((e=Tt((e=fu.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new lt(e,t,n)}function ct(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new ht(n,Math.cos(e*=Wu)*t,Math.sin(e)*t)}function ht(e,t,n){return this instanceof ht?(this.l=+e,this.a=+t,void (this.b=+n)):arguments.length<2?e instanceof ht?new ht(e.l,e.a,e.b):e instanceof lt?ct(e.h,e.c,e.l):Tt((e=yt(e)).r,e.g,e.b):new ht(e,t,n)}function pt(e,t,n){var r=(e+16)/116,i=r+t/500,s=r-n/200;return i=vt(i)*ta,r=vt(r)*na,s=vt(s)*ra,new yt(gt(3.2404542*i-1.5371385*r-.4985314*s),gt(-0.969266*i+1.8760108*r+.041556*s),gt(.0556434*i-.2040259*r+1.0572252*s))}function dt(e,t,n){return e>0?new lt(Math.atan2(n,t)*Xu,Math.sqrt(t*t+n*n),e):new lt(NaN,NaN,e)}function vt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function mt(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function gt(e){return Math.round(255*(.00304>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function yt(e,t,n){return this instanceof yt?(this.r=~~e,this.g=~~t,void (this.b=~~n)):arguments.length<2?e instanceof yt?new yt(e.r,e.g,e.b):St(""+e,yt,ft):new yt(e,t,n)}function bt(e){return new yt(e>>16,e>>8&255,255&e)}function wt(e){return bt(e)+""}function Et(e){return 16>e?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function St(e,t,n){var r,i,s,o=0,u=0,a=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(Ct(i[0]),Ct(i[1]),Ct(i[2]))}return(s=oa.get(e))?t(s.r,s.g,s.b):(null==e||"#"!==e.charAt(0)||isNaN(s=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&s)>>4,o=o>>4|o,u=240&s,u=u>>4|u,a=15&s,a=a<<4|a):7===e.length&&(o=(16711680&s)>>16,u=(65280&s)>>8,a=255&s)),t(o,u,a))}function xt(e,t,n){var r,i,s=Math.min(e/=255,t/=255,n/=255),o=Math.max(e,t,n),u=o-s,a=(o+s)/2;return u?(i=.5>a?u/(o+s):u/(2-o-s),r=e==o?(t-n)/u+(n>t?6:0):t==o?(n-e)/u+2:(e-t)/u+4,r*=60):(r=NaN,i=a>0&&1>a?0:r),new at(r,i,a)}function Tt(e,t,n){e=Nt(e),t=Nt(t),n=Nt(n);var r=mt((.4124564*e+.3575761*t+.1804375*n)/ta),i=mt((.2126729*e+.7151522*t+.072175*n)/na),s=mt((.0193339*e+.119192*t+.9503041*n)/ra);return ht(116*i-16,500*(r-i),200*(i-s))}function Nt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ct(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function kt(e){return"function"==typeof e?e:function(){return e}}function Lt(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),At(t,n,e,r)}}function At(e,t,n,r){function i(){var e,t=a.status;if(!t&&Mt(a)||t>=200&&300>t||304===t){try{e=n.call(s,a)}catch(r){return void o.error.call(s,r)}o.load.call(s,e)}else o.error.call(s,a)}var s={},o=fu.dispatch("beforesend","progress","load","error"),u={},a=new XMLHttpRequest,f=null;return!this.XDomainRequest||"withCredentials"in a||!/^(http(s)?:)?\/\//.test(e)||(a=new XDomainRequest),"onload"in a?a.onload=a.onerror=i:a.onreadystatechange=function(){a.readyState>3&&i()},a.onprogress=function(e){var t=fu.event;fu.event=e;try{o.progress.call(s,a)}finally{fu.event=t}},s.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?u[e]:(null==t?delete u[e]:u[e]=t+"",s)},s.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",s):t},s.responseType=function(e){return arguments.length?(f=e,s):f},s.response=function(e){return n=e,s},["get","post"].forEach(function(e){s[e]=function(){return s.send.apply(s,[e].concat(cu(arguments)))}}),s.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),a.open(n,e,!0),null==t||"accept"in u||(u.accept=t+",*/*"),a.setRequestHeader)for(var l in u)a.setRequestHeader(l,u[l]);return null!=t&&a.overrideMimeType&&a.overrideMimeType(t),null!=f&&(a.responseType=f),null!=i&&s.on("error",i).on("load",function(e){i(null,e)}),o.beforesend.call(s,a),a.send(null==r?null:r),s},s.abort=function(){return a.abort(),s},fu.rebind(s,o,"on"),null==r?s:s.get(Ot(r))}function Ot(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Mt(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function _t(e,t,n){var r=arguments.length;2>r&&(t=0),3>r&&(n=Date.now());var i=n+t,s={c:e,t:i,n:null};return aa?aa.n=s:ua=s,aa=s,fa||(la=clearTimeout(la),fa=1,ca(Dt)),s}function Dt(){var e=Pt(),t=Ht()-e;t>24?(isFinite(t)&&(clearTimeout(la),la=setTimeout(Dt,t)),fa=0):(fa=1,ca(Dt))}function Pt(){for(var e=Date.now(),t=ua;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Ht(){for(var e,t=ua,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Ft(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,s=r&&n?function(e,t){for(var i=e.length,s=[],o=0,u=r[0],a=0;i>0&&u>0&&(a+u+1>t&&(u=Math.max(1,t-a)),s.push(e.substring(i-=u,i+u)),!((a+=u+1)>t));)u=r[o=(o+1)%r.length];return s.reverse().join(n)}:b;return function(e){var n=pa.exec(e),r=n[1]||" ",o=n[2]||">",u=n[3]||"-",a=n[4]||"",f=n[5],l=+n[6],c=n[7],h=n[8],p=n[9],d=1,v="",m="",g=!1,y=!0;switch(h&&(h=+h.substring(1)),(f||"0"===r&&"="===o)&&(f=r="0",o="="),p){case"n":c=!0,p="g";break;case"%":d=100,m="%",p="f";break;case"p":d=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===a&&(v="0"+p.toLowerCase());case"c":y=!1;case"d":g=!0,h=0;break;case"s":d=-1,p="r"}"$"===a&&(v=i[0],m=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=da.get(p)||It;var b=f&&c;return function(e){var n=m;if(g&&e%1)return"";var i=0>e||0===e&&0>1/e?(e=-e,"-"):"-"===u?"":u;if(0>d){var a=fu.formatPrefix(e,h);e=a.scale(e),n=a.symbol+m}else e*=d;e=p(e,h);var w,E,S=e.lastIndexOf(".");if(0>S){var x=y?e.lastIndexOf("e"):-1;0>x?(w=e,E=""):(w=e.substring(0,x),E=e.substring(x))}else w=e.substring(0,S),E=t+e.substring(S+1);!f&&c&&(w=s(w,1/0));var T=v.length+w.length+E.length+(b?0:i.length),N=l>T?(new Array(T=l-T+1)).join(r):"";return b&&(w=s(N+w,N.length?l-E.length:1/0)),i+=v,e=w+E,("<"===o?i+e+N:">"===o?N+i+e:"^"===o?N.substring(0,T>>=1)+i+e+N.substring(T):i+(b?e:N+e))+n}}}function It(e){return e+""}function qt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Rt(e,t,n){function r(t){var n=e(t),r=s(n,1);return r-t>t-n?n:r}function i(n){return t(n=e(new ma(n-1)),1),n}function s(e,n){return t(e=new ma(+e),n),e}function o(e,r,s){var o=i(e),u=[];if(s>1)for(;r>o;)n(o)%s||u.push(new Date(+o)),t(o,1);else for(;r>o;)u.push(new Date(+o)),t(o,1);return u}function u(e,t,n){try{ma=qt;var r=new qt;return r._=e,o(r,t,n)}finally{ma=Date}}e.floor=e,e.round=r,e.ceil=i,e.offset=s,e.range=o;var a=e.utc=Ut(e);return a.floor=a,a.round=Ut(r),a.ceil=Ut(i),a.offset=Ut(s),a.range=u,e}function Ut(e){return function(t,n){try{ma=qt;var r=new qt;return r._=t,e(r,n)._}finally{ma=Date}}}function zt(e){function t(e){function t(t){for(var n,i,s,o=[],u=-1,a=0;++uu;){if(r>=f)return-1;if(i=t.charCodeAt(u++),37===i){if(o=t.charAt(u++),s=A[o in ya?t.charAt(u++):o],!s||(r=s(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){S.lastIndex=0;var r=S.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){w.lastIndex=0;var r=w.exec(t.slice(n));return r?(e.w=E.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,n){C.lastIndex=0;var r=C.exec(t.slice(n));return r?(e.m=k.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){T.lastIndex=0;var r=T.exec(t.slice(n));return r?(e.m=N.get(r[0].toLowerCase()),n+r[0].length):-1}function u(e,t,r){return n(e,L.c.toString(),t,r)}function a(e,t,r){return n(e,L.x.toString(),t,r)}function f(e,t,r){return n(e,L.X.toString(),t,r)}function l(e,t,n){var r=b.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var c=e.dateTime,h=e.date,p=e.time,d=e.periods,v=e.days,m=e.shortDays,g=e.months,y=e.shortMonths;t.utc=function(e){function n(e){try{ma=qt;var t=new ma;return t._=e,r(t)}finally{ma=Date}}var r=t(e);return n.parse=function(e){try{ma=qt;var t=r.parse(e);return t&&t._}finally{ma=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=ln;var b=fu.map(),w=Xt(v),E=Vt(v),S=Xt(m),x=Vt(m),T=Xt(g),N=Vt(g),C=Xt(y),k=Vt(y);d.forEach(function(e,t){b.set(e.toLowerCase(),t)});var L={a:function(e){return m[e.getDay()]},A:function(e){return v[e.getDay()]},b:function(e){return y[e.getMonth()]},B:function(e){return g[e.getMonth()]},c:t(c),d:function(e,t){return Wt(e.getDate(),t,2)},e:function(e,t){return Wt(e.getDate(),t,2)},H:function(e,t){return Wt(e.getHours(),t,2)},I:function(e,t){return Wt(e.getHours()%12||12,t,2)},j:function(e,t){return Wt(1+va.dayOfYear(e),t,3)},L:function(e,t){return Wt(e.getMilliseconds(),t,3)},m:function(e,t){return Wt(e.getMonth()+1,t,2)},M:function(e,t){return Wt(e.getMinutes(),t,2)},p:function(e){return d[+(e.getHours()>=12)]},S:function(e,t){return Wt(e.getSeconds(),t,2)},U:function(e,t){return Wt(va.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Wt(va.mondayOfYear(e),t,2)},x:t(h),X:t(p),y:function(e,t){return Wt(e.getFullYear()%100,t,2)},Y:function(e,t){return Wt(e.getFullYear()%1e4,t,4)},Z:an,"%":function(){return"%"}},A={a:r,A:i,b:s,B:o,c:u,d:tn,e:tn,H:rn,I:rn,j:nn,L:un,m:en,M:sn,p:l,S:on,U:Jt,w:$t,W:Kt,x:a,X:f,y:Gt,Y:Qt,Z:Yt,"%":fn};return t}function Wt(e,t,n){var r=0>e?"-":"",i=(r?-e:e)+"",s=i.length;return r+(n>s?(new Array(n-s+1)).join(t)+i:i)}function Xt(e){return new RegExp("^(?:"+e.map(fu.requote).join("|")+")","i")}function Vt(e){for(var t=new l,n=-1,r=e.length;++n68?1900:2e3)}function en(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tn(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function nn(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function rn(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function sn(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function on(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function un(e,t,n){ba.lastIndex=0;var r=ba.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function an(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=Eu(t)/60|0,i=Eu(t)%60;return n+Wt(r,"0",2)+Wt(i,"0",2)}function fn(e,t,n){wa.lastIndex=0;var r=wa.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ln(e){for(var t=e.length,n=-1;++n=0?1:-1,u=o*n,a=Math.cos(t),f=Math.sin(t),l=s*f,c=i*a+l*Math.cos(u),h=l*o*Math.sin(u);Ca.add(Math.atan2(h,c)),r=e,i=a,s=f}var t,n,r,i,s;ka.point=function(o,u){ka.point=e,r=(t=o)*Wu,i=Math.cos(u=(n=u)*Wu/2+qu/4),s=Math.sin(u)},ka.lineEnd=function(){e(t,n)}}function gn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function yn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function bn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function wn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function En(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Sn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function xn(e){return[Math.atan2(e[1],e[0]),nt(e[2])]}function Tn(e,t){return Eu(e[0]-t[0])u;++u)i.point((n=e[u])[0],n[1]);return void i.lineEnd()}var a=new Pn(n,e,null,!0),f=new Pn(n,null,a,!1);a.o=f,s.push(a),o.push(f),a=new Pn(r,e,null,!1),f=new Pn(r,null,a,!0),a.o=f,s.push(a),o.push(f)}}),o.sort(t),Dn(s),Dn(o),s.length){for(var u=0,a=n,f=o.length;f>u;++u)o[u].e=a=!a;for(var l,c,h=s[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;l=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(var u=0,f=l.length;f>u;++u)i.point((c=l[u])[0],c[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(d){l=p.p.z;for(var u=l.length-1;u>=0;--u)i.point((c=l[u])[0],c[1])}else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,l=p.z,d=!d}while(!p.v);i.lineEnd()}}}function Dn(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r0){for(E||(s.polygonStart(),E=!0),s.lineStart();++o1&&2&t&&n.push(n.pop().concat(n.shift())),p.push(n.filter(Bn))}var p,d,v,m=t(s),g=i.invert(r[0],r[1]),y={point:o,lineStart:a,lineEnd:f,polygonStart:function(){y.point=l,y.lineStart=c,y.lineEnd=h,p=[],d=[]},polygonEnd:function(){y.point=o,y.lineStart=a,y.lineEnd=f,p=fu.merge(p);var e=Un(g,d);p.length?(E||(s.polygonStart(),E=!0),_n(p,Fn,e,n,s)):e&&(E||(s.polygonStart(),E=!0),s.lineStart(),n(null,null,1,s),s.lineEnd()),E&&(s.polygonEnd(),E=!1),p=d=null},sphere:function(){s.polygonStart(),s.lineStart(),n(null,null,1,s),s.lineEnd(),s.polygonEnd()}},b=jn(),w=t(b),E=!1;return y}}function Bn(e){return e.length>1}function jn(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:S,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Fn(e,t){return((e=e.x)[0]<0?e[1]-zu-Fu:zu-e[1])-((t=t.x)[0]<0?t[1]-zu-Fu:zu-t[1])}function In(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(s,o){var u=s>0?qu:-qu,a=Eu(s-n);Eu(a-qu)0?zu:-zu),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(u,r),e.point(s,r),t=0):i!==u&&a>=qu&&(Eu(n-i)Fu?Math.atan((Math.sin(t)*(s=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*s*o)):(t+r)/2}function Rn(e,t,n,r){var i;if(null==e)i=n*zu,r.point(-qu,i),r.point(0,i),r.point(qu,i),r.point(qu,0),r.point(qu,-i),r.point(0,-i),r.point(-qu,-i),r.point(-qu,0),r.point(-qu,i);else if(Eu(e[0]-t[0])>Fu){var s=e[0]u;++u){var f=t[u],l=f.length;if(l)for(var c=f[0],h=c[0],p=c[1]/2+qu/4,d=Math.sin(p),v=Math.cos(p),m=1;;){m===l&&(m=0),e=f[m];var g=e[0],y=e[1]/2+qu/4,b=Math.sin(y),w=Math.cos(y),E=g-h,S=E>=0?1:-1,x=S*E,T=x>qu,N=d*b;if(Ca.add(Math.atan2(N*S*Math.sin(x),v*w+N*Math.cos(x))),s+=T?E+S*Ru:E,T^h>=n^g>=n){var C=bn(gn(c),gn(e));Sn(C);var k=bn(i,C);Sn(k);var L=(T^E>=0?-1:1)*nt(k[2]);(r>L||r===L&&(C[0]||C[1]))&&(o+=T^E>=0?1:-1)}if(!(m++))break;h=g,d=b,v=w,c=e}}return(-Fu>s||Fu>s&&-Fu>Ca)^1&o}function zn(e){function t(e,t){return Math.cos(e)*Math.cos(t)>s}function n(e){var n,s,a,f,l;return{lineStart:function(){f=a=!1,l=1},point:function(c,h){var p,d=[c,h],v=t(c,h),m=o?v?0:i(c,h):v?i(c+(0>c?qu:-qu),h):0;if(!n&&(f=a=v)&&e.lineStart(),v!==a&&(p=r(n,d),(Tn(n,p)||Tn(d,p))&&(d[0]+=Fu,d[1]+=Fu,v=t(d[0],d[1]))),v!==a)l=0,v?(e.lineStart(),p=r(d,n),e.point(p[0],p[1])):(p=r(n,d),e.point(p[0],p[1]),e.lineEnd()),n=p;else if(u&&n&&o^v){var g;m&s||!(g=r(d,n,!0))||(l=0,o?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1])))}!v||n&&Tn(n,d)||e.point(d[0],d[1]),n=d,a=v,s=m},lineEnd:function(){a&&e.lineEnd(),n=null},clean:function(){return l|(f&&a)<<1}}}function r(e,t,n){var r=gn(e),i=gn(t),o=[1,0,0],u=bn(r,i),a=yn(u,u),f=u[0],l=a-f*f;if(!l)return!n&&e;var c=s*a/l,h=-s*f/l,p=bn(o,u),d=En(o,c),v=En(u,h);wn(d,v);var m=p,g=yn(d,m),y=yn(m,m),b=g*g-y*(yn(d,d)-1);if(!(0>b)){var w=Math.sqrt(b),E=En(m,(-g-w)/y);if(wn(E,d),E=xn(E),!n)return E;var S,x=e[0],T=t[0],N=e[1],C=t[1];x>T&&(S=x,x=T,T=S);var k=T-x,L=Eu(k-qu)k;if(!L&&N>C&&(S=N,N=C,C=S),A?L?N+C>0^E[1]<(Eu(E[0]-x)qu^(x<=E[0]&&E[0]<=T)){var O=En(m,(-g+w)/y);return wn(O,d),[E,xn(O)]}}}function i(t,n){var r=o?e:qu-e,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var s=Math.cos(e),o=s>0,u=Eu(s)>Fu,a=mr(e,6*Wu);return Hn(t,n,a,o?[0,-e]:[-qu,e-qu])}function Wn(e,t,n,r){return function(i){var s,o=i.a,u=i.b,a=o.x,f=o.y,l=u.x,c=u.y,h=0,p=1,d=l-a,v=c-f;if(s=e-a,d||!(s>0)){if(s/=d,0>d){if(h>s)return;p>s&&(p=s)}else if(d>0){if(s>p)return;s>h&&(h=s)}if(s=n-a,d||!(0>s)){if(s/=d,0>d){if(s>p)return;s>h&&(h=s)}else if(d>0){if(h>s)return;p>s&&(p=s)}if(s=t-f,v||!(s>0)){if(s/=v,0>v){if(h>s)return;p>s&&(p=s)}else if(v>0){if(s>p)return;s>h&&(h=s)}if(s=r-f,v||!(0>s)){if(s/=v,0>v){if(s>p)return;s>h&&(h=s)}else if(v>0){if(h>s)return;p>s&&(p=s)}return h>0&&(i.a={x:a+h*d,y:f+h*v}),1>p&&(i.b={x:a+p*d,y:f+p*v}),i}}}}}}function Xn(e,t,n,r){function i(r,i){return Eu(r[0]-e)0?0:3:Eu(r[0]-n)0?2:1:Eu(r[1]-t)0?1:0:i>0?3:2}function s(e,t){return o(e.x,t.x)}function o(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(u){function a(e){for(var t=0,n=m.length,r=e[1],i=0;n>i;++i)for(var s,o=1,u=m[i],a=u.length,f=u[0];a>o;++o)s=u[o],f[1]<=r?s[1]>r&&et(f,s,e)>0&&++t:s[1]<=r&&et(f,s,e)<0&&--t,f=s;return 0!==t}function f(s,u,a,f){var l=0,c=0;if(null==s||(l=i(s,a))!==(c=i(u,a))||o(s,u)<0^a>0){do f.point(0===l||3===l?e:n,l>1?r:t);while((l=(l+a+4)%4)!==c)}else f.point(u[0],u[1])}function l(i,s){return i>=e&&n>=i&&s>=t&&r>=s}function c(e,t){l(e,t)&&u.point(e,t)}function h(){A.point=d,m&&m.push(g=[]),T=!0,x=!1,E=S=NaN}function p(){v&&(d(y,b),w&&x&&k.rejoin(),v.push(k.buffer())),A.point=c,x&&u.lineEnd()}function d(e,t){e=Math.max(-Ra,Math.min(Ra,e)),t=Math.max(-Ra,Math.min(Ra,t));var n=l(e,t);if(m&&g.push([e,t]),T)y=e,b=t,w=n,T=!1,n&&(u.lineStart(),u.point(e,t));else if(n&&x)u.point(e,t);else{var r={a:{x:E,y:S},b:{x:e,y:t}};L(r)?(x||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),N=!1):n&&(u.lineStart(),u.point(e,t),N=!1)}E=e,S=t,x=n}var v,m,g,y,b,w,E,S,x,T,N,C=u,k=jn(),L=Wn(e,t,n,r),A={point:c,lineStart:h,lineEnd:p,polygonStart:function(){u=k,v=[],m=[],N=!0},polygonEnd:function(){u=C,v=fu.merge(v);var t=a([e,r]),n=N&&t,i=v.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),f(null,null,1,u),u.lineEnd()),i&&_n(v,s,t,f,u),u.polygonEnd()),v=m=g=null}};return A}}function Vn(e){var t=0,n=qu/3,r=ar(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*qu/180,n=e[1]*qu/180):[t/qu*180,n/qu*180]},i}function $n(e,t){function n(e,t){var n=Math.sqrt(s-2*i*Math.sin(t))/i;return[n*Math.sin(e*=i),o-n*Math.cos(e)]}var r=Math.sin(e),i=(r+Math.sin(t))/2,s=1+r*(2*i-r),o=Math.sqrt(s)/i;return n.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/i,nt((s-(e*e+n*n)*i*i)/(2*i))]},n}function Jn(){function e(e,t){za+=i*e-r*t,r=e,i=t}var t,n,r,i;Ja.point=function(s,o){Ja.point=e,t=r=s,n=i=o},Ja.lineEnd=function(){e(t,n)}}function Kn(e,t){Wa>e&&(Wa=e),e>Va&&(Va=e),Xa>t&&(Xa=t),t>$a&&($a=t)}function Qn(){function e(e,t){o.push("M",e,",",t,s)}function t(e,t){o.push("M",e,",",t),u.point=n}function n(e,t){o.push("L",e,",",t)}function r(){u.point=e}function i(){o.push("Z")}var s=Gn(4.5),o=[],u={point:e,lineStart:function(){u.point=t},lineEnd:r,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=r,u.point=e},pointRadius:function(e){return s=Gn(e),u},result:function(){if(o.length){var e=o.join("");return o=[],e}}};return u}function Gn(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+ -2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Yn(e,t){Oa+=e,Ma+=t,++_a}function Zn(){function e(e,r){var i=e-t,s=r-n,o=Math.sqrt(i*i+s*s);Da+=o*(t+e)/2,Pa+=o*(n+r)/2,Ha+=o,Yn(t=e,n=r)}var t,n;Qa.point=function(r,i){Qa.point=e,Yn(t=r,n=i)}}function er(){Qa.point=Yn}function tr(){function e(e,t){var n=e-r,s=t-i,o=Math.sqrt(n*n+s*s);Da+=o*(r+e)/2,Pa+=o*(i+t)/2,Ha+=o,o=i*e-r*t,Ba+=o*(r+e),ja+=o*(i+t),Fa+=3*o,Yn(r=e,i=t)}var t,n,r,i;Qa.point=function(s,o){Qa.point=e,Yn(t=r=s,n=i=o)},Qa.lineEnd=function(){e(t,n)}}function nr(e){function t(t,n){e.moveTo(t+o,n),e.arc(t,n,o,0,Ru)}function n(t,n){e.moveTo(t,n),u.point=r}function r(t,n){e.lineTo(t,n)}function i(){u.point=t}function s(){e.closePath()}var o=4.5,u={point:t,lineStart:function(){u.point=n},lineEnd:i,polygonStart:function(){u.lineEnd=s},polygonEnd:function(){u.lineEnd=i,u.point=t},pointRadius:function(e){return o=e,u},result:S};return u}function rr(e){function t(e){return(u?r:n)(e)}function n(t){return or(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){b=NaN,T.point=s,t.lineStart()}function s(n,r){var s=gn([n,r]),o=e(n,r);i(b,w,y,E,S,x,b=o[0],w=o[1],y=n,E=s[0],S=s[1],x=s[2],u,t),t.point(b,w)}function o(){T.point=n,t.lineEnd()}function a(){r(),T.point=f,T.lineEnd=l}function f(e,t){s(c=e,h=t),p=b,d=w,v=E,m=S,g=x,T.point=s}function l(){i(b,w,y,E,S,x,p,d,c,v,m,g,u,t),T.lineEnd=o,o()}var c,h,p,d,v,m,g,y,b,w,E,S,x,T={point:n,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),T.lineStart=a},polygonEnd:function(){t.polygonEnd(),T.lineStart=r}};return T}function i(t,n,r,u,a,f,l,c,h,p,d,v,m,g){var y=l-t,b=c-n,w=y*y+b*b;if(w>4*s&&m--){var E=u+p,S=a+d,x=f+v,T=Math.sqrt(E*E+S*S+x*x),N=Math.asin(x/=T),C=Eu(Eu(x)-1)s||Eu((y*O+b*M)/w-.5)>.3||o>u*p+a*d+f*v)&&(i(t,n,r,u,a,f,L,A,C,E/=T,S/=T,x,m,g),g.point(L,A),i(L,A,C,E,S,x,l,c,h,p,d,v,m,g))}}var s=.5,o=Math.cos(30*Wu),u=16;return t.precision=function(e){return arguments.length?(u=(s=e*e)>0&&16,t):Math.sqrt(s)},t}function ir(e){var t=rr(function(t,n){return e([t*Xu,n*Xu])});return function(e){return fr(t(e))}}function sr(e){this.stream=e}function or(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function ur(e){return ar(function(){return e})()}function ar(e){function t(e){return e=u(e[0]*Wu,e[1]*Wu),[e[0]*h+a,f-e[1]*h]}function n(e){return e=u.invert((e[0]-a)/h,(f-e[1])/h),e&&[e[0]*Xu,e[1]*Xu]}function r(){u=On(o=hr(g,y,w),s);var e=s(v,m);return a=p-e[0]*h,f=d+e[1]*h,i()}function i(){return l&&(l.valid=!1,l=null),t}var s,o,u,a,f,l,c=rr(function(e,t){return e=s(e,t),[e[0]*h+a,f-e[1]*h]}),h=150,p=480,d=250,v=0,m=0,g=0,y=0,w=0,E=qa,S=b,x=null,T=null;return t.stream=function(e){return l&&(l.valid=!1),l=fr(E(o,c(S(e)))),l.valid=!0,l},t.clipAngle=function(e){return arguments.length?(E=null==e?(x=e,qa):zn((x=+e)*Wu),i()):x},t.clipExtent=function(e){return arguments.length?(T=e,S=e?Xn(e[0][0],e[0][1],e[1][0],e[1][1]):b,i()):T},t.scale=function(e){return arguments.length?(h=+e,r()):h},t.translate=function(e){return arguments.length?(p=+e[0],d=+e[1],r()):[p,d]},t.center=function(e){return arguments.length?(v=e[0]%360*Wu,m=e[1]%360*Wu,r()):[v*Xu,m*Xu]},t.rotate=function(e){return arguments.length?(g=e[0]%360*Wu,y=e[1]%360*Wu,w=e.length>2?e[2]%360*Wu:0,r()):[g*Xu,y*Xu,w*Xu]},fu.rebind(t,c,"precision"),function(){return s=e.apply(this,arguments),t.invert=s.invert&&n,r()}}function fr(e){return or(e,function(t,n){e.point(t*Wu,n*Wu)})}function lr(e,t){return[e,t]}function cr(e,t){return[e>qu?e-Ru:-qu>e?e+Ru:e,t]}function hr(e,t,n){return e?t||n?On(dr(e),vr(t,n)):dr(e):t||n?vr(t,n):cr}function pr(e){return function(t,n){return t+=e,[t>qu?t-Ru:-qu>t?t+Ru:t,n]}}function dr(e){var t=pr(e);return t.invert=pr(-e),t}function vr(e,t){function n(e,t){var n=Math.cos(t),u=Math.cos(e)*n,a=Math.sin(e)*n,f=Math.sin(t),l=f*r+u*i;return[Math.atan2(a*s-l*o,u*r-f*i),nt(l*s+a*o)]}var r=Math.cos(e),i=Math.sin(e),s=Math.cos(t),o=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),u=Math.cos(e)*n,a=Math.sin(e)*n,f=Math.sin(t),l=f*s-a*o;return[Math.atan2(a*s+f*o,u*r+l*i),nt(l*r-u*i)]},n}function mr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,s,o,u){var a=o*t;null!=i?(i=gr(n,i),s=gr(n,s),(o>0?s>i:i>s)&&(i+=o*Ru)):(i=e+o*Ru,s=e-.5*a);for(var f,l=i;o>0?l>s:s>l;l-=a)u.point((f=xn([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],f[1])}}function gr(e,t){var n=gn(t);n[0]-=e,Sn(n);var r=tt(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Fu)%(2*Math.PI)}function yr(e,t,n){var r=fu.range(e,t-Fu,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function br(e,t,n){var r=fu.range(e,t-Fu,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function wr(e){return e.source}function Er(e){return e.target}function Sr(e,t,n,r){var i=Math.cos(t),s=Math.sin(t),o=Math.cos(r),u=Math.sin(r),a=i*Math.cos(e),f=i*Math.sin(e),l=o*Math.cos(n),c=o*Math.sin(n),h=2*Math.asin(Math.sqrt(ot(r-t)+i*o*ot(n-e))),p=1/Math.sin(h),d=h?function(e){var t=Math.sin(e*=h)*p,n=Math.sin(h-e)*p,r=n*a+t*l,i=n*f+t*c,o=n*s+t*u;return[Math.atan2(i,r)*Xu,Math.atan2(o,Math.sqrt(r*r+i*i))*Xu]}:function(){return[e*Xu,t*Xu]};return d.distance=h,d}function xr(){function e(e,i){var s=Math.sin(i*=Wu),o=Math.cos(i),u=Eu((e*=Wu)-t),a=Math.cos(u);Ga+=Math.atan2(Math.sqrt((u=o*Math.sin(u))*u+(u=r*s-n*o*a)*u),n*s+r*o*a),t=e,n=s,r=o}var t,n,r;Ya.point=function(i,s){t=i*Wu,n=Math.sin(s*=Wu),r=Math.cos(s),Ya.point=e},Ya.lineEnd=function(){Ya.point=Ya.lineEnd=S}}function Tr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),s=e(r*i);return[s*i*Math.sin(t),s*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),s=Math.sin(i),o=Math.cos(i);return[Math.atan2(e*s,r*o),Math.asin(r&&n*s/r)]},n}function Nr(e,t){function n(e,t){o>0?-zu+Fu>t&&(t=-zu+Fu):t>zu-Fu&&(t=zu-Fu);var n=o/Math.pow(i(t),s);return[n*Math.sin(s*e),o-n*Math.cos(s*e)]}var r=Math.cos(e),i=function(e){return Math.tan(qu/4+e/2)},s=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(i(t)/i(e)),o=r*Math.pow(i(e),s)/s;return s?(n.invert=function(e,t){var n=o-t,r=Z(s)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/s,2*Math.atan(Math.pow(o/r,1/s))-zu]},n):kr}function Cr(e,t){function n(e,t){var n=s-t;return[n*Math.sin(i*e),s-n*Math.cos(i*e)]}var r=Math.cos(e),i=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),s=r/i+e;return Eu(i)i;i++){for(;r>1&&et(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Dr(e,t){return e[0]-t[0]||e[1]-t[1]}function Pr(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Hr(e,t,n,r){var i=e[0],s=n[0],o=t[0]-i,u=r[0]-s,a=e[1],f=n[1],l=t[1]-a,c=r[1]-f,h=(u*(a-f)-c*(i-s))/(c*o-u*l);return[i+h*o,a+h*l]}function Br(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function jr(){ii(this),this.edge=this.site=this.circle=null}function Fr(e){var t=cf.pop()||new jr;return t.site=e,t}function Ir(e){Kr(e),af.remove(e),cf.push(e),ii(e)}function qr(e){var t=e.circle,n=t.x,r=t.cy,i={x:n,y:r},s=e.P,o=e.N,u=[e];Ir(e);for(var a=s;a.circle&&Eu(n-a.circle.x)l;++l)f=u[l],a=u[l-1],ti(f.edge,a.site,f.site,i);a=u[0],f=u[c-1],f.edge=Zr(a.site,f.site,null,i),Jr(a),Jr(f)}function Rr(e){for(var t,n,r,i,s=e.x,o=e.y,u=af._;u;)if(r=Ur(u,o)-s,r>Fu)u=u.L;else{if(i=s-zr(u,o),!(i>Fu)){r>-Fu?(t=u.P,n=u):i>-Fu?(t=u,n=u.N):t=n=u;break}if(!u.R){t=u;break}u=u.R}var a=Fr(e);if(af.insert(t,a),t||n){if(t===n)return Kr(t),n=Fr(t.site),af.insert(a,n),a.edge=n.edge=Zr(t.site,a.site),Jr(t),void Jr(n);if(!n)return void (a.edge=Zr(t.site,a.site));Kr(t),Kr(n);var f=t.site,l=f.x,c=f.y,h=e.x-l,p=e.y-c,d=n.site,v=d.x-l,m=d.y-c,g=2*(h*m-p*v),y=h*h+p*p,b=v*v+m*m,w={x:(m*y-p*b)/g+l,y:(h*b-v*y)/g+c};ti(n.edge,f,d,w),a.edge=Zr(f,e,null,w),n.edge=Zr(e,d,null,w),Jr(t),Jr(n)}}function Ur(e,t){var n=e.site,r=n.x,i=n.y,s=i-t;if(!s)return r;var o=e.P;if(!o)return-1/0;n=o.site;var u=n.x,a=n.y,f=a-t;if(!f)return u;var l=u-r,c=1/s-1/f,h=l/f;return c?(-h+Math.sqrt(h*h-2*c*(l*l/(-2*f)-a+f/2+i-s/2)))/c+r:(r+u)/2}function zr(e,t){var n=e.N;if(n)return Ur(n,t);var r=e.site;return r.y===t?r.x:1/0}function Wr(e){this.site=e,this.edges=[]}function Xr(e){for(var t,n,r,i,s,o,u,a,f,l,c=e[0][0],h=e[1][0],p=e[0][1],d=e[1][1],v=uf,m=v.length;m--;)if(s=v[m],s&&s.prepare())for(u=s.edges,a=u.length,o=0;a>o;)l=u[o].end(),r=l.x,i=l.y,f=u[++o%a].start(),t=f.x,n=f.y,(Eu(r-t)>Fu||Eu(i-n)>Fu)&&(u.splice(o,0,new ni(ei(s.site,l,Eu(r-c)Fu?{x:c,y:Eu(t-c)Fu?{x:Eu(n-d)Fu?{x:h,y:Eu(t-h)Fu?{x:Eu(n-p)=-Iu)){var p=a*a+f*f,d=l*l+c*c,v=(c*p-f*d)/h,m=(a*d-l*p)/h,c=m+u,g=hf.pop()||new $r;g.arc=e,g.site=i,g.x=v+o,g.y=c+Math.sqrt(v*v+m*m),g.cy=c,e.circle=g;for(var y=null,b=lf._;b;)if(g.ym||m>=u)return;if(h>d){if(s){if(s.y>=f)return}else s={x:m,y:a};n={x:m,y:f}}else{if(s){if(s.yr||r>1)if(h>d){if(s){if(s.y>=f)return}else s={x:(a-i)/r,y:a};n={x:(f-i)/r,y:f}}else{if(s){if(s.yp){if(s){if(s.x>=u)return}else s={x:o,y:r*o+i};n={x:u,y:r*u+i}}else{if(s){if(s.xs||c>o||r>h||i>p)){if(d=e.point){var d,v=t-e.x,m=n-e.y,g=v*v+m*m;if(a>g){var y=Math.sqrt(a=g);r=t-y,i=n-y,s=t+y,o=n+y,u=d}}for(var b=e.nodes,w=.5*(l+h),E=.5*(c+p),S=t>=w,x=n>=E,T=x<<1|S,N=T+4;N>T;++T)if(e=b[3&T])switch(3&T){case 0:f(e,l,c,w,E);break;case 1:f(e,w,c,h,E);break;case 2:f(e,l,E,w,p);break;case 3:f(e,w,E,h,p)}}}(e,r,i,s,o),u}function mi(e,t){e=fu.rgb(e),t=fu.rgb(t);var n=e.r,r=e.g,i=e.b,s=t.r-n,o=t.g-r,u=t.b-i;return function(e){return"#"+Et(Math.round(n+s*e))+Et(Math.round(r+o*e))+Et(Math.round(i+u*e))}}function gi(e,t){var n,r={},i={};for(n in e)n in t?r[n]=wi(e[n],t[n]):i[n]=e[n];for(n in t)n in e||(i[n]=t[n]);return function(e){for(n in r)i[n]=r[n](e);return i}}function yi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function bi(e,t){var n,r,i,s=df.lastIndex=vf.lastIndex=0,o=-1,u=[],a=[];for(e+="",t+="";(n=df.exec(e))&&(r=vf.exec(t));)(i=r.index)>s&&(i=t.slice(s,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,a.push({i:o,x:yi(n,r)})),s=vf.lastIndex;return sr;++r)u[(n=a[r]).i]=n.x(e);return u.join("")})}function wi(e,t){for(var n,r=fu.interpolators.length;--r>=0&&!(n=fu.interpolators[r](e,t)););return n}function Ei(e,t){var n,r=[],i=[],s=e.length,o=t.length,u=Math.min(e.length,t.length);for(n=0;u>n;++n)r.push(wi(e[n],t[n]));for(;s>n;++n)i[n]=e[n];for(;o>n;++n)i[n]=t[n];return function(e){for(n=0;u>n;++n)i[n]=r[n](e);return i}}function Si(e){return function(t){return 0>=t?0:t>=1?1:e(t)}}function xi(e){return function(t){return 1-e(1-t)}}function Ti(e){return function(t){return.5*(.5>t?e(2*t):2-e(2-2*t))}}function Ni(e){return e*e}function Ci(e){return e*e*e}function ki(e){if(0>=e)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(.5>e?n:3*(e-t)+n-.75)}function Li(e){return function(t){return Math.pow(t,e)}}function Ai(e){return 1-Math.cos(e*zu)}function Oi(e){return Math.pow(2,10*(e-1))}function Mi(e){return 1-Math.sqrt(1-e*e)}function _i(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Ru*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ru/t)}}function Di(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Pi(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Hi(e,t){e=fu.hcl(e),t=fu.hcl(t);var n=e.h,r=e.c,i=e.l,s=t.h-n,o=t.c-r,u=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(s)?(s=0,n=isNaN(n)?t.h:n):s>180?s-=360:-180>s&&(s+=360),function(e){return ct(n+s*e,r+o*e,i+u*e)+""}}function Bi(e,t){e=fu.hsl(e),t=fu.hsl(t);var n=e.h,r=e.s,i=e.l,s=t.h-n,o=t.s-r,u=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(s)?(s=0,n=isNaN(n)?t.h:n):s>180?s-=360:-180>s&&(s+=360),function(e){return ft(n+s*e,r+o*e,i+u*e)+""}}function ji(e,t){e=fu.lab(e),t=fu.lab(t);var n=e.l,r=e.a,i=e.b,s=t.l-n,o=t.a-r,u=t.b-i;return function(e){return pt(n+s*e,r+o*e,i+u*e)+""}}function Fi(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Ii(e){var t=[e.a,e.b],n=[e.c,e.d],r=Ri(t),i=qi(t,n),s=Ri(Ui(n,t,-i))||0;t[0]*n[1]180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(zi(n)+"rotate(",null,")")-2,x:yi(e,t)})):t&&n.push(zi(n)+"rotate("+t+")")}function Vi(e,t,n,r){e!==t?r.push({i:n.push(zi(n)+"skewX(",null,")")-2,x:yi(e,t)}):t&&n.push(zi(n)+"skewX("+t+")")}function $i(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(zi(n)+"scale(",null,",",null,")");r.push({i:i-4,x:yi(e[0],t[0])},{i:i-2,x:yi(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(zi(n)+"scale("+t+")")}function Ji(e,t){var n=[],r=[];return e=fu.transform(e),t=fu.transform(t),Wi(e.translate,t.translate,n,r),Xi(e.rotate,t.rotate,n,r),Vi(e.skew,t.skew,n,r),$i(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,s=r.length;++i=0;)n.push(i[r])}function us(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(s=e.children)&&(i=s.length))for(var i,s,o=-1;++on;++n)(t=e[n][1])>i&&(r=n,i=t);return r}function ys(e){return e.reduce(bs,0)}function bs(e,t){return e+t[1]}function ws(e,t){return Es(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Es(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,s=[];++n<=t;)s[n]=i*n+r;return s}function Ss(e){return[fu.min(e),fu.max(e)]}function xs(e,t){return e.value-t.value}function Ts(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Ns(e,t){e._pack_next=t,t._pack_prev=e}function Cs(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function ks(e){function t(e){l=Math.min(e.x-e.r,l),c=Math.max(e.x+e.r,c),h=Math.min(e.y-e.r,h),p=Math.max(e.y+e.r,p)}if((n=e.children)&&(f=n.length)){var n,r,i,s,o,u,a,f,l=1/0,c=-1/0,h=1/0,p=-1/0;if(n.forEach(Ls),r=n[0],r.x=-r.r,r.y=0,t(r),f>1&&(i=n[1],i.x=i.r,i.y=0,t(i),f>2))for(s=n[2],Ms(r,i,s),t(s),Ts(r,s),r._pack_prev=s,Ts(s,i),i=r._pack_next,o=3;f>o;o++){Ms(r,i,s=n[o]);var d=0,v=1,m=1;for(u=i._pack_next;u!==i;u=u._pack_next,v++)if(Cs(u,s)){d=1;break}if(1==d)for(a=r._pack_prev;a!==u._pack_prev&&!Cs(a,s);a=a._pack_prev,m++);d?(m>v||v==m&&i.ro;o++)s=n[o],s.x-=g,s.y-=y,b=Math.max(b,s.r+Math.sqrt(s.x*s.x+s.y*s.y));e.r=b,n.forEach(As)}}function Ls(e){e._pack_next=e._pack_prev=e}function As(e){delete e._pack_next,delete e._pack_prev}function Os(e,t,n,r){var i=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,i)for(var s=-1,o=i.length;++s=0;)t=i[s],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function js(e,t,n){return e.a.parent===t.parent?e.a:n}function Fs(e){return 1+fu.max(e,function(e){return e.y})}function Is(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function qs(e){var t=e.children;return t&&t.length?qs(t[0]):e}function Rs(e){var t,n=e.children;return n&&(t=n.length)?Rs(n[t-1]):e}function Us(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function zs(e,t){var n=e.x+t[3],r=e.y+t[0],i=e.dx-t[1]-t[3],s=e.dy-t[0]-t[2];return 0>i&&(n+=i/2,i=0),0>s&&(r+=s/2,s=0),{x:n,y:r,dx:i,dy:s}}function Ws(e){var t=e[0],n=e[e.length-1];return n>t?[t,n]:[n,t]}function Xs(e){return e.rangeExtent?e.rangeExtent():Ws(e.range())}function Vs(e,t,n,r){var i=n(e[0],e[1]),s=r(t[0],t[1]);return function(e){return s(i(e))}}function $s(e,t){var n,r=0,i=e.length-1,s=e[r],o=e[i];return s>o&&(n=r,r=i,i=n,n=s,s=o,o=n),e[r]=t.floor(s),e[i]=t.ceil(o),e}function Js(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Cf}function Ks(e,t,n,r){var i=[],s=[],o=0,u=Math.min(e.length,t.length)-1;for(e[u]2?Ks:Vs,a=r?Qi:Ki;return o=i(e,t,a,n),u=i(t,e,a,wi),s}function s(e){return o(e)}var o,u;return s.invert=function(e){return u(e)},s.domain=function(t){return arguments.length?(e=t.map(Number),i()):e},s.range=function(e){return arguments.length?(t=e,i()):t},s.rangeRound=function(e){return s.range(e).interpolate(Fi)},s.clamp=function(e){return arguments.length?(r=e,i()):r},s.interpolate=function(e){return arguments.length?(n=e,i()):n},s.ticks=function(t){return eo(e,t)},s.tickFormat=function(t,n){return to(e,t,n)},s.nice=function(t){return Ys(e,t),i()},s.copy=function(){return Qs(e,t,n,r)},i()}function Gs(e,t){return fu.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Ys(e,t){return $s(e,Js(Zs(e,t)[2])),$s(e,Js(Zs(e,t)[2])),e}function Zs(e,t){null==t&&(t=10);var n=Ws(e),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),s=t/r*i;return.15>=s?i*=10:.35>=s?i*=5:.75>=s&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function eo(e,t){return fu.range.apply(fu,Zs(e,t))}function to(e,t,n){var r=Zs(e,t);if(n){var i=pa.exec(n);if(i.shift(),"s"===i[8]){var s=fu.formatPrefix(Math.max(Eu(r[0]),Eu(r[1])));return i[7]||(i[7]="."+no(s.scale(r[2]))),i[8]="f",n=fu.format(i.join("")),function(e){return n(s.scale(e))+s.symbol}}i[7]||(i[7]="."+ro(i[8],r)),n=i.join("")}else n=",."+no(r[2])+"f";return fu.format(n)}function no(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ro(e,t){var n=no(t[2]);return e in kf?Math.abs(n-no(Math.max(Eu(t[0]),Eu(t[1]))))+ +("e"!==e):n-2*("%"===e)}function io(e,t,n,r){function i(e){return(n?Math.log(0>e?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function s(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function o(t){return e(i(t))}return o.invert=function(t){return s(e.invert(t))},o.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(i)),o):r},o.base=function(n){return arguments.length?(t=+n,e.domain(r.map(i)),o):t},o.nice=function(){var t=$s(r.map(i),n?Math:Af);return e.domain(t),r=t.map(s),o},o.ticks=function(){var e=Ws(r),o=[],u=e[0],a=e[1],f=Math.floor(i(u)),l=Math.ceil(i(a)),c=t%1?2:t;if(isFinite(l-f)){if(n){for(;l>f;f++)for(var h=1;c>h;h++)o.push(s(f)*h);o.push(s(f))}else for(o.push(s(f));f++0;h--)o.push(s(f)*h);for(f=0;o[f]a;l--);o=o.slice(f,l)}return o},o.tickFormat=function(e,n){if(!arguments.length)return Lf;arguments.length<2?n=Lf:"function"!=typeof n&&(n=fu.format(n));var r=Math.max(1,t*e/o.ticks().length);return function(e){var o=e/s(Math.round(i(e)));return t-.5>o*t&&(o*=t),r>=o?n(e):""}},o.copy=function(){return io(e.copy(),t,n,r)},Gs(o,e)}function so(e,t,n){function r(t){return e(i(t))}var i=oo(t),s=oo(1/t);return r.invert=function(t){return s(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),r):n},r.ticks=function(e){return eo(n,e)},r.tickFormat=function(e,t){return to(n,e,t)},r.nice=function(e){return r.domain(Ys(n,e))},r.exponent=function(o){return arguments.length?(i=oo(t=o),s=oo(1/t),e.domain(n.map(i)),r):t},r.copy=function(){return so(e.copy(),t,n)},Gs(r,e)}function oo(e){return function(t){return 0>t?-Math.pow(-t,e):Math.pow(t,e)}}function uo(e,t){function n(n){return s[((i.get(n)||("range"===t.t?i.set(n,e.push(n)):NaN))-1)%s.length]}function r(t,n){return fu.range(e.length).map(function(e){return t+n*e})}var i,s,o;return n.domain=function(r){if(!arguments.length)return e;e=[],i=new l;for(var s,o=-1,u=r.length;++on?[NaN,NaN]:[n>0?u[n-1]:e[0],nt?NaN:t/s+e,[t,t+1/s]},r.copy=function(){return fo(e,t,n)},i()}function lo(e,t){function n(n){return n>=n?t[fu.bisect(e,n)]:void 0}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return lo(e,t)},n}function co(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return eo(e,t)},t.tickFormat=function(t,n){return to(e,t,n)},t.copy=function(){return co(e)},t}function ho(){return 0}function po(e){return e.innerRadius}function vo(e){return e.outerRadius}function mo(e){return e.startAngle}function go(e){return e.endAngle}function yo(e){return e&&e.padAngle}function bo(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function wo(e,t,n,r,i){var s=e[0]-t[0],o=e[1]-t[1],u=(i?r:-r)/Math.sqrt(s*s+o*o),a=u*o,f=-u*s,l=e[0]+a,c=e[1]+f,h=t[0]+a,p=t[1]+f,d=(l+h)/2,v=(c+p)/2,m=h-l,g=p-c,y=m*m+g*g,b=n-r,w=l*p-h*c,E=(0>g?-1:1)*Math.sqrt(Math.max(0,b*b*y-w*w)),S=(w*g-m*E)/y,x=(-w*m-g*E)/y,T=(w*g+m*E)/y,N=(-w*m+g*E)/y,C=S-d,k=x-v,L=T-d,A=N-v;return C*C+k*k>L*L+A*A&&(S=T,x=N),[[S-a,x-f],[S*n/b,x*n/b]]}function Eo(e){function t(t){function o(){f.push("M",s(e(l),u))}for(var a,f=[],l=[],c=-1,h=t.length,p=kt(n),d=kt(r);++c1?e.join("L"):e+"Z"}function xo(e){return e.join("L")+"Z"}function To(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1&&i.push("H",r[0]),i.join("")}function No(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1){u=t[1],s=e[a],a++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(s[0]-u[0])+","+(s[1]-u[1])+","+s[0]+","+s[1];for(var f=2;f9&&(i=3*t/Math.sqrt(i),o[u]=i*n,o[u+1]=i*r));for(u=-1;++u<=a;)i=(e[Math.min(a,u+1)][0]-e[Math.max(0,u-1)][0])/(6*(1+o[u]*o[u])),s.push([i||0,o[u]*i||0]);return s}function Ro(e){return e.length<3?So(e):e[0]+Oo(e,qo(e))}function Uo(e){for(var t,n,r,i=-1,s=e.length;++i=t?o(e-t):void (f.c=o)}function o(n){var i=d.active,s=d[i];s&&(s.timer.c=null,s.timer.t=NaN,--d.count,delete d[i],s.event&&s.event.interrupt.call(e,e.__data__,s.index));for(var o in d)if(r>+o){var l=d[o];l.timer.c=null,l.timer.t=NaN,--d.count,delete d[o]}f.c=u,_t(function(){return f.c&&u(n||1)&&(f.c=null,f.t=NaN),1},0,a),d.active=r,v.event&&v.event.start.call(e,e.__data__,t),p=[],v.tween.forEach(function(n,r){(r=r.call(e,e.__data__,t))&&p.push(r)}),h=v.ease,c=v.duration}function u(i){for(var s=i/c,o=h(s),u=p.length;u>0;)p[--u].call(e,o);return s>=1?(v.event&&v.event.end.call(e,e.__data__,t),--d.count?delete d[r]:delete e[n],1):void 0}var a,f,c,h,p,d=e[n]||(e[n]={active:0,count:0}),v=d[r];v||(a=i.time,f=_t(s,0,a),v=d[r]={tween:new l,time:a,timer:f,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++d.count)}function nu(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function ru(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function iu(e){return e.toISOString()}function su(e,t,n){function r(t){return e(t)}function i(e,n){var r=e[1]-e[0],i=r/n,s=fu.bisect(el,i);return s==el.length?[t.year,Zs(e.map(function(e){return e/31536e6}),n)[2]]:s?t[i/el[s-1]1?{floor:function(t){for(;n(t=e.floor(t));)t=ou(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=ou(+t+1);return t}}:e))},r.ticks=function(e,t){var n=Ws(r.domain()),s=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return s&&(e=s[0],t=s[1]),e.range(n[0],ou(+n[1]+1),1>t?1:t)},r.tickFormat=function(){return n},r.copy=function(){return su(e.copy(),t,n)},Gs(r,e)}function ou(e){return new Date(e)}function uu(e){return JSON.parse(e.responseText)}function au(e){var t=hu.createRange();return t.selectNode(hu.body),t.createContextualFragment(e.responseText)}var fu={version:"3.5.17"},lu=[].slice,cu=function(e){return lu.call(e)},hu=this.document;if(hu)try{cu(hu.documentElement.childNodes)[0].nodeType}catch(pu){cu=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+(new Date)}),hu)try{hu.createElement("DIV").style.setProperty("opacity",0,"")}catch(du){var vu=this.Element.prototype,mu=vu.setAttribute,gu=vu.setAttributeNS,yu=this.CSSStyleDeclaration.prototype,bu=yu.setProperty;vu.setAttribute=function(e,t){mu.call(this,e,t+"")},vu.setAttributeNS=function(e,t,n){gu.call(this,e,t,n+"")},yu.setProperty=function(e,t,n){bu.call(this,e,t+"",n)}}fu.ascending=r,fu.descending=function(e,t){return e>t?-1:t>e?1:t>=e?0:NaN},fu.min=function(e,t){var n,r,i=-1,s=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},fu.max=function(e,t){var n,r,i=-1,s=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},fu.extent=function(e,t){var n,r,i,s=-1,o=e.length;if(1===arguments.length){for(;++s=r){n=i=r;break}for(;++sr&&(n=r),r>i&&(i=r))}else{for(;++s=r){n=i=r;break}for(;++sr&&(n=r),r>i&&(i=r))}return[n,i]},fu.sum=function(e,t){var n,r=0,i=e.length,o=-1;if(1===arguments.length)for(;++o1?a/(l-1):void 0},fu.deviation=function(){var e=fu.variance.apply(this,arguments);return e?Math.sqrt(e):e};var wu=o(r);fu.bisectLeft=wu.left,fu.bisect=fu.bisectRight=wu.right,fu.bisector=function(e){return o(1===e.length?function(t,n){return r(e(t),n)}:e)},fu.shuffle=function(e,t,n){(s=arguments.length)<3&&(n=e.length,2>s&&(t=0));for(var r,i,s=n-t;s;)i=Math.random()*s--|0,r=e[s+t],e[s+t]=e[i+t],e[i+t]=r;return e},fu.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},fu.pairs=function(e){for(var t,n=0,r=e.length-1,i=e[0],s=new Array(0>r?0:r);r>n;)s[n]=[t=i,i=e[++n]];return s},fu.transpose=function(e){if(!(i=e.length))return[];for(var t=-1,n=fu.min(e,u),r=new Array(n);++t=0;)for(r=e[i],t=r.length;--t>=0;)n[--o]=r[t];return n};var Eu=Math.abs;fu.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,i=[],s=a(Eu(n)),o=-1;if(e*=s,t*=s,n*=s,0>n)for(;(r=e+n*++o)>t;)i.push(r/s);else for(;(r=e+n*++o)=s.length)return r?r.call(i,o):n?o.sort(n):o;for(var a,f,c,h,p=-1,d=o.length,v=s[u++],m=new l;++p=s.length)return e;var r=[],i=o[n++];return e.forEach(function(e,i){r.push({key:e,values:t(i,n)})}),i?r.sort(function(e,t){return i(e.key,t.key)}):r}var n,r,i={},s=[],o=[];return i.map=function(t,n){return e(n,t,0)},i.entries=function(n){return t(e(fu.map,n,0),0)},i.key=function(e){return s.push(e),i},i.sortKeys=function(e){return o[s.length-1]=e,i},i.sortValues=function(e){return n=e,i},i.rollup=function(e){return r=e,i},i},fu.set=function(e){var t=new y;if(e)for(var n=0,r=e.length;r>n;++n)t.add(e[n]);return t},f(y,{has:p,add:function(e){return this._[c(e+="")]=!0,e},remove:d,values:v,size:m,empty:g,forEach:function(e){for(var t in this._)e.call(this,h(t))}}),fu.behavior={},fu.rebind=function(e,t){for(var n,r=1,i=arguments.length;++r=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},fu.event=null,fu.requote=function(e){return e.replace(Nu,"\\$&")};var Nu=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Cu={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},ku=function(e,t){return t.querySelector(e)},Lu=function(e,t){return t.querySelectorAll(e)},Au=function(e,t){var n=e.matches||e[E(e,"matchesSelector")];return(Au=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(ku=function(e,t){return Sizzle(e,t)[0]||null},Lu=Sizzle,Au=Sizzle.matchesSelector),fu.selection=function(){return fu.select(hu.documentElement)};var Ou=fu.selection.prototype=[];Ou.select=function(e){var t,n,r,i,s=[];e=A(e);for(var o=-1,u=this.length;++o=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),_u.hasOwnProperty(n)?{space:_u[n],local:e}:e}},Ou.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=fu.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(M(t,e[t]));return this}return this.each(M(e,t))},Ou.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=P(e)).length,i=-1;if(t=n.classList){for(;++ii){if("string"!=typeof e){2>i&&(n="");for(r in e)this.each(j(r,e[r],n));return this}if(2>i){var s=this.node();return t(s).getComputedStyle(s,null).getPropertyValue(e)}r=""}return this.each(j(e,n,r))},Ou.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(F(t,e[t]));return this}return this.each(F(e,t))},Ou.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},Ou.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},Ou.append=function(e){return e=I(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},Ou.insert=function(e,t){return e=I(e),t=A(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},Ou.remove=function(){return this.each(q)},Ou.data=function(e,t){function n(e,n){var r,i,s,o=e.length,c=n.length,h=Math.min(o,c),p=new Array(c),d=new Array(c),v=new Array(o);if(t){var m,g=new l,y=new Array(o);for(r=-1;++rr;++r)d[r]=R(n[r]);for(;o>r;++r)v[r]=e[r]}d.update=p,d.parentNode=p.parentNode=v.parentNode=e.parentNode,u.push(d),a.push(p),f.push(v)}var r,i,s=-1,o=this.length;if(!arguments.length){for(e=new Array(o=(r=this[0]).length);++ss;s++){i.push(t=[]),t.parentNode=(n=this[s]).parentNode;for(var u=0,a=n.length;a>u;u++)(r=n[u])&&e.call(r,r.__data__,u,s)&&t.push(r)}return L(i)},Ou.order=function(){for(var e=-1,t=this.length;++e=0;)(n=r[i])&&(s&&s!==n.nextSibling&&s.parentNode.insertBefore(n,s),s=n);return this},Ou.sort=function(e){e=z.apply(this,arguments);for(var t=-1,n=this.length;++te;e++)for(var n=this[e],r=0,i=n.length;i>r;r++){var s=n[r];if(s)return s}return null},Ou.size=function(){var e=0;return W(this,function(){++e}),e};var Du=[];fu.selection.enter=X,fu.selection.enter.prototype=Du,Du.append=Ou.append,Du.empty=Ou.empty,Du.node=Ou.node,Du.call=Ou.call,Du.size=Ou.size,Du.select=function(e){for(var t,n,r,i,s,o=[],u=-1,a=this.length;++ur){if("string"!=typeof e){2>r&&(t=!1);for(n in e)this.each($(n,e[n],t));return this}if(2>r)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each($(e,t,n))};var Pu=fu.map({mouseenter:"mouseover",mouseleave:"mouseout"});hu&&Pu.forEach(function(e){"on"+e in hu&&Pu.remove(e)});var Hu,Bu=0;fu.mouse=function(e){return G(e,C())};var ju=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;fu.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=C().changedTouches),t)for(var r,i=0,s=t.length;s>i;++i)if((r=t[i]).identifier===n)return G(e,r)},fu.behavior.drag=function(){function e(){this.on("mousedown.drag",s).on("touchstart.drag",o)}function n(e,t,n,s,o){return function(){function u(){var e,n,r=t(h,v);r&&(e=r[0]-b[0],n=r[1]-b[1],d|=e|n,b=r,p({type:"drag",x:r[0]+f[0],y:r[1]+f[1],dx:e,dy:n}))}function a(){t(h,v)&&(g.on(s+m,null).on(o+m,null),y(d),p({type:"dragend"}))}var f,l=this,c=fu.event.target.correspondingElement||fu.event.target,h=l.parentNode,p=r.of(l,arguments),d=0,v=e(),m=".drag"+(null==v?"":"-"+v),g=fu.select(n(c)).on(s+m,u).on(o+m,a),y=Q(c),b=t(h,v);i?(f=i.apply(l,arguments),f=[f.x-b[0],f.y-b[1]]):f=[0,0],p({type:"dragstart"})}}var r=k(e,"drag","dragstart","dragend"),i=null,s=n(S,fu.mouse,t,"mousemove","mouseup"),o=n(Y,fu.touch,b,"touchmove","touchend");return e.origin=function(t){return arguments.length?(i=t,e):i},fu.rebind(e,r,"on")},fu.touches=function(e,t){return arguments.length<2&&(t=C().touches),t?cu(t).map(function(t){var n=G(e,t);return n.identifier=t.identifier,n}):[]};var Fu=1e-6,Iu=Fu*Fu,qu=Math.PI,Ru=2*qu,Uu=Ru-Fu,zu=qu/2,Wu=qu/180,Xu=180/qu,Vu=Math.SQRT2,$u=2,Ju=4;fu.interpolateZoom=function(e,t){var n,r,i=e[0],s=e[1],o=e[2],u=t[0],a=t[1],f=t[2],l=u-i,c=a-s,h=l*l+c*c;if(Iu>h)r=Math.log(f/o)/Vu,n=function(e){return[i+e*l,s+e*c,o*Math.exp(Vu*e*r)]};else{var p=Math.sqrt(h),d=(f*f-o*o+Ju*h)/(2*o*$u*p),v=(f*f-o*o-Ju*h)/(2*f*$u*p),m=Math.log(Math.sqrt(d*d+1)-d),g=Math.log(Math.sqrt(v*v+1)-v);r=(g-m)/Vu,n=function(e){var t=e*r,n=it(m),u=o/($u*p)*(n*st(Vu*t+m)-rt(m));return[i+u*l,s+u*c,o*n/it(Vu*t+m)]}}return n.duration=1e3*r,n},fu.behavior.zoom=function(){function e(e){e.on(M,c).on(Qu+".zoom",p).on("dblclick.zoom",d).on(P,h)}function n(e){return[(e[0]-T.x)/T.k,(e[1]-T.y)/T.k]}function r(e){return[e[0]*T.k+T.x,e[1]*T.k+T.y]}function i(e){T.k=Math.max(L[0],Math.min(L[1],e))}function s(e,t){t=r(t),T.x+=e[0]-t[0],T.y+=e[1]-t[1]}function o(t,n,r,o){t.__chart__={x:T.x,y:T.y,k:T.k},i(Math.pow(2,o)),s(m=n,r),t=fu.select(t),A>0&&(t=t.transition().duration(A)),t.call(e.event)}function u(){E&&E.domain(w.range().map(function(e){return(e-T.x)/T.k}).map(w.invert)),x&&x.domain(S.range().map(function(e){return(e-T.y)/T.k}).map(S.invert))}function a(e){O++||e({type:"zoomstart"})}function f(e){u(),e({type:"zoom",scale:T.k,translate:[T.x,T.y]})}function l(e){--O||(e({type:"zoomend"}),m=null)}function c(){function e(){u=1,s(fu.mouse(i),h),f(o)}function r(){c.on(_,null).on(D,null),p(u),l(o)}var i=this,o=H.of(i,arguments),u=0,c=fu.select(t(i)).on(_,e).on(D,r),h=n(fu.mouse(i)),p=Q(i);Wf.call(i),a(o)}function h(){function e(){var e=fu.touches(d);return p=T.k,e.forEach(function(e){e.identifier in m&&(m[e.identifier]=n(e))}),e}function t(){var t=fu.event.target;fu.select(t).on(w,r).on(E,u),S.push(t);for(var n=fu.event.changedTouches,i=0,s=n.length;s>i;++i)m[n[i].identifier]=null;var a=e(),f=Date.now();if(1===a.length){if(500>f-b){var l=a[0];o(d,l,m[l.identifier],Math.floor(Math.log(T.k)/Math.LN2)+1),N()}b=f}else if(a.length>1){var l=a[0],c=a[1],h=l[0]-c[0],p=l[1]-c[1];g=h*h+p*p}}function r(){var e,t,n,r,o=fu.touches(d);Wf.call(d);for(var u=0,a=o.length;a>u;++u,r=null)if(n=o[u],r=m[n.identifier]){if(t)break;e=n,t=r}if(r){var l=(l=n[0]-e[0])*l+(l=n[1]-e[1])*l,c=g&&Math.sqrt(l/g);e=[(e[0]+n[0])/2,(e[1]+n[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],i(c*p)}b=null,s(e,t),f(v)}function u(){if(fu.event.touches.length){for(var t=fu.event.changedTouches,n=0,r=t.length;r>n;++n)delete m[t[n].identifier];for(var i in m)return void e()}fu.selectAll(S).on(y,null),x.on(M,c).on(P,h),C(),l(v)}var p,d=this,v=H.of(d,arguments),m={},g=0,y=".zoom-"+fu.event.changedTouches[0].identifier,w="touchmove"+y,E="touchend"+y,S=[],x=fu.select(d),C=Q(d);t(),a(v),x.on(M,null).on(P,t)}function p(){var e=H.of(this,arguments);y?clearTimeout(y):(Wf.call(this),v=n(m=g||fu.mouse(this)),a(e)),y=setTimeout(function(){y=null,l(e)},50),N(),i(Math.pow(2,.002*Ku())*T.k),s(m,v),f(e)}function d(){var e=fu.mouse(this),t=Math.log(T.k)/Math.LN2;o(this,e,n(e),fu.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,m,g,y,b,w,E,S,x,T={x:0,y:0,k:1},C=[960,500],L=Gu,A=250,O=0,M="mousedown.zoom",_="mousemove.zoom",D="mouseup.zoom",P="touchstart.zoom",H=k(e,"zoomstart","zoom","zoomend");return Qu||(Qu="onwheel"in hu?(Ku=function(){return-fu.event.deltaY*(fu.event.deltaMode?120:1)},"wheel"):"onmousewheel"in hu?(Ku=function(){return fu.event.wheelDelta},"mousewheel"):(Ku=function(){return-fu.event.detail},"MozMousePixelScroll")),e.event=function(e){e.each(function(){var e=H.of(this,arguments),t=T;Uf?fu.select(this).transition().each("start.zoom",function(){T=this.__chart__||{x:0,y:0,k:1},a(e)}).tween("zoom:zoom",function(){var n=C[0],r=C[1],i=m?m[0]:n/2,s=m?m[1]:r/2,o=fu.interpolateZoom([(i-T.x)/T.k,(s-T.y)/T.k,n/T.k],[(i-t.x)/t.k,(s-t.y)/t.k,n/t.k]);return function(t){var r=o(t),u=n/r[2];this.__chart__=T={x:i-r[0]*u,y:s-r[1]*u,k:u},f(e)}}).each("interrupt.zoom",function(){l(e)}).each("end.zoom",function(){l(e)}):(this.__chart__=T,a(e),f(e),l(e))})},e.translate=function(t){return arguments.length?(T={x:+t[0],y:+t[1],k:T.k},u(),e):[T.x,T.y]},e.scale=function(t){return arguments.length?(T={x:T.x,y:T.y,k:null},i(+t),u(),e):T.k},e.scaleExtent=function(t){return arguments.length?(L=null==t?Gu:[+t[0],+t[1]],e):L},e.center=function(t){return arguments.length?(g=t&&[+t[0],+t[1]],e):g},e.size=function(t){return arguments.length?(C=t&&[+t[0],+t[1]],e):C},e.duration=function(t){return arguments.length?(A=+t,e):A},e.x=function(t){return arguments.length?(E=t,w=t.copy(),T={x:0,y:0,k:1},e):E},e.y=function(t){return arguments.length?(x=t,S=t.copy(),T={x:0,y:0,k:1},e):x},fu.rebind(e,H,"on")};var Ku,Qu,Gu=[0,1/0];fu.color=ut,ut.prototype.toString=function(){return this.rgb()+""},fu.hsl=at;var Yu=at.prototype=new ut;Yu.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new at(this.h,this.s,this.l/e)},Yu.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new at(this.h,this.s,e*this.l)},Yu.rgb=function(){return ft(this.h,this.s,this.l)},fu.hcl=lt;var Zu=lt.prototype=new ut;Zu.brighter=function(e){return new lt(this.h,this.c,Math.min(100,this.l+ea*(arguments.length?e:1)))},Zu.darker=function(e){return new lt(this.h,this.c,Math.max(0,this.l-ea*(arguments.length?e:1)))},Zu.rgb=function(){return ct(this.h,this.c,this.l).rgb()},fu.lab=ht;var ea=18,ta=.95047,na=1,ra=1.08883,ia=ht.prototype=new ut;ia.brighter=function(e){return new ht(Math.min(100,this.l+ea*(arguments.length?e:1)),this.a,this.b)},ia.darker=function(e){return new ht(Math.max(0,this.l-ea*(arguments.length?e:1)),this.a,this.b)},ia.rgb=function(){return pt(this.l,this.a,this.b)},fu.rgb=yt;var sa=yt.prototype=new ut;sa.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&i>t&&(t=i),n&&i>n&&(n=i),r&&i>r&&(r=i),new yt(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new yt(i,i,i)},sa.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new yt(e*this.r,e*this.g,e*this.b)},sa.hsl=function(){return xt(this.r,this.g,this.b)},sa.toString=function(){return"#"+Et(this.r)+Et(this.g)+Et(this.b)};var oa=fu.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});oa.forEach(function(e,t){oa.set(e,bt(t))}),fu.functor=kt,fu.xhr=Lt(b),fu.dsv=function(e,t){function n(e,n,s){arguments.length<3&&(s=n,n=null);var o=At(e,t,null==n?r:i(n),s);return o.row=function(e){return arguments.length?o.response(null==(n=e)?r:i(e)):n},o}function r(e){return n.parse(e.responseText)}function i(e){return function(t){return n.parse(t.responseText,e)}}function s(t){return t.map(o).join(e)}function o(e){return u.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var u=new RegExp('["'+e+"\n]"),a=e.charCodeAt(0);return n.parse=function(e,t){var r;return n.parseRows(e,function(e,n){if(r)return r(e,n-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");r=t?function(e,n){return t(i(e),n)}:i})},n.parseRows=function(e,t){function n(){if(l>=f)return o;if(i)return i=!1,s;var t=l;if(34===e.charCodeAt(t)){for(var n=t;n++l;){var r=e.charCodeAt(l++),u=1;if(10===r)i=!0;else if(13===r)i=!0,10===e.charCodeAt(l)&&(++l,++u);else if(r!==a)continue;return e.slice(t,l-u)}return e.slice(t)}for(var r,i,s={},o={},u=[],f=e.length,l=0,c=0;(r=n())!==o;){for(var h=[];r!==s&&r!==o;)h.push(r),r=n();t&&null==(h=t(h,c++))||u.push(h)}return u},n.format=function(t){if(Array.isArray(t[0]))return n.formatRows(t);var r=new y,i=[];return t.forEach(function(e){for(var t in e)r.has(t)||i.push(r.add(t))}),[i.map(o).join(e)].concat(t.map(function(t){return i.map(function(e){return o(t[e])}).join(e)})).join("\n")},n.formatRows=function(e){return e.map(s).join("\n")},n},fu.csv=fu.dsv(",","text/csv"),fu.tsv=fu.dsv(" ","text/tab-separated-values");var ua,aa,fa,la,ca=this[E(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};fu.timer=function(){_t.apply(this,arguments)},fu.timer.flush=function(){Pt(),Ht()},fu.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var ha=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(jt);fu.formatPrefix=function(e,t){var n=0;return(e=+e)&&(0>e&&(e*=-1),t&&(e=fu.round(e,Bt(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),ha[8+n/3]};var pa=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,da=fu.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=fu.round(e,Bt(e,t))).toFixed(Math.max(0,Math.min(20,Bt(e*(1+1e-15),t))))}}),va=fu.time={},ma=Date;qt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ga.setUTCDate.apply(this._,arguments)},setDay:function(){ga.setUTCDay.apply(this._,arguments)},setFullYear:function(){ga.setUTCFullYear.apply(this._,arguments)},setHours:function(){ga.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ga.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ga.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ga.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ga.setUTCSeconds.apply(this._,arguments)},setTime:function(){ga.setTime.apply(this._,arguments)}};var ga=Date.prototype;va.year=Rt(function(e){return e=va.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),va.years=va.year.range,va.years.utc=va.year.utc.range,va.day=Rt(function(e){var t=new ma(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),va.days=va.day.range,va.days.utc=va.day.utc.range,va.dayOfYear=function(e){var t=va.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=va[e]=Rt(function(e){return(e=va.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=va.year(e).getDay();return Math.floor((va.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});va[e+"s"]=n.range,va[e+"s"].utc=n.utc.range,va[e+"OfYear"]=function(e){var n=va.year(e).getDay();return Math.floor((va.dayOfYear(e)+(n+t)%7)/7)}}),va.week=va.sunday,va.weeks=va.sunday.range,va.weeks.utc=va.sunday.utc.range,va.weekOfYear=va.sundayOfYear;var ya={"-":"",_:" ",0:"0"},ba=/^\s*\d+/,wa=/^%/;fu.locale=function(e){return{numberFormat:Ft(e),timeFormat:zt(e)}};var Ea=fu.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});fu.format=Ea.numberFormat,fu.geo={},cn.prototype={s:0,t:0,add:function(e){hn(e,this.t,Sa),hn(Sa.s,this.s,this),this.s?this.t+=Sa.t:this.s=Sa.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Sa=new cn;fu.geo.stream=function(e,t){e&&xa.hasOwnProperty(e.type)?xa[e.type](e,t):pn(e,t)};var xa={Feature:function(e,t){pn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++re?4*qu+e:e,ka.lineStart=ka.lineEnd=ka.point=S}};fu.geo.bounds=function(){function e(e,t){b.push(w=[l=e,h=e]),c>t&&(c=t),t>p&&(p=t)}function t(t,n){var r=gn([t*Wu,n*Wu]);if(g){var i=bn(g,r),s=[i[1],-i[0],0],o=bn(s,i);Sn(o),o=xn(o);var a=t-d,f=a>0?1:-1,v=o[0]*Xu*f,m=Eu(a)>180;if(m^(v>f*d&&f*t>v)){var y=o[1]*Xu;y>p&&(p=y)}else if(v=(v+360)%360-180,m^(v>f*d&&f*t>v)){var y=-o[1]*Xu;c>y&&(c=y)}else c>n&&(c=n),n>p&&(p=n);m?d>t?u(l,t)>u(l,h)&&(h=t):u(t,h)>u(l,h)&&(l=t):h>=l?(l>t&&(l=t),t>h&&(h=t)):t>d?u(l,t)>u(l,h)&&(h=t):u(t,h)>u(l,h)&&(l=t)}else e(t,n);g=r,d=t}function n(){E.point=t}function r(){w[0]=l,w[1]=h,E.point=e,g=null}function i(e,n){if(g){var r=e-d;y+=Eu(r)>180?r+(r>0?360:-360):r}else v=e,m=n;ka.point(e,n),t(e,n)}function s(){ka.lineStart()}function o(){i(v,m),ka.lineEnd(),Eu(y)>Fu&&(l=-(h=180)),w[0]=l,w[1]=h,g=null}function u(e,t){return(t-=e)<0?t+360:t}function a(e,t){return e[0]-t[0]}function f(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eCa?(l=-(h=180),c=-(p=90)):y>Fu?p=90:-Fu>y&&(c=-90),w[0]=l,w[1]=h}};return function(e){p=h=-(l=c=1/0),b=[],fu.geo.stream(e,E);var t=b.length;if(t){b.sort(a);for(var n,r=1,i=b[0],s=[i];t>r;++r)n=b[r],f(n[0],i)||f(n[1],i)?(u(i[0],n[1])>u(i[0],i[1])&&(i[1]=n[1]),u(n[0],i[1])>u(i[0],i[1])&&(i[0]=n[0])):s.push(i=n);for(var o,n,d=-1/0,t=s.length-1,r=0,i=s[t];t>=r;i=n,++r)n=s[r],(o=u(i[1],n[0]))>d&&(d=o,l=n[0],h=i[1])}return b=w=null,l===1/0||c===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,c],[h,p]]}}(),fu.geo.centroid=function(e){La=Aa=Oa=Ma=_a=Da=Pa=Ha=Ba=ja=Fa=0,fu.geo.stream(e,Ia);var t=Ba,n=ja,r=Fa,i=t*t+n*n+r*r;return Iu>i&&(t=Da,n=Pa,r=Ha,Fu>Aa&&(t=Oa,n=Ma,r=_a),i=t*t+n*n+r*r,Iu>i)?[NaN,NaN]:[Math.atan2(n,t)*Xu,nt(r/Math.sqrt(i))*Xu]};var La,Aa,Oa,Ma,_a,Da,Pa,Ha,Ba,ja,Fa,Ia={sphere:S,point:Nn,lineStart:kn,lineEnd:Ln,polygonStart:function(){Ia.lineStart=An},polygonEnd:function(){Ia.lineStart=kn}},qa=Hn(Mn,In,Rn,[-qu,-qu/2]),Ra=1e9;fu.geo.clipExtent=function(){var e,t,n,r,i,s,o={stream:function(e){return i&&(i.valid=!1),i=s(e),i.valid=!0,i},extent:function(u){return arguments.length?(s=Xn(e=+u[0][0],t=+u[0][1],n=+u[1][0],r=+u[1][1]),i&&(i.valid=!1,i=null),o):[[e,t],[n,r]]}};return o.extent([[0,0],[960,500]])},(fu.geo.conicEqualArea=function(){return Vn($n)}).raw=$n,fu.geo.albers=function(){return fu.geo.conicEqualArea().rotate([96,0]).center([-0.6,38.7]).parallels([29.5,45.5]).scale(1070)},fu.geo.albersUsa=function(){function e(e){var s=e[0],o=e[1];return t=null,n(s,o),t||(r(s,o),t)||i(s,o),t}var t,n,r,i,s=fu.geo.albers(),o=fu.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=fu.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),a={point:function(e,n){t=[e,n]}};return e.invert=function(e){var t=s.scale(),n=s.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&.234>i&&r>=-0.425&&-0.214>r?o:i>=.166&&.234>i&&r>=-0.214&&-0.115>r?u:s).invert(e)},e.stream=function(e){var t=s.stream(e),n=o.stream(e),r=u.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(s.precision(t),o.precision(t),u.precision(t),e):s.precision()},e.scale=function(t){return arguments.length?(s.scale(t),o.scale(.35*t),u.scale(t),e.translate(s.translate())):s.scale()},e.translate=function(t){if(!arguments.length)return s.translate();var f=s.scale(),l=+t[0],c=+t[1];return n=s.translate(t).clipExtent([[l-.455*f,c-.238*f],[l+.455*f,c+.238*f]]).stream(a).point,r=o.translate([l-.307*f,c+.201*f]).clipExtent([[l-.425*f+Fu,c+.12*f+Fu],[l-.214*f-Fu,c+.234*f-Fu]]).stream(a).point,i=u.translate([l-.205*f,c+.212*f]).clipExtent([[l-.214*f+Fu,c+.166*f+Fu],[l-.115*f-Fu,c+.234*f-Fu]]).stream(a).point,e},e.scale(1070)};var Ua,za,Wa,Xa,Va,$a,Ja={point:S,lineStart:S,lineEnd:S,polygonStart:function(){za=0,Ja.lineStart=Jn},polygonEnd:function(){Ja.lineStart=Ja.lineEnd=Ja.point=S,Ua+=Eu(za/2)}},Ka={point:Kn,lineStart:S,lineEnd:S,polygonStart:S,polygonEnd:S},Qa={point:Yn,lineStart:Zn,lineEnd:er,polygonStart:function(){Qa.lineStart=tr},polygonEnd:function(){Qa.point=Yn,Qa.lineStart=Zn,Qa.lineEnd=er}};fu.geo.path=function(){function e(e){return e&&("function"==typeof u&&s.pointRadius(+u.apply(this,arguments)),o&&o.valid||(o=i(s)),fu.geo.stream(e,o)),s.result()}function t(){return o=null,e}var n,r,i,s,o,u=4.5;return e.area=function(e){return Ua=0,fu.geo.stream(e,i(Ja)),Ua},e.centroid=function(e){return Oa=Ma=_a=Da=Pa=Ha=Ba=ja=Fa=0,fu.geo.stream(e,i(Qa)),Fa?[Ba/Fa,ja/Fa]:Ha?[Da/Ha,Pa/Ha]:_a?[Oa/_a,Ma/_a]:[NaN,NaN]},e.bounds=function(e){return Va=$a=-(Wa=Xa=1/0),fu.geo.stream(e,i(Ka)),[[Wa,Xa],[Va,$a]]},e.projection=function(e){return arguments.length?(i=(n=e)?e.stream||ir(e):b,t()):n},e.context=function(e){return arguments.length?(s=null==(r=e)?new Qn:new nr(e),"function"!=typeof u&&s.pointRadius(u),t()):r},e.pointRadius=function(t){return arguments.length?(u="function"==typeof t?t:(s.pointRadius(+t),+t),e):u},e.projection(fu.geo.albersUsa()).context(null)},fu.geo.transform=function(e){return{stream:function(t){var n=new sr(t);for(var r in e)n[r]=e[r];return n}}},sr.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},fu.geo.projection=ur,fu.geo.projectionMutator=ar,(fu.geo.equirectangular=function(){return ur(lr)}).raw=lr.invert=lr,fu.geo.rotation=function(e){function t(t){return t=e(t[0]*Wu,t[1]*Wu),t[0]*=Xu,t[1]*=Xu,t}return e=hr(e[0]%360*Wu,e[1]*Wu,e.length>2?e[2]*Wu:0),t.invert=function(t){return t=e.invert(t[0]*Wu,t[1]*Wu),t[0]*=Xu,t[1]*=Xu,t},t},cr.invert=lr,fu.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=hr(-e[0]*Wu,-e[1]*Wu,0).invert,i=[];return n(null,null,1,{point:function(e,n){i.push(e=t(e,n)),e[0]*=Xu,e[1]*=Xu}}),{type:"Polygon",coordinates:[i]}}var t,n,r=[0,0],i=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=mr((t=+r)*Wu,i*Wu),e):t},e.precision=function(r){return arguments.length?(n=mr(t*Wu,(i=+r)*Wu),e):i},e.angle(90)},fu.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Wu,i=e[1]*Wu,s=t[1]*Wu,o=Math.sin(r),u=Math.cos(r),a=Math.sin(i),f=Math.cos(i),l=Math.sin(s),c=Math.cos(s);return Math.atan2(Math.sqrt((n=c*o)*n+(n=f*l-a*c*u)*n),a*l+f*c*u)},fu.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return fu.range(Math.ceil(s/m)*m,i,m).map(h).concat(fu.range(Math.ceil(f/g)*g,a,g).map(p)).concat(fu.range(Math.ceil(r/d)*d,n,d).filter(function(e){return Eu(e%m)>Fu}).map(l)).concat(fu.range(Math.ceil(u/v)*v,o,v).filter(function(e){return Eu(e%g)>Fu}).map(c))}var n,r,i,s,o,u,a,f,l,c,h,p,d=10,v=d,m=90,g=360,y=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[h(s).concat(p(a).slice(1),h(i).reverse().slice(1),p(f).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(s=+t[0][0],i=+t[1][0],f=+t[0][1],a=+t[1][1],s>i&&(t=s,s=i,i=t),f>a&&(t=f,f=a,a=t),e.precision(y)):[[s,f],[i,a]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),u>o&&(t=u,u=o,o=t),e.precision(y)):[[r,u],[n,o]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(m=+t[0],g=+t[1],e):[m,g]},e.minorStep=function(t){return arguments.length?(d=+t[0],v=+t[1],e):[d,v]},e.precision=function(t){return arguments.length?(y=+t,l=yr(u,o,90),c=br(r,n,y),h=yr(f,a,90),p=br(s,i,y),e):y},e.majorExtent([[-180,-90+Fu],[180,90-Fu]]).minorExtent([[-180,-80-Fu],[180,80+Fu]])},fu.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||i.apply(this,arguments)]}}var t,n,r=wr,i=Er;return e.distance=function(){return fu.geo.distance(t||r.apply(this,arguments),n||i.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(i=t,n="function"==typeof t?null:t,e):i},e.precision=function(){return arguments.length?e:0},e},fu.geo.interpolate=function(e,t){return Sr(e[0]*Wu,e[1]*Wu,t[0]*Wu,t[1]*Wu)},fu.geo.length=function(e){return Ga=0,fu.geo.stream(e,Ya),Ga};var Ga,Ya={sphere:S,point:S,lineStart:xr,lineEnd:S,polygonStart:S,polygonEnd:S},Za=Tr(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(fu.geo.azimuthalEqualArea=function(){return ur(Za)}).raw=Za;var ef=Tr(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},b);(fu.geo.azimuthalEquidistant=function(){return ur(ef)}).raw=ef,(fu.geo.conicConformal=function(){return Vn(Nr)}).raw=Nr,(fu.geo.conicEquidistant=function(){return Vn(Cr)}).raw=Cr;var tf=Tr(function(e){return 1/e},Math.atan);(fu.geo.gnomonic=function(){return ur(tf)}).raw=tf,kr.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-zu]},(fu.geo.mercator=function(){return Lr(kr)}).raw=kr;var nf=Tr(function(){return 1},Math.asin);(fu.geo.orthographic=function(){return ur(nf)}).raw=nf;var rf=Tr(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(fu.geo.stereographic=function(){return ur(rf)}).raw=rf,Ar.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-zu]},(fu.geo.transverseMercator=function(){var e=Lr(Ar),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Ar,fu.geom={},fu.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,i=kt(n),s=kt(r),o=e.length,u=[],a=[];for(t=0;o>t;t++)u.push([+i.call(this,e[t],t),+s.call(this,e[t],t),t]);for(u.sort(Dr),t=0;o>t;t++)a.push([u[t][0],-u[t][1]]);var f=_r(u),l=_r(a),c=l[0]===f[0],h=l[l.length-1]===f[f.length-1],p=[];for(t=f.length-1;t>=0;--t)p.push(e[u[f[t]][2]]);for(t=+c;t=r&&f.x<=s&&f.y>=i&&f.y<=o?[[r,o],[s,o],[s,i],[r,i]]:[];l.point=e[u]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(s(e,t)/Fu)*Fu,y:Math.round(o(e,t)/Fu)*Fu,i:t}})}var r=Or,i=Mr,s=r,o=i,u=pf;return e?t(e):(t.links=function(e){return ai(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return ai(n(e)).cells.forEach(function(n,r){for(var i,s,o=n.site,u=n.edges.sort(Vr),a=-1,f=u.length,l=u[f-1].edge,c=l.l===o?l.r:l.l;++a=f,h=r>=l,p=h<<1|c;e.leaf=!1,e=e.nodes[p]||(e.nodes[p]=pi()),c?i=f:u=f,h?o=l:a=l,s(e,t,n,r,i,o,u,a)}var l,c,h,p,d,v,m,g,y,b=kt(u),w=kt(a);if(null!=t)v=t,m=n,g=r,y=i;else if(g=y=-(v=m=1/0),c=[],h=[],d=e.length,o)for(p=0;d>p;++p)l=e[p],l.xg&&(g=l.x),l.y>y&&(y=l.y),c.push(l.x),h.push(l.y);else for(p=0;d>p;++p){var E=+b(l=e[p],p),S=+w(l,p);v>E&&(v=E),m>S&&(m=S),E>g&&(g=E),S>y&&(y=S),c.push(E),h.push(S)}var x=g-v,T=y-m;x>T?y=m+x:g=v+T;var N=pi();if(N.add=function(e){s(N,e,+b(e,++p),+w(e,p),v,m,g,y)},N.visit=function(e){di(e,N,v,m,g,y)},N.find=function(e){return vi(N,e[0],e[1],v,m,g,y)},p=-1,null==t){for(;++p=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=gf.get(n)||mf,r=yf.get(r)||b,Si(r(n.apply(null,lu.call(arguments,1))))},fu.interpolateHcl=Hi,fu.interpolateHsl=Bi,fu.interpolateLab=ji,fu.interpolateRound=Fi,fu.transform=function(e){var t=hu.createElementNS(fu.ns.prefix.svg,"g");return(fu.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Ii(n?n.matrix:bf)})(e)},Ii.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var bf={a:1,b:0,c:0,d:1,e:0,f:0};fu.interpolateTransform=Ji,fu.layout={},fu.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++nu*u/g){if(v>a){var f=t.charge/a;e.px-=s*f,e.py-=o*f}return!0}if(t.point&&a&&v>a){var f=t.pointCharge/a;e.px-=s*f,e.py-=o*f}}return!t.charge}}function t(e){e.px=fu.event.x,e.py=fu.event.y,a.resume()}var n,r,i,s,o,u,a={},f=fu.dispatch("start","tick","end"),l=[1,1],c=.9,h=wf,p=Ef,d=-30,v=Sf,m=.1,g=.64,y=[],w=[];return a.tick=function(){if((i*=.99)<.005)return n=null,f.end({type:"end",alpha:i=0}),!0;var t,r,a,h,p,v,g,b,E,S=y.length,x=w.length;for(r=0;x>r;++r)a=w[r],h=a.source,p=a.target,b=p.x-h.x,E=p.y-h.y,(v=b*b+E*E)&&(v=i*o[r]*((v=Math.sqrt(v))-s[r])/v,b*=v,E*=v,p.x-=b*(g=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=E*g,h.x+=b*(g=1-g),h.y+=E*g);if((g=i*m)&&(b=l[0]/2,E=l[1]/2,r=-1,g))for(;++r0?i=e:(n.c=null,n.t=NaN,n=null,f.end({type:"end",alpha:i=0})):e>0&&(f.start({type:"start",alpha:i=e}),n=_t(a.tick)),a):i},a.start=function(){function e(e,r){if(!n){for(n=new Array(i),a=0;i>a;++a)n[a]=[];for(a=0;f>a;++a){var s=w[a];n[s.source.index].push(s.target),n[s.target.index].push(s.source)}}for(var o,u=n[t],a=-1,l=u.length;++at;++t)(r=y[t]).index=t,r.weight=0;for(t=0;f>t;++t)r=w[t],"number"==typeof r.source&&(r.source=y[r.source]),"number"==typeof r.target&&(r.target=y[r.target]),++r.source.weight,++r.target.weight;for(t=0;i>t;++t)r=y[t],isNaN(r.x)&&(r.x=e("x",c)),isNaN(r.y)&&(r.y=e("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(s=[],"function"==typeof h)for(t=0;f>t;++t)s[t]=+h.call(this,w[t],t);else for(t=0;f>t;++t)s[t]=h;if(o=[],"function"==typeof p)for(t=0;f>t;++t)o[t]=+p.call(this,w[t],t);else for(t=0;f>t;++t)o[t]=p;if(u=[],"function"==typeof d)for(t=0;i>t;++t)u[t]=+d.call(this,y[t],t);else for(t=0;i>t;++t)u[t]=d;return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){return r||(r=fu.behavior.drag().origin(b).on("dragstart.force",es).on("drag.force",t).on("dragend.force",ts)),arguments.length?void this.on("mouseover.force",ns).on("mouseout.force",rs).call(r):r},fu.rebind(a,f,"on")};var wf=20,Ef=1,Sf=1/0;fu.layout.hierarchy=function(){function e(i){var s,o=[i],u=[];for(i.depth=0;null!=(s=o.pop());)if(u.push(s),(f=n.call(e,s,s.depth))&&(a=f.length)){for(var a,f,l;--a>=0;)o.push(l=f[a]),l.parent=s,l.depth=s.depth+1;r&&(s.value=0),s.children=f}else r&&(s.value=+r.call(e,s,s.depth)||0),delete s.children;return us(i,function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)}),u}var t=ls,n=as,r=fs;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(os(t,function(e){e.children&&(e.value=0)}),us(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},fu.layout.partition=function(){function e(t,n,r,i){var s=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,s&&(o=s.length)){var o,u,a,f=-1;for(r=t.value?r/t.value:0;++fc?-1:1),d=fu.sum(f),v=d?(c-a*p)/d:0,m=fu.range(a),g=[];return null!=n&&m.sort(n===xf?function(e,t){return f[t]-f[e]}:function(e,t){return n(o[e],o[t])}),m.forEach(function(e){g[e]={data:o[e],value:u=f[e],startAngle:l,endAngle:l+=u*v+p,padAngle:h}}),g}var t=Number,n=xf,r=0,i=Ru,s=0;return e.value=function(n){return arguments.length?(t=n,e):t},e.sort=function(t){return arguments.length?(n=t,e):n},e.startAngle=function(t){return arguments.length?(r=t,e):r},e.endAngle=function(t){return arguments.length?(i=t,e):i},e.padAngle=function(t){return arguments.length?(s=t,e):s},e};var xf={};fu.layout.stack=function(){function e(u,a){if(!(h=u.length))return u;var f=u.map(function(n,r){return t.call(e,n,r)}),l=f.map(function(t){return t.map(function(t,n){return[s.call(e,t,n),o.call(e,t,n)]})}),c=n.call(e,l,a);f=fu.permute(f,c),l=fu.permute(l,c);var h,p,d,v,m=r.call(e,l,a),g=f[0].length;for(d=0;g>d;++d)for(i.call(e,f[0][d],v=m[d],l[0][d][1]),p=1;h>p;++p)i.call(e,f[p][d],v+=l[p-1][d][1],l[p][d][1]);return u}var t=b,n=vs,r=ms,i=ds,s=hs,o=ps;return e.values=function(n){return arguments.length?(t=n,e):t},e.order=function(t){return arguments.length?(n="function"==typeof t?t:Tf.get(t)||vs,e):n},e.offset=function(t){return arguments.length?(r="function"==typeof t?t:Nf.get(t)||ms,e):r},e.x=function(t){return arguments.length?(s=t,e):s},e.y=function(t){return arguments.length?(o=t,e):o},e.out=function(t){return arguments.length?(i=t,e):i},e};var Tf=fu.map({"inside-out":function(e){var t,n,r=e.length,i=e.map(gs),s=e.map(ys),o=fu.range(r).sort(function(e,t){return i[e]-i[t]}),u=0,a=0,f=[],l=[];for(t=0;r>t;++t)n=o[t],a>u?(u+=s[n],f.push(n)):(a+=s[n],l.push(n));return l.reverse().concat(f)},reverse:function(e){return fu.range(e.length).reverse()},"default":vs}),Nf=fu.map({silhouette:function(e){var t,n,r,i=e.length,s=e[0].length,o=[],u=0,a=[];for(n=0;s>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];r>u&&(u=r),o.push(r)}for(n=0;s>n;++n)a[n]=(u-o[n])/2;return a},wiggle:function(e){var t,n,r,i,s,o,u,a,f,l=e.length,c=e[0],h=c.length,p=[];for(p[0]=a=f=0,n=1;h>n;++n){for(t=0,i=0;l>t;++t)i+=e[t][n][1];for(t=0,s=0,u=c[n][0]-c[n-1][0];l>t;++t){for(r=0,o=(e[t][n][1]-e[t][n-1][1])/(2*u);t>r;++r)o+=(e[r][n][1]-e[r][n-1][1])/u;s+=o*e[t][n][1]}p[n]=a-=i?s/i*u:0,f>a&&(f=a)}for(n=0;h>n;++n)p[n]-=f;return p},expand:function(e){var t,n,r,i=e.length,s=e[0].length,o=1/i,u=[];for(n=0;s>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];if(r)for(t=0;i>t;t++)e[t][n][1]/=r;else for(t=0;i>t;t++)e[t][n][1]=o}for(n=0;s>n;++n)u[n]=0;return u},zero:ms});fu.layout.histogram=function(){function e(e,s){for(var o,u,a=[],f=e.map(n,this),l=r.call(this,f,s),c=i.call(this,l,f,s),s=-1,h=f.length,p=c.length-1,d=t?1:1/h;++s0)for(s=-1;++s=l[0]&&u<=l[1]&&(o=a[fu.bisect(c,u,1,p)-1],o.y+=d,o.push(e[s]));return a}var t=!0,n=Number,r=Ss,i=ws;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=kt(t),e):r},e.bins=function(t){return arguments.length?(i="number"==typeof t?function(e){return Es(e,t)}:kt(t),e):i},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},fu.layout.pack=function(){function e(e,s){var o=n.call(this,e,s),u=o[0],a=i[0],f=i[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(u.x=u.y=0,us(u,function(e){e.r=+l(e.value)}),us(u,ks),r){var c=r*(t?1:Math.max(2*u.r/a,2*u.r/f))/2;us(u,function(e){e.r+=c}),us(u,ks),us(u,function(e){e.r-=c})}return Os(u,a/2,f/2,t?1:1/Math.max(2*u.r/a,2*u.r/f)),o}var t,n=fu.layout.hierarchy().sort(xs),r=0,i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},ss(e,n)},fu.layout.tree=function(){function e(e,i){var l=o.call(this,e,i),c=l[0],h=t(c);if(us(h,n),h.parent.m=-h.z,os(h,r),f)os(c,s);else{var p=c,d=c,v=c;os(c,function(e){e.xd.x&&(d=e),e.depth>v.depth&&(v=e)});var m=u(p,d)/2-p.x,g=a[0]/(d.x+u(d,p)/2+m),y=a[1]/(v.depth||1);os(c,function(e){e.x=(e.x+m)*g,e.y=e.depth*y})}return l}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var i,s=t.children,o=0,u=s.length;u>o;++o)r.push((s[o]=i={_:s[o],parent:t,children:(i=s[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return n.children[0]}function n(e){var t=e.children,n=e.parent.children,r=e.i?n[e.i-1]:null;if(t.length){Bs(e);var s=(t[0].z+t[t.length-1].z)/2;r?(e.z=r.z+u(e._,r._),e.m=e.z-s):e.z=s}else r&&(e.z=r.z+u(e._,r._));e.parent.A=i(e,r,e.parent.A||n[0])}function r(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function i(e,t,n){if(t){for(var r,i=e,s=e,o=t,a=i.parent.children[0],f=i.m,l=s.m,c=o.m,h=a.m;o=Ps(o),i=Ds(i),o&&i;)a=Ds(a),s=Ps(s),s.a=e,r=o.z+c-i.z-f+u(o._,i._),r>0&&(Hs(js(o,e,n),e,r),f+=r,l+=r),c+=o.m,f+=i.m,h+=a.m,l+=s.m;o&&!Ps(s)&&(s.t=o,s.m+=c-l),i&&!Ds(a)&&(a.t=i,a.m+=f-h,n=e)}return n}function s(e){e.x*=a[0],e.y=e.depth*a[1]}var o=fu.layout.hierarchy().sort(null).value(null),u=_s,a=[1,1],f=null;return e.separation=function(t){return arguments.length?(u=t,e):u},e.size=function(t){return arguments.length?(f=null==(a=t)?s:null,e):f?null:a},e.nodeSize=function(t){return arguments.length?(f=null==(a=t)?null:s,e):f?a:null},ss(e,o)},fu.layout.cluster=function(){function e(e,s){var o,u=t.call(this,e,s),a=u[0],f=0;us(a,function(e){var t=e.children;t&&t.length?(e.x=Is(t),e.y=Fs(t)):(e.x=o?f+=n(e,o):0,e.y=0,o=e)});var l=qs(a),c=Rs(a),h=l.x-n(l,c)/2,p=c.x+n(c,l)/2;return us(a,i?function(e){e.x=(e.x-a.x)*r[0],e.y=(a.y-e.y)*r[1]}:function(e){e.x=(e.x-h)/(p-h)*r[0],e.y=(1-(a.y?e.y/a.y:1))*r[1]}),u}var t=fu.layout.hierarchy().sort(null).value(null),n=_s,r=[1,1],i=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(i=null==(r=t),e):i?null:r},e.nodeSize=function(t){return arguments.length?(i=null!=(r=t),e):i?r:null},ss(e,t)},fu.layout.treemap=function(){function e(e,t){for(var n,r,i=-1,s=e.length;++it?0:t),n.area=isNaN(r)||0>=r?0:r}function t(n){var s=n.children;if(s&&s.length){var o,u,a,f=c(n),l=[],h=s.slice(),d=1/0,v="slice"===p?f.dx:"dice"===p?f.dy:"slice-dice"===p?1&n.depth?f.dy:f.dx:Math.min(f.dx,f.dy);for(e(h,f.dx*f.dy/n.value),l.area=0;(a=h.length)>0;)l.push(o=h[a-1]),l.area+=o.area,"squarify"!==p||(u=r(l,v))<=d?(h.pop(),d=u):(l.area-=l.pop().area,i(l,v,f,!1),v=Math.min(f.dx,f.dy),l.length=l.area=0,d=1/0);l.length&&(i(l,v,f,!0),l.length=l.area=0),s.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var s,o=c(t),u=r.slice(),a=[];for(e(u,o.dx*o.dy/t.value),a.area=0;s=u.pop();)a.push(s),a.area+=s.area,null!=s.z&&(i(a,s.z?o.dx:o.dy,o,!u.length),a.length=a.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,i=0,s=1/0,o=-1,u=e.length;++on&&(s=n),n>i&&(i=n));return r*=r,t*=t,r?Math.max(t*i*d/r,r/(t*s*d)):1/0}function i(e,t,n,r){var i,s=-1,o=e.length,u=n.x,f=n.y,l=t?a(e.area/t):0;if(t==n.dx){for((r||l>n.dy)&&(l=n.dy);++sn.dx)&&(l=n.dx);++sn&&(t=1),1>n&&(e=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=fu.random.normal.apply(fu,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=fu.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;e>n;n++)t+=Math.random();return t}}},fu.scale={};var Cf={floor:b,ceil:b};fu.scale.linear=function(){return Qs([0,1],[0,1],wi,!1)};var kf={s:1,g:1,p:1,r:1,e:1};fu.scale.log=function(){return io(fu.scale.linear().domain([0,1]),10,!0,[1,10])};var Lf=fu.format(".0e"),Af={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};fu.scale.pow=function(){return so(fu.scale.linear(),1,[0,1])},fu.scale.sqrt=function(){return fu.scale.pow().exponent(.5)},fu.scale.ordinal=function(){return uo([],{t:"range",a:[[]]})},fu.scale.category10=function(){return fu.scale.ordinal().range(Of)},fu.scale.category20=function(){return fu.scale.ordinal().range(Mf)},fu.scale.category20b=function(){return fu.scale.ordinal().range(_f)},fu.scale.category20c=function(){return fu.scale.ordinal().range(Df)};var Of=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(wt),Mf=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(wt),_f=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(wt),Df=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(wt);fu.scale.quantile=function(){return ao([],[])},fu.scale.quantize=function(){return fo(0,1,[0,1])},fu.scale.threshold=function(){return lo([.5],[0,1])},fu.scale.identity=function(){return co([0,1])},fu.svg={},fu.svg.arc=function(){function e(){var e=Math.max(0,+n.apply(this,arguments)),f=Math.max(0,+r.apply(this,arguments)),l=o.apply(this,arguments)-zu,c=u.apply(this,arguments)-zu,h=Math.abs(c-l),p=l>c?0:1;if(e>f&&(d=f,f=e,e=d),h>=Uu)return t(f,p)+(e?t(e,1-p):"")+"Z";var d,v,m,g,y,b,w,E,S,x,T,N,C=0,k=0,L=[];if((g=(+a.apply(this,arguments)||0)/2)&&(m=s===Pf?Math.sqrt(e*e+f*f):+s.apply(this,arguments),p||(k*=-1),f&&(k=nt(m/f*Math.sin(g))),e&&(C=nt(m/e*Math.sin(g)))),f){y=f*Math.cos(l+k),b=f*Math.sin(l+k),w=f*Math.cos(c-k),E=f*Math.sin(c-k);var A=Math.abs(c-l-2*k)<=qu?0:1;if(k&&bo(y,b,w,E)===p^A){var O=(l+c)/2;y=f*Math.cos(O),b=f*Math.sin(O),w=E=null}}else y=b=0;if(e){S=e*Math.cos(c-C),x=e*Math.sin(c-C),T=e*Math.cos(l+C),N=e*Math.sin(l+C);var M=Math.abs(l-c+2*C)<=qu?0:1;if(C&&bo(S,x,T,N)===1-p^M){var _=(l+c)/2;S=e*Math.cos(_),x=e*Math.sin(_),T=N=null}}else S=x=0;if(h>Fu&&(d=Math.min(Math.abs(f-e)/2,+i.apply(this,arguments)))>.001){v=f>e^p?0:1;var D=d,P=d;if(qu>h){var H=null==T?[S,x]:null==w?[y,b]:Hr([y,b],[T,N],[w,E],[S,x]),B=y-H[0],j=b-H[1],F=w-H[0],I=E-H[1],q=1/Math.sin(Math.acos((B*F+j*I)/(Math.sqrt(B*B+j*j)*Math.sqrt(F*F+I*I)))/2),R=Math.sqrt(H[0]*H[0]+H[1]*H[1]);P=Math.min(d,(e-R)/(q-1)),D=Math.min(d,(f-R)/(q+1))}if(null!=w){var U=wo(null==T?[S,x]:[T,N],[y,b],f,D,p),z=wo([w,E],[S,x],f,D,p);d===D?L.push("M",U[0],"A",D,",",D," 0 0,",v," ",U[1],"A",f,",",f," 0 ",1-p^bo(U[1][0],U[1][1],z[1][0],z[1][1]),",",p," ",z[1],"A",D,",",D," 0 0,",v," ",z[0]):L.push("M",U[0],"A",D,",",D," 0 1,",v," ",z[0])}else L.push("M",y,",",b);if(null!=T){var W=wo([y,b],[T,N],e,-P,p),X=wo([S,x],null==w?[y,b]:[w,E],e,-P,p);d===P?L.push("L",X[0],"A",P,",",P," 0 0,",v," ",X[1],"A",e,",",e," 0 ",p^bo(X[1][0],X[1][1],W[1][0],W[1][1]),",",1-p," ",W[1],"A",P,",",P," 0 0,",v," ",W[0]):L.push("L",X[0],"A",P,",",P," 0 0,",v," ",W[0])}else L.push("L",S,",",x)}else L.push("M",y,",",b),null!=w&&L.push("A",f,",",f," 0 ",A,",",p," ",w,",",E),L.push("L",S,",",x),null!=T&&L.push("A",e,",",e," 0 ",M,",",1-p," ",T,",",N);return L.push("Z"),L.join("")}function t(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+ -e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}var n=po,r=vo,i=ho,s=Pf,o=mo,u=go,a=yo;return e.innerRadius=function(t){return arguments.length?(n=kt(t),e):n},e.outerRadius=function(t){return arguments.length?(r=kt(t),e):r},e.cornerRadius=function(t){return arguments.length?(i=kt(t),e):i},e.padRadius=function(t){return arguments.length?(s=t==Pf?Pf:kt(t),e):s},e.startAngle=function(t){return arguments.length?(o=kt(t),e):o},e.endAngle=function(t){return arguments.length?(u=kt(t),e):u},e.padAngle=function(t){return arguments.length?(a=kt(t),e):a},e.centroid=function(){var e=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +u.apply(this,arguments))/2-zu;return[Math.cos(t)*e,Math.sin(t)*e]},e};var Pf="auto";fu.svg.line=function(){return Eo(b)};var Hf=fu.map({linear:So,"linear-closed":xo,step:To,"step-before":No,"step-after":Co,basis:_o,"basis-open":Do,"basis-closed":Po,bundle:Ho,cardinal:Ao,"cardinal-open":ko,"cardinal-closed":Lo,monotone:Ro});Hf.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var Bf=[0,2/3,1/3,0],jf=[0,1/3,2/3,0],Ff=[0,1/6,2/3,1/6];fu.svg.line.radial=function(){var e=Eo(Uo);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},No.reverse=Co,Co.reverse=No,fu.svg.area=function(){return zo(b)},fu.svg.area.radial=function(){var e=zo(Uo);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},fu.svg.chord=function(){function e(e,u){var a=t(this,s,e,u),f=t(this,o,e,u);return"M"+a.p0+r(a.r,a.p1,a.a1-a.a0)+(n(a,f)?i(a.r,a.p1,a.r,a.p0):i(a.r,a.p1,f.r,f.p0)+r(f.r,f.p1,f.a1-f.a0)+i(f.r,f.p1,a.r,a.p0))+"Z"}function t(e,t,n,r){var i=t.call(e,n,r),s=u.call(e,i,r),o=a.call(e,i,r)-zu,l=f.call(e,i,r)-zu;return{r:s,a0:o,a1:l,p0:[s*Math.cos(o),s*Math.sin(o)],p1:[s*Math.cos(l),s*Math.sin(l)]}}function n(e,t){return e.a0==t.a0&&e.a1==t.a1}function r(e,t,n){return"A"+e+","+e+" 0 "+ +(n>qu)+",1 "+t}function i(e,t,n,r){return"Q 0,0 "+r}var s=wr,o=Er,u=Wo,a=mo,f=go;return e.radius=function(t){return arguments.length?(u=kt(t),e):u},e.source=function(t){return arguments.length?(s=kt(t),e):s},e.target=function(t){return arguments.length?(o=kt(t),e):o},e.startAngle=function(t){return arguments.length?(a=kt(t),e):a},e.endAngle=function(t){return arguments.length?(f=kt(t),e):f},e},fu.svg.diagonal=function(){function e(e,i){var s=t.call(this,e,i),o=n.call(this,e,i),u=(s.y+o.y)/2,a=[s,{x:s.x,y:u},{x:o.x,y:u},o];return a=a.map(r),"M"+a[0]+"C"+a[1]+" "+a[2]+" "+a[3]}var t=wr,n=Er,r=Xo;return e.source=function(n){return arguments.length?(t=kt(n),e):t},e.target=function(t){return arguments.length?(n=kt(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},fu.svg.diagonal.radial=function(){var e=fu.svg.diagonal(),t=Xo,n=e.projection;return e.projection=function(e){return arguments.length?n(Vo(t=e)):t},e},fu.svg.symbol=function(){function e(e,r){return(If.get(t.call(this,e,r))||Ko)(n.call(this,e,r))}var t=Jo,n=$o;return e.type=function(n){return arguments.length?(t=kt(n),e):t},e.size=function(t){return arguments.length?(n=kt(t),e):n},e};var If=fu.map({circle:Ko,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+ -3*t+","+ -t+"H"+ -t+"V"+ -3*t+"H"+t+"V"+ -t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+ -t+"V"+t+"H"+ -3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Rf)),n=t*Rf;return"M0,"+ -t+"L"+n+",0 0,"+t+" "+ -n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+ -t+","+ -t+"L"+t+","+ -t+" "+t+","+t+" "+ -t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/qf),n=t*qf/2;return"M0,"+n+"L"+t+","+ -n+" "+ -t+","+ -n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/qf),n=t*qf/2;return"M0,"+ -n+"L"+t+","+n+" "+ -t+","+n+"Z"}});fu.svg.symbolTypes=If.keys();var qf=Math.sqrt(3),Rf=Math.tan(30*Wu);Ou.transition=function(e){for(var t,n,r=Uf||++Vf,i=eu(e),s=[],o=zf||{time:Date.now(),ease:ki,delay:0,duration:250},u=-1,a=this.length;++us;s++){i.push(t=[]);for(var n=this[s],u=0,a=n.length;a>u;u++)(r=n[u])&&e.call(r,r.__data__,u,s)&&t.push(r)}return Go(i,this.namespace,this.id)},Xf.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):W(this,null==t?function(t){t[r][n].tween.remove(e)}:function(i){i[r][n].tween.set(e,t)})},Xf.attr=function(e,t){function n(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}function i(e){return null==e?n:(e+="",function(){var t,n=this.getAttribute(u);return n!==e&&(t=o(n,e),function(e){this.setAttribute(u,t(e))})})}function s(e){return null==e?r:(e+="",function(){var t,n=this.getAttributeNS(u.space,u.local);return n!==e&&(t=o(n,e),function(e){this.setAttributeNS(u.space,u.local,t(e))})})}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var o="transform"==e?Ji:wi,u=fu.ns.qualify(e);return Yo(this,"attr."+e,t,u.local?s:i)},Xf.attrTween=function(e,t){function n(e,n){var r=t.call(this,e,n,this.getAttribute(i));return r&&function(e){this.setAttribute(i,r(e))}}function r(e,n){var r=t.call(this,e,n,this.getAttributeNS(i.space,i.local));return r&&function(e){this.setAttributeNS(i.space,i.local,r(e))}}var i=fu.ns.qualify(e);return this.tween("attr."+e,i.local?r:n)},Xf.style=function(e,n,r){function i(){this.style.removeProperty(e)}function s(n){return null==n?i:(n+="",function(){var i,s=t(this).getComputedStyle(this,null).getPropertyValue(e);return s!==n&&(i=wi(s,n),function(t){this.style.setProperty(e,i(t),r)})})}var o=arguments.length;if(3>o){if("string"!=typeof e){2>o&&(n="");for(r in e)this.style(r,e[r],n);return this}r=""}return Yo(this,"style."+e,n,s)},Xf.styleTween=function(e,n,r){function i(i,s){var o=n.call(this,i,s,t(this).getComputedStyle(this,null).getPropertyValue(e));return o&&function(t){this.style.setProperty(e,o(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+e,i)},Xf.text=function(e){return Yo(this,"text",e,Zo)},Xf.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Xf.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=fu.ease.apply(fu,arguments)),W(this,function(r){r[n][t].ease=e}))},Xf.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:W(this,"function"==typeof e?function(r,i,s){r[n][t].delay=+e.call(r,r.__data__,i,s)}:(e=+e,function(r){r[n][t].delay=e}))},Xf.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:W(this,"function"==typeof e?function(r,i,s){r[n][t].duration=Math.max(1,e.call(r,r.__data__,i,s))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Xf.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var i=zf,s=Uf;try{Uf=n,W(this,function(t,i,s){zf=t[r][n],e.call(t,t.__data__,i,s)})}finally{zf=i,Uf=s}}else W(this,function(i){var s=i[r][n];(s.event||(s.event=fu.dispatch("start","end","interrupt"))).on(e,t)});return this},Xf.transition=function(){for(var e,t,n,r,i=this.id,s=++Vf,o=this.namespace,u=[],a=0,f=this.length;f>a;a++){u.push(e=[]);for(var t=this[a],l=0,c=t.length;c>l;l++)(n=t[l])&&(r=n[o][i],tu(n,l,o,s,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),e.push(n)}return Go(u,o,s)},fu.svg.axis=function(){function e(e){e.each(function(){var e,f=fu.select(this),l=this.__chart__||n,c=this.__chart__=n.copy(),h=null==a?c.ticks?c.ticks.apply(c,u):c.domain():a,p=null==t?c.tickFormat?c.tickFormat.apply(c,u):b:t,d=f.selectAll(".tick").data(h,c),v=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Fu),m=fu.transition(d.exit()).style("opacity",Fu).remove(),g=fu.transition(d.order()).style("opacity",1),y=Math.max(i,0)+o,w=Xs(c),E=f.selectAll(".domain").data([0]),S=(E.enter().append("path").attr("class","domain"),fu.transition(E));v.append("line"),v.append("text");var x,T,N,C,k=v.select("line"),L=g.select("line"),A=d.select("text").text(p),O=v.select("text"),M=g.select("text"),_="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(e=nu,x="x",N="y",T="x2",C="y2",A.attr("dy",0>_?"0em":".71em").style("text-anchor","middle"),S.attr("d","M"+w[0]+","+_*s+"V0H"+w[1]+"V"+_*s)):(e=ru,x="y",N="x",T="y2",C="x2",A.attr("dy",".32em").style("text-anchor",0>_?"end":"start"),S.attr("d","M"+_*s+","+w[0]+"H0V"+w[1]+"H"+_*s)),k.attr(C,_*i),O.attr(N,_*y),L.attr(T,0).attr(C,_*i),M.attr(x,0).attr(N,_*y),c.rangeBand){var D=c,P=D.rangeBand()/2;l=c=function(e){return D(e)+P}}else l.rangeBand?l=c:m.call(e,c,l);v.call(e,l,c),g.call(e,c,c)})}var t,n=fu.scale.linear(),r=$f,i=6,s=6,o=3,u=[10],a=null;return e.scale=function(t){return arguments.length?(n=t,e):n},e.orient=function(t){return arguments.length?(r=t in Jf?t+"":$f,e):r},e.ticks=function(){return arguments.length?(u=cu(arguments),e):u},e.tickValues=function(t){return arguments.length?(a=t,e):a},e.tickFormat=function(n){return arguments.length?(t=n,e):t},e.tickSize=function(t){var n=arguments.length;return n?(i=+t,s=+arguments[n-1],e):i},e.innerTickSize=function(t){return arguments.length?(i=+t,e):i},e.outerTickSize=function(t){return arguments.length?(s=+t,e):s},e.tickPadding=function(t){return arguments.length?(o=+t,e):o},e.tickSubdivide=function(){return arguments.length&&e},e};var $f="bottom",Jf={top:1,right:1,bottom:1,left:1};fu.svg.brush=function(){function e(t){t.each(function(){var t=fu.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",s).on("touchstart.brush",s),o=t.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var u=t.selectAll(".resize").data(v,b);u.exit().remove(),u.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return Kf[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),u.style("display",e.empty()?"none":null);var a,c=fu.transition(t),h=fu.transition(o);f&&(a=Xs(f),h.attr("x",a[0]).attr("width",a[1]-a[0]),r(c)),l&&(a=Xs(l),h.attr("y",a[0]).attr("height",a[1]-a[0]),i(c)),n(c)})}function n(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+c[+/e$/.test(e)]+","+h[+/^s/.test(e)]+")"})}function r(e){e.select(".extent").attr("x",c[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",c[1]-c[0])}function i(e){e.select(".extent").attr("y",h[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function s(){function s(){32==fu.event.keyCode&&(A||(b=null,M[0]-=c[1],M[1]-=h[1],A=2),N())}function v(){32==fu.event.keyCode&&2==A&&(M[0]+=c[1],M[1]+=h[1],A=0,N())}function m(){var e=fu.mouse(E),t=!1;w&&(e[0]+=w[0],e[1]+=w[1]),A||(fu.event.altKey?(b||(b=[(c[0]+c[1])/2,(h[0]+h[1])/2]),M[0]=c[+(e[0]l?(i=r,r=l):i=l),v[0]!=r||v[1]!=i?(n?u=null:o=null,v[0]=r,v[1]=i,!0):void 0}function y(){m(),T.style("pointer-events","all").selectAll(".resize").style("display",e.empty()?"none":null),fu.select("body").style("cursor",null),_.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),O(),x({type:"brushend"})}var b,w,E=this,S=fu.select(fu.event.target),x=a.of(E,arguments),T=fu.select(E),C=S.datum(),k=!/^(n|s)$/.test(C)&&f,L=!/^(e|w)$/.test(C)&&l,A=S.classed("extent"),O=Q(E),M=fu.mouse(E),_=fu.select(t(E)).on("keydown.brush",s).on("keyup.brush",v);if(fu.event.changedTouches?_.on("touchmove.brush",m).on("touchend.brush",y):_.on("mousemove.brush",m).on("mouseup.brush",y),T.interrupt().selectAll("*").interrupt(),A)M[0]=c[0]-M[0],M[1]=h[0]-M[1];else if(C){var D=+/w$/.test(C),P=+/^n/.test(C);w=[c[1-D]-M[0],h[1-P]-M[1]],M[0]=c[D],M[1]=h[P]}else fu.event.altKey&&(b=M.slice());T.style("pointer-events","none").selectAll(".resize").style("display",null),fu.select("body").style("cursor",S.style("cursor")),x({type:"brushstart"}),m()}var o,u,a=k(e,"brushstart","brush","brushend"),f=null,l=null,c=[0,0],h=[0,0],p=!0,d=!0,v=Qf[0];return e.event=function(e){e.each(function(){var e=a.of(this,arguments),t={x:c,y:h,i:o,j:u},n=this.__chart__||t;this.__chart__=t,Uf?fu.select(this).transition().each("start.brush",function(){o=n.i,u=n.j,c=n.x,h=n.y,e({type:"brushstart"})}).tween("brush:brush",function(){var n=Ei(c,t.x),r=Ei(h,t.y);return o=u=null,function(i){c=t.x=n(i),h=t.y=r(i),e({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=t.i,u=t.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})}):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))})},e.x=function(t){return arguments.length?(f=t,v=Qf[!f<<1|!l],e):f},e.y=function(t){return arguments.length?(l=t,v=Qf[!f<<1|!l],e):l},e.clamp=function(t){return arguments.length?(f&&l?(p=!!t[0],d=!!t[1]):f?p=!!t:l&&(d=!!t),e):f&&l?[p,d]:f?p:l?d:null},e.extent=function(t){var n,r,i,s,a;return arguments.length?(f&&(n=t[0],r=t[1],l&&(n=n[0],r=r[0]),o=[n,r],f.invert&&(n=f(n),r=f(r)),n>r&&(a=n,n=r,r=a),n==c[0]&&r==c[1]||(c=[n,r])),l&&(i=t[0],s=t[1],f&&(i=i[1],s=s[1]),u=[i,s],l.invert&&(i=l(i),s=l(s)),i>s&&(a=i,i=s,s=a),i==h[0]&&s==h[1]||(h=[i,s])),e):(f&&(o?(n=o[0],r=o[1]):(n=c[0],r=c[1],f.invert&&(n=f.invert(n),r=f.invert(r)),n>r&&(a=n,n=r,r=a))),l&&(u?(i=u[0],s=u[1]):(i=h[0],s=h[1],l.invert&&(i=l.invert(i),s=l.invert(s)),i>s&&(a=i,i=s,s=a))),f&&l?[[n,i],[r,s]]:f?[n,r]:l&&[i,s])},e.clear=function(){return e.empty()||(c=[0,0],h=[0,0],o=u=null),e},e.empty=function(){return!!f&&c[0]==c[1]||!!l&&h[0]==h[1]},fu.rebind(e,a,"on")};var Kf={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qf=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Gf=va.format=Ea.timeFormat,Yf=Gf.utc,Zf=Yf("%Y-%m-%dT%H:%M:%S.%LZ");Gf.iso=Date.prototype.toISOString&&+(new Date("2000-01-01T00:00:00.000Z"))?iu:Zf,iu.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},iu.toString=Zf.toString,va.second=Rt(function(e){return new ma(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),va.seconds=va.second.range,va.seconds.utc=va.second.utc.range,va.minute=Rt(function(e){return new ma(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),va.minutes=va.minute.range,va.minutes.utc=va.minute.utc.range,va.hour=Rt(function(e){var t=e.getTimezoneOffset()/60;return new ma(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),va.hours=va.hour.range,va.hours.utc=va.hour.utc.range,va.month=Rt(function(e){return e=va.day(e),e.setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),va.months=va.month.range,va.months.utc=va.month.utc.range;var el=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],tl=[[va.second,1],[va.second,5],[va.second,15],[va.second,30],[va.minute,1],[va.minute,5],[va.minute,15],[va.minute,30],[va.hour,1],[va.hour,3],[va.hour,6],[va.hour,12],[va.day,1],[va.day,2],[va.week,1],[va.month,1],[va.month,3],[va.year,1]],nl=Gf.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Mn]]),rl={range:function(e,t,n){return fu.range(Math.ceil(e/n)*n,+t,n).map(ou)},floor:b,ceil:b};tl.year=va.year,va.scale=function(){return su(fu.scale.linear(),tl,nl)};var il=tl.map(function(e){return[e[0].utc,e[1]]}),sl=Yf.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Mn]]);il.year=va.year.utc,va.scale.utc=function(){return su(fu.scale.linear(),il,sl)},fu.text=Lt(function(e){return e.responseText}),fu.json=function(e,t){return At(e,"application/json",uu,t)},fu.html=function(e,t){return At(e,"text/html",au,t)},fu.xml=Lt(function(e){return e.responseXML}),"function"==typeof n&&n.amd?(this.d3=fu,n("d3",fu)):"object"==typeof module&&module.exports?module.exports=fu:this.d3=fu}(),n("locationmarker",["leaflet"],function(e){return e.CircleMarker.extend({outerCircle:{stroke:!1,color:"#4285F4",opacity:1,fillOpacity:.3,clickable:!1,radius:16},innerCircle:{stroke:!0,color:"#ffffff",fillColor:"#4285F4",weight:1.5,clickable:!1,opacity:1,fillOpacity:1,radius:7},accuracyCircle:{stroke:!0,color:"#4285F4",weight:1,clickable:!1,opacity:.7,fillOpacity:.2},initialize:function(t){this.accuracyCircle=e.circle(t,0,this.accuracyCircle),this.outerCircle=e.circleMarker(t,this.outerCircle),e.CircleMarker.prototype.initialize.call(this,t,this.innerCircle),this.on("remove",function(){this._map.removeLayer(this.accuracyCircle),this._map.removeLayer(this.outerCircle)})},setLatLng:function(t){this.accuracyCircle.setLatLng(t),this.outerCircle.setLatLng(t),e.CircleMarker.prototype.setLatLng.call(this,t)},setAccuracy:function(e){this.accuracyCircle.setRadius(e)},onAdd:function(t){this.accuracyCircle.addTo(t).bringToBack(),this.outerCircle.addTo(t),e.CircleMarker.prototype.onAdd.call(this,t)}})}),function(){L.labelVersion="0.2.1",L.Label=L.Class.extend({includes:L.Mixin.Events,options:{className:"",clickable:!1,direction:"right",noHide:!1,offset:[12,-15],opacity:1,zoomAnimation:!0},initialize:function(e,t){L.setOptions(this,e),this._source=t,this._animated=L.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(e){this._map=e,this._pane=this._source instanceof L.Marker?e._panes.markerPane:e._panes.popupPane,this._container||this._initLayout(),this._pane.appendChild(this._container),this._initInteraction(),this._update(),this.setOpacity(this.options.opacity),e.on("moveend",this._onMoveEnd,this).on("viewreset",this._onViewReset,this),this._animated&&e.on("zoomanim",this._zoomAnimation,this),L.Browser.touch&&!this.options.noHide&&L.DomEvent.on(this._container,"click",this.close,this)},onRemove:function(e){this._pane.removeChild(this._container),e.off({zoomanim:this._zoomAnimation,moveend:this._onMoveEnd,viewreset:this._onViewReset},this),this._removeInteraction(),this._map=null},setLatLng:function(e){return this._latlng=L.latLng(e),this._map&&this._updatePosition(),this},setContent:function(e){return this._previousContent=this._content,this._content=e,this._updateContent(),this},close:function(){var e=this._map;e&&(L.Browser.touch&&!this.options.noHide&&L.DomEvent.off(this._container,"click",this.close),e.removeLayer(this))},updateZIndex:function(e){this._zIndex=e,this._container&&this._zIndex&&(this._container.style.zIndex=e)},setOpacity:function(e){this.options.opacity=e,this._container&&L.DomUtil.setOpacity(this._container,e)},_initLayout:function(){this._container=L.DomUtil.create("div","leaflet-label "+this.options.className+" leaflet-zoom-animated"),this.updateZIndex(this._zIndex)},_update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updatePosition(),this._container.style.visibility="")},_updateContent:function(){this._content&&this._map&&this._prevContent!==this._content&&"string"==typeof this._content&&(this._container.innerHTML=this._content,this._prevContent=this._content,this._labelWidth=this._container.offsetWidth)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},_setPosition:function(e){var t=this._map,n=this._container,r=t.latLngToContainerPoint(t.getCenter()),i=t.layerPointToContainerPoint(e),s=this.options.direction,o=this._labelWidth,u=L.point(this.options.offset);"right"===s||"auto"===s&&i.xn;n++)L.DomEvent.on(e,t[n],this._fireMouseEvent,this)}},_removeInteraction:function(){if(this.options.clickable){var e=this._container,t=["dblclick","mousedown","mouseover","mouseout","contextmenu"];L.DomUtil.removeClass(e,"leaflet-clickable"),L.DomEvent.off(e,"click",this._onMouseClick,this);for(var n=0;t.length>n;n++)L.DomEvent.off(e,t[n],this._fireMouseEvent,this)}},_onMouseClick:function(e){this.hasEventListeners(e.type)&&L.DomEvent.stopPropagation(e),this.fire(e.type,{originalEvent:e})},_fireMouseEvent:function(e){this.fire(e.type,{originalEvent:e}),"contextmenu"===e.type&&this.hasEventListeners(e.type)&&L.DomEvent.preventDefault(e),"mousedown"!==e.type?L.DomEvent.stopPropagation(e):L.DomEvent.preventDefault(e)}}),L.BaseMarkerMethods={showLabel:function(){return this.label&&this._map&&(this.label.setLatLng(this._latlng),this._map.showLabel(this.label)),this},hideLabel:function(){return this.label&&this.label.close(),this},setLabelNoHide:function(e){this._labelNoHide!==e&&(this._labelNoHide=e,e?(this._removeLabelRevealHandlers(),this.showLabel()):(this._addLabelRevealHandlers(),this.hideLabel()))},bindLabel:function(e,t){var n=this.options.icon?this.options.icon.options.labelAnchor:this.options.labelAnchor,r=L.point(n)||L.point(0,0);return r=r.add(L.Label.prototype.options.offset),t&&t.offset&&(r=r.add(t.offset)),t=L.Util.extend({offset:r},t),this._labelNoHide=t.noHide,this.label||(this._labelNoHide||this._addLabelRevealHandlers(),this.on("remove",this.hideLabel,this).on("move",this._moveLabel,this).on("add",this._onMarkerAdd,this),this._hasLabelHandlers=!0),this.label=(new L.Label(t,this)).setContent(e),this},unbindLabel:function(){return this.label&&(this.hideLabel(),this.label=null,this._hasLabelHandlers&&(this._labelNoHide||this._removeLabelRevealHandlers(),this.off("remove",this.hideLabel,this).off("move",this._moveLabel,this).off("add",this._onMarkerAdd,this)),this._hasLabelHandlers=!1),this},updateLabelContent:function(e){this.label&&this.label.setContent(e)},getLabel:function(){return this.label},_onMarkerAdd:function(){this._labelNoHide&&this.showLabel()},_addLabelRevealHandlers:function(){this.on("mouseover",this.showLabel,this).on("mouseout",this.hideLabel,this),L.Browser.touch&&this.on("click",this.showLabel,this)},_removeLabelRevealHandlers:function(){this.off("mouseover",this.showLabel,this).off("mouseout",this.hideLabel,this),L.Browser.touch&&this.off("click",this.showLabel,this)},_moveLabel:function(e){this.label.setLatLng(e.latlng)}},L.Icon.Default.mergeOptions({labelAnchor:new L.Point(9,-20)}),L.Marker.mergeOptions({icon:new L.Icon.Default}),L.Marker.include(L.BaseMarkerMethods),L.Marker.include({_originalUpdateZIndex:L.Marker.prototype._updateZIndex,_updateZIndex:function(e){var t=this._zIndex+e;this._originalUpdateZIndex(e),this.label&&this.label.updateZIndex(t)},_originalSetOpacity:L.Marker.prototype.setOpacity,setOpacity:function(e,t){this.options.labelHasSemiTransparency=t,this._originalSetOpacity(e)},_originalUpdateOpacity:L.Marker.prototype._updateOpacity,_updateOpacity:function(){var e=0===this.options.opacity?0:1;this._originalUpdateOpacity(),this.label&&this.label.setOpacity(this.options.labelHasSemiTransparency?this.options.opacity:e)},_originalSetLatLng:L.Marker.prototype.setLatLng,setLatLng:function(e){return this.label&&!this._labelNoHide&&this.hideLabel(),this._originalSetLatLng(e)}}),L.CircleMarker.mergeOptions({labelAnchor:new L.Point(0,0)}),L.CircleMarker.include(L.BaseMarkerMethods),L.Path.include({bindLabel:function(e,t){return this.label&&this.label.options===t||(this.label=new L.Label(t,this)),this.label.setContent(e),this._showLabelAdded||(this.on("mouseover",this._showLabel,this).on("mousemove",this._moveLabel,this).on("mouseout remove",this._hideLabel,this),L.Browser.touch&&this.on("click",this._showLabel,this),this._showLabelAdded=!0),this},unbindLabel:function(){return this.label&&(this._hideLabel(),this.label=null,this._showLabelAdded=!1,this.off("mouseover",this._showLabel,this).off("mousemove",this._moveLabel,this).off("mouseout remove",this._hideLabel,this)),this},updateLabelContent:function(e){this.label&&this.label.setContent(e)},_showLabel:function(e){this.label.setLatLng(e.latlng),this._map.showLabel(this.label)},_moveLabel:function(e){this.label.setLatLng(e.latlng)},_hideLabel:function(){this.label.close()}}),L.Map.include({showLabel:function(e){return this.addLayer(e)}}),L.FeatureGroup.include({clearLayers:function(){return this.unbindLabel(),this.eachLayer(this.removeLayer,this),this},bindLabel:function(e,t){return this.invoke("bindLabel",e,t)},unbindLabel:function(){return this.invoke("unbindLabel")},updateLabelContent:function(e){this.invoke("updateLabelContent",e)}})}(this,document),n("leaflet.label",["leaflet"],function(){}),function(){"use strict";L.TileLayer.Provider=L.TileLayer.extend({initialize:function(e,t){var n=L.TileLayer.Provider.providers,r=e.split("."),i=r[0],s=r[1];if(!n[i])throw"No such provider ("+i+")";var o={url:n[i].url,options:n[i].options};if(s&&"variants"in n[i]){if(!(s in n[i].variants))throw"No such variant of "+i+" ("+s+")";var u=n[i].variants[s],a;typeof u=="string"?a={variant:u}:a=u.options,o={url:u.url||o.url,options:L.Util.extend({},o.options,a)}}else typeof o.url=="function"&&(o.url=o.url(r.splice(1,r.length-1).join(".")));var f=window.location.protocol==="file:"||o.options.forceHTTP;o.url.indexOf("//")===0&&f&&(o.url="http:"+o.url);var l=function(e){return e.indexOf("{attribution.")===-1?e:e.replace(/\{attribution.(\w*)\}/,function(e,t){return l(n[t].options.attribution)})};o.options.attribution=l(o.options.attribution);var c=L.Util.extend({},o.options,t);L.TileLayer.prototype.initialize.call(this,o.url,c)}}),L.TileLayer.Provider.providers={OpenStreetMap:{url:"//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'© OpenStreetMap'},variants:{Mapnik:{},BlackAndWhite:{url:"http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",options:{maxZoom:18}},DE:{url:"http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18}},France:{url:"http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{attribution:"© Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of Humanitarian OpenStreetMap Team'}}}},OpenSeaMap:{url:"http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{attribution:'Map data: © OpenSeaMap contributors'}},OpenTopoMap:{url:"//{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:16,attribution:'Map data: {attribution.OpenStreetMap}, SRTM | Map style: © OpenTopoMap (CC-BY-SA)'}},Thunderforest:{url:"//{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png",options:{attribution:'© OpenCycleMap, {attribution.OpenStreetMap}',variant:"cycle"},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport",maxZoom:19}},TransportDark:{options:{variant:"transport-dark",maxZoom:19}},Landscape:"landscape",Outdoors:"outdoors"}},OpenMapSurfer:{url:"http://openmapsurfer.uni-hd.de/tiles/{variant}/x={x}&y={y}&z={z}",options:{maxZoom:20,variant:"roads",attribution:'Imagery from GIScience Research Group @ University of Heidelberg — Map data {attribution.OpenStreetMap}'},variants:{Roads:"roads",AdminBounds:{options:{variant:"adminb",maxZoom:19}},Grayscale:{options:{variant:"roadsg",maxZoom:19}}}},Hydda:{url:"http://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{variant:"full",attribution:'Tiles courtesy of OpenStreetMap Sweden — Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},MapQuestOpen:{url:"http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.{ext}",options:{type:"map",ext:"jpg",attribution:'Tiles Courtesy of MapQuest — Map data {attribution.OpenStreetMap}',subdomains:"1234"},variants:{OSM:{},Aerial:{options:{type:"sat",attribution:'Tiles Courtesy of MapQuest — Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'}},HybridOverlay:{options:{type:"hyb",ext:"png",opacity:.9}}}},MapBox:{url:function(e){return"//{s}.tiles.mapbox.com/v3/"+e+"/{z}/{x}/{y}.png"},options:{attribution:'Imagery from MapBox — Map data {attribution.OpenStreetMap}',subdomains:"abcd"}},Stamen:{url:"//stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.png",options:{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{options:{variant:"watercolor",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:4,maxZoom:18,bounds:[[22,-132],[70,-56]]}},TerrainBackground:{options:{variant:"terrain-background",minZoom:4,maxZoom:18,bounds:[[22,-132],[70,-56]]}},TopOSMRelief:{options:{variant:"toposm-color-relief",ext:"jpg",bounds:[[22,-132],[51,-56]]}},TopOSMFeatures:{options:{variant:"toposm-features",bounds:[[22,-132],[51,-56]],opacity:.9}}}},Esri:{url:"//server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{variant:"World_Street_Map",attribution:"Tiles © Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri} — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}},DeLorme:{options:{variant:"Specialty/DeLorme_World_Base_Map",minZoom:1,maxZoom:11,attribution:"{attribution.Esri} — Copyright: ©2012 DeLorme"}},WorldTopoMap:{options:{variant:"World_Topo_Map",attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}},WorldImagery:{options:{variant:"World_Imagery",attribution:"{attribution.Esri} — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}},WorldTerrain:{options:{variant:"World_Terrain_Base",maxZoom:13,attribution:"{attribution.Esri} — Source: USGS, Esri, TANA, DeLorme, and NPS"}},WorldShadedRelief:{options:{variant:"World_Shaded_Relief",maxZoom:13,attribution:"{attribution.Esri} — Source: Esri"}},WorldPhysical:{options:{variant:"World_Physical_Map",maxZoom:8,attribution:"{attribution.Esri} — Source: US National Park Service"}},OceanBasemap:{options:{variant:"Ocean_Basemap",maxZoom:13,attribution:"{attribution.Esri} — Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri"}},NatGeoWorldMap:{options:{variant:"NatGeo_World_Map",maxZoom:16,attribution:"{attribution.Esri} — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC"}},WorldGrayCanvas:{options:{variant:"Canvas/World_Light_Gray_Base",maxZoom:16,attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ"}}}},OpenWeatherMap:{url:"http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data © OpenWeatherMap',opacity:.5},variants:{Clouds:"clouds",CloudsClassic:"clouds_cls",Precipitation:"precipitation",PrecipitationClassic:"precipitation_cls",Rain:"rain",RainClassic:"rain_cls",Pressure:"pressure",PressureContour:"pressure_cntr",Wind:"wind",Temperature:"temp",Snow:"snow"}},HERE:{url:"//{s}.{base}.maps.cit.api.here.com/maptile/2.1/maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?app_id={app_id}&app_code={app_code}",options:{attribution:'Map © 1987-2014 HERE',subdomains:"1234",mapID:"newest",app_id:"",app_code:"",base:"base",variant:"normal.day",maxZoom:20},variants:{normalDay:"normal.day",normalDayCustom:"normal.day.custom",normalDayGrey:"normal.day.grey",normalDayMobile:"normal.day.mobile",normalDayGreyMobile:"normal.day.grey.mobile",normalDayTransit:"normal.day.transit",normalDayTransitMobile:"normal.day.transit.mobile",normalNight:"normal.night",normalNightMobile:"normal.night.mobile",normalNightGrey:"normal.night.grey",normalNightGreyMobile:"normal.night.grey.mobile",carnavDayGrey:"carnav.day.grey",hybridDay:{options:{base:"aerial",variant:"hybrid.day"}},hybridDayMobile:{options:{base:"aerial",variant:"hybrid.day.mobile"}},pedestrianDay:"pedestrian.day",pedestrianNight:"pedestrian.night",satelliteDay:{options:{base:"aerial",variant:"satellite.day"}},terrainDay:{options:{base:"aerial",variant:"terrain.day"}},terrainDayMobile:{options:{base:"aerial",variant:"terrain.day.mobile"}}}},Acetate:{url:"http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png",options:{attribution:"©2012 Esri & Stamen, Data from OSM and Natural Earth",subdomains:"0123",minZoom:2,maxZoom:18,variant:"acetate-base"},variants:{basemap:"acetate-base",terrain:"terrain",all:"acetate-hillshading",foreground:"acetate-fg",roads:"acetate-roads",labels:"acetate-labels",hillshading:"hillshading"}},FreeMapSK:{url:"http://{s}.freemap.sk/T/{z}/{x}/{y}.jpeg",options:{minZoom:8,maxZoom:16,subdomains:["t1","t2","t3","t4"],attribution:'{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 Freemap.sk'}},MtbMap:{url:"http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",options:{attribution:"{attribution.OpenStreetMap} & USGS"}},CartoDB:{url:"http://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap} © CartoDB',subdomains:"abcd",maxZoom:19,variant:"light_all"},variants:{Positron:"light_all",PositronNoLabels:"light_nolabels",DarkMatter:"dark_all",DarkMatterNoLabels:"dark_nolabels"}},HikeBike:{url:"http://{s}.tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:"{attribution.OpenStreetMap}",variant:"hikebike"},variants:{HikeBike:{},HillShading:{options:{maxZoom:15,variant:"hillshading"}}}},BasemapAT:{url:"//maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}",options:{maxZoom:19,attribution:'Datenquelle: basemap.at',subdomains:["","1","2","3","4"],format:"png",bounds:[[46.35877,8.782379],[49.037872,17.189532]],variant:"geolandbasemap"},variants:{basemap:"geolandbasemap",grau:"bmapgrau",overlay:"bmapoverlay",highdpi:{options:{variant:"bmaphidpi",format:"jpeg"}},orthofoto:{options:{variant:"bmaporthofoto30cm",format:"jpeg"}}}},NASAGIBS:{url:"//map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}{maxZoom}/{z}/{y}/{x}.{format}",options:{attribution:'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.',bounds:[[-85.0511287776,-179.999999975],[85.0511287776,179.999999975]],minZoom:1,maxZoom:9,format:"jpg",time:"",tilematrixset:"GoogleMapsCompatible_Level"},variants:{ModisTerraTrueColorCR:"MODIS_Terra_CorrectedReflectance_TrueColor",ModisTerraBands367CR:"MODIS_Terra_CorrectedReflectance_Bands367",ViirsEarthAtNight2012:{options:{variant:"VIIRS_CityLights_2012",maxZoom:8}},ModisTerraLSTDay:{options:{variant:"MODIS_Terra_Land_Surface_Temp_Day",format:"png",maxZoom:7,opacity:.75}},ModisTerraSnowCover:{options:{variant:"MODIS_Terra_Snow_Cover",format:"png",maxZoom:8,opacity:.75}},ModisTerraAOD:{options:{variant:"MODIS_Terra_Aerosol",format:"png",maxZoom:6,opacity:.75}},ModisTerraChlorophyll:{options:{variant:"MODIS_Terra_Chlorophyll_A",format:"png",maxZoom:7,opacity:.75}}}}},L.tileLayer.provider=function(e,t){return new L.TileLayer.Provider(e,t)}}(),n("leaflet.providers",["leaflet"],function(){}),n("map",["map/clientlayer","map/labelslayer","d3","leaflet","moment","locationmarker","rbush","leaflet.label","leaflet.providers"],function(e,t,n,r,i,s,o){function h(e,t,n){return function(i){var s=r.circleMarker([i.nodeinfo.location.latitude,i.nodeinfo.location.longitude],t(i));return s.resetStyle=function(){s.setStyle(t(i))},s.on("click",n.node(i)),s.bindLabel(i.nodeinfo.hostname),e[i.nodeinfo.node_id]=s,s}}function b(e,t,n,i){n=n.filter(function(e){return"distance"in e&&e.type!=="VPN"});var s=n.map(function(n){var s={color:n.type==="Kabel"?"#50B0F0":t(n.tq).hex(),weight:4,opacity:.5,dashArray:"none"},o=r.polyline(n.latlngs,s);return o.resetStyle=function(){o.setStyle(s)},o.bindLabel(n.source.node.nodeinfo.hostname+" – "+n.target.node.nodeinfo.hostname+"
"+g(n)+" / "+y(n)+""),o.on("click",i.link(n)),e[n.id]=o,o});return s}var u={worldCopyJump:!0,zoomControl:!1},a=r.Control.extend({options:{position:"bottomright"},initialize:function(e,t){r.Util.setOptions(this,t),this.f=e},onAdd:function(){var e=r.DomUtil.create("button","add-layer");return e.textContent="",r.DomEvent.addListener(e,"click",this.f,this),this.button=e,e}}),f=r.Control.extend({options:{position:"bottomright"},active:!1,button:undefined,initialize:function(e,t){r.Util.setOptions(this,t),this.f=e},onAdd:function(){var e=r.DomUtil.create("button","locate-user");return e.textContent="",r.DomEvent.disableClickPropagation(e),r.DomEvent.addListener(e,"click",this.onClick,this),this.button=e,e},update:function(){this.button.classList.toggle("active",this.active)},set:function(e){this.active=e,this.update()},onClick:function(){this.f(!this.active)}}),l=r.Control.extend({options:{position:"bottomright"},active:!1,button:undefined,initialize:function(e,t){r.Util.setOptions(this,t),this.f=e},onAdd:function(){var e=r.DomUtil.create("button","coord-picker");return e.textContent="",r.DomEvent.addListener(e,"click",this.onClick,this),this.button=e,e},update:function(){this.button.classList.toggle("active",this.active)},set:function(e){this.active=e,this.update()},onClick:function(e){r.DomEvent.stopPropagation(e),this.f(!this.active)}}), // iconOnlinePrimary wPrimary={color:"#00B100",fillColor:"00B100",radius:6,fillOpacity:.5,opacity:.5,weight:2,className:"stroke-first"}, // iconOnline w={color:"#1566A9",fillColor:"#1566A9",radius:6,fillOpacity:.5,opacity:.5,weight:2,className:"stroke-first"}, // iconOffline E={color:"#D43E2A",fillColor:"#D43E2A",radius:3,fillOpacity:.5,opacity:.5,weight:1,className:"stroke-first"}, // iconLost S={color:"#D43E2A",fillColor:"#D43E2A",radius:6,fillOpacity:.8,opacity:.8,weight:1,className:"stroke-first"}, // iconAlert x={color:"#D43E2A",fillColor:"#D43E2A",radius:6,fillOpacity:.8,opacity:.8,weight:2,className:"stroke-first node-alert"}, // iconNew T={color:"#1566A9",fillColor:"#93E929",radius:6,fillOpacity:1,opacity:.5,weight:2}; return function(g,y,N,C,k){function W(e){var t=e.onAdd();z.push(t),k.appendChild(t)}function X(){z.forEach(function(e){k.removeChild(e)})}function $(){B={center:j.getCenter(),zoom:j.getZoom()}}function J(){j.locate({watch:!0,enableHighAccuracy:!0,setView:!0}),U.set(!0)}function K(){j.stopLocate(),et(),U.set(!1)}function Q(){j.getContainer().classList.add("pick-coordinates"),j.on("click",Y),V.set(!0)}function G(){j.getContainer().classList.remove("pick-coordinates"),j.off("click",Y),V.set(!1)}function Y(e){C.gotoLocation(e.latlng),G()}function Z(e){F||(F=(new s(e.latlng)).addTo(j)),F.setLatLng(e.latlng),F.setAccuracy(e.accuracy)}function et(){F&&(j.removeLayer(F),F=null)}function tt(e){if(e in R)return;if(e in q)return;try{var t=r.tileLayer.provider(e);I.addBaseLayer(t,e),q[e]=t,c()&&localStorage.setItem("map/customLayers",JSON.stringify(Object.keys(q)))}catch(n){return}}function nt(e){C.gotoLocation(e.latlng)}function ct(e,t){Object.keys(e).forEach(function(t){e[t].resetStyle()}),Object.keys(t).forEach(function(e){t[e].resetStyle()})}function ht(e){j.fitBounds(e,{paddingTopLeft:[N(),0]})}function pt(){O&&ht(O.getBounds())}function dt(e){var t;return"getBounds"in e?t=e.getBounds():t=r.latLngBounds([e.getLatLng()]),ht(t),e}function vt(e){ct(at,ft);var t;lt!==undefined&&(lt.type==="node"?(t=at[lt.o.nodeinfo.node_id],t&&t.setStyle({color:"orange",weight:20,fillOpacity:1,opacity:.7,className:"stroke-first"})):lt.type==="link"&&(t=ft[lt.o.id],t&&t.setStyle({weight:7,opacity:1,dashArray:"10, 10"}))),e||(t?dt(t):B?j.setView(B.center,B.zoom):pt())}function mt(e){e=e.map(function(e){return e.nodeinfo.location});if(e.length===0)return undefined;var t=e.map(function(e){return e.latitude}),i=e.map(function(e){return e.longitude}),s=r.latLng(n.median(t),n.median(i)),o=[n.deviation(t),n.deviation(i)];o[0]===undefined&&(o[0]=0),o[1]===undefined&&(o[1]=0);var u=r.latLng(s.lat+o[0],s.lng+o[1]),a=s.distanceTo(u);return r.circle(s,a*g.mapSigmaScale)}function gt(e){var t=[e.nodeinfo.location.latitude,e.nodeinfo.location.longitude,e.nodeinfo.location.latitude,e.nodeinfo.location.longitude];return t.node=e,t}var A=this,O,M,_,D,P,H,B,j,F,I,q={},R={},U=new f(function(e){e?J():K()}),z=[],V=new l(function(e){e?Q():G()}),rt=document.createElement("div");rt.classList.add("map"),j=r.map(rt,u);var it=g.mapLayers.map(function(e){return{name:e.name,layer:"url"in e?r.tileLayer(e.url,e.config):r.tileLayer.provider(e.name)}});it[0].layer.addTo(j),it.forEach(function(e){R[e.name]=e.layer}),j.on("locationfound",Z),j.on("locationerror",et),j.on("dragend",$),j.on("contextmenu",nt),W(U),W(V),W(new a(function(){var e=prompt("Leaflet Provider:");tt(e)})),I=r.control.layers(R,[],{position:"bottomright"}),I.addTo(j);if(c()){var st=JSON.parse(localStorage.getItem("map/customLayers"));st&&st.forEach(tt),st=JSON.parse(localStorage.getItem("map/selectedLayer")),st=st&&st.name in R?R[st.name]:st&&st.name in q?q[st.name]:!1,st&&(j.removeLayer(it[0].layer),j.addLayer(st))}var ot=new e({minZoom:15});ot.addTo(j),ot.setZIndex(5);var ut=new t({});ut.addTo(j),ut.setZIndex(6),j.on("baselayerchange",function(e){j.options.maxZoom=e.layer.options.maxZoom,ot.options.maxZoom=j.options.maxZoom,ut.options.maxZoom=j.options.maxZoom,j.getZoom()>j.options.maxZoom&&j.setZoom(j.options.maxZoom),c()&&localStorage.setItem("map/selectedLayer",JSON.stringify({name:e.name}))});var at={},ft={},lt;return A.setData=function(e){at={},ft={},_&&_.clearLayers(),M&&M.clearLayers(),D&&D.clearLayers(),P&&P.clearLayers(),H&&H.clearLayers();var t=b(ft,y,e.graph.links,C);H=r.featureGroup(t).addTo(j),typeof g.fixedCenter=="undefined"?O=mt(e.nodes.all.filter(v)):O=r.circle(r.latLng(new r.LatLng(g.fixedCenter.lat,g.fixedCenter.lng)),g.fixedCenter.radius*1e3);var n=m(e.nodes.all.filter(d),e.nodes.new),s=m(e.nodes.all.filter(p),e.nodes.lost),u=n.filter(v).map(h(at,function(){return w},C)),a=s.filter(v).map(h(at,function(){return E},C)),f=e.nodes.new.filter(v).map(h(at,function(){return T},C)),l=e.nodes.lost.filter(v).map(h(at,function(t){return t.lastseen.isAfter(i(e.now).subtract(3,"days"))?x:S},C));_=r.featureGroup(a).addTo(j),M=r.featureGroup(u).addTo(j),P=r.featureGroup(l).addTo(j),D=r.featureGroup(f).addTo(j);var c=o(9);c.load(e.nodes.all.filter(d).filter(v).map(gt)),ot.setData(c),ut.setData({online:n.filter(v),offline:s.filter(v),"new":e.nodes.new.filter(v),lost:e.nodes.lost.filter(v)}),vt(!0)},A.resetView=function(){K(),lt=undefined,vt()},A.gotoNode=function(e){K(),lt={type:"node",o:e},vt()},A.gotoLink=function(e){K(),lt={type:"link",o:e},vt()},A.gotoLocation=function(){},A.destroy=function(){X(),j.remove(),rt.parentNode&&rt.parentNode.removeChild(rt)},A.render=function(e){e.appendChild(rt),j.invalidateSize()},A}}),n("sidebar",[],function(){return function(e){var t=this,n=document.createElement("div");n.classList.add("sidebar"),e.appendChild(n);var r=document.createElement("button");n.appendChild(r),r.classList.add("sidebarhandle"),r.onclick=function(){n.classList.toggle("hidden")};var i=document.createElement("div");return i.classList.add("container"),n.appendChild(i),t.getWidth=function(){if(n.classList.contains("hidden"))return 0;var e=window.matchMedia("(max-width: 630pt)");return e.matches?0:n.offsetWidth},t.add=function(e){e.render(i)},t.ensureVisible=function(){n.classList.remove("hidden")},t.hide=function(){i.classList.add("hidden")},t.reveal=function(){i.classList.remove("hidden")},t.container=n,t}}),n("tabs",[],function(){return function(){function r(e){for(var r=0;r0}).map(function(e){return[e.count,e.label].join(" ")}).join(", "); n.textContent=ffsoPatch(t, h, l, c),r.textContent="Diese Daten sind von "+e.timestamp.format("LLLL")+"."}, t.render=function(t){var i=document.createElement("h2"); i.textContent=e.siteName,t.appendChild(i);var s=document.createElement("p");t.appendChild(s),n=document.createTextNode(""),s.appendChild(n),s.appendChild(document.createElement("br")),r=document.createTextNode(""),s.appendChild(r)},t}}),n("legend",[],function(){return function(){var e=this;return e.render=function(e){var t=document.createElement("p");t.setAttribute("class","legend"),e.appendChild(t);var n=document.createElement("span");n.setAttribute("class","legend-new");var r=document.createElement("span");r.setAttribute("class","symbol");var i=document.createTextNode(" Neuer Knoten");n.appendChild(r),n.appendChild(i),t.appendChild(n);var s=document.createElement("span");s.setAttribute("class","legend-online");var o=document.createElement("span");o.setAttribute("class","symbol");var u=document.createTextNode(" Knoten ist online");s.appendChild(o),s.appendChild(u),t.appendChild(s);var a=document.createElement("span");a.setAttribute("class","legend-offline");var f=document.createElement("span");f.setAttribute("class","symbol");var l=document.createTextNode(" Knoten ist offline");a.appendChild(f),a.appendChild(l),t.appendChild(a)},e}}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof n&&n.amd)n("virtual-dom",[],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.virtualDom=e()}}(function(){var e,n,r;return function i(e,n,r){function s(u,a){if(!n[u]){if(!e[u]){var f=typeof t=="function"&&t;if(!a&&f)return f(u,!0);if(o)return o(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[u]={exports:{}};e[u][0].call(c.exports,function(t){var n=e[u][1][t];return s(n?n:t)},c,c.exports,i,e,n,r)}return n[u].exports}var o=typeof t=="function"&&t;for(var u=0;u>>0:s>>>0;while(l=i.exec(e)){c=l.index+l[0].length;if(c>a){o.push(e.slice(a,l.index)),!r&&l.length>1&&l[0].replace(f,function(){for(var e=1;e1&&l.index=s)break}i.lastIndex===l.index&&i.lastIndex++}return a===e.length?(h||!i.test(""))&&o.push(""):o.push(e.slice(a)),o.length>s?o.slice(0,s):o},i}()},{}],6:[function(e,t,n){},{}],7:[function(e,t,n){"use strict";function o(e){var t=e[s];return t||(t=e[s]={}),t}var r=e("individual/one-version"),i="7";r("ev-store",i);var s="__EV_STORE_KEY@"+i;t.exports=o},{"individual/one-version":9}],8:[function(e,t,n){(function(e){"use strict";function r(e,t){return e in n?n[e]:(n[e]=t,t)}var n=typeof window!="undefined"?window:typeof e!="undefined"?e:{};t.exports=r}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],9:[function(e,t,n){"use strict";function i(e,t,n){var i="__INDIVIDUAL_ONE_VERSION_"+e,s=i+"_ENFORCE_SINGLETON",o=r(s,t);if(o!==t)throw new Error("Can only have one copy of "+e+".\n"+"You already have version "+o+" installed.\n"+"This means you cannot install version "+t);return r(i,n)}var r=e("./index.js");t.exports=i},{"./index.js":8}],10:[function(e,t,n){(function(n){var r=typeof n!="undefined"?n:typeof window!="undefined"?window:{},i=e("min-document");if(typeof document!="undefined")t.exports=document;else{var s=r["__GLOBAL_DOCUMENT_CACHE@4"];s||(s=r["__GLOBAL_DOCUMENT_CACHE@4"]=i),t.exports=s}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"min-document":6}],11:[function(e,t,n){"use strict";t.exports=function(t){return typeof t=="object"&&t!==null}},{}],12:[function(e,t,n){function s(e){return i.call(e)==="[object Array]"}var r=Array.isArray,i=Object.prototype.toString;t.exports=r||s},{}],13:[function(e,t,n){var r=e("./vdom/patch.js");t.exports=r},{"./vdom/patch.js":18}],14:[function(e,t,n){function s(e,t,n){for(var s in t){var a=t[s];a===undefined?o(e,s,a,n):i(a)?(o(e,s,a,n),a.hook&&a.hook(e,s,n?n[s]:undefined)):r(a)?u(e,t,n,s,a):e[s]=a}}function o(e,t,n,r){if(r){var s=r[t];if(!i(s))if(t==="attributes")for(var o in s)e.removeAttribute(o);else if(t==="style")for(var u in s)e.style[u]="";else typeof s=="string"?e[t]="":e[t]=null;else s.unhook&&s.unhook(e,t,n)}}function u(e,t,n,i,s){var o=n?n[i]:undefined;if(i==="attributes"){for(var u in s){var f=s[u];f===undefined?e.removeAttribute(u):e.setAttribute(u,f)}return}if(o&&r(o)&&a(o)!==a(s)){e[i]=s;return}r(e[i])||(e[i]={});var l=i==="style"?"":undefined;for(var c in s){var h=s[c];e[i][c]=h===undefined?l:h}}function a(e){if(Object.getPrototypeOf)return Object.getPrototypeOf(e);if(e.__proto__)return e.__proto__;if(e.constructor)return e.constructor.prototype}var r=e("is-object"),i=e("../vnode/is-vhook.js");t.exports=s},{"../vnode/is-vhook.js":26,"is-object":11}],15:[function(e,t,n){function f(e,t){var n=t?t.document||r:r,l=t?t.warn:null;e=a(e).a;if(u(e))return e.init();if(o(e))return n.createTextNode(e.text);if(!s(e))return l&&l("Item is not a valid virtual dom node",e),null;var c=e.namespace===null?n.createElement(e.tagName):n.createElementNS(e.namespace,e.tagName),h=e.properties;i(c,h);var p=e.children;for(var d=0;d>0,o=e[s];if(r===i)return o>=t&&o<=n;if(on))return!0;i=s-1}}return!1}function u(e,t){return e>t?1:-1}var r={};t.exports=i},{}],17:[function(e,t,n){function a(e,t,n){var i=e.type,o=e.vNode,u=e.patch;switch(i){case s.REMOVE:return f(t,o);case s.INSERT:return l(t,u,n);case s.VTEXT:return c(t,o,u,n);case s.WIDGET:return h(t,o,u,n);case s.VNODE:return p(t,o,u,n);case s.ORDER:return v(t,u),t;case s.PROPS:return r(t,u,o.properties),t;case s.THUNK:return m(t,n.patch(t,u,n));default:return t}}function f(e,t){var n=e.parentNode;return n&&n.removeChild(e),d(e,t),null}function l(e,t,n){var r=o(t,n);return e&&e.appendChild(r),e}function c(e,t,n,r){var i;if(e.nodeType===3)e.replaceData(0,e.length,n.text),i=e;else{var s=e.parentNode;i=o(n,r),s&&s.replaceChild(i,e)}return i}function h(e,t,n,r){var i=u(t,n),s;i?s=n.update(t,e)||e:s=o(n,r);var a=e.parentNode;return a&&s!==e&&a.replaceChild(s,e),i||d(e,t),s}function p(e,t,n,r){var i=e.parentNode,s=o(n,r);return i&&i.replaceChild(s,e),s}function d(e,t){typeof t.destroy=="function"&&i(t)&&t.destroy(e)}function v(e,t){var n=[],r=e.childNodes,i=r.length,s,o=t.reverse;for(s=0;ss+c&&u++,f=n[a],l=r[s+u]||null,h=0;while(f!==l&&h++l?f:l;for(var p=0;pf?a:f,c=[],h=0,p=0,d=0,v={},m=v.removes={},g=v.reverse={},y=!1;while(h-1?s(e,t,n):t.indexOf("%")>-1?o(e,t,n):t.indexOf(":")>-1?u(e,t):f(e._value,t,n)}function i(e,t){var n,r,i,s,o,u=t,f=["KB","MB","GB","TB","PB","EB","ZB","YB"],l=!1;if(t.indexOf(":")>-1)e._value=a(t);else if(t===g)e._value=0;else{for("."!==v[m].delimiters.decimal&&(t=t.replace(/\./g,"").replace(v[m].delimiters.decimal,".")),n=new RegExp("[^a-zA-Z]"+v[m].abbreviations.thousand+"(?:\\)|(\\"+v[m].currency.symbol+")?(?:\\))?)?$"),r=new RegExp("[^a-zA-Z]"+v[m].abbreviations.million+"(?:\\)|(\\"+v[m].currency.symbol+")?(?:\\))?)?$"),i=new RegExp("[^a-zA-Z]"+v[m].abbreviations.billion+"(?:\\)|(\\"+v[m].currency.symbol+")?(?:\\))?)?$"),s=new RegExp("[^a-zA-Z]"+v[m].abbreviations.trillion+"(?:\\)|(\\"+v[m].currency.symbol+")?(?:\\))?)?$"),o=0;o<=f.length&&!(l=t.indexOf(f[o])>-1?Math.pow(1024,o+1):!1);o++);e._value=(l?l:1)*(u.match(n)?Math.pow(10,3):1)*(u.match(r)?Math.pow(10,6):1)*(u.match(i)?Math.pow(10,9):1)*(u.match(s)?Math.pow(10,12):1)*(t.indexOf("%")>-1?.01:1)*((t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1)*Number(t.replace(/[^0-9\.]+/g,"")),e._value=l?Math.ceil(e._value):e._value}return e._value}function s(e,t,n){var r,i,s=t.indexOf("$"),o=t.indexOf("("),u=t.indexOf("-"),a="";return t.indexOf(" $")>-1?(a=" ",t=t.replace(" $","")):t.indexOf("$ ")>-1?(a=" ",t=t.replace("$ ","")):t=t.replace("$",""),i=f(e._value,t,n),1>=s?i.indexOf("(")>-1||i.indexOf("-")>-1?(i=i.split(""),r=1,(o>s||u>s)&&(r=0),i.splice(r,0,v[m].currency.symbol+a),i=i.join("")):i=v[m].currency.symbol+a+i:i.indexOf(")")>-1?(i=i.split(""),i.splice(-1,0,a+v[m].currency.symbol),i=i.join("")):i=i+a+v[m].currency.symbol,i}function o(e,t,n){var r,i="",s=100*e._value;return t.indexOf(" %")>-1?(i=" ",t=t.replace(" %","")):t=t.replace("%",""),r=f(s,t,n),r.indexOf(")")>-1?(r=r.split(""),r.splice(-1,0,i+"%"),r=r.join("")):r=r+i+"%",r}function u(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),r=Math.round(e._value-60*t*60-60*n);return t+":"+(10>n?"0"+n:n)+":"+(10>r?"0"+r:r)}function a(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}function f(e,n,r){var i,s,o,u,a,f,l=!1,c=!1,h=!1,p="",d=!1,y=!1,b=!1,w=!1,E=!1,S="",x="",T=Math.abs(e),N=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],C="",k=!1;if(0===e&&null!==g)return g;if(n.indexOf("(")>-1?(l=!0,n=n.slice(1,-1)):n.indexOf("+")>-1&&(c=!0,n=n.replace(/\+/g,"")),n.indexOf("a")>-1&&(d=n.indexOf("aK")>=0,y=n.indexOf("aM")>=0,b=n.indexOf("aB")>=0,w=n.indexOf("aT")>=0,E=d||y||b||w,n.indexOf(" a")>-1?(p=" ",n=n.replace(" a","")):n=n.replace("a",""),T>=Math.pow(10,12)&&!E||w?(p+=v[m].abbreviations.trillion,e/=Math.pow(10,12)):T=Math.pow(10,9)&&!E||b?(p+=v[m].abbreviations.billion,e/=Math.pow(10,9)):T=Math.pow(10,6)&&!E||y?(p+=v[m].abbreviations.million,e/=Math.pow(10,6)):(T=Math.pow(10,3)&&!E||d)&&(p+=v[m].abbreviations.thousand,e/=Math.pow(10,3))),n.indexOf("b")>-1)for(n.indexOf(" b")>-1?(S=" ",n=n.replace(" b","")):n=n.replace("b",""),o=0;o<=N.length;o++)if(i=Math.pow(1024,o),s=Math.pow(1024,o+1),e>=i&&s>e){S+=N[o],i>0&&(e/=i);break}return n.indexOf("o")>-1&&(n.indexOf(" o")>-1?(x=" ",n=n.replace(" o","")):n=n.replace("o",""),x+=v[m].ordinal(e)),n.indexOf("[.]")>-1&&(h=!0,n=n.replace("[.]",".")),u=e.toString().split(".")[0],a=n.split(".")[1],f=n.indexOf(","),a?(a.indexOf("[")>-1?(a=a.replace("]",""),a=a.split("["),C=t(e,a[0].length+a[1].length,r,a[1].length)):C=t(e,a.length,r),u=C.split(".")[0],C=C.split(".")[1].length?v[m].delimiters.decimal+C.split(".")[1]:"",h&&0===Number(C.slice(1))&&(C="")):u=t(e,null,r),u.indexOf("-")>-1&&(u=u.slice(1),k=!0),f>-1&&(u=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+v[m].delimiters.thousands)),0===n.indexOf(".")&&(u=""),(l&&k?"(":"")+(!l&&k?"-":"")+(!k&&c?"+":"")+u+C+(x?x:"")+(p?p:"")+(S?S:"")+(l&&k?")":"")}function l(e,t){v[e]=t}function c(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)}function h(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(e,t){var n=c(e),r=c(t);return n>r?n:r},-1/0)}var p,d="1.5.3",v={},m="en",g=null,y="0,0",b="undefined"!=typeof module&&module.exports;p=function(t){return p.isNumeral(t)?t=t.value():0===t||"undefined"==typeof t?t=0:Number(t)||(t=p.fn.unformat(t)),new e(Number(t))},p.version=d,p.isNumeral=function(t){return t instanceof e},p.language=function(e,t){if(!e)return m;if(e&&!t){if(!v[e])throw new Error("Unknown language : "+e);m=e}return(t||!v[e])&&l(e,t),p},p.languageData=function(e){if(!e)return v[m];if(!v[e])throw new Error("Unknown language : "+e);return v[e]},p.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),p.zeroFormat=function(e){g="string"==typeof e?e:null},p.defaultFormat=function(e){y="string"==typeof e?e:"0.0"},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){"use strict";if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var n,r,i=this.length>>>0,s=!1;for(1n;++n)this.hasOwnProperty(n)&&(s?r=e(r,this[n],n,this):(r=this[n],s=!0));if(!s)throw new TypeError("Reduce of empty array with no initial value");return r}),p.fn=e.prototype={clone:function(){return p(this)},format:function(e,t){return r(this,e?e:y,void 0!==t?t:Math.round)},unformat:function(e){return"[object Number]"===Object.prototype.toString.call(e)?e:i(this,e?e:y)},value:function(){return this._value},valueOf:function(){return this._value},set:function(e){return this._value=Number(e),this},add:function(e){function t(e,t){return e+n*t}var n=h.call(null,this._value,e);return this._value=[this._value,e].reduce(t,0)/n,this},subtract:function(e){function t(e,t){return e-n*t}var n=h.call(null,this._value,e);return this._value=[e].reduce(t,this._value*n)/n,this},multiply:function(e){function t(e,t){var n=h(e,t);return e*n*t*n/(n*n)}return this._value=[this._value,e].reduce(t,1),this},divide:function(e){function t(e,t){var n=h(e,t);return e*n/(t*n)}return this._value=[this._value,e].reduce(t),this},difference:function(e){return Math.abs(p(this._value).subtract(e).value())}},b&&(module.exports=p),"undefined"==typeof ender&&(this.numeral=p),"function"==typeof n&&n.amd&&n("numeral",[],function(){return p})}.call(this),n("nodelist",["sorttable","virtual-dom","numeral"],function(e,t,n){function r(e,t){if(t.flags.online&&"uptime"in t.statistics)return Math.round(t.statistics.uptime);if(!t.flags.online&&"lastseen"in t)return Math.round(-(e.unix()-t.lastseen.unix()))}function i(e){var t="";return e/=3600,e!==undefined&&(Math.abs(e)>=24?t=Math.round(e/24)+"d":t=Math.round(e)+"h"),t}var s=[{name:"Knoten",sort:function(e,t){var n=typeof e.nodeinfo.hostname=="string"?e.nodeinfo.hostname:e.nodeinfo.node_id,r=typeof t.nodeinfo.hostname=="string"?t.nodeinfo.hostname:t.nodeinfo.node_id;return typeof n=="string"&&typeof r=="string"?n.localeCompare(r):typeof n=="string"?1:typeof r=="string"?-1:0},reverse:!1},{name:"Uptime",sort:function(e,t){return e.uptime-t.uptime},reverse:!0},{name:"#Links",sort:function(e,t){return e.meshlinks-t.meshlinks},reverse:!0},{name:"Clients",sort:function(e,t){return("clients"in e.statistics?e.statistics.clients:-1)-("clients"in t.statistics?t.statistics.clients:-1)},reverse:!0}];return function(o){function u(e){var r=[],s=["hostname",e.flags.online?"online":"offline"];r.push(t.h("a",{className:s.join(" "),onclick:o.node(e),href:"#"},e.nodeinfo.hostname)),v(e)&&r.push(t.h("span",{className:"icon ion-location"}));var u=t.h("td",r),a=t.h("td",i(e.uptime)),f=t.h("td",e.meshlinks.toString()),l=t.h("td",n("clients"in e.statistics?e.statistics.clients:"").format("0,0"));return t.h("tr",[u,a,f,l])}var a=new e(s,0,u);this.render=function(e){var t=document.createElement("div");e.appendChild(t);var n=document.createElement("h2");n.textContent="Alle Knoten",t.appendChild(n),t.appendChild(a.el)},this.setData=function(e){var t=e.nodes.all.map(function(t){var n=Object.create(t);return n.uptime=r(e.now,t)||0,n.meshlinks=t.meshlinks||0,n});a.setData(t)}}}),n("simplenodelist",["moment","virtual-dom"],function(e,t){return function(n,r,i,s){var o=this,u,a;return o.render=function(e){u=document.createElement("div"),e.appendChild(u)},o.setData=function(o){var f=o.nodes[n];if(f.length===0){while(u.firstChild)u.removeChild(u.firstChild);a=null;return}if(!a){var l=document.createElement("h2");l.textContent=s,u.appendChild(l);var c=document.createElement("table");u.appendChild(c),a=document.createElement("tbody"),a.last=t.h("tbody"),c.appendChild(a)}var h=f.map(function(n){var s=e(n[r]).from(o.now),u=[],a=["hostname",n.flags.online?"online":"offline"];u.push(t.h("a",{className:a.join(" "),onclick:i.node(n),href:"#"},n.nodeinfo.hostname)),v(n)&&u.push(t.h("span",{className:"icon ion-location"}));var f=t.h("td",u),l=t.h("td",s);return t.h("tr",[f,l])}),p=t.h("tbody",h);a=t.patch(a,t.diff(a.last,p)),a.last=p},o}}),n("infobox/link",[],function(){function e(e,t,n){var r={};return r["{SOURCE}"]=t,r["{TARGET}"]=n,E(e,r)}return function(t,n,r,i){var s=!i.source.node,o=document.createElement("h2"),u=document.createElement("a");s||(u.href="#",u.onclick=r.node(i.source.node)),u.textContent=s?i.source.id:i.source.node.nodeinfo.hostname,o.appendChild(u),o.appendChild(document.createTextNode(" → "));var a=document.createElement("a");a.href="#",a.onclick=r.node(i.target.node),a.textContent=i.target.node.nodeinfo.hostname,o.appendChild(a),n.appendChild(o);var f=document.createElement("table");f.classList.add("attributes"),b(f,"TQ",y(i)),b(f,"Entfernung",g(i)),b(f,"Typ",i.type);var c=s?null:l(i.source.node.nodeinfo,["hardware","model"]),h=l(i.target.node.nodeinfo,["hardware","model"]);b(f,"Hardware",(c!=null?c:"unbekannt")+" – "+(h!=null?h:"unbekannt")),n.appendChild(f);if(t.linkInfos){var p=i.source.node_id,d=i.target.node_id;t.linkInfos.forEach(function(t){var r=document.createElement("h4");r.textContent=t.name,n.appendChild(r),n.appendChild(e(t,p,d))})}}}),!function(){function e(e,t){if(!e||"TABLE"!==e.tagName)throw new Error("Element must be a table");this.init(e,t||{})}var t=[],n=function(e){var t;return window.CustomEvent&&"function"==typeof window.CustomEvent?t=new CustomEvent(e):(t=document.createEvent("CustomEvent"),t.initCustomEvent(e,!1,!1,void 0)),t},r=function(e){return e.getAttribute("data-sort")||e.textContent||e.innerText||""},i=function(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),e===t?0:t>e?1:-1},s=function(e,t){return function(n,r){var i=e(n.td,r.td);return 0===i?t?r.index-n.index:n.index-r.index:i}};e.extend=function(e,n,r){if("function"!=typeof n||"function"!=typeof r)throw new Error("Pattern and sort must be a function");t.push({name:e,pattern:n,sort:r})},e.prototype={init:function(e,t){var n,r,i,s,o=this;if(o.table=e,o.thead=!1,o.options=t,e.rows&&e.rows.length>0&&(e.tHead&&e.tHead.rows.length>0?(n=e.tHead.rows[e.tHead.rows.length-1],o.thead=!0):n=e.rows[0]),n){var u=function(){o.current&&o.current!==this&&(o.current.classList.remove("sort-up"),o.current.classList.remove("sort-down")),o.current=this,o.sortTable(this)};for(i=0;i0&&c.push(l),h++;if(!c)return}for(h=0;hh;h++)g[h]?(l=g[h],b++):l=m[h-b].tr,u.table.tBodies[0].appendChild(l);u.table.dispatchEvent(n("afterSort"))}},refresh:function(){void 0!==this.current&&this.sortTable(this.current,!0)}},"undefined"!=typeof module&&module.exports?module.exports=e:window.Tablesort=e}(),n("tablesort",function(e){return function(){var t,n;return t||e.Tablesort}}(this)),function(){var e=function(e){return e.replace(/[^\-?0-9.]/g,"")},t=function(e,t){return e=parseFloat(e),t=parseFloat(t),e=isNaN(e)?0:e,t=isNaN(t)?0:t,e-t};Tablesort.extend("number",function(e){return e.match(/^-?[£\x24Û¢´€]?\d+\s*([,\.]\d{0,2})/)||e.match(/^-?\d+\s*([,\.]\d{0,2})?[£\x24Û¢´€]/)||e.match(/^-?(\d)*-?([,\.]){0,1}-?(\d)+([E,e][\-+][\d]+)?%?$/)},function(n,r){return n=e(n),r=e(r),t(r,n)})}(),n("tablesort.numeric",["tablesort"],function(){}),n("infobox/node",["moment","numeral","tablesort","tablesort.numeric"],function(e,t,n){function r(e){function n(e){var n=Math.sign(e)>-1?"' N":"' S";e=Math.abs(e);var r=Math.floor(e),i=e*60%60;return r=(r<10?"0":"")+r,r+"° "+t(i).format("0.000")+n}function r(e){var n=Math.sign(e)>-1?"' E":"' W";e=Math.abs(e);var r=Math.floor(e),i=e*60%60;return r=(r<100?"0"+(r<10?"0":""):"")+r,r+"° "+t(i).format("0.000")+n}return v(e)?function(t){var i=e.nodeinfo.location.latitude,s=e.nodeinfo.location.longitude,o=document.createElement("a");o.textContent=n(i)+" "+r(s),o.href="geo:"+i+","+s,t.appendChild(o)}:undefined}function i(e){return function(t){t.classList.add(e.flags.unseen?"unseen":e.flags.online?"online":"offline"),e.flags.online?t.textContent="online, letzte Nachricht "+e.lastseen.fromNow()+" ("+e.lastseen.format("DD.MM.YYYY, H:mm:ss")+")":t.textContent="offline, letzte Nachricht "+e.lastseen.fromNow()+" ("+e.lastseen.format("DD.MM.YYYY, H:mm:ss")+")"}}function s(e){var t=l(e.nodeinfo,["software","firmware","release"]),n=l(e.nodeinfo,["software","firmware","base"]);return t===null||n===null?undefined:t+" / "+n}function o(e,t){var n=l(e.nodeinfo,["system","site_code"]),r=n;return t.siteNames&&t.siteNames.forEach(function(e){n===e.site&&(r=e.name)}),r}function u(t){return"uptime"in t.statistics?e.duration(t.statistics.uptime,"seconds").humanize():undefined}function a(e){return"firstseen"in e?e.firstseen.fromNow(!0):undefined}function f(e){var t={1:"2412 MHz",2:"2417 MHz",3:"2422 MHz",4:"2427 MHz",5:"2432 MHz",6:"2437 MHz",7:"2442 MHz",8:"2447 MHz",9:"2452 MHz",10:"2457 MHz",11:"2462 MHz",12:"2467 MHz",13:"2472 MHz",36:"5180 MHz (Indoors)",40:"5200 MHz (Indoors)",44:"5220 MHz (Indoors)",48:"5240 MHz (Indoors)",52:"5260 MHz (Indoors/DFS/TPC)",56:"5280 MHz (Indoors/DFS/TPC)",60:"5300 MHz (Indoors/DFS/TPC)",64:"5320 MHz (Indoors/DFS/TPC)",100:"5500 MHz (DFS) !!",104:"5520 MHz (DFS) !!",108:"5540 MHz (DFS) !!",112:"5560 MHz (DFS) !!",116:"5580 MHz (DFS) !!",120:"5600 MHz (DFS) !!",124:"5620 MHz (DFS) !!",128:"5640 MHz (DFS) !!",132:"5660 MHz (DFS) !!",136:"5680 MHz (DFS) !!",140:"5700 MHz (DFS) !!"};return e in t?t[e]:""}function c(e){return e?e+" ("+f(e)+")":undefined}function h(e){return e.flags.online?function(t){t.appendChild(document.createTextNode(e.statistics.clients>0?e.statistics.clients:"keine")),t.appendChild(document.createElement("br"));var n=document.createElement("span");n.classList.add("clients"),n.textContent=" ".repeat(e.statistics.clients),t.appendChild(n)}:undefined}function p(e){var t=l(e.nodeinfo,["network","addresses"]);return t===null?undefined:(t.sort(),function(e){t.forEach(function(t,n){var r=!t.startsWith("fe80:");n>0&&e.appendChild(document.createElement("br"));if(r){var i=document.createElement("a");t.includes(".")?i.href="http://"+t+"/":i.href="http://["+t+"]/",i.textContent=t,e.appendChild(i)}else e.appendChild(document.createTextNode(t))})})}function d(e,t){var n=document.createElement("span");n.classList.add("bar"),n.classList.add(e);var r=document.createElement("span");r.style.width=t*100+"%",n.appendChild(r);var i=document.createElement("label");return i.textContent=Math.round(t*100)+" %",n.appendChild(i),n}function m(e,t){var n=document.createElement("span");n.classList.add("bar"),n.classList.add(e);var r=document.createElement("span");t>=1?(r.style.width=t*100%100+"%",r.style.background="rgba(255, 50, 50, 0.9)",n.style.background="rgba(255, 50, 50, 0.6)",n.appendChild(r)):(r.style.width=t*100+"%",n.appendChild(r));var i=document.createElement("label");return i.textContent=+(Math.round(t+"e+2")+"e-2"),n.appendChild(i),n}function w(e){return"loadavg"in e.statistics?function(t){t.appendChild(m("load-avg",e.statistics.loadavg))}:undefined}function S(e){return"memory_usage"in e.statistics?function(t){t.appendChild(d("memory-usage",e.statistics.memory_usage))}:undefined}function x(e,t){return t?function(n){n.appendChild(d("airtime"+e.toString(),t))}:undefined}function T(e,t){var n=document.createElement("a");if(!e)return n;var r=!e.node;return n.classList.add("hostname"),n.textContent=r?e.id?e.id:e:e.node.nodeinfo.hostname,r||(n.href="#",n.onclick=t.node(e.node)),n}function N(e,t){var n;l(e.statistics,["nexthop"])&&(n=l(e.statistics,["nexthop"])),l(e.statistics,["gateway_nexthop"])&&(n=l(e.statistics,["gateway_nexthop"]));var r=l(e.statistics,["gateway"]);return r?function(e){n&&(e.appendChild(T(n,t)),r!==n&&e.appendChild(document.createTextNode(" -> ... -> "))),r!==n&&e.appendChild(T(r,t))}:null}function C(e){var t=l(e.nodeinfo,["pages"]);return t===null?undefined:(t.sort(),function(e){t.forEach(function(t,n){n>0&&e.appendChild(document.createElement("br"));var r=document.createElement("span"),i=document.createElement("a");i.href=t;if(t.search(/^https:\/\//i)!==-1){var s=document.createElement("span");s.className="ion-android-lock",r.appendChild(s);var o=document.createTextNode(" ");r.appendChild(o),i.textContent=t.replace(/^https:\/\//i,"")}else i.textContent=t.replace(/^http:\/\//i,"");r.appendChild(i),e.appendChild(r)})})}function k(e){var t=l(e.nodeinfo,["software","autoupdater"]);return t?t.enabled?"aktiviert ("+t.branch+")":"deaktiviert":undefined}function L(e,t){var n={};return n["{NODE_ID}"]=t.nodeinfo.node_id?t.nodeinfo.node_id:"unknown",n["{NODE_NAME}"]=t.nodeinfo.hostname?t.nodeinfo.hostname:"unknown",E(e,n)}return function(e,t,f,d){var m=document.createElement("h2");m.textContent=d.nodeinfo.hostname,t.appendChild(m);var E=document.createElement("table");E.classList.add("attributes"),b(E,"Status",i(d)),b(E,"Gateway",d.flags.gateway?"ja":null),b(E,"Koordinaten",r(d)),e.showContact&&b(E,"Kontakt",l(d.nodeinfo,["owner","contact"])),b(E,"Hardware",l(d.nodeinfo,["hardware","model"])),b(E,"Primäre MAC",l(d.nodeinfo,["network","mac"])),b(E,"Node ID",l(d.nodeinfo,["node_id"])),b(E,"Firmware",s(d)),b(E,"Site",o(d,e)),b(E,"Uptime",u(d)),b(E,"Teil des Netzes",a(d)),b(E,"Kanal 2.4 GHz",c(l(d.nodeinfo,["wireless","chan2"]))),b(E,"Kanal 5 GHz",c(l(d.nodeinfo,["wireless","chan5"]))),b(E,"Airtime 2.4 GHz",x(2,l(d.statistics,["wireless","airtime2"]))),b(E,"Airtime 5 GHz",x(5,l(d.statistics,["wireless","airtime5"]))),b(E,"Systemlast",w(d)),b(E,"Arbeitsspeicher",S(d)),b(E,"IP Adressen",p(d)),b(E,"Webseite",C(d)),b(E,"Gewähltes Gateway",N(d,f)),b(E,"Autom. Updates",k(d)),b(E,"Clients",h(d)),t.appendChild(E),e.nodeInfos&&e.nodeInfos.forEach(function(e){var n=document.createElement("h4");n.textContent=e.name,t.appendChild(n),t.appendChild(L(e,d))});if(d.neighbours.length>0){var A=document.createElement("h3");A.textContent="Links ("+d.neighbours.length+")",t.appendChild(A);var O=document.createElement("table"),M=document.createElement("thead"),_=document.createElement("tr"),D=document.createElement("th");D.textContent=" ",_.appendChild(D);var P=document.createElement("th");P.textContent="Knoten",P.classList.add("sort-default"),_.appendChild(P);var H=document.createElement("th");H.textContent="TQ",_.appendChild(H);var B=document.createElement("th");B.textContent="Typ",_.appendChild(B);var j=document.createElement("th");j.textContent="Entfernung",_.appendChild(j),M.appendChild(_),O.appendChild(M);var F=document.createElement("tbody");d.neighbours.forEach(function(e){var t=!e.node,n=document.createElement("tr"),r=document.createElement("td");r.appendChild(document.createTextNode(e.incoming?" ← ":" → ")),n.appendChild(r);var i=document.createElement("td");i.appendChild(T(e,f));if(!t&&v(e.node)){var s=document.createElement("span");s.classList.add("icon"),s.classList.add("ion-location"),i.appendChild(s)}n.appendChild(i);var o=document.createElement("td"),u=document.createElement("a");u.href="#",u.textContent=y(e.link),u.onclick=f.link(e.link),o.appendChild(u),n.appendChild(o);var a=document.createElement("td"),l=document.createElement("a");l.href="#",l.textContent=e.link.type,l.onclick=f.link(e.link),a.appendChild(l),n.appendChild(a);var c=document.createElement("td"),h=document.createElement("a");h.href="#",h.textContent=g(e.link),h.onclick=f.link(e.link),c.appendChild(h),c.setAttribute("data-sort",e.link.distance!==undefined?-e.link.distance:1),n.appendChild(c),F.appendChild(n)}),O.appendChild(F),O.className="node-links",new n(O),t.appendChild(O)}}}),n("infobox/location",[],function(){return function(e,t,n,r){function h(e,t,n,r){var i=typeof r!="undefined"?r:!0,s=document.createElement("div"),o=document.createElement("h3");o.textContent=t,s.appendChild(o);var u=document.createElement("button");u.className="ion-ios-copy",u.title="Kopieren",u.onclick=function(){p(n.id)},n.id="location-"+e,n.readOnly=!0;var a=document.createElement("p");return a.appendChild(n),a.appendChild(u),s.appendChild(a),s.id="box-"+e,s.style.display=i?"block":"none",s}function p(e){var t=document.querySelector("#"+e);t.select();try{document.execCommand("copy")}catch(n){console.log(n)}}function d(){document.getElementById("box-uci").style.display="none",document.getElementById("box-lat").style.display="block",document.getElementById("box-lng").style.display="block"}function v(){document.getElementById("box-uci").style.display="block",document.getElementById("box-lat").style.display="none",document.getElementById("box-lng").style.display="none"}var s=document.createElement("h2");s.textContent="Location: "+r.toString(),t.appendChild(s),i("https://nominatim.openstreetmap.org/reverse?format=json&lat="+r.lat+"&lon="+r.lng+"&zoom=18&addressdetails=0").then(function(e){e.display_name&&(s.textContent=e.display_name)});var o=document.createElement("input");o.type="text",o.value=r.lat.toFixed(9),t.appendChild(h("lat","Breitengrad",o));var u=document.createElement("input");u.type="text",u.value=r.lng.toFixed(9),t.appendChild(h("lng","Längengrad",u));var a=document.createElement("textarea");a.value="uci set gluon-node-info.@location[0]='location'; uci set gluon-node-info.@location[0].share_location='1';uci set gluon-node-info.@location[0].latitude='"+r.lat.toFixed(9)+"';"+"uci set gluon-node-info.@location[0].longitude='"+r.lng.toFixed(9)+"';"+"uci commit gluon-node-info",t.appendChild(h("uci","Befehl",a,!1));var f=document.createElement("a");f.textContent="plain",f.onclick=function(){return d(),!1},f.href="#";var l=document.createElement("a");l.textContent="uci",l.onclick=function(){return v(),!1},l.href="#";var c=document.createElement("p");c.appendChild(document.createTextNode("Du kannst zwischen ")),c.appendChild(f),c.appendChild(document.createTextNode(" und ")),c.appendChild(l),c.appendChild(document.createTextNode(" wechseln.")),t.appendChild(c)}}),n("infobox/main",["infobox/link","infobox/node","infobox/location"],function(e,t,n){return function(r,i,s){function a(){u&&u.parentNode&&(u.parentNode.removeChild(u),u=undefined,i.reveal())}function f(){a(),i.ensureVisible(),i.hide(),u=document.createElement("div"),i.container.insertBefore(u,i.container.firstChild),u.scrollIntoView(!1),u.classList.add("infobox"),u.destroy=a;var e=document.createElement("button");e.classList.add("close"),e.onclick=s.reset,u.appendChild(e)}var o=this,u;return o.resetView=a,o.gotoNode=function(e){f(),new t(r,u,s,e)},o.gotoLink=function(t){f(),new e(r,u,s,t)},o.gotoLocation=function(e){f(),new n(r,u,s,e)},o}}),!function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&1>=t||8===t||t>=20?"ste":"de"},currency:{symbol:"€ "}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("be-nl",e)}(),function(){var e={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("chs",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("cs",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"DKK"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("da-dk",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("de-ch",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("de",e)}(),function(){var e={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"£"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("en-gb",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("es",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("es",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("et",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("fi",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("fr-CA",e)}(),function(){var e={delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("fr-ch",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("fr",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(){return"."},currency:{symbol:" Ft"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("hu",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("it",e)}(),function(){var e={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("ja",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&1>=t||8===t||t>=20?"ste":"de"},currency:{symbol:"€ "}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("nl-nl",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:"PLN"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("pl",e)}(),function(){var e={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"R$"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("pt-br",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("pt-pt",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("ru-UA",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"руб."}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("ru",e)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("sk",e)}(),function(){var e={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(){return"."},currency:{symbol:"฿"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("th",e)}(),function(){var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},t={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(t){if(0===t)return"'ıncı";var n=t%10,r=t%100-n,i=t>=100?100:null;return e[n]||e[r]||e[i]},currency:{symbol:"₺"}};"undefined"!=typeof module&&module.exports&&(module.exports=t),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("tr",t)}(),function(){var e={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴"}};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("uk-UA",e)}(),n("numeral-intl",["numeral"],function(e){return function(){var t,n;return t||e.numeral}}(this)),n("filters/genericnode",[],function(){return function(e,t,n,r){function a(e){var s=l(e,t.slice(0));return r&&(s=r(s)),s===n?!i:i}function f(e){s=e}function c(e){i?e.parentNode.classList.add("not"):e.parentNode.classList.remove("not"),u.textContent=(i?"¬":"")+n}function h(e){e.appendChild(o),c(e),o.onclick=function(){i=!i,c(e),s&&s()}}var i=!1,s,o=document.createElement("label"),u=document.createElement("strong");return o.textContent=e+" ",o.appendChild(u),{run:a,setRefresh:f,render:h}}}),n("vercomp",[],function(){function e(e){return/^\d$/.test(e)?0:/^[a-z]$/i.test(e)?e.charCodeAt(0):e==="~"?-1:e?e.charCodeAt(0)+256:0}function t(t,n){var r=0,i=0;while(ru&&(u=e[1])});var f=o.map(function(s){var o=s[1]/u,f=e.contrast(a(o),"white"),l=e.contrast(a(o),"black"),c=new r(i,s[2],s[0],s[3]),h=t.h("a",{href:"#",onclick:T(c)},s[0]),p=t.h("th",h),d=t.h("td",t.h("span",{style:{width:Math.round(o*100)+"%",backgroundColor:a(o).hex(),color:f>l?"white":"black"}},n(s[1]).format("0,0")));return t.h("tr",[p,d])}),l=t.h("table",f);s=t.patch(s,t.diff(s.last,l)),s.last=l}var u=this,a=e.scale("YlGnBu").mode("lab"),f=document.createElement("table");f.classList.add("proportion");var c=document.createElement("table");c.classList.add("proportion");var h=document.createElement("table");h.classList.add("proportion");var p=document.createElement("table");p.classList.add("proportion");var v=document.createElement("table");v.classList.add("proportion");var m=document.createElement("table");m.classList.add("proportion");var g=document.createElement("table");g.classList.add("proportion");var y=document.createElement("table");y.classList.add("proportion");var b=document.createElement("table");return b.classList.add("proportion"),u.setData=function(e){var t=e.nodes.all.filter(d),n=t.concat(e.nodes.lost),r={};e.nodes.all.forEach(function(e){r[e.nodeinfo.node_id]=e});var o=S(n,["flags","online"],function(e){return e?"online":"offline"}),u=S(n,["nodeinfo","software","firmware","release"]),a=S(n,["nodeinfo","hardware","model"],function(e){return e&&(e=e.replace(/\(r\)|\(tm\)/gi,"").replace(/AMD |Intel |TP-Link | CPU| Processor/g,""),e.indexOf("@")>0&&(e=e.substring(0,e.indexOf("@")))),e}),l=S(n,["nodeinfo","location"],function(e){return e&&e.longitude&&e.latitude?"ja":"nein"}),w=S(n,["nodeinfo","software","autoupdater"],function(e){return e===null?null:e.enabled?e.branch:"(deaktiviert)"}),E=S(n,["flags","uplink"],function(e){return e?"ja":"nein"}),T=S(t,["statistics","gateway"],function(e){return e===null?null:e.node?e.node.nodeinfo.hostname:e.id?e.id:e}),C=x(t,["statistics","gateway"],function(e){return e===null?null:e.node?e.node.nodeinfo.hostname:e.id?e.id:e}),k=S(n,["nodeinfo","system","site_code"],function(e){var t=e;return s.siteNames&&s.siteNames.forEach(function(n){e===n.site&&(t=n.name)}),t});N("Status",f,o.sort(function(e,t){return t[1]-e[1]})),N("Firmware",c,u.sort(function(e,t){return i(t[0],e[0])})),N("Hardware",h,a.sort(function(e,t){return t[1]-e[1]})),N("Koordinaten",p,l.sort(function(e,t){return t[1]-e[1]})),N("Uplink",m,E.sort(function(e,t){return t[1]-e[1]})),N("Autom. Updates",v,w.sort(function(e,t){return t[1]-e[1]})),N("Gateway",g,T.sort(function(e,t){return t[1]-e[1]})),N("Gateway",y,C.sort(function(e,t){return t[1]-e[1]})),N("Site",b,k.sort(function(e,t){return t[1]-e[1]}))},u.render=function(e){var t;u.renderSingle(e,"Status",f),u.renderSingle(e,"Nodes an Gateway",g),u.renderSingle(e,"Clients an Gateway",y),u.renderSingle(e,"Firmwareversionen",c),u.renderSingle(e,"Uplink",m),u.renderSingle(e,"Hardwaremodelle",h),u.renderSingle(e,"Auf der Karte sichtbar",p),u.renderSingle(e,"Autoupdater",v),u.renderSingle(e,"Site",b),s.globalInfos&&s.globalInfos.forEach(function(n){t=document.createElement("h2"),t.textContent=n.name,e.appendChild(t),e.appendChild(w(n))})},u.renderSingle=function(e,t,n){var r;r=document.createElement("h2"),r.textContent=t,r.onclick=function(){n.classList.toggle("hidden")},e.appendChild(r),e.appendChild(n)},u}}),n("forcegraph",["d3"],function(e){var t=200,n=15,r=12;return function(i,s,o,u){function _(e){return Math.sqrt(e.length/Math.PI)*M*1.41}function D(){if(!c())return;var e=b.map(function(e){return{id:e.o.id,x:e.x,y:e.y}});localStorage.setItem("graph/nodeposition",JSON.stringify(e))}function P(e){return e.o.node&&e.o.node.nodeinfo?e.o.node.nodeinfo.hostname:e.o.id}function H(){var t=nt(e.mouse(g)),r=b.filter(function(e){return et(t,e)=a)return!0;var t=u(f(e/a));return v.translate([t.x,t.y]),v.scale(t.scale),R(),!1})}}function q(){A={translate:v.translate(),scale:v.scale()},R()}function R(){var e=v.translate(),t=v.scale();U(e,t)}function U(e,t){h={left:-e[0]/t,top:-e[1]/t,right:(f.width-e[0])/t,bottom:(f.height-e[1])/t},requestAnimationFrame(Q)}function z(){var e=o(),t=g.offsetWidth-e,n=g.offsetHeight;return[t,n]}function W(e,t){var n=o(),r=z(),i=Math.max(1,t[0]-e[0]),s=Math.max(1,t[1]-e[1]),u=r[0]/i,a=r[1]/s,f=v.scaleExtent()[1],l=.5*Math.min(f,Math.min(u,a)),c=[(e[0]+t[0])/2,(e[1]+t[1])/2],h=-c[0]*l+r[0]/2,p=-c[1]*l+r[1]/2,d=[h+n,p];I(d,l)}function X(t){S=[],x=[];if(E!==undefined){if(E.type==="node"){var n=p[E.o.nodeinfo.node_id];n&&(S=[n],t||W([n.x,n.y],[n.x,n.y]));return}if(E.type==="link"){var r=d[E.o.id];if(r){x=[r];if(!t){var i=e.extent([r.source,r.target],function(e){return e.x}),s=e.extent([r.source,r.target],function(e){return e.y});W([i[0],s[0]],[i[1],s[1]])}}return}}t||(A?I(A.translate,A.scale):W([0,0],m.size()))}function V(e){var t=e.neighbours.filter(function(e){return!e.link.o.isVPN}),n=t.reduce(function(e,t){return[e[0]+t.node.x,e[1]+t.node.y]},[0,0]),r=n[0]-e.x*t.length,i=n[1]-e.y*t.length,s=Math.PI/2;t.length>0&&(s=Math.PI+Math.atan2(i,r));var o=Math.cos(s),u=Math.sin(s),a=e.labelWidth,f=e.labelHeight,c=e.x+e.labelA*Math.pow(Math.abs(o),.4)*Math.sign(o)-a/2,h=e.y+e.labelB*Math.pow(Math.abs(u),.4)*Math.sign(u)-f/2;l.drawImage(e.label,c,h,a,f)}function $(e){return e.source.x>h.left&&e.source.xh.top&&e.source.yh.left&&e.target.xh.top&&e.target.yh.left&&e.x-th.top&&e.y-t.9&&b.filter(J).forEach(V,n),l.restore()}function G(){Q()}function Y(){var e=window.devicePixelRatio;f.width=g.offsetWidth*e,f.height=g.offsetHeight*e,f.style.width=g.offsetWidth+"px",f.style.height=g.offsetHeight+"px",l.setTransform(1,0,0,1,0,0),l.scale(e,e),requestAnimationFrame(Q)}function Z(e,t){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)}function et(e,t){return Math.sqrt(Z(e,t))}function tt(e,t,n){var r=Z(t,n);if(r===0)return Z(e,t);var i=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return i<0?Z(e,t):i>1?Z(e,n):Math.sqrt(Z(e,{x:t.x+i*(n.x-t.x),y:t.y+i*(n.y-t.y)}))}function nt(e){var t=v.translate(),n=v.scale();return{x:(e[0]-t[0])/n,y:(e[1]-t[1])/n}}function rt(){if(e.event.defaultPrevented)return;var t=nt(e.mouse(g)),i=b.filter(function(e){return et(t,e)0){u.node(i[0].o.node)();return}var s=w.filter(function(e){return!e.o.isVPN}).filter(function(e){return tt(t,e.source,e.target)0){u.link(s[0].o)();return}}function it(e,t){var n=z(),r=[n[0]/t,n[1]/t],i=o(),s=[n[0]-r[0],n[1]-r[1]],u=e.translate(),a=[i+(u[0]-i-s[0]/2)*t,(u[1]-s[1]/2)*t];I(a,e.scale()*t)}function st(t){return function(){var n=e.event;if(n.altKey||n.ctrlKey||n.metaKey)return;n.keyCode===43&&it(t,1.41),n.keyCode===45&&it(t,1/1.41)}}var a=this,f,l,h,p,d,v,m,g,y=!1,b=[],w=[],E,S=[],x=[],T=[],N=[],C=[],k=[],L=[],A,O,M=70,F=e.behavior.drag().on("dragstart",H).on("drag",B).on("dragend",j);return g=document.createElement("div"),g.classList.add("graph"),v=e.behavior.zoom().scaleExtent([1/3,3]).on("zoom",q).translate([o(),0]),f=e.select(g).attr("tabindex",1).on("keypress",st(v)).call(v).append("canvas").on("click",rt).call(F).node(),l=f.getContext("2d"),m=e.layout.force().charge(-250).gravity(.1).linkDistance(function(e){return e.o.isVPN?0:M}).linkStrength(function(e){return e.o.isVPN?0:Math.max(.5,1/e.o.tq)}).on("tick",G).on("end",D),window.addEventListener("resize",Y),R(),a.setData=function(e){var t={};b.forEach(function(e){t[e.o.id]=e}),b=e.graph.nodes.map(function(e){var n;return e.id in t?n=t[e.id]:n={},n.o=e,n});var n={};b.forEach(function(e){n[e.o.id]=e});var r={};w.forEach(function(e){r[e.o.id]=e}),w=e.graph.links.map(function(e){var t;return e.id in r?t=r[e.id]:t={},t.o=e,t.source=n[e.source.id],t.target=n[e.target.id],e.isVPN?t.color="rgba(255, 255, 255, "+.6/e.tq+")":t.color=s(e.tq).hex(),t}),d={},p={},b.forEach(function(e){e.neighbours={},e.o.node&&(p[e.o.node.nodeinfo.node_id]=e);var t=P(e),n=5,r=3,i=document.createElement("canvas"),s=window.devicePixelRatio,o=i.getContext("2d");o.font="11px Roboto";var u=o.measureText(t).width,a=v.scaleExtent()[1]*s;i.width=(u+2*r)*a,i.height=(16+2*r)*a,o.scale(a,a),o.textBaseline="middle",o.textAlign="center",o.fillStyle="rgba(242, 227, 198, 1.0)",o.shadowColor="rgba(0, 0, 0, 1)",o.shadowBlur=5,o.fillText(t,i.width/(2*a),i.height/(2*a)),e.label=i,e.labelWidth=i.width/a,e.labelHeight=i.height/a,e.labelA=n+i.width/(2*a),e.labelB=n+i.height/(2*a)}),w.forEach(function(e){e.source.neighbours[e.target.o.id]={node:e.target,link:e},e.target.neighbours[e.source.o.id]={node:e.source,link:e},e.o.source&&e.o.target&&(d[e.o.id]=e)}),b.forEach(function(e){e.neighbours=Object.keys(e.neighbours).map(function(t){return e.neighbours[t]})}),T=b.filter(function(e){return!e.o.unseen&&e.o.node}),N=T.filter(function(e){return e.o.node.flags.uplink}),C=T.filter(function(e){return!e.o.node.flags.uplink}),k=b.filter(function(e){return e.o.unseen&&e.o.node}),L=b.filter(function(e){return!e.o.node});if(c()){var i=JSON.parse(localStorage.getItem("graph/nodeposition"));if(i){var o={};i.forEach(function(e){o[e.id]=e}),b.forEach(function(e){o[e.o.id]&&(e.x===undefined||e.y===undefined)&&(e.x=o[e.o.id].x,e.y=o[e.o.id].y)})}}var u=_(b);m.nodes(b).links(w).size([u,u]),X(!0),m.start(),Y()},a.resetView=function(){E=undefined,X(),y=!0},a.gotoNode=function(e){E={type:"node",o:e},X(),y=!0},a.gotoLink=function(e){E={type:"link",o:e},X(),y=!0},a.destroy=function(){m.stop(),f.remove(),m=null,g.parentNode&&g.parentNode.removeChild(g)},a.render=function(e){e.appendChild(g),Y(),X()},a}}),n("title",[],function(){return function(e){function t(t){var n=[e.siteName];t!==undefined&&n.push(t),document.title=n.join(": ")}return this.resetView=function(){t()},this.gotoNode=function(e){e&&t(e.nodeinfo.hostname)},this.gotoLink=function(e){e&&t((e.source.node?e.source.node.nodeinfo.hostname:e.source.id)+" – "+e.target.node.nodeinfo.hostname)},this.gotoLocation=function(){},this.destroy=function(){},this}}),n("about",[],function(){return function(){this.render=function(e){var t=document.createElement("div");e.appendChild(t);var n="

Über HopGlass

";n+="

Mit Doppelklick und Shift+Doppelklick kann man in der Karte ",n+="auch zoomen.

",n+="

AGPL 3

",n+="

Copyright (C) Milan Pässler

",n+="

Copyright (C) Nils Schneider

",n+="

This program is free software: you can redistribute it and/or ",n+="modify it under the terms of the GNU Affero General Public ",n+="License as published by the Free Software Foundation, either ",n+="version 3 of the License, or (at your option) any later version.

",n+="

This program is distributed in the hope that it will be useful, ",n+="but WITHOUT ANY WARRANTY; without even the implied warranty of ",n+="MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ",n+="GNU Affero General Public License for more details.

",n+="

You should have received a copy of the GNU Affero General ",n+="Public License along with this program. If not, see ",n+='',n+="https://www.gnu.org/licenses/.

",n+="

The source code is available at ",n+='',n+="https://github.com/plumpudding/hopglass.",t.innerHTML=n}}}),n("filters/nodefilter",[],function(){return function(e){return function(t){var n=Object.create(t);n.nodes={};for(var r in t.nodes)n.nodes[r]=t.nodes[r].filter(e);var i=new Set;return n.graph={},n.graph.nodes=t.graph.nodes.filter(function(t){var n;return t.node?n=e(t.node):n=e({}),n&&i.add(t.id),n}),n.graph.links=t.graph.links.filter(function(e){return i.has(e.source.id)&&i.has(e.target.id)}),n}}}),n("datadistributor",["filters/nodefilter"],function(e){return function(){function o(e){t=t.filter(function(t){return e!==t})}function u(e){t.push(e),i!==undefined&&e.setData(i)}function a(e){s=e,f()}function f(){if(s===undefined)return;var n=r.reduce(function(e,t){return function(n){return e(n)&&t.run(n)}},function(){return!0});i=(new e(n))(s),t.forEach(function(e){e.setData(i)})}function l(){n.forEach(function(e){e.filtersChanged(r)})}function c(e){r.push(e),l(),e.setRefresh(f),f()}function h(e){r=r.filter(function(t){return e!==t}),l(),f()}function p(e){return n.push(e),e.filtersChanged(r),function(){n=n.filter(function(t){return e!==t})}}var t=[],n=[],r=[],i,s;return{add:u,remove:o,setData:a,addFilter:c,removeFilter:h,watchFilters:p,refresh:f}}}),n("filters/filtergui",[],function(){return function(e){function r(e){e.appendChild(n)}function i(r){while(t.firstChild)t.removeChild(t.firstChild);r.forEach(function(n){var r=document.createElement("li"),i=document.createElement("div");t.appendChild(r),r.appendChild(i),n.render(i);var s=document.createElement("button");s.textContent="",s.onclick=function(){e.removeFilter(n)},r.appendChild(s)}),t.parentNode===n&&r.length===0?n.removeChild(t):r.length>0&&n.appendChild(t)}var t=document.createElement("ul");t.classList.add("filters");var n=document.createElement("div");return{render:r,filtersChanged:i}}}),n("gui",["chroma-js","map","sidebar","tabs","container","meshstats","legend","linklist","nodelist","simplenodelist","infobox/main","proportions","forcegraph","title","about","datadistributor","filters/filtergui"],function(e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m){return function(g,y){function k(){if(!w)return;y.removeTarget(w),N.remove(w),w.destroy(),w=null}function L(e){k(),w=new e(g,S,x.getWidth,y,T),w.render(E),N.add(w),y.addTarget(w)}function A(e){return function(){L(e)}}var b=this,w,E,S=e.scale(e.interpolate.bezier(["#04C714","#FF5500","#F02311"])).domain([1,5]),x,T=document.createElement("div");T.classList.add("buttons");var N=new v,C=new v;C.add(N),E=document.createElement("div"),E.classList.add("content"),document.body.appendChild(E),x=new n(document.body),E.appendChild(T);var O=document.createElement("button");O.textContent="",O.onclick=function(){w.constructor===t?y.view("g"):y.view("m")},T.appendChild(O);var M=new p(g),_=new i("header"),D=new l(g,x,y),P=new r,H=new i,B=new s(g),j=new o,F=new f("new","firstseen",y,"Neue Knoten"),I=new f("lost","lastseen",y,"Verschwundene Knoten"),q=new a(y),R=new u(S,y),U=new c(g,N),z=new d;C.add(B),C.add(F),C.add(I),N.add(q),N.add(R),N.add(U),x.add(_),_.add(B),_.add(j),H.add(F),H.add(I);var W=new m(N);return N.watchFilters(W),_.add(W),x.add(P),P.add("Aktuelles",H),P.add("Knoten",q),P.add("Verbindungen",R),P.add("Statistiken",U),P.add("Über",z),y.addTarget(M),y.addTarget(D),y.addView("m",A(t)),y.addView("g",A(h)),y.view("m"),b.setData=C.setData,b}}),n("main",["moment","router","leaflet","gui","numeral"],function(e,t,n,r,u){return function(a){function f(t){function u(e){e.source+=i.batadv.nodes.length,e.target+=i.batadv.nodes.length}function c(e){var t=r.nodeIds.indexOf(e.nodeinfo.node_id);t===-1?(r.nodes.push(e),r.nodeIds.push(e.nodeinfo.node_id)):e.flags.online===!0&&(r.nodes[t]=e)}var r={};r.nodes=[],r.nodeIds=[];var i={};i.batadv={},i.batadv.nodes=[],i.batadv.links=[];for(var f=0;f